--- Log opened Wed Nov 15 00:00:08 2006 |
--- Day changed Wed Nov 15 2006 |
00:00 | < timelady> | geo - wikkid:) |
00:00 | < timelady> | boom! |
00:00 | < BlueTiger> | Tell me of this GeoTube. |
00:00 | < BlueTiger> | For I know not of said reactor. :O |
00:00 | < GeoTube> | watching it on the Muller physics thing, review session 1, lecture 7 |
00:00 | < GeoTube> | google for however you spell the debung place and you'll probably find info about it |
00:00 | < BlueTiger> | Mmmk. |
00:01 | < BlueTiger> | <3 Google. |
00:01 | < BlueTiger> | :P |
00:01 | < GeoTube> | :P |
00:01 | < timelady> | giyf:) |
00:01 | < GeoTube> | 4.3GB of muler physics lectures at ipod format uncompressed.. :E |
00:01 | | * timelady grabs dbdesigner |
00:01 | < timelady> | damn,a reinstall mean ive lost all my tools:) |
00:01 | < GeoTube> | BlueTiger: if you find a good link, link me |
00:02 | < BlueTiger> | Sure |
00:05 | < BlueTiger> | http://www.ocrwm.doe.gov/factsheets/doeymp0010.shtml << Closest thing I've found thus far. |
00:06 | < GeoTube> | thats the one I heard of, involving the french |
00:07 | < GeoTube> | I blame my spelling of Gabon on how I'm hearing it on the video.. |
00:07 | < BlueTiger> | Yeps, that's pretty interesting. Darned nature keeps figuring things out before us. It's cheating I say, cheating! :O |
00:08 | < GeoTube> | I knwo! Lets go and burnit down! |
00:08 | < BlueTiger> | Yes! And we can knock over rainforests! That'll put nature in it's place. >:D |
00:16 | < timelady> | hmm, mysql workbench |
00:16 | < timelady> | it doesnt burn forests though, thats yet to be implmented |
00:17 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has joined #Code |
00:18 | | * Vornicus wonders if it juliennes fries. |
00:20 | < timelady> | it obviously dices and slices |
00:21 | <@Vornicus> | Also. |
00:21 | <@Vornicus> | Yeah, Nature's had fusion for, like, ever. Why doesn't it give that to us? |
00:21 | < Reiver> | Vorn: It's a bit hard to install in your laptop. |
00:23 | < timelady> | ap-get install nature_fusion_alpha1 |
00:24 | <@Vornicus> | I don't think I want it from the unstable branch. |
00:25 | < timelady> | what about experimental? |
00:25 | <@Vornicus> | Definitely not |
00:25 | < timelady> | makes unstable look - well, stable;) |
00:30 | < GeoTube> | well it's fusion, of course it's unstable right now! |
00:30 | < GeoTube> | :P |
00:30 | | * GeoTube falls over asleep. |
00:30 | < GeoTube> | later. |
00:31 | < BlueTiger> | Laters. |
00:31 | < timelady> | nightnight dear |
00:31 | < timelady> | ok kids, i gtg too |
00:31 | < BlueTiger> | I'm going to be going as well, I think. |
00:31 | < BlueTiger> | See ya alls. |
00:31 | | BlueTiger [BlueTiger@Nightstar-6049.we.res.rr.com] has quit [Quit: ] |
00:32 | | timelady [~romana@Nightstar-14384.lns3.adl4.internode.on.net] has quit [Quit: run away! run away!] |
00:58 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has quit [Connection reset by peer] |
01:00 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has joined #Code |
01:38 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has quit [Connection reset by peer] |
01:40 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has joined #Code |
01:44 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Operation timed out] |
01:47 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code |
01:52 | | Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has quit [Quit: ] |
02:27 | < ToxicFrog> | Anyways. Procedure for using stoatburgers.ps with other data sets. |
02:27 | | * Chalcedon nods |
02:28 | < ToxicFrog> | First, you need to process the csv into an nsv because it can't parse the csv directly. |
02:28 | < ToxicFrog> | You do that with the sed command I showed you, with the caveat that the "2" on the second line is dependent on the number of colors you have. |
02:29 | <@Chalcedon> | ok. |
02:29 | <@Chalcedon> | how do I use sed? ghostscript? |
02:29 | < ToxicFrog> | In the Cygwin shell. |
02:29 | < ToxicFrog> | The sed command is just typed into the shell from the same directory where you're keeping the csv: |
02:29 | < ToxicFrog> | ben@orias ~/Source |
02:29 | < ToxicFrog> | $ sed -r -e 's;,;\ |
02:30 | < ToxicFrog> | > g' -e 's;-;2;g' < stoatburgers.csv > stoatburgers.nsv |
02:30 | < ToxicFrog> | Note that the "> " at the start of the second line is Bash's line-continuation marker, not part of the actual command. |
02:31 | <@Chalcedon> | so I should leave those out? |
02:31 | < ToxicFrog> | Yes. Or rather, it'll appear automatically as you're typing the command in. |
02:31 | <@Chalcedon> | ok |
02:31 | < ToxicFrog> | So what you see on the screen should look like that. |
02:31 | < ToxicFrog> | Anyways. The 2 on the second line is actually an index into the color table, which you can see if you open up stoatburgers.ps |
02:31 | | * Chalcedon nods |
02:31 | < ToxicFrog> | The first line is color 0, the second is color 1, etc. |
02:32 | < ToxicFrog> | For each cell, it uses the value in that cell as an index into the color table. |
02:32 | < ToxicFrog> | So at the moment the script is configured so that 0 shows green and 1 shows red. |
02:32 | < ToxicFrog> | 2 is used for - entries and shows grey. |
02:33 | < ToxicFrog> | Obviously, if you have a wider range than { 0, 1 }, you need to create more entries and replace the 2 with the new number of colors, or you'll end up with - entries showing up the same as 2 entries... |
02:34 | | * Chalcedon nods |
02:34 | < ToxicFrog> | Anyways. /width and /height at the top of the script are the width and height in cells. |
02:34 | < ToxicFrog> | (it doesn't determine this automatically from the csv, which is one of the things I was going to write a wrapper for) |
02:35 | < ToxicFrog> | Actually, it may be easier for me to just write a bash script that does all this automatically and explain it afterwards. |
02:37 | <@Chalcedon> | possibly, but I wouldn't like to ask you to until I know I'm going to use it. |
02:37 | < ToxicFrog> | too late, I'm halfway through it already |
02:38 | <@Chalcedon> | heh |
02:38 | | * Chalcedon hugs TF |
02:38 | | * Vornicus-Latens returns |
02:40 | < ToxicFrog> | ...bad awk, "," is not "^" |
02:40 | | * Chalcedon wavest to Vron |
02:40 | <@Chalcedon> | -er- Vorn, sorry. |
02:41 | < ToxicFrog> | Oh, wait. |
02:43 | < ToxicFrog> | aqgrhadfhlksghkjashdfjasd |
02:43 | < ToxicFrog> | BEGIN { FS="," } doesn't seem to work. |
02:43 | < ToxicFrog> | Chalcy, can you guarantee that a field of a CSV will never contain spaces? |
02:43 | < ToxicFrog> | And/or other whitespace? |
02:43 | <@Chalcedon> | uh |
02:44 | | * Chalcedon pondersate |
02:44 | <@Chalcedon> | for just the numbers, yes |
02:44 | <@Chalcedon> | for the label columns, I think so, but I'm not sure. |
02:45 | <@Chalcedon> | unfortunately, I need to go to work in a little over an hour |
02:45 | <@Chalcedon> | -er- half an hour |
02:45 | < ToxicFrog> | "label columns"? |
02:46 | < ToxicFrog> | There are no such things in the csv you sent me. |
02:46 | < ToxicFrog> | Oh, never mind, problem sorted. |
02:46 | <@Chalcedon> | no, cos you asked me to leave them out :) |
02:46 | < ToxicFrog> | Oh, right. |
02:51 | | * Chalcedon hug TF |
02:54 | | * ToxicFrog huggles |
02:56 | | Vornicus-Latens is now known as Vornicus |
03:02 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: helumpah!] |
03:06 | < ToxicFrog> | Chalcedon: it's not going to be able to autodetect the highest number it needs, at least not yet. |
03:06 | < ToxicFrog> | So, can you give me an upper bound? |
03:06 | <@Chalcedon> | yes, 6 |
03:06 | <@Chalcedon> | as in 0-6 |
03:06 | <@Chalcedon> | (so, 7 in total) |
03:06 | < ToxicFrog> | So, that's 0 to 6, plus one more color for -. Got it. |
03:10 | < ToxicFrog> | Hmm. |
03:10 | < ToxicFrog> | (%stdin) doesn't behave the way the reference says it does. |
03:11 | < ToxicFrog> | Specifically, the reference says that (%stdin) (r) file opens standard input for reading, and ghostscript says that it's a syntax error. |
03:11 | < ToxicFrog> | Flarghle. |
03:12 | < ToxicFrog> | Temp files it is, then. |
03:12 | | * Chalcedon hug TF |
03:15 | < ToxicFrog> | ...hmm. That shouldn't be happening. |
03:19 | < ToxicFrog> | Aha. |
03:19 | < ToxicFrog> | It's blowing up when it tries to draw the title. |
03:20 | | * Chalcedon hugs TF |
03:20 | <@Chalcedon> | thank you very much, I must flee to work now. Back in a little over an hour, maybe 1.5 hours. |
03:20 | | Chalcedon is now known as ChalcyWork |
03:21 | < ToxicFrog> | I'll likely be asleep then, but I'll leave you with links to the final version. |
03:24 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
03:24 | | mode/#code [+o Chalcy] by ChanServ |
03:25 | | ChalcyWork [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
04:05 | < McMartin> | TF: What is this you're doing? |
04:35 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
04:41 | < Reiver> | A postscript renderer for a graph/grid. |
04:41 | < Reiver> | Chalcy's Project. |
04:42 | < McMartin> | Ah |
04:49 | < Reiver> | I can logdump the rest of the conversation if you want - it started informally in another channel. |
04:52 | | ChalcyGone [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
04:53 | | ChalcyGone is now known as Chalcedon |
04:56 | < Chalcedon> | did TF leaves ome instructions in here for me? |
04:56 | < Reiver> | Nein, sorry |
04:57 | < Chalcedon> | I'll ask tomorrow |
05:03 | | You're now known as TheWatcher |
05:08 | | MahalWork is now known as Mahal |
05:16 | | Mahal is now known as MahalAFK |
05:16 | < jerith> | Morning. |
05:22 | | * McMartin kills his X server in the backspace. |
05:54 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout] |
06:06 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code |
06:13 | | Vornicus [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
06:16 | | Vornicus [~vorn@67.50.40.ns-3674] has joined #code |
06:32 | | MahalAFK is now known as Mahal |
07:08 | | You're now known as TheWatcher[afk] |
07:09 | | Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: Pi, KarmaBot, Chalcedon, jerith, Mahal, Reiver, Chalain |
07:09 | | mode/#code [+o Chalain] by ChanServ |
07:09 | | Netsplit over, joins: Chalain |
07:09 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited] |
07:09 | | Netsplit over, joins: jerith |
07:09 | | Netsplit over, joins: Reiver, Mahal, Pi, KarmaBot |
07:09 | | mode/#code [+o jerith] by ChanServ |
07:09 | | mode/#code [+o Mahal] by ChanServ |
07:09 | | Netsplit over, joins: Chalcedon |
07:09 | | mode/#code [+o Pi] by ChanServ |
07:09 | | mode/#code [+o Chalcedon] by ChanServ |
07:10 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
07:10 | | mode/#code [+o ToxicFrog] by ChanServ |
07:12 | | Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: @Pi, KarmaBot, @Chalcedon, @jerith, @Mahal, Reiver, @Chalain |
07:14 | | Netsplit over, joins: Chalain, jerith |
07:14 | | mode/#code [+o Chalain] by ChanServ |
07:14 | | Netsplit over, joins: Mahal, Pi, KarmaBot |
07:14 | | mode/#code [+o jerith] by ChanServ |
07:14 | | mode/#code [+o Mahal] by ChanServ |
07:14 | | Netsplit over, joins: Chalcedon |
07:14 | | mode/#code [+o Pi] by ChanServ |
07:14 | | mode/#code [+o Chalcedon] by ChanServ |
07:19 | | Reiver [~reaverta@IRCop.Nightstar.Net] has joined #Code |
07:19 | | mode/#code [+o Reiver] by ChanServ |
07:46 | | timelady [~romana@Nightstar-14384.lns3.adl4.internode.on.net] has joined #Code |
08:02 | | timelady [~romana@Nightstar-14384.lns3.adl4.internode.on.net] has quit [Ping Timeout] |
08:04 | | timelady [~romana@Nightstar-14384.lns3.adl4.internode.on.net] has joined #Code |
08:09 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
08:10 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
08:10 | | mode/#code [+o Chalcy] by ChanServ |
08:10 | | Chalcy is now known as Chalcedon |
08:27 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Killed (NickServ (GHOST command used by Forgles))] |
08:27 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
08:30 | | timelady [~romana@Nightstar-14384.lns3.adl4.internode.on.net] has quit [Quit: run away! run away!] |
08:39 | | Vornicus is now known as Vornicus-Latens |
08:42 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has quit [Killed (NickServ (GHOST command used by Ser))] |
08:42 | | Ev3 [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has joined #Code |
08:43 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout] |
08:45 | | Chalcedon is now known as ChalcyZzz |
08:51 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
08:51 | | mode/#code [+o Chalcy] by ChanServ |
08:53 | | ChalcyZzz [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
08:55 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code |
09:37 | | You're now known as TheWatcher[wr0k] |
09:41 | | ReivZzz [~reaverta@IRCop.Nightstar.Net] has joined #Code |
09:41 | | mode/#code [+o ReivZzz] by ChanServ |
09:41 | | Reiver [~reaverta@IRCop.Nightstar.Net] has quit [Ping Timeout] |
09:47 | | ReivZzz is now known as Reiver |
10:13 | | Thaqui [~Thaqui@124.197.7.ns-13438] has quit [Ping Timeout] |
10:15 | | Thaqui [~Thaqui@124.197.7.ns-13438] has joined #code |
10:21 | | GeoTube [~Someone@Nightstar-2556.cable.ubr01.dund.blueyonder.co.uk] has quit [Killed (NickServ (GHOST command used by COL_GeoTube))] |
10:21 | | COL_GeoTube [~Someone@Nightstar-2556.cable.ubr01.dund.blueyonder.co.uk] has joined #code |
10:42 | | Thaqui [~Thaqui@124.197.7.ns-13438] has quit [Ping Timeout] |
10:58 | | Thaqui [~Thaqui@124.197.29.ns-12662] has joined #code |
11:00 | | MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code |
12:29 | | Ev3 [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has quit [Connection reset by peer] |
12:30 | | Ev3 [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has joined #Code |
12:32 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
12:32 | | Mahal [~Mahal@Nightstar-11770.worldnet.co.nz] has quit [Ping Timeout] |
12:32 | | Thaqui [~Thaqui@124.197.29.ns-12662] has quit [Ping Timeout] |
12:38 | | Mahal [~Mahal@Nightstar-19857.worldnet.co.nz] has joined #Code |
12:38 | | mode/#code [+o Mahal] by ChanServ |
13:12 | | Mahal [~Mahal@Nightstar-19857.worldnet.co.nz] has quit [Ping Timeout] |
13:17 | | Mahal [~Mahal@Nightstar-596.worldnet.co.nz] has joined #Code |
13:17 | | mode/#code [+o Mahal] by ChanServ |
13:23 | | Ev3 [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has quit [Connection reset by peer] |
13:24 | | Ev3 [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has joined #Code |
13:57 | | Ev3 [~Shemhazai@Nightstar-8901.ds1-ba.adsl.cybercity.dk] has quit [Quit: Don't try to read the quit message, that is impossible. Instead only realize the thruth; "there is no quit message" and you will see it is not you who read the quit message but the quit message who reads you.] |
14:17 | | MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Quit: Shoot me now. x_x] |
14:22 | | Reiver is now known as ReivZzz |
14:29 | | KBot [~fark.off@Nightstar-29550.neoplus.adsl.tpnet.pl] has joined #Code |
14:30 | | KarmaBot [~fark.off@Nightstar-29144.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
14:30 | | KBot is now known as KarmaBot |
15:27 | | You're now known as TheWatcher |
16:00 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Quit: NX wackiness, bbiam] |
16:01 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
16:01 | | mode/#code [+o ToxicFrog] by ChanServ |
16:02 | | mode/#code [+ooooov EvilDarkLord McMartin Raif Stephenie Vornicus-Latens KarmaBot] by ToxicFrog |
16:47 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout] |
16:57 | | EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code |
17:06 | | COL_GeoTube is now known as GeoTube |
17:15 | | You're now known as TheWatcher[afk] |
17:17 | | MahaLappy [~Mahal@Nightstar-12600.worldnet.co.nz] has joined #Code |
17:17 | | Mahal [~Mahal@Nightstar-596.worldnet.co.nz] has quit [Ping Timeout] |
18:12 | | Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has joined #code |
18:12 | | mode/#code [+o Vornicus] by ChanServ |
18:18 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
18:18 | | mode/#code [+o Chalcedon] by ChanServ |
18:20 | | * Chalcedon whips up a plate of cookies for TF |
18:23 | | * Vornicus would like to know if he has found a Cloak Of Invisibility To Bus Drivers. |
18:24 | <@Stephenie> | TF is in classes |
18:24 | <@Stephenie> | for another few hours :( |
18:30 | | * Chalcedon makes some extra cookies and gives one to Vorn |
18:30 | <@Chalcedon> | yeah, I figured TF wouldn't be in |
18:31 | | * Vornicus yays, nroms |
18:35 | | * Chalcedon gives Stephenie a cookie so she's not left out :) |
18:35 | <@Stephenie> | mmm cookie |
18:35 | | * Stephenie nibbles it |
18:35 | <@Stephenie> | Thank you! |
18:37 | <@McMartin> | Well, XMMS has just worked out for me why Full Throttle wasn't working. |
18:37 | <@McMartin> | To wit, it was finding Star Control II remix tracks and thinking they were part of the FT sound database. |
18:39 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has joined #Code |
18:39 | <@Vornicus> | heh |
18:39 | <@Vornicus> | how'd that happen? |
18:39 | <@McMartin> | "credits.ogg" in the current directory |
18:40 | <@Vornicus> | aha |
18:46 | | You're now known as TheWatcher |
18:47 | | Ev3 [~Shemhazai@Nightstar-8502.ds1-ba.adsl.cybercity.dk] has quit [Quit: Don't try to read the quit message, that is impossible. Instead only realize the thruth; "there is no quit message" and you will see it is not you who read the quit message but the quit message who reads you.] |
18:47 | <@Stephenie> | typo in the quit message lol |
18:49 | <@Vornicus> | oh noes typo |
18:49 | | MahaLappy is now known as Mahal |
18:50 | < GeoTube> | *tpyo |
18:52 | <@Stephenie> | lol |
18:52 | <@Stephenie> | i'm random today i'll go back to lurking like normal lol |
18:54 | < GeoTube> | *radnom |
18:55 | | * Stephenie smacks forhead |
18:55 | <@Stephenie> | yes that to |
18:55 | <@Stephenie> | lol |
18:55 | <@Stephenie> | thanks :P |
18:57 | | * Vornicus ponders Geotube |
18:57 | < GeoTube> | *P: |
18:57 | | * Vornicus then ponders Stephenie. |
18:57 | < GeoTube> | *neht |
18:57 | | * Stephenie wonders what Vornicus is pondering |
18:58 | | * GeoTube ponders what Stephenie is pondering about what Vornicus is pondering about GeoTube. |
18:58 | <@Stephenie> | lol |
19:05 | | Chalcedon is now known as ChalcyNap |
19:22 | | * Vornicus blings |
19:22 | | * Stephenie steals the bling |
19:24 | <@Vornicus> | :( |
19:24 | | * Stephenie laughs |
19:29 | | * Stephenie feels bad and hands back Vornicus's bling |
19:32 | <@Vornicus> | yay |
20:08 | | * Vornicus coats all involved in bling. |
20:08 | | * Stephenie feels shiney |
20:53 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code |
20:53 | < Janus> | May I ask a small linking/command line ish question please..? |
20:54 | < GeoTube> | You may, I won't be able to answer it though. |
20:57 | < Janus> | Hm, alright, though, it's more than probably neither of the two; I'm trying to sort all my code out so Subversion can babysit it, but... when I moved them into a folder, all the image/etc. resources became inaccessable. I'm sure there's some super easy way to keep them in a seperate folder, but I've the slightest... |
20:57 | < GeoTube> | have you tried fission? |
20:58 | < Janus> | I've tried /friction/. |
20:59 | <@Vornicus> | "inaccessible"? |
20:59 | <@Vornicus> | Are you using relative paths? |
20:59 | < Janus> | Yes. |
20:59 | <@Vornicus> | Hm |
20:59 | <@Vornicus> | What's the error message you get? |
21:00 | < Janus> | There's no error message; it just cannot find the images, and gives up, segfaulting along the way. |
21:02 | <@Vornicus> | ...aha. |
21:02 | < Janus> | There's probably some convention I've overlooked to make this less Burning Pain. |
21:04 | <@Vornicus> | technically your image loading libraries should be giving you /something/ in terms of an error message. |
21:04 | < Janus> | Error handling would be one of the said conventions, yes. |
21:05 | <@Vornicus> | What's your image library? |
21:06 | < Janus> | SDL by itself only throws back a -1 should something go awry. Apparently, I'm supposed to do something with said number. If nothing happens, it'll try to use a NULL pointer for something, and implode quietly. |
21:07 | <@Vornicus> | SDL? just plain, with just the load_bmp, or SDL_image where you have more? |
21:08 | | * Vornicus thwacks libsdl.org |
21:08 | < Janus> | SDL_image I believe. |
21:08 | <@Vornicus> | you're loading things other than plain bitmaps, right? |
21:09 | < Janus> | Yes, .png .gif and .jpg. |
21:09 | <@Vornicus> | ok |
21:09 | <@Vornicus> | then sdl-image it is, 'less you wrote your own decoders. ...which would be, of course, /fscking retarded/. |
21:11 | < Janus> | I'd be hard pressed to write a .bin decoder, let alone those. |
21:13 | <@Vornicus> | gnar. without access to the SDL website, and without any experience with sdl-image, I can't help much |
21:14 | < Janus> | Really..? I didn't even think SDL was much of a concern. |
21:14 | | * Janus re-phrases the question. |
21:15 | <@Vornicus> | I need documentation, to see the right way to handle the situation. |
21:16 | < Janus> | How would one access image files (as well as other files) that are at, say, "/this/that/images" when everything else is in "/this/that/everythingelse"? |
21:16 | <@Vornicus> | .. |
21:16 | <@Vornicus> | is an alias for "the directory above this one" |
21:17 | < Janus> | Yes, sorry for the vague question... |
21:18 | <@Vornicus> | I figured you had pointed the path properly, but were still having problems |
21:18 | < Janus> | Overestimated me~ |
21:19 | <@Vornicus> | I must admit though that that's kinda hard to do. |
21:21 | < Janus> | I'd hate to use the complete path from C:/ , as I've heard that's quite anti-portable, but I can't seem to think of another way.. |
21:23 | <@Vornicus> | Your best bet is actually something like... |
21:23 | <@Vornicus> | ...er, gimme am inute |
21:23 | | Vornicus changed the topic of #Code to: #Code - It's like swiss bank accounts, but for coders! | Have a pastebin! http://pastie.caboo.se/ | Text editors in a nutshell: http://sycophant.wordpress.com/files/2006/03/emacs.jpg |
21:25 | <@Vornicus> | http://pastie.caboo.se/22939 |
21:25 | <@Vornicus> | that |
21:27 | < Janus> | Hmm... |
21:28 | <@Vornicus> | my make-fu is weak, though. |
21:29 | < Janus> | My make-fu is comatose. |
21:30 | | * Janus digs around with it. |
21:31 | | ChalcyNap is now known as Chalcedon |
21:37 | <@ToxicFrog> | Chalcy! |
21:37 | <@ToxicFrog> | I didn't post it last night because it's not done. |
21:37 | <@Chalcedon> | TF! |
21:37 | <@Chalcedon> | right |
21:37 | <@Chalcedon> | I was not sure if it was that or because this silly thing fell offline |
21:37 | | * Chalcedon hug TF |
21:37 | <@ToxicFrog> | The reason it's not done is because I need a sample of a CSV with the date labels in it! |
21:38 | | * Chalcedon thwap forehead |
21:38 | <@ToxicFrog> | Everything else is working. |
21:38 | <@Chalcedon> | ok, new email coming up. |
21:38 | <@ToxicFrog> | (also, I built a CPU in lab today. I rock.) |
21:38 | <@Chalcedon> | oooh! shiny. |
21:38 | <@Stephenie> | yay CPU! fun Ben! |
21:38 | <@Chalcedon> | how does one build a CPU? |
21:39 | <@ToxicFrog> | Well, in this case, "described it in VHDL" (which is a hardware description language) "and then mapped it onto an FPGA for testing" |
21:39 | <@ToxicFrog> | FPGA being Field Programmable Gate Array, you can compile VHDL and then load it onto the FPGA and it emulates the hardware that the VHDL describes. |
21:40 | <@ToxicFrog> | Which is a handy way to test your design without spending tens of thousands of dollars on microfabrication lab equipment. |
21:40 | < GeoTube> | AOWP the QPAQ |
21:40 | <@ToxicFrog> | Die, GeoTube. |
21:40 | < GeoTube> | :o |
21:40 | | * GeoTube legs it. |
21:40 | <@ToxicFrog> | It's a small CPU, though. Four bits wide, twelve possible instructions, four registers. |
21:40 | <@Chalcedon> | that is handy |
21:41 | | * Vornicus always wanted to do that |
21:42 | <@Chalcedon> | For comparison, what would the CPU one would be likely to find in a computer be like? |
21:42 | | * Chalcedon eyes that statement |
21:43 | <@Chalcedon> | I don't think I expressed that very well. |
21:43 | <@ToxicFrog> | 32 or 64 bits, 16+ registers, 100+ possible instructions. |
21:44 | <@ToxicFrog> | Including many /classes/ of instructions, like memory access, that this one can't do. |
21:44 | <@Vornicus> | MMIX (a fictional thing, but indicative of modern non-desktop procs) has 64 bits, 256 registers, and 256 instructions |
21:44 | <@Vornicus> | er |
21:44 | <@Vornicus> | 288 instructions, it has 32 special ones |
21:44 | <@Vornicus> | er |
21:45 | <@Vornicus> | 288 registers |
21:45 | | * Chalcedon nods |
21:45 | <@Chalcedon> | intriguing |
21:45 | <@Chalcedon> | do you want the site numbers as well, or just the dates? |
21:45 | < Janus> | Do registers have anything to do with using the 'register' key word with variables? |
21:45 | <@Vornicus> | Yes, actually |
21:46 | <@ToxicFrog> | Umm. The site numbers aren't just 0..max_col? |
21:46 | <@Chalcedon> | 1-max |
21:46 | <@ToxicFrog> | Sure, include them. |
21:46 | <@Vornicus> | C's "register" keyword means "if possible, keep this variable in a register forever" |
21:46 | <@Vornicus> | or "for as long as this variable exists" |
21:47 | < Janus> | It's supposedly much faster, but can't be pointed to in that case. |
21:47 | <@Vornicus> | but modern compilers ignore register because they're generally better at optimizing code than the programmer |
21:48 | <@Chalcedon> | TF: email sent |
21:49 | <@Chalcedon> | so compilers go through and figure out what information ought to be stored where for best access? |
21:49 | <@Chalcedon> | (or have I taken an idea, uprooted it and planted it somewhere it doesn't belong) |
21:50 | <@Vornicus> | Chalcedon: exactly |
21:50 | <@Chalcedon> | ok. |
21:52 | <@ToxicFrog> | Chalcedon: if the first line is labels, will it always start with a ,? |
21:53 | <@Vornicus> | Compilers nowadays are very good at determining the best time for variables to show up and go away |
21:55 | | * Chalcedon eyes it |
21:56 | <@Chalcedon> | you mean a comma? Oh, the very first cell is empty |
21:56 | <@Chalcedon> | yes, I remember having this problem before |
21:56 | <@ToxicFrog> | No, that's a good thing. |
21:56 | <@ToxicFrog> | It means that I can easily distinguish between files that start with a label line and files that don't. |
21:57 | <@Chalcedon> | :) |
22:00 | | Clairvoire [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code |
22:01 | <@ToxicFrog> | ...oh, chorfle. |
22:01 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Ping Timeout] |
22:01 | <@ToxicFrog> | The dates have - in them. |
22:02 | <@ToxicFrog> | Empty cells also have - in them. |
22:02 | <@Chalcedon> | the grey colour for - isn't actually necessary, it only showed up in the incorrect first data set I sent |
22:02 | | Clairvoire is now known as Janus |
22:03 | <@Chalcedon> | (because the others are a sum of the first one, thus no -) |
22:03 | <@ToxicFrog> | Too late, fixed it. |
22:09 | <@ToxicFrog> | http://www.funkyhorror.net/toxicfrog/projects/stoatburgers.png |
22:09 | <@ToxicFrog> | Title was autodetected from file name; Y-axis labels were read from file; X-axis labels are hardcoded to start at 1 and count up from there. |
22:09 | <@ToxicFrog> | It properly handles both files with X-labels and files without, but Y-labels must be present. |
22:10 | <@ToxicFrog> | http://www.funkyhorror.net/toxicfrog/projects/stoatburgers.bash |
22:10 | <@ToxicFrog> | http://www.funkyhorror.net/toxicfrog/projects/stoatburgers.ps |
22:10 | <@ToxicFrog> | Put them both in the same directory, make stoatburgers.bash executable, and ./stoatburgers.bash filename.csv |
22:12 | <@Chalcedon> | (these are actually NorwayRatBurgers but nm :D) |
22:12 | <@ToxicFrog> | Go on, give it a try! |
22:12 | | * ToxicFrog bounces around |
22:13 | <@Chalcedon> | it's going to take a wee while as I need to rearrange some stuff. |
22:14 | | Clairvoire [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code |
22:16 | <@Chalcedon> | lemme check, make stoatburgers.bash > stoatburgers.exe? |
22:16 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Ping Timeout] |
22:16 | <@Vornicus> | ...no |
22:17 | <@Vornicus> | stoatburgers.bash is a bash script, you need to give yourself permission to run it. |
22:17 | <@Chalcedon> | I was wondering. Making stoatburgers.bash executable requires some other process? |
22:17 | <@Vornicus> | if you're on Windows and don't have Cygwin, you're kinda stuck. |
22:17 | | * Chalcedon has cygwin |
22:17 | <@Vornicus> | ok. navigate to the directory via cygwin's command shell, chmod +x stoatburgers.bash |
22:18 | <@Chalcedon> | arg. I haven't used it a whole lot. Bash shell or am I looking for something else? |
22:18 | <@Vornicus> | yeah, bash shell |
22:19 | < GeoTube> | then chown -hR <your username> /* |
22:19 | | * GeoTube was joking. |
22:19 | < GeoTube> | [as in ... .. don't do that .. ... ..] |
22:19 | | * Vornicus bites Geotube's arm of. |
22:19 | <@Vornicus> | s/of/off/ |
22:20 | | mode/#code [+ooo Clairvoire EvilDarkLord Mahal] by ToxicFrog |
22:20 | | mode/#code [+m] by ToxicFrog |
22:20 | <@ToxicFrog> | Vorn's instructions are correct. |
22:20 | <@Vornicus> | note that in cygwin, C:\ is actually /cygdrive/c |
22:20 | <@ToxicFrog> | By "make executable", I mean "enable the permission that allows you to execute it" |
22:20 | | * Chalcedon nods |
22:20 | <@ToxicFrog> | You can also use: $ bash stoatburgers.bash filename.csv |
22:20 | <@ToxicFrog> | Rather than using chmod and then running it directly. |
22:21 | <@Chalcedon> | ok... navigate to directory, this is the same as (or similar to) navigating in DOS, or do I just need to type /cygdrive/c/<whatever> |
22:22 | <@Vornicus> | essentially the same as |
22:22 | <@ToxicFrog> | With the exception that it's all done using "cd"; there's none of this "typing in drive letters to switch drives" nonsense. |
22:22 | <@Vornicus> | use "cd" to move around, "ls" to see what's there, "mv" is rename, "cp" is copy, "rm" is remove. |
22:23 | <@Chalcedon> | ok, I've done /something/ wrong because it just told me C:/ doesn't exist! |
22:23 | <@Vornicus> | use /cygdrive/c |
22:24 | <@ToxicFrog> | ...C: and c: work on mine, though. |
22:24 | <@Vornicus> | copy the command and the response? |
22:24 | | Clairvoire [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Ping Timeout] |
22:24 | <@ToxicFrog> | Oh. This is only because I've fiddled with my mountpoints. |
22:24 | <@ToxicFrog> | (so that they're /c instead of /cygdrive/c/) |
22:25 | <@ToxicFrog> | Never mind. |
22:25 | <@Chalcedon> | $ /cygdrive/c |
22:25 | <@Chalcedon> | bash: cygdrive/c: is a directory |
22:25 | <@Chalcedon> | (couldn't figure out how to copy) |
22:26 | <@ToxicFrog> | As Vorn said, you use cd. |
22:26 | <@ToxicFrog> | $ cd /cygdrive/c |
22:26 | <@ToxicFrog> | ben@durandal /cygdrive/c |
22:26 | <@ToxicFrog> | $ ls |
22:26 | <@ToxicFrog> | (lots of stuff including boot.ini, WINNT/, etc) |
22:26 | <@Chalcedon> | right, doofus forgot the first slash when she tried that |
22:27 | <@ToxicFrog> | Basically, in Cygwin, all paths are relative to the Cygwin install directory, which is mapped to / |
22:27 | <@ToxicFrog> | In order to access windows drives, it provides the "magic directory" /cygdrive; any windows drive is accessible as /cygdrive/<driveletter> |
22:28 | <@Chalcedon> | it works! |
22:28 | <@ToxicFrog> | The script? |
22:28 | <@ToxicFrog> | Yaye! |
22:29 | <@Vornicus> | wootatron |
22:30 | | * Chalcedon skips about |
22:31 | | * Chalcedon hugs TF |
22:32 | | * ToxicFrog hugs |
22:33 | <@Chalcedon> | what program should I use to modify the colours? |
22:33 | <@Chalcedon> | (it comes up funny in notepad) |
22:33 | <@ToxicFrog> | Two options: |
22:34 | <@ToxicFrog> | - use a program that handles LF newlines, such as NEdit, wordpad, SCite, etc |
22:34 | <@ToxicFrog> | - $ unix2dos stoatburgers.ps |
22:34 | <@ToxicFrog> | Bear in mind that that the "COLORTABLE" entry in stoatburgers.bash is not actually used, it's an experiment that didn't work out; you have to modify the postscript file. |
22:35 | | Raif [~corvusign@Nightstar-7918.hsd1.mn.comcast.net] has quit [Killed (NickServ (GHOST command used by Raif_))] |
22:35 | | Raif_ [~corvusign@Nightstar-7918.hsd1.mn.comcast.net] has joined #Code |
22:35 | | * Chalcedon nods |
22:35 | | Raif_ is now known as Raif |
22:36 | | mode/#code [+o Raif] by ToxicFrog |
22:36 | <@Chalcedon> | now I need to remember my rgb colours |
22:37 | <@Chalcedon> | NEdit seems to be useful for a lot of different things, I'm wondering if it's worth me downloading and trying |
22:37 | <@ToxicFrog> | It should come with Cygwin. |
22:37 | <@ToxicFrog> | (NEdit will also color-code both halves of this script) |
22:38 | <@Chalcedon> | i have an xedit |
22:38 | <@Chalcedon> | actually I seem to recall installing NEdit |
22:39 | <@ToxicFrog> | xedit is...rather primitive. |
22:39 | <@ToxicFrog> | Well, easy way to find out: $ nedit |
22:39 | <@ToxicFrog> | If it tells you command not found, it's not installed. |
22:39 | <@ToxicFrog> | If it says unable to open display, it's installed but you don't have an X server running. |
22:41 | <@Chalcedon> | do I need to return it to /cygdrive/c |
22:41 | <@ToxicFrog> | Murrr? |
22:41 | <@Chalcedon> | nm |
22:41 | <@ToxicFrog> | No, it should work from anywhere if it's installed. |
22:41 | | * Chalcedon pokes it |
22:42 | <@ToxicFrog> | ? |
22:42 | <@ToxicFrog> | What's it doing? |
22:42 | <@Chalcedon> | not being able to display |
22:42 | | * Chalcedon tries to remember how to run an xserver |
22:43 | <@ToxicFrog> | You might have a "start X server" icon on the desktop. |
22:43 | <@ToxicFrog> | If not, try $ startxwin.sh |
22:44 | <@Chalcedon> | my computer didnt like that experience, I think I have too many windows open. |
22:44 | <@ToxicFrog> | ...what happened? |
22:45 | <@Chalcedon> | I pressed show desktop |
22:45 | <@Chalcedon> | it took aaaaages |
22:45 | <@ToxicFrog> | It should, in theory, dump out a lot of info and then an X icon should appear in the systray. |
22:45 | <@ToxicFrog> | Aah. |
22:45 | <@Chalcedon> | I thought I rememebered making a desktop xserver icon, apparently not. |
22:46 | | * ToxicFrog just changes desktop to an empty one when he needs to access an icon on it. |
22:46 | <@Chalcedon> | yeah... |
22:46 | <@Chalcedon> | I'm looking foward to nuking this and trying Ubuntu. |
22:46 | <@ToxicFrog> | Alright, so the X server should be started with either $ startxwin.sh, or (from windows!) c:/cygwin/lib/Singular/startserver.bat |
22:47 | <@ToxicFrog> | Assuming Cygwin is installed in c:/cygwin/ of course. |
22:47 | <@Chalcedon> | yes it is |
22:47 | <@Chalcedon> | it started fine, but it hasn't given me the bash shell back |
22:47 | <@ToxicFrog> | Umm. Hit enter? |
22:48 | <@Chalcedon> | :D |
22:48 | <@ToxicFrog> | It might have given it back before it started dumping out info. |
22:48 | <@ToxicFrog> | In which case the prompt gets lost. |
22:48 | <@Chalcedon> | hmmm |
22:48 | <@ToxicFrog> | (for stuff that /doesn't/ give it back, you can always open another one, or $ command & is bash for "run command in the background") |
22:48 | <@Chalcedon> | the xserver appears to have some issues |
22:48 | <@ToxicFrog> | ...what kind? |
22:49 | <@Chalcedon> | can I copy from the bash shell, and how? |
22:49 | <@ToxicFrog> | Yes, but how depends on what terminal emulator it's running in. |
22:49 | <@Chalcedon> | it's detecting nested calls in something and so is bailing. |
22:49 | <@ToxicFrog> | If it's rxvt, just hilight with the left mouse to copy. |
22:49 | <@Chalcedon> | ? |
22:49 | <@Chalcedon> | it wont highlight |
22:50 | <@ToxicFrog> | If it's the default cmd.exe terminal emulator, click the icon in the upper left corner, edit, mark, drag-select the text you want and hit enter to copy. |
22:50 | <@Chalcedon> | winClipboardWindowProc - WM_DRAWCLIPBOARD - Nested calls detected. Bailing. |
22:51 | <@Chalcedon> | its produced the same error several times |
22:51 | <@ToxicFrog> | Is nedit starting up anyways? |
22:51 | <@ToxicFrog> | Or does it die? |
22:51 | <@Chalcedon> | no. |
22:51 | <@Chalcedon> | says can't display |
22:51 | <@ToxicFrog> | Paste the exact error here? |
22:51 | <@Chalcedon> | also this error: winProcSetSelectionOwner - Clipboard not yet started, aborting. |
22:52 | | You're now known as TheWatcher[afk] |
22:52 | <@ToxicFrog> | (also, try installing this overtop of your c:\cygwin\cygwin.bat: http://www.funkyhorror.net/toxicfrog/cygwin.bat -- it uses the rxvt terminal emulator)_ |
22:52 | <@Chalcedon> | $ nedit |
22:52 | <@Chalcedon> | NEdit: Can't open display |
22:52 | <@ToxicFrog> | Oh. |
22:52 | <@ToxicFrog> | $ export DISPLAY=localhost:0. |
22:52 | <@ToxicFrog> | $ export DISPLAY=localhost:0.0 |
22:52 | <@ToxicFrog> | $ nedit |
22:53 | <@ToxicFrog> | It's been a while since I ran X11 from the shell, but as I recall both "nested calls detected, bailing" and "clipboard not yet started" are normal. |
22:53 | <@Chalcedon> | ok, it didn't like the export command. |
22:53 | <@ToxicFrog> | ...what'd it say? |
22:54 | <@Chalcedon> | $ export DISPLAY =localhost:0. |
22:54 | <@Chalcedon> | bash: export: `=localhost:0.': not a valid identifier |
22:55 | <@ToxicFrog> | All one word. |
22:55 | <@ToxicFrog> | No space between DISPLAY and =. |
22:55 | <@ToxicFrog> | Also, just the second export. The first was a typo. |
22:56 | | * Chalcedon thwap forehead |
22:56 | <@Chalcedon> | aha! |
22:56 | <@Chalcedon> | it worked |
22:58 | | * Chalcedon hug TF, supply many cookies |
22:58 | | * ToxicFrog nibbles |
22:59 | <@ToxicFrog> | Now, if you open the scripts (both of them - it's tabbed) it should automatically detect them as bash and postscript and color-code apropriately. |
22:59 | <@Chalcedon> | ooh! |
22:59 | <@Chalcedon> | hey cool |
23:00 | <@Chalcedon> | what languages does NEdit work with? |
23:00 | <@ToxicFrog> | Preferences->Language Mode for a list. |
23:00 | <@ToxicFrog> | And you can add more fairly easily. |
23:01 | <@Chalcedon> | hey it does Python too. |
23:01 | <@ToxicFrog> | Also, try: Preferences->Statistics Line, Preferences->Incremental Search Line, Preferences->Tab Stops (if you don't like 8 space tabs), and Preferences->Show Matching (...)->Range |
23:02 | <@ToxicFrog> | Mine does Ada, Awk, C++, C, CSS, csh, Fortran, Java, JavaScript, LaTeX, Lex, Lua, Makefile, Matlab, NEdit Macro, Pascal, Perl, PostScript, Python, regular expressions, SGML/HTML, SQL, bash, TCL, VHDL, Verilog, XML, .XResources, and Yacc. |
23:02 | <@ToxicFrog> | But I've modified it a bit. |
23:03 | | * Chalcedon nods |
23:03 | <@Chalcedon> | I wish I'd fiddled with this earlier. |
23:06 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code |
23:06 | <@ToxicFrog> | It's pretty awesome. |
23:07 | | mode/#code [+o Janus] by ToxicFrog |
23:08 | | * Janus concurs |
23:13 | | You're now known as TheWatcher |
23:13 | <@Chalcedon> | hi TW |
23:13 | | * Chalcedon hugs TF again |
23:13 | | * ToxicFrog huggles Chalcy and ponders food |
23:16 | <@TheWatcher> | Hi Chalcy *hugs* |
23:19 | <@Chalcedon> | ghostscript is getting an unrecoverable error |
23:21 | <@ToxicFrog> | Paste? |
23:21 | <@Chalcedon> | Current allocation mode is local |
23:21 | <@Chalcedon> | Current file position is 1504 |
23:21 | <@Chalcedon> | GPL Ghostscript 8.50: Unrecoverable error, exit code 1 |
23:21 | <@Chalcedon> | done. |
23:22 | <@ToxicFrog> | No, the bit before that that says what the actual error is. |
23:22 | <@Chalcedon> | sorry |
23:22 | <@Chalcedon> | Error: /typecheck in --cvi-- |
23:22 | <@Chalcedon> | Operand stack: |
23:22 | <@Chalcedon> | cdate cdate cdate cdate cdate (-) |
23:22 | <@Chalcedon> | Execution stack: |
23:22 | <@Chalcedon> | %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nostringval-- |
23:22 | <@ToxicFrog> | ...wtf |
23:22 | <@Chalcedon> | Dictionary stack: |
23:22 | <@Chalcedon> | --dict:1124/1686(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)-- |
23:23 | <@Chalcedon> | I did change the colour codes |
23:23 | <@Chalcedon> | could I have stuffed something up? |
23:23 | <@ToxicFrog> | Yes, but if you had it would likely have barfed with a syntax error earlier. |
23:23 | <@ToxicFrog> | Are you using the same data file you sent me? If not, send me the one you're using? |
23:24 | <@Chalcedon> | no, will send now. |
23:24 | <@Chalcedon> | oh, this one doesn't have column numbers |
23:24 | <@Chalcedon> | maybe thats it |
23:24 | <@ToxicFrog> | That /shouldn't/ be it. |
23:24 | <@ToxicFrog> | Lack of row numbers will break it horribly, though. |
23:25 | | * ToxicFrog idly rereads "Monstering!" |
23:26 | <@Chalcedon> | no, it definitely has row numbers |
23:26 | <@Chalcedon> | no, same error with column numbers |
23:26 | <@Chalcedon> | will send file now. |
23:26 | | * Vornicus eyes the serve |
23:27 | <@Vornicus> | okay, how do you encrypt a password on here? |
23:27 | | MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code |
23:28 | <@Chalcedon> | sent |
23:28 | <@Chalcedon> | oh wow, it's lunch time |
23:28 | <@Chalcedon> | Vorn so far as I know you can't |
23:28 | <@Chalcedon> | Hi MCO |
23:28 | <@Vornicus> | not on /here/, on the *nix server |
23:29 | <@Vornicus> | I need to encrypt a password and I can't find the tool that gives the right password. |
23:29 | <@Vornicus> | the right encryption, that is |
23:29 | <@ToxicFrog> | Depends on how your system is configured. |
23:29 | <@ToxicFrog> | md5sum -s will generate appropriate hashes if you're using md5 passwords. |
23:30 | <@ToxicFrog> | If not, you'll need to use crypt(3). |
23:30 | <@Vornicus> | md5sum doesn't appear to have an -s option |
23:31 | <@ToxicFrog> | Umm. $ echo -n password | md5sum |
23:31 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
23:31 | <@ToxicFrog> | I forget what it is that has the -s option for hashing strings instead of files. |
23:31 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
23:31 | | mode/#code [+o Chalcedon] by ChanServ |
23:31 | <@ToxicFrog> | Wibs, Chalcy. |
23:31 | <@Chalcedon> | hello |
23:31 | <@Vornicus> | ...nope, that's not the right encryption... |
23:31 | <@Chalcedon> | did I miss anything? |
23:32 | <@ToxicFrog> | Vornicus: what does an encrypted password look like? |
23:33 | <@Vornicus> | 52 alphanumeric characters and an equals sign |
23:34 | <@ToxicFrog> | That sounds like base64 encoding. |
23:34 | <@ToxicFrog> | It's definitely not md5 or crypt. |
23:34 | | mode/#code [+o MyCatOwnz] by Chalcedon |
23:34 | <@Chalcedon> | oops |
23:34 | <@Chalcedon> | hi MCO |
23:35 | | * MyCatOwnz ponders. |
23:35 | <@ToxicFrog> | It's not sha1sum either. |
23:35 | <@MyCatOwnz> | Idea! |
23:35 | | * MyCatOwnz pouncehugs Chalcy. ^_^ |
23:35 | | * Chalcedon is flattened |
23:35 | <@Vornicus> | ...interesting |
23:36 | | * MyCatOwnz pouncehugs Chalcy *gently* |
23:37 | <@Vornicus> | okay, there's several kinds of passwords in the database, some start with e1... and continue from there to 52 chars, some others start with e2... and go to 56 chars, and some start with e0 and go to only about 40. |
23:37 | <@Vornicus> | Each e* prefix actually extends several characters in. |
23:37 | <@MyCatOwnz> | That doesn't sound good. Most cryptographically secure hashing functions produce fixed-size output. There should also be no discernible pattern, otherwise you're in deep poo. |
23:38 | <@Vornicus> | I think it's probably a marker that creates a distinction between several hashing algorithms. |
23:38 | <@MyCatOwnz> | Could be, but wouldn't it be more secure to pick the most secure of the three and stick to that one alone? |
23:39 | <@Vornicus> | I don't know |
23:39 | <@ToxicFrog> | Well. Sha1sum is 44 chars long, md5sum is 36. |
23:39 | <@Vornicus> | the lengths is... i... |
23:39 | <@ToxicFrog> | I don't remember how long crypt is other than "short". |
23:39 | <@MyCatOwnz> | ToxicFrog: is that bytes of entropy or characters of base64? |
23:39 | <@Vornicus> | the e1 type is 52 characters long, and has an eight-character prefix |
23:40 | | * Chalcedon hunts for lunch |
23:40 | <@Vornicus> | WHich means that the meaningful bit is 44 chars |
23:40 | <@ToxicFrog> | MyCatOwnz: neither, it's characters in the hex representation of the hash. |
23:40 | <@ToxicFrog> | Vornicus: if all the characters are valid hex digits that's probably sha1sum. |
23:40 | <@Vornicus> | ...except that this is obviously not hex |
23:40 | <@MyCatOwnz> | ToxicFrog: so, 44 chars -> 22 bytes, aight? |
23:40 | <@ToxicFrog> | MCO: which means that the actual size of the hash in bytes is...yes. |
23:41 | <@ToxicFrog> | Hmm. The trailing = is, IIRC, EOF in base64. |
23:41 | <@ToxicFrog> | Try running it through uudecode or something? |
23:41 | <@Vornicus> | which means about 30 base64 chunks |
23:42 | <@MyCatOwnz> | k. According to the manpage, crypt() gives a 56 bit output key w/ a 12 bit salt. |
23:42 | <@MyCatOwnz> | Manpage doesn't say how what representation that's encoded into, though. |
23:43 | <@Vornicus> | 56 bits is /7 bytes/ |
23:43 | <@ToxicFrog> | Typically a two character salt and some short set of ASCII characters. |
23:43 | <@ToxicFrog> | And it doesn't say "56-bit output key" |
23:44 | <@ToxicFrog> | It says "8 byte input string, from which it takes the low 7 bits of each byte to generate a 56-bit input key" |
23:44 | <@ToxicFrog> | From that key, it then generates a 13 character readable hash, consisting of a two character salt followed by the eleven characters of the hash itself. |
23:45 | | * Vornicus can't figure out how to use uudecode to decode something that's not in its format. |
23:46 | | * Vornicus is also not patient enough to figure out the correct format. |
23:50 | <@MyCatOwnz> | ToxicFrog: whoopsy =) |
23:50 | <@MyCatOwnz> | ToxicFrog: mental note to read man pages more closely in future. |
23:54 | <@Vornicus> | ...ssha? |
23:54 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
23:54 | | mode/#code [+o Chalcy] by ChanServ |
23:54 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Killed (NickServ (GHOST command used by Chalcy))] |
23:54 | | Chalcy is now known as Chalcedon |
23:55 | <@ToxicFrog> | "After the interview's done, I trust I'll never see you within a hundred yards of the hotel again." "Not unless I break in one night wish a batch of dynamite strapped to a bunch of dead weasels to create an explosive meat geyser all over your lobby." |
23:56 | <@Chalcedon> | ? |
23:56 | <@Vornicus> | yey Spider Jerusalem! |
23:56 | | MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Connection reset by peer] |
23:56 | <@Chalcedon> | oh, random question. if you were writing a program to weigh berries (10 weigh stations filling one tub below them to a certain weight), how would you arrange the dumps from the weigh station to get the right weight. (I am asking because this has been done two different ways at Forjs work, one by an electronics engineer who happens to be able to program and one by someone whos job it is to write this stuff, the way the latter has |
23:56 | <@Chalcedon> | written it I simply don't feel is logical for someone with even so basic a grasp of programming as I have). |
23:56 | <@ToxicFrog> | Chalcedon: I'm rereading Transmetropolitan in random order. |
23:56 | <@Chalcedon> | right. |
23:57 | <@ToxicFrog> | Umm. |
23:57 | <@ToxicFrog> | I don't understand the question. |
23:58 | | MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code |
23:58 | <@Chalcedon> | you have 10 weights of berries which are all less than the weight that needs to go into the berry packet, you can dump any combination of the 10 into the packet in order to get the right weight. |
23:58 | <@ToxicFrog> | Oh god no. |
23:58 | <@ToxicFrog> | It's a packing problem. |
23:59 | | * Chalcedon hug TF |
23:59 | <@Chalcedon> | answer me this one then |
23:59 | | * ToxicFrog runs away screaming |
23:59 | <@Vornicus> | The Greedy Algorithm! |
23:59 | <@Chalcedon> | hmm, the first solution was as soon as any of the 10 sum to the correct weight, dump into packet and move on, the other was when three of the 10 equal the correct weight, dump. |
23:59 | <@Chalcedon> | which is more logical |
23:59 | <@Chalcedon> | in fact, is the second logical at all? |
--- Log closed Thu Nov 16 00:00:04 2006 |