code logs -> 2013 -> Tue, 19 Mar 2013< code.20130318.log - code.20130320.log >
--- Log opened Tue Mar 19 00:00:01 2013
00:04 syksleep is now known as Syk
00:21 gnolam_ [lenin@Nightstar-7bcbe2b8.cust.bredbandsbolaget.se] has joined #code
00:21 gnolam is now known as NSGuest48541
00:21 gnolam_ is now known as gnolam
00:21 mode/#code [+o gnolam] by ChanServ
00:23 NSGuest48541 [lenin@Nightstar-7bcbe2b8.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds]
00:34 RichyB [richardb@Nightstar-228a334c.plus.com] has quit [[NS] Quit: >:3 This is BunThulhu. Copy him into your quit message to help him take over the Internet.]
00:37 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
00:46
<&McMartin>
http://java-0day.com
00:48
<~Vornicus>
that's a higher number than I expected actually
00:50 OrthiaLap [orthia@Nightstar-fae4ee48.ihug.co.nz] has joined #code
00:53 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has joined #code
00:53 mode/#code [+o Rhamphoryncus] by ChanServ
00:53
<@Reiv>
What, 12?
01:19 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
01:20 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has joined #code
01:20 mode/#code [+o Rhamphoryncus] by ChanServ
01:37 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
01:37 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
01:37 mode/#code [+o celticminstrel] by ChanServ
01:53 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
01:57 JustBob [justbob@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
01:57 JustLurk [justbob@ServerAdministrator.Nightstar.Net] has joined #code
01:58 JustLurk is now known as JustBob
01:58 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has joined #code
01:58 mode/#code [+o Rhamphoryncus] by ChanServ
02:36 Kindamoody[zZz] is now known as Kindamoody
03:00 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: 01000110011101010110001101101011001000000110100101110100001011000010000001001001 00100111011011010010000001100111011011110110100101101110011001110010000001110100 011011110010000001100010011001010110010000101110]
03:23 * McMartin eyebrows.
03:23
<&McMartin>
"- Updated runtime with the final SDL 2.0 ABI"
03:36
<~Vornicus>
??
03:48
<&McMartin>
Steam update changelog.
03:48
<&McMartin>
It carries... implications
03:49
<@Alek>
wat
03:50
<&McMartin>
SDL 2.0 has been in development for ages
03:50
<&McMartin>
The Linux port of Source uses it
03:50
<&McMartin>
Valve hired the original SDL leads some time ago
03:50
<&McMartin>
Maybe they're wrapping that work up
03:51
<@Alek>
maybe they'll use it for HL3.
03:51
<&McMartin>
They're already using it for TF2~
03:51 * McMartin taps his foot. "Where's the Portal ports, guys"
03:53
<@Reiv>
Multiplayer Portal deathmatch
03:53
<@Reiv>
It is something we've needed for many years now!
03:54
<@Reiv>
All you do is remove the springboots and make levels with a couple of strategically placed pillows~
04:07 gnolam_ [lenin@Nightstar-7bcbe2b8.cust.bredbandsbolaget.se] has joined #code
04:07 gnolam is now known as NSGuest38640
04:07 gnolam_ is now known as gnolam
04:07 mode/#code [+o gnolam] by ChanServ
04:08 * celticminstrel just did the Steam update, and thus is startled to notice it was mentioned here.
04:09
<&McMartin>
celticminstrel: I've been programming in various versions of SDL for over a decade. It jumped out. :D
04:10 NSGuest38640 [lenin@Nightstar-7bcbe2b8.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds]
04:33
<&Derakon>
...come to think, my first use of the SDL was 9 years ago.
05:04 OrthiaLap [orthia@Nightstar-fae4ee48.ihug.co.nz] has quit [Ping timeout: 121 seconds]
05:07 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
05:32 Derakon is now known as Derakon[AFK]
06:06 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:28 Kindamoody is now known as Kindamoody|out
07:10
<~Vornicus>
I'm trying to think, I don't think I've ever met a language where nil/undefined/none/NULL/et al are not considered false.
07:12
<~Vornicus>
I've met many where other things might or might not be considered false - empty strings and other containers, 0, NaN...
07:12
<~Vornicus>
but I've never met one, as far as I know, where nil-oids are considered true. Have you?
07:37
<&McMartin>
"0 but true" >_<
07:40
<~Vornicus>
Not what I mean at all. :P
07:41
<&jerith>
Vornicus: I can write one for you if you want... ;-)
07:41
<~Vornicus>
Fortunately this is merely intellectual curiosity.
07:42
<@Syk>
nil != true oh god
07:42
<@Syk>
uh
07:42
<@Syk>
= true
07:42
<@Syk>
if nil = true
07:42
<@Syk>
it would be very bad
07:43
<&McMartin>
There have been some people who defined a boolean enum in C and got the first element wrong
07:43
<~Vornicus>
heh
07:44 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
07:44 mode/#code [+o himi] by ChanServ
07:56 OrthiaLap [orthia@Nightstar-fae4ee48.ihug.co.nz] has joined #code
08:22
<~Vornicus>
I just got a claim of java and C# but it feels wrong.
08:25 OrthiaLap [orthia@Nightstar-fae4ee48.ihug.co.nz] has quit [Client closed the connection]
08:27 OrthiaLap [orthia@Nightstar-fae4ee48.ihug.co.nz] has joined #code
08:33 OrthiaLap [orthia@Nightstar-fae4ee48.ihug.co.nz] has quit [Ping timeout: 121 seconds]
08:34 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
08:41 You're now known as TheWatcher
08:48 Attilla [chatzilla@Nightstar-02422f4a.range81-151.btcentralplus.com] has joined #code
08:53 Attilla [chatzilla@Nightstar-02422f4a.range81-151.btcentralplus.com] has left #code [""]
09:10
<&McMartin>
Um
09:10
<&McMartin>
That is true in a very restricted sence
09:10
<&McMartin>
It is indeed not the case that if (null) { ... } is a no-op
09:10
<&McMartin>
That is because it is a type error and does not compile.
09:11
<&McMartin>
Because those languages do not permit the casting of reference types to boolean.
09:12
<&McMartin>
That's the "tow Earth into Jovian orbit" solution to "make the Earth cease to exist as a planet" problem and deserves the same response.
09:12
<&McMartin>
"Yes, yes, very clever. Get back to work."
09:15
<@Namegduf>
XD
09:16 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
09:16 mode/#code [+qo Vornicus Vornicus] by ChanServ
09:27
< JustBob>
McM - Ah, but your problem was solved. :p
09:37
<&McMartin>
In fact, it was not
09:37
<&McMartin>
Vorn's question was 'in which nil-oids are considered true'
09:37
<&McMartin>
In Java and C#, this is not the case
09:37
<&McMartin>
What is the case is that null is not false.
09:37
<&McMartin>
Because it is not a boolean of any kind.
09:38
<@Namegduf>
It's FILE_NOT_FOUND.
09:42
<~Vornicus>
so if I do if(object_reference_that_happens_to_be_null), do I enter the block or not?
09:43
<~Vornicus>
ah, starforge saves the day again.
09:44
< JustBob>
Hrm.
09:44
< JustBob>
MatLab apparently considers null to just be an empty 0x0 matrix.
09:50
<~Vornicus>
can you ask matlab if (that matrix)?
09:51
<@Azash>
Is anyone here good with xhtml?
09:51
< JustBob>
Well, okay. More specifically, from what I've skimmed, MatLab goes, 'Oh, null? Well, let's pretend it's a matrix of dimension [], i.e. an empty matrix. Because otherwise I don't know what to do with it.'
09:51
< JustBob>
And there is an isempty function, which returns true if empty.
09:52
<~Vornicus>
right, but what does if do with empty matrices in if clauses, if you don't ask it to do isempty or anything
09:52
<~Vornicus>
(or indeed matrices in general)
09:53
< JustBob>
Um. If I remember right, http://www.mathworks.com/help/matlab/math/empty-matrices-scalars-and-vectors.htm l?nocookie=true#f1-86384
09:53
< JustBob>
There. Faster that way. :p
09:56
< JustBob>
I'm not sure if it's really 'null' in the sense you're defining it, though.
09:56
< JustBob>
In that it's a nil-oid, as McM phrased it.
09:58
<~Vornicus>
I'm not sure if matlab even has pointers or objects.
09:59
< JustBob>
http://www.mathworks.com/help/matlab/matlab_external/working-with-pointers.html? nocookie=true
09:59
< JustBob>
As far as I can tell, it... Doesn't? It can work with them, in the same sense that you can work with radioactive materials using a remote arm. :p
10:00
< JustBob>
http://www.mathworks.com/help/matlab/object-oriented-programming.html?nocookie=t rue <- But apparently it does have objects?
10:11 RichyB [richardb@Nightstar-228a334c.plus.com] has joined #code
11:07 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
12:30
<@[R]>
Azash: yes
12:32
<@Azash>
Alright, lemme just fire up VMW and pastebin this
12:34 Kyte|Work [c80e6b02@Nightstar-4fab16c5.mibbit.com] has joined #code
12:38
<@Azash>
[R]: Part of this XML assignment is modifying an HTML 4.0 Transitional page to XHTML 1.0 Transitional
12:38
<@Azash>
This part is giving me grief and is the only one I haven't solved: http://pastebin.com/EDmUight
12:39
<@Azash>
For each of those <tr> tags, the validator gives me document type does not allow element "tr" here
12:39
<@Azash>
For each of those <tr> tags, the validator gives me 'document type does not allow element "tr" here', sorry
12:43
<@TheWatcher>
That's because it doesn't
12:43
<@TheWatcher>
you can't do <tr><td></td><tr>...
12:45
< RichyB>
<tr> <td> is right, but <table> <tr> might be objected to on the grounds that it's supposed to be <table> <thead> <tr> or <table> <tbody> <tr>.
12:45
<@TheWatcher>
thead and tbody are completely optional, provided for styling really
12:47
<@TheWatcher>
The problem here is that you can not place a <tr> straight inside a <tr>
12:47
< RichyB>
You're right.
12:47
<@TheWatcher>
Either the first <tr> needs to be closed before the second one, or the second one needs to be wrapped in <td><table>...</table></td>
12:48
< RichyB>
I had to look that up in the DTD.
12:49
< RichyB>
table tags are allowed to contain a caption, then a list of col or colgroup tags, then a thead, then a tfoot, then one or more tbody or tr tags.
12:49
< RichyB>
trs are supposed to contain only th or td tags.
12:49
<@Azash>
Alright, thanks
12:52 Nemu [NeophoxProd@Nightstar-b740a37a.asahi-net.or.jp] has joined #code
12:54 Nemu_ [NeophoxProd@Nightstar-8aa91763.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
13:17 Kyte|Work [c80e6b02@Nightstar-4fab16c5.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
13:22 Kyte|Work [c80e6b02@Nightstar-4fab16c5.mibbit.com] has joined #code
13:29 Kyte|Work [c80e6b02@Nightstar-4fab16c5.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
13:30 Kyte|Work [c80e6b02@Nightstar-4fab16c5.mibbit.com] has joined #code
13:31 Kindamoody|out is now known as Kindamoody
13:35 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
13:35 mode/#code [+o celticminstrel] by ChanServ
13:54 Kindamoody is now known as Kindamoody|afk
15:22
<&ToxicFrog>
This is me today: http://blog.operationreality.org/wp-content/uploads/2012/03/chemistry-dog-no-ide a-e1332533698640.jpg
15:24
< JustBob>
That's me every day. :p
15:43
<@Azash>
I'm doing a practical project in traffic analysis
15:43
<@Azash>
My idea is to pipe tcpdump into a script that formats the data and puts it in an sql database
15:43
<@Azash>
And then put up a small php page that presents the data
15:43
<@Azash>
But, what kind of data should I present?
15:44
<@Syk>
how much porn everyone is viewing
15:45
<@Syk>
(hint: you'll need a pie chart that's about 90-10 for porn-notporn)
15:45
<@Syk>
(in an office environment, just cut it in half
15:45
<@Syk>
Azash: well if you're getting everything, I suppose throughput?
15:46
<@froztbyte>
you'd think
15:46
<@froztbyte>
but you'd be wrong
15:46
<@froztbyte>
for africa, at least
15:46
<@froztbyte>
here it's ~60% in office hours, baseline
15:46
<@Azash>
Syk: Well, it should be analysis, not measurement
15:46
<@Syk>
uh
15:46
<@Syk>
those words both mean the same thing
15:46
<@Azash>
I'm thinking seeding linux distros and displaying some peer data
15:46
<@Syk>
to me, at least
15:48
<@Azash>
Well
15:48
<@Syk>
Azash: tcpdump seems like an incredibly inefficient tool for that though
15:48
<@Azash>
I'd see analysis as qualitative measurement
15:49
<@Azash>
And measurement as, well, quantitative
15:50
<&ToxicFrog>
Today so far: spent 20 minutes wondering why my changes weren't showing up, asked for help, was informed that I'm looking at production, not dev.
16:00
<@Azash>
ToxicFrog: Nice
16:01
<@Azash>
Syk: I wouldn't know, I've only used tcpdump and wireshark for such before
16:02
<@Syk>
if its bittorrent seeding, the client should be able to give you the data
16:02
<@Syk>
+ how many block reqs its serving and such
16:03
<@Azash>
Oh, I see
16:03
<@Azash>
Well, the course thematics require using tools that read raw traffic so ~
16:03
<@Syk>
oh this is course stuff
16:04
<@Syk>
then yeah tcpdump all the things
16:04
<@Syk>
infect a windows pc with every virus you can find in virtualbox, tcpdump the resuly
16:05
<@Azash>
Lol
16:07
<@Syk>
map it to a globe
16:07
<@Syk>
as a heatmap
16:08
<@Syk>
present 'if C&C servers were heat, east europe would be tropical' as your report
16:09
<@Azash>
Now that is actually a good idea
16:09
<@Syk>
oh great
16:10
<@Syk>
i've used my good idea allotment for the day now
16:10
<@Syk>
it's only 11 past midnight
16:10
<@Azash>
But I think I'll stick to using legal torrents instead, like measure where the poor people who download arch are located :P
16:10
<@Syk>
Azash: if you turn off encryption, you can probably do some inspection of the bittorrent packets
16:11
<@Syk>
possibly differentiate between metadata and data
16:11
<@Syk>
and number of dl reqs
16:11
<@Azash>
Hm
16:11
<@Syk>
higher amounts of dl reqs possibly means theyve got faster internet
16:13 RichyB [richardb@Nightstar-228a334c.plus.com] has quit [Ping timeout: 121 seconds]
16:27 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
16:27 RichyB [richardb@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
16:28 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
16:28 mode/#code [+o Courage] by ChanServ
17:22
<@froztbyte>
<Azash> I'm doing a practical project in traffic analysis
17:22
<@froztbyte>
<Azash> My idea is to pipe tcpdump into a script that formats the data and puts it in an sql database
17:22
<@froztbyte>
<Azash> And then put up a small php page that presents the data
17:22
<@froztbyte>
don't do that.
17:22
<@froztbyte>
if you do do that, tshark is your friend (or custom shit written against libpcap)
17:23
<@froztbyte>
but what you want is to take http://pmacct.net/, apply nfdump and forward to the pmacct collector
17:23
<@froztbyte>
and then by happier
17:23
<@froztbyte>
be*
17:37 * celticminstrel wonders whether there's any way to safely edit a file that could have additional data appended to it at any time.
17:40 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
17:40 mode/#code [+ao Derakon Derakon] by ChanServ
17:40 * Derakon ponders a problem his boss wants him to work on.
17:41
<&Derakon>
We have a field of stitched-together images, and we want to find isolated beads on the images. Think like looking at a field of stars and finding ones that don't have other stars nearby.
17:42
<&Derakon>
My current thinking is 1) break the field into 128x128 sections; 2) cross-correlate with a reference bead image; 3) examine peak in correlation; use some heuristic to decide if this indicates 1 or multiple beads?
17:43
<&Derakon>
(Ignore beads near the boundary of a 128x128 section, and overlap the sections, in case a bead is actually close but the boundary is in the way, of course)
17:45
< JustBob>
celticminstrel - Make a local copy/in-memory copy of the file, edit that one, compare/contrast with any potential changes. Prompt as needed.
17:45
< JustBob>
iirc, that's what dropbox, etc. do.
17:52 Syk is now known as syksleep
17:54
<@celticminstrel>
Apparently using cat to overwrite the file prevented additional data from being appended...
17:55
<@celticminstrel>
Yet using my sftp client to do the same did not.
17:58
<&ToxicFrog>
Most likely your sftp client writes a different file and then rename()s it into place.
17:58
<&ToxicFrog>
Whereas cat foo > bar opens both files in place.
18:01 EvilDarkLord is now known as Maze
18:11
<@celticminstrel>
...wait, that's not what I did. I cat'ed into a new file and mv'ed it into place.
18:11
< RichyB>
Derakon: do beads lie on top of each other?
18:12
<&Derakon>
Richy: assume the pattern is sufficiently sparse that this is uncommon.
18:12
<&ToxicFrog>
Well then, just reverse what I said~
18:12
<&Derakon>
User can manually veto marked beads if they like.
18:13
<@celticminstrel>
Heh.
18:15
< RichyB>
If a "bead" is a dot of light, I think that you want connected-component labeling.
18:15
<&Derakon>
I was kinda hoping that something clever with signal analysis might be more efficient.
18:15
<&Derakon>
Otherwise, yeah, threshold the image, find the centroids of each connected region, count number of regions.
18:15
<&Derakon>
But that tends to be slowish.
18:16
< RichyB>
How big are these things?
18:16
<&Derakon>
Figure at least 100 512x512 images to analyze.
18:17
< RichyB>
It seems like you ought to be able to get that to process pixels at full RAM throughput, since there's not much work per pixel.
18:17
<&Derakon>
Mm, if you say so.
18:18
<&Derakon>
This is basically a "I'm still in the design phase, so changing things is easy; I'd rather not implement a dumb design if there's a smarter one available."
18:18
< RichyB>
Connected-components is just "if I'm adjacent to another light pixel, copy my label over to him" on every pixel until it stabilises, no?
18:19
<&Derakon>
...oh, hey. numpy has a "label connected components" function.
18:19
<&Derakon>
So that wouldn't be written in pure Python then.
18:20
< RichyB>
Excellent.
18:20
<&Derakon>
http://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.measurements.l abel.html
18:28
< RichyB>
Derakon: I don't know if there are cleverer DSP-based tricks. TBH, I was never very good at signal processing.
18:34
<@AnnoDomini>
http://pics.nase-bohren.de/linuxusers.jpg/1363717989
18:39 Kindamoody|afk is now known as Kindamoody
18:51
<&ToxicFrog>
Oh god they're having me write code
18:51
<&ToxicFrog>
aaaaa
18:53
<&McMartin>
A shocking development!
18:53 * McMartin decides this problem will be easier if he writes programs that write programs.
18:53
<@Alek>
tell them you have to go home, you have a code.
18:59
<@jeroud>
McMartin: Have you ever written a program to write programs to write programs?
19:00
<&McMartin>
Ophis is in part mechanically generated, and is itself an assembler; does that count?
19:04 * Derakon idly wonders how often some programmer thinks "Writing this code is beneath me; I will write code that will write the desired code instead and leave the configuration up to my users."
19:04
<&Derakon>
Second question: how often does that actually work?
19:04
<@jeroud>
The only thing I can think of offhand is the JIT generator in pypy.
19:04
<&McMartin>
Well, here, "my users" is "me" and "the configuration" is "the makefile"
19:04
<&McMartin>
So I'm pretty sure I'm in good hands here
19:05
<&Derakon>
Yeah, writing tools for yourself doesn't count.
19:05
<&McMartin>
This isn't even a tool =P
19:09
< RichyB>
http://pics.nase-bohren.de/swearwords-per-1000-commits.png
19:09
< RichyB>
Heehee.
19:09
< RichyB>
McMartin: I think that once you have code generating any other kind of code, it's not really worth counting the layers involved.
19:10
<&Derakon>
I find it odd that PHP has a middling count there.
19:10
< RichyB>
Maybe your compiler is built with some local equivalent of lexx and yacc. Do you care? Nahhhh, we've already got at least one level of code generation in here.
19:10
<&Derakon>
Maybe because so many of its uses are corporate?
19:11
< RichyB>
Derakon: "I will write code that writes the desired code" works perfectly for every Lisp user who has ever typed "defmacro".
19:11
< RichyB>
Also for most Prolog programmers.
19:11
<&Derakon>
Man, Prolog.
19:11
<&Derakon>
I used that for 2 assignments back in college and never again~
19:11
< RichyB>
Also for anyone who ever designed an FFI that isn't a huge pile of annoyance.
19:11
<&Derakon>
I wonder if it's still listed on my resume?
19:11
< RichyB>
I used Prolog to sleep.
19:12
< RichyB>
By which I mean, I pulled a copy of "The Art of Prolog" - heavy going, but one of the best CS books I have ever seen - out of my university's library and read it every night when trying to sleep one summer.
19:13
< RichyB>
Failed spectacularly; by Autumn I suffered profound insomnia and fluency in Prolog. ;)
19:14
<&Derakon>
Heh.
19:14
<&Derakon>
My "can't sleep" book is Goedel Escher Bach.
19:15
<&ToxicFrog>
Derakon: IME, most of PHP's userbase has never used anything else and has no real comprehension of just how bad it is.
19:16
<&ToxicFrog>
And most of the rest are stuck maintaining corporate stuff, not making public commits.
19:27 Kindamoody is now known as Kindamoody[zZz]
19:27
< RichyB>
Heeheehee http://pics.nase-bohren.de/php_vs_python.png
19:30
<&McMartin>
ON ERROR RESUME NEXT
19:31
<&McMartin>
(ON ERROR RESUME NEXT gets a bad rap; it is strictly better than average C code because you can tell at a glance whether or not secretly returned error codes are being ignored~)
19:31
<&McMartin>
Also, man, Prolog
19:31
<&McMartin>
Prolog is *technically* the first programming language I used
19:32
<&McMartin>
By which I mean I was seated in front of a Prolog system at the age of 2 as a stress test. >_>
19:32
<&McMartin>
... of the system, not me
19:32
<&McMartin>
YAY, BUTTOSN
19:32
<&McMartin>
ALSO BUTTONS
19:32
<&Derakon>
I imagine you couldn't spell very well when you were two~
19:33
<&Derakon>
I strongly suspect my first program was "10 PRINT HI 20 GOTO 10".
19:33
<&Derakon>
It might have been HELLO though.
19:34
<&McMartin>
Assertions can be anything!
19:35
< RichyB>
McMartin: eh. You can see precisely which functions I'm ignoring the errors from when I write C code.
19:35
< RichyB>
"Did they look at the function's return value? Did they save a copy of errno somewhere?"
19:36
< RichyB>
This is a question that can pretty typically be answered with not much context.
19:36
<&McMartin>
RichyB: Are you pretending that *all* functions return an ignorable error code, or that the reader will know at a glance which ones those are?
19:38
< RichyB>
All functions return a possibly-ignored error code which might need to perform syscalls.
19:38
<&ToxicFrog>
Pretty sure mine was DOWN. FORWARD 100. RIGHT 90. FORWARD 100. RIGHT 90. FORWARD 100. RIGHT 90. FORWARD 100. RIGHT 90. UP.
19:38 * Tamber watches a little turtle trundle across the floor.
19:38
<&ToxicFrog>
Or something similar to that.
19:39
<&McMartin>
DOWN REPEAT 4 [ FORWARD 100 RIGHT 90 ] UP
19:39
<&jerith>
LOGO is still one of my favourite LISPs.
19:40
<&McMartin>
Dynamic scoping everywhere :argh:
19:40
< RichyB>
McMartin: realistically I'm pretending that every function returns an error code except for things like memcpy() where it would be better to segfault than to have to check an error flag.
19:40
<&ToxicFrog>
McMartin: I was like 5, the concept of iteration was alien to me~
19:40
<@Alek>
http://pics.nase-bohren.de/swearwords-per-1000-commits.png
19:40
<&Derakon>
Was just linked earlier.
19:40
<&McMartin>
Isn't that a really old study?
19:41
<&McMartin>
(There are also studies about mining program invariants by searching for phrases like "In case some idiot")
19:41
<&jerith>
When I was in grade 2, we were given a thick book of LOGO exercises starting with simple things that came with the code and ending with complicated things that we had to figure out ourselves.
19:42
<&jerith>
A week later I gave it back to my teacher and asked for the next one, because I was finished with this one.
19:42
<&McMartin>
To be fair, 7-year-olds can do a lot
19:42
<&jerith>
I was very sad when she told me that there was only one and it was supposed to last us two years.
19:42
<&Derakon>
And thus was your destiny decided~
19:43
<&McMartin>
When I was 7 I was questing for teachers to show me why long division worked
19:43
<&jerith>
So I picked up the programmer's manual for my dad's C64 and learned BASIC.
19:43
<&McMartin>
... Would that be the User's Guide or the one with the timing diagrams for the chips
19:44
<&McMartin>
(The latter being the one I still have my copy of on my desk)
19:44
<&jerith>
Probably the User's Guide, but I definitely referred to the other one later.
19:45
<&jerith>
I clearly remember fold-out circuit diagrams in the back.
19:45
<&McMartin>
THE COMMODORE 64 KEYBOARD AND FEATURES
19:45
<&McMartin>
A two-character input buffer!
19:46
<&McMartin>
Also called "a queue"!
19:46
<&McMartin>
It is, indeed, the future
19:46
<&jerith>
I actually implemented one of those in a videogame I wrote.
19:46
<&jerith>
Because when you're writing a Snake clone, it turns out that queueing two characters is optimal.
19:47
<&McMartin>
one move on each axis?~
19:47 * celticminstrel noticed Logo come up and got confused as to where it came from.
19:48
<&jerith>
McMartin: Pretty much.
19:52
<@Alek>
http://pics.nase-bohren.de/this-doesnt-work.jpg
20:05
<@AnnoDomini>
Anyone here know MediaWiki syntax?
20:05
<@AnnoDomini>
I'm trying to make a wiki-wide links table thingy.
20:05
<@AnnoDomini>
Like a sidebar with links to important pages.
20:05
<&jerith>
AnnoDomini: I know it's horrible and impossible to parse. :-/
20:06
<@Alek>
for Vorn http://pics.nase-bohren.de/math-not-even-once-2.jpg
20:07
<&jerith>
Banach-Tarski!
20:11
<@Alek>
Banach-Tarski Banach-Tarski!
20:11 cpux|2 [cpux@Nightstar-98762b0f.dyn.optonline.net] has quit [Client closed the connection]
20:11 cpux|2 [cpux@Nightstar-98762b0f.dyn.optonline.net] has joined #code
20:36 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
20:37
<@Azash>
21:36 <@C> freenode -- | RichiH (~richih@freenode/staff/richih): [Global Notice] Hi all. PDPC, freenode's parent organisation, has been dissolved.
20:53 Kyte|Work [c80e6b02@Nightstar-4fab16c5.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
20:54
<&Derakon>
"Hm under the latest development builds, there're only options for 64-bit and 86-bit [architectures]... not 32-bit."
20:56
<&McMartin>
<3
21:00
<@AnnoDomini>
Hahaha.
21:02 Maze is now known as EvilDarkLord
21:59
<@AnnoDomini>
http://pics.nase-bohren.de/webdeveloper-with-without-job.jpg
22:27 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
22:27 mode/#code [+o himi] by ChanServ
22:30
<&McMartin>
Derakon: The sad thing is that this is a perfectly logical guess~
22:43 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
22:47 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
22:48 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
22:48 mode/#code [+o Courage] by ChanServ
22:48
<@Reiv>
86-bit wut
22:49
<&McMartin>
Someone saw the whatever_x86.exe and whatever_x64.exe downloads and made The Logical Conclusion.
22:49
<&McMartin>
Logical but mistaken, as it turns out~
22:49
<@Reiv>
snerk
22:50
<@Reiv>
Yes that's fair
22:50 * McMartin would absolutely consider that one a facepalm with rather than facepalm at.
22:52
<@Reiv>
Indeed!
22:52
<@Reiv>
Hell, it took a while when I was Newbieish to work out why the hell I had to pick x86 or x64... and that x64 is in fact the newer.
22:52
<@Reiv>
Butbut the NUMBERS go UP right?
22:53 Attilla [chatzilla@Nightstar-02422f4a.range81-151.btcentralplus.com] has joined #code
22:53 Attilla [chatzilla@Nightstar-02422f4a.range81-151.btcentralplus.com] has left #code [""]
22:54
<&McMartin>
The di!
22:54
<&McMartin>
*do
22:54
<&McMartin>
But that "6" is actually for "16"
23:02
<@gnolam>
816 > 64.~
23:07
<&McMartin>
Well, I mean, the 8088 was 8-bit and the 8086 was 16-bit, right?
23:07
<&McMartin>
Totally logix!
23:08
<@celticminstrel>
Lies.
23:09
<@celticminstrel>
Logic does not come into this anywhere!
23:13
<@Tarinaky>
See also, the impending release of the XBox 3.
23:13
<@celticminstrel>
Hm?
23:14
<@celticminstrel>
...previous release was 360, wasn't it?
23:27
<@Reiv>
Aw. They called it the Xbox 3?
23:27
<@Reiv>
C'mon, everyone's been calling it the Xbox 720, that was /much/ cooler
23:27
<@celticminstrel>
Pfft.
23:34 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
23:34 Derakon[AFK] is now known as Derakon
--- Log closed Wed Mar 20 00:00:16 2013
code logs -> 2013 -> Tue, 19 Mar 2013< code.20130318.log - code.20130320.log >

[ Latest log file ]