code logs -> 2014 -> Fri, 12 Sep 2014< code.20140911.log - code.20140913.log >
--- Log opened Fri Sep 12 00:00:51 2014
00:01 macdjord|slep is now known as macdjord
01:27 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
01:27 mode/#code [+qo Vornicus Vornicus] by ChanServ
01:55 RchrdB [0x2ba22e11@Nightstar-qe9.aug.187.81.IP] has quit [Ping timeout: 121 seconds]
02:27 Learin [Learin@Nightstar-6ntd2i.tn.comcast.net] has joined #code
02:27
< Learin>
hello
02:28
<@Reiv>
Greetings.
02:28
<@Reiv>
How can we code you today?
02:28
< Learin>
I am looking for a good web course on Java
02:28
< Learin>
Does anyone have any suggestions?
02:28
<@Reiv>
If you find one, let me know ;)
02:29
< Learin>
I have taken a begginers course on Java and I am looking for a more in dpth course.
02:31
< Learin>
there is one I have heard of I think it is a site called tid bit or something.
02:31
< Learin>
it is a subscription based service that has a lot of video tutorials
02:32
<@Reiv>
Hm
02:32
<@Reiv>
Never heard of it, but that doesn't mean much
02:32
< Learin>
sorry it is called wibit
02:32
<@Reiv>
I'd suggest idling here for a while until the others wake up/get home
02:32
< Learin>
thanks for the input. Will do
02:33
< Learin>
what language do you prefer?
02:34
<&ToxicFrog>
I think we have at least a few Java programmers in here.
02:34
<@Reiv>
I am perhaps not the best person to ask that~
02:34
<&ToxicFrog>
But as Reiv says they are probably asleep.
02:35
<@Reiv>
I know PL/SQL. I hate it.
02:35
<@Reiv>
I am musing on either Python or C# for my next project.
02:35
<@Reiv>
Leaning towards C#, which is a horrible choice, but so are all the others so oh well
02:35
<@Reiv>
At least my dev tools will be have a fancy GUI.
02:35
< Learin>
I just started working on Python myself
02:36
< Learin>
lol that is true.
02:36
<&ToxicFrog>
Reiv: if by your next project you mean the gaming-related one, I'd vote for either Python with Pygame or Pyglet, or Lua with Love2D
02:37
< Learin>
If you decide to go with Python I like pycharm. I have heard of pygame is how do you like it Toxic?
02:37
<@Reiv>
Unity plays nicer with C#, apparently.
02:37
<@Reiv>
And more usefully, C# is the language de jure at work.
02:37
<&ToxicFrog>
Reiv: oh, yeah, if you're using Unity you're pretty much stuck with C# or another compatible CLR language
02:37
<@Reiv>
So I can even pretend that this might help my job prospects, har
02:37
<&ToxicFrog>
Which is, to be fair, a pretty wide choice these days. I know some people have written KSP mods in Scala.
02:38
<&ToxicFrog>
Learin: I haven't actually used either pygame or pyglet, I've just heard them well spoken of by people who have.
02:38
<&ToxicFrog>
Until last year I didn't really do a lot of Python programming.
02:39
<&ToxicFrog>
(and the python I'm doing is all for work, command line tools and backend stuff)
02:39
<@Reiv>
ToxicFrog: ... really? I thought you were a Python guy from way back.
02:39
< Learin>
I am liking Python so far. I am by no means well versed in it but it has been a useful tool for small little apps for myself.
02:40
<&ToxicFrog>
Reiv: no, I think that's Vorn. I did a bit of Python in school, that's it.
02:40
<@Reiv>
Huh.
02:40
<@Reiv>
What was your code du jour
02:41
<@Reiv>
Speaking of, does anyone here actually know C# ~
02:41
< Learin>
I know some C++ but I havn't actually worked with C#
02:41
<&ToxicFrog>
That's a pretty broad question. It was C and Turing for most of high school, Lua for most of university. These days it's Clojure for most of my personal projects, with a smattering of Lua (2d or binary data manipulation stuff) or Python (where its libraries and short startup time are convenient)
02:42
<@Reiv>
hn
02:42
<&ToxicFrog>
E.g. mo is written in python because that gets me access to Mutagen.
02:42
<@Reiv>
Yeah, I'm not sold on Unity
02:42
<@Reiv>
But then I'm not really sold on any such thing
02:42
<@Reiv>
I just want to make Snake.
02:43
<@Reiv>
And the last time I programmed a game I had to hand-code the ASCII output and instruction input loops in C, and I've never looked back.
02:43
<&ToxicFrog>
Yeah, I don't really know much about Unity except that it's what KSP is made in.
02:43
<@Reiv>
(A pity I never got the chess AI to work right. Oh well, 2p was fine.)
02:44
< Learin>
I am working on a game that is kind of an original fire emblem clone.
02:44
<&ToxicFrog>
Love2d is a fairly nice engine for making 2d games in but doesn't do anything but 2d games; I would recommend it for Snake-like things.
02:44
< Learin>
not so much the graphical style but the gameplay style is what i'm going for
02:45
<@Reiv>
ToxicFrog: How much that I learn there would be applicable to other generic games later
02:47
<&ToxicFrog>
Reiv: general techniques for handling input, program structure, etc: plenty. Specific APIs: probably not much. Language: depends on whether your other games are written in (or embed) Lua
02:47 * Reiv muses.
02:47
<@Reiv>
I will give it consideration.
02:49 Turaiel[Offline] is now known as Turaiel
02:50
<&ToxicFrog>
(the basic engine structure is that it gives you a bunch of callbacks -- love.update() and love.draw() called every frame, and various key/mouse event handlers for user input -- which you write implementations for, and a bunch of APIs for doing things like drawing to the screen or loading resources)
02:52
<&ToxicFrog>
Learin: the only Fire Emblem I've played was the GBA one, and I never finished it, but it was pretty fun.
02:54
<&McMartin>
re: java tutorials: Actually the code trails in the java tutorial on Oracle's own Java site are really quite good
02:55 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
02:55
< Learin>
I need to look into that more. I know there is a ton of info on the Oracle site.
02:57
<&McMartin>
http://docs.oracle.com/javase/tutorial/ is where to start
02:57
< Learin>
One thing I have been trying to learn more about in Java is how to add Gui's into my programs.
02:58
< Learin>
Thanks for the link. I'll check that out.
02:58
<&ToxicFrog>
Speaking as someone who has written GUIs in Java
02:58
<&ToxicFrog>
Don't.
02:59
< Learin>
lol I have heard that a lot
03:01
<&McMartin>
Pretty much
03:01
< Learin>
I have written a few apps in Java that I just use for myself, Like a bill pay app, but I don't really understand how to add a GUI to it
03:01
<&McMartin>
But if you have to, use Swing as much as possible and only use java.awt when there's no alternative (like, well, java.awt.Event)
03:01
<&McMartin>
The Swing tutorial is pretty decent in terms of "maybe I can just shove stuff in here from there and hope it works")
03:02
< Learin>
Noted, Thanks.
03:02 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
03:02
<&ToxicFrog>
Yeah, Swing is the least bad option for Java GUIs, although it's still pretty unpleasant.
03:02 * Vornicus could never ever figure out how the hell to do anything with any of the java libraries
03:02
<&ToxicFrog>
Although, to be fair, GUI development in any language is a vale of tears, as far as I can tell.
03:02
<&ToxicFrog>
I'll be doing some work with Clojure/Seesaw at some point (a Clojure wrapper around Swing) and we'll see how that goes.
03:02
<~Vornicus>
Javascript +JQuery is about the best I've ever met.
03:03
< Learin>
Yea, the only success I have ever had at it is in Basic and I am really not a fan of Basic
03:03
<&ToxicFrog>
Vornicus: I had cause to do some Javascript at work last month and spent the entire time swearing at it~
03:03
<~Vornicus>
(randomly, I keep wanting "parent-of" and "previous-sibling-of" selectors)
03:03
<&McMartin>
ToxicFrog: Actually, some of the stuff that uses raw Swing in Clojure is pretty sweet
03:03
<&ToxicFrog>
As for the Java libraries, that's actually one of my big complaints about the Java stdlib; it's frickin' huge and for any given task there's six classes, two of them deprecated, that do 90% of what you want, and nothing that does 100%.
03:04
<&McMartin>
Heh
03:04
<&McMartin>
On the other hand, at least they are *there*
03:04
<&ToxicFrog>
And the docs are great at telling you how to use each of those six classes and completely worthless for (a) finding them in the first place and (b) figuring which one of those six you want.
03:04
<&McMartin>
I get to routinely horrify professional Java programmers by pointing out we have to hit dodgy third-party libraries to, say, talk to the network in a cross-platform way
03:05
<&ToxicFrog>
McMartin: I don't think I've seen anything in Clojure that uses raw Swing
03:06
<&ToxicFrog>
But yeah, my overall experience has been that using Java libraries from Clojure is not as pleasant as using Clojure libraries but is generally more pleasant than using them from Java proper~
03:06
<&ToxicFrog>
(my seesaw-related plans, btw, are to finish getting bltool properly typechecked and then add a GUI to it so that windows users double-clicking on the jar aren't left totally helpless)
03:06 * McMartin nods
03:07
<&McMartin>
I should dig up the maze generator
03:07
<&McMartin>
That said, here's a Swing app in Clojure
03:07
<&McMartin>
http://clojure.org/jvm_hosted
03:08
<&McMartin>
reify <3
03:08 * Vornicus needs to get back at dealing with some of his personal projects
03:09
<&ToxicFrog>
I've never actually had cause to use reify yet.
03:09 * McMartin just wrapped up his latest project, should have a go at the "make double-clicking console apps not be hopelessly bullshit" library.
03:09
<&ToxicFrog>
In what language?
03:10
<&ToxicFrog>
Because let me tell you, console apps being hopeless bullshit is my #1 pain in the ass shipping JVM programs to windows users~
03:10
<&McMartin>
The code froztbyte linked was in Go.
03:10
<&ToxicFrog>
Especially since even if the JRE is "correctly installed" you have at best a 50% chance of java being in $PATH, so you can't just ship a batch file and be done with it
03:11
<&McMartin>
I'm going to port it to C.
03:11
<&ToxicFrog>
Aah.
03:11
<&McMartin>
I don't know if I can make it JNI-friendly.
03:15
<&McMartin>
Are there semi-standard libraries for getting at Windows syscalls?
03:17 * Vornicus examines, determines he was working on richer publications for power grid.
03:19
<&ToxicFrog>
No idea.
03:19
<&ToxicFrog>
Hmm.
03:19
<&ToxicFrog>
I can't figure out how to express "this function does not return" in core.typed.
03:20
<&McMartin>
Mmm. The joy of booting up an old VM and finding 162 updates pending
03:21
<~Vornicus>
(currently, powergrid uses plain english text to describe game actions, which is sends via a single callback to subscribers. Now I want the subscribers to have *many* callbacks.)
04:05 Learin [Learin@Nightstar-6ntd2i.tn.comcast.net] has quit [Ping timeout: 121 seconds]
04:25 Kindamoody[zZz] is now known as Kindamoody
05:27 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
05:40 Turaiel is now known as Turaiel[Offline]
05:50 Kindamoody [Kindamoody@Nightstar-180u8i.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
05:50 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
05:51 Kindamoody [Kindamoody@Nightstar-180u8i.tbcn.telia.com] has joined #code
05:51 mode/#code [+o Kindamoody] by ChanServ
05:51 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
05:56 Kindamoody is now known as Kindamoody|out
06:21 macdjord is now known as macdjord|slep
06:55 celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:21
<&McMartin>
froztbyte: Ported in 53 lines of C.
07:21
<&McMartin>
I'm going to github it once I make it more presentable.
07:22
<@froztbyte>
I was about to ask for a link ;p
07:23
<@froztbyte>
Also that's not Sunday
07:23
<&McMartin>
Indeed not
07:24
<@froztbyte>
Haha
07:27
<&McMartin>
http://pastebin.starforge.co.uk/651
07:28
<&McMartin>
This will expire in a day because it is awful
07:39
<&McMartin>
Hrm
07:39
<&McMartin>
OK, githubbing this may be complicated a bit.
07:39
<&McMartin>
I may shoot this guy an email first.
07:40
<&McMartin>
I want to release it public domain, but it is *awful* close to what he did and he did under Apache.
07:40
<&McMartin>
It's not technically a derived work because there's really only one way to use this API but I want to give him a nod and not make it look like I'm casually ripping him off.
07:51
<&McMartin>
http://pastebin.starforge.co.uk/652 is a simplified version that is just "throw this into your project somewhere" and then there's a (basically) one-line header file to go with it.
08:22 Orthia [orthianz@Nightstar-eqd.1ga.224.119.IP] has quit [Ping timeout: 121 seconds]
08:26 Orthia [orthianz@Nightstar-o1enn5.callplus.net.nz] has joined #code
08:27 mode/#code [+o Orthia] by ChanServ
09:45 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
09:45 mode/#code [+o Checkmate] by ChanServ
09:53 Thalasleep is now known as Thalass
10:04
<@Tarinaky>
Wish me luck as I venture into the exciting and scary world of building a cross compiler...
10:06 RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has joined #code
10:06 mode/#code [+o RchrdB] by ChanServ
10:33 RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has quit [[NS] Quit: Leaving]
10:36 RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has joined #code
10:36 mode/#code [+o RchrdB] by ChanServ
10:47
<@Tarinaky>
Windows query.
10:47
<@Tarinaky>
Windows says this machine is an i7
10:47
<@Tarinaky>
But when I open up TaskMan/Resource Manager...
10:47
<@Tarinaky>
I can only see 4 CPU charts.
10:48
<@Tarinaky>
My understanding is there should be a CPU chart for each hyperthread (i.e. 8)
10:48
<@Tarinaky>
Not each physical CPU...
10:48
<@Tarinaky>
So I'm confused as to whether I have 2 cores with 4 threads or 4 cores with 8 threads.
10:48
<@Tarinaky>
Halp?
10:49
<@TheWatcher>
Wuich i7? The 4578U has two cores/4 threads
10:49
<@TheWatcher>
*which
10:49
<@Tarinaky>
3540M
10:49
<@Tarinaky>
I thought the i7 bit corresponded to how many threads/processors it had.
10:50
<@TheWatcher>
That's 2 corse
10:50
<@TheWatcher>
*cores
10:50
<@TheWatcher>
http://ark.intel.com/products/71255/Intel-Core-i7-3540M-Processor-4M-Cache-up-to -3_70-GHz
10:50
<@Tarinaky>
Then wtf does i7 mean?
10:50
<@TheWatcher>
Family name
10:56
<@Tarinaky>
Currently trying to figure out how to get an arm-linux-android-gcc :/
10:57
<@Tarinaky>
Not sure whether it's part of envsetup.sh or whether I need to build a generic cross compiler and build bionic with it.
11:01
<@RchrdB>
Tarinaky, if you put the model number of any intel CPU into google, you'll get an ark.intel.com result like that one that TheWatcher gave.
11:01
<@RchrdB>
they're reliable except ~occasionally~ Intel releases something like "Xeon E1234" and then slightly later "Xeon E1234 v2"
11:01
<@RchrdB>
rare though
11:02
<@Tarinaky>
I'll keep that in mind :)
11:02
<@RchrdB>
Easiest way by far to see what's actually in the chip, except for the things that Intel happens to think aren't important enough to put on ark.intel.com
11:36 Orthia [orthianz@Nightstar-o1enn5.callplus.net.nz] has quit [Ping timeout: 121 seconds]
11:38
<@RchrdB>
Current sadness: having a performance issue in production (pages timing out) that didn't get spotted earlier because the devs' laptops are too fast.
11:38
<@RchrdB>
:(
11:40
<@TheWatcher>
...
11:40
<@TheWatcher>
ouch
11:42 Orthia [orthianz@Nightstar-eqd.1ga.224.119.IP] has joined #code
11:42 mode/#code [+o Orthia] by ChanServ
11:48
<@Thalass>
first world developer problems?
11:50
<@RchrdB>
Quite.
11:50
<@RchrdB>
OTOH, we really should've been treating 15s page load times as a problem anyway.
11:51
<@TheWatcher>
Yeah, no kidding
11:52
<@RchrdB>
Related: having 4GB+ databases in prod and 20MB databases in testing is also stupid.
11:52
<@RchrdB>
Related: not doing any automated performance testing whatsoever is⦠questionable.
12:11 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
12:47
<@RchrdB>
This is pretty! http://blog.matthen.com/post/97284098616/take-a-rectangle-and-cut-it-along-a-ran dom-line
12:49
<@Azash>
RchrdB: Observation that the middle piece becomes a bear silhouette
12:50
<@RchrdB>
Yes! â¥
14:31
<@RchrdB>
Wellp, this is surprising.
14:32
<@RchrdB>
pystone runs about 2x slower using the production libc et al than the one I have on my laptop.
14:51 Thalass [thalass@Nightstar-5gtf3h.bigpond.net.au] has quit [Ping timeout: 121 seconds]
15:09 Kindamoody|out is now known as Kindamoody
15:33 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds]
16:17 thalass [thalass@Nightstar-5gtf3h.bigpond.net.au] has joined #code
16:18 mode/#code [+o thalass] by ChanServ
16:38 Kindamoody is now known as Kindamoody|out
16:48 celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has joined #code
16:48 mode/#code [+o celticminstrel] by ChanServ
16:58
<@RchrdB>
Fucking timezones.
17:44 Turaiel[Offline] is now known as Turaiel
17:55 Derakon [Derakon@Nightstar-5fqf0m.ca.comcast.net] has joined #code
17:56 mode/#code [+ao Derakon Derakon] by ChanServ
17:56 * Derakon eyes his work email.
17:56
<&Derakon>
We write software for controlling microscopes. A large part of this is the code that talks to cameras.
17:56
<&Derakon>
Microscope cameras tend to be high-quality things that are sensitive to very low light levels.
17:56
<&Derakon>
We just got an email asking for a recommendation for a cheap webcam that would work with our program.
17:57
<&Derakon>
"I know there is a list of compatible cameras. But they are typically of too high quality and price."
18:07 thalass [thalass@Nightstar-5gtf3h.bigpond.net.au] has quit [Ping timeout: 121 seconds]
18:08
<@froztbyte>
haha
18:10
<&Derakon>
I mean, it's entirely possible that they're trying to do, say, science education in a poorly-funded school.
18:10
<&Derakon>
I shouldn't make fun of them.
18:10
<&Derakon>
But there's a significant disconnect here.
18:14
<@froztbyte>
someone here may potentially glean some enjoyment from http://www.pong-story.com/GIMINI1978.pdf
18:35 Kindamoody|out is now known as Kindamoody
18:36 RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has quit [[NS] Quit: Leaving]
18:48
<&Derakon>
I'm 133 commits into this branch and still a long ways away from the day I can merge back into master.
18:48 Turaiel is now known as Turaiel[Offline]
18:51
<@Tarinaky>
Derakon: What /would/ you recommend for science education in a poorly funded school out of interest?
18:52
<&Derakon>
A Foldscope.
18:52
<&Derakon>
http://www.foldscope.com/
18:52
<&Derakon>
Though I don't know how widely-available those are yet.
18:53
<@Tarinaky>
Neat!
18:53
<@Tarinaky>
They need PR :P
18:53
<&Derakon>
They've had it in the scientific community.
18:54
<&Derakon>
I believe their primary market at the moment is third-world diagnostic screening tests.
18:54
<&Derakon>
They can only ramp up so quickly.
18:54 * Tarinaky nods.
18:54
<@Tarinaky>
Still. I've not seen it in any of the popular science rags I follow.
18:54
<&Derakon>
I've seen a few articles about them.
18:54 * Derakon shrugs.
18:55
<&Derakon>
I've also seen 3D-printed microscopes that use smartphone cameras, for a more expensive approach.
18:55
<&Derakon>
It's literally a stand that you insert your phone into, and the stand is formatted such that the phone's camera is lined up with the scope optics. Then you just bring up the photo app on the phone and take a look around.
18:59
<&jerith>
Derakon: Foldscope looks awesome.
18:59
<&Derakon>
There's a good reason for that~
18:59
<&jerith>
The idea and implementation, I mean. It's pretty as well, but that's not really what I care about. :-)
19:00
<&Derakon>
Heh.
19:00
<&Derakon>
Yeah, I meant "it looks awesome because it is awesome".
19:12
<&Derakon>
Argh god dammit Java.
19:13
<&Derakon>
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double
19:13
<&Derakon>
Seriously? SERIOUSLY?
19:13
<&jerith>
Maybe you need to unbox them or something?
19:14
<&Derakon>
It's still dumb.
19:19 Kindamoody is now known as Kindamoody[zZz]
19:19
<&jerith>
No disagreement there.
19:34 Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
19:36 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
19:50
<@macdjord|slep>
Derakon: Uh, yeah? Integer is not a child of Double, nor should it be. Casting is not the same as converting.
19:51
<&Derakon>
Mac: yeah, see, in a better language you'd be able to define casting functions to do the conversion anyway.
19:51
<&ToxicFrog>
My experience with Java's auto(un)boxing is that it works always and only when you don't want it to.
19:51
<&ToxicFrog>
Such as Scala's implicit converters.
19:55 macdjord|slep is now known as macdjord
20:55 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
20:55 mode/#code [+o Checkmate] by ChanServ
20:57 Red_Queen [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:14 Turaiel[Offline] is now known as Turaiel
21:48 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
23:11 Lappy-Caboose [IceChat9@Nightstar-n1lejv.ed.shawcable.net] has joined #code
23:16 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:16 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:54 Lappy-Caboose [IceChat9@Nightstar-n1lejv.ed.shawcable.net] has quit [[NS] Quit: IceChat - Its what Cool People use]
--- Log closed Sat Sep 13 00:00:07 2014
code logs -> 2014 -> Fri, 12 Sep 2014< code.20140911.log - code.20140913.log >

[ Latest log file ]