code logs -> 2010 -> Mon, 29 Mar 2010< code.20100328.log - code.20100330.log >
--- Log opened Mon Mar 29 00:00:49 2010
00:01
<@Vornicus>
The only reliable way, as far as I can tell, to see if you're done, is to catch EOFException.
00:03
<@Vornicus>
so while (true) is your best bet, I think.
00:03
< Orthia>
Oh. Lovely.
00:04
< Orthia>
Though I am used to Try/Catch killing a program
00:04
< Orthia>
What do I need to code differently to let it do this naturally?
00:05
<@Vornicus>
Nothing, just don't rethrow! your other try/catches don't kill the program.
00:05
<@Vornicus>
Indeed that's what try/catch is about, so that it doesn't kill your program.
00:09 AnnoDomini [annodomini@Nightstar-3090c769.adsl.tpnet.pl] has quit [[NS] Quit: Need to sleep.]
00:09
<@Vornicus>
(the throws thing says the function is allowed to fail as a whole)
00:09
< Orthia>
bah, if we were returning bytes, we can have a valid end condition
00:09
<@Vornicus>
I know
00:09
< Orthia>
Program errors out because while(true) does not allow the return foo; to ever be reached
00:10
<@Vornicus>
inside the while loop, your try/catch contains the adding in the try, and break; in the catch.
00:12
< Orthia>
augh
00:13
< Orthia>
break cannot be used outside of a loop or a switch
00:13
<@Vornicus>
it should be inside a loop!
00:13
<@Vornicus>
Show me your code.
00:15
< Orthia>
nm, got it
00:17
<@Vornicus>
Show me anyway.
00:17
< Orthia>
http://pastebin.starforge.co.uk/232
00:19
<@Vornicus>
There you go.
00:20
< Orthia>
That's it?
00:20
<@Vornicus>
That's it.
00:20
<@Vornicus>
But you actually want to take an InputStream and then construct a DataInputStream from it.
00:21
< Orthia>
blarg. Typecasting?
00:21
<@Vornicus>
No, construct.
00:22
<@Vornicus>
Can you /please/ read the documentation I link to, it's kind of important.
00:24
< Orthia>
This is more "How do I apply a constructor to something I am recieving via a function call?"
00:24
<@Vornicus>
The same way you apply a constructor to anything else!
00:25
<@Vornicus>
Look at the DataInputStream constructor. What's it take?
00:26
< Orthia>
InputStream in
00:27
<@Vornicus>
okay, so to construct a DataInputStream we need an InputStream
00:27
<@Vornicus>
We should be passing an InputStream into our function anyway
00:28
< Orthia>
...oh
00:28
< Orthia>
DataInputStream input = new DataInputStream(in);
00:28
<@Vornicus>
exactly
00:28
< Orthia>
As a decleration? Though that doubles our memory.
00:28
<@Vornicus>
No it doesn't
00:28
<@McMartin>
If you're reading things that aren't bytes, you'll need it to be a DataInputStream.
00:29
< Orthia>
OK.
00:29
<@Vornicus>
Well, technically it adds a DataInputStream with the in member, but that's all of 8 bytes.
00:29
<@Vornicus>
Poor us.
00:29
< Orthia>
McM: We are.
00:29
< Orthia>
We're also using a try/catch block to end our loop for wont of better methods.
00:29
<@Vornicus>
We're dragging thousands of objects in anyway!
00:29
< Orthia>
OK.
00:29
<@Vornicus>
(each of those Integers is an object)
00:30
< Orthia>
http://pastebin.starforge.co.uk/233
00:30
<@Vornicus>
(technically, again, in the Real World, all of our LZW classes would be stream-in stream-out)
00:30
<@Vornicus>
There you go.
00:30
< Orthia>
(I was wondering why we didn't do that, other than it broke our shiny for-loops, but ok)
00:30
<@Vornicus>
Okay, let's work on listToStream
00:30
< Orthia>
right
00:31
<@Vornicus>
Well, it 1. breaks our shiny for-loops and 2. it makes hooking things together kind of a pain, though I guess there is Pipe stuff in here somewhere.
00:32
<@Vornicus>
...actually...
00:32
< Orthia>
OK. listToStream.
00:32
<@Vornicus>
listToStream is pretty straightforward - we iterate and stuff in.
00:32
< Orthia>
More than is already present, I presume?
00:32
<@Vornicus>
Need to wrap DataOutputStream around it and use writeInt, but you get the idea
00:33
< Orthia>
Another DataOutputStream encoded = new DataOutputStream(in); ?
00:34
< Orthia>
If so, done.
00:34
<@Vornicus>
like that except it's out instead of in, as it should also be in the arguments
00:35
< Orthia>
did that, yeah
00:36
<@Vornicus>
We also don't need to pull any exception bullshit this time.
00:36
< Orthia>
http://pastebin.starforge.co.uk/234
00:37
<@Vornicus>
Pretty much.
00:37
< Orthia>
Anything extra?
00:45
<@Vornicus>
Not that I can think of.
00:45
<@Vornicus>
If it builds, it's right.
00:47
< Orthia>
Alright.
00:47
< Orthia>
So now, how do we use this thing to make our LZW behave itself?
00:48
<@Vornicus>
No what we can do is get our main to use this whenever it needs to read in or send out integers - reading in for decode or pack, sending out for encode or unpack.
00:49
< Orthia>
OK
00:49
<@Vornicus>
Which we'll do now - oh, and
00:49
< Orthia>
Should Filehandler be static, idly?
00:49
<@Vornicus>
Yeah, those two don't give any state, so static it is.
00:50
< Orthia>
done
00:50
< Orthia>
Let's do this.
00:50
<@Vornicus>
Okay, first things first.
00:51 You're now known as TheWatcher[T-2]
00:51
< Orthia>
ok
00:52
<@Vornicus>
We're no longer smart enough to come up with filenames automatically because there's so many possibilities; we want to be able to, instead, convince our command line to take in two filenames. If it's got none it takes in system.in and sends out system.out; if it's only got one then it sends out on system.out
00:52
< Orthia>
hmm
00:53
< Orthia>
If it's got two it stores them as FileIn and FileOut?
00:54
<@Vornicus>
That sort of thing, but watch your case
00:56 You're now known as TheWatcher[zZzZ]
00:56
< Orthia>
A quick check - we never want to accept stdinput, but have an output file?
00:58
<@Vornicus>
nah, cuz we can actually use > and < io redirects in the shell.
00:58
< Orthia>
OK
00:58 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
00:59
< Orthia>
done.
01:00
< Orthia>
Now to set the meellion flags
01:00
<@Vornicus>
Showme
01:05
< Orthia>
http://pastebin.starforge.co.uk/235
01:05
<@Vornicus>
Looks good.
01:06
< Orthia>
Next bit?
01:06
< Orthia>
(Here's hoping we don't have any bugs in our bitpacker or something...)
01:07
<@Vornicus>
okay, let's start with ... e, I guess.
01:07
< Orthia>
aye capn
01:08
<@Vornicus>
encode() takes in an istream and returns a list; listtostream takes a list and an ostream and fills the stream. fit those together.
01:08
<@Vornicus>
(oh, and: you're going to want to remove the debugs from encode() and decode()
01:10
< Orthia>
ok
01:12
< Orthia>
wait, encode already works doesn't it?
01:12
<@Vornicus>
then decode is streamtolist and decode, pack is streamtolist and pack, unpack is unpack and listtostream
01:12
<@Vornicus>
encode the function does
01:13
<@Vornicus>
encode the program action does not yet - we need to get it to write a stream of integers, which is why we fit encode and listtostream together.
01:13
< Orthia>
oh
01:13
< Orthia>
It's been outputting a list instead of integers?
01:13
< Orthia>
OK.
01:15
< Orthia>
arg
01:15
< Orthia>
if(compress == 'e') { //Encode
01:15
< Orthia>
fh.listToStream(LZW.encode(in), out);
01:15
< Orthia>
for (Integer i : encoded) {
01:15
< Orthia>
out.write(i); }
01:15
< Orthia>
What do I need to change the for loop to?
01:16
< Orthia>
Or do I scrap the for loop entirely?
01:16
<@Vornicus>
Kill the forloop, it's done.
01:17
< Orthia>
if(compress == 'e') { //Encode
01:17
< Orthia>
fh.listToStream(LZW.encode(in), out);
01:17
< Orthia>
out.write();
01:17
< Orthia>
What do I put in the out.write(???);
01:17
<@Vornicus>
Nothing
01:17
<@Vornicus>
Kill that too.
01:18
< Orthia>
OK, will take word for it
01:18
< Orthia>
Next bit, hm
01:19 * Orthia renames 'compress' to 'flag'
01:21
<@Vornicus>
See if you can do the same thing with the other five, they're not that hard.
01:23
< Orthia>
OK, the inconsistency between the two directions is pretty awful, but not impossible.
01:23
<@Vornicus>
Actually all of them are one-liners, I think.
01:31
< Orthia>
Oh dear, we have bug.
01:31
<@Vornicus>
?
01:31
< Orthia>
sec
01:31
< Orthia>
http://pastebin.starforge.co.uk/236
01:31
< Orthia>
current code. Error incoming.
01:33 * McMartin needs to brush off his Objective C.
01:33
< celticminstrel>
Eep.
01:33 GeekSoldier_ [Rob@Nightstar-e86e3e0d.ip.cablemo.net] has quit [[NS] Quit: Praise "BOB"!]
01:34
< Orthia>
"the cat in the hat shat on the sat" -> "zº\Ê#ê¡u;Ô0¦ ¡zC ïT2! " -> "~h} cat i~ h… s}~o…"
01:35
<@Vornicus>
What choice?
01:35
< Orthia>
-e to get first step, -x to get second step.
01:35
<@Vornicus>
Duh, don't do that
01:35
<@Vornicus>
-x goes from packed to decoded. -e goes from decoded to encoded.
01:35
<@Vornicus>
try -e to -d
01:36
< Orthia>
Sorry, -c
01:36
<@Vornicus>
Okay, let's try -e to -d first and see what happens
01:37
< Orthia>
heh
01:38
< Orthia>
the cat in the hat shat on the sat -> " õ é æ ¡ ä â õ ¡ ê ï ¡ é ¡ ô ð
01:38
< Orthia>
" -> the cat in the hat shat on the sat
01:39
< Orthia>
Which suggests two bugs have crept in - our encoder used to shrink a file, butwhatever went wrong is common with the decoder; and our bitpacker/unpacker routines are not symmetrical.
01:39
<@Vornicus>
No, the encoder used to /lossily/ shrink a file.
01:40
< Orthia>
Oh. Really?
01:40
< Orthia>
Then we fixed it and it now bloats things?
01:40
<@Vornicus>
Yeah, it'd only write in one byte.
01:40
< Orthia>
Pretty sure the spaces are indicative of something, but ok
01:41
<@Vornicus>
Which when we're working with numbers over 255 -- which is to say, /every/ multi-byte code -- loses the most significant digits.
01:41
<@Vornicus>
The spaces are nulls.
01:41
< Orthia>
OK, that's bad
01:41
<@Vornicus>
No, that's /exactly correct/
01:41
< Orthia>
OK.
01:41
<@Vornicus>
Well, the nulls are correct.
01:42
<@Vornicus>
The old way was wrong.
01:42
< Orthia>
So our encoder turns a 34 character file into a 100 character file.
01:42
<@Vornicus>
Right, because it needs 25 codes, so it needs 4 bytes each.
01:42
< Orthia>
Okay. That doesn't seem to be a very good compression alograthm, then, but ok
01:42
< Orthia>
Now what?
01:43
<@Vornicus>
Our /packer/ takes those 25 codes and stuffs them into 9 bits each, so about 29 bytes.
01:43
< Orthia>
Let's see if we can get it to work then
01:43
< Orthia>
I've an hour.
01:43
<@Vornicus>
Now what we're going to do is see what the packer comes up with.
01:45
< Orthia>
OK
01:45
<@McMartin>
Are you writing an LZW compressor as part of something larger, or just for shits and/or giggles?
01:45
<@Vornicus>
So -c on "the cat in the hat shat on the mat" and also -e, and we'll see what's happening.
01:46
<@Vornicus>
Assignment.
01:46
< Orthia>
Bloody good practice, though.
01:47
<@Vornicus>
Frustrating though, I'm beating my head against "Reiver hasn't done anything near this scale before" a lot, and in Java too, which I think he's never programmed in.
01:47
< Orthia>
-e: " õ é æ ¡ ä â õ ¡ ê ï ¡ é ¡ ô ð
01:47
< Orthia>
"
01:48
<@Vornicus>
And open this stuff up in a hex editor.
01:48
< Orthia>
Oh. OK.
01:48
< Orthia>
hm.
01:48
<@Vornicus>
I need to see the actual bytes instead of the printables because the actual bytes I can look at.
01:51
<@Vornicus>
And tell if the packer is working.
01:54
< Orthia>
blarg. Know any usable windows hex editors?
01:56 * Orthia tries one, discards. Downloads another.
01:58
< Orthia>
... wtf
01:58
<@McMartin>
If you find one, let me know~
01:58
< Orthia>
I don't suppose z<bh:ba>\\<bh:ca><bh:17>#<bh:89><bh:ea><bh:a1>u;<bh:d4>0<bh:18><bh:1b><bh:a6><bh :0c><bh:a1>zC<bh:a0><bh:ef><bh:08>T2!<bh:06><bh:00><bh:00> is readable to you?
01:58
<@McMartin>
"<bh:..>" is odd.
01:58
<@McMartin>
If you want a hex *dumper*, three lines of python should get you what you need.
01:59
<@Vornicus>
Heck, it's not that hard in java either.
02:01
< Orthia>
OK, encoded: <bh:00 00 00 f5 00 00 00 e9 00 00 00 e6 00 00 00 a1 00 00 00 e4 00 00 00 e2 00 00 00 f5 00 00 00 a1 00 00 00 ea 00 00 00 ef 00 00 00 a1 00 00 01 01 00 00 01 03 00 00 00 e9 00 00 01 06 00 00 00 a1 00 00 00 f4 00 00 01 0e 00 00 01 07 00 00 00 f0 00 00 01 00 00 01 0c 00 00 01 10 00 00 01 06 00 00 00 00
02:03
< Orthia>
Ignore the bh at the start of that.
02:04
< Orthia>
oh, blarg, that's not right either
02:04
< Orthia>
haaaate
02:04
<@Vornicus>
the encoded looks right.
02:08
< Orthia>
compressed, I think: ba ca 17 89 ea a1 d4 18 1b a6 0c a1 a0 ef 08 06 00 00
02:09
< Orthia>
I was hand-cleaning it though, so can't be certain. Damned thing
02:09
<@Vornicus>
no those other letters are in there too.
02:09
<@Vornicus>
Sort of
02:09
< Orthia>
So what have we got here?
02:12
< Orthia>
Or is this what you wanted: z ba \\ ca 17 # 89 ea a1 u; d4 0 18 1b a6 0c a1 zC a0 ef 08 T2! 06 00 00
02:20
< Orthia>
aha, am still here. Goodo.
02:22
<@Vornicus>
sort of too; what I /really/ want is those \s and letters and stuff expanded to hex.
02:23
<@Vornicus>
(I had to eat dinner)
02:23
< Orthia>
I really don't know how to do that, sorry :/
02:24
< Orthia>
Unless I just send you the file.
02:24
<@Vornicus>
do that
02:24
< Orthia>
here's hoping it works~
02:25
<@Vornicus>
and in Python it's: " ".join(map(lambda x: "%02x" % asc(x), file(filename).read()))
02:25
< Orthia>
emailed, sent
02:25
< Orthia>
nightstar addy
02:25
<@Vornicus>
k
02:28
<@Vornicus>
sorry, ord, not asc, but yeah, that's it
02:29
< Orthia>
got it?
02:29
<@Vornicus>
yes.
02:29
<@Vornicus>
Examining now.
02:29
< Orthia>
ok
02:29 * Orthia suspects it's his depacker that's doing it.
02:31
<@Vornicus>
Yeah, the packer appears correct.
02:31 Attilla [Attilla@FBC920.482E2D.4224C9.452BFB] has quit [Client closed the connection]
02:32
< Orthia>
And also the depacker is a hackjob of two lumps of code
02:32
<@Vornicus>
Man packing by hand is a pain.
02:32
< Orthia>
I would not be surprised if a Stupid Error made it in
02:32
<@Vornicus>
Okay, let's look at the unpacker.
02:33
< Orthia>
http://pastebin.starforge.co.uk/237
02:37 * Vornicus examines.
02:38
<@Vornicus>
What do you get when you lzw -u test-c.txt.lzw
02:41
< Orthia>
ÿ é þ ¡ ä â õ ¡ ê ÿ ¡ é ¡ ô þ ÿ ð
02:41
< Orthia>
02:41
< Orthia>
100 bytes, but by the looks of things the wrong hundred.
02:42
<@Vornicus>
Yeah. mail that to me too?
02:43
< Orthia>
emailed
02:44
<@Vornicus>
Very strange
02:44
< Alek>
can anyone tell me what the E, N, and EN editions are/mean?
02:44
< Orthia>
It's in the depacker, I'm mildly certain. Not least because I wrote that thing at like 11 at night. A bracket placed wrong?
02:45 * Vornicus examines Orthia's guru meditations
02:46
<@Vornicus>
Okay, this is a wild-ass guess.
02:46
< Orthia>
Go for it
02:46
<@Vornicus>
line 147, try buffer[i] & 0xff
02:47
<@Vornicus>
instead of just buffer[i]
02:47
< Orthia>
giving us bin |= buffer[i] & 0xff; yes?
02:47
<@Vornicus>
yes
02:47
<@Vornicus>
I /think/ it's saying "that's a byte! gotta turn it into an int to or it... which means extending the sign bit out, and this is negative!"
02:48
< Orthia>
heh
02:48
< Orthia>
the cat in h… so…
02:48
<@Vornicus>
that & will clear the high bytes.
02:48
< Orthia>
Progress!
02:48
<@Vornicus>
Yes indeed.
02:48
< Orthia>
Now for the obviously-other-bug.
02:49
<@Vornicus>
okay, -c -> -u again
02:50
< Orthia>
õ é æ ¡ ä â õ ¡ ê ï ¡ é ¡ ô ð
02:50
< Orthia>
02:50
< Alek>
anyone? ;_;
02:50
< Orthia>
... that's pretty close
02:50
< Orthia>
Alek: Ask in 10 mins, when I've gone to class, plz~
02:50
< Alek>
mk
02:50
< Orthia>
(Also: Ack, T-5 )
02:50
<@Vornicus>
Alek: dunno evencontext.
02:50 cpux- [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
02:51
< Orthia>
Though I'll come back after class to look at it more, of course.
02:51
<@Vornicus>
OH
02:51
<@Vornicus>
Isee it I see it I see it
02:51
< Orthia>
TELL ME PLEASE OH TELL ME
02:51
<@Vornicus>
152, replace 8 with bitCount
02:52
< Orthia>
the cat in the hat shat on the sat
02:52
< Orthia>
I told you it was a typo on my part
02:53
< Orthia>
~
02:53
<@Vornicus>
VICTORY
02:53
< Orthia>
HOORAY
02:53
< Orthia>
oh god we never did do the trie size limited did we, /fuckit/
02:53
< Alek>
Windows 7 versions, apparently. separate from the home/pro/ultimate versioning (as in, each one can be under each of those)
02:53
< Orthia>
I am happy and call that victoly.
02:54 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
02:54 * Orthia woos, goes to class.
02:54 cpux- is now known as cpux
02:59 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:04
<@Vornicus>
Orthia: whenyou come back we can go at it.
03:25
< Orthia>
Har har har
03:25
< Orthia>
It isn't for an hour, %$#@! phone
03:25
< Orthia>
Well, not an hour
03:25
< Orthia>
More like, um, half an hour before I go again, but
03:25
<@Vornicus>
Yeah
03:28
<@Vornicus>
(it'll take longer than half an hour to do bit-limiting)
03:31
< Orthia>
that can't be right what is going on.
03:32
< Orthia>
Vorn: I am inputting Lorem Ipsum, taken verbatim from your pythoncode
03:32
< Orthia>
It is outputting "Lorem ipsum dolor sit amet, consectetur adipi"
03:33
< celticminstrel>
Is that good?
03:33
< Orthia>
No, because it's clipping the rest of the message
03:33
< Orthia>
it appears to be the fault of the encoder
03:34
< Orthia>
Cat on the hat string however, still works fine
03:34
< Orthia>
It would seem that it behaves but it does not behave on large files.
03:34
<@Vornicus>
...very strange
03:35
<@Vornicus>
Very very strange!
03:36
<@Vornicus>
there isn't any effective limit here...
03:36
<@Vornicus>
Okay, about how long is -e?
03:38
< Orthia>
164 bytes
03:39
< Orthia>
Would you like the files before I go?
03:40
<@Vornicus>
Yeah, and if you could pack up your program and send /that/ to me that'd be nice.
03:40
< Orthia>
OK
03:40
< Orthia>
You got Eclipse?
03:40
<@Vornicus>
(so I can also throw things at it)
03:40
<@Vornicus>
I can.
03:41
< celticminstrel>
Probably shouldn't need Eclipse.
03:41
< Orthia>
Galileo version
03:42
< celticminstrel>
?
03:46
< Orthia>
sent
03:46
< Orthia>
gotit?
03:47
<@Vornicus>
Got.
03:47
<@Vornicus>
Thank you.
03:48
< Orthia>
On one hand, ARG
03:48
< Orthia>
On the other hand, thankfuckItriedbeforehandingin
03:49 * Orthia now goes to class again. again. >_>
03:50
<@Vornicus>
I don't see any reason for it to do this, I'm gonna need to throw it through a debugger.
03:50 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: ]
03:50 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
03:51 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
03:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:53 mode/#code [+o Vornicus] by Reiver
04:02 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Client closed the connection]
04:02 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
04:14 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: ]
04:18 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.]
04:24 * Vornicus clears some warnings.
04:25 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
04:28 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
04:32 Orth [orthianz@Nightstar-a9a3a706.xnet.co.nz] has joined #code
04:32 * Vornicus also cleans up the "help" string, and removes debugs.
04:33 * Vornicus then gets around to trying Lorem.
04:34
<@Vornicus>
...assuming I can find the button.
04:35 Orthia [orthianz@Nightstar-783f7556.xnet.co.nz] has quit [Ping timeout: 121 seconds]
04:39
< Alek>
so.
04:39
< Alek>
very.
04:39
< Alek>
annoying.
04:39 * Alek shiftyeyes.
04:39 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: ]
04:41 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
04:42
< Alek>
gr.
04:43
< Alek>
I may have to actually buy a valid key. $220 or so.
04:43
< Alek>
¬_¬
04:44 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
04:46 * Vornicus fails miserably at finding a button.
04:56
< Serah>
And so the epic quest to find the button commences.
04:56
< Serah>
And our stalwart heroes will be sent on many trials before being faced with the ultimate test of ... codemanship?
05:00
< Serah>
In the end, will they prevail? Or will they succumb to their doom?
05:26 Zed_ [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
05:26 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
05:47 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
05:49 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
05:49 * Vornicus fiddles with it, gives up. There's nothing wrong at all with this code, it should work on big things.
05:49
<@Vornicus>
and bedtime.
05:49 Vornicus is now known as Vornicus-Latens
05:53
< Serah>
When I have such issues, I find rewriting the code tends to work.
05:53
< Serah>
Although depending on the length of the code, it might not be a feasible solution.
06:05 * Orth args, for he just got home.
06:05
< Orth>
Vornicus: The button you wanted was the green arrow at the top of the toolbar that highlighted to 'run'. The menu beside it lets you configure the arguements you send it.
06:07
< Orth>
Serah: Did Vornicus put anything between "Vornicus clears some strings" and my rejoining?
06:07
< Orth>
er, "Clears some warnings."
06:15 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
06:15 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [[NS] Quit: Leaving]
06:16
<@Derakon>
8:32 PM: Vornicus also cleans up the "help" string, and removes debugs.
06:16
<@Derakon>
8:33 PM: Vornicus then gets around to trying Lorem.
06:16
<@Derakon>
8:34 PM: Vornicus: ...assuming I can find the button.
06:16
<@Derakon>
That's it.
06:16 Orthia [orthianz@Nightstar-32723a26.xnet.co.nz] has joined #code
06:16
<@Derakon>
Er, wait, you saw that. So no, nothing.
06:17
< Orthia>
Gah
06:17
< Orthia>
The bug really /is/ there.
06:18 Orth [orthianz@Nightstar-a9a3a706.xnet.co.nz] has quit [Ping timeout: 121 seconds]
06:18
< Orthia>
And I don't know where it is!
06:18 Serah [Z@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
06:18 Derakon is now known as Derakon[AFK]
06:21
< Orthia>
HAH
06:22 * Orthia starts checking. 87 characters.
06:23
< Orthia>
48.
06:23
< Orthia>
HOWEVER
06:24
< Orthia>
JEdit complains it has a character it cannot comprehend.
06:25
< Orthia>
... I wonder
06:44 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
06:44 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
07:12
< Orthia>
HAH FOUND YOU YE BASTAGE
07:12
< Orthia>
... and you're hiding another one damn your hide
07:33 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
07:34
< Serah>
Reiver: Yes.
07:34
< Serah>
Oh, wait, there. No.
07:37 AnnoDomini [annodomini@Nightstar-3090c769.adsl.tpnet.pl] has joined #code
07:37 mode/#code [+o AnnoDomini] by Reiver
08:00 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
08:26 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
08:45 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
08:45 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
08:47 Orth [orthianz@Nightstar-c0f5d93a.xnet.co.nz] has joined #code
08:48 Orthia [orthianz@Nightstar-32723a26.xnet.co.nz] has quit [Ping timeout: 121 seconds]
08:51 You're now known as TheWatcher
09:22 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection]
09:22 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
09:22 AnnoDomini [annodomini@Nightstar-3090c769.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
09:25 AnnoDomini [annodomini@Nightstar-c6dd1905.adsl.tpnet.pl] has joined #code
09:25 mode/#code [+o AnnoDomini] by Reiver
09:41
<@McMartin>
Well, that's a start
09:41
<@McMartin>
2010-03-29 01:39:43.203 extend[2783:903] Detected UQM version 0.6.0 at /Applications/The Ur-Quan Masters.app
09:41
<@McMartin>
That's also going through LaunchServices, so as long as the command 'open -a "The Ur-Quan Masters"' will work, it should find it no matter where it is
10:21 Thalass [thalass@Nightstar-5c4a24bf.bigpond.net.au] has joined #code
10:21 * Thalass eyes ubuntu
10:22
< Thalass>
Apparently in 10.04 and forever more, the window control buttons (minimise, maximise, exit) are now going to be on the left.
10:22
< Thalass>
Which seems silly, as those buttons on the right is pretty much standard across all OSes, even macs!
10:22
< Thalass>
And I thought the whole point of Ubuntu was to make things easier
10:30
<@TheWatcher>
Thalass: we Enlightenment users mock your simplistic conceptions of where buttons should go.
10:31<~Reiver> Thal: They wanted to be different.
10:31<~Reiver> What they failed to do was pay attention to the idea that sometimes, staying the same is healthy.
10:46 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
10:46 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
10:55
< Thalass>
indeed. Changing some things is good, but fundamental things like that is not so good
10:56 * Thalass also finds this Enlightenment thing interesting
10:59 Attilla [Attilla@FBC920.482E2D.4224C9.452BFB] has joined #code
10:59 mode/#code [+o Attilla] by Reiver
11:56 Orthia [orthianz@Nightstar-9b127afe.xnet.co.nz] has joined #code
11:57
<@AnnoDomini>
In Debian 5, how do I check what's eating up all my resources?
11:58 Orth [orthianz@Nightstar-c0f5d93a.xnet.co.nz] has quit [Ping timeout: 121 seconds]
12:00 * TheWatcher would use 'top' from a terminal
12:02
<@TheWatcher>
(once it is running, press s and then 1 to make it update faster, 1 on its own toggles CPU display mode, o and then adjust the fields to change the sort mode, h should be help)
12:02
<@AnnoDomini>
There seems to be a nano on a different user, eating up 95% of the CPU.
12:04
<@AnnoDomini>
And it seems to be immune to pkill. >:(
12:06
<@TheWatcher>
run top as root, (sudo top), get the process id, hit k, enter the ID, give it signal 9
12:06
<@TheWatcher>
(or sudo kill -9 <pid>)
12:07
<@AnnoDomini>
Yay.
12:07
<@AnnoDomini>
It worked.
12:07
<@AnnoDomini>
Thanks.
12:10
<@TheWatcher>
(explanation: normally when you kill a process it gets sent signal 15 "SIGTERM", which is a polite request to terminate, and it can be trapped and ignored. Sending a process signal 9 "SIGKILL" is for when you really mean it - it can't be trapped or ignored, and it forces a process to exit. However, even that can fail in certain situations (like the process is blocked waiting on hardware))
12:30 cpux is now known as shade_of_cpux
12:34 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:47 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
12:47 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
12:59 * Reiver hurls Vornicus at the screaming madness that is Dynamic Programming. Specifically, the knapsack problem. Even more specifically, the Knapsack Problem with non-integer values.
12:59 * Reiver watches the Elder God see the face of true screaming madness...
13:04
<@Vornicus-Latens>
Yay, knapsack
13:04
<@AnnoDomini>
What are you using to model this?
13:04
< gnolam>
In general, the non-integer knapsack is a heck of a lot easier than the integer one...
13:05
<@Vornicus-Latens>
Thal: on Mac, those buttons areon the left.
13:06
< gnolam>
(As in "Depending on the specifics of the problem, the greedy solution might just be the optimal solution")
13:06 * AnnoDomini would either check all combinations, or otherwise compute the value/weight ratio and just pack the best ratio goods first until there was no room.
13:07
<@AnnoDomini>
The knapsack problem is one I deal with daily, seeing as I play RPGs.
13:07 * gnolam stuffs AnnoDomini into a Simplex of Holding.
13:07
<@AnnoDomini>
Noooooooooooooooooooooooooooo!
13:17 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has joined #code
13:28 Chi is now known as Alek
13:28 Alek is now known as NSGuest42700
13:28 NSGuest42700 is now known as Chi
13:55 Thalass is now known as Thalasleep
14:12 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has quit [Client exited]
14:17 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has joined #code
14:48 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
14:48 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
15:00 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
15:09 RichardBarrell [user@Nightstar-58acb782.cable.virginmedia.com] has joined #code
15:12 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [[NS] Quit: ]
15:26 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
15:30 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
16:10 Tarinaky [Tarinaky@Nightstar-8266ffac.adsl.virginmedia.net] has quit [Operation timed out]
16:24 Tarinaky [Tarinaky@Nightstar-aa8985a9.adsl.virginmedia.net] has joined #code
16:46
<@ToxicFrog>
Reiver: memoization == screaming madness?
16:47
<@ToxicFrog>
whut?
16:47 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
16:48
< Bobsentme>
No no no...the screaming madness is from the raging marshmellow men I just threw into the fire.
16:48
< Bobsentme>
They're angry because I didn't throw in chocolate or grahm crackers with them.
16:49 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
17:06
< PinkFreud>
Stay-Puft! NOOOOOOOOOOOOO!
17:28 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
18:50 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
18:50 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
19:19 celticminstrel [celticminstre@1AB00B.855209.A256BB.B16D09] has quit [Client exited]
19:45 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
19:46 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
19:47 Syloqs_AFH is now known as Syloqs-AFH
20:51 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
20:51 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
21:41 Vornicus-Latens is now known as Vornicus
22:00 Orthia [orthianz@Nightstar-9b127afe.xnet.co.nz] has quit [Ping timeout: 121 seconds]
22:38
<@Vornicus>
Reiver: made any progress on that size problem? I haven't figured it out.
22:40
<@Vornicus>
Reiver is not here.
22:40
<@Vornicus>
flibblecakes.
22:42
< Bobsentme>
The Reiver you seek is currently out Reiving. Please leave your nick and password at the beep, and he'll PWN! you later: *BEEEEEP*
22:42
<@Vornicus>
heh
22:43
<@AnnoDomini>
Reiver is actually the fourth Raver, brother to samadhi Sheol, moksha Jehannum and turiya Herem.
22:45
<@Vornicus>
That didn't even make sense.
22:52 Chi [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has joined #code
22:52 Alek [omegaboot@Nightstar-7ff8f4eb.il.comcast.net] has quit [Ping timeout: 121 seconds]
22:58 AnnoDomini [annodomini@Nightstar-c6dd1905.adsl.tpnet.pl] has quit [[NS] Quit: Gnmrf.]
23:12 Orthia [orthianz@Nightstar-41464379.xnet.co.nz] has joined #code
23:13
<@Vornicus>
there is reiver.
23:13
<@Vornicus>
Did you make any progress on that size problem?
23:27 shade_of_cpux is now known as cpux
23:39 Orth [orthianz@Nightstar-ee1b047c.xnet.co.nz] has joined #code
23:40 Orthia [orthianz@Nightstar-41464379.xnet.co.nz] has quit [Ping timeout: 121 seconds]
23:45 * Vornicus finds himself pondering cellular automata models of liquid dynamics, for no good reason.
23:56
<@Attilla>
cellular automata?
23:58
< jerith>
Conway's Game of Life.
23:58
< jerith>
(Plus nigh-infinite variations.)
23:58
<@Attilla>
Everyone loves making the infinite glider rebound chamber
23:58
<@Attilla>
Or whatever that was called.
23:58
< gnolam>
Plus whatever crap Stephen Wolfram is spewing at the moment. :P
--- Log closed Tue Mar 30 00:00:50 2010
code logs -> 2010 -> Mon, 29 Mar 2010< code.20100328.log - code.20100330.log >