code logs -> 2011 -> Tue, 13 Sep 2011< code.20110912.log - code.20110914.log >
--- Log opened Tue Sep 13 00:00:21 2011
00:03 * gnolam hugs the SI system.
00:11 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has quit [Ping timeout: 121 seconds]
00:19 Kindamoody[zZz] is now known as Kindamoody
00:20
< gnolam>
Kindamoody: insomnia?
00:20
< Kindamoody>
Nightmare.
00:21
< Kindamoody>
And now I can't go back to sleep.
00:22 * gnolam patpats.
00:22 * Kindamoody chills with some php instead.
00:31 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has joined #code
00:34 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has quit [[NS] Quit: Leaving]
00:35 You're now known as TheWatcher[T-2]
00:37 You're now known as TheWatcher[zZzZ]
00:41 Derakon[AFK] is now known as Derakon
00:45 * McMartin learns about xwininfo, \o/s.
00:45
< McMartin>
It is, in fact, a kitty
00:46
< McMartin>
(More precisely, it is the parts of Spy++ I often relied on for Windows development)
00:48 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has joined #code
00:54 * Derakon eyes a problem he fiddled with earlier today as a break from less frustrating work. http://pastebin.com/QfuN90pc
00:55
< Derakon>
The idea being to come up with a sensibly-scaling approach to HP/MP regeneration.
00:55
< Derakon>
You start with a base rate of getting 1 point per N turns. Each bonus point to your regen stat gives you an extra point of HP/MP in that N turns, smoothly distributed.
00:55
< Derakon>
The pasted code almost works, but breaks down e.g. with a base rate of 5 and a bonus of 9.
00:57 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
00:57 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has quit [Client closed the connection]
00:57 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has joined #code
01:02 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has quit [[NS] Quit: Leaving]
01:03 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has joined #code
01:04
< Vornicus>
What, the way the thing goes 2111221112, which is not very smooth?
01:04
< Derakon>
Mm, I guess that's not as smooth as it could be either. But mostly I was referring to how you get 22 regen in 10 turns instead of 20, the way you're supposed to.
01:04
< Derakon>
Which I think is line 15's fault...
01:05
< Vornicus>
Oh, that's a bit different.
01:05
< Vornicus>
Um...
01:05
< Vornicus>
Do yourself a favor and avoid floating point math here like it's the devil, because it is.
01:06
< Derakon>
The only floating point involved is a single comparison.
01:06
< Derakon>
Between bonusRate and some math derived from turnNum.
01:06
< Derakon>
I just noticed, I have the variables bonusRate and rateBonus. My mind was not all there when I was writing this, clearly.
01:07
< Vornicus>
Heh
01:07
< McMartin>
Does python have built-in infinite-precision rationals?
01:07
< Vornicus>
I think there's one in the stdlib.
01:07
< McMartin>
That would count, yes
01:07
< Vornicus>
http://docs.python.org/library/fractions.html
01:08
< Derakon>
That would work, but this was written as an example on the Dungeons of Dredmor forums, and I've no idea what that's implemented in.
01:14
< Vornicus>
C, and if they have any chops at all they're also avoiding floating point and using more conventional methods.
01:14
< Vornicus>
or, rather, more, um...
01:14
< Vornicus>
SOmething.
01:14
< Derakon>
Ah, FAQ says C++.
01:15
< Derakon>
More consistent, perhaps?
01:15 Derakon [Derakon@510B1D.620261.5E24F5.C009AE] has left #code []
01:15 Derakon [Derakon@510B1D.620261.5E24F5.C009AE] has joined #code
01:15
< Derakon>
Whoops.
01:16
< Vornicus>
Anyway: points = 0; while True: points += (1 + bonus); regen, points = divmod(points, base); yield regen;;
01:20
< Derakon>
...much nicer.
01:20
< Derakon>
Thanks.
01:21
< Vornicus>
Adding a dither so it's "smoother" in some sense is a little harder; you randomly add 1 to regen (and subtract base from points) based on the number of points remaining after the divmod.
01:33
< Vornicus>
(this will give a small positive bias in the first few but it goes away quickly)
01:53 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
01:54
< Reiver>
Biggest complaint with doing this shit in Word: It tries to snap tables.
01:54
< Reiver>
This is troublesome when you want it /5mm to the right/
02:08
< Vornicus>
Truth.
02:24 Kindamoody is now known as Kindamoody[zZz]
02:28 Kindamoody[zZz] is now known as Kindamoody
03:14 cpux is now known as shade_of_cpux
03:25 Vashicus [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
03:26 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
03:28 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
03:28 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds]
03:30 kwsn [kwsn@Nightstar-635d16fc.org] has quit [[NS] Quit: leaving]
04:02 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has quit [Ping timeout: 121 seconds]
04:05 * McMartin reads about GObject
04:05
< McMartin>
Pretty sure my SAN was too high anyway
04:06
< McMartin>
But the Vala project makes a whole lot more sense now >_<
04:06 * Tamber prods vaguely at his bot, tries to figure out if it's almost not-broken enough to stick a shiny new "almost alpha!" sticker on it.
04:20 Kazriko [kaz@4CA975.462904.08E9A2.992A2D] has joined #code
04:35
<@Tamber>
Syloqs-AFH, fencepost error? O:) Also, simple math is what the /computer/ is for. ;)
05:00 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
05:05 * ToxicFrog bugfixes the shit out of emufun
05:07
< Vornicus>
hooray, emufun
05:09 Kindamoody is now known as Kindamoody[zZz]
05:09
< McMartin>
"300 baud? The luxury! We had to tie notes to rats and birds. Eight rats and one tropical bird it was."
05:09
< ToxicFrog>
Fixes: selected game is now hilighted; sensible reaction when gamedir is missing or empty; attempting to bind multiple actions to the same key no longer crashes; broken symlinks and similar non-files are silently skipped.
05:09
< McMartin>
"That last was for parroty."
05:10
< ToxicFrog>
New features: support for .emufun files, node:add_command, and --!emufun pseudo-games; directories are rescanned when viewed rather than on startup; emufun can now be restarted internally.
05:12
< ToxicFrog>
Game hilighting should probably be a feature rather than a fix, but it's a fix to me~
05:13
< ToxicFrog>
Anyways, upshot of all this: it's easier to use, it no longer needs keyboard intervention when something goes wrong (hopefully), and you no longer need to restart X to rescan directories.
05:27
< ToxicFrog>
I have to say, Emufun is neither the most interesting nor the most technically impressive of my projects, but it is by far the most useful.
05:46
< Derakon>
What is this, a manager for emulated games?
05:48
< ToxicFrog>
A frontend, actually.
05:49
< ToxicFrog>
It's basically an HTPC frontend with the ability to launch arbitrary programs with arbitrary configurations.
05:49
< ToxicFrog>
So you can, say, use it for movies and TV by creating a .config for your TV directory telling to launch those files with mplayer.
05:50
< ToxicFrog>
And use it for PSX games by telling it to launch those files with pcsx.
05:50
< ToxicFrog>
Etc.
05:50
< ToxicFrog>
Configuration files are just bash scripts, so you can get as complicated as you want with them and launch basically anything.
05:51
< Derakon>
Interesting.
05:51
< Derakon>
I could see that coming in handy if you used your TV a lot...mine is mostly for console gaming. ?.?
05:51
< ToxicFrog>
(the original use case here is "I have an old P4 that I want to play PSX/SNES/Genesis/DOS games on, but I also want to be able to drive it entirely with a gamepad")
05:51 * Derakon nods.
05:52
< Derakon>
If I could fix the GPU fan in my old iMac I suppose I could repurpose it for a similar task.
05:52
< ToxicFrog>
Yeah, ditto here; but we had an old P4 and decided it would be nice to be able to play some older games from the couch as well.
05:52
< ToxicFrog>
Cue lots of "testing" with Wacky Wheels, Bio Menace, One Must Fall, Sonic 3, and Super Aleste~
05:53
< Derakon>
Heh.
05:53
< ToxicFrog>
Since then, my old laptop with the bum hinge has also had emufun installed and been connected to Durandal's secondary monitor, so symbol can use it for gaming and TV-watching from the futonbed even if Durandal is otherwise in use.
05:54
< ToxicFrog>
(which was previously a problem; Durandal served both as my gaming desktop and as the bedroom media PC)
05:56
< ToxicFrog>
The upshot of this is that it's damn useful and sees pretty much daily use.
05:56
< Derakon>
Cool.
05:56
< Derakon>
As I said, if I can fix the GPU fan on the iMac...
05:57
< Derakon>
(And figure out how to hook it up to the TV...and install the floor what's going to be the TV room...)
05:58
< ToxicFrog>
Well, it's all on github~
05:58
< Derakon>
Righto.
05:58
< ToxicFrog>
I've only ever tested it on linux, but it should work unmodified on OSX as well.
05:58
< ToxicFrog>
(or you could just install linux on the imac)
06:25 Derakon is now known as Derakon[AFK]
06:41 Kindamoody[zZz] is now known as Kindamoody
07:13 Vashicus [Vash@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: I <3Lovecraft<3 Vorn!]
07:15 Vornicus is now known as Vornicus-Latens
07:35 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
08:07 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
08:33 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
08:41 You're now known as TheWatcher
09:07 Kindamoody is now known as Kindamoody|out
09:42 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
--- Log closed Tue Sep 13 09:57:41 2011
--- Log opened Tue Sep 13 10:01:36 2011
10:01 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
10:01 Irssi: #code: Total of 21 nicks [6 ops, 0 halfops, 0 voices, 15 normal]
10:02 Irssi: Join to #code was synced in 36 secs
11:01 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
11:52 * TheWatcher is Not Amused
11:53
< TheWatcher>
`use CGI qw/:standard -utf8/; # Can't used CGI::Compress::Gzip because CentOS is an outdated pile of shit.`
11:56
< gnolam>
?
12:01
< TheWatcher>
CentOS doesn't have CGI::Compress::Gzip in its repos, and the versions of Compress::Zlib it allows are all too old to install CGI::Compress:Gzip through CPAN as it requires Compress::Zlib 2 (the latest CentOS one is 1.42.1)
12:01
< TheWatcher>
So I could maybe download an old CGI::Compress::Gzip version and compile it, but FFS
12:18 Reiver [orthianz@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
12:24 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
13:58 Tarinaky_ [tarinaky@Nightstar-dd7e4a05.net] has joined #code
14:08 Tarinaky_ [tarinaky@Nightstar-dd7e4a05.net] has quit [[NS] Quit: leaving]
--- Log opened Tue Sep 13 14:59:38 2011
14:59 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
14:59 Irssi: #code: Total of 24 nicks [6 ops, 0 halfops, 0 voices, 18 normal]
15:00 Irssi: Join to #code was synced in 41 secs
16:39
<@Tamber>
"CentOS; if it's not deprecated yet, it's too unstable"
16:52 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
16:56 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
17:03 AnnoDomini is now known as Niet
17:05
< TheWatcher>
Tamber: Heh
17:38 Kindamoody|out is now known as Kindamoody
17:43
<@Tamber>
Alternatively, "if it's still in Debian oldstable, it's not stable enough." ;)
18:03
<@froztbyte>
<froztbyte> Spinach: debian branches
18:03
<@froztbyte>
<Spinach> froztbyte: debian branches are called "stale", "rusting" and "broken"
18:04
<@Tamber>
haha
18:04
<@froztbyte>
also
18:04
<@froztbyte>
<froztbyte> Spinach: debian /rocket/
18:04
<@froztbyte>
<Spinach> froztbyte: debian is the distro in which nothing is released as stable until you have to shoot rockets at it to stop it from working
18:04
<@Tamber>
:)
18:04
<@Tamber>
And this is why skynet must never be allowed to be let anywhere near the debian distros.
18:05
<@froztbyte>
(a quote which pisses Volcane (R. I. Pienaar, the creator of puppet/mcollective) off to no end)
18:05
<@froztbyte>
(he's an rpm man)
18:05
<@froztbyte>
(but it's okay, everyone makes mistakes now and then)
18:05
<@Tamber>
hehe
19:15 Kindamoody is now known as Kindamoody[zZz]
19:30 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
19:39 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
19:41 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
19:41 Stalker is now known as Red_Queen
20:01 Niet is now known as AnnoDomini
20:06 AnnoDomini [annodomini@60F158.737D66.CA1918.CC7562] has quit [[NS] Quit: leaving]
20:36 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
20:52 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds]
21:01 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
21:20 smashedface [gutter@Nightstar-e1db72bf.east.verizon.net] has joined #code
21:21
< smashedface>
i need some help with c++, anyone?
21:21
< McMartin>
Start monologuing
21:22
< smashedface>
huh?
21:22 * McMartin points at the topic
21:22
< smashedface>
oh
21:22
< smashedface>
um
21:22
< McMartin>
The usual protocol here is for the person to speak at length first about the issue.
21:23
< McMartin>
Otherwise we have nothign to say.
21:23
< McMartin>
Also, if people are away or busy, they'll often read backscroll and answer later.
21:23 * McMartin is kind of busy at the moment.
21:23 * Tamber takes a deep breath, screams until either this bug goes away, or he passes out.
21:24
<@Tamber>
(Hah, if only I could fix bugs by shouting at them~)
21:24
< smashedface>
well i need to know how to sort an array of 5 user inputed numbers, sort that array and display the smallest and largest numbers of the array
21:25
< gnolam>
Use an std::vector instead of an array, then use std::sort.
21:26
< McMartin>
That's the production answer. If this is a homework assignment, we generally aren't much help with those.
21:26
<@Tamber>
Pshaw, sleepsort ftw! >:|
21:27
< McMartin>
Which is to say, if they're trying to teach you how to do sorts, they'll be unimpressed with "I call a sort function that's in the library".
21:27
< McMartin>
That said, for the problem statement, you shouldn't do a sort to perform MAX or MIN.
21:28
< gnolam>
Well, we do help with homework as well. As long as it's along the line of "We've been told to implement quicksort, but I don't understand how to pick the pivot element - could you please help?" and not "We've been given these 3 assignments. Please solve them for me.".
21:28
< smashedface>
actually i just needed an example because the class im taking uses ..... pseudo code... which is confusing to me, while c++ is not
21:37
< gnolam>
How is it confusing to you?
21:39
< smashedface>
because i dont know how to write scripts
21:39
< smashedface>
it looks like a scripting language
21:41
< Alek>
err..
21:42
< Alek>
I'm confused now.
21:44
< Rhamphoryncus>
You should show us the pseudocode and say which part you don't understand
21:45
< smashedface>
let me find it in the book
21:48 smashedface [gutter@Nightstar-e1db72bf.east.verizon.net] has quit [[NS] Quit: im outta here]
22:03
< McMartin>
"Parasite runs inside of another application and allows for manipulating the application. We thought the name was appropriate. Bonus: We got to create a cute little logo and draw him crawling on boxes. Much better t-shirt opportunities."
22:03
< McMartin>
http://chipx86.github.com/gtkparasite/
22:06
<@Tamber>
hehe
22:10
< gnolam>
Hmm
22:10
< gnolam>
To amp or not to amp, that is the question.
22:45 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: I <3Lovecraft<3 Vorn!]
22:56 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has joined #code
22:56 * Derakon bashes at his head.
22:56
< Derakon>
Instead of working I'm coming up with a design for a poi robot.
22:57 * gnolam rarghs.
22:57
< gnolam>
I /know/ I have a resistor and capacitor set somewhere. I just don't know where they are.
23:03
< Derakon>
Man, I don't even know if it's possible to buy a three-DoF motor, let alone how to control it.
23:10
< gnolam>
It's called an industrial robot. :P
23:13
< Derakon>
Well, but I don't need to be able to push hundreds of pounds around.
23:15
< Derakon>
Anyway, seems like you should be able to simulate 3DOF with three linear motors in series.
23:15
< gnolam>
Buy a hobbyist pan/tilt servo kit and tack on an extra servo for the third axis?
23:15
< Derakon>
Yeah, that sounds like a good start.
23:15
< Derakon>
Basically I have no robotics knowledge at this level.
23:16
< Derakon>
My robotics course was more about image processing and mapping than it was about device control.
23:16
< Derakon>
(Because it was CompSci, not Engineering)
23:18
< Derakon>
...motors are expensive. ._.
23:19
< Derakon>
Of course, a lot of what I'm seeing here is for cameras.
23:22
< gnolam>
All servos are PWM controlled, pretty much.
23:25
< Derakon>
Well, presumably this project would involve an Arduino, and they have motor-control modules, so I think I'd be abstracted away from %Bthat%B much detail anyway.
23:25
< Derakon>
Er, that.
23:25
< gnolam>
Note to self: 10 cd is apparently way too much for a warning LED. While the light is indeed very noticeable, temporarily blinding the operator does not feel like proper ergonomics.
23:26
<@Tamber>
XD
23:26
<@Tamber>
Possibly not, no.
23:27
< Derakon>
There's a ridiculously bright red LED in the microscope room. Very annoying to have that shining into your peripheral vision.
23:31 * TheWatcher readsup
23:31
< TheWatcher>
Derakon: this sounds like an excellent excuse to get hold of a lego Mindstorms kit, and a load of technik parts~
23:32
< Derakon>
I was assuming Arduino, actually. Any particular reason to go with Mindstorms instead?
23:35
< Derakon>
Also, it occurs to me that the project is basically "Make my own robotic arms", with a sub-goal of "make them perform poi techniques".
23:35
< gnolam>
An Arduino is just a blinged-up, more expensive AVR. And even the most lowly AVR has a PWM generator, so you shouldn't even need any additional modules.
23:35
< Derakon>
AVR = http://en.wikipedia.org/wiki/Atmel_AVR ?
23:35
< gnolam>
(Well, depending on how many motors you want to control, of course. An ATTiny only has one timer, for example.)
23:35
< TheWatcher>
Mostly I was not being serious. But I do know the guys in robotics in work use them pretty extensively, mostly for the fast build speed and flaxibility
23:36
< gnolam>
Yep.
23:36
< Derakon>
Yes, I can see how the ability to turn your robot into fiber could be important. *ducks*
23:36
< TheWatcher>
Pft
23:37
< Derakon>
Gnolam: assuming that you want to do shoulder (3DOF) plus elbow (2DOF) plus wrist, that's 6 motors for one arm.
23:39
< Derakon>
ATTiny has 20 pins and 2KB of memory; if you use 8 bits for positioning then I could see using one ATTiny to control two motors -- 2x8 pins out for positioning, 4 pins in for which action to perform.
23:40
< Derakon>
I'm guessing the actual program here will simply be a lookup table of position with respect to time.
23:42
< Derakon>
Must go; will be back later. Meanwhile, http://derakon.livejournal.com/445856.html
23:42 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has quit [[NS] Quit: leaving]
23:42
< gnolam>
... 20 pins for an ATTiny? That defeats the whole point of "tiny". :o
23:47 You're now known as TheWatcher[T-2]
23:51 You're now known as TheWatcher[zZzZ]
--- Log closed Wed Sep 14 00:00:35 2011
code logs -> 2011 -> Tue, 13 Sep 2011< code.20110912.log - code.20110914.log >

[ Latest log file ]