code logs -> 2011 -> Wed, 23 Nov 2011< code.20111122.log - code.20111124.log >
--- Log opened Wed Nov 23 00:00:18 2011
--- Day changed Wed Nov 23 2011
00:00
< Derakon>
(10 minutes; looks like limiting the wrapper size has no effect)
00:00
< Derakon>
...fascinating, and when I tried to open a file while the compiler was running, the screen went to black for a good five seconds.
00:01
< ToxicFrog>
Derakon: what language are you compiling, with what compiler?
00:02 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
00:03
< Derakon>
TF: C, with Visual Studio 2003 (that it might be linked against Python 2.5)
00:05
< ToxicFrog>
As C89 or as C++?
00:05
< Derakon>
Given that other similar builds take a few seconds, I'm guessing that the fault lies with the third-party libraries.
00:05
< Derakon>
C89, I believe.
00:05
< Derakon>
The particular file being compiled has the extension "cxx".
00:06
< sshine>
gnolam, what are Cold Colors?
00:06
< sshine>
ah, a short story.
00:07 * AD[Shell] , with extreme caution, uses rm to clean up some files created by root.
00:07
< ToxicFrog>
That's a C++ extension, so it may be compiling it as C++.
00:11 You're now known as TheWatcher[zZzZ]
00:16
< Derakon>
(Total compile time: 26 minutes. >.<)
00:18 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
00:20
< gnolam>
AD: just don't make the typo an acquaintance of mine did. A space after the first slash after rm -rf /the_path/foo. On a production server.
00:21
< gnolam>
s/slash after/slash in
00:25
< Derakon>
gnolam: a friend of mine once did "rm -rf * ~" to get rid of Emacs' backup files.
00:25
< Derakon>
Anyway, leaving now. TTFN.
00:25 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has quit [[NS] Quit: leaving]
00:28 * Tamber has done "rm * ~" whilst trying to get rid of backup files. On the bright side, nothing of real value was lost. That time.
00:41 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
00:55
< celticminstrel>
My bezier curve isn't passing through both endpoints... :/
00:58 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
01:00 Derakon[AFK] is now known as Derakon
01:46 Kindamoody[zZz] is now known as Kindamoody
01:47
< gnolam>
Hmm. That introversion city generator demo is impressive.
01:49
< McM[travels]>
It is the only thing in that bundle besides Crayon Physics Deluxe I don't have ;_;
01:49
< celticminstrel>
Okay, so reading a bmp texture file shouldn't be hard... then I just have to find the function to tell OpenGL about it...
01:49
< McM[travels]>
Hang on a sec, Sable did that
01:50
< McM[travels]>
Though it did it with a PNG, that got decompressed into memory first
01:50
< celticminstrel>
His examples use glaux. :/
01:50
< gnolam>
It's simple, actually.
01:50
< celticminstrel>
...might be able to glean something from them anyway though.
01:50
< McM[travels]>
I used gluBuild2DMipMaps in Sable, it seems.
01:51
< McM[travels]>
After preconverting my surface to be 32-bit RGBA in that order.
01:51
< gnolam>
Generate a texture with glGenTextures(). Bind it with glBindTexture().
01:51
< gnolam>
Set glTexParameters.
01:51
< gnolam>
Finally, send the data to glTexImage2D().
01:52
< McM[travels]>
Though if you're gonna be moving around, GLU is really part of OpenGL and mipmaps are often good things to have.
01:53
< McM[travels]>
Depends on the degree of detail you need in the textures, I guess.
01:53
< celticminstrel>
Okay, so glGenTextures is kinda like an alloc function and glTexImage2D looks like it works similarly to the function I used to read pixel data from the screen buffer for output.
01:54
< celticminstrel>
This actually vaguely makes sense now. I just wish it were more OO. <_<
01:54
< McM[travels]>
Right. And glBindTexture is not entirely unlike glColor or other state-shifting machines.
01:54
< Alek>
where's the Iceman when you need him? http://notalwaysright.com/the-bank-appreciates-your-donation-part-2/14894
01:54
< McM[travels]>
GL is deliberately not OO. If you want OO, you can wrap it yourself~
01:54
< Alek>
hrm. wrong window.
01:56
< gnolam>
celticminstrel: glGenTextures() allocates the texture handle (or "name", in glspeak). glTexImage2D() allocates and optionally uploads the actual image data.
01:56 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
01:56 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
01:57
< gnolam>
And you don't need glu to generate mipmaps.
01:57
< gnolam>
glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE);
01:57
< McM[travels]>
Oh hey, score
01:57
< McM[travels]>
(Sable's Kind Of Old, and I think I was going primarily out of an outdated Red Book even then)
01:57
< gnolam>
(Not that there's anything wrong with using glu. It's useful.)
01:58
< McM[travels]>
(I guess you technically don't need glu for anything, right?)
01:58 * celticminstrel is currently trying to find textures. <_<
01:58
< McM[travels]>
(But gluLookAt and friends are Not To Be Missed)
01:58
< gnolam>
(Yep)
02:04 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
02:13<~Vornicus> whee, doing large-integer math with standard float functions.
02:14 * Vornicus rewrites euler 25 into a 1 liner, not including the standard library import.
03:12
< celticminstrel>
...confused. What's the third parameter in glTexImage2D for? :/
03:16
< gnolam>
Number of color components.
03:17
< gnolam>
Preferably expressed as one of the enums.
03:17
< gnolam>
GL_RGB, GL_RGBA, etc.
03:20
< celticminstrel>
...then what's the third from the end? :/
03:23
< gnolam>
Oh. The first one is the /internal/ format. The second is the format of the data you're sending in.
03:32
< celticminstrel>
So they're both the same sets of enums?
03:34
< celticminstrel>
Implication being that it converts from the second format to the first?
03:34 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [[NS] Quit: Well, most things get better when I kick them!]
03:36 cpux|2 [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
03:37 cpux|2 is now known as cpux
03:41
< gnolam>
YEah
03:54 Kindamoody is now known as Kindamoody|nap
04:15 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
04:31 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
04:32
< celticminstrel>
...okay, so if I understand this right, you need to bind before load and then again before use?
04:34
< McM[travels]>
Yeah, Bind means "Set the texture to this now" in the machine, kinda like glBegin does for shapes.
04:39
< celticminstrel>
...hm, I can't use glutSolidSphere if it's textured?
04:51<~Vornicus> glutSolidSphere doesn't give uv values I don't think
04:52
< celticminstrel>
Mm.
04:53 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has joined #code
05:01
< celticminstrel>
...and of course it's not working, and I'm late. Blahh.... :(
05:04 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
05:08 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
05:09 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
05:10
< McM[travels]>
Man, Microsoft
05:10
< McM[travels]>
WaitForSingleObject is either the finest of APIs or the most bugfuck nuts, and I can't tellw hich.
05:11 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
05:12
< McM[travels]>
It's join() for processes or threads, wait() for timers or condition variables, lock() for mutex, p() for semaphores, and getc(); ungetc() for input.
05:12 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
05:12
< Noah>
Humble Bundle~
05:13
< Noah>
Shame I already had crayon physics, but at least I finally got Aquaria
05:15
< McM[travels]>
This also implies that you have gotten the decent Darwinia and the superb Uplink.
05:17 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
05:19<~Vornicus> Uplink still gives me the Remake Itch
05:22 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
05:23 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
05:32 Kindamoody|nap is now known as Kindamoody
05:39 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
05:52 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
05:53 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
05:54 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
05:56 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
06:08 ErikMesoy|sleep is now known as ErikMesoy
06:31 Kindamoody is now known as Kindamoody|out
06:40 Derakon is now known as Derakon[AFK]
06:46
<@Tarinaky>
I don't understand the following snippet of Haskell... (warning, no idea how this will copy+paste)
06:46
<@Tarinaky>
sumISBN isbn = sum (zipWith (*) [10,9..2] (take 9 (map charToInt isbn)))
06:47
<@Tarinaky>
I don't understand what zipWith does.
06:48
<@Tarinaky>
Also: shouldn't this be using fold?
07:09 You're now known as TheWatcher
07:15 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
07:23
<@jerith>
Tarinaky: zipWith is a combination zip/map.
07:23
<@Tarinaky>
Okay. This is starting to bother me...
07:24
<@Tarinaky>
If I have an expression map (3*) [a]...
07:24
<@jerith>
It takes a function of two params and two lists.
07:24
<@Tarinaky>
What does the parse tree look like?
07:48
<@Tarinaky>
Nm. I think I understand now.
07:49 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
07:55 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has joined #code
08:00 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has quit [Ping timeout: 121 seconds]
08:05 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:06 You're now known as TheWatcher[afk]
08:24 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
08:29 AnnoDomini [annodomini@Nightstar-9b1ccdbf.9.getinternet.no] has joined #code
08:52 AnnoDomini [annodomini@Nightstar-9b1ccdbf.9.getinternet.no] has quit [Ping timeout: 121 seconds]
08:54 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has joined #code
09:49 You're now known as TheWatcher
09:52 AD[Shell] [abudhabi@9D46A2.088371.A474A5.6EEC27] has quit [Ping timeout: 121 seconds]
09:56 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
11:52 You're now known as TheWatcher[d00m]
13:09 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
13:16 You're now known as TheWatcher
13:32 * TheWatcher eyes constructor chaining in php
13:46
< celticminstrel>
Oh?
13:53
< TheWatcher>
It does not appear to have implicit default constructors. So, '<?php class A { }; class B extends A { function __construct() { super::__construct(); } }; $foo = new B();' will cause a "Cannot call constructor" error. Which isn't a real problem, just strikes me as kinda odd
14:14 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
14:15 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has joined #code
14:17 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has quit [Ping timeout: 121 seconds]
14:25 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
14:28 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has joined #code
14:43 You're now known as TheWatcher[afk]
15:20 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
15:21 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has joined #code
15:22 AbuDhabi [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has joined #code
15:24 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has quit [Ping timeout: 121 seconds]
15:35 Kindamoody|out is now known as Kindamoody
15:47 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
16:13 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
16:36 AbuDhabi [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has quit [Ping timeout: 121 seconds]
16:38 AnnoDomini [annodomini@Nightstar-9b1ccdbf.9.getinternet.no] has joined #code
16:56 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
16:57 AbuDhabi [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has joined #code
16:59 AnnoDomini [annodomini@Nightstar-9b1ccdbf.9.getinternet.no] has quit [Ping timeout: 121 seconds]
17:23 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
17:37 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
18:00 You're now known as TheWatcher
18:34 Kindamoody is now known as Kindamoody[zZz]
18:37 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
18:49 AbuDhabi [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has quit [Ping timeout: 121 seconds]
18:50 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has joined #code
18:50 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
19:17 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has quit [Ping timeout: 121 seconds]
19:18 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has joined #code
19:53 AnnoDomini [annodomini@Nightstar-9645f0b3.90-149-143.nextgentel.com] has quit [Client closed the connection]
20:17 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [[NS] Quit: Into the hole again, we hurried along our way, into a once-glorious garden now seeped in dark decay.]
20:28 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has joined #code
21:01
< Ling>
https://gist.github.com/1389897 <-- anyone know enough about git on Windows to help? Getting certificate errors
21:02
< Tamber>
You have your user folder right in the root of the drive, rather than /Users? o.o
21:03
< Ling>
Not my user account, I'm a temp
21:04
< Tamber>
Let me rephrase: Is that a user account, right in the root of the drive?
21:04
< Tamber>
Does it exist?
21:04
< Ling>
No.
21:04
< Ling>
It's just a folder for easy moving when I'm done.
21:04
< Tamber>
Ah. Okay, so it's /supposed/ to be looking there, and it's not just making things up as it goes along, then?
21:04
< Ling>
Right
21:05
< Tamber>
Have you checked that path, to see if the CA bundle is actually there?
21:06
< Ling>
It wasn't, I'm actually following some instructions...
21:06
< Tamber>
...huh.
21:06
< Ling>
git config --system http.sslcainfo /bin/curl-ca-bundle.crt
21:06
< Ling>
git clone --recursive git://github.com/isaacs/npm.git
21:06
< Ling>
cd npm; node cli.js install npm -gf
21:07
< Ling>
That first line maps to C:\robin\...\bin\curl...
21:07
< Tamber>
Hmmm.
21:13
< Ling>
Also, no the file didn't exist, I had to touch it, but that didn't affect anything
21:13
< Tamber>
Well, of course not. It's looking for the root certificates in it.
21:14
< Tamber>
Which will be why it's failing; it's not finding the root certificates. :)
21:15
< Ling>
YES! I got it working by disabling ssl verification
21:18 * kwsn wtfuxes at this project
21:29 ErikMesoy is now known as ErikMesoy|sleep
21:59 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
21:59 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
22:01 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
22:22 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
22:27 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
22:46 Attilla [Obsolete@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
23:03
< AnnoDomini>
How would I eliminate all lines that are 7 characters or shorter from a text file, using a script, under Linux?
23:05
< AnnoDomini>
I have the vague impression that I could use grep for this somehow.
23:07
<@Tarinaky>
What does the '!' operator do in Haskell? Is it some kind of index operator?
23:13
< AnnoDomini>
I think I'm looking for a regexp. Something like ^????????* but I'm unsure if that'll work for "all lines with 8 or more characters".
23:20 * AnnoDomini figures out that it's actually ^.........*
23:35 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has quit [[NS] Quit: leaving]
--- Log closed Thu Nov 24 00:00:01 2011
code logs -> 2011 -> Wed, 23 Nov 2011< code.20111122.log - code.20111124.log >

[ Latest log file ]