code logs -> 2010 -> Mon, 04 Oct 2010< code.20101003.log - code.20101005.log >
--- Log opened Mon Oct 04 00:00:03 2010
00:05 RichardBarrell [mycatverbs@Nightstar-689c9c54.cable.virginmedia.com] has quit [Connection closed]
00:11 Finerty is now known as Vornicus
01:05 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
01:19 AnnoDomini [annodomini@Nightstar-03624f38.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.]
02:20 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has joined #code
02:44 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has joined #code
02:46 Ortiha [orthianz@Nightstar-ddad018c.xnet.co.nz] has quit [Ping timeout: 121 seconds]
02:53 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
03:10 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has quit [Client closed the connection]
03:11 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
03:14 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
03:14 mode/#code [+o ToxicFrog] by Reiver
03:18 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has joined #code
03:19 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has quit [Client closed the connection]
03:35 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has joined #code
03:35 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has quit [Client closed the connection]
03:59 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has joined #code
04:04 Ortiha [orthianz@Nightstar-ed6f29cd.xnet.co.nz] has joined #code
04:06 Orthia [orthianz@Nightstar-9be592ae.xnet.co.nz] has quit [Ping timeout: 121 seconds]
05:01 kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has quit [[NS] Quit: ]
05:03 kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has joined #code
05:20 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
05:23 Ortiha [orthianz@Nightstar-ed6f29cd.xnet.co.nz] has quit [Connection reset by peer]
05:31 Orthia [orthianz@Nightstar-ed6f29cd.xnet.co.nz] has joined #code
06:07
< kwsn>
anyone here good with regex?
06:07
<@Derakon>
Don't ask to ask, just ask~
06:08
< kwsn>
i'm asking cause it's hard to ask a qeustion if no one can answer
06:08
<@Derakon>
No it's not!
06:08
<@Derakon>
Just a bit pointless.
06:08
<@Derakon>
Anyway, I have some skill with regexes.
06:08
<@Derakon>
So shoot.
06:09
< kwsn>
one second
06:09 * kwsn shoots Derakon
06:09
< kwsn>
anyway
06:09
< kwsn>
/+-*<>=!~^%&|. <--- are the chars i need matched
06:09
< kwsn>
however i get some weird error
06:10
< kwsn>
I currently have it set to check agains this: /[\/\+-\*<>=!~\^%&\|\.]/
06:10
<@Derakon>
Define "need matched" here.
06:11
<@Derakon>
Oh, you want to know if any of those are in the string?
06:11
<@Derakon>
! and & may also be special characters.
06:12
< kwsn>
yeah, and alright
06:12
<@Derakon>
What's the error?
06:13
< kwsn>
brb
06:13 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:14
<@ToxicFrog>
- may also be, depending on dialect.
06:14
< kwsn>
empty range in char class: /[\/\+-\*<>=\!~\^%\&\|\.]/ (SyntaxError)
06:14
< kwsn>
language is ruby
06:14
<@Derakon>
Ah, okay, so you're trying to define a range of characters that is invalid.
06:14
<@ToxicFrog>
Oh right, - is always special in []
06:14
<@Derakon>
E.g. the range "B" to "A" would be invalid.
06:15
<@ToxicFrog>
It's parsing that as [ /+ - *<>=!~^%& ]
06:15
< kwsn>
oh right
06:15
< kwsn>
there we go
06:15
< kwsn>
0 diffrences
06:15
< kwsn>
:D
06:15
< kwsn>
thanks guys
06:42 Derakon is now known as Derakon[AFK]
06:49
<@Vornicus>
Kaura!
07:19 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
07:28 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code
07:48
<@Vornicus>
No kaura.
08:38 kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has quit [Ping timeout: 121 seconds]
08:40 Vornicus is now known as Vornicus-Latens
09:16 Ortiha [orthianz@Nightstar-0a5f7f5a.xnet.co.nz] has joined #code
09:17 Orthia [orthianz@Nightstar-ed6f29cd.xnet.co.nz] has quit [Ping timeout: 121 seconds]
10:06 You're now known as TheWatcher
10:28 Anno[Laptop] [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code
10:49 Ortiha [orthianz@Nightstar-0a5f7f5a.xnet.co.nz] has quit [Ping timeout: 121 seconds]
11:02 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has joined #code
11:49
< Anno[Laptop]>
Does Java have some sort of way to initialize an entire array with a value, rather than having to for-loop assignment?
12:00
<@TheWatcher>
Not AFAIK
12:03
< Anno[Laptop]>
Oh, well.
12:06 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
12:10
< Anno[Laptop]>
array = new CombiLogicBlock[width][height]; // Will this use the default constructor?
12:15 Anno[Laptop] [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [Ping timeout: 121 seconds]
12:19 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
12:23 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has quit [Ping timeout: 121 seconds]
12:30 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:37 cpux is now known as shade_of_cpux
12:41
<@TheWatcher>
Anno: no
12:41
<@TheWatcher>
All that will do is create you a 2D array of references to CombiLogicBlock objects, all of which will initially be null
12:42
<@TheWatcher>
you will need to do a for(w = 0; w < width; ++w) { for(h = 0; h < height; ++h) { array[w][h] = new CombuLogicBlock(); } } to create the actual objects
13:09 Anno[Laptop] [annodomini@Nightstar-7ece1715.adsl.tpnet.pl] has joined #code
13:14 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited]
13:18 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:31 kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has joined #code
14:20 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has joined #code
14:20 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
14:20 mode/#code [+qo Reiver Reiver] by ChanServ
14:21 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has quit [Connection reset by peer]
14:29 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has joined #code
14:29 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has quit [Connection reset by peer]
14:54 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has joined #code
14:54 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has quit [Client closed the connection]
14:54 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
15:27 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has joined #code
15:43 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
16:46 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has quit [Ping timeout: 121 seconds]
17:06 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
17:09 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has joined #code
17:40 kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has quit [Ping timeout: 121 seconds]
17:54 Orthia [orthianz@Nightstar-613851e6.xnet.co.nz] has quit [Ping timeout: 121 seconds]
17:56 kaura [kaura@Nightstar-fd82400d.snfc21.sbcglobal.net] has quit [Ping timeout: 121 seconds]
18:01 kaura [kaura@Nightstar-fd82400d.snfc21.sbcglobal.net] has joined #code
18:09 Vornicus-Latens is now known as Vornicus
18:53
< gnolam>
#pragma once or include guards - what do you prefer?
18:54
< Tarinaky>
Isn't '#pragma once' non-standard?
18:58
< gnolam>
Technically yes.
19:10
<@McMartin>
I think gcc and MSVS both support it though. Do any other compilers matter?
19:11 Zed_ [Zed@Nightstar-556ea8b5.or.comcast.net] has joined #code
19:12
<@ToxicFrog>
There's still systems with icc as the default.
19:13
<@McMartin>
Does icc support #pragma once?
19:13
<@McMartin>
... aaaactually
19:13
<@McMartin>
You can do both, right
19:13
<@McMartin>
#pragma once is strictly better than ifdef guards and if a compiler doesn't recognize it it must ignore it
19:13 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [Ping timeout: 121 seconds]
19:14
<@McMartin>
(It's strictly better because it tends to interact better with precompiled header/dependency tracking systems)
19:16
< Tarinaky>
Apparently GCC has optimisations for include guards as well though.
19:17
< Tarinaky>
Aren't any speed gains fairly minimal though?
19:23
<@McMartin>
That depends a whole lot on your projcet setup.
19:24
<@McMartin>
I've heard of gains of greater than 50% in total build time when there's heavy use of prebuilts.
19:24
< Tarinaky>
Cool, I guess.
19:25
<@McMartin>
(It's possibly you can point at those and say "this proves they architected everything all wrong to begin with", but.)
19:55
<@McMartin>
Ha ha ha
20:00 aoanla [AndChat@Nightstar-6ffe64bc.range217-42.btcentralplus.com] has joined #code
20:01
<@McMartin>
"Based on his code, if [REDACTED] played StarCraft 2, he'd probably mine up to 400, build a command center, and then have the rest of his SCVs attack each other."
20:01
<@McMartin>
This is where I *meant* to put that line.
21:07
< Tarinaky>
o.O?
21:21 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [[NS] Quit: Leaving]
22:00 aoanla [AndChat@Nightstar-6ffe64bc.range217-42.btcentralplus.com] has quit [[NS] Quit: ]
22:04 * gnolam stabs people who can't make their PDFs properly searchable.
22:09
< Anno[Laptop]>
Are they making a document in Word which they screenshot into a GIF which they convert to a PDF?
22:10
< gnolam>
No.
22:11
< gnolam>
And neither did they fill out the document, print it out and then rescan it as a PDF. Like our Ukrainian travel agency did.
22:11
< Anno[Laptop]>
How, pray tell, are they failing to make PDFs searchable?
22:11
< Namegduf>
Scanned it as an image?
22:13
< gnolam>
It's not scanned at all.
22:14
< Namegduf>
How did they do it?
22:14
< gnolam>
But whatever they used to convert the document into PDF, it mangled the data sheet section.
22:17
< gnolam>
Copy & pasted text comes out as gibberish.
22:18
< Anno[Laptop]>
Try a different PDF reader.
22:18
< Anno[Laptop]>
PDFs are weird. I have a few which are not readable by any Linux reader, but by all Windows ones.
22:19
<@jerith>
Ah, PDF.
22:19
<@jerith>
I tried to use nic.at's "we'll fill in your details for you" magic cancellation from thing.
22:20
<@jerith>
I click the link, wait for Acrobat Reader to start up (it's an FDF, so Preview.app won't touch it) and then suddenly Reader and Safari are stealing focus from each other every hundred milliseconds or so.
22:23 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
22:24 mode/#code [+o Derakon] by Reiver
22:24 * Derakon eyes WX, wonders WTF the '^' character isn't always displaying in his help teixt.
22:24
<@Derakon>
Er, text.
22:25
<@Derakon>
E.g. the constant "a+b*e^(-c*(x^2)). x is ((kx*sx)^2 + (ky*sy)^2 + (kz*sz)^2)^0.5" renders as "a+b*e^(-c*(x^2)). x is ((kx*sx) + (ky*sy) + (kz*sz)2)0.5"
22:26
<@Derakon>
Naturally searching for this is practically impossible, especially as wx.Caret is a special class to refer to the frickin' text insert cursor.
23:16 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
23:21 Anno[Laptop] [annodomini@Nightstar-7ece1715.adsl.tpnet.pl] has quit [[NS] Quit: Zzz.]
23:23
<@McMartin>
Derakon: To be fair, the text insert cursor is in fact called the caret.
23:24
<@Derakon>
But it already has a perfectly good searchable name.
23:24
<@Derakon>
Which is my main complaint.
23:25 kwsn [kwsn@31356A.5FD175.2259B6.DFACD4] has joined #code
23:37 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
23:57 shade_of_cpux is now known as cpux
23:58 McMartin [mcmartin@Nightstar-3c18b210.pltn13.sbcglobal.net] has quit [[NS] Quit: kernel upgrade]
--- Log closed Tue Oct 05 00:00:05 2010
code logs -> 2010 -> Mon, 04 Oct 2010< code.20101003.log - code.20101005.log >