code logs -> 2009 -> Tue, 29 Sep 2009< code.20090928.log - code.20090930.log >
--- Log opened Tue Sep 29 00:00:40 2009
00:02 Orthia [Orthianz@Nightstar-d532d7af.xnet.co.nz] has joined #Code
00:07 Orthia [Orthianz@Nightstar-d532d7af.xnet.co.nz] has quit [Connection reset by peer]
00:15 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has quit [[NS] Quit: Leaving]
00:39 Alek [omegaboot@Nightstar-3d8f2590.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
01:22 Orthia [Orthianz@Nightstar-fd45e078.xnet.co.nz] has joined #Code
01:29 Derakon[AFK] is now known as Derakon
01:32 AbuDhabi [farkoff@Nightstar-281df568.adsl.tpnet.pl] has quit [[NS] Quit: I got forehead-vagina raped, Mom. There's no counseling for that shit!]
01:47 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
01:48 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #Code
01:48 mode/#code [+o Vornicus] by Reiver
02:07 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #Code
02:17 Nathia [c0cb88fe@Nightstar-14e5d099.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
02:32 Attilla [The.Attilla@FBC920.642D35.0878D5.AE151E] has quit [[NS] Quit: ]
02:49 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:15
<@Vornicus>
So, data structures course.
03:16
<@Vornicus>
Writing the data structure: 15 minutes.
03:16
<@Vornicus>
By hand, no references.
03:17
<@Derakon>
What structure?
03:17
<@Vornicus>
Array-stack. So, nothing fancy.
03:17
<@Vornicus>
Writing the interface: 2+ hours and counting. Three books, and internet references for HTML, CSS, and JS DOM.
03:18
<@Vornicus>
I think i'm a bit picky.
03:18
<@Derakon>
Yeah, that's the part of programming that sucks.
03:18
<@Derakon>
It's easy to get the algorithm done, and hard to make it usable.
03:20
< dmlandrum>
I'm seriously considering abandoning my physics major and going back to engineering.
03:20
<@Derakon>
What brought this on?
03:20
< dmlandrum>
First homework in modern physics, and I'm utterly confused, and have nothing finished other than a simple problem involving the work function of a metal.
03:21
< dmlandrum>
Plus I'm still on the fence with physics v. engineering, anyway.
03:21
<@Derakon>
Ahh.
03:21
<@Derakon>
Well, talk with your prof before throwing in the towel.
03:21
< dmlandrum>
Oh, I have some weeks before the withdraw date.
03:22
< dmlandrum>
And my sister reminds me of her first year in law school. More than half of her classes withdrawn or F's. Yet she got her degree, and passed the bar exam on the first try.
03:22
< dmlandrum>
So I guess anything's possible.
03:23
<@Derakon>
It's very possible that you're in a weedout class.
03:23
< dmlandrum>
Well, physics is just a tough subject, no matter how you look at it.
03:24
< dmlandrum>
We're expected to be able to do multivariable integrations in just a few minutes by hand. :-/
03:24
< dmlandrum>
The only multivar integrations I've done involve finding the volume of 3D solids using functions to define each surface.
03:25
< dmlandrum>
Those were hard enough.
03:25
< dmlandrum>
Sorry, I'm just venting now.
03:27
<@Derakon>
No worries.
03:28 Derakon changed the topic of #Code to: Welcome to #Code! | Rants and monologues are encouraged | Pastebin: http://pastebin.starforge.co.uk/
03:30
< dmlandrum>
So we'll see what happens after assignment 1 here.
03:30
<@Derakon>
Good luck!
03:30
< dmlandrum>
Yay! I might have just sold my Kurzweil.
03:31
<@Derakon>
O_o You have (had) a Kurzweil?
03:31
< dmlandrum>
Well, a MIDIBoard from the late 80s.
03:31
< dmlandrum>
MIDI only controller.
03:31
<@Derakon>
Ah ha.
03:31
< dmlandrum>
It's way too big for my space, so I'm trading up for something more compact.
03:31 Orthia [Orthianz@Nightstar-fd45e078.xnet.co.nz] has quit [Connection reset by peer]
03:32
<@Derakon>
As long as it has 88 weighted keys, I'm fine~
03:32
< dmlandrum>
It has the singular feature of being a true force sensitive hammer-action controller, rather than velocity sensitive, which is not quite the same thing.
03:32
<@Derakon>
Oh indeed.
03:32
< dmlandrum>
And polyphonic aftertouch.
03:32
<@Derakon>
Velocity sensitive is hard to play.
03:33
< dmlandrum>
But in the end, I'm not a player. I'm a sound-based composer who plays with audio via circuits and DSP.
03:33
< dmlandrum>
So all of those features are wasted on me.
03:33
< dmlandrum>
I'd rather have a nice modular analog synth and a solid sampler.
03:33
<@Derakon>
Ahh.
03:33
<@Derakon>
Yeah, I'm more on the player end of things.
03:34
< dmlandrum>
Actually, a Kurzweil 2000 or 2500 would be sweet. Those things keep their value used, though.
03:35
< dmlandrum>
I'm looking at getting one of the nicer Akai rackmount boxes for sampling. Yes, 16-bit hardware samplers are obsolete, I know. I just want my sound making stuff to be independent of the computer.
03:39
< dmlandrum>
I'm looking at an Alesis Micron for general synthesis needs. Very versatile, very inexpensive.
03:39
< dmlandrum>
Maybe I'll get an old Emax (12-bit, analog filters) for a character sampler.
03:39
< dmlandrum>
And then do my hi-fi sampling in the computer.
03:41 Orthia [Orthianz@Nightstar-96dafcb1.xnet.co.nz] has joined #Code
03:48
<@Vornicus>
16-bit sampling is enough to get you to... 96dB dynamic range.
03:49
<@Vornicus>
Should be more than enough for most things.
03:49
< dmlandrum>
Oh, that's not an issue.
03:49
< dmlandrum>
The only reason I sample in 24-bit with my recorder is headroom, rather than noise or resolution.
03:49
<@Derakon>
Headroom?
03:50
< dmlandrum>
Ie, I can have my peaks hit at -9 or -12 dB, rather than trying to nail 0dB.
03:50
< dmlandrum>
And I'll still have plenty of resolution.
03:50
< dmlandrum>
And for me, sampling is about doing something interesting and musical with whatever sounds I find or can make.
03:51
<@Vornicus>
Headroom: loud stuff should not peg the intensity.
03:51
< dmlandrum>
Can make, as in, make some weird contraption in the studio that I then sample.
03:51
<@Vornicus>
The intentional lack of headroom - to the point that most CDs actually clip the peaks off sounds - is called The Loudness War.
03:53
<@Derakon>
I'm familiar with the loudness war; just hadn't heard the term headroom used in that sense before, or had forgotten i
03:53
<@Derakon>
Er, forgotten it.
03:55
<@Vornicus>
This is m-m-m-max headroom.
04:23 * Vornicus hunts for a thing that will escape a string for /html/ consumption.
04:28
<@Derakon>
Vorn: you mean, turn the string into something that will render as it when parsed as HTML?
04:28
<@Vornicus>
Right. I don't want it to go batshit if there's an & or a < in there.
04:29
<@Derakon>
Well, PHP has built-in HTML encode/decode functions...having a bit of trouble finding the same for Python.
04:29
<@Derakon>
Ah. cgi.escape() may do what you want.
04:30
<@Vornicus>
js, specifically.
04:30
<@Derakon>
Oh, in Javascript.
04:31
<@Vornicus>
After significant back and forth we settled on HTML/JS as the language of choice.
04:31
<@Derakon>
http://stevenharman.net/blog/archive/2007/06/16/url-and-html-encoding-on-the-cli ent-javascript-to-the.aspx
04:31
<@Derakon>
"Unfortunately, JavaScript lacks built-in methods to do HTML encoding and decoding, but there are several JavaScript libraries which provide such functionality. My favorite is the Prototype JavaScript framework and it's escapeHTML and unescapeHTML methods, part of Prototype's String class."
04:32 * Vornicus looks into it.
04:33
<@Vornicus>
'k that's a bit heavyweight.
04:34
<@Derakon>
Are we talking arbitrary content here?
04:34
<@Derakon>
Or just <, >, and &?
04:34
<@Derakon>
You could just use a series of http://www.w3schools.com/jsref/jsref_replace.asp
04:36
<@Vornicus>
(other things thrown around were such things as x86 assembler, inform 7, C, Java, and scheme. We decided on JS/HTML mostly because I can make buttons without involving half the universe.)
04:36 * Derakon quirks an eyebrow.
04:36
<@Derakon>
You are all tremendous nerds, I assume.
04:37
<@Vornicus>
Independent study, so n = 2
04:49
<@Vornicus>
Okay. Now I need to convince it that hitting return while the text box has focus should not try to submit the form.
04:50
<@Derakon>
Use a textarea instead of a text-type form input.
04:50
<@Vornicus>
or rather that it should, uh.
04:51
<@Vornicus>
Use the onclick method I provided to the only button in the form.
04:52
<@Vornicus>
Aha! onsubmit.
04:53
<@Vornicus>
Nope. Still goes through with it.
04:54
<@Derakon>
Try returning false from your onsubmit function.
04:54
<@Vornicus>
Nope.
04:54 * Vornicus fiddles with it.
04:57 * Vornicus has no idea!
04:58
<@Derakon>
<form onsubmit="return validateForm();"> or something like that should do what you want.
05:00
<@Vornicus>
Aha!
05:00 * Vornicus waves that rubber chicken over it.
05:00
<@Derakon>
Heh.
05:00
<@Vornicus>
Worky! thank you.
05:00
<@Derakon>
No problem.
05:07
<@Vornicus>
hm....
05:08
<@Vornicus>
Now it's saying "'false' was added to the stack."
05:09
<@Derakon>
Is this page somewhere I could access?
05:10
<@Vornicus>
Not at the moment. I suspect I'm doing something wrong?
05:10
<@Vornicus>
...
05:10
<@Vornicus>
Yes.
05:10 * Vornicus strangles Javascript for allowing if (a = "")
05:10
<@Derakon>
Generally, if it doesn't work, then you've done something wrong. Unless one of your dependencies is broken. :)
05:10 * Vornicus adds extra strangling.
05:14
<@Vornicus>
Help me out here, it needs more strangling.
05:14 * Derakon hands Vorn a silken scarf.
05:19
< Rhamphoryncus>
uh.. err.. wtf.. wow, after all these years I'm still dumbfounded by new things about C
05:19
< Rhamphoryncus>
sizeof('C') == 4 (typically)
05:19
<@Derakon>
Er, but that's a char, isn't it?
05:19
<@Derakon>
Shouldn't it be...one byte?
05:20
< Namegduf>
It should be... by definition and all that.
05:20
< Namegduf>
Since a byte in C *is* a char.
05:20
< Rhamphoryncus>
should be. Isn't. It's a *literal*, and apparently single char literals are ints
05:20
< Namegduf>
Oh, right.
05:20
<@Derakon>
Whee.
05:20
< Namegduf>
I remember that.
05:20
< Rhamphoryncus>
I'm still slackjawed...
05:20
< Namegduf>
It gets converted to a number, said number is integral, becomes an int.
05:21
< Namegduf>
In logic if not in actual implementation.
05:21
< Namegduf>
I think.
05:21
< Rhamphoryncus>
Now they're claiming that 'help' as a literal is implementation defined. iow, it's actually legal, even if GCC prints a warning
05:23
< Rhamphoryncus>
Assign to an int, cast the int pointer to a char pointer, and print, and you may get "pleh" as your output on some systems. (Although that actually is illegal)
05:23
< Rhamphoryncus>
wait, for chars that might legal.. I can't remember that all
05:25
< Rhamphoryncus>
http://forums.thedailywtf.com/forums/p/13278/204487.aspx btw
05:30
<@Vornicus>
There. Push peek and pop all working.
05:35
<@Vornicus>
I need to add a dump.
05:35
<@Derakon>
http://weblogs.asp.net/skillet/archive/2006/03/23/440940.aspx
05:35
<@Vornicus>
Not what I mean.
05:36
<@Derakon>
You mean a way to clear the stack, then?
05:36
<@Vornicus>
No. I want to show the stack. Nicely.
05:38
<@Vornicus>
I know what I want; all I have to do is, you know. Do it.
05:39
<@Derakon>
Heh.
05:46
<@Vornicus>
But first I should write my HTML escaper, among other things.
06:18
<@Vornicus>
nsubmit="dopush(); return false;" <--- also I did it this way.
06:18
<@Vornicus>
Less voodoo in the functions.
06:18
<@Derakon>
Fair enough.
06:19
<@Derakon>
You should be able to rig things so you don't need a form action somehow.
06:20 Alek [omegaboot@Nightstar-f0c0f3ab.emhril.sbcglobal.net] has joined #Code
06:26
<@Vornicus>
I couldn't figure it out.
06:27
<@Derakon>
Well, if it works, it works. It's not the focus of the assignment, is it?
06:37 Derakon is now known as Derakon[AFK]
07:10 You're now known as TheWatcher
07:25 * Vornicus declares Bed. Will deal with escaping - and the other half of this assingment, the ring queue - tomorrow.
08:58 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited]
09:55 Attilla [The.Attilla@FBC920.642D35.0878D5.AE151E] has joined #Code
09:55 mode/#code [+o Attilla] by Reiver
10:57 AnnoDomini [farkoff@Nightstar-281df568.adsl.tpnet.pl] has joined #Code
10:57 mode/#code [+o AnnoDomini] by Reiver
11:24 Attilla [The.Attilla@FBC920.642D35.0878D5.AE151E] has quit [Ping timeout: 121 seconds]
11:28
<@AnnoDomini>
Is there any alternative to MSO and OO?
11:34<~Reiver> Emacs + LaTeX.
11:34<~Reiver> >_>
11:36
<@AnnoDomini>
I was going to make a witty reply, but nothing I can conceive right now does justice to this suggestion~
11:42
<@TheWatcher>
Abiword?
11:42
<@TheWatcher>
Also
11:42 * TheWatcher vaguely pokes Reiv
11:44 * AnnoDomini goes check that out.
11:45<~Reiver> TW!
11:45
<@AnnoDomini>
MS Office is rather huge and costs money, Open Office has an utterly fucked interface and image handling, and LaTeX is too meta for me.
11:46 * Reiver thinks.
11:46<~Reiver> Pen and paper?
11:46<~Reiver> (OO really does suck, yes)
11:47
<@AnnoDomini>
(I have nothing to complain about when OO's functionality is in question. It's the "how", rather than the "what" that's horrible.)
11:48 Attilla [The.Attilla@FBC920.480E8C.2B4BEB.671C44] has joined #Code
11:48 mode/#code [+o Attilla] by Reiver
11:52
<@AnnoDomini>
Right now I'm attempting to make a pamphlet for the members of my fantasy club, explaining in simple terms how to play DnD 3.5e. There are only two people who understand the ruleset, and I'm one of them. ;_;
11:53 You're now known as TheWatcher[d00m]
12:23
<@AnnoDomini>
AbiWord seems to have an atrocious saving time (longer than OO!) when it comes to included images. Also, the line numbering/bullets are fucked.
12:25
<@AnnoDomini>
At least when saving to DOC.
12:33
<@AnnoDomini>
The Polish dictionary for it was apparently made by a blind idiot.
12:48 Attilla [The.Attilla@FBC920.480E8C.2B4BEB.671C44] has quit [Ping timeout: 121 seconds]
12:56 dmlandrum_ [dmlandrum__@Nightstar-54510c8f.sfldmi.ameritech.net] has joined #Code
12:58 dmlandrum [dmlandrum__@Nightstar-54510c8f.sfldmi.ameritech.net] has quit [Ping timeout: 121 seconds]
13:04 Attilla [The.Attilla@FBC920.480E8C.4A3EE6.AB1516] has joined #Code
13:04 mode/#code [+o Attilla] by Reiver
13:06 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [[NS] Quit: This computer has gone to sleep]
13:15 You're now known as TheWatcher
13:36 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #Code
14:51 You're now known as TheWatcher[afk]
15:53
<@MyCatVerbs>
AnnoDomini: in that case, why not play one of the simpler pen&papers instead of fullblown DnD?
15:55
< Namegduf>
By that logic, no one would ever learn it.
15:57
<@AnnoDomini>
DnD isn't tough to learn... for one with inclination to learn.
15:58
<@AnnoDomini>
The GM likes to host DnD games. I like playing DnD games. The others like them too.
15:58
<@AnnoDomini>
Ergo, we're playing DnD.
15:58
< gnolam>
But why would you /want/ to? DnD is a crap system. :P
15:58
<@AnnoDomini>
Yet there are people who've played it for years and still don't know the base resolution mechanic.
15:59<~Reiver> ... how do you play it for years and not know it involves rolling a d20?
15:59
<@AnnoDomini>
They have a vague idea that a die must be rolled.
15:59
<@AnnoDomini>
Some of them even pick the correct type.
15:59<~Reiver> O.o
15:59<~Reiver> DM rolled everything for them previously?
16:00
<@AnnoDomini>
No.
16:01
<@AnnoDomini>
The GM has long since given up. He looks at the die and makes an educated guess what the total result is.
16:03
< Namegduf>
D&D's a fine system.
16:03
< Namegduf>
:P
16:03
< Namegduf>
3.5E, however... :P
16:04
< gnolam>
Namegduf: No. No it's not.
16:04
< Namegduf>
It has its flaws, but I've not seen a better combat system yet.
16:04
< Namegduf>
Or, IMO, magic.
16:04
< gnolam>
It encourages - hell, pretty much /demands/ - roll playing instead of role playing. The mechanics have almost no connection to reality. Etc, etc.
16:04
< Namegduf>
3.5E? Yes.
16:04
< Namegduf>
<=2E? No.
16:05
< gnolam>
... no better combat system than DnD? >_<
16:05
< Namegduf>
3.5E threw away realism by far in the name of making it a "fun" game.
16:05
< Namegduf>
And for that, I agree.
16:05
< Namegduf>
But <=2E is quite conductive to roleplaying and IMO fulfills the purpose of a roleplaying system in assisting that.
16:06
<@AnnoDomini>
I've seen 1e. Nobody was spared, not even the children.
16:06
< Namegduf>
4E is just MMO mechanics in a board game
16:06
< Namegduf>
I'm not just saying that. A list of "special moves" they're allowed to use every so often?
16:06
< Namegduf>
(For non-spellcasters, mind)
16:06
< Namegduf>
"Per encounter" abilities with no logical explanation? Yeah.
16:07
< Namegduf>
That's terrible, and 3.5E makes it *hard* to RP, but <=2E was a lot better.
16:07
< Namegduf>
1E is weird in places, because it... well, it was the first edition.
16:07
< gnolam>
What the hell kind of RPGs have you played with inferior combat mechanics to DnD's, that's what I want to know.
16:08
<@AnnoDomini>
gnolam: FATAL.
16:08
< Namegduf>
Freeform and-dear god.
16:08
< Namegduf>
Eww.
16:08
<@AnnoDomini>
Namegduf: I think you didn't read 4e very intently.
16:08
< Namegduf>
That IS inferior, I'd guess, but I never actually *read* its combat system.
16:08
< Namegduf>
AnnoDomini: Not intently. I looked over some of the prerelease materials.
16:08
<@AnnoDomini>
Per encounter is actually per 5 minutes.
16:09
< Namegduf>
Still lacks any logical justification.
16:09
<@AnnoDomini>
Vancian Casting.
16:09
<@AnnoDomini>
WHERE'S YOUR GOD NOW?
16:09
< Namegduf>
For non-spellcaster classes?
16:09
< Namegduf>
Also, it doesn't say they need to rememorise to reactivate them.
16:09
< Namegduf>
No memorisation, no Vancian.
16:10
<@AnnoDomini>
You misunderstood me.
16:10
< Namegduf>
(Not that memorisation would help the logic)
16:10
<@AnnoDomini>
Vancian Casting makes no sense is what I meant.
16:10
<@AnnoDomini>
BRB, helping my grandfather.
16:10
< Namegduf>
Oh, psh, it's goddamn magic.
16:10
< Namegduf>
Vancian casting can be explained about as well as any *other* kind of magic.
16:11
< Namegduf>
I've read quite detailed explanations of how the psychics "could" work (with no commitment that a given setting must work that way).
16:11
< Namegduf>
*physics
16:11
< Namegduf>
(I'm tired, thinking about at least two other things)
16:12<~Reiver> True20 has a decent combat system. (A couple flaws by dint of its preference for group combat, but they can be tweaked)
16:12<~Reiver> GURPS system is nice, but breakable at high levels of play, and can be a little complex at times with the modifiers you need to track.
16:12<~Reiver> I've heard some are absurdly fond of the One Roll system, but I've not tried it myself to judge.
16:12
<@AnnoDomini>
I'm saying that the previous editions give just about as much justification as 4e does - none.
16:27 Attilla [The.Attilla@FBC920.480E8C.4A3EE6.AB1516] has quit [Ping timeout: 121 seconds]
16:29 Attilla [The.Attilla@FBC920.65CFFF.37C84B.137EA7] has joined #Code
16:29 mode/#code [+o Attilla] by Reiver
16:29
<@Attilla>
<Namegduf> 4E is just MMO mechanics in a board game
16:29
<@Attilla>
I'm sorry but come again?
16:29
<@Attilla>
Would you like to explain your point of view without it degrading into pointless grognardism?
16:29
<@Attilla>
I'd love to hear it, and I am listening.
16:46 You're now known as TheWatcher
16:48
<@AnnoDomini>
http://www.mediafire.com/download.php?nvnmumyvx3y <- What I produced.
16:48
<@AnnoDomini>
I'm going to give it to my sister, since she doesn't know DnD, to check it for stupid.
16:52
< Alek>
Poziom=level?
16:52
< Alek>
and I thought 10-11 was middle, not 9-11.
16:52 * Alek shiftyeyes.
16:53
<@AnnoDomini>
I know this. This is lies-to-children so they won't go herp-a-derp when they put 9 in Int.
16:54
<@Attilla>
Hey it once was 9-11
16:54
<@Attilla>
When stats weren't linear really
16:54
<@AnnoDomini>
Yeah.
16:55
<@Attilla>
Hah, the pic of the ridiculous conversation occuring as that guy dives towards her
16:55
< Alek>
ehehe
16:55
< Alek>
wasn't that from some xmen or other?
16:56
<@AnnoDomini>
I have no idea. I got it from TV Tropes.
16:56
< Alek>
heyyy you know, you can easily state that since Common is not English, it doesn't follow the same rules, so you could easily be saying a whole word or even phrase in a single syllable.
16:57
< Alek>
Heinlein did a short on the topic once.
16:57
< Alek>
Man Who Sold The Moon I think?
16:57
<@AnnoDomini>
That's just an excuse.
16:57
< Alek>
yeah, but a plausible one. :P
16:57
<@AnnoDomini>
I'm not going to do that unless it's part of a plan to make a major linguistic plot point.
16:58 * Alek nods.
16:58
< Alek>
DM has the final say, of course.
16:58
< Alek>
since it's his world.
16:59
< Alek>
I'm off.
17:00 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #Code
17:01
<@Attilla>
I'd say "isn't common supposed to be a lot like German" but I think that was started by WFB and WFRP
17:01 SmithKurosaki [Smith@Nightstar-ab52522f.dsl.teksavvy.com] has quit [Connection closed]
17:04 SmithKurosaki [Smith@Nightstar-ab52522f.dsl.teksavvy.com] has joined #Code
18:33 Namegduf [namegduf@Nightstar-7ec84b32.bath.ac.uk] has quit [Ping timeout: 121 seconds]
18:43 Finale [c0cb88fe@Nightstar-14e5d099.mibbit.com] has joined #Code
18:46 Namegduf [namegduf@Nightstar-7ec84b32.bath.ac.uk] has joined #Code
18:56
< Finale>
"Admin slang is nothing. It's worse when you have slang clash. I was recently banging away at the piano, and a musician friend of mine says, 'There's an error in your coda'. That's when my brain blew up."
19:12 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has joined #Code
19:13
< Derakon[work]>
So it turns out that the microscope machine is using an AMD Opteron 252, a 2.6GHz single-core processor.
19:14
< Derakon[work]>
I'm wondering if it's possible we have a timing issue here somehow, where interrupts from the OS cause the computer to fail to complete some time-sensitive task on time.
19:15
< Derakon[work]>
This would explain why it seems like the program is slightly more likely to crash when multitasking.
19:15
< Finale>
hm. possible.
19:16
< Finale>
and if you're using windows, it's even worse in resource assignment, I hear.
19:17
< Finale>
while in something like linux, say, I hear it's possible to allocate a whole core (when multicored) and/or thread (when hyperthreaded), or otherwise 'guarantee' a stable resource.
19:18
< Finale>
but I don't know nearly enough about this. >_<
19:39
< gnolam>
Derakon[AFK]: I doubt it.
19:40
< gnolam>
A race condition is infinitely more likely.
19:41
< Derakon[work]>
Race conditions can be time-sensitive in the way I described.
19:41
< gnolam>
Yes. But you made it sound like it was a condition in the OS itself, which is extremely unlikely.
19:42
< Derakon[work]>
Er. Not my intent.
19:42
< Derakon[work]>
I meant more "OS forcing program to handle user interrupts => program can't complete time-sensitive task before it gets clobbered by another thread => crash"
20:15 * Derakon[work] eyes the paper his boss just dropped onto his desk, which is the specifications for a new computer.
20:16
< Derakon[work]>
2x Intel Xeon 2.5GHz quad-core processors, 32GB 800MHz RAM, 16x 1TB drives, etc. etc. etc.
20:16
< Derakon[work]>
Cost: $8k.
20:16 * Finale drools.
20:16
< Finale>
that sounds cheap.
20:19 AnnoDomini [farkoff@Nightstar-281df568.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
20:22
< Finale>
may we ask what its intended usage will be?
20:26
< Derakon[work]>
Something that doesn't need nearly that much capability. On further talking with him, it's apparent that these specs are more a matter of throwing some numbers out there so we can react to them and determine what we actually need.
20:26
< Finale>
ahahahaha
20:26
< Finale>
you have to admit, that would be a pretty sweet machine.
20:26 AnnoDomini [farkoff@Nightstar-bfa70341.adsl.tpnet.pl] has joined #Code
20:26 mode/#code [+o AnnoDomini] by Reiver
20:26
< Derakon[work]>
Not without display capability.
20:26
< Finale>
especially with a few GB GPUs tossed in.
20:27
< Derakon[work]>
The purpose of this machine is to provide an interface between the microscope and the biologist. The vast majority of the time it doesn't need to do anything particularly strenuous.
20:27
< Finale>
actually, even without display, it'd make a nice heavy-duty server, no?
20:27
< Finale>
ahah. yeah, that (probably) doesn't need anything so nice.
20:27
< Derakon[work]>
But we theorize that the crashes are due to the occasional period when it does need to do something strenuous. Ideally we'd split those out to a dedicated server or something and have the cockpit machine just be a thin client or something, but that'd require a major redesign.
21:54 * gnolam idly wonders if the instructions for tomorrow's lab will actually be available in time.
21:55
< gnolam>
It'd be on par for this course for them to show up two hours into the thing. :P
22:00 Derakon[work] is now known as Derakon[AFK2]
22:09
< Rhamphoryncus>
I've priced out a much worse box than that before. Not with intent of purchasing though :)
22:10
< Rhamphoryncus>
Derakon: tweaking the nice value might frob things
22:43 Derakon[AFK2] is now known as Derakon[work]
22:43
< Derakon[work]>
Rhamphoryncus: I tried telling it to run the program as a high-priority task. Crashed anyway.
22:51
< Rhamphoryncus>
Next best evil thing is to make another high priority task, preferably real time, and to interrupt it a *lot*
22:52
< Derakon[work]>
I could whip up a Python script that calculates lots of square roots. That'd keep the CPU pegged rather nicely.
22:53
< Rhamphoryncus>
naw, not pegged. It doesn't need to do any work. It just needs to wake up constantly
22:54
< Derakon[work]>
Constant microsecond sleeps, then?
22:54
<@McMartin>
Make sure usleep behaves as advertised if you do
22:54
< Derakon[work]>
Heh.
22:54
< Rhamphoryncus>
basically
22:54
< Derakon[work]>
Constant ten-microsecond sleeps. ?.?
22:54
< Rhamphoryncus>
Yeah. You don't want it to switch to a busy-wait loop
22:55
< Rhamphoryncus>
This is something sometimes needed for drivers. Hard realtime behaviour with very low latency and high frequency
22:56
< Derakon[work]>
Anyway, off to the lab.
22:56 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has quit [[NS] Quit: Leaving]
22:58 simontwo [simon@Nightstar-a12ff716.gjk.dk] has joined #Code
22:58 simontwo is now known as simon`
22:58
< simon`>
hello there.
22:59
< simon`>
I'm sitting here doing some machine architecture exercises, and I'm still at the stage where I solve exercises using whichever logic gates make sense to *me*, and not the ones that use the fewest gates.
23:00
< simon`>
so I wonder, in general, if someone does a chip design, is it subsequently optimized to avoid redundancy? or is that inevitably a mental exercise?
23:01
<@McMartin>
It's subsequently turned into nothing but NAND gates, AIUI, to make it easier to jam into an FPGA.
23:01
<@McMartin>
This may be a misunderstanding on my part
23:01
< simon`>
exactly my thought!
23:01
<@AnnoDomini>
You can, IIRC, program an FPGA matrix yourself.
23:01
<@AnnoDomini>
As in, by hand, editing a file.
23:02
< simon`>
so you turn it into a bunch of NAND gates and you run some optimization on it, reducing parts that resolve to the same logical output as some simpler construction of NAND-gates. or?
23:02
< simon`>
AIUI?
23:03
<@McMartin>
As I understand it.
23:03
< simon`>
aha.
23:04 * Finale dreams of chip architectures. :D
23:04 AnnoDomini [farkoff@Nightstar-bfa70341.adsl.tpnet.pl] has quit [[NS] Quit: "I cast Detect Law!" "There's an attorney around the corner."]
23:13
< simon`>
is there a general approach to optimizing something like (A&B)|(B&C)|(A&C) in terms of number of NANDs?
23:14
<@McMartin>
I want to say "Karnaugh maps" but I forget whether that's for that specifically
23:18
< simon`>
thanks.
23:18
< gnolam>
Karnaugh maps is it.
23:19
< simon`>
yeah, okay. it might be a bit overkill for this 4-bit ALU, but I'll look into it. ;-)
23:20
< simon`>
night
--- Log closed Wed Sep 30 00:00:02 2009
code logs -> 2009 -> Tue, 29 Sep 2009< code.20090928.log - code.20090930.log >