code logs -> 2009 -> Sat, 16 May 2009< code.20090515.log - code.20090517.log >
--- Log opened Sat May 16 00:00:09 2009
00:35 You're now known as TheWatcher[T-2]
00:38 You're now known as TheWatcher[zZzZ]
01:21 Derakon is now known as Derakon[AFK]
02:00 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has quit [Connection reset by peer]
02:01 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has joined #code
02:02 mode/#code [+o Consul] by ChanServ
02:02
<@Consul>
Hrm
02:02
<@Consul>
Just had a lock-up while watching a local video, not even an FLV.
02:02
<@Consul>
I think that one guy's theory about a bad video driver might have merit.
02:03
<@Consul>
Namegduf, that's the guy. :-)
02:04
<@Consul>
When I install Ubuntu Studio, I'm going to try the open Nvidia driver.
02:16 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
02:22 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
02:22 mode/#code [+o Attilla] by ChanServ
02:36 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has quit [Connection reset by peer]
02:36 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has joined #code
02:36 mode/#code [+o Consul] by ChanServ
02:36
<@Consul>
I am about ready to drop-kick this piece of shit out the fucking window.
02:37
<@Consul>
Not even a video going that time.
02:43 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
03:08 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has quit [Quit: Leaving]
06:03 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer]
07:33 Vornicus is now known as Vornicus-Latens
08:22 Derakon[AFK] is now known as Derakon
08:53 Derakon is now known as Derakon[AFK]
10:10 You're now known as TheWatcher
10:46 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
11:34 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
11:34 mode/#code [+o Attilla] by ChanServ
11:35 Reivthia [~Orthianz@Nightstar-22434.xdsl.xnet.co.nz] has quit [Ping Timeout]
13:29 You're now known as TheWatcher[afk]
16:05 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:06 Syloqs_AFH is now known as Syloqs-AFH
16:55 You're now known as TheWatcher
17:43 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
17:50 Vornicus-Latens is now known as Vornicus
17:58 Derakon[AFK] is now known as Derakon
20:03 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has joined #code
20:03 mode/#code [+o Consul] by ChanServ
20:03
<@Consul>
Wow, the Ubuntu forums are literally so busy they're useless.
20:04
<@Consul>
It took 30 minutes for my post to fall to the fifth page.
20:04
<@simontwo>
ugh.
20:04
<@TheWatcher>
...
20:04
<@Consul>
So, maybe someone here can help...
20:05
<@simontwo>
better see a local user-group IRC channel. the Danish Ubuntu channel on freenode, for example, is rarely overrun.
20:05
<@simontwo>
yeah, or that.
20:05
<@Consul>
I'm trying to install Ubuntu Studio...
20:05
<@TheWatcher>
That tells me that either a) they need to split that forum up, or b) ubuntu has way too many problems >.>
20:05
<@Consul>
And after it boots to the DVD, selects the language, and selects the keyboard, it comes up with an error that it failed to mount the CDROM.
20:06
<@Consul>
My DVD drive works just fine.
20:06
<@Consul>
They're trying to mount it with the command: mount /dev/sr0
20:06
<@Consul>
Which is a new one on me.
20:06
<@Consul>
Of course, the system comes back saying that device doesn't exist.
20:08
<@Consul>
But my DVD does exist, it just booted to it!
20:09
<@Consul>
I think I'll give Arch another go.
20:09
<@Consul>
Not that it'll be any easier, but Arch has the benefit of their software packages being really up-to-the-minute.
20:10 * TheWatcher suspects there'd be an option you could pass to the installer via the bootloader, but knows not ubuntu
20:10
<@Derakon>
Hm. Anyone know if there's a way to automatically set a CSS style on an image based on what the image is of?
20:10
<@Derakon>
I want to auto-set the margins on one particular icon for this page: http://derakon.dyndns.org/~chriswei/games/c221/cheatsheet-3.0.html
20:10
<@Derakon>
Right now I have to do "class="foo"" for every image tag for that icon, which sucks.
20:11
<@TheWatcher>
id="foo" and set #foo in the css? *shrug*
20:11
<@Derakon>
Basically the same as setting the class. :\
20:11
<@TheWatcher>
Yeah
20:11
<@TheWatcher>
Hm
20:12
<@Derakon>
Just three characters shorter.
20:12
<@TheWatcher>
I guess you could use some javascript to postprocess the img elements on the page, and if the filename matches it sets the margin...
20:13
<@Derakon>
;.;
20:13
<@Derakon>
That is an abuse of Javascript, IMO. I'll just leave it at classes for now.
20:14
<@TheWatcher>
Other than that... add the margins to the image data itself as transprent pixels?
20:14
<@TheWatcher>
*transparent
20:14
<@Derakon>
That'd work if the margins were positive. :)
20:14
<@TheWatcher>
... ugh
20:14
<@TheWatcher>
yeah
20:15
<@Derakon>
Yeah, negative margins. But it works!
20:15
<@Derakon>
Without them, the "worker" icon mucks with line height something fierce.
20:52
<@simontwo>
?u ekzistas la koncepto "lernadoludo"?
20:52
<@Derakon>
Ich sprechen keine deutsch.
20:52
<@simontwo>
whoops. :)
20:53 * simontwo takes his esperanto boardgaming elsewhere, heh.
20:53
<@Derakon>
...why did I think that was German?
20:53
<@Derakon>
It looks nothing like German.
20:53
<@simontwo>
I'd guess the 'z' has that effect.
21:49
<@Vornicus>
http://www.w3.org/TR/CSS21/selector.html#attribute-selectors
21:51
<@Vornicus>
You can use an attribute selector to apply styles to elements based on attributes.
21:52
<@Vornicus>
(this is for Der))
22:04
<@Derakon>
Vorn: a hah! Awesome.
22:05 * TheWatcher eyes that 'css 2.1', umms
22:06
<@Derakon>
It works! In FF3, anyway.
22:06
<@Derakon>
And since this page is not for public consumption, I needn't worry about browser compatibility.
22:06
<@TheWatcher>
Ah, 'kay
22:06
<@TheWatcher>
I was about to say ¬¬
22:07 * TheWatcher eyes this SQL, ughs
22:07
<@Derakon>
After all, I initially set out to do this in LaTeX before realizing that my knowledge of it was hopelessly stale.
22:13
<@TheWatcher>
Okay, I know I'm missing something here, but can't for the life of me thing what: I have one table 'conversions' and another table 'ingredients', both have an 'ingredient' column, and I want to pull out distinct matches of 'Something%' in the ingredient columns from both. But 'SELECT DISTINCT ingredient FROM conversions,ingredients WHERE ingredient LIKE ?' won't work because it'll complain about 'ingredient' being ambiguous.
22:14
<@Derakon>
You want to find all ingredients, in either ingredients or conversions, that match some pattern?
22:14
<@TheWatcher>
yeah
22:14
<@Derakon>
Your problem is that "ingredient" can refer to conversions.ingredient or ingredients.ingredient.
22:14
<@TheWatcher>
I know
22:15
<@Vornicus>
use a union
22:15
<@simontwo>
how about WHERE conversions.ingredient LIKE 'Something%' OR ingredients.ingredient LIKE 'Something%'. alternatively you could join them first, but I don't know much about DBMS optimizations to know which is faster.
22:15
<@Derakon>
So I think what you need is "select con.ingredient as i1, ing.ingredient from conversions con as i2, ingredients ing where i1 like pattern or i2 like pattern"
22:15
<@Derakon>
Er, move the "as i2" to where it should be.
22:16
<@Derakon>
That gets you two columns, of course.
22:16
<@Derakon>
You'd have to join the tables to get it as one column.
22:17
<@TheWatcher>
I may just make a table that caches all ingredient names anyway, for speed.
22:19
<@TheWatcher>
I'm doing this from a script invoked by ajax suggest dropdown code, so keeping it simpler is probably a good idea.
22:20 * Derakon nods.
22:20
<@Derakon>
Rename the existing "ingredients" table and make a new "ingredients" table that maps ingredient names to IDs, which are used throughout the rest of the DB?
22:20
<@TheWatcher>
Yeah
22:21
<@TheWatcher>
the existing one should probably be recipe_ingreds anyway
23:14 * TheWatcher eyes, tries to work out where he can shove this code, sighs, makes another module
23:22
<@Vornicus>
argwtf
23:22 * Vornicus bites, well, he's not sure who to bite for this one. Possibly MS, possibly HP, possibly Apple.
23:23
<@TheWatcher>
What's up?
23:23
<@Vornicus>
HP PSC 1400 series printer, hooked up to my Mac. Sharing the printer. With wil's mac it shares fine; with amanda's pc it does not.
23:24
<@Vornicus>
I can't find the printer in the list of drivers on the pc; inserting the disk and using "have disk" gives a "I can't find the file".
23:28
<@TheWatcher>
Hm. Does the printer actually show up on the network neighbourhood thing on the PC at all?
23:29
<@Vornicus>
It does.
23:29
<@Vornicus>
I also know that the drivers exist on the disc and are actually already on the PC: The printer is Amanda's.
23:32
<@Vornicus>
(but her computer is a laptop; we decided that the printer being attached to a desktop is the best plan.)
23:38
<@Vornicus>
Got it. Correct drivers are the PostScript drivers, as I would have noted if I'd finished reading the Apple printer sharing article.
23:38
<@Vornicus>
Okay, now everybody can print.
23:44 Derakon is now known as Derakon[AFK]
23:45 * TheWatcher wtfs, appears to have deleted a template
23:45 You're now known as TheWatcher[T-2]
23:51 You're now known as TheWatcher[zZzZ]
23:57
<@McMartin>
Apple Color LaserWriter II is the One True Windows PostScript Driver.
23:59
<@Vornicus>
Heh
23:59
<@Vornicus>
I used the Adobe Generic one.
--- Log closed Sun May 17 00:00:24 2009
code logs -> 2009 -> Sat, 16 May 2009< code.20090515.log - code.20090517.log >