code logs -> 2012 -> Wed, 04 Jan 2012< code.20120103.log - code.20120105.log >
--- Log opened Wed Jan 04 00:00:32 2012
00:08 maoranma [maoranma@Nightstar-a7a1dfa0.pools.spcsdns.net] has joined #code
00:42 maoranma [maoranma@Nightstar-a7a1dfa0.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
00:50 maoranma [maoranma@Nightstar-a7a1dfa0.pools.spcsdns.net] has joined #code
00:53 You're now known as TheWatcher[T-2]
01:04 You're now known as TheWatcher[zZzZ]
01:09 maoranma [maoranma@Nightstar-a7a1dfa0.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
01:14 maoranma [maoranma@Nightstar-a7a1dfa0.pools.spcsdns.net] has joined #code
01:41
< maoranma>
Okay, I have one for you
01:42
< maoranma>
Say I want to print from my laptop at school, but only the workstations have print access
01:43
< maoranma>
Is there a tool that'll allow me link my laptop to the workstation temporarily for printsharing, preferably as a portable app?
01:48 Derakon [Derakon@Nightstar-f68d7eb4.ca.comcast.net] has joined #code
01:48
< McMartin>
That would rock a variety of socks, but all the stuff I know of in that area involves sizable office level infrastructure
01:48
< McMartin>
ThinPrint, UniPrint, etc.
01:48
< McMartin>
It's probably easiest to print-to-PDF on the laptop and then print the PDF from the workstation.
01:49
< Tarinaky>
Every time someone emails themself a piece of work a kitten dies.
01:49
< McMartin>
Did I say to do that?
01:49
< maoranma>
McMartin: Then at that point I might as well just print the original document from the workstation instead
01:50
< maoranma>
Or use dropbox, which is what I have been doing
01:50
< Tarinaky>
No, but it usually ends up being the easiest intermediate step for "How do I get the pdf onto the workstation"
01:50
< McMartin>
maoranma: If the workstation has the apps to do it, I suppose so.
01:50
< maoranma>
It does
01:50
< Tarinaky>
Given most strong IT policies don't allow USB sticks.
01:50
< gnolam>
Tarinaky: pfft. SCP/SFTP.
01:50
< Derakon>
If it's the easiest step, then why shouldn't people use it?
01:50
< Tarinaky>
gnolam: Only if the client workstation has those tools
01:50
< maoranma>
Our workstations allow USB sticks
01:50
< McMartin>
Because it's powered by kitten mulching, apparently.
01:50
< Tarinaky>
And you have access to a -third- computer.
01:50
< maoranma>
We can run portable apps, but it is a school afterall
01:51
< Tarinaky>
Derakon: I think we can all agree it's a pretty terrible solution.
01:51
< Tarinaky>
Regardless of whether it's the least terrible solution.
01:51
< Derakon>
Again, why?
01:51
< gnolam>
Tarinaky: err, no?
01:51
< Derakon>
It gets the job done.
01:51
< maoranma>
I wonder if I could write a mIRC script to do it
01:51
< Tarinaky>
Okay, fine >.>
01:51
< Derakon>
It's straightforward and doable on most machines.
01:51
< maoranma>
Well, no, that wouldn't work because IRC ports aren't open at school
01:51
< Derakon>
It even makes a convenient backup for you, assuming you download your email from some central system or webserver.
01:52
< Derakon>
That's far from terrible.
01:52
< Derakon>
It's just suborning email to a task that it isn't usually intended for, but we do that to programs all the time.
01:52
< Derakon>
Generally, the terribleness of a solution is directly proportional to the number of hoops you have to hop through, and there aren't many here.
01:52
< maoranma>
Hey, I wonder if a portable VNC client would work
01:53
< Tarinaky>
Derakon: It is, however, slow.
01:53
< gnolam>
Tarinaky: networked home directories + proper remote access.
01:53
< Derakon>
Slowness I will grant.
01:54
< Derakon>
And there are often file size limitations and occasionally file type limitations too.
01:54
< Derakon>
Those are the main problems with it.
01:54 celmin|away is now known as celticminstrel
01:54
< maoranma>
Are there portable VNC servers?
01:55
< McMartin>
maoranma: Hm. I've only ever used Chicken Of The VNC and I'm not sure if it's two way or client-only.
01:55
< maoranma>
ew, mac?
01:56
< McMartin>
I've never needed to VNC from anything else.
01:56
< Derakon>
Ah, OS bigotry. It never gets old~
01:56 * McMartin develops tri-platform. Deal with it.
01:56
< maoranma>
No, I just need something that creates a quick print server that I can send documents to remotely
01:57
< McMartin>
That doesn't sound like a problem VNC solves.
01:57
< maoranma>
Something portable, that I can load on any workstation and have it autodetect a specific printer, then let me send files to print from anywhere
01:57
< maoranma>
McMartin: Some have print sharing in them
02:01 * gnolam develops on/for two platform, but tends to only curse one of them.
02:01
< Tarinaky>
maoranma: I have to be honest. What you're describing does sound a bit like Malware.
02:01
< Tarinaky>
At least from a security policy standpoint.
02:02
< Derakon>
The difference between malware and standard networking software tends to be in the use of exploits vs. passwords.
02:02
< Tarinaky>
Piece of portable software that when installed runs a server granting access to internal resources to external machines.
02:03
< Tarinaky>
Derakon: Except that the system in question isn't 'his' which muddies the waters a little.
02:03
< Tarinaky>
If it was his network he could make the printserver accessible by VPN.
02:03 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [[NS] Quit: Into the hole again, we hurried along our way, into a once-glorious garden now seeped in dark decay.]
02:06
< maoranma>
Tarinaky: I know
02:06
< Derakon>
Ah, I'm clearly missing context here.
02:07
< maoranma>
It's more for convience really
02:07
< Tarinaky>
Not that I've ever been one to let what the sysadmin wants get in the way of what I want.
02:07
< Tarinaky>
But it's worth, at least, considering other people before you annoy them.
02:08
< Tarinaky>
*before you decide to annoy them anyway
02:13
< maoranma>
Now to find a decent torrent of english dubbed Stand Alone Complex
02:13
< Tarinaky>
Torrents/sex/drugs are bad mmkay, but make sure you use protection.
02:14
< Tarinaky>
Sorry, that was funnier in my head >.<
02:14
< maoranma>
Don't lie, it wasn't funny there either
02:14
< Tarinaky>
Don't be mean.
02:14
< maoranma>
lol
02:15
< Eri>
Eeeeeeeeh, english dubs?
02:15
< maoranma>
Whoops
02:15
< maoranma>
I meant english subs
02:15
< Eri>
Did they at least get decent VA's?
02:15
< Tarinaky>
The Tatchikomas are annoying in any language.
02:15
< Eri>
Oh
02:15
< Eri>
Heh
02:15
< maoranma>
Obviously I haven't had enough sleep
02:17
< Tarinaky>
Someone lent me the second series of that. I disgusted them by pointing out that the Major on the box was glossy for an 'easy wipe down'.
02:17
< Tarinaky>
As you can imagine, I struggle to maintain irl friendships.
02:17
< maoranma>
You don't say.
02:18
< Tarinaky>
It was funny though.
02:18
< maoranma>
My issue with english dubs is that the ONLY thing I've watched that wasn't completely horrible in english was Cowboy Bebop
02:19
< Tarinaky>
I find anime difficult to take seriously anyway.
02:19
< maoranma>
Depends on the anime
02:19
< maoranma>
I used to like all of it...now, I like the more serious tone stuff
02:19
< Tarinaky>
The female main character is always, without exception, capable of being referred to by the alias 'Tits McGee'.
02:19
< maoranma>
Like Monster, see that?
02:20
< Tarinaky>
There are more boobs than a 14 year old's WH40k Slanesh army.
02:20
< maoranma>
Oh god
02:20
< maoranma>
I get that reference
02:21
< Tarinaky>
Hands up if, as a growing lad, you looked at the rotating cabinets just to catch a glimpse of well painted busom.
02:21
< Tarinaky>
Just me?
02:21
< Tarinaky>
>.> <.< >.>
02:21
< maoranma>
Yes
02:21
< maoranma>
I grew up with the internet
02:22
< Tarinaky>
Right, I'm going to stop embaressing myself now.
02:23
< maoranma>
I'm not even sure what you meant by rotating cabinets, how old are you?
02:23
< Tarinaky>
22.
02:23
< maoranma>
You're younger than me? wtf
02:23
< Tarinaky>
>.>
02:23
< Tarinaky>
I'm old before my time I guess.
02:24
< McMartin>
I'm in my 30s and I'm not sure what a "rotating cabinet" is.
02:24
< gnolam>
Tarinaky: <Alek> and aren't you the gay one? >_><
02:24
< maoranma>
I'm 26 I think. I stopped counting
02:26
< Tarinaky>
gnolam: 'It's complicated'. I was a very repressed teenager wrt sexuality and have I guess just enough bisexuality to squeek by.
02:27
< Tarinaky>
Unless you're referring to something else >.>
02:35 Kindamoody[zZz] is now known as Kindamoody
02:39 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
02:51 iospace is now known as io|blargh
02:58
< Alek>
and a rotating cabinet: oh Goddess. the memories. >_>
02:58
< Alek>
disclaimer: possibly different rotating cabinets than you meant. but still.
02:59
< Alek>
postscript: never even saw a minifig in person, other than D&D figs and army men. XD
03:13 Kindamoody is now known as Kindamoody|gaming
03:17 Attilla [Obsolete@Nightstar-b639c71f.as43234.net] has quit [Ping timeout: 121 seconds]
03:53 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
04:43 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
04:46 Kindamoody|gaming is now known as Kindamoody
04:50 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
04:56 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
04:57 Syloqs_AFH is now known as Syloqs-AFH
05:01 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:08 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
05:09 Syloqs_AFH is now known as Syloqs-AFH
05:09 io|blargh is now known as iosleep
05:32 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client closed the connection]
05:35 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Operation timed out]
06:05 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has quit [Client closed the connection]
06:06 Vornotron [vorn@ServerAdministrator.Nightstar.Net] has joined #code
06:07 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
06:20 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has joined #code
06:23 Vornotron is now known as Vornicus
06:23 mode/#code [+qo Vornicus Vornicus] by ChanServ
06:38 Derakon is now known as Derakon[AFK]
07:17 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
07:32 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has joined #code
07:34 eckse [eckse@Nightstar-02874d0c.dsl.sentex.ca] has quit [Client closed the connection]
07:56 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has quit [[NS] Quit: I<3craft Vorn!]
09:16 You're now known as TheWatcher
10:03 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
10:04 Attilla [Obsolete@Nightstar-b639c71f.as43234.net] has joined #code
10:20 Kindamoody is now known as Kindamoody|out
10:59 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
11:11 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
11:13 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has quit [[NS] Quit: leaving]
12:40 maoranma [maoranma@Nightstar-a7a1dfa0.pools.spcsdns.net] has quit [[NS] Quit: ]
13:51 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
13:55 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
14:08 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
14:32 iosleep is now known as iospace
15:05 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
15:33 AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has joined #code
16:15 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has joined #code
16:33
< jerith>
W00t! My depixeling code is complete as far as generating the deformed pixel grid.
16:33
< jerith>
Vornicus: Ping.
16:38<~Vornicus> pong!
16:38<~Vornicus> Nicely done.
16:42
< jerith>
http://i.minus.com/iN4d29pUYTGt5.png and http://i.minus.com/iFhpqAthCoZNg.png
16:42<~Vornicus> \o/
16:43
< jerith>
Now I'm going to tidy it up a bit and then put it on github.
16:43<~Vornicus> The two things just below the ends of the curve look odd to me though
16:44
< jerith>
Which curve?
16:45
< jerith>
I drew the ear to compare to the image in the paper.
16:45
< jerith>
And it's a match.
16:46
< jerith>
Initially, I deformed all diagonals. That left me with a wide border of misshapen pixels around the edges.
16:46<~Vornicus> right, that wide border seemed more right to me.
16:46
< jerith>
Then I rewrote the deformation step to exclude the sides of the diagonals where the pixels were the same colour.
16:47
< jerith>
They're equivalent, but this does a less extensive reshape.
16:49
< jerith>
(Well, they're equivalent as long as you only care about the edges of colour features. If you care about the shape of internal pixels, they aren't.)
16:50<~Vornicus> I almost care about shape of internal pixels.
16:50
< jerith>
Howso?
16:50<~Vornicus> Well, no, what I care more about is what the shapes of the internal pixels would change if the edge changed, which I have to do via regeneration instead.
16:51 * jerith can't parse that.
16:51<~Vornicus> in drod, you can break down walls.
16:51<~Vornicus> some walls, anyway
16:52
< jerith>
Ah.
16:53
< jerith>
You'd have to reshape after a wall was broken.
16:53
< jerith>
Or treat breakable walls as different colours. Or something.
16:53<~Vornicus> so what I need to do, in a certain sense, is make sure that not only is the wall getting reshaped after it's broken, but that it's got the cracks in pretty much the entire area that would change
16:55<~Vornicus> Otherwise - and this is a relatively common thing - if I had a breakable wall diagonally down from the end of the curve in your image, it wouldn't look like it's close enough to the wall to break.
16:56<~Vornicus> THis is actually one of the reasons I wanted to do this: the current rendering of the game doesn'
16:56<~Vornicus> t make that easy to tell.
16:57
< jerith>
In the reshape-all-diagonals version, those pixels are even further away.
16:58<~Vornicus> True, but I want them right at the wall.
16:58
< jerith>
Twice as far, actually.
16:58
< jerith>
You'd actually want some kind of special handling for breakable walls. Or something.
16:59<~Vornicus> I'm already going to have two passes over the data
17:00<~Vornicus> Because I need floors to interact correctly with pits, but wall floor / pit wall suggests that the two walls should be connected, when it's actually the floor and pit that's correct
17:00
< jerith>
Is it supposed to be easy to tell breakable walls from normal ones?
17:01
< jerith>
If so, you can probably handle it all in the similarity function.
17:01
< jerith>
(In my code, that's just an equality check.)
17:01<~Vornicus> There's two types, "breakable" and "secret" - the first is supposed to be "easy" but still fit with the way walls look; the second is very difficult.
17:03
< jerith>
Maybe you need to treat all walls as adjacent to all floors for diagonal reduction.
17:03
< jerith>
No, that won't work.
17:04
< jerith>
You'd need to have special not-really-connected diagonals.
17:17<~Vornicus> Right. So I'm doing that math in multiple passes so I can get the connections I want in each, um, layer
17:18
< jerith>
Ah.
17:19<~Vornicus> Or will be, once I finish some other tasks.
17:32 Kindamoody|out is now known as Kindamoody
17:56 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:02 AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has quit [Ping timeout: 121 seconds]
18:05 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has joined #code
18:15 Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has joined #code
18:23 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [Client exited]
18:35 eckse [eckse@Nightstar-02874d0c.dsl.sentex.ca] has joined #code
18:40 eckse [eckse@Nightstar-02874d0c.dsl.sentex.ca] has quit [Connection reset by peer]
18:42 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
18:44 eckse [eckse@Nightstar-02874d0c.dsl.sentex.ca] has joined #code
18:50 maoranma [maoranma@Nightstar-539fe0ca.pools.spcsdns.net] has joined #code
19:10 AnnoDomini [annodomini@Nightstar-7772b630.84-49-12.nextgentel.com] has quit [[NS] Quit: To conquering!]
19:12 Kindamoody is now known as Kindamoody[zZz]
19:18
< gnolam>
So. Gmail's new look has finally been rolled out.
19:19
< gnolam>
Why do "web 2.0" designers hate contrast so much?
19:19
< Tarinaky>
Because it's not hip.
19:19
< Tarinaky>
Too mainstream.
19:19
< Tarinaky>
Etc...
19:20
< Tarinaky>
Being able to see what you're doing is so uncool.
19:20 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
19:20
< Tarinaky>
Does anyone know if there's an easy way to 'tighten' the hinge on my laptop?
19:20
< Tarinaky>
It seems to have given way in a big way.
19:20
< Tarinaky>
And it's kindof annoying.
19:34
< jerith>
Tarinaky: That's very model-dependent, I think.
19:34
< Tarinaky>
It's a D410.
19:34
< Tarinaky>
I was hoping there was a 'trick' or other advice to direct me on the matter.
19:34
< jerith>
Try search YouTube.
19:35
< jerith>
And I never thought I'd ever say that in a non-ironic way.
19:35
< jerith>
But people often post howto videos for this kind of thing.
19:35
< jerith>
(Especially disassembling netbooks and such.)
19:35
< Tarinaky>
I wonder what the ironic use of that sentence was.
19:37
< Tarinaky>
There's no screws on the screen part, which confuses me a bit.
19:39
< jerith>
"You should read YouTube comments, they're full of wisdom." That kind of thing.
19:41
< Tarinaky>
Wait, youtube comments are full of wisdom?
19:41
< Tarinaky>
What?
19:41
< Tarinaky>
Oh wait, irony.
19:41 * Tarinaky facepalms.
19:42
< iospace>
i made an irony meter once
19:42
< Tarinaky>
Thanks for the help anyway. I think I might have to poke someone irl after my exams are over.
19:42
< iospace>
it was broken, detected everything but irony
19:42
< Tarinaky>
iospace: How ironic.
19:43
< Tarinaky>
Personally, the best I can manage is an iPad app for detecting sarcasm.
19:52
< Tarinaky>
From the inbox: "Why is my source code full of :w s?"
20:04
< iospace>
...
20:04
< iospace>
xD
20:04
< Tamber>
Hehe.
20:05
< Tarinaky>
Thank you very much. Try the salad.
20:07
< jerith>
"vi has two modes: one which breaks your text and one which beeps at you."
20:08
< Tamber>
Hehe
20:10 * jerith has unit tests for half his depixeling code now.
20:10
< jerith>
The other half is going to be a pain to test. :-/
20:11
< jerith>
I think I'll have to just run it, check that the output looks good, and capture the data structures to assert on.
20:20
< Tarinaky>
So. I'm contemplating how to rewrite my MUD to avoid thinking about exams and revision...
20:21
< Tarinaky>
Does anyone know anything about python FIFOs?
20:21
< celticminstrel>
What's that about web2.0 and contrast?
20:23
< jerith>
Tarinaky: FIFOs?
20:24
< jerith>
There are some queue data structures in various places, but it's generally easiest to just use a list.
20:24
< Tarinaky>
I was thinking it'd be a good idea to decouple the netcode from the actual... prompt part of it.
20:24
< Tarinaky>
And I think python has a type for constructing io streams.
20:25 * iospace eyes Tarinaky
20:26 * Tarinaky feels like he should be ashamed of himself.
20:29
< jerith>
What do you mean by "I/O stream"?
20:30
< jerith>
If you want to do serious networking stuff in Pyhon, look at Twisted.
20:30
< Tarinaky>
cin cout cerr and clog
20:30
< Tarinaky>
And yeah, I was using Twisted.
20:30
< jerith>
It takes serious brainbendy to get your head around it, but once you do that it's fine.
20:31
< jerith>
Ah.
20:31
< jerith>
Then you probably want a protocol that handles I/O and calls the game code where appropriate.
20:32
< jerith>
It should be noted that Twisted was originally written to be the network layer for a MUD.
20:32
< Tarinaky>
I'm not sure I understood what you just said.
20:32
< Tarinaky>
I didn't know that.
20:33
< jerith>
A Protocol is the low-level thing in Twisted that talks to a network connection.
20:34
< jerith>
You probably want to subclass a LineReceiver or something.
20:34
< jerith>
Then you implement .lineReceived(), which gets called every time a new line arrives.
20:35
< jerith>
That does the parsing (if any) and calls your game engine.
20:35
< Tarinaky>
Oh, yes. But the problem is that the protocol might need to send out lines to the client faster that it receives them (if the player does nothing)
20:35
< jerith>
You can call .sendLine() on the protocol instance to send stuff back.
20:35
< jerith>
Which you can do at arbitrary times.
20:36
< Tarinaky>
And coupling is bad.
20:36
< jerith>
Coupling is necessary.
20:36
< jerith>
Excessive coupling is bad.
20:37
< jerith>
You'll probably have a user object that handles various user state and whatnot.
20:38
< jerith>
You give that a reference to the protocol instance.
20:39
< jerith>
"network <-> protocol <-> user object <-> game engine" or something.
20:39
< jerith>
Although I consider the user object to be part of the game engine.
20:39
< jerith>
Does that make sense?
20:40
< jerith>
It's hard to design a good architecture without the details.
20:40
< Tarinaky>
Yes.
20:40
< Tarinaky>
Yes, I know. I don't have many details myself tbh, I've not done anything really like this before.
20:40
< jerith>
But you probably don't want your user object to actually be the protocol instance.
20:40
< celticminstrel>
Oh, no-one answered.
20:41
< Tarinaky>
Is there anything I can use as a framework or starting point for accepting commands in a MUD?
20:48
< jerith>
twisted.protocols.base.LineReceiver
20:50
< jerith>
You probably want to build a Service that holds your game engine and gets new protocol instances passed to it to handle new connections. Or something.
20:53
< Tarinaky>
I meant more in terms of doing stuff with the lines.
20:53
< Tarinaky>
As a starting point for the tokenizer.
20:58
< jerith>
"".split()?
20:59
< jerith>
You probably want a state machine for handling inpu in different contexts.
21:02
< Tarinaky>
As far as I am aware, I got all the Twisted code I needed working basically just by copying one of the examples
21:02
< Tarinaky>
Sorry for the delay, the router is dying.
21:15 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
21:23
< iospace>
god damn lazy hardware people
21:26
< iospace>
look, i know you don't want to fess up to making a mistake with your pull ups (or lack thereof), but don't make us fix your things on the software sid eD<
21:26
< iospace>
*side
21:27 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
21:34 macdjord [macdjord@Nightstar-69519a2d.uwaterloo.ca] has joined #code
21:35
< gnolam>
Whut
21:35
< gnolam>
Fix missing pull-up resistors... in software?
21:36
< macdjord>
Anyone here who does batch scripting?
21:36
< iospace>
register defaults to 0 without the resistor, but you can write to it from the software side of things
21:43 Stalker is now known as DrStalker
21:44
< jerith>
iospace: I've fixed hardware bugs in software.
21:45
< jerith>
I've also fixed software bugs in hardware.
21:45
< jerith>
Well, "fixed".
21:45
< iospace>
jerith: this is a 5 second placement of a resistor vs a 5 day code dive
21:48
< jerith>
iospace: I'm bragging about my geek cred here, not suggesting that you're wrong. :-)
21:49 * iospace has worked with EFI and VxWorks
21:49
< iospace>
:P
22:04 * macdjord pokes about for batch scripters
22:08
< celticminstrel>
I don't really do batch scripts, but I know a little... that said, you're probably better off Googling unless someone else here knows a lot about them.
22:27
< Alek>
a little. DOS batch, basically. XD
22:31
< macdjord>
Alek: I need a simple script that creates a folder named YYYY-MM-DD_##, based on the current date and where ## is the first integer such that the folder name doesn't exist yet, then copies two files into the new folder.
22:31
< macdjord>
Also I'd like to schedule it to run automatically every 00:00.
22:32
< McMartin>
Windows does not have a good equivalent to cron.
22:33
< jerith>
But you can install cygwin and get cron! *flees*
22:33
< McMartin>
Can you? I didn't think cygwin did daemons right~
22:33
< macdjord>
jerith: Already installed, but not usally running.
22:33
< jerith>
(That was a deliberate poke at all the people who hate it when cygwin is suggested as a solution for anything.)
22:35
< Alek>
Windows does have Task Scheduler.
22:35
< Alek>
but I cannot swear to its reliability.
22:35
< McMartin>
Oh hey
22:35 * McMartin was unaware of this~
22:36
< TheWatcher>
Task Scheduler is at least as reliable as cron, AFAIK. I don't think it gives you anacron's features, but *shrug*
22:36
< McMartin>
If all you want is "run this program every day at butt-thirty" it should be fine.
22:36
< TheWatcher>
yup
22:36
< Alek>
as for the script code, well. I haven't actually batch-coded in uh. near 13 years now. but gimme the code and I can proof it. XD
22:37
< McMartin>
That sounds like it would somewhat difficult with batch code, because it does math, which it isn't as good at
22:37
< McMartin>
You should see if you already have Python installed - a lot of prefab windows machines do
22:37
< macdjord>
Alek: I don't have any code. I don't know batch at all. I could do it easily in batch, perl, or python.
22:37
< Alek>
they do? >_>
22:37
< McMartin>
Alek: Yeah, HP/Compaq have it as part of their shovelware
22:37 * Alek should see if he has it on his, albeit it's not prefab. <_<
22:38 * Alek should learn perl and python. amongst others. >_>
22:38
< McMartin>
Python is the finest of cross-platform scripting languages because it actually has generic OS facilities that work tri-platform.
22:40 * TheWatcher is hoping that, via deviousness, he might be able to get the school to switch from php to python for the first year project next year. Just hopes he doesn't end up having to write the course material as a result >.>
22:46
< macdjord>
McMartin: I have a python interperator installed, it seems, but a quick test show it not working when I just try to run a .py file. I'd rather use the native scripting option.
22:46
< jerith>
macdjord: "python foo.py"
22:47
< jerith>
I don't think Windows has a good mechanism for adding executable types.
22:47
< McMartin>
Not from the command line
22:47
< McMartin>
If you associate .py files with pythonw.exe you're actually in pretty good shape.
22:47
< macdjord>
jerith: I tried right-click->open with...->python.exe
22:47
< McMartin>
(You'd want to run a script that does housekeeping work with pythonw.exe)
22:47
< jerith>
But you could write "foo.bat" which just calls "python foo.py" or something.
22:48
< McMartin>
^--
22:48
< McMartin>
Batch files are bad at math
22:48
< McMartin>
The modern scripting approach involves using JavaScript, I think.
22:48
< McMartin>
But I don't remember how to get the relevant file-access objects offhand.
22:49
< macdjord>
McMartin: The only math here is '+1'. How bad are they?
22:49
< McMartin>
I'm honestly not sure if .bat even has numeric types.
22:50
< jerith>
"1 + 1 = 11"?
22:50
< McMartin>
If not "1+1".
22:50
< TheWatcher>
set /a foo=%foo%+1
22:50
< McMartin>
Aha
22:50
< McMartin>
/a is the trick then
23:03
< celticminstrel>
What's the difference betwee {java,python}.exe and {java,python}w.exe?
23:03
< celticminstrel>
^between
23:03
< jerith>
celticminstrel: The "w" version does GUI initialisation stuff.
23:04
< celticminstrel>
So the non-w version is command-line only.
23:04
< jerith>
In Mac land, that means it lives inside an app bundle and has the right hooks to get at the windowing stuff.
23:04
< celticminstrel>
...is this distinction on non-Windows too?
23:04
< jerith>
I've only seen a handful of things that actually require the "w" version on my system.
23:05
< celticminstrel>
....waitwaitwait. I failed running Minecraft with Java7... should I have done 'javaw -jar /path/to/launcher/jar' instead of 'java -jar /path/to/launcher/jar'?
23:05 macdjord is now known as macdjord|nap
23:05
< jerith>
I have no idea about Java.
23:05
< celticminstrel>
The specific problem seemed to be that it couldn't connect to minecraft.net, but that problem didn't occur when I did the exact same thing on java6.
23:06
< jerith>
I've only ever seen it with Python.
23:06
< celticminstrel>
Still... worth a try I guess?
23:06
< McMartin>
The non-w version is less "command line only" and more "it pops up a console window to run it in"
23:07
< jerith>
http://docs.python.org/using/windows.html#executing-scripts
23:07 * McMartin writes down All The Rationals.
23:08
< jerith>
You must have a very big piece of paper.
23:08
< McMartin>
Nah, it's just a few lines:
23:08
< McMartin>
allrats = (0, 1):(q 1 1)
23:08
< McMartin>
where q 1 d = (1,d):(-1,d):(q (d+1) 1)
23:08
< McMartin>
q n d = let rest = q (n-1) (d+1)
23:08
< McMartin>
in if gcd n d == 1
23:08
< McMartin>
then (n,d):(-n,d):rest
23:08
< McMartin>
else rest
23:10
< jerith>
"As of Python 2.5, python and pythonw are interchange- able; both execute Python in the context of an application bundle, which means they have access to the Graphical User Interface; thus both can, when properly programmed, display windows, dialo
23:10
< jerith>
gs, etc."
23:10 * McMartin nods
23:11
< McMartin>
But python alone I think still spawns a console
23:11
< jerith>
But there are still some things that refuse to run in python rather than pythonw.
23:11
< McMartin>
Hm.
23:11
< jerith>
McMartin: That's from the macos man page.
23:11
< McMartin>
Oh
23:12
< jerith>
I suspect those things actually check the name and die.
23:12
< McMartin>
I find it odd that MacOS even has a pythonw
23:12
< celticminstrel>
...wait, isn't that the exact opposite of what jerith said?
23:12
< celticminstrel>
Oh wait, never mind.
23:12 * celticminstrel nearly missed the "non-" part.
23:13
< celticminstrel>
I didn't actually know MacOS had a pythonw.
23:13
< jerith>
celticminstrel: The "w" version exists for a different reason in MacOS.
23:13
< jerith>
Well, existed.
23:13
< celticminstrel>
But that's for Python and not necessarily for java?
23:13
< jerith>
In Windows, it suppresses consoles. In MacOS, it adds GUI.
23:14
< celticminstrel>
...okay?
23:14
< jerith>
I have no idea what it's for in Java, but it wouldn't surprise if it was a similar thing on Windows.
23:15
< jerith>
I don't have javaw. I have javaws, which is different.
23:15
< celticminstrel>
I don't seem to have javaw either.
23:16
< celticminstrel>
I'm sure I remember seeing it somewhere though.
23:17<~Vornicus> Youtube was extraordinarily helpful when I needed to disassemble my parents' old imac.
23:28
< celticminstrel>
Oh, that reminds me, I was going to poke around to see if it's still possible to install XP on this computer.
23:47 You're now known as TheWatcher[T-2]
23:48 macdjord|nap [macdjord@Nightstar-69519a2d.uwaterloo.ca] has quit [[NS] Quit: Class. Again.]
23:49 You're now known as TheWatcher[zZzZ]
--- Log closed Thu Jan 05 00:00:49 2012
code logs -> 2012 -> Wed, 04 Jan 2012< code.20120103.log - code.20120105.log >

[ Latest log file ]