code logs -> 2011 -> Fri, 08 Jul 2011< code.20110707.log - code.20110709.log >
--- Log opened Fri Jul 08 00:00:20 2011
00:22
< gnolam>
2011-07-06 06:18:
00:22
< gnolam>
"Just FYI: the Neolith login node (neolith1 a.k.a *******.***.***.**) ran out
00:22
< gnolam>
of memory around 01:30 CEST today, and from that point until it was
00:22
< gnolam>
restarted at 06:10 CEST it was probably unusable for most users.
00:22
< gnolam>
...
00:22
< gnolam>
The cause was a single user accidentally running a very large process."
00:22
< gnolam>
2011-07-08 01:03:
00:22
< gnolam>
"Unfortunately, the same thing happened again today...
00:22
< gnolam>
The cause was the same user accidentally running another very large process."
00:22
< gnolam>
>_<
00:29 * TheWatcher stabs the server admin with ulimit
00:33 shade_of_cpux is now known as cpux
00:56 kwsn [t1gg@31356A.5FD175.47BC3A.7D9E06] has joined #code
01:32 Derakon[AFK] is now known as Derakon
01:47 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
01:49 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Client closed the connection]
02:05 Attilla_ [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
02:07 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:31 Derakon is now known as Derakon[shower]
03:12 Kindamoody is now known as Kindamoody[zZz]
03:30 cpux is now known as shade_of_cpux
04:13 Janus [Clairvoire@Nightstar-b1ac186a.res.rr.com] has joined #code
04:14
< Janus>
oh wow. It's gotten to the point where I realize a question is dumb as soon as I enter. Usually I have to post it before that happens
04:17
< kwsn>
wht ws it anywaay? XD
04:17 * kwsn eyes her a key
04:21
< Janus>
It was a math... I'm not even sure now! But basically it was for a 2d sprite lighting thing I'm trying. Was worried it required way too many calculations per pixel. But it's dumb to worry about that before it's even prototyped
04:25 Derakon[shower] is now known as Derakon
04:30
< Janus>
The way I have it planned, it calls for... (one squareroot and some other small stuff) * ((number of pixels) ^ light sources * onscreen objects)
04:34 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
05:11 SyloqAtHome is now known as Syloqs-AFH
05:19
< Vornicus-Latens>
Janus: when you get into lighting your best bet is still probably opengl and some careful camera work as opposed to rolling your own.
05:19
< Janus>
What's a good language where I can just... write stuff in a console and then it does stuff? Like python, but without wrapping my knu-- VORN HELLO
05:22
< Vornicus-Latens>
JANUS HELLO
05:22
< Vornicus-Latens>
python is pretty good for this; ruby is a favorite of Chalain but it makes my teeth itch.
05:23
< Janus>
The white spacing rule always gets me. Then sits me in the corner until I learn my leason
05:24
< Vornicus-Latens>
I'm gonna point you at ruby and perl; I don't really like either but if the whitespace is screwing with you then you should try those instead. THough perl is in a lot of ways very baroque.
05:26
< Janus>
Is it bad I looked up 'baroque' before looking up perl?
05:26
< Janus>
I used ruby before, I guess I can try that. Beats learning how to format code properly!
05:28
< Janus>
Thanks! And the lighting thing, iunno. It has to be pixel perfect. Each sprite gets a seperate grayscale, that determines the texture and shape of the sprites. ... well, on the z plane anyway, which is the only plane you see in 2D
05:29
< Derakon>
Perl is what I use for commandline one-liners, for what it's worth.
05:30 * kwsn likes python
05:30
< Derakon>
Though that has more to do with it having some very permissive rules for variable use if you want to. Implicit variables out the wazoo.
05:30
< Derakon>
For general programming I use Python these days.
05:30 * kwsn uses C at her job, though she does know a little Tcl now
05:31
< Vornicus-Latens>
I think most of us in this channel run python first; lua and perl are also common.
05:31
< Janus>
It'd be so cool to have a programmy job for C. At least until I'm fired for breaking everything
05:31
< Vornicus-Latens>
--look into lua, by the way, it's small and has a very clean C api so if you need performance you can get it.
05:31
< Derakon>
Perl one-line example: ls *jpg | perl -ne 'chomp; /(.*).jpg/; `convert -resize 10% $_ $1-thumb.jpg`'
05:32
< Derakon>
Er, one-liner.
05:32
< Vornicus-Latens>
(that creates 10%-sized thumbnails of images)
05:32
< Derakon>
Yes.
05:32 * kwsn makes Vornicus-Latens use... HASKELL
05:33
< Vornicus-Latens>
I've never tried haskell but I keep kind of intending to.
05:33
< Janus>
I made a mod for a game that uses lua. I can see why it's so popular now
05:33
< Vornicus-Latens>
Ruby is rare in here; Chalain as I said is a huge fan but he's the only one I know.
05:34
< kwsn>
i've used ruby in the past for school
05:34
< kwsn>
liked python better xD
05:35
< Vornicus-Latens>
Yeah, Ruby's huge failing for me was that I couldn't get it to pull basic operations that were simple using f'rinstance __rmul__
05:36
< Vornicus-Latens>
(specifically, I was trying to implement number * vector, but in order to do that the only method I found was to implement that /for every existing numeric type/
05:37
< Derakon>
Ow.
05:38
< Vornicus-Latens>
(which for all that the ruby folks like to talk about how DRY is built in, um...)
05:39
< Namegduf>
DRY is one of those things easily taken to extremes.
05:40
< Namegduf>
There's a point at which implementing complex magic so a few particular bits of information aren't repeated makes you crazy.
05:44
< Vornicus-Latens>
I've been poking at a dry-shaped problem on and off for a while and I can't find a nice way to handle it.
05:46 kwsn is now known as kw\t-2
05:46 * kw\t-2 waves
05:46
< Vornicus-Latens>
nikwsn
05:47 * kw\t-2 hugs Vornicus-Latens
05:48 kw\t-2 [t1gg@31356A.5FD175.47BC3A.7D9E06] has quit [[NS] Quit: party, p a r t WHY? Because i GOTTA]
06:15 Derakon is now known as Derakon[AFK]
06:16 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: Spaaaaaaaaaaaaaaaaace sleeeeeeeeeeeeeeeep!]
06:43 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code
07:54 Im2 [adu@E27ACD.236D94.553C9F.43665E] has joined #code
08:11 You're now known as TheWatcher[afk]
08:47 Janus [Clairvoire@Nightstar-b1ac186a.res.rr.com] has quit [Client closed the connection]
08:47 Im2 [adu@E27ACD.236D94.553C9F.43665E] has quit [Client closed the connection]
08:54 Kindamoody[zZz] is now known as Kindamoody
09:10 Omega [omegaboot@Nightstar-ecd8a9fd.emhril.sbcglobal.net] has joined #code
09:12 Alek [omegaboot@Nightstar-8cf86516.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
09:15 You're now known as TheWatcher
09:32 Alek [omegaboot@Nightstar-7734d29f.emhril.sbcglobal.net] has joined #code
09:33 Omega [omegaboot@Nightstar-ecd8a9fd.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
10:23 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
10:34 AnnoDomini [annodomini@Nightstar-a0b846d1.adsl.tpnet.pl] has joined #code
--- Log closed Fri Jul 08 11:08:13 2011
--- Log opened Fri Jul 08 11:08:50 2011
11:08 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
11:08 Irssi: #code: Total of 21 nicks [2 ops, 0 halfops, 0 voices, 19 normal]
11:09 Irssi: Join to #code was synced in 53 secs
11:17 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection closed]
11:27 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
11:28 Syloqs_AFH is now known as Syloqs-AFH
11:44 Kindamoody is now known as Kindamoody|out
11:51 You're now known as TheWatcher[d00m]
12:19
<@froztbyte>
http://a1k0n.net/2011/06/26/obfuscated-c-yahoo-logo.html
12:22 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
12:27 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
12:42 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Ping timeout: 121 seconds]
12:54 You're now known as TheWatcher
12:55 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code
13:05 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
13:09 * gnolam eyes geologists.
13:09
< gnolam>
I have a feeling they just make up words, thinking that nobody will ever call their bluff.
13:09
< gnolam>
Ferruginous laterite soil, really?
13:10
< TheWatcher>
I tend to have the same feeling about chemists and astrophysicists~
13:36
< gnolam>
http://www.rockpapershotgun.com/2011/07/08/street-cleanin-man-street-cleaning-si mulator/
13:37
< TheWatcher>
I... what
13:37
< TheWatcher>
Why would anyone write that thing?!
13:38
< TheWatcher>
More to the point, how did they even manage to get funding for something like that?!
13:38
< gnolam>
And the graphics actually appear to be pretty decent. :)
13:39
< TheWatcher>
yeah
13:39
< TheWatcher>
I have no words
14:11 AbuDhabi [annodomini@Nightstar-b4cbb14e.adsl.tpnet.pl] has joined #code
14:13 AnnoDomini [annodomini@Nightstar-a0b846d1.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
14:43 You're now known as TheWatcher[afk]
15:13 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
15:26 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
17:24 Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has quit [Connection reset by peer]
17:24 Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has joined #code
17:32 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
17:54 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection reset by peer]
17:54 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:02 AbuDhabi [annodomini@Nightstar-b4cbb14e.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
18:06 AnnoDomini [annodomini@Nightstar-b928ccae.adsl.tpnet.pl] has joined #code
18:09 AnnoDomini is now known as Zon
18:40 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited]
18:50 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection reset by peer]
18:51 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
19:00 celmin [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
19:01 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Ping timeout: 121 seconds]
19:01 celmin is now known as celticminstrel
19:26 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
19:26 celmin [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
19:26 celmin is now known as celticminstrel
19:34 Kindamoody|out is now known as Kindamoody
21:02 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
21:03 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
21:04 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
21:05 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
21:08 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
21:08 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
21:43 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
21:53 You're now known as TheWatcher
22:19 Zon is now known as AnnoDomini
22:21 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
22:22 Derakon [chriswei@Nightstar-c826c088.ca.comcast.net] has joined #code
22:22 * Derakon finally gets around to renaming the incredibly imaginatively-labeled file a.py.
22:23
< Derakon>
(To camera.py)
22:26
< celticminstrel>
XD
22:27
< celticminstrel>
I can't imagine why someone would ever use a single-letter filename.
22:27
< Derakon>
Oh ho ho ho ho ho.
22:27
< celticminstrel>
Well, single-letter excluding the extension.
22:28
< Derakon>
cd ../../ancient_omx/omx/omx_cockpit; ls | grep -E "seb..py" | wc -l
22:28
< Derakon>
6
22:28
< Derakon>
And that's not counting things like seb.py, sebCI.py, sebCCC.py, sebC_mem.py, sebC_spec.py...
22:29
< celticminstrel>
I'm afraid I'm not sure what that means. <_<
22:29
< celticminstrel>
Clearly this guy has negative imagination. :P
22:29
< Derakon>
"Go to a copy of the program that I made when I first showed up here. List all files whose names begin with "seb" then have two arbitrary characters, then the py ending. Count those."
22:29
< Derakon>
The listing was sebC.py, sebD.py, sebF.py, sebG.py, sebH.py, sebM.py
22:30
< Derakon>
And when they're used, it's as "import sebC as C" and then e.g. "C.pic".
22:30
< celticminstrel>
Oh fun.
22:30
< Derakon>
In the nearly two years I've been here, I've gotten that down to just four modules whose names begin with "seb", and one of them doesn't have any code in it.
22:31
< celticminstrel>
Doesn't that mean you don't need it?
22:31
< Derakon>
(Literally. It's just a repository that other modules stick their variables into, and I've cut down on %Bthat%B to only less than 20 or so)
22:31
< TheWatcher>
Dera: two years already? sheeesh.
22:31
< Derakon>
Yeah.
22:32
< celticminstrel>
Wait, so is the file actually empty or does it contain only variables?
22:32
< TheWatcher>
Also, celticminstrel, you have apparently avoided Dera regailing us with some of the utter violations of sanity and reason that are Sebastian Haas' "creations"
22:32
< Derakon>
It also contains a bunch of general-purpose documentation for the codebase.
22:32
< celticminstrel>
TheWatcher: I've seen some of them.
22:32
< Derakon>
(That I wrote)
22:32
< Derakon>
(Sebastian does not document)
22:32
< celticminstrel>
I can still be amazed though.
22:33
< Derakon>
cat seb.py | grep -vE "^\s*#|^\s*$"
22:33
< Derakon>
22:33
< Derakon>
22:33
< Derakon>
22:33
< Derakon>
22:33
< Derakon>
That's it.
22:34
< Derakon>
(In other words, list all non-comment non-whitespace lines in seb.py. For some reason that prints four blank lines; I guess they have nothing on them and thus avoid one of the patterns?)
22:34
< Derakon>
Other modules import the seb module (as "X") and then stuff things into its namespace.
22:34
< celticminstrel>
...
22:34
< celticminstrel>
What is the point of that?
22:35
< Derakon>
It's serving as a global namespace.
22:35
< Derakon>
Since Python doesn't have that concept.
22:35
< celticminstrel>
Wouldn't that be pretty much the same as doing something like 'X = object()' and stuffing the things there?
22:35
< celticminstrel>
Or does its being a module make it a singleton through the whole program or something?
22:36
< Derakon>
So e.g. if two modules want to use the same variable, then one of them creates it and stuffs it into X, and the other one accesses it normally.
22:36
< Derakon>
Yeah, modules are singletons.
22:36
< celticminstrel>
So, there is a point to it, just not a very good one. <_<
22:36
< Derakon>
It's lousy style, yeah.
22:37
< Derakon>
find . -name "*py" | xargs cat | perl -ne 'chomp; if (/X\.(\w*)/ or /seb\.(\w*)/) {print "$1\n"}' | sort -u | wc -l
22:37
< Derakon>
43
22:37
< celticminstrel>
I never got how find works.
22:37
< Derakon>
So there's currently 43 variables stuffed into the seb module.
22:37
< celticminstrel>
Though I can see that means look for files in the current directory ending in py.
22:37
< Derakon>
Well, unless one's only created behind another one; that particular one-liner only finds the first match.
22:38
< Derakon>
That is "Look for all files starting from this directory that end in py. Cat their contents. Run this perl script on that."
22:38
< Derakon>
The perl script says "Find all words that are preceded by "X." or "seb." and print them."
22:38
< Derakon>
And then I uniquify the result and count the number of hits.
22:38
< celticminstrel>
Perl is an arcane tongue. :/
22:38
< Derakon>
Well, one-liners aren't the best introduction to the language.
22:39
< Derakon>
Mixing regexes certainly doesn't help.
22:39
< celticminstrel>
I know regexes already.
22:39
< celticminstrel>
They're also an arcane tongue, but they're one that I more-or-less understand. :P
22:40
< TheWatcher>
Perl is pretty easy, provided that you don't try being a smartarse
22:41
< TheWatcher>
(or it will give you enough rope to tie you up, suspend you over a bottomless pit, and then hang you)
22:42
< Derakon>
I keep my smartarsitude to a very carefully controlled segment of the language.
22:42
< Derakon>
Specifically, abuse of implicit variables in one-liners.
22:44
< Derakon>
(Generally, find . -name "prefix*suffix" is a good invocation to know)
22:44
< Derakon>
(It's practically all I ever do with find and I still get tons of use out of it)
23:16 You're now known as TheWatcher[t-2]
23:19 You're now known as TheWatcher[zZzZ]
23:56 Derakon [chriswei@Nightstar-c826c088.ca.comcast.net] has quit [[NS] Quit: leaving]
23:58 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
--- Log closed Sat Jul 09 00:00:47 2011
code logs -> 2011 -> Fri, 08 Jul 2011< code.20110707.log - code.20110709.log >

[ Latest log file ]