code logs -> 2015 -> Wed, 07 Jan 2015< code.20150106.log - code.20150108.log >
--- Log opened Wed Jan 07 00:00:19 2015
00:24 * Derakon arghs at Java.
00:24
<&Derakon>
Stupid strongly-typed language.
00:25
<&Derakon>
I have five pairs of arrays (nb not Lists), of type String, Color, Integer, Integer, Double. I need to determine if, for any of these arrays, a value at a specific index (same index for all of them) is different across the two in the pair.
00:25
<&Derakon>
This is aggravatingly difficult in Java. It would be so easy in a loosely-type language ;_;
00:29
<&Derakon>
(Well, I mean, I could just have five nigh-identical versions of the comparison code, but that'd be ugly as sin especially when I take into account thte fact tthat any of the arrays could also be null)
00:31
<&McMartin>
It's not strong typing that is hurting you
00:31
<&McMartin>
It's a lack of tuples that autodeclare their types.
00:32
<&McMartin>
C++11 would make this trivial too~
00:34
<&Derakon>
Um, maybe.
00:35
<&Derakon>
Anyway, ended up with a bunch of code that operates on Object[]s, plus a couple of functions that do switch/case to decide types where I have no other choice.
00:42 Turaiel[Offline] is now known as Turaiel
00:49 Orthia is now known as Reivles
01:31 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds]
01:35 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
01:35 mode/#code [+o Alek] by ChanServ
02:14 Tarinaky [tarinaky@Nightstar-e99cts.net] has quit [Operation timed out]
02:35 Tarinaky [tarinaky@Nightstar-e99cts.net] has joined #code
02:35 mode/#code [+o Tarinaky] by ChanServ
02:38 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection reset by peer]
02:47 Turaiel is now known as Turaiel[Offline]
02:52 Reiv_ [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
02:54 Turaiel[Offline] is now known as Turaiel
02:54 Reiv [NSwebIRC@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
03:00 Turaiel is now known as Turaiel[Offline]
03:00 Turaiel[Offline] is now known as Turaiel
03:28 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has quit [Ping timeout: 121 seconds]
04:01 Netsplit *.net <-> *.split quits: @Ogredude, Datawalke, @macdjord|wurk, McMartin, @Reivles, Derakon, ToxicFrog, jerith
04:13 Orthia [orthianz@Nightstar-06e.ln3.224.119.IP] has joined #code
04:13 Netsplit over, joins: Derakon
04:13 Ogredude [quassel@Nightstar-dm1jvh.projectzenonline.com] has joined #code
04:14 macdjord [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
04:14 mode/#code [+aoo ToxicFrog ToxicFrog Orthia] by ChanServ
04:14 Netsplit over, joins: ToxicFrog, Datawalke
04:15 Orthia is now known as NSGuest25122
04:15 McMartin [mcmartin@Nightstar-pct.9b0.223.107.IP] has joined #code
04:15 mode/#code [+ao McMartin McMartin] by ChanServ
04:16 mode/#code [+ao jerith jerith] by ChanServ
04:16 Netsplit over, joins: jerith
04:33 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
04:33 mode/#code [+o Syloq] by ChanServ
05:05 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
05:07 Derakon is now known as Derakon[AFK]
06:38 Kindamoody[zZz] is now known as Kindamoody
07:03 celticminstrel [celticminst@Nightstar-de4ll6.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:10 Turaiel is now known as Turaiel[Offline]
07:28 NSGuest25122 is now known as Reivles
07:51 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds]
08:33 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has joined #code
08:37 * McMartin finishes commenting his Atari 2600 color-test program.
08:37
<&McMartin>
https://github.com/michaelcmartin/Ophis/blob/master/examples/stella/colortest.op h
09:18 Kindamoody is now known as Kindamoody|out
09:34
<@gnolam>
http://i.imgur.com/7yCX6dc.jpg
09:43 * TheWatcher eyes that
09:43 * TheWatcher facepalms
09:53 Erik [996ef1e4@Nightstar-obfcgl.mibbit.com] has joined #code
09:53
< Erik>
A function called "BalanceList" which does not balance a list, but lists balances. Argle.
09:54
< Erik>
Why does English have to be so terrible about having interchangeable nouns and verbs sometimes.
09:55
<@TheWatcher>
I blame the Romans.
09:57
< abudhabi>
I blame the Norse.
10:01
< abudhabi>
(More specifically, William the Bastard.)
10:03
< AverageJoe>
Blame canada!
10:03
< AverageJoe>
Blame canada!
10:19
< Erik>
I think I would also like to apportion a little blame to India for providing so many cheap, not-quite-English-fluent programmers, some of which have been contributing here. (Though I don't know specifically who wrote BalanceList.)
10:24
<@TheWatcher>
Ugh, my sympathies.
10:27 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has quit [[NS] Quit: Leaving]
11:17 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
12:17
<@TheWatcher>
Anyone here got any experience with ruby, rake, and passenger?
12:19 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
12:19 mode/#code [+o Alek] by ChanServ
12:20
< RobinStamer>
Yes
12:21
<@TheWatcher>
My system has just upgraded passenger to 4.x from 3.x. Apache bitched about not knowing anything about the RailsAutoDetect directive anymore, I eventually found this had been replaced by PassengerEnable
12:22
<@TheWatcher>
Except that even though apache is now restarting fine, going to the gitlab install simply gives me a 403
12:22
<@TheWatcher>
the error log contains "Directory index forbidden by Options directive"
12:22
<@TheWatcher>
so I'm assuming it's not acutally working
12:23
< RobinStamer>
You're not using Passenger's nginx server then?
12:23
<@TheWatcher>
No, apache
12:23
<@TheWatcher>
it's mod_passenger
12:25
<@TheWatcher>
oh, wait
12:25
<@TheWatcher>
here we go
12:25
<@TheWatcher>
Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/buildout/agents/PassengerWatchdog) does not exist
12:37
<@TheWatcher>
There, that fixed it
12:37
<@TheWatcher>
Fuck, I could have doen without that
12:42
< RobinStamer>
Yeah, misconfigured Passenger is unfun to debug
12:43
<@TheWatcher>
Frankly IME s/misconfigured Passenger/anything remotely related to ruby/
12:57
< abudhabi>
Welp. My first major project just went into production.
13:00
<@TheWatcher>
\o/
13:00
<@TheWatcher>
Congrats
13:00
< abudhabi>
Thanks.
13:01
< abudhabi>
Let's see how fast and hard the users break it.
13:01
< Erik>
And how terrible the bug reports are.
13:01
< Erik>
"It doesn't work."
13:01
<@TheWatcher>
Ugh
13:01
<@TheWatcher>
Quite.
13:01
< Erik>
"Something is wrong." "Your program is bad." "I have a problem."
13:03
<@Tamber>
"Your program sucks, I can't do things. This is super important that you fix it now, because omg critical!", coupled with two week delays before a reply from them.
13:04
< RobinStamer>
"Your program isn't able to send emails I wrote with Windows Word"
13:04
<@TheWatcher>
I've actually had that
13:04
< Erik>
And then there are the ones who don't report their bugs, but when a patch for the program comes out, they complain that the patch didn't fix their bug.
13:04
<@TheWatcher>
And had to fix it, too
13:05
< Erik>
And then you have the ones who were doing God-knows-what and complaining about the erector set not building a tower.
14:21 Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has joined #code
14:21 mode/#code [+o Checkmate] by ChanServ
14:29 Erik [996ef1e4@Nightstar-obfcgl.mibbit.com] has quit [[NS] Quit: http://www.mibbit.com ajax IRC Client]
14:57 Reivles [orthianz@Nightstar-06e.ln3.224.119.IP] has quit [Ping timeout: 121 seconds]
15:02 Orthia [orthianz@Nightstar-3uj5nk.callplus.net.nz] has joined #code
15:02 mode/#code [+o Orthia] by ChanServ
15:49 celticminstrel [celticminst@Nightstar-de4ll6.dsl.bell.ca] has joined #code
15:49 mode/#code [+o celticminstrel] by ChanServ
16:02 Orthia [orthianz@Nightstar-3uj5nk.callplus.net.nz] has quit [Ping timeout: 121 seconds]
16:07 Orthia [orthianz@Nightstar-sge.bij.224.119.IP] has joined #code
16:07 mode/#code [+o Orthia] by ChanServ
16:29 Orthia [orthianz@Nightstar-sge.bij.224.119.IP] has quit [Ping timeout: 121 seconds]
16:34 Orthia [orthianz@Nightstar-o4v0qm.callplus.net.nz] has joined #code
16:34 mode/#code [+o Orthia] by ChanServ
19:15 Xires is now known as ^Xires
19:28 ^Xires is now known as Xires
20:17 Kindamoody|out is now known as Kindamoody
--- Log closed Wed Jan 07 21:05:00 2015
--- Log opened Wed Jan 07 21:10:18 2015
21:10 TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code
21:10 Irssi: #code: Total of 16 nicks [8 ops, 0 halfops, 0 voices, 8 normal]
21:10 mode/#code [+o TheWatcher] by ChanServ
21:10 Azash [Azash@wizard.engineering] has joined #code
21:10 mode/#code [+o Azash] by ChanServ
21:10 Irssi: Join to #code was synced in 39 secs
21:15 Orthia is now known as Reivles
21:17 abudhabi [abudhabi@Nightstar-7nkq9k.de] has joined #code
21:17 simon_ [simon@Nightstar-2og823.pronoia.dk] has joined #code
21:17 EvilDarkLord [jjlehto3@Nightstar-evu5hu.org.aalto.fi] has joined #code
21:17 RobinStamer [rstamer@genoce.org] has joined #code
21:17 Xires [xires@Nightstar-joe.cv9.106.91.IP] has joined #code
21:17 Attilla [sid13723@Nightstar-ed0oqj.irccloud.com] has joined #code
21:17 Reiv_ [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
21:17 Tarinaky [tarinaky@Nightstar-e99cts.net] has joined #code
21:17 JBeshir [namegduf@Nightstar-rjh.rpa.226.188.IP] has joined #code
21:17 froztbyt1 [froztbyte@Nightstar-frrora.za.net] has joined #code
21:17 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
21:17 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
21:17 grindhold [quassel@Nightstar-uufabm.zebra.fastwebserver.de] has joined #code
21:17 jeroud [sid10043@Nightstar-a1k27g.irccloud.com] has joined #code
21:17 PinkFreud [WhyNot@Pinkfreud.is.really.fuckin.lame.nightstar.net] has joined #code
21:17 Syka_ [the@Nightstar-c409v3.vividwireless.net.au] has joined #code
21:17 Derakon[AFK] [chriswei@Nightstar-5fqf0m.ca.comcast.net] has joined #code
21:17 Kindamoody [Kindamoody@Nightstar-966hb4.mobileonline.telia.com] has joined #code
21:17 McMartin_ [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
21:17 celticminstrel [celticminst@Nightstar-de4ll6.dsl.bell.ca] has joined #code
21:17 Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code
21:17 ServerMode/#code [+oooaooooao Tarinaky himi Alek jeroud jeroud PinkFreud Kindamoody celticminstrel Reiver Reiver] by *.Nightstar.Net
21:17 ServerMode/#code [+bb *!*jbviuerbg@*.9ov.153.41.IP *!*vasfi@*.res.rr.com] by *.Nightstar.Net
21:25 NSGuest60030 [justbob@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
21:25 JustBob [justbob@ServerAdministrator.Nightstar.Net] has joined #code
21:25 mode/#code [+o JustBob] by ChanServ
21:48 Reiv_ is now known as Reiv
22:03 McMartin_ is now known as McMartin
22:03 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [[NS] Quit: brb]
22:04 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
22:04 mode/#code [+ao McMartin McMartin] by ChanServ
22:36 Kindamoody is now known as Kindamoody[zZz]
23:02
<@celticminstrel>
My redirection of program output to a file seems to not work properly.
23:02
<@celticminstrel>
It appears that I get stdout but not stderr.
23:02
<@celticminstrel>
Even though I have >file.txt 2>&1
23:02
<@celticminstrel>
This is for Windows.
23:02
<@Tamber>
Does the >file.txt bit not need to come after the redirect of 2 to 1?
23:03
<@Tamber>
...oh, hm.
23:03
<@celticminstrel>
The source I found says it has to be in that order, but I did try reversing it with no luck.
23:08
<@TheWatcher>
try `1>file.txt 2>&1`?
23:08
<@celticminstrel>
Tried that too. Doesn't change anything.
23:08
<@TheWatcher>
Install mintty?~
23:09
<@celticminstrel>
It must be something to do with Visual Studio, because it works properly when I do it on the command line.
23:10
<@celticminstrel>
(With >file.txt 2>&1(
23:10
<@celticminstrel>
^)
23:12 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:12 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:14
<&ToxicFrog>
celticminstrel: command line parsing on windows is a gigantic clusterfuck and there's no guarantee that VS even invokes it as a normal shell command
23:14
<&ToxicFrog>
Do not rely on it
23:15
<@celticminstrel>
Bleh.
23:16
<&McMartin>
Commands in VS are invoked as if they were batch files, IIRC.
23:16
<&ToxicFrog>
If you really need it, write a batfile that does the right thing and have VS invoke that instead.
23:17
<@celticminstrel>
I'm not sure that'll work in this case...
23:17
<&McMartin>
It's common to also feed it PowerShell or Python (and then demand Python be in your path at build time)
23:18
<@celticminstrel>
Oh, I guess I can customize the command to call for debugging...
23:19
<&ToxicFrog>
Isn't that what you were already doing?
23:19
<@celticminstrel>
No, I was customizing the command arguments. They're separate fields in the property page, for some reason.
23:22 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has quit [Ping timeout: 121 seconds]
23:22 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code
23:22 mode/#code [+o gnolam] by ChanServ
23:23
<@celticminstrel>
I guess I should instead jsut go through my code and purge all instances of printf/perror/fprintf(stderr)...
23:23
<@celticminstrel>
^just
23:24
<@celticminstrel>
Though, I dunno if C++ has a direct replacement for perror.
23:25
<@celticminstrel>
Ah, looks like I could do cerr << strerror(errno)
23:25
<@celticminstrel>
And then << ": " << msg
23:37
<&ToxicFrog>
The actual answer here is "use a proper logging library, and then invoke with --log-to=file.txt"
23:39
<@celticminstrel>
Hmm, Boost does have a logging library, though I don't really see why I need a logging library. This is mostly just debugging output.
23:42
<@celticminstrel>
Anyway, if I switch to C++ streams exclusively, then I can redirect all the output to the Visual Studio output window, which is even better than putting it in a file.
--- Log closed Thu Jan 08 00:00:13 2015
code logs -> 2015 -> Wed, 07 Jan 2015< code.20150106.log - code.20150108.log >

[ Latest log file ]