code logs -> 2011 -> Fri, 21 Jan 2011< code.20110120.log - code.20110122.log >
--- Log opened Fri Jan 21 00:00:58 2011
00:06 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
00:09 You're now known as TheWatcher[zZzZ]
00:16 AnnoDomini [annodomini@Nightstar-0ecc102d.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
00:17 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
00:21 Kindamoody [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has quit [Client exited]
00:22 Kindamoody [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has joined #code
00:29 RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: sleep]
01:19
< kwsn>
hey ToxicFrog, you there?
01:19
<@ToxicFrog>
Yar
01:20
< kwsn>
ok, every time i enter java into cmd prompt, it keeps on giving me not valid command, which java install do i need to have?
01:21
<@ToxicFrog>
Just to run java programs? Java Runtime Environment SE.
01:22
<@ToxicFrog>
That said, if you're on windows, it may not put it someplace the command line looks by default.
01:22
<@ToxicFrog>
It probably just associates .class and .jar files with it and calls it a day.
01:23
< kwsn>
heh
01:24
< kwsn>
it has done that
01:25
<@ToxicFrog>
Try something like 'set PATH=%PATH%;C:/path/to/dir/with/java.exe'
01:25
<@ToxicFrog>
That said, what do you need it for?
01:27
< kwsn>
i needed it for a class last semester but i ended up doing it on a school computer where it worked (i'm on win 7)
01:29
<@ToxicFrog>
Aah. But you didn't need the compiler?
01:30
< kwsn>
i did
01:30
< kwsn>
java/javac didn't work on here
01:31
<@ToxicFrog>
Aah. Ok, so first of all, the JRE just comes with java - for javac you need the JDK, Java Development Kit.
01:32
<@ToxicFrog>
Getting it working from the command line is as simple as setting PATH properly as noted above.
01:34
<@ToxicFrog>
Alternately, you can use an IDE like Eclipse.
01:34
< kwsn>
jdk installed, i'll set the path then xD
01:35
< kwsn>
and shouldn't it be \ instead of / for windows?
01:35
<@ToxicFrog>
Windows will accept either, actually
01:35
< kwsn>
that's a change
01:35
<@ToxicFrog>
It's better to use / in general because (a) it's accepted by OSes that aren't windows, and \ isn't and (b) \ is used as an escape character in a lot of programming languages and shells, leading to paths like c:\\foo\\bar
01:36
<@ToxicFrog>
It's been like that since at least NT
01:36 Attilla [Some.Dude@Nightstar-66744971.threembb.co.uk] has quit [[NS] Quit: ]
01:37
< kwsn>
so 'set PATH=%PATH%;C:\Program Files (x86)\Java\jdk1.6.0_23\bin\java.exe'?
01:37
<@ToxicFrog>
No - drop the "java.exe" from that
01:37
< kwsn>
ah
01:37
<@ToxicFrog>
try 'echo %PATH%' to see the current value
01:37
< kwsn>
there we go
01:37
< kwsn>
thanks
01:38
<@ToxicFrog>
It's a list of directories, separated by semicolons; when you enter a command it searches those directories for .exe, .bat, .cmd, and .com files with that name.
01:38
<@ToxicFrog>
($PATH on *nix works similarly)
01:38
<@ToxicFrog>
You're welcome :)
01:43
<@ToxicFrog>
(if you're planning to do a lot of java development, though, seriously look into using an IDE - Java is painful enough as it is, and having builtin documentation and build system alleviates that somewhat)
01:44
<@McMartin>
(Eclipse is both excellent and free)
01:50 Kindamoody is now known as Kindamoody[zZz]
01:50
< kwsn>
i don't think i'm doing java again fr a while
01:50
< kwsn>
though i am taking scheme nd prolog next semester
01:52
<@McMartin>
Scheme is fun
01:53
< kwsn>
yeah, the one problem with me? I'm not entirely confident in my abilities as programmer, i mean yeah i'm decent at it... but i don't feel like there's much setting me apart from everyne else
01:54 * Vornicus totally rocks a problem he had, crushing it down to Ridiculously Easy Linear Time
01:59
<@ToxicFrog>
kwsn: confidence will come with practice.
01:59
<@ToxicFrog>
And with seeing how awful your classmates' code is~
01:59
< kwsn>
heh
01:59 Derakon[AFK] is now known as Derakon
02:08
<@ToxicFrog>
kwsn: for serious. You're lacking confidence? Half of your classmates don't understand how any of the tools work and will melt down completely the first time they see a new error message.
02:09
< kwsn>
heh, most of mine aren't bad really
02:09
< kwsn>
but like i know how to write a sort function, could i name what type it is? probably not
02:12
<@Vornicus>
oh meh.
02:12
<@Vornicus>
"it's a sort function. It sorts."
02:13
<@McMartin>
That question is a question of Computer Science, not programming.
02:13
<@McMartin>
They're different >_>
02:13
<@McMartin>
CS is important, but it's as distinct from programming as linguistics is from writing.
02:14 * kwsn is SE, not CS :P
02:14
<@McMartin>
If they aren't teaching you CS material at some point you won't be much of an SE.
02:18
< kwsn>
they have taught me some, like PLS was more of a CS class
02:18
<@McMartin>
PLS? EAP.
02:35
< celticminstrel>
SE?
02:36
<@McMartin>
SE = Software Engineering
02:36
<@McMartin>
I can't expand PLS.
03:07
< kwsn>
programing language structures
03:08
<@ToxicFrog>
Is that data structures, language theory, or something else entirely
03:08
<@ToxicFrog>
?
03:10
< kwsn>
lang theory
03:11
<@ToxicFrog>
Aah
03:38 Derakon [Derakon@Nightstar-cfae48c3.ca.comcast.net] has quit [Operation timed out]
03:41 Derakon [Derakon@Nightstar-cfae48c3.ca.comcast.net] has joined #code
03:41 mode/#code [+o Derakon] by Reiver
03:45 * Derakon :wtc:s at the ending of Septerra Core.
03:45
<@Derakon>
Mischan.
05:42
<@McMartin>
I see git is as useless as svn when it comes to binary files
05:43
<@Derakon>
What's it supposed to do, give you a bitwise diff?
05:44
<@McMartin>
I meant more "internally"
05:44
<@McMartin>
And yes, if the files share a prefix, a suffix, or are the same size, some benefits could accrue, I think =P
06:10 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited]
06:23
< simon_>
it certainly is line-based source-code oriented
06:40 Derakon is now known as Derakon[AFK]
07:03 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:30 AnnoDomini [annodomini@Nightstar-0ecc102d.adsl.tpnet.pl] has joined #code
07:30 mode/#code [+o AnnoDomini] by Reiver
07:57 Kindamoody[zZz] is now known as Kindamoody
08:02 kwsn is now known as kwsn\t-2
08:05 kwsn\t-2 [kwsn@Nightstar-5a8951e9.res.rr.com] has quit [[NS] Quit: HALLO]
08:31 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
09:01 Kindamoody is now known as Kindamoody|work
09:10 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Operation timed out]
09:12 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
09:39 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Operation timed out]
09:40 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
09:47 Kindamoody|work [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
10:03 AnnoDomini [annodomini@Nightstar-0ecc102d.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
10:09 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
10:10 Reiv [orthianz@Nightstar-4f305c4d.xnet.co.nz] has quit [Ping timeout: 121 seconds]
10:10 DiceBot [Reiver@Nightstar-8470770e.xnet.co.nz] has quit [Ping timeout: 121 seconds]
10:30 You're now known as TheWatcher
10:31 Kindamoody [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has joined #code
10:47 AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code
11:46 DiceBot [Reiver@Nightstar-aec8191b.xnet.co.nz] has joined #code
11:46 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
11:46 mode/#code [+qo Reiver Reiver] by ChanServ
11:49 Reiv [orthianz@Nightstar-1e9bd2b3.xnet.co.nz] has joined #code
11:51 Vornicus is now known as Vornicus-Latens
11:53 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Ping timeout: 121 seconds]
12:03 cpux is now known as shade_of_cpux
12:38 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
12:58 AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: Going home.]
13:01 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:18 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:23 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Ping timeout: 121 seconds]
13:24 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
13:26 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code
13:33 AnnoDomini [annodomini@Nightstar-0ecc102d.adsl.tpnet.pl] has joined #code
13:33 mode/#code [+o AnnoDomini] by Reiver
13:33 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
15:29
<@jerith>
So, unit testing network code in Java.
15:29
<@jerith>
I have a system that makes calls to various third-party services.
15:30
<@jerith>
I can stub out the actual network stuff to test most of the functionality, but we have hard requirements about things like latency.
15:31
<@Derakon[AFK]>
Have another service running on the same box that you can connect to for testing purposes, which other service can be coded to fiddle with delays and so on.
15:33
<@jerith>
That's kind of where I'm going, although I'd need it running in another thread in my test process.
15:33
<@jerith>
(There are a bunch of backends and we build this code (which includes running tests) in all sorts of strange places.)
15:53 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
16:28 * gnolam ponders posterization.
16:47 kwsn [kwsn@Nightstar-5a8951e9.res.rr.com] has joined #code
16:48
< kwsn>
you know what i like? is when people who know nothing about cmputers can admit that they know nothing about cmoputers
16:54
<@jerith>
You know what I like? When people who know nothing about code can stop trying to micromanage my code.
16:55 * jerith hugs kwsn.
17:03 * kwsn hugs jerith
17:03 * kwsn micromanages jerith's coe
17:03
< kwsn>
*code
17:07
<@jerith>
You, I'd trust to micromanage my code.
17:07
<@jerith>
You know enough to know what you don't know.
17:08
< gnolam>
s/computers/$ANY_SUBJECT
17:08
< gnolam>
But sadly, there's the Dunning-Kruger effect. :P
17:08
<@jerith>
This blasted woman I'm supposed to be working with rants about my lack of documentation for a system I'm still trying to build a proof-of-concept prototype for.
17:09
<@jerith>
Then she yells at me for designing said prototype without her detailed input and oversight.
17:25
< kwsn>
jerith: that's when you g to her and tell her "you want it done your way, do it yourself"
17:33
<@jerith>
She's closer to you than to me.
17:34
<@jerith>
And I've told my boss and my boss' boss that if she doesn't fuck off and let me do my job, they can all find someone else to do it.
17:35
<@jerith>
She's a difficult person to work with.
17:35
<@jerith>
AAARGH! *STABSTABSTAB*
17:36
<@jerith>
This library reads a hostname out of a property file and makes it a constant. Then it uses the constant everywhere.
17:37
<@jerith>
So I can't inject my own damned server into it for testing without providing the property file it's expecting.
17:39
<@jerith>
Hrm. It isn't actually marked final.
17:39 * jerith shudders and tries replacing it.
17:41
<@jerith>
Oh. It's an interface. That makes it final.
17:41 * jerith bashes his head into the desk a few time.
17:41
<@jerith>
Why do people do this?
17:42
<@jerith>
It's a library. It's expected that you might want to actually test some code that uses it.
17:42
<@jerith>
So you make all the configuration static and require a stupid file in a magic place that you get to read once at startup.
17:42
<@jerith>
(Well, when the class is loaded. But that's pretty much the same thing here.)
17:47
<@jerith>
Well. The more recent versio nof the library does it sanely.
17:48 * jerith tries getting that.
17:59 AnnoDomini is now known as Ed
18:00 TarinakyKai [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
18:03 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Ping timeout: 121 seconds]
19:44 AbuDhabi [annodomini@Nightstar-4a6d5e24.adsl.tpnet.pl] has joined #code
19:45 AbuDhabi is now known as Edd
19:45 Ed [annodomini@Nightstar-0ecc102d.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
20:22 Edd is now known as Ed
21:05 Vornicus-Latens is now known as Vornicus
21:27 Attilla [Some.Dude@Nightstar-fe341142.threembb.co.uk] has joined #code
21:27 mode/#code [+o Attilla] by Reiver
22:26 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
22:36 Ed is now known as AnnoDomini
23:18 AnnoDomini [annodomini@Nightstar-4a6d5e24.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.]
23:42 You're now known as TheWatcher[T-2]
23:47 You're now known as TheWatcher[zZzZ]
--- Log closed Sat Jan 22 00:00:59 2011
code logs -> 2011 -> Fri, 21 Jan 2011< code.20110120.log - code.20110122.log >