code logs -> 2010 -> Sat, 03 Apr 2010< code.20100402.log - code.20100404.log >
--- Log opened Sat Apr 03 00:00:44 2010
00:16 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
00:23
<@ToxicFrog>
Vornicus: how does this differ from a normal tree?
00:27
<@Vornicus>
TF: a normal tree, you're making a direct comparison on the whole string, essentially; in a trie, you're making a comparison on only a substring each time -- or, really, the character indexed by your current depth of the tree.
00:29 Derakon[AFK] is now known as Derakon
00:30
<@Vornicus>
so if you want to differentiate between "cheese" and "cheat", for instance, you start at the root, go down "c", then "h", then "e", and then there's the difference -- from there cheese would go down "e" again and cheat would go down "a"
00:31
<@Vornicus>
It's especially useful when you're getting your string one character at a time - T9, or live filtering like firefox or chrome's find feature.
00:34
<@Vornicus>
It means that any string has all the other strings it starts below it, and that each comparison is one character long.
00:35
<@Vornicus>
and also that each node holds only one character -- a significant space savings over either length-and-characters or null-terminated strings, especially when a great many strings start the same way.
00:45
<@Vornicus>
(in contrast: each node in a binary or b-tree contains the entire string to compare to, and you must compare the entire string at each level (shortcircuits aside), and "fort" can appear before "for" for a variety of reasons.)
00:54 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
01:39 AnnoDomini [annodomini@Nightstar-b89a176e.adsl.tpnet.pl] has quit [[NS] Quit: Note to self: Sleep.]
01:50 cpux- [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
01:53 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
01:53 cpux- is now known as cpux
01:58 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
02:15 You're now known as TheWatcher[T-2]
02:23 Derakon is now known as Derakon[AFK]
02:23 You're now known as TheWatcher[zZzZ]
02:39 * Vornicus determines that graphviz has trouble with it.
03:19 Attilla [Attilla@FBC920.173C5E.203556.7F1065] has quit [[NS] Quit: ]
04:46 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
04:46 celmin is now known as celticminstrel
06:26 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
07:16 Vornicus is now known as Vornicus-Latens
07:19 Derakon[AFK] is now known as Derakon
07:50 zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Client closed the connection]
08:32 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
09:02 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Client closed the connection]
09:02 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
09:17 AnnoDomini [annodomini@Nightstar-b89a176e.adsl.tpnet.pl] has joined #code
09:17 mode/#code [+o AnnoDomini] by Reiver
09:21 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
09:23 AnnoDomini [annodomini@Nightstar-b89a176e.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
09:25 AnnoDomini [annodomini@Nightstar-860ad5f2.adsl.tpnet.pl] has joined #code
09:25 mode/#code [+o AnnoDomini] by Reiver
09:44 You're now known as TheWatcher
10:15
<@AnnoDomini>
Are there any good DOS emulators out there. 'Good' defined as being capable of handling assembly programming. DOSBox can apparently handle running the stuff I program, but cannot run FASM for want of a 32-bit real mode.
10:25
<@AnnoDomini>
And where the hell is dosbox.conf on Debian?
10:27
<@TheWatcher>
~/.dosbox/ ?
10:29
<@AnnoDomini>
Wasn't such a thing. I created a new default file in there just now. How do I modify the launchers in the foot-menu in Debian?
10:29
<@AnnoDomini>
I want to make it so the launcher uses this configuration file.
10:36 * AnnoDomini tries to find some sort of option that will allow better capabilities in the default config file.
10:41 You're now known as TheWatcher[afk]
10:48
<@McMartin>
DOSBox is the best you can hope for, if you want Actual DOS
10:48
<@McMartin>
You almost certainly do not want Actual DOS in the real world and would do much better with NASM or MASM.
10:50
<@AnnoDomini>
This isn't the real world. This is academia. We're using FASM with FreeDOS, but to use that, I'd have to reboot, which is annoying.
10:50
<@AnnoDomini>
Right now I'm trying to understand how to install the Linux version of FASM.
10:52
<@McMartin>
That said, I had the impression that "32-bit real mode" was something of a contradiction in terms?
10:52
<@McMartin>
I know of 16-bit real mode and 32-bit protected mode with the flat memory space
10:55
<@AnnoDomini>
Well, it's what the error message says.
11:24
<@Kazriko>
There's a new system for running apps with a Dos level of multitasking btw. I guess it's released tomorrow by apple...
11:26 * Kazriko remembers writing dos apps in MASM for academia...
11:29
<@Kazriko>
of course, when I was writing real dos apps, I was using turbo pascal...
11:36 * AnnoDomini is using a gnome text editor to edit the ASM file, a terminal window to run fasm to compile to .fas, and then DOSBox to link and run it.
12:00 Pseudonym-V [nightshiftr@BF38EF.453728.5AAF2D.4E3B88] has joined #code
12:00
< Pseudonym-V>
hello
12:03 * AnnoDomini frowns at this code.
12:03
<@AnnoDomini>
What does machine code 67h stand for?
12:04
< Pseudonym-V>
who u asking ?
12:04
<@AnnoDomini>
Anyone who knows the answer.
12:06
< Pseudonym-V>
well i suggest you go to google and type that in - you may find an answer
12:08
<@AnnoDomini>
I have. It was the first thing I tried.
12:10
< Pseudonym-V>
lol - sorry dude i really dont know
12:10 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has quit [Ping timeout: 121 seconds]
12:13
<@AnnoDomini>
Hmm. A random Russian site contains the answer. It seems that it's a prefix to use ECX rather than CX for loops.
12:15
< Pseudonym-V>
idk
12:26 Pseudonym-V [nightshiftr@BF38EF.453728.5AAF2D.4E3B88] has quit [[NS] Quit: ]
12:40 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
13:10 You're now known as TheWatcher
13:23 Attilla [Attilla@FBC920.173C5E.203556.7F1065] has joined #code
13:23 mode/#code [+o Attilla] by Reiver
13:53 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
13:54 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
14:19 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection reset by peer]
14:19 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
14:28
<@AnnoDomini>
My terminals randomly terminated.
14:29
<@AnnoDomini>
Fortunately, irssi and screen survived.
15:03 celmin [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
15:27 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
15:27 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
15:33
<@ToxicFrog>
AnnoDomini: Real DOS without rebooting: booting FreeDOS in Bochs or Qemu may work, too.
15:43
<@AnnoDomini>
Do those allow easy file sharing? I pretty much require that to be there, because I'm not about to hand-copy my files to bring to Uni.
15:45 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Connection closed]
16:11
<@ToxicFrog>
I have no idea.
16:53 RichardBarrell [user@Nightstar-58acb782.cable.virginmedia.com] has joined #code
17:04 celmin [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *whistles* Did you hear something?]
17:05 celmin [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
17:06 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [NickServ (GHOST command used by celmin)]
17:06 celmin is now known as celticminstrel
17:09 cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code
17:10 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
19:01 Bobsentme [Bobsentme@Nightstar-bdfa14c4.try.wideopenwest.com] has joined #code
19:01
< Bobsentme>
dear professor: F-OFF-and DIE IN A FIRE. -Sincerely, Bob.
19:06
< Bobsentme>
There is a rather complicated application being run almost entirely via JSP.
19:07
< Bobsentme>
When I explained we need to do some things to it to make it run the stuf the professor asked for, I was informed:
19:07
< Bobsentme>
1) No.
19:07
< Bobsentme>
2) Hell no, lets run the entire thing on 1 page.
19:20
< cpux>
"The train wrecks will continue until this thing works, dammit!"
19:21
< Bobsentme>
That sums it up so well.
19:21
< Bobsentme>
Here, have my internets. You deserve them.
19:25
< cpux>
Ehh. It ain't my line. It came from a co-worker in response to an internal project tracking system at my work that was untested, inadequate for what we needed, and littered with bugs that our IT likes to blame on user error.
19:26
< Bobsentme>
Well, you're the one who presented such knowledge to me.
19:26
< Bobsentme>
So, like google, I'll pay a finders fee.
19:44 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
19:54 Zed [Zed@Nightstar-d7ade99d.or.comcast.net] has joined #code
20:55 Vornicus-Latens is now known as Vornicus
21:12
<@AnnoDomini>
Might anyone know where I can find a table of protected mode exceptions WITH detailed descriptions?
21:12
<@AnnoDomini>
I need to know, for example, if a given exception returns an error code or not.
21:12
< celticminstrel>
Buh?
21:14
<@AnnoDomini>
Which part is unclear?
21:14 * AnnoDomini is looking on Google with no real results.
21:15
<@McMartin>
Intel's IA32 chip manual would be my first stop, honestly >_<
21:15
< celticminstrel>
Well, I have zero context for your question.
21:15
<@AnnoDomini>
I think I actually have that document, somewhere.
21:16
< celticminstrel>
Though, to be honest, it sounds like the sort of thing I wouldn't know anyway...
21:19
<@AnnoDomini>
Yay, I have found what I need.
21:19
< celticminstrel>
Yay!
21:20
<@AnnoDomini>
Now to continue my LP.
21:52
<@AnnoDomini>
Hmmm. I need to rename files en-masse.
21:56
< PinkFreud>
within code? from the shell? if the latter, which OS?
21:59
<@AnnoDomini>
I'm on Debian 5. I want to rename all files within a directory to be renamed, so that their common prefix is skipped (leaving only the parts that differ and the extension).
22:00
<@AnnoDomini>
Alternatively, simply having them named 1.jpg, 2.jpg, 3.jpg and so forth also works.
22:00
< PinkFreud>
ahh. assuming you're using a bourne-compatible shell (bash is default on debian) -
22:01
< PinkFreud>
for file in *; do echo mv -v $file ${file#prefix}; done
22:01
< PinkFreud>
replace 'prefix' with the prefix you want stripped
22:02
< PinkFreud>
if you're happy with how that looks, remove the 'echo' and run it again
22:03
<@AnnoDomini>
Okay, two things. First, how do I use that? Second, do I have to escape spaces in the prefix?
22:06
< PinkFreud>
er
22:06
< PinkFreud>
as to how you use it, one typically types it in via the keyboard :)
22:06
< PinkFreud>
as for spaces, try:
22:07
< PinkFreud>
for file in *; do echo mv -v "$file" "${file#prefix}"; done
22:07
< PinkFreud>
again, replace 'prefix' with your string
22:08
<@AnnoDomini>
Okay, but I've never used bash before. I put this in a file, right? With #!/bin/bash as the first line or something?
22:08
<@TheWatcher>
you can just type it as-is at the terminal prompt
22:09
<@TheWatcher>
No need to put it into a file.
22:12
<@AnnoDomini>
Okay, I had to put quotes around the prefix to get what I wanted.
22:13
<@AnnoDomini>
Thank you.
22:26
< PinkFreud>
np
22:26
< PinkFreud>
make sure you run that w/o the 'echo'
22:32
<@AnnoDomini>
I did.
22:33 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Client closed the connection]
23:34 You're now known as TheWatcher[T-2]
23:37 Bobsentme [Bobsentme@Nightstar-bdfa14c4.try.wideopenwest.com] has left #code ["Leaving"]
23:37 You're now known as TheWatcher[zZzZ]
--- Log closed Sun Apr 04 00:00:45 2010
code logs -> 2010 -> Sat, 03 Apr 2010< code.20100402.log - code.20100404.log >