code logs -> 2012 -> Thu, 12 Apr 2012< code.20120411.log - code.20120413.log >
--- Log opened Thu Apr 12 00:00:16 2012
00:32 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has joined #code
00:36 AnnoDomini [annodomini@Nightstar-6cb322e4.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.]
00:40 Derakon[AFK] is now known as Derakon
00:47 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
00:49 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has joined #code
00:49 mode/#code [+o himi-cat] by ChanServ
01:00 Attilla [Obsolete@Nightstar-164c805f.as43234.net] has quit [[NS] Quit: ]
01:26 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Ping timeout: 121 seconds]
01:30 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [[NS] Quit: Leaving]
01:31
<~Vornicus>
I don't think this layout really works for my data here.
01:36 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
02:04
<~Vornicus>
I'd prefer doing this as whole records, except that afaict I need some of the records to have custom code, and
02:15 Kindamoody[zZz] is now known as Kindamoody
02:28 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:44 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
02:53 Tamber [tamber@furryhelix.co.uk] has joined #code
02:53 mode/#code [+o Tamber] by ChanServ
03:05 Kindamoody is now known as Kindamoody|afk
03:29 eckse [eckse@Nightstar-44c11004.dsl.sentex.ca] has joined #code
03:29 mode/#code [+o eckse] by ChanServ
03:36
<~Vornicus>
Idunno, some of this is not stuff I have any sense of how to design.
03:58
<&Derakon>
There, I now have Pythonized data files holding item flavors, common colors, and how flavors and colors meet up.
03:58
<&Derakon>
Now I need to figure out how to combine those with the actual items...
04:00
<~Vornicus>
Consider for instance 4e D&D races. Most of the time, a race gives certain static abilities - dwarves for instance get +2 to constitution and wisdom, and all other races get +2 to two ability scores as well.
04:00
<~Vornicus>
...buuuuuut
04:03
<~Vornicus>
then there's humans. When a character is /human/, you instead get /one/ +2 bonus to ability score... of your choice.
04:04
<&Derakon>
Encode the "bonus to your choice" as a special feature; you'll have plenty of those to wrestle with anyway. Just make humans +0 across the board.
04:04
<~Vornicus>
RIght now I have it set up so that when the race is human, there's a special function call for that.
04:05
<~Vornicus>
But the thing is, there's lots of these little changes.
04:06
<~Vornicus>
When you pick a dragonborn, you get two selections that you need to make: what element your breath weapon is, and what ability it gets its attack power from.
04:06
<&Derakon>
What exactly are you trying to do here?
04:07
<&Derakon>
If it's "Codify D&D" or even just "codify D&D chargen", you'll have a lot of niggling little details.
04:07
<~Vornicus>
really I'm trying to make a 4e character sheet generator thingy.
04:07
<~Vornicus>
RIght, and I'm trying to make it so these niggling little details are organized somewhat sanely.
04:08
<&Derakon>
What I would probably do is have a set of flags that map to functions which prompt the user to make choices.
04:08
<&Derakon>
And those functions would then either modify the basic attributes of the character (that all characters have, like ability scores) or append data onto a miscellaneous section (like for breath weapons).
04:09
<~Vornicus>
but figuring out what "sanely" is here is giving me heartburn.
04:09
<&Derakon>
So your configuration for Dragonborn would look something like "ability modifiers: +0, +2, +0, -2, -2, +2; effective character level: +2; flags: BREATHWEAPON"
04:10
<&Derakon>
And somewhere BREATHWEAPON maps to a function that says "Hey user, what element should I use, and which score does it operate off of?" And then it takes that information and sticks it into a general-purpose textbox.
04:13
<~Vornicus>
Hm
04:14
<~Vornicus>
All right, so this means that each new race or class or in some cases feat, where i need to make some customization, needs to patch the core. Which I guess isn't too horribly bad, all in all.
04:15
<&Derakon>
I don't really see how you can do it otherwise.
04:15
<~Vornicus>
Technically I guess you could make each race or class a module, and have it register its funny bits or something...
04:17
<&Derakon>
Erk...
04:17 * Derakon makes a CreatureFactory class, comments it as "A class that creatures creates with specific attributes."
04:17
<~Vornicus>
But building a registry for such things is guaranteed to be a shrieking horror.
04:17
<&Derakon>
Whoops.
04:30 * Derakon ponders http://pastebin.com/FUSyN9D9
04:31
<&Derakon>
I want to convert that into a Filthy Street Urchin Factory.
04:31
<&Derakon>
(I.e. a CreatureFactory that, when its makeCreature() function is called, creates a Filthy Street Urchin with all appropriate parameters).
04:31
<~Vornicus>
Okay, what the hell does it all mean.
04:32
<&Derakon>
First line is index and name. Second is the template to apply. Third is color.
04:32
<&Derakon>
Fourth is speed, AC, hitpoints, and other similar stats. Fourth is, IIRC, allocation information.
04:32
<&Derakon>
B: lines are for melee blows; this guy begs and tries to steal gold with a touch attack.
04:32
<&Derakon>
F: lines are miscellaneous flags.
04:32
<&Derakon>
D: lines are description.
04:33
<&Derakon>
The main thing is, is there a better way to parse these than a bunch of if/else statements twigging on the first character in the line?
04:39 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
04:40
<~Vornicus>
Sure.
04:41
<~Vornicus>
line_data = line.split(":"); line_parsers[line_data[0]](line_data[1:])
04:42
<~Vornicus>
line_parsers is a dictionary of functio0ns.
04:42
<&Derakon>
Hm, yeah, that works.
04:47
<~Vornicus>
Note that you'll have to manually replace the colons if you decide to ever put any in the description lines.
04:47
<&Derakon>
Yeah, but that's not too hard.
05:02 Syloq_Home [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
05:29 eckse [eckse@Nightstar-44c11004.dsl.sentex.ca] has quit [Client closed the connection]
05:52 Syloq_Home [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
06:11 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
06:16 * Derakon ponders, tries to decide if he should conflate the CreatureFactory and CreatureTemplate classes.
06:17
<&Derakon>
The reason being that a template record is almost identical to a creature record; they just happen to miss different bits and the "description" line for templates means something different than it does for creatures.
06:17
<&Derakon>
So if I conflate them, then I can share parsing logic...but it feels a bit weird.
06:30 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
06:36 Derakon is now known as Derakon[AFK]
07:14
<&jerith>
Derakon[AFK]: Factor out the parser and use it in both?
07:51 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
08:23 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
09:38 You're now known as TheWatcher
10:26 AnnoDomini [annodomini@Nightstar-63830c76.adsl.tpnet.pl] has joined #code
10:26 mode/#code [+o AnnoDomini] by ChanServ
10:50 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
11:02 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
11:12 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
11:39 * TheWatcher make major API change, has to run around fixing shit all over >.<
11:57 Serah [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
11:59 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
12:03 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
12:04 * TheWatcher eyes this
12:04 Serah [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
12:05
<@TheWatcher>
`use Logger qw(.... end_log); ... blabla... end_log(); ` is triggering an Undefined subroutine &main::end_log O.o
12:11 * TheWatcher facepalm, fixes
12:51 Kindamoody|afk is now known as Kindamoody
13:00
< Rhamphoryncus>
What's that strange sound I heard just as I took my headphones off? Did I leave openttd unpaused while watching dog whisperer? Oh wait, it's a bird outside. :P
13:42
< Tarinaky>
Out... side?
13:49
<&jerith>
Tarinaky: The big room with the poor climate control.
13:53
<@AnnoDomini>
Yo, guys, is it possible to install MS Windows 3.x on a commercial modern box?
13:54
< Stalker>
No, it is no x64 compatible.
13:54
< Stalker>
not *
13:54
< Stalker>
May also experiences BIOS issues.
13:55
<@AnnoDomini>
Are there truly no modern 32-bit boxes available anymore?
13:55
< Stalker>
Not in my retailers.
14:02
<&jerith>
Doesn't most hardware support running in 32-bit mode?
14:15
<@ToxicFrog>
Yes, it does.
14:15
<@ToxicFrog>
The problem you are more likely to run into is that there are no DOS/3.x drivers for, well, anything current.
14:15
<@ToxicFrog>
Just install it in dosbox.
14:26
< Stalker>
Hmm.
14:27
<@TheWatcher>
... Why do you want to run Win 3.x anyway?
14:27
<@TheWatcher>
I have some forks here, I could ship them to you and you could repeatedly stab yourself in the legs with them, it'd be less painful ¬¬
14:28
<@AnnoDomini>
This is an offshoot of an argument in DnD.
14:29
<@AnnoDomini>
Stalker used installing Win3 on modern machines as an analogy of installing monarchies on modern nation states.
14:33
<@AnnoDomini>
So I wanted to check with you guys, since you tend to keep current.
14:38
<~Vornicus>
3.x is a 16 bit OS
14:38
<~Vornicus>
YOu're going to have Issues.
14:46 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
15:19
< RichyB>
amd64 CPUs have a backwards-compatibility mode for the 386.
15:19
< RichyB>
The 386 has a backwards-compatibility mode for the 286.
15:20
< RichyB>
AIUI modern OSes, when you boot them from a BIOS rather than UEFI, bootstrap themselves sequentially through all of those compatibility layers in order to get into amd64 mode.
15:21
<@ToxicFrog>
Yeah, the issue is not "will the instruction set be understood", it's "will 3.x be able to communicate with any of your peripherals" and the answer is "not a chance"
15:22
<@AnnoDomini>
What, not even the monitor?
15:40
<@ToxicFrog>
Depends on how much of a priority your video card/BIOS manufacturer put on legacy VGA support.
15:42
<@ToxicFrog>
Keyboard will probably work (if the BIOS has "legacy USB support"), mouse maybe, video maybe, sound not a chance, other USB devices no
15:50 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
15:55 Noah [noah@Nightstar-171d510a.pools.spcsdns.net] has joined #code
15:57
< Noah>
I think I'm going to make a python script to rename these fucking GBA roms
15:57
< Noah>
I don't mind the release numbers, but I think I want them at the end, and I'd like to convert the spaces to underscores, and sort them by language
15:58
< Stalker>
Why would you want the spaces to be underscores?
15:58
< Noah>
Because linux hates spaces
16:00
< Stalker>
Oh, ok.
16:03
< Noah>
it's easy enough, I split the file name on a period in reverse once, to get the filetype, then split the file on spaces, move the number and dash to the end in reverse, then join the name on an underscore, then add the filetype back on
16:04
< Noah>
So 0101 - Some fucking game (E) [!].zip should become Some_fucking_game_(E)_[!]_-_0101.zip
16:06
< Noah>
Then I'll have to sort through the files, looking for (U), (E), (EU), (UE) and move them into a "language I fucking speak" directory, and shovel the rest into "languages everyone else speaks" directory
16:07
< Tarinaky>
Since when does Linux hate spaces?
16:07
< Tarinaky>
Linux\ gets\ along\ fine\ with\ spaces.
16:07
< Noah>
ggggrrr!
16:08
< Noah>
Some\ fucking\ game\ \(E\)\ \[!\]\ -\ 0101.stfu
16:10
< Noah>
I may even change the brackets
16:11
< Tarinaky>
You need to escape the bang.
16:11
< Noah>
Uhg, it hates the bang symbol too
16:11
< Noah>
Yea, just noticed
16:11
< Tarinaky>
Yes
16:11
< Noah>
Gotta live wit that
16:11
< Noah>
Meh, guess I'll just leave the spaces then
16:12
< Noah>
Or maybe just reduce the filenames to the actual name, and build a list with the original file name
16:12
< Tarinaky>
emulator poke<tab>_Bl<tab><return> >.>
16:12
< Tarinaky>
Or would that be too easy? >.> <.< >.>
16:12
< Noah>
too easy
16:22
< Tarinaky>
Reasons I hate first year CS:
16:22
< Tarinaky>
Hey guys,
16:22
< Tarinaky>
I have been trying to implement the 'updateItemQuantity(Item item, int Quantity)' method. The problem I have encountered is that the first paramenter being passed into the method is of type Item but it is the OrderItem that contains that item and the quantity to be updated that is needs to be accessed. I cannot find a way to access the specific OrderItem to be updated with the new quantity. I tried to cast the Item passed into an OrderItem but of c
16:22 * Tarinaky cringes a little >.<
16:22
<~Vornicus>
but of c
16:23
< Tarinaky>
I suggested he should use a hashmap.
16:23
< Tarinaky>
He then asked what a hashmap was q.q
16:24
< Noah>
What's a hashmap?
16:24
< Noah>
Sounds yummy
16:24
< Noah>
Is it like they take hashbrowns, and make a country shape from them, and if you guess it right, your hashbrowns are free?
16:25 * Tarinaky blinks.
16:32
<@ToxicFrog>
...
16:34 * Tarinaky shifty eyes >.>
16:34
< Tarinaky>
Yeah, okay. I'm a bad person.
16:36
<@ToxicFrog>
I was ...ing at Noah, actually
16:37
< Noah>
Man I'm hungry, anyone wanna go get some hashmaps, I'm pretty good a geography
16:39
< Tarinaky>
I thought trolls ate bloggers?
16:52 Noah1 [noah@Nightstar-af5e5b53.pools.spcsdns.net] has joined #code
16:53 Noah [noah@Nightstar-171d510a.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
17:34 Noah1 [noah@Nightstar-af5e5b53.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
17:59 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
18:00 Tarinaky is now known as Atreus
18:01 AnnoDomini is now known as Number3
18:02 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
18:07 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
18:08 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
18:14 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
18:16 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
19:10 Kindamoody is now known as Kindamoody[zZz]
19:21 Noah [noah@Nightstar-af5e5b53.pools.spcsdns.net] has joined #code
20:39 Number3 [annodomini@Nightstar-63830c76.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
20:40 Number3 [annodomini@Nightstar-61b35388.adsl.tpnet.pl] has joined #code
20:44
< Noah>
http://www.maa.org/devlin/LockhartsLament.pdf
20:49 AbuDhabi [annodomini@Nightstar-c7117735.adsl.tpnet.pl] has joined #code
20:49 Number3 [annodomini@Nightstar-61b35388.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
20:50 AbuDhabi is now known as Number3
20:52
< Noah>
What's a good free cad program?
20:53
< Eri>
MSPaint
20:53
< Noah>
Read good as not impossible to us
20:53
< Noah>
Eri: On linux
20:53
< Eri>
Hmmmmm
20:53
<~Vornicus>
I like sketchup but idunno if it's available for linux.
20:53
< Eri>
Well, if it's for electrical, I'd say gEDA, but it actually sucks ass
20:53
< Noah>
For small scale projects
20:54
< Noah>
I want to design a wooden frame for a cage 30 in by ~12.5 in
20:54
< Noah>
Of yet to be determined height
20:55
< Eri>
FreeCAD! It says free in the name, it must be good
20:56
< Eri>
I wouldn't advise you to take my advice. I have a very cynical perspective on anything free and open source
20:56
< Eri>
It all sucks
20:56
< Eri>
Every bit of it
20:56
< Noah>
All of it?
20:57
< Eri>
Yes.
20:57
< Noah>
So, nethack sucks?
20:57
< Eri>
Yup. It's unclear to the entry user
20:57
<@rms>
I assume you use IE then?
20:57
< Number3>
Nethack is awesome.
20:57
< Eri>
Hey, whoa, I didn't say I don't use open source software
20:57
<@rms>
Because every other browser is at least partially FOSS
20:57
< Noah>
Uhg, I can't kickban Eri, why aren't I op!
20:57
< Eri>
Just that it all sucks
20:58
< Noah>
u sux lol
20:58
<@rms>
Well clearly you wouldn't use shitty software unless you are a masochist
20:58
< Eri>
Or just that everything else sucks more
20:58
< Eri>
It's the classic political system problem. Democracy sucks, just not as much as everything else.
20:59
< Eri>
Open source sucks, just not as much as everything else
20:59
< Eri>
Mmm.... with the exception of windows media player
20:59
< Eri>
I'm rather fond of WMP HT
20:59
< Eri>
I guess that's open source, built on what was once proprietary code
20:59
< RichyB>
Noah, check the FreeBSD Ports collection.
21:00
<@rms>
WMP is OS now?
21:00
< RichyB>
Even if you don't use FreeBSD at all, it's a pretty good catalogue of software worth using.
21:00
< Eri>
Windows media player classic, sorry
21:00
< RichyB>
Because every piece of software in there has at least one user who cares enough for it to actively maintain it on a slightly-niche OS. :)
21:00
< Noah>
RichyB: Sure, I'll look into it
21:00
<@rms>
It's just MPC last I checked
21:00
< Eri>
Is it? I haven't used it since I moved onto Linux
21:01
< Eri>
Ah, that reminds me. What's a good video player on Linux?
21:01
< RichyB>
Noah, you can pretty much just read off the lists at freshports.org
21:01
< RichyB>
Eri, mplayer, then vlc, then stab yourself in the genitals with an icepick.
21:01
< Eri>
Hmm. mplayer is what I use, vlc is what I hate
21:02
< Eri>
... I wanted to have kids someday
21:02 * Eri gets the icepick
21:02
< RichyB>
You could stab someone else.
21:02
< RichyB>
Some kind of patsy.
21:04
< Eri>
I have a room-mate named Patsy
21:04
< Eri>
Hmm.....
21:05
< Noah>
I always have issues getting vsync working in Linux for certain things
21:05
< Noah>
And ever cool desktop toy wants me to enable compositing, and I ain't gonna
21:08
< RichyB>
You're nuts.
21:08
< RichyB>
Wobbly windows are the shti.
21:08
< RichyB>
...the dog's bollocks.
21:08
< Noah>
The tanuki's cahunas?
21:09
< RichyB>
Them too.
21:09
< Noah>
And that's with Compiz anyway
21:10 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Operation timed out]
21:10
< RichyB>
I still really like Compiz.
21:11
< Noah>
Oh, I appreciate desktop effects sure
21:11
< Noah>
But they fuck up my emulators
21:11
< Noah>
And I can't have that
21:11
< RichyB>
Oh, they do? Oh well.
21:12
<&McMartin>
I now have enough texture RAM that I'd rather keep my windows in them.
21:12
<&McMartin>
But I don't need a wibbly-wobbly ball of windows stuff
21:12
< Noah>
Hehe
21:13
<&McMartin>
Also, it is pretty boss to have thumbnails that reflect window contents
21:17
< Noah>
Yea, and zooming under compiz is pretty amazing
21:26
< RichyB>
There are a couple of things which are *really* neat
21:27
< RichyB>
like the compiz plugin that runs a fragment shader to simulate colour-blindness :)
21:34
<~Vornicus>
What I've seen of compiz etc has always been a little too wobbly
21:34
<~Vornicus>
or rather a lot too wobbly.
21:35
<&McMartin>
More interested in dumb visual effects than usability or basic window management functionality
21:41
< Noah>
Yea, I'd rather have usability. I like how Metacity handles windows... I wonder if I can get Gnome 2 working
21:41
<&McMartin>
Mutter has apparently been getting better too
21:42
< Namegduf>
Compiz is a smallish core with a lot of modules for altering WM behaviour and rendering.
21:42
< Namegduf>
The default configurations I've seen have always been poor.
21:42
< Noah>
Yea, I like Mutter okay, it has the same shift-dragging effect on windows that Metacity has
21:42
< Namegduf>
But you can pick pretty much whatever effects and window switching mechanisms you like.
21:42
< Noah>
Yes, Compiz defaults are bad bad bad
21:43
< Namegduf>
And being accelerated it was always snappy on good hardware compared to non-accelerated WMs.
21:43
< Noah>
They should give you a blank slate and have a tutorial or a video showing the different plugins
21:43
< Namegduf>
Alternatively: Not wibbly default setup.
21:43
< Noah>
Infact, I watched videos when I first went to use compiz, and I knew what I wanted it to do before I ever installed it
21:43
< Noah>
Step one, disable wobbly windows
21:43
< RichyB>
Step two, enable wobbly windows.
21:44
< RichyB>
What were you THINKING?
21:44 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has left #code ["Leaving"]
21:44 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
21:44
< RichyB>
Whoops wrong key.
21:44
< Noah>
Step 3, toss RichyB out of the window
21:44
< RichyB>
Wobbling is THE BEST.
21:44
<&McMartin>
Step 4, disable CUBE_.
21:44
< RichyB>
What I really need in Compiz is some kind of wobbly-cube.
21:44
< Noah>
The cube was okay, but I switched it to inside instead of outside
21:44
< RichyB>
That would be the best.
21:45
< Namegduf>
I went for cylinder.
21:45
< Namegduf>
It suited me.
21:46
< Noah>
I tried that, but it felt odd too me
21:46
< Noah>
that's how I have my phone however, hehe
21:46
< Namegduf>
As desktop switching mechanisms go surfaces of an object is intuitive enough.
21:46
< Namegduf>
I'm good with just numbered desktops now, though.
21:46
<&McMartin>
"inside cube" - skybox - is basically rapid-scroll, which is fine
21:47
<&McMartin>
Gives your eyes something to track instead of having to recontextualize the windows.
21:47
<&McMartin>
More important if you're using that advanced "desktop" technology instead of tablety full screen apps.
21:47
< Noah>
heh
21:47
< Namegduf>
http://www.google.co.uk/imgres?q=Compiz+window+popup&um=1&hl=en&sa=N&biw=1274&bi h=931&tbm=isch&tbnid=6n84b18lNV-5aM:&imgrefurl=http://my.opera.com/ubuntunerd1/b log/how-to-install-compiz-fusion-in-ubuntu-hardy&docid=zAl8pAz5ESascM&imgurl=htt p://i144.photobucket.com/albums/r183/welcomejsp/Screenshot-2-2.png&w=1280&h=1024 &ei=bT-HT93HM8Pf8QPr4OTVBw&zoom=1&iact=rc&dur=268&sig=100852606152488699784&page =1&tbnh=164&tbnw=183&start=0&ndsp=20&ved=1t:42
21:47
< Namegduf>
Er, wow
21:47
< Namegduf>
Better link: http://i144.photobucket.com/albums/r183/welcomejsp/Screenshot-2-2.png
21:48
< Namegduf>
I used to use that to peek *behind* windows.
21:48
< Namegduf>
The transparent window not helping at all in that screenshot.
21:48
< Namegduf>
I didn't have any of those.
21:49
< Namegduf>
I also had obaque titlebars.
21:55
< RichyB>
Mental note to write a greasemonkey script to make Google searches no longer return insane redirection URLs.
21:56
<&McMartin>
OMG GIBS.
21:56
< RichyB>
Those things irritate me when I accidentally copy-paste them into somewhere where I would really have preferred an aesthetically-pleasing URL.
21:57
<&McMartin>
Yeah
21:58
< Noah>
I just have a button for goo.gl
22:00
< Noah>
http://goo.gl/sYz2S for example
22:00
< Noah>
instead of...that...thing you posted earlier
22:24
< gnolam>
That's not any better. Now it's /completely/ opaque what it is.
22:24 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
22:24 mode/#code [+ao Derakon Derakon] by ChanServ
22:25
< gnolam>
I simply assume that any shortened link is Goatse.
22:25 * Derakon eyes his shell, has accidentally created 400 files whose name start with "-out=".
22:26
<&Derakon>
So far the only solution I've thought of that I think would actually work is to move everything else out of the directory they're in, nuke the directory, and then recreate it.
22:26
<&Derakon>
Escaping the - doesn't seem to work so far...
22:26
< Noah>
gnolam: Because you're paranoid
22:26
<&Derakon>
Nor does putting it in quotation marks.
22:27
< Namegduf>
Derakon: "man rm"
22:27
< Namegduf>
"To remove a file whose name starts with a `-', for example `-foo', use one of these commands:"
22:27
< Namegduf>
"rm -- -foo"
22:27
<&Derakon>
Well, I'd rather not delete them if I don't have to.
22:28
<@ToxicFrog>
Er
22:28
<@ToxicFrog>
<Derakon> So far the only solution I've thought of that I think would actually work is to move everything else out of the directory they're in, nuke the directory, and then recreate it.
22:28
<&Derakon>
Though apparently the same principle applies to mv as to rm.
22:28
<@ToxicFrog>
But that would delete them
22:28
<&Derakon>
TF: which is why I didn't do it.
22:28
<@ToxicFrog>
So what do you actually want to do with them?
22:28
< gnolam>
Noah: or because there's no reason to use a service like that unless you're trying to hide something from whomever's going to click on it.
22:28
<@ToxicFrog>
Rename them?
22:28
<@ToxicFrog>
Archive them?
22:28
<&Derakon>
Rename them to not have -out= at the beginning of their names.
22:28
< Namegduf>
And touch, it seems.
22:28
< Namegduf>
I didn't know that previously.
22:28
<@ToxicFrog>
Depending on which version of 'rename' you have...
22:29
<@ToxicFrog>
rename s/-out=// -out=*
22:29
<@ToxicFrog>
rename -- '-out=' '' -out=*
22:29
<@ToxicFrog>
One of those should work
22:29
< Noah>
gnolam: Yea, we've discussed this before. Just don't go clicking on any short-link you find, that's silly, but I think if Namegduf gave us a short-link, there's more than a 50% chance that I would click it
22:30
< RichyB>
If you have filenames starting with dashes, the other easy thing to do is refer to them as ./-out=*
22:30
<&Derakon>
TF: the first gets very confused; the second says there's a syntax error.
22:30
<&Derakon>
Ehh, screw't. Nuke & pave.
22:30
<@ToxicFrog>
"very confused" how?
22:30
<@ToxicFrog>
Alternately, do this:
22:31
< Noah>
Eye of screwt?
22:31
<&Derakon>
TF: it seems to treat every character from the beginning of "out" up to the next '-' in the filename as an option.
22:31
<@ToxicFrog>
Hmm
22:31
<&Derakon>
(The filenames are "-out=20120412-10tap-dark_X[0..400].mrc")
22:31
<@ToxicFrog>
rename -- s/-out=// -out=* ?
22:31
<@ToxicFrog>
(without the ?)
22:32
<&Derakon>
Hm, that did it. Cool.
22:32
<&Derakon>
I didn't even know about the rename command.
22:32
<@ToxicFrog>
rename is kind of a pain in the ass because there's at least three different versions of it, some of which are shell builtins, all called 'rename'
22:32
<@ToxicFrog>
There's 'rename <perlexpr> <files>'
22:32
<&Derakon>
Heh.
22:32
<@ToxicFrog>
'rename <substr> <replace> <files>'
22:33
<@ToxicFrog>
and 'rename <regex> <replace> <files>'
22:33
<@ToxicFrog>
Which one does your system use? It is a mystery!
22:33
< Noah>
Usage: rename [-v] [-n] [-f] perlexpr [filenames]
22:33
<@ToxicFrog>
The man page doesn't even help because it might, say, give you the manual for /usr/bin/rename but you're actually invoking the shell builtin
22:33
<&Derakon>
I generally use perl -ne if I need to do batch renaming.
22:34
< RichyB>
Derakon, I find it amusing how easy Perl is to find a copy of. :)
22:35
<&Derakon>
Sadly, I was unable to figure out the proper sequence of escaping etc. required to get Perl to do the right thing in this corner case.
22:49 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds]
22:54
<&Derakon>
Argh.
22:55
<&Derakon>
So, the microscope that everyone uses here is currently down because of a faulty part, that's off for repairs.
22:55
<&Derakon>
Unfortunately the part is only intermittantly faulty, so the techs are having trouble with the repair job (can't fix what's not apparently broken).
22:55
<&Derakon>
So it's been out for a week and a half.
22:55
<&Derakon>
And every goddamn day people drop by to ask me if I have any information on when it'll be up again.
22:56
<&Derakon>
We have a mailing list, people! I said I'd notify everyone as soon as I had word! The lack of word on my part indicates that there is. no. news!
22:56
< Noah>
make a sign, in Comic Sans, stating that, no, the microscope is not working still, fuck off
22:56
<&Derakon>
These are academics I'm dealing with, Noah. A sign would just get ignored.
22:56
< Noah>
They figure you won't email the mailing list the VERY NANOSECOND you find out it's fixed
22:57
< Noah>
Or at all, and it might be working for days and no one there to break it again!
22:57
<&Derakon>
Heh.
22:57
< Noah>
Do this thing
22:58
< Noah>
Grease the door nob with vaseline, then when they ask, direct them to the sign "You have vaseline on your hand because you didn't read this sign to know about the vaseline on the door nob, also the microscrope is still down, asshat
22:59
<&Derakon>
Perhaps a trifle more...strident...a tone than I would normally take.
22:59
< Noah>
How's "IT'S STILL BROKEN YOU MICROSCOPE BREAKER"? Less cursing.
23:01
< Noah>
Or "We know who broke the microscope, if I see you, I will have you detained and interrogated, and the scope costs 50k dollars", and since no one actually knows your broke it, they'll assume you might suspect them, and leave you alone to avoid confrontation
23:01
<&Derakon>
$50k?
23:01
<&Derakon>
Amusingly naive.
23:02
<&Derakon>
You're at least an order of magnitude off.
23:02
< Noah>
High or low?
23:02
<&Derakon>
Low.
23:02
< Noah>
I'm assuming low
23:02
<&Derakon>
A single camera costs at least $20k.
23:02
<&Derakon>
And we have four.
23:02
< Noah>
Yea, since a part have to be sent of to repair
23:02
< Noah>
So, FOUR MILLION DOLLARS
23:02
< Noah>
In bold, underline, italics.
23:05
< Noah>
And blinking, if you can get the printer to pull it off
23:05
<&Derakon>
Alas, our printer can't do circuits and LEDs yet.
23:06
< Noah>
maybe do a chemical ink that, when light strikes it, warms up enough to make the ink fade, but then the dark ink fades, which means it's not hot anymore, so it cools down, then goes dark again, but catches light again...
23:07
< RichyB>
That might violate thermodynamics unless it needs a temperature gradient somewhere.
23:07
< Noah>
And calibrates itself to the current room temp...
23:07
<&Derakon>
Richy: well, presumably the room lights would provide the necessary energy input.
23:08
< Noah>
Yea, if it's dark, you aren't reading it anyway
23:08
< Noah>
And quit being a hard science asshat, I'm having fun here
23:10
< Noah>
You know what I've always wandered? Braille is typically fixed width, and we have fix width fonts, so why don't we print fixed width text over braille dots instead of having stupid huge name plates. I mean, I'm not reading the braille, and they're not feeling the font.
23:10
< Noah>
So they can share the same space.
23:11
< Namegduf>
Comfortable size differences, perhaps?
23:11
< Namegduf>
They still seem like they could overlap, but they wouldn't correspond.
23:12
< Namegduf>
Maybe the braille being clearly visible helps in guiding someone's hand to it, if necessary.
23:12
< Noah>
maybe... would have to find a cheap braille typewritter
23:12
< Namegduf>
It's a good question.
23:12
< Noah>
Braille being clearly visible...?
23:12
< Namegduf>
So someone who can see can direct them to it.
23:12
< Namegduf>
Since they've no way to know that it exists from a distance
23:12
< Namegduf>
I wouldn't be surprised if that kind of thing happened often.
23:12
< Noah>
Maybe
23:20 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has joined #code
23:20 mode/#code [+o himi-cat] by ChanServ
23:21 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has quit [[NS] Quit: Leaving]
23:21 himi-cat [fow035@D741F1.243F35.CADC30.81D435] has joined #code
23:21 mode/#code [+o himi-cat] by ChanServ
23:27 Number3 is now known as AnnoDomini
23:27 mode/#code [+o AnnoDomini] by ChanServ
23:28 AnnoDomini [annodomini@Nightstar-c7117735.adsl.tpnet.pl] has quit [[NS] Quit: leaving]
23:49 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
--- Log closed Fri Apr 13 00:00:31 2012
code logs -> 2012 -> Thu, 12 Apr 2012< code.20120411.log - code.20120413.log >

[ Latest log file ]