code logs -> 2010 -> Mon, 13 Sep 2010< code.20100912.log - code.20100914.log >
--- Log opened Mon Sep 13 00:00:07 2010
--- Day changed Mon Sep 13 2010
00:00 AnnoDomini [annodomini@Nightstar-d4807587.adsl.tpnet.pl] has quit [[NS] Quit: Dead.]
00:07 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
00:09 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
00:25 Finerty is now known as Vornicus
00:34
< gnolam>
Whoa.
00:34 * gnolam 's head asplode.
00:34
< gnolam>
Evince for Windows is actually... pretty nice.
00:37
<@ToxicFrog>
Yep.
00:54 You're now known as TheWatcher[T-2]
00:57 You're now known as TheWatcher[zZzZ]
01:07
< simon_>
gnolam, oh! I used to use FoxIt Reader.
01:07
< simon_>
gnolam, I like that j/k works in Evince.
01:13
< gnolam>
Unfortunately, Foxit's program title self-shilling just got too annoying for me. :P
01:14
< gnolam>
j/k? Just kidding?
01:20
<@Derakon>
At a guess, just because.
01:22
< gnolam>
Still makes no sense.
01:24
<@Derakon>
"I like that just because it works in Evince".
01:24
<@Derakon>
From a very lazy typist.
01:25
< gnolam>
"I used to use FoxIt Reader. I like that just because it works in Evince." <- makes no sense
01:25 * Derakon shrugs.
01:37
< gnolam>
... of course, Evince turns out to be farking stupid with its window size and position.
01:37
< gnolam>
*sigh*
01:38
<@ToxicFrog>
gnolam: I'm guessing he means "the j and k keys have useful default keybinds in evince"
01:38
<@ToxicFrog>
That is to say, evince supports vikeys.
02:40 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
04:06 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
04:41 Zed [Zed@Nightstar-556ea8b5.or.comcast.net] has quit [Connection reset by peer]
05:21 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
05:47 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
05:49 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:09 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
06:19 Stalker [Z@5E691D.FC7C16.F8708C.19B594] has joined #code
06:37 Stalker [Z@5E691D.FC7C16.F8708C.19B594] has quit [Ping timeout: 121 seconds]
06:48 Derakon is now known as Derakon[AFK]
07:48 Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has joined #code
07:54 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
07:55 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
07:55 Syloqs_AFH is now known as Syloqs-AFH
08:01
< Alek>
http://www.storyq.net/boxes/22258
08:18 Anno[Laptop] [annodomini@Nightstar-cc165a6d.adsl.tpnet.pl] has joined #code
08:27 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
09:27 You're now known as TheWatcher
09:47 Anno[Laptop] is now known as AnnoDomini
11:04 Vornicus is now known as Vornicus-Latens
11:20 Ortiha [orthianz@Nightstar-db7147cc.xnet.co.nz] has quit [Client closed the connection]
11:29 Orthia [orthianz@Nightstar-db7147cc.xnet.co.nz] has joined #code
11:31 Orthia [orthianz@Nightstar-db7147cc.xnet.co.nz] has quit [Client closed the connection]
11:37 Orthia [orthianz@Nightstar-db7147cc.xnet.co.nz] has joined #code
11:47
< AnnoDomini>
Hm. Do you guys know of any Unix/Linux shell accounts with Perl stuff that are not completely annoying to sign up for?
11:55 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has joined #code
12:33
<@TheWatcher>
AD: wut
12:33 cpux is now known as shade_of_cpux
12:34
<@TheWatcher>
Download live CD for arbitrary distro, run, should probably have perl out of the box... what do you need it for?
12:34
< AnnoDomini>
I've been searching for shell accounts. Most appears dead or nonfunctional, or require cash, or sending a postcard to a foreign country, or regularly showing up on an IRC channel to confirm you want to keep registered...
12:35
< AnnoDomini>
TheWatcher: I have Perl here. I want a shell account with Perl, because I turn the computer off for the night.
12:37
< AnnoDomini>
I want to run an IRC bot.
12:40
< Orthia>
Do you have a bot written in perl?
12:41
< AnnoDomini>
Yes.
12:43
< Orthia>
Does it handle the !exalted command?
12:43
< AnnoDomini>
Yes.
12:44
< Orthia>
How much work would it be to handle the !space command?
12:44
< Orthia>
(die pool of d6s, 4+ success, on a 6 throw another d6 into the pile)
12:45
< AnnoDomini>
Probably little.
12:45
< Orthia>
I prostrate myself before thee in begging.
12:46 Tarinaky [Tarinaky@A08927.0188FD.4A6AB5.0872F1] has joined #code
12:48
< AnnoDomini>
I'll see.
12:51
< AnnoDomini>
It is done.
12:52
< Orthia>
Yay!
13:15 Ortiha [orthianz@Nightstar-cea40bf3.xnet.co.nz] has joined #code
13:17 Orthia [orthianz@Nightstar-db7147cc.xnet.co.nz] has quit [Ping timeout: 121 seconds]
13:27 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:40 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:44 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has quit [Ping timeout: 121 seconds]
14:33 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
14:52 Tarinaky [Tarinaky@A08927.0188FD.4A6AB5.0872F1] has quit [Client closed the connection]
15:11 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
15:51 * TheWatcher stabs the developers of mediawiki's "usability enhancements" in the face with rusty pitchfork
16:31
< gnolam>
TheWatcher: ?
16:32
<@TheWatcher>
One of they keystone improvements in the 1.16.x series is the Vector skin and the new WikiEditor system (the latter providing an ajax preview, editing toolbars, and some other features)
16:33
<@TheWatcher>
In writing this, the developer has produced something that works fine, provided that pages only contain javascript that uses the jQuery library
16:34
<@TheWatcher>
if you have used any extensions that employ mootools code, the WikiEditor stuff breaks hilariously, because they didn't stick to the guidelines for making code that doesn't conflict wiht other frameworks
16:35
<@TheWatcher>
And a good half of the important extensions I run on three wikis in work rely on mootools
16:36
< AnnoDomini>
From console, how do I activate a process to run in the background? As in, not locking down the console.
16:36 Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has quit [Client exited]
16:36
<@TheWatcher>
Stick a & after the command, eg: ./foo.pl &
16:37
<@TheWatcher>
foo.pl will remain running provided that the terminal is not closed
16:37
<@TheWatcher>
if you want it to completely detach from the terminal - so you can log in, launch it, and then log out again - you need to use something like screen or dtach
16:38
< AnnoDomini>
I'm asking this because I have managed to obtain a shell account, and am trying to figure out how to keep it running without having to be logged in.
16:38
< AnnoDomini>
Okay.
16:38
<@TheWatcher>
If you have screen, I'd suggest using that, as it has more features (and I find it easier to use) than dtach
16:38 * AnnoDomini also tries to figure out how to transmit a file.
16:39
< AnnoDomini>
screen is available.
16:39
<@TheWatcher>
scp or sftp should work for file transfer
16:39
<@TheWatcher>
scp localfile user@remotehost.com:path/to/
16:40
< AnnoDomini>
I'm not sure I understand. I execute this from the ssh terminal, the localfile is where I want the file to land, and the rest is the address of the file on an ftp server somewhere or something?
16:43
<@TheWatcher>
you run that from a terminal on your local machine, localfile is the file on your local machine you want to transfer, and the rest is the destination on the server you want to copy it to
16:46
< AnnoDomini>
Thanks. That worked.
16:46
< AnnoDomini>
Now, about using screen for this. How do I do that?
16:47
<@ToxicFrog>
ssh to the remote machine.
16:48
<@ToxicFrog>
'screen' and it will start screen and give you a prompt.
16:48
<@ToxicFrog>
Then run whatever you need, ctrl-A D to disconnect from screen, and log out.
16:48
<@ToxicFrog>
Screen remains running on the remote machine, with your program or programs inside it.
16:48
<@ToxicFrog>
To reattach, ssh back in and run screen -R
16:49
<@ToxicFrog>
It has a whole bunch of other useful features, it's basically a fully featured detachable terminal multiplexer using curses.
16:51 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection reset by peer]
16:51
< AnnoDomini>
Thanks.
16:52
< AnnoDomini>
Dang, they have Perl, but don't have libnet-irc-perl. :(
16:52 Ortiha is now known as Reiv
16:52
< AnnoDomini>
I don't suppose users can somehow install/upload libraries without having superuser access?
16:55
< Reiv>
I believe the usual method is to download and install setup.exe for the relevant file.
16:55 * Reiv kaflee
16:56 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
17:07
< AnnoDomini>
I have the library archive, it's even for the same distribution as the thing I have a shell on.
17:08 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
17:08
< AnnoDomini>
Anyone know if I can just tell perl to look somewhere specific for a library?
17:18 Reiv [orthianz@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
17:18 Orthia [orthianz@Nightstar-cea40bf3.xnet.co.nz] has joined #code
17:19 Orthia [orthianz@Nightstar-cea40bf3.xnet.co.nz] has quit [Client closed the connection]
17:19 Orthia [orthianz@Nightstar-cea40bf3.xnet.co.nz] has joined #code
17:24
<@TheWatcher>
Yes: before your various use/require directives put
17:25
<@TheWatcher>
use lib "path/to/search";
17:25
<@TheWatcher>
it will then prepend that path to perl's library search path
17:28
< AnnoDomini>
So if I had "use Net::IRC;", I'll now want to change that into "use "/home/abudhabi/Net-IRC-0.75/";"?
17:28
<@TheWatcher>
no
17:29
<@TheWatcher>
use lib "/home/abudhabi/Net-IRC-0.75/"; use Net::IRC;
17:31
<@TheWatcher>
Or, if possible avoid absolute paths entirely: create a modules directory in the same location as your script, shove the necessary .pms in the modules directory (say, modules/Net/IRC.pm etc) and then do 'use lib "modules"; use Net::IRC;'
17:32
< AnnoDomini>
This'll work? The library doesn't need to be modified in some way first? I just downloaded the tar.gz and extracted it into a directory.
17:32
<@TheWatcher>
Depends! If it's pure perl it should work.
17:33
<@TheWatcher>
If it is perl that has some c/c++ component to it, you'll need to do
17:34
<@TheWatcher>
cd sourcedir && perl Makefile.pl PREFIX=/home/abudahbi/path/ && make && make test && make install
17:34
<@TheWatcher>
where the prefix is the path you want to install the module to
17:35
< AnnoDomini>
This will work without superuser stuff?
17:35
<@TheWatcher>
yep
17:38
< AnnoDomini>
Cool. Simultaneously, I got the attention of an admin, who installed the library properly.
17:38
<@TheWatcher>
Heh
17:39
<@TheWatcher>
(I idly note that http://pastebin.starforge.co.uk/344 is a useful piece of code to include when you're using your own modules - if you place all your modules inside a modules directory created in the same location as your script, and place that at the start, you can run the script from anywhere on the filesystem and it'll work, rather than having to change to the directory containing the script and run it from there)
17:42
< AnnoDomini>
Awesome. Everything works. PainBot is running in the background nicely. I shall have to update it sometime, install safeguards and stuff, so I don't piss off the admins with infinite loops or stuff.
17:43
<@TheWatcher>
\o/
17:43
< Orthia>
Admins friends of yours?
17:43
< Orthia>
And just what commands did you rig it to obey?
17:44
< AnnoDomini>
Nope. Complete strangers. Just rolling, plus VERSION, plus invite, and !die.
17:45 * AnnoDomini leaves now for KM.
17:45
< Orthia>
What rolls?
17:45
< Orthia>
!Roll, !Exalted, !Space ... ?
17:45
< AnnoDomini>
Yeah.
17:45
< Orthia>
Those are kind strangers.
17:45
< Orthia>
Have fun :)
17:45 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
17:45 mode/#code [+o Derakon] by Reiver
17:54 * Derakon mutters at py2app and the resulting apps' inability to find the os module.
17:57 SmithKurosaki [Smith@Nightstar-e73eb6b0.dsl.teksavvy.com] has quit [Client closed the connection]
17:59 Orthia [orthianz@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
18:01 SmithKurosaki [Smith@Nightstar-e73eb6b0.dsl.teksavvy.com] has joined #code
18:08 Orthia [orthianz@Nightstar-cea40bf3.xnet.co.nz] has joined #code
18:08 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
18:13 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has joined #code
18:13 mode/#code [+o Derakon] by Reiver
19:25 SmithKurosaki [Smith@Nightstar-e73eb6b0.dsl.teksavvy.com] has quit [Operation timed out]
19:37
<@Derakon>
I really wish I at least had some useful error messages here.
19:37
<@Derakon>
But all I get is "no module named os" which is bafflingly useless.
19:51
<@Derakon>
Oh hey, it doesn't seem to be copying over the entirety of the Python libraries. Okay.
19:53 * Derakon eyes his notes. "Still doesn't work. Stuffed them i2t/ site-packages dir -> new error! Cn't import wx i/ processor.py b/c zlib n/ ?l."
19:54
<@ToxicFrog>
??
19:55
<@Derakon>
?l == functional.
19:56
<@ToxicFrog>
Also, argh, fuck this client-server design, I've been wrestling with it for a month and still don't feel like I have a good design, let alone a testable implementation.
19:56
<@Derakon>
Just have the client send events to the server and the server send pixels back~
19:59
<@ToxicFrog>
Well, the protocol is pretty well established - it's all RMI, client and server have synchronized game states and messages are of the form { object, method name, arguments... } where objects are passed by ID.
20:00
<@ToxicFrog>
But the way the client and server actually look as data structures, and the way game initialization/player joining works, are fucking me.
20:00
< celticminstrel>
...why would you send pixels?
20:01
<@Derakon>
Presumably because you're reimplementing remote desktop.
20:01
<@Derakon>
The suggestion was not serious.
20:03
<@Derakon>
Anyway, lunchtime.
21:14 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has joined #code
21:17
< AnnoDomini>
In Perl, how do I specify that something matches a regexp only if it is placed at the beginning of the string?
21:18
< celticminstrel>
Presumably ^
21:18
< AnnoDomini>
For example, I have found that ($arg =~ /!die/) detects "!die" mid-message.
21:18
< AnnoDomini>
I will try that.
21:18
< celticminstrel>
$arg =~ /^!die/
21:19
< celticminstrel>
I think what I did with my IRC bot is split the message into words and just check the first word to see if it's a command.
21:19
< celticminstrel>
But that works too.
21:23 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has quit [Ping timeout: 121 seconds]
21:24 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has joined #code
21:35
<@ToxicFrog>
AnnoDomini: bear in mind that that will match, for example, !dieroll
21:35
<@Derakon>
/^!die\s/
21:36
<@TheWatcher>
Or /^!die\b/ or even /^!die$/ >.>
21:37
<@Derakon>
What's \b?
21:37
<@TheWatcher>
word boundary
21:37
<@Derakon>
!die$ wouldn't match anything that didn't end with EOL immediately after the command, of course.
21:37
<@Derakon>
Ahh.
21:40 * Derakon eyes the horrible list of hacks he's acquiring to try to get py2app to do its goddamn job.
21:41
<@Derakon>
Symlink an app template so that it doesn't get confused about what architecture it's using. Insert a line into one of its scripts so it can find compiled libraries. Copy a Framework directory over from /Library/Frameworks because the one it generates is missing fundamental libraries like os. Delete unneeded .pyc files. Uncompress site-packages.zip.
21:41
<@Derakon>
And it still doesn't actually work yet.
21:42
<@Derakon>
It would be wonderful, by the way, if I didn't have to copy it over to a different computer every time I wanted to test it. Since the program naturally runs just fine on my computer.
21:47
<@ToxicFrog>
Mount the directory over sshfs or the like on the other machine/in a VM?
21:51
<@Derakon>
I don't have a VM available. Will see what happens if I copy it to a network drive and try to run it that way.
21:51
<@Derakon>
Probably it'll continue to work, is my guess.
21:52
<@Derakon>
Also, the mailing list is largely useless. :\
21:53 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has quit [Ping timeout: 121 seconds]
21:54 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has joined #code
21:55
<@Derakon>
Also, py2app appears to be unsupported now? At least, their trac server is nonexistent.
21:59 SmithKurosaki [Smith@Nightstar-e73eb6b0.dsl.teksavvy.com] has joined #code
22:03
<@Derakon>
Blargh. Why does making a standalone Python program have to be so goddamned complicated?
22:03
<@Derakon>
Just include the interpreter and the libraries and you're done, right? So Why. Doesn't. This. Work.
22:21 * Derakon sends another email to the useless mailing list, sighs, washes his hands of this project for the day.
22:23 aoanla [AndChat@Nightstar-51ce4b18.range86-147.btcentralplus.com] has quit [[NS] Quit: ]
23:03 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
23:37 Orthia [orthianz@Nightstar-cea40bf3.xnet.co.nz] has quit [Ping timeout: 121 seconds]
23:41 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
23:50 Vornicus-Latens is now known as Vornicus
23:50
<@Derakon>
Ha-ha, it works, it works!
23:50 shade_of_cpux is now known as cpux
23:50
<@Derakon>
Fucking finally!
23:51 * TheWatcher provides Dera with a "Mwahahahahahahahahahaha!!!!"?
23:51
<@TheWatcher>
(also, 'grats!)
23:51
<@Derakon>
The problem ultimately being that py2app wasn't providing the correct app template for an i386 architecture, and the one I was providing instead was incorrect -- I needed main-fat instead of main-fat3.
23:51
<@Derakon>
I don't think this calls for evil laughter, really. More just a sigh of relief and some violent therapy.
23:52
<@TheWatcher>
Fair enough, it keeps well if you put it in an airtight container.
23:52
<@Derakon>
Roger.
23:52
<@Derakon>
Sealed evil in a can~?
23:52
<@TheWatcher>
>.>
23:56 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
23:59 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
--- Log closed Tue Sep 14 00:00:39 2010
code logs -> 2010 -> Mon, 13 Sep 2010< code.20100912.log - code.20100914.log >