code logs -> 2008 -> Wed, 20 Aug 2008< code.20080819.log - code.20080821.log >
--- Log opened Wed Aug 20 00:00:17 2008
00:19 AnnoDomini [AnnoDomini@Nightstar-29622.neoplus.adsl.tpnet.pl] has quit [Quit: beer_pump.c:335: robust error in 'traffic_cone()' - 'traffic_light' is not a budgerigar]
00:26 Serah [~Z@87.72.35.ns-26506] has joined #Code
00:26 mode/#code [+o Serah] by ChanServ
00:53 gnolam [lenin@Nightstar-2037.A163.cust.bahnhof.se] has quit [Quit: Reboot]
00:54 Serah [~Z@87.72.35.ns-26506] has quit [Quit: Be right back, got some smiting and righteous justice to attend to.]
00:57 gnolam [lenin@Nightstar-2037.A163.cust.bahnhof.se] has joined #Code
00:57 mode/#code [+o gnolam] by ChanServ
01:12 Vornicus [~vorn@ServicesOp.Nightstar.Net] has joined #code
01:12 mode/#code [+o Vornicus] by ChanServ
02:18 Attilla_ [~The.Attil@92.0.29.ns-20195] has joined #code
02:18 Attilla [~The.Attil@92.0.29.ns-20195] has quit [Ping Timeout]
02:24 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: @Kazriko
02:25
<@ToxicFrog>
Hmm.
02:25
<@ToxicFrog>
Why does Xen depend on kernel-xen?
02:30 Attilla_ is now known as Attilla
03:06 Kazriko [~kaz@Nightstar-26352.gdj-co.client.bresnan.net] has joined #code
03:06 mode/#code [+o Kazriko] by ChanServ
03:30
<@McMartin>
That's probably the kernel module that lets it talk to ring 0
03:34
<@ToxicFrog>
Aah, found it
03:35
<@ToxicFrog>
Yep, that's it
03:35
<@ToxicFrog>
The description in yum is totally wrong (it says it's part of guest OSes, not host, hence my confusion)
03:38 gnolam [lenin@Nightstar-2037.A163.cust.bahnhof.se] has quit [Quit: Z?]
03:49
<@ToxicFrog>
Gnar
03:49
<@ToxicFrog>
VirtualBox and win2k are not playing nice
03:50
<@McMartin>
Odd
03:51
<@ToxicFrog>
It gets as far as "windows 2000 is configuring your hardware, this may take several minutes" in the post-install configuration and then immediately reboots.
03:51
<@ToxicFrog>
Repeat ad infinitum.
03:51
<@McMartin>
Oh, have you tried turning on IO APIC?
03:51
<@ToxicFrog>
Telling it to boot into safe mode has at least gotten me as far as !X starting up.
03:51
<@McMartin>
That's apparently necessary for XP to work
03:51
<@ToxicFrog>
Oh
03:51
<@ToxicFrog>
No, I haven't
03:51
<@ToxicFrog>
I'll try that
03:52 * McMartin has been attempting to migrate disks between VMWare and VirtualBox in real-time. It, ahahaha, doesn't exactly work on XP for a variety of hilarious reasons.
03:52
<@McMartin>
(Puppy Linux, however, does. And does so better than FullScale Distros, and even better than DSL)
03:54
<@McMartin>
(VMWare has this annoying tendency to set a magic X driver that doesn't really exist.)
03:55 Vornicus is now known as Vornicus-Latens
03:59
<@ToxicFrog>
Enabling IO APIC appears to have hugely slowed down the installer ;.;
04:00
<@McMartin>
Yeah, that's why it's off by default ;.;
04:01 * McMartin grants sandvich
04:01
<@McMartin>
http://steamgames.com/tf2/heavy/sandvich.htm
04:03
<@McMartin>
"Like in real life, the decision to eat a Sandvich must not be taken lightly."
04:03
<@ToxicFrog>
Ok
04:03
<@ToxicFrog>
The solution appears to be:
04:04
<@ToxicFrog>
- run installer without IO APIC
04:05
<@ToxicFrog>
- when it wants to reboot into post-install configuration, DO NOT LET IT. Turn it off and enable IO APIC
04:05
<@ToxicFrog>
- run post-install configuration. Do not be alarmed when the VirtualBox window has a seizure; this is normal.
04:06
<@McMartin>
Yeah, every VM has a seizure on any boot that shifts regularly between Text and Graphics.
04:06
<@McMartin>
The only way out is to go fullscreen. =(
04:07 * Vornicus-Latens sneaks up on the Heavy and beats him to death with a bat.
04:07 * Vornicus-Latens then really goes to bed.
04:07
<@McMartin>
WAIT
04:08
<@McMartin>
OK.
04:08
<@McMartin>
(midPM)
04:12
<@ToxicFrog>
And it's running!
04:12
<@ToxicFrog>
The guest additions installed fine, too
04:12
<@ToxicFrog>
reboooooot
04:13
<@McMartin>
(Good to know; I note that my notes were from people migrating installed-on-VMWare XP installs to VirtualBox)
04:13
<@McMartin>
(This is hard because XP caches the IDE controller ID in the registry and refuses to boot if it changes)
04:13 Attilla [~The.Attil@92.0.29.ns-20195] has quit [Quit: <Insert Humorous and/or serious exit message here>]
04:24
<@ToxicFrog>
Woot
04:24
<@ToxicFrog>
Shared folders work fine, and so does Dwarf Fortress
04:24
<@ToxicFrog>
Not sure if it's faster, though
04:24
<@McMartin>
Then on Wine or than on XP?
04:25
<@ToxicFrog>
Wine
04:26
<@ToxicFrog>
A meaningful comparison against XP is not possible, since this system is an 800MHz Core 2 laptop, and Durandal is a 2.6GHz Athlon 64.
04:26
<@McMartin>
Aha
04:27
<@ToxicFrog>
*64 X2.
04:27
<@ToxicFrog>
With twice as much memory.
04:28
<@ToxicFrog>
...also, VirtualBox refuses to run at above 800x600.
04:28
<@McMartin>
It varies for me by distro, which I have not yet figured out.
04:28
<@ToxicFrog>
Which explains why everything is squished and looks like ass; the tileset I'm using requires 1280x400 minimum.
04:29
<@ToxicFrog>
So it's getting downscaled.
04:29
<@McMartin>
Like, Puppy happily runs at 1024x768, but Ubuntu won't.
04:29
<@ToxicFrog>
Incidentally, have you gotten puppy to work with x.org in VB?
04:29
<@ToxicFrog>
I had to fall back to xvesa.
04:29
<@McMartin>
I'm pretty sure I had to fall back, but I haven't done a from-scratch to check.
04:30
<@McMartin>
I've gotten x.org to *work*, since Ubuntu uses it.
04:30
<@McMartin>
But the puppy install was another VMware migrant.
04:30
<@McMartin>
And xorg wanted that driver
04:30
<@McMartin>
And I'm disinclined to check until I get paid to do so~
04:31
<@ToxicFrog>
Oh hey.
04:31
<@ToxicFrog>
Seamless mode works.
04:31
<@ToxicFrog>
And is fucking awesome.
04:31
<@McMartin>
Qt frontend or SDL?
04:31
<@ToxicFrog>
Qt
04:33
<@McMartin>
Oh, Seamless, not fullscreen.
04:33
<@McMartin>
Right
04:33
<@McMartin>
SDL is Not So Much With The Seamless.
04:33
<@ToxicFrog>
...ok, while seamless mode works in general, it does not work in any way approaching usability with DF.
04:33
<@ToxicFrog>
Hint: it is nice to have my windows actually affixed to the window manager so that I can do stuff like move them, especially when they start out half ofscreen
04:33
<@McMartin>
Heh
04:34
<@ToxicFrog>
Oh, hey
04:34
<@ToxicFrog>
If I switch desktops, then switch back, then click on a VM window other than DF, it magically attaches to the WM
04:34
<@McMartin>
So it's just DF being recalcitrant?
04:35
<@ToxicFrog>
Yeah
04:35
<@ToxicFrog>
Possibly a bad interaction between OpenGL and seamless mode
04:35
<@ToxicFrog>
But it's working now
04:36
<@ToxicFrog>
It's definitely faster than wine now that it's not scaling - gameplay somewhat faster, startup and load/save much, much, MUCH faster
04:36
<@ToxicFrog>
Much slower than Durandal, but this is a much slower machine
04:36
<@McMartin>
What's top say the CPU usage is?
04:37
<@ToxicFrog>
Cpu(s): 2.8%us, 50.6%sy, 0.0%ni, 45.8%id, 0.7%wa, 0.0%hi, 0.2%si, 0.0%st
04:37
<@ToxicFrog>
10588 ben 20 0 279m 224m 15m S 101 22.4 19:53.36 VirtualBox
04:37 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
04:37
<@McMartin>
Not bad at all
04:37
<@ToxicFrog>
VB has completely pegged one CPU.
04:37 crem [~moo@86.57.150.ns-4387] has joined #code
04:37
<@ToxicFrog>
Well, one core.
04:41
<@ToxicFrog>
Eee!
04:41
<@ToxicFrog>
Running it in VB has also fixed the issue where it runs only when on the currently active desktop!
04:41
<@ToxicFrog>
(and sleeps otherwise, or in some cases shits itself and locks solid)
04:47
<@ToxicFrog>
...hmm. I guess I'll need to give the VM a network adapter if I want to install Cygwin and git on it
04:48
<@ToxicFrog>
Wow.
04:49
<@ToxicFrog>
The windows shutdown sequence in seamless mode looks pretty fucked up.
04:49
<@ToxicFrog>
Works fine, though.
04:50
<@McMartin>
IIRC, getting bridged net working on VB is kind of a pain in 1.6.4
04:50
<@McMartin>
It's slated to get easier in 2.0 around 9/1
04:50
<@McMartin>
Er, 1 Sep
04:50
<@McMartin>
But nat is butt-easy to set up
04:50
<@McMartin>
So if all you need is to make net requests, should just be flipping a switch
04:54 * Consul is a happy camper tonight.
04:54
<@ToxicFrog>
I just tried NAT, and it doesn't appear to work properly
04:55
<@ToxicFrog>
Windows sees the network connection and all, and DHCPs properly
04:55
<@ToxicFrog>
And nslookup works
04:55
< Consul>
I've decided to forego trying to do programmer stuff, and focus on purely DSP related experiments and research using Faust.
04:55
<@ToxicFrog>
However, no TCP connections do
04:55
<@ToxicFrog>
can't http, can't ftp
04:56
<@McMartin>
Odd
04:56
< Shoukanjuu>
Port 80 is borked \o/
04:56
<@McMartin>
ftp isn't port 80
04:56 * McMartin hasn't tried any Windows installs on VB yet, though
04:56
<@ToxicFrog>
(can't telnet, either)
04:56
<@McMartin>
Puppy, Ubuntu, etc. all sshed and httped fine
04:56
< Shoukanjuu>
http is, isn't it? >__>
04:57
<@McMartin>
... are you firewalled?
04:57
< Shoukanjuu>
I had a problem like that once, and it turns out that the firewall was being overactive and blocking almost everything. It was odd.
04:58
<@ToxicFrog>
McMartin: the entire house network is behind a router/firewall/NAT, yes
04:58
<@McMartin>
I'm sure my work network is too, though, so it shouldn't be that alone.
04:59
<@ToxicFrog>
Hmm. "adapter properties" lists the MAC as "not present"
04:59
<@ToxicFrog>
ipconfig disagrees
05:00
<@ToxicFrog>
Aha
05:00
<@ToxicFrog>
I can connect to other systems on my LAN
05:00
<@ToxicFrog>
So it seems likely that the gateway is freaking out at it somehow
05:00
<@ToxicFrog>
Although how I'm not sure
05:01
<@ToxicFrog>
Anyways, I can deal with this tomorrow.
05:01
<@McMartin>
Yay progress.
05:01
<@ToxicFrog>
SLEP
05:06
< Consul>
McMartin: Tonight, I managed to implement an entire EQ (highpass, low shelf, mid peak, high shelf) in about an hour and a half.
05:06
< Consul>
Granted, the hard math was already done for me (from a cookbook), but Faust makes implementing it dead simple.
05:07
< Consul>
I may yet be able to settle into a DSP role on this project.
05:08
< Consul>
But anyway, bedtime for me, too.
07:18 C_tiger [~c_wyz@Nightstar-4230.hsd1.ca.comcast.net] has quit [Ping Timeout]
07:18 C_tiger_ [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has joined #code
07:46 Shoukanjuu [~Shoukanju@Nightstar-18822.dhcp.embarqhsd.net] has quit [Quit: Shoukanjuu]
07:53 ErikMesoy [~ejm@Nightstar-866.bb.online.no] has joined #code
07:55 Vornicus-Latens [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
07:58 C_tiger_ [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has quit [Ping Timeout]
07:59 C_tiger [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has joined #code
07:59 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Quit: I ATENT'T DEAD]
08:01 AnnoDomini [AnnoDomini@Nightstar-29622.neoplus.adsl.tpnet.pl] has joined #Code
08:01 mode/#code [+o AnnoDomini] by ChanServ
08:02 C_tiger [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has quit [Ping Timeout]
08:02 C_tiger [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has joined #code
08:05 ErikMesoy [~ejm@Nightstar-866.bb.online.no] has quit [Ping Timeout]
08:06 DiceBot [~Reiver@Nightstar-15433.xdsl.xnet.co.nz] has quit [Ping Timeout]
08:07 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
08:07 mode/#code [+o Reiver] by ChanServ
09:04 Shoukanjuu [~Shoukanju@Nightstar-18822.dhcp.embarqhsd.net] has joined #code
09:05 C_tiger [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has quit [Ping Timeout]
09:05 C_tiger_ [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has joined #code
09:05 You're now known as TheWatcher
09:49 C_tiger_ [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has quit [Ping Timeout]
09:49 C_tiger [~c_wyz@Nightstar-6750.hsd1.wa.comcast.net] has joined #code
09:56 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Quit: Rebooting again.]
10:08 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
10:08 mode/#code [+o Reiver] by ChanServ
10:15 Reiver is now known as Haldiel
10:15 EvilDarkLord is now known as Vord
10:27 Thaqui [~Thaqui@Nightstar-26308.jetstream.xtra.co.nz] has left #code [MORE constitution LESS destitution MORE pros...perity.]
10:49 Reivles [~reaverta@Admin.Nightstar.Net] has joined #Code
10:50 Haldiel [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout]
10:50 Reivles is now known as Haldiel
11:27 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Client exited]
11:31 Attilla [~The.Attil@92.0.29.ns-20195] has joined #code
11:31 mode/#code [+o Attilla] by ChanServ
12:10 * TheWatcher eyes the linux kernel vfs vaguely, wonders how hard it'd be to add directory shadowing to it
12:33 AnnoDomini [AnnoDomini@Nightstar-29622.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
12:40 AnnoDomini [AnnoDomini@Nightstar-29729.neoplus.adsl.tpnet.pl] has joined #Code
12:40 mode/#code [+o AnnoDomini] by ChanServ
12:45 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has joined #code
12:45 mode/#code [+o MyCatVerbs] by ChanServ
13:10
<@ToxicFrog>
Aah, the windows resolver.
13:10
<@ToxicFrog>
How I hate you.
13:10
<@ToxicFrog>
$ nslookup linksys
13:10
<@ToxicFrog>
-> 192.168.1.1
13:10
<@ToxicFrog>
$ dig linksys
13:11
<@ToxicFrog>
-> 192.168.1.1
13:11
<@ToxicFrog>
$ ping linksys
13:11
<@ToxicFrog>
-> unknown host "linksys"
13:13
<@ToxicFrog>
Meanwhile, the gateway claims it's passing traffic from the VM through just fine
13:14
<@ToxicFrog>
And yet, it works not
13:23
< Consul>
ToxicFrog: I feel your pain, but that really made me laugh.
13:27 gnolam [lenin@Nightstar-2037.A163.cust.bahnhof.se] has joined #Code
13:27 mode/#code [+o gnolam] by ChanServ
13:53 Vornicus-Latens [~vorn@Admin.Nightstar.Net] has joined #code
13:53 Vornicus-Latens is now known as Vornicus
15:01 gnolam is now known as gnochen
15:33 You're now known as TheWatcher[afk]
15:34 Vord is now known as EvilDarkLord
15:46 * ToxicFrog throttles bash
15:48
<@ToxicFrog>
In another shell: env > .env
15:48
<@ToxicFrog>
In this one:
15:48
<@ToxicFrog>
source env # blows up
15:49
<@ToxicFrog>
source <(expression to quote env appropriately) # loads the environment but doesn't export it to subshells or make
15:49
<@ToxicFrog>
source <(expression to quote env and prefix with "export") # as above
15:49
<@ToxicFrog>
cat env | sed 's/=/ /' | while read name value; do export $name=$value; done # no visible effect
15:50
<@ToxicFrog>
cat env | sed 's/=/ /' | while read name value; do export $name=$value; done; env # likewise
15:50
<@ToxicFrog>
cat env | sed 's/=/ /' | while read name value; do export $name=$value; done; echo $SOME_VARIABLE # displays the value from .env!
15:50
<@ToxicFrog>
cat env | sed 's/=/ /' | while read name value; do export $name=$value; done; make # fails because the environment isn't set up right
15:52
<@ToxicFrog>
cat env | sed 's/=/ /' | while read name value; do declare -x $name="$value"; done; make # works
17:12 You're now known as TheWatcher
19:21
< Consul>
Surely, there are two network-based open source projects out there called IPFreely and IPAnywhere.
19:46 * TheWatcher eyes
20:56
<@ToxicFrog>
Algorithm question.
20:56
<@ToxicFrog>
I have a stream of events coming in at completely unpredictable times.
20:56
<@ToxicFrog>
I need to keep track of a set of averages calculated based on the last n seconds of these events.
20:57
<@ToxicFrog>
I can't just keep a rolling average by removing the oldest event whenever I add a new one, because the oldest one might not be old enough to remove yet.
20:58
<@ToxicFrog>
So far the best I've come up with is a marker-based system, where each second a marker is inserted into the list, updated with the average of the last second, and all the window pointers are updated accordingly too.
20:59
<@ToxicFrog>
It's O(n) where n is the number of windows, which doesn't strike me as bad.
21:03
<@jerith>
Keep tuples in the list, where the first element is a timestamp?
21:07
<@ToxicFrog>
Pros: higher resolution (timestamp, rather than second); no need for markers.
21:07
<@ToxicFrog>
Cons: doubles the size of the list, makes updating the windows much more expensive.
21:08
<@ToxicFrog>
I note that performance, in both size and speed, is a major concern here.
21:09
<@jerith>
How often are the events coming in?
21:28 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
21:31 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
21:31 mode/#code [+o ToxicFrog] by ChanServ
21:42
<@ToxicFrog>
jerith: could be anywhere from one every few seconds to hundreds per second.
21:43
<@ToxicFrog>
We now have a very modified design, though.
21:43
<@ToxicFrog>
n+1 buckets, where n is the number of seconds back we want to look. Each bucket holds a count and a total time.
21:43
<@ToxicFrog>
It's a ring buffer; the odd bucket out is count++ and total += time every time an event occurs.
21:44
<@ToxicFrog>
Every second, the buckets are rotated.
21:44
<@jerith>
Sounds reasonable.
21:44
<@ToxicFrog>
Sliding average windows simply specify a start and an end bucket; when the buckets rotate, they slide accordingly, adjust their own count and total accordingly and recalculate the average.
21:44
<@ToxicFrog>
So. Every event: two adds.
21:45
<@ToxicFrog>
Every second: two subtracts, two adds, and one divide per window.
21:46
<@ToxicFrog>
Hmm. Actually, counting the rotating of the ring buffer etc, it's two adds + (four adds, two subtracts and a divide)*nrof_windows
21:46
<@ToxicFrog>
Which is peanuts.
23:17 Attilla [~The.Attil@92.0.29.ns-20195] has quit [Ping Timeout]
23:23 Chalcedon [~Chalcy@Nightstar-2160.ue.woosh.co.nz] has joined #code
23:27 Attilla [~The.Attil@92.0.29.ns-20195] has joined #code
23:27 mode/#code [+o Attilla] by ChanServ
23:50 Chalcedon [~Chalcy@Nightstar-2160.ue.woosh.co.nz] has quit [Connection reset by peer]
23:53 You're now known as TheWatcher[T-2]
23:54 Chalcedon [~Chalcy@Nightstar-2160.ue.woosh.co.nz] has joined #code
23:58 Thaqui [~Thaqui@Nightstar-26308.jetstream.xtra.co.nz] has joined #code
23:58 mode/#code [+o Thaqui] by ChanServ
--- Log closed Thu Aug 21 00:00:04 2008
code logs -> 2008 -> Wed, 20 Aug 2008< code.20080819.log - code.20080821.log >