code logs -> 2013 -> Thu, 18 Jul 2013< code.20130717.log - code.20130719.log >
--- Log opened Thu Jul 18 00:00:15 2013
00:07 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
00:18 Derakon[AFK] is now known as Derakon
00:28 Derakon is now known as Derakon[AFK]
00:33 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Client closed the connection]
00:34 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
01:15 ktemkin[work] is now known as ktemkin[awol]
01:18 Derakon[AFK] is now known as Derakon
01:28 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Client closed the connection]
01:29 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
01:33 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
01:49 Reiv [NSwebIRC@Nightstar-95746c1f.kinect.net.nz] has joined #code
01:49 mode/#code [+o Reiv] by ChanServ
01:53 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [[NS] Quit: ]
02:21 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
02:37 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Client closed the connection]
02:37 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
02:45 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
02:48 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
02:53 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds]
02:57 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has joined #code
02:57 mode/#code [+o gnolam] by ChanServ
03:08 Typh|offline is now known as Typherix
03:16 Chutzpah [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
03:18 Chutzpah [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
03:22 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
03:34 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Ping timeout: 121 seconds]
04:14 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:26 Kindamoody[zZz] is now known as Kindamoody
04:29 Typherix is now known as Typh|offline
05:04 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
06:17 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Ping timeout: 121 seconds]
06:23 celticminstrel [celticminst@Nightstar-8403057e.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
06:39 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: ]
06:53 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has joined #code
07:12 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
07:12 mode/#code [+o himi] by ChanServ
07:17 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
07:31
<@Alek>
for Vorn: http://imgur.com/gallery/LxfZMhZ
07:31 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has quit [Client closed the connection]
07:33 NSGuest15938 [Karono@Nightstar-0e4527e4.optusnet.com.au] has joined #code
07:38 NSGuest15938 [Karono@Nightstar-0e4527e4.optusnet.com.au] has quit [[NS] Quit: ]
07:39 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
08:27 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
08:27 mode/#code [+qo Vornicus Vornicus] by ChanServ
08:30 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code
08:35 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has joined #code
08:52
<@froztbyte>
Alek: .....god I love numbers
09:06 Kindamoody is now known as Kindamoody|out
09:09 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has quit [Ping timeout: 121 seconds]
09:11
<@Alek>
:D
09:19 You're now known as TheWatcher
09:20
<~Vornicus>
How little structure there is.
09:20
<~Vornicus>
We're still not sure if pi is normal though
09:22 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has joined #code
09:45 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:45 mode/#code [+o himi] by ChanServ
10:55 Vorntastic [Vorn@Nightstar-6413e898.sub-70-211-4.myvzw.com] has joined #code
11:32 * TheWatcher hairpulls over UI issues
11:37
<@gnolam>
Your own or somebody else's?
11:38
<@TheWatcher>
My own
11:40
<@TheWatcher>
In this case, how to get all the features and settings into this web ui without turning it into something that makes people's brains melt
11:41 Kindamoody|out is now known as Kindamoody
11:57 Kindamoody is now known as Kindamoody|out
12:01 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [[NS] Quit: Leaving]
13:12 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has quit [Client closed the connection]
13:15 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has joined #code
13:15 mode/#code [+o gnolam] by ChanServ
13:21 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has quit [[NS] Quit: reboot]
13:24 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has joined #code
13:24 mode/#code [+o gnolam] by ChanServ
14:02 gnolam [lenin@Nightstar-b2aa51c5.cust.bredbandsbolaget.se] has quit [[NS] Quit: Gone]
14:06 Serah [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
14:30
<@TheWatcher>
AHA! I have it!
14:30
<@TheWatcher>
I'll show those fools in the department! I'LL SHOW THEM ALL!!
14:30
<@TheWatcher>
Mwahahahahahahahaha!!!!!
14:35 celticminstrel [celticminst@Nightstar-8403057e.dsl.bell.ca] has joined #code
14:35 mode/#code [+o celticminstrel] by ChanServ
14:54 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
15:04 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has quit [Client closed the connection]
15:05 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has joined #code
15:09 * Azash calls the men in white for TheWatcher
15:41 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has quit [[NS] Quit: ]
16:55
<@Tamber>
http://www.reddit.com/r/programming/comments/1ijmgn/7_reasons_why_you_need_to_wo rk_for_a_big_company/cb57pux ... *wince*
16:56
<@TheWatcher>
...
16:56 * TheWatcher twitch
17:04
<@froztbyte>
lols
17:23 Serah [Z@Nightstar-b920a19c.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
18:05 Derakon_ [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
18:05 * Derakon_ mutters at Python and its insistence on buffering the hell out of stdout.
18:06
< Derakon_>
Makes it impossible to track the progress of a long-running script whose output is being directed to a file.
18:08
< ktemkin[awol]>
Derakon_: There's an environment variable that you can use to skip buffering.
18:09
< ktemkin[awol]>
You can also just replace std.stdout with an unbuffered stream on start-up.
18:09
< Derakon_>
I typically only think of these things after the script has already started~
18:15
< ktemkin[awol]>
*sys.stdout >.>
18:25 ktemkin[awol] is now known as ktemkin
18:52 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has quit [[NS] Quit: ZNC - http://znc.in]
18:55 Turaiel[Offline] [Brandon@Nightstar-7dc8031d.mi.comcast.net] has quit [Ping timeout: 121 seconds]
19:21 Kindamoody|out is now known as Kindamoody
19:42 Turaiel[Offline] [Brandon@Nightstar-7dc8031d.mi.comcast.net] has joined #code
19:42 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has joined #code
20:23
< Derakon_>
So. One of the devices in our microscope is a motorized sample positioner.
20:24
< Derakon_>
It ships with a joystick that you can plug into the device controller, but we do all of our positioning through custom software.
20:24
< Derakon_>
We'd like to be able to use the joystick, but only by routing it through our custom software.
20:24
< Derakon_>
(So we can enforce positioning safeties, speed limits, and the like)
20:25
< Derakon_>
The vendor's support has no idea how the joystick works, but it plugs in with standard USB.
20:25
< Derakon_>
Is there a standard joystick protocol so I can just read/write characters over a COM port, or what?
20:25
< Derakon_>
What's the best way to do this, given our software's all in Python?
20:26
<&McMartin>
Is it a joystick that shows up under Windows's Game Controller?
20:26
<&McMartin>
If so, I'd give pygame a shot.
20:26
< Derakon_>
Mmm...wouldn't pygame of necessity create its own window and the like?
20:26
<&McMartin>
On UNIX, the information lives in /dev/js*
20:27
< Derakon_>
I have yet to try actually plugging the joystick into the computer~
20:27
<&McMartin>
I don't believe you have to call SDL_CreateVideoSurface ever, or indeed, pass SDL_INIT_VIDEO to SDL_Init.
20:27
< Derakon_>
Ah.
20:28
<&McMartin>
On Linux, /dev/js0 is a character device with a protocol I don't know
20:28
<&McMartin>
On Windows, DirectInput and XInput are the two protocols.
20:28
<&McMartin>
(SDL, and thus pygame, wrap DirectInput)
20:29
< Derakon_>
Thanks for the info.
20:30
< Derakon_>
pygame may well be the way to go here, since I expect joysticks probably won't have a very clean protocol that would be easy to reimplement.
20:32
<&McMartin>
StackOverflow and friends aren't showing anything immediately useful on my searches for going around it.
20:32 * Derakon_ nods.
20:32
<&McMartin>
I'm sure it's possible, but it's probably a huge pain and I bet it also involves The Wrong Kind Of COM.
20:33
< Derakon_>
Hand-massaged binary, IOW?
20:33
<&McMartin>
No, Windows Component Object Model
20:33
<&McMartin>
(Their vaguely horrifying RPC/Object Broker mechanism)
20:33
< Derakon_>
I'm not familiar with it.
20:33
< Derakon_>
Sounds like that's a good thing.
20:34
<&McMartin>
IIRC It's a cross between what used to be Object Linking and Embedding and what used to be ActiveX.
20:35
<&McMartin>
Its "true interface" is like an RPC API of a C++ ABI, which I strongly suspect is exactly what it was originally
20:35
<&McMartin>
I'm told .NET wraps it sanely but if so it's the first thing to do so
20:35
< Derakon_>
Heh.
20:35
<&McMartin>
(In that you do something to say "get me an object of type X from the environment" and then you get back an object that you can just invoke methods on)
20:37
<&ToxicFrog>
Python question.
20:38
<&ToxicFrog>
How do I declare a method with a default value for an argument where the default value is the value of a field in the method's containing class?
20:38
<&ToxicFrog>
E.g.
20:38
<&ToxicFrog>
class Bar(Foo
20:38
< Derakon_>
You can't.
20:38
< Derakon_>
Use None as the default, then check for it at the start of the function.
20:38
<&ToxicFrog>
class Bar(Foo): field = 1; def waffles(self, thing=self.field): pass
20:38
<&ToxicFrog>
Blargh
20:38
<&ToxicFrog>
None is boolean false, right?
20:39
< Derakon_>
If evaluated as a boolean, it is False.
20:39
< Derakon_>
But it's the nil-type equivalent.
20:39
< Derakon_>
Or NULL, or whatever.
20:40 * iospace blinks at this email
20:40
<@iospace>
wait
20:40
<@iospace>
we have a windtunnel?
20:46
<&ToxicFrog>
Derakon_: right, that's what I mean - it's not False but if evaluated as a boolean it is eqv to False
20:47
< Derakon_>
Yes.
20:47
< Derakon_>
I thought you mean '"None is False" evaluates to True'~
20:48
<&ToxicFrog>
In that case I would have phrased it "None is False", not "None is boolean false"~
21:02 Kindamoody is now known as Kindamoody[zZz]
21:22 ktemkin is now known as ktemkin[work]
21:26 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has quit [[NS] Quit: ZNC - http://znc.in]
21:27 Turaiel[Offline] [Brandon@Nightstar-7dc8031d.mi.comcast.net] has quit [Connection reset by peer]
21:28 Turaiel[Offline] [Brandon@Nightstar-7dc8031d.mi.comcast.net] has joined #code
21:28 Typh|offline [Typherix@Nightstar-7dc8031d.mi.comcast.net] has joined #code
21:49 * Derakon_ blarghs.
21:49
< Derakon_>
Our microscopes have multiple cameras, which can be used to view different wavelengths of light.
21:49
< Derakon_>
Currently each camera's output is displayed as a grayscale image in its own separate canvas.
21:49
< Derakon_>
And I've gone to great lengths to make an efficient monocolor image display system that can handle rapid data streams.
21:50
< Derakon_>
Now they want an overlaid, colorized view. Which means multiple images per display. Which completely horks up my system. >.<
22:14
<@froztbyte>
hahaha
22:37 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has joined #code
22:43 Vorntastic [Vorn@Nightstar-6413e898.sub-70-211-4.myvzw.com] has quit [[NS] Quit: Bye]
22:55 Derakon__ [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
22:55 Karono [Karono@Nightstar-0e4527e4.optusnet.com.au] has quit [Ping timeout: 121 seconds]
22:57 Derakon [Derakon@31356A.8FA1FE.CF2CE9.D6CF77] has quit [Ping timeout: 121 seconds]
22:57 Derakon_ [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
22:58 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
22:58 mode/#code [+ao Derakon Derakon] by ChanServ
23:03 Serah [Z@Nightstar-b920a19c.cust.comxnet.dk] has joined #code
23:10 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
23:40
< Serah>
Back when last I checked Win8 was still inferior to Win7 for compatability and gaming. I'm getting a new box next month so I'm eager to know if this has changed.
23:40
< Serah>
TL;DR: Is win8 wothwhile?
23:41 Derakon__ [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
23:51
<@froztbyte>
no :/
23:51
<@froztbyte>
well, do you like being angered all the time?
23:52
<@froztbyte>
if you don't, probably just try to get your hands on a copy on win7
23:52
< Serah>
I'll be buying a new OS, so I have free choice.
23:52
<@froztbyte>
I don't know if you can actually buy win7 easily
23:53
<@froztbyte>
in .za it's quite tricky
23:53
< Serah>
I can.
23:53
<@TheWatcher>
Do so
23:53
< Serah>
Fair enough.
23:54
<@TheWatcher>
There's no compelling reason to get Win 8, unless you're into pain or dislike your hair.
23:55
< Serah>
I am mostly concerned of discontinuation of drivers and other stuff. I expect to have this box for at least 3 years, aiming more towards 5 if possible.
23:58
<@TheWatcher>
Win 7 and 8 use the same driver model - if you can get a win 8 driver, provided the manufacturer isn't a dick, it'll work in 7
23:59
< Serah>
Almost the same driver model. Win8 won't accept disguised vista drivers.
23:59
< Serah>
Although I suppose I'm probably better off that way.
--- Log closed Fri Jul 19 00:00:02 2013
code logs -> 2013 -> Thu, 18 Jul 2013< code.20130717.log - code.20130719.log >

[ Latest log file ]