code logs -> 2011 -> Thu, 15 Sep 2011< code.20110914.log - code.20110916.log >
--- Log opened Thu Sep 15 00:00:52 2011
00:07 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
00:08 You're now known as TheWatcher[T-2]
00:08 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
00:11 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has quit [[NS] Quit: Lost terminal]
00:15 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
00:17 You're now known as TheWatcher[zZzZ]
00:30 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
00:55 Derakon[AFK] is now known as Derakon
00:58 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds]
01:02 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
01:03 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has joined #code
01:50 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
01:54 * Vornicus fiddles with code again while waiting for things to update.
02:09
< Vornicus>
My brain just isn't wrapping around this step.
02:10
< Vornicus>
Which is confusing, because I know exactly what I want the result to be.
02:12 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
02:16 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
02:29
< Vornicus>
(what I'm trying to do is this: I have a line segment that goes across a coordinate grid. I need each point on that grid to say how far it is from the line segment, and which half of the line segment it's close to. And if it's "beyond the end" of the line segment I want it to be silent.)
02:41 Kindamoody[zZz] is now known as Kindamoody
02:46 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
03:01 SmithKurosaki [smith@Nightstar-e26015c4.home1.cgocable.net] has quit [Connection reset by peer]
03:11 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
03:11 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
03:12 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
03:12
< Phox>
So, you're trying to get the length of the normal from the line to each point, and determine whether the normal intercepts the first or the second half of the line?
03:14
< Phox>
Dunno if it's the most efficient method to do this, but you could definitely use linear algebra concepts. How is your line segment defined?
03:15
< Phox>
Err, timestamps. Nevermind, that was, like, an hour ago
03:29 cpux is now known as shade_of_cpux
03:38 Serah [Z@Nightstar-827f56fc.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
03:43 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
03:44 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
03:48 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds]
03:53 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
03:53
< Vornicus>
I'm still here.
03:54
< Vornicus>
This is IRC, async conversation works.
03:56
< Vornicus>
Yeah. That might be a -- wait, that solves like every problem ever.
03:56
< Vornicus>
Anwyay.
03:59 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
04:02
< Vornicus>
THank you, Phox, you saved my brain.
04:17 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
04:21
< Reivles>
Hooray for solving world famine!
04:21
< Vornicus>
Hah.
04:25
< Reivles>
I always knew that computer programming could change the world.
04:25
< Reivles>
O:)
04:25 * Reivles flees.
04:25
< Derakon>
You just needed to find the right port to telnet to, really.
04:25
< Derakon>
(To get access to WorldServ~)
04:25
< Reivles>
... snerk
04:25
< Reivles>
aw
04:25
< Reivles>
I thought you were making a pun on 'ports'~
04:33
< Derakon>
...yes, that works too. Wish I'd thought of it!
04:40 Phox [Phox@Nightstar-3e5deec3.gv.shawcable.net] has quit [NickServ (GHOST command used by Neophox)]
04:41 Neophox [Phox@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
04:42 * Vornicus discovers he's forgotten how to do across-and-along translation.
04:43 Neophox is now known as Phox
05:11 kwsn is now known as kw-sleep-n
05:17
< McMartin>
To the attention of: ToxicFrog
05:17
< McMartin>
http://ofps.oreilly.com/titles/9780596155957/
05:17
< McMartin>
I recall seeing bits of this elsewhere, but it looks like the full text is now online.
05:20
< Reivles>
hm
05:21
< Reivles>
I do wish that I had found Haskell more applicable
05:21
< Reivles>
It was a fun language to toy with but hard to do useful with it :/
05:21 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
05:22
< Vornicus>
I played with Haskell and got stuck because the tutorials were so basic they didn't cover anything I really wanted to know.
05:23
< Reivles>
I wrote a language parser in it.
05:23
< Reivles>
I then didn't do anything much more with it due to lack of applicability.
05:24 * McMartin wrote a cellular automaton in it!
05:24
< McMartin>
Also craploads of Project Euler problems.
05:24
< Reivles>
It was good for the math puzzles, eh?
05:25
< Vornicus>
Yeah, I'm stuck on Euler 1 because i need range(1000)
05:26
< Vornicus>
Well, okay. I don't /need/ range(1000), because I do have a O(1) method, but it would let me figure out how to do other things.
05:26
< McMartin>
[1..1000]
05:26
< Vornicus>
...ah
05:34 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:39 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
06:01 Tarinaky [tarinaky@Nightstar-dd7e4a05.net] has quit [Ping timeout: 121 seconds]
06:02 Tarinaky [tarinaky@Nightstar-dd7e4a05.net] has joined #code
06:28 Derakon is now known as Derakon[AFK]
06:32
< Vornicus>
DOT PRODUCT
06:33
< Vornicus>
It is your tiny god.
06:49 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds]
06:53 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
07:43 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: I <3Lovecraft<3 Vorn!]
08:12 * Vornicus builds his list of distances, then prunes the hell out of it. from 3,985 down to 344 entries in the distance map.
08:26
< Vornicus>
OKay. One last piece: using the distance map and the bits of connectivity from the connectivity graphs to get polygons.
08:38 You're now known as TheWatcher
08:40 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Connection closed]
08:55
< Vornicus>
I think that worked.
09:01 Vornicus is now known as Vornicus-Latens
09:01 Kindamoody is now known as Kindamoody|out
09:49 AnnoDomini [annodomini@60F158.737D66.CA1918.CC7562] has joined #code
09:54 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
10:40 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
10:41 AnnoDomini [annodomini@60F158.737D66.CA1918.CC7562] has quit [[NS] Quit: BBL.]
11:04 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
11:27 kw-sleep-n is now known as kwsn
12:12 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
12:27 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
12:48 AnnoDomini [annodomini@60F158.737D66.CA1918.CC7562] has joined #code
13:08 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
13:18 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
13:19 Reivles [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
13:24 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
13:38 AnnoDomini [annodomini@60F158.737D66.CA1918.CC7562] has quit [[NS] Quit: Away!]
15:01 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
15:02 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
15:58 Kindamoody|out is now known as Kindamoody
16:01 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
16:40 * kwsn eyes EFI
16:53
< Tarinaky>
Is it just me or did, somehow, entering geomtry data in Python/Panda3d become more complicated than hand-chisiling it on stone tablets in C/OpenGL?
16:57
< kwsn>
i duno, but all i know is our SVN servers are clogged right now Dx
17:04 * gnolam pours lye into kwsn's SVN servers.
17:04
< gnolam>
There. That should fix the problem.
17:04 * Tamber offers a comically-oversized pipe-cleaner?
17:06
< Tarinaky>
Failing that violence works as a last resort.
17:06
< gnolam>
Tamber: don't you mean "| cleaner"? ;)
17:07
<@Tamber>
:)
17:51
< kwsn>
am i the only one here with any EFI exp? >_.
17:51
<@Tamber>
Until more of the machines I can get hold of stop coming with "I'm a BIOS! :D" firmware stuck in them...
17:53 You're now known as TheWatcher[afk]
17:54
< kwsn>
i meant coding
17:54
< kwsn>
:P
17:54
<@Tamber>
Oh.
17:54
<@Tamber>
My answer still stands. :p
17:56
< gnolam>
Sorry. I tend to be coding at either an even lower level or way higher level than that.
18:01
< gnolam>
Speaking of which, I should order that TDA2822M amp... I NEED MORE POWER
18:01 mode/#code [+oooooooooooooooooo TheWatcher[afk] Derakon[AFK] Phox Simon_Shine kwsn Reiver Attilla Tarinaky McMartin Kazriko Vornicus-Latens ToxicFrog gnolam Syloqs-AFH Stalker Alek Kindamoody shade_of_cpux] by Tamber
18:03 Kindamoody is now known as Kindamoody|out
18:05
<@kwsn>
gnolam: we do a lot of low level stuff here
18:48
<@gnolam>
What do you do, exactly?
19:22
<@kwsn>
right now? working with EEPROMS
20:39
<@froztbyte>
kwsn: I'm familiar with EFI in some fashion
20:39
<@froztbyte>
but probably not nearly enough to help with whatever you're busy with :/
20:48
<@kwsn>
heh
20:48
<@kwsn>
it can be extra frustrating at times Dx
20:48
<@froztbyte>
can imagine
20:49
<@froztbyte>
how's the general level of library support for it?
20:49
<@froztbyte>
would imagine it's at "supports most things, beware the sharp edges" point in most libs
20:51
<@kwsn>
i woulnd't be able to tell you, haven't gone through all of it yet
21:00
<@kwsn>
doesn't help we use warnings as errors
21:18 * TheWatcher[afk] tends to count that practice as a Good Thing
21:18 You're now known as TheWatcher
21:19
<@McMartin>
TheWatcher: It's only acceptable if you're standardized on a single compiler.
21:19
<@McMartin>
And control the entire system top to bottom, ideally having written it yourself >_<
21:20
<@McMartin>
I was cured of -Wpedantic when I got the error "you're casting this 64-bit return value from library A into this 32-bit input value of library B"
21:20
<@McMartin>
When the entire purpose of the code was to let you use libraries A and B at the same time.
21:20 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has joined #code
21:20 * Derakon eyes the microscope code.
21:20
<@McMartin>
Also, that's explicit cast - there was no way of phrasing data narrowing that did not produce a warning.
21:21
< Derakon>
This one's gonna be hard to debug.
21:21
<@TheWatcher>
Admittedly I tend to be more that way where perl is concerned than C/C++
21:21
<@McMartin>
Yeah, I can see that better.
21:21
< Derakon>
If, and only if, the DAPI camera is the third camera in the list of active cameras, it will drop 1 frame for each illumination angle during data collection.
21:21
<@McMartin>
It's problematic in C++ and completely impractical in C.
21:21
< Derakon>
Other cameras are fine in that position. The DAPI camera is fine in other positions.
21:21
<@McMartin>
Derakon: At least you have detailed repro scenarios -_-
21:22
<@TheWatcher>
Derakon: ... weird
21:22
< Derakon>
Position should be entirely cosmetic.
21:22 celticminstrel [celticminstre@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
21:23
<@TheWatcher>
(realistically, if you're getting warnings from your perl code, you've probably done something that is going to bite you in the arse sooner or later anyway)
21:23
< Derakon>
And yeah, I'm glad I have a repro case if nothing else. Heisenbugs are a pain.
21:24
<@McMartin>
(It's been awhile, but I remember 'use strict' being basically mandatory in all code)
21:24 Kindamoody|out is now known as Kindamoody
21:24
< Derakon>
IIRC the recommended invocation is "#!/usr/bin/perl -nw\nuse strict;"
21:25
<@McMartin>
(In C++ it's not uncommon to see unusual but necessary constructions getting a warning on one compiler, but the rephrase that makes the warning go away cause a different warning on another compiler - there is no consensus on what is or is not a dodgy phrasing in C++)
21:25
< Derakon>
...wait, no, -n is "process each line with this script".
21:25
< Derakon>
Just -w then, I guess. It's been awhile since I wrote a serious Perl script.
21:25
<@McMartin>
I've been seeing "perl -lane" in a bunch of scripts lately.
21:26 * TheWatcher bets you aren't seeing any with possibly the most important argument: -T
21:27
< Derakon>
Of course the perl manpage doesn't mention commandline arguments.
21:27
<@TheWatcher>
man perlrun
21:27
<@TheWatcher>
(and -T turns on taint checks, which is pretty meh for simple shell scripts, but if you're doing anything that involves user input... yeah)
21:27
<@McMartin>
That's only for... yeah.
21:28
<@McMartin>
We only have perl in our build system.
21:28
<@TheWatcher>
fairynuff, then.
21:28
< Derakon>
Most of my perl is one-liners these days, typically for pattern-matching.
21:28
< Derakon>
cat file.txt | perl -ne 'chomp; /(something).*(something).*(something)/; print "$1 $2 $3\n"'
21:28
< Derakon>
I'm sure there's purpose-built programs to do the same thing (awk?), but whatever.
21:29
< Derakon>
Or sed, probably.
21:29
<@TheWatcher>
I tend to run pretty much all my perl with at least -wT, sometimes -WT but that can cause issues with some modules
21:29
<@McMartin>
"-u: This obsolete switch causes Perl to dump core after compiling your program."
21:29
<@McMartin>
Derakon: What you just wrote is why you don't need awk.
21:30
<@McMartin>
sed is for perl -ne 's/foo/bar/; print' < file.txt.
21:30
< Derakon>
Righto.
21:31
<@McMartin>
sed has its place, still
21:31
<@McMartin>
awk's is the dustbin of history
21:35
< Derakon>
Hm, what I should've checked is what happens when the fourth camera is connected. Oh well, can't now; since there's a workaround the biologist is happily collecting data again.
21:37
<@kwsn>
I've used sed
21:37
< celticminstrel>
I've used both awk and sed on occasion, but not very often. Mostly I use TextWrangler for that sort of thing. :P
21:38
<@McMartin>
sed is really for processing program output in the middle of a build script written in shell.
21:39 Kindamoody is now known as Kindamoody[zZz]
22:26
< Derakon>
Urgh, my brain is not in the right mental state to understand numpy/scipy documentation right now.
22:26
< Derakon>
(I need to do a linear fit on some data such that the line passes through zero)
22:27
< Derakon>
Apparently the recommended way to do this is to use numpy.linalg.lstsq, but the first sentence of that function's documentation is "Solves the equation a x = b by computing a vector x that minimizes the Euclidean 2-norm || b - a x ||^2."
22:31
<@McMartin>
"It's doing a least-squares fit on graph paper."
22:33
<@McMartin>
"minimizes the Euclidean 2-norm {equation}" is "minimizes the squares of the differences."
22:58
< Derakon>
There should be a more compact way of doing "sort | uniq -c | sort -gr". I find myself writing it out a lot.
22:58
< Derakon>
I mean, I could just make my own mini-shell script to do that, but that seems silly somehow.
22:58
<@McMartin>
alias?
22:58
<@McMartin>
That's even mini-er than a shell script
22:58
< Derakon>
Okay, point.
22:58
< Derakon>
Still seems weird that sort doesn't have that functionality already. It has a uniquify mode but it won't generate counts or order by frequency.
23:00
< Derakon>
Anyway, looks like the microscope code is down to only 13 global variables, which is pretty good.
23:00
< Derakon>
Not that those need to be global either but it's getting to the point where fixing them isn't worth that much.
23:12 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
23:38
<@Phox>
Why so many globals to begin with?
23:38
<@Phox>
I thought ----- Op, wut?
23:39
<@Phox>
Anywhoo, I thought globals were kind of avoided like the plague.
23:39
< Derakon>
I didn't write the original form of this code.
23:40
< Derakon>
It was written by somebody who had never received even remotely formal training in software engineering.
23:41
<@Phox>
Ah. Kind of like when you give Labview to a science major. They're smart enough to make it work, but that's all that can be said of it
23:42
< Derakon>
I would say it's more that any given enhancement to the code was done by changing as little as possible of the codebase.
23:42
< Derakon>
So the initial program might have been adequately designed, but then it was tweaked and tweaked and tweaked over most of a decade.
23:43 You're now known as TheWatcher[T-2]
23:56 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has quit [[NS] Quit: leaving]
--- Log closed Fri Sep 16 00:00:12 2011
code logs -> 2011 -> Thu, 15 Sep 2011< code.20110914.log - code.20110916.log >

[ Latest log file ]