code logs -> 2012 -> Mon, 05 Nov 2012< code.20121104.log - code.20121106.log >
--- Log opened Mon Nov 05 00:00:47 2012
02:04 Attilla [Obsolete@Nightstar-1b266021.as43234.net] has joined #code
02:06 Attilla_ [Obsolete@Nightstar-a983cd98.as43234.net] has quit [Ping timeout: 121 seconds]
02:12 Thalass [Thalass@Nightstar-20568af1.bigpond.net.au] has joined #code
02:12
< Thalass>
augh
02:13
< Thalass>
My computer refuses to boot into the gui. When it gets to the login screen the display flickers and the tty login shows. :(
02:15
<&Derakon>
Maybe you're just getting switched away from the X vterm somehow?
02:15
<&Derakon>
I think it's something like ctrl-alt-shift-arrow to switch terminals; one of 'em ought to be the one running X.
02:15
< Thalass>
Yesterday everything was fine. Last night there was a storm while i was at work. Now this
02:16
< Thalass>
nope. pure cli. damnit
02:16 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
02:17
<&Derakon>
Well, log in then do startx, I guess.
02:17
<&ToxicFrog>
ctrl-alt-F# switches TTYs. F1, F7 or F8 are usually X.
02:18
<&ToxicFrog>
Log files are in /var/log; your X server log is probably Xorg.0.log. That will probably tell you what went wrong.
02:18
<&ToxicFrog>
Or you can log in in text mode and run 'startx' and see what it says.
02:19
< Thalass>
...
02:19
< rms>
grep EE /var/log/Xorg.0.log # this might produce more useful results.
02:20
< Thalass>
nvidia: api mismatch. Kernel module is v304.48. Driver is v304.43
02:21
< Thalass>
fatal server error. no screens found.
02:22
< Thalass>
There were updates yesterday. I guess nvidia drivers were in there.
02:23
<&ToxicFrog>
Looks like the other way around. Kernel got updated. Driver didn't.
02:24
<&ToxicFrog>
You're using the nV binary driver, aren't you? You may need to reinstall it.
02:25
< Thalass>
Ah. Yes the nvidia drivers. So i would need to apt-get reinstall whatever they are named.
02:25
<&ToxicFrog>
I think so, yeah. I've never used them.
02:26
< Thalass>
Is there a way to ask apt for a list of installed packages?
02:27
< rms>
IIRC that's one of the things you have to ask dpkg.
02:27
< Thalass>
ok
02:27
<&ToxicFrog>
You can search in general with 'apt-cache search whatever' but I don't know how to restrict that to installed packages
02:28
<&ToxicFrog>
'aptitude' will give you a curses-based UI to the whole apt/dpkg system, that might have something
02:28
<&ToxicFrog>
'apt-cache search nvidia' says you might want 'nvidia-experimental-304'
02:29
< Thalass>
ah thanks.
02:34
< Thalass>
Well today has started off as an educational one!
02:34
< Thalass>
thanks guys
02:35
< Thalass>
Woo i has a mouse!
02:36 Thalass [Thalass@Nightstar-20568af1.bigpond.net.au] has quit [[NS] Quit: whee]
02:37 thalass [thalass@Nightstar-20568af1.bigpond.net.au] has joined #code
02:37
< thalass>
Alrighty
02:37
<&ToxicFrog>
Success?
02:40
< thalass>
yes!
02:41
< thalass>
removed nvidia-experimental304, and then installed it again. Version numbers match!
02:44
< thalass>
I think i'll celebrate by shooting some aliens
02:44 thalass is now known as Thalass|x3
02:46
< Syk>
that is how everything should be celebrated
03:15 Vash [Vash@Nightstar-b43e074a.wlfrct.sbcglobal.net] has joined #code
03:15 mode/#code [+o Vash] by ChanServ
03:48 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
03:48 mode/#code [+o himi] by ChanServ
03:55 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Client closed the connection]
03:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
04:09 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
04:09 mode/#code [+o himi] by ChanServ
05:08 Pandemic [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
05:08 VirusHome [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
06:00 Syloq_Home [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Client closed the connection]
06:01 Derakon is now known as Derakon[AFK]
06:17 ErikMesoy|sleep is now known as ErikMesoy
06:50 Vornicus [vorn@1526F6.01718E.A8DB80.6B3FC7] has quit [Ping timeout: 121 seconds]
06:57 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:58 Vash [Vash@Nightstar-b43e074a.wlfrct.sbcglobal.net] has quit [Ping timeout: 121 seconds]
07:04 Kindamoody|afk is now known as Kindamoody
07:23 shawn-p [Shawn@Nightstar-4db8c1df.mo.charter.com] has joined #code
07:31 Vornicus [vorn@1526F6.01718E.A8DB80.6B3FC7] has joined #code
07:31 mode/#code [+qo Vornicus Vornicus] by ChanServ
08:41 Kindamoody is now known as Kindamoody|out
09:03 Thalass|x3 is now known as Thalass
09:14 Thalass [thalass@Nightstar-20568af1.bigpond.net.au] has quit [[NS] Quit: Leaving]
09:31 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has quit [Connection reset by peer]
09:31 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has joined #code
09:32 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has quit [Connection reset by peer]
09:32 gnolam [lenin@Nightstar-ccbf4b44.cust.bredbandsbolaget.se] has joined #code
11:37 * TheWatcher eyes $co-worker
11:41 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
11:42
<@TheWatcher>
I wonder if his complete silence is down to haveing finally done what I told him to do, and logged wget's output to see why he might be getting partial data from my script...
11:42
<@TheWatcher>
*having
11:44
<@Tamber>
Presumably because he's not using it correctly?
11:48
<@TheWatcher>
Dunno, probably. My script builds its response in a buffer, and does print $cgi -> header(); ... print $buffer; print LOGFILE $buffer; and the contents of the logfiles generated are all 100% present and correct. Apache is reporting the same bytes sent for each request for the same data. Yet he was telling me that wget was saving files with no contents, or even more bizarrely the last 70% of the content (the first 30% being missing).
11:48
<@Tamber>
o.O
11:48
<@TheWatcher>
I suspect that wget has been failing either part or most of the way through, and then overwriting the partial data it has already transferred
11:49
<@TheWatcher>
but I couldn't say for certain because he wasn't logging his wget messages >.<
11:49
<@Tamber>
"Error messages /mean/ something?"
11:50
<@TheWatcher>
(Much as I detest Centos, I seriously doubt they'd include an apache binary so horribly broken that it loses chunks of response, but logs it as sending correctly)
11:53
<@TheWatcher>
Depressing thing is, this guy teaches UG software engineering and programming classes.
13:15 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has joined #code
13:19
< Syk>
guys question
13:19
< Syk>
if there's a book on Python3
13:19
< Syk>
is it useful at all for python 2.7
13:19
<@froztbyte>
nope
13:20
<@froztbyte>
because they completely changed a bunch of stuff for py3
13:20
< Syk>
:(
13:20
<@froztbyte>
but py3 doesn't exist anyway
13:20
<@froztbyte>
so no worries!
13:20
< Syk>
LOL
13:20
< Syk>
well it seems like all of O'Reilly's stuff is py3
13:20
<@froztbyte>
Syk: you're starting to get an idea of why the whole py3 thing is bad ;)
13:20
< Tarinaky>
I don't think you really need a book for Python anyway.
13:20
<@froztbyte>
because they fucked the /whole/ ecosystem up
13:21
< Syk>
so Python 3 is Actually Bad
13:21
< Syk>
or is it .NET-style "meh we'll get there eventually"
13:22
<@froztbyte>
nope
13:22
<@froztbyte>
they literally changed whole parts of the language and didn't fix other actual problems
13:22
<@froztbyte>
some problems they just swapped out
13:22
<&jerith>
So, Python 3 is probably a slightly better language than Python 2.
13:23
<@froztbyte>
as for learning: http://www.swaroopch.com/notes/python/
13:23
<@froztbyte>
err, rather, http://www.swaroopch.com/notes/Python_en-Preface/
13:23
<&jerith>
The problem is that it's not better enough to be worth the pain of rewriting all your code for it.
13:24
<@froztbyte>
jerith: the unicode / bytestring thing is probably an interesting example of it?
13:24
< Syk>
well, I'm starting from scratchs
13:24
<&jerith>
froztbyte: The text/bytes thing is probably the best change in Python 3.
13:25
< Syk>
so I have no porting really required
13:25
<@froztbyte>
yes, that's what I mean
13:25
<@froztbyte>
Syk: you do, actually
13:25
<&jerith>
Syk: You still need Python 2 to do most useful stuff.
13:25
<@froztbyte>
Syk: especially if you're going to be looking at other software out there
13:25
<@froztbyte>
most of it is still 2.5+
13:25
<@froztbyte>
sometimes 2.4
13:25
<&jerith>
Django, Twisted, etc. don't have py3 versions yet.
13:25
<&jerith>
And really, py3 is a very similar language.
13:26
<@froztbyte>
so really, it's best just to learn python2, then learn the changes from there
13:26
<@froztbyte>
if you find yourself liking py3 for some reason, you can join the effort to make more things work with it
13:26
< Syk>
hum
13:26
<@froztbyte>
(but personally I hope that fewer and fewer people do)
13:27
<@froztbyte>
anyway yeah
13:27
<@froztbyte>
that swaroop thing
13:27
<@froztbyte>
there's also the Zed Shaw thing
13:27
<@froztbyte>
http://learnpythonthehardway.org/
13:28 VirusHome is now known as Pandemic
13:29
< Syk>
yeah i was looking at that
13:30
< Syk>
it looks like twisted will never be python3
13:30
< Syk>
hm
13:31
<@froztbyte>
canonical is paying for some people to port it
13:31
<@froztbyte>
but it's very very slow going
13:31
<@froztbyte>
and there's tons of py2 code
13:31
<@froztbyte>
Syk: seriously though, don't evaluate this on "py3 is newer so I should learn it"
13:31
< Syk>
oh they have a porting plan
13:31
< Syk>
so theoretically
13:31
<@froztbyte>
disregard py3 entirely for now
13:31
< Syk>
if python3 ends up being great and supports things
13:32
< Syk>
in like two years
13:32
<&jerith>
Syk: Canonical is paying exarkun (and possibly itamar as well) to port it.
13:32
<&jerith>
So it's happening, albeit with much grumbling.
13:32
<@froztbyte>
*much* grumbling
13:32
< Syk>
is there actual difference for regular stuff?
13:32
<@froztbyte>
yup
13:33
<@froztbyte>
modules missing, entire ways you write things are different
13:33
< Syk>
.NET 3 -> .NET 4 difference, or VB6 -> .NET 2003 style
13:33
<&jerith>
Syk: They juggled the standard library around and changed a few bits of syntax.
13:33
<@froztbyte>
I had a nice comparison page around somewhere once
13:33
< Syk>
...so VB6 to 2003 then
13:33
< Syk>
...looks like I'm never porting anything :D
13:34
<&ToxicFrog>
Not quite that dramatic, I think
13:34
<&jerith>
There's a tool to automatically translate from py2 to py3, but you need to do a bunch of work in your py2 codebase to make the tool useful.
13:35
< Syk>
well, 2.7 is stable, isn't it?
13:35
< Syk>
if I built a house of cards on top it won't self destruct come 2014?
13:35
<@froztbyte>
python 2.7 is all anyone who matters cares about
13:35
<@froztbyte>
and I suspect that it'll live forth in pypy
13:35
<&jerith>
Syk: It's stable in the sense that it's only ever going to get bugfixes and probably not many of those.
13:35
<@froztbyte>
with whatever issues it has fixed there
13:36
<&jerith>
There's almost certainly never going to be a 2.8.
13:36
<@froztbyte>
http://ptgmedia.pearsoncmg.com/imprint_downloads/informit/promotions/python/pyth on2python3.pdf
13:36
<@froztbyte>
that's the cheatsheet with major differences
13:38
<@froztbyte>
syntactical, at least
13:38
< Syk>
oh hey
13:38 * Syk cuddles her pdf.js in FF19
13:41
< Syk>
hmm
13:41
< Syk>
some of the py3 changeslook at least slightlylogical
13:42
< Syk>
like print()
13:45
<&ToxicFrog>
pdf.js?
13:46
< Syk>
ToxicFrog: it's a PDF viewer written in JavaScript
13:46
< Syk>
by Mozilla
13:46
<&ToxicFrog>
and yeah, py3 is not actually a step backwards from py2 language-wise, it's just ecologically problematic
13:46
< Syk>
instead of requiring a plugin, it's built in
13:46
< Syk>
it's also rather good, I think
13:46
<&ToxicFrog>
And Python doesn't really have the same culture that lets, say, Lua get away with breaking backwards compatibility on every release
13:47
< Syk>
it is slightly laggy with complex documents, but, it's quick to load so i like it
13:49
< Syk>
oh shit i just realised python is weakly typed
13:49
< Syk>
this will be interesting
13:50
<&ToxicFrog>
...it is?
13:50
< Syk>
uh
13:51
< Syk>
...maybe my terminology is wrong
13:51
<&ToxicFrog>
I mean, there's coercion between numeric types, but apart from that...
13:51
<&ToxicFrog>
"weakly typed" is "neither variables nor values have types; any value can be, and is, interpreted as whatever type is required by the context"
13:52
<&ToxicFrog>
Eg, "foo" is simultaneously the string foo, the int 0, the float 0.0, the boolean true, the list [ 'f', 'o', 'o' ] and the empty dictionary depending on how it's used.
13:53
<&ToxicFrog>
More generally, the more implicit conversions there are, the more weakly typed the language is, with what I just described being an extreme that is rarely realized in practice.
13:54
<&ToxicFrog>
You may be thinking of the fact that it's dynamically typed, or that it conventionally uses duck-typing?
13:54
< Syk>
i think dynamically typed
13:54
< Syk>
that value x can be an int then later a string
13:55
< Syk>
unless this headache is truly fucking my interpretation skills
13:56
<&ToxicFrog>
variable x can be an int and then later a string.
13:56
<&ToxicFrog>
Variables don't have types, only values do.
13:57
<&ToxicFrog>
>>> x = "foo"; type(x)
13:57
<&ToxicFrog>
<type 'str'>
13:57
<&ToxicFrog>
>>> x = 0; type(x)
13:57
<&ToxicFrog>
<type 'int'>
13:57
<&ToxicFrog>
And yeah, that's dynamic typing. Types are attached to values, not the variables that hold them, and type checking is performed at runtime.
13:58 * Syk nods
14:01
< Syk>
also, question
14:02
< Syk>
i've always used postgresql for my db stuff
14:02
< Syk>
that or sqlite
14:02
< Syk>
is mysql any good, or is it just popular?
14:03
<@TheWatcher>
That's Holy Wars territory, that is
14:04
< Syk>
i wasn't aware postgresql was popular enough to be part of a holy war :p
14:09
<&ToxicFrog>
The impression I get from people who work with mysql on a regular basis is that it's not good, just popular
14:09
<&ToxicFrog>
But I'm not a database guy, so this is entirely second-hand
14:10 * TheWatcher shrug
14:10
<@TheWatcher>
I use it all the time, and I find it no worse than the rest (which is not, I note, saying it is good)
14:13
<@TheWatcher>
Syk: Less facetiously, it depends what you're doing - if you're after making a decent sized application to release, you should look into abstracting your database code anyway, so that it can be used with various servers and your code outside the implementation modules doesn't need to care.
14:13
<@TheWatcher>
If you're just using it while learning, stick to what you know.
14:13
<@TheWatcher>
No point in trying to learn a language /and/ a database in parallel if you already know a database
14:16
< Syk>
ive used pg for some three years
14:16
< Syk>
TheWatcher: but yes good idea
14:16
< Syk>
it looks like twisted has a database layer
14:17
< Syk>
and theres a pg hookin for it
14:19
< Syk>
so when people say Python
14:19
< Syk>
theres the language standard, and CPython
14:20
< Syk>
and PyPy is independent yet compatible?
14:20
< Syk>
I think I shouldn't try and understand things after a monday lol
14:21
<@TheWatcher>
Should learn perl, it's much simpler~
14:23
< celticminstrel>
Lies. :P
14:25
<@TheWatcher>
Bah, you have perl 5.12 or 5.14 (5.16 if you're adventurous), and that's it!
14:25
<&ToxicFrog>
The perl ecosystem may be simpler, but I'm not sure you can honestly say the language is
14:26
<@TheWatcher>
Well, no >.>
14:26
<&ToxicFrog>
Syk: "Python" is the language. CPython and PyPy are different implementations (interpreters + standard libraries) for the language.
14:28
<&ToxicFrog>
CPython is the reference implementation, written in C (hence the name) by the Python designers. PyPy is an independent JIT-based implementation written in a mix of C and Python that's compatible with CPython 2.7, and can run natively or on the CLR or JVM.
14:29
<&ToxicFrog>
Syk: what languages do you normally work in
14:29
<&ToxicFrog>
?
14:30
< Syk>
90% of my work is unfortunately in VB.NET
14:30
< Syk>
'cos It Works
14:30
< Syk>
and C# is trash
14:31
< Syk>
some stuff in bash, a little JS, nothing really that special
14:42
<&ToxicFrog>
This may be the first time I've heard someone rank C# below VB.NET~
14:43
<&ToxicFrog>
But, ok, I can't really come up with a good analogy based on that, so I'll just leave my python/pypy explanation as is.
14:43
< Syk>
ToxicFrog: heh
14:43
< Syk>
like Mono? :P
14:44
< Syk>
ToxicFrog: imo the VB.NET bindings for a lot of external libs and just the way some things work are much better
14:44
< Syk>
I find C# pointless
14:44
< Syk>
if I wanted to write C, I would write C
14:44
< Syk>
or C++
14:44
<&ToxicFrog>
Kiiind of, although mono is more ".NET for non-windows platforms" whereas Pypy is "Python for everything CPython already supports, but faster"
14:45
< Syk>
so it's like V8? :D
14:45
<&ToxicFrog>
But, yeah, similar. You have the language(s) and the runtime specification, and then the official implementation (.NET), and then unofficial implementations that are (hopefully/mostly) compatible with the official one (mono)
14:46
<&ToxicFrog>
Also, C# isn't really related to C/++
14:46
<&ToxicFrog>
It's more Java But Not As Horrible
14:46
< Syk>
to me it's some weird VB.NET + Java hybrid
14:46
< Syk>
where nothing makes sense
14:46
< Syk>
and everything seems overly complex and enterprise
14:47
< Syk>
for no good reason
14:47
<&ToxicFrog>
Well, yes, I thought I just said that~
14:47
< Syk>
oh
14:47
< Syk>
i dunno
14:47
< Syk>
it's 11pm and i have a headache
14:47
< Syk>
surprised I can still type
14:50
< Syk>
so I might as well try and use the time usefully
14:50
< Syk>
man the python PEPs make me think of Fallout
14:51 * Azash waves at ToxicFrog, Syk
14:51
<@Azash>
TF, how's the thesis coming along?
14:51
< Syk>
hi Azash
14:53
< Syk>
wtf why does pep-8 recommend spaces
14:53
< Syk>
can someone please explain to me why spaces are ever a good idea?
14:53
<@TheWatcher>
Consistent indentation level regardless of tab interpretation.
14:57
< Syk>
...except tabs don't randomly change length mid-document? owO
14:58
< Syk>
oh you mean like between different clients
14:58
< Syk>
ugh
14:58
< Syk>
personally that irritates me to no end
14:58
<@TheWatcher>
Yes, between clients.
14:58 * Syk has her tabs set to 8-spaces
14:58
< Syk>
then everything's got 4-spaces
15:00
<&ToxicFrog>
Azash: submitted it to my advisor for approval on friday \o/
15:01
<@Azash>
\o/
15:01
<@Azash>
Here's hoping you get approved
15:01
< Syk>
yaaay
15:02
<&ToxicFrog>
Still need to finish the appendices, and then defend
15:03
< Syk>
man, headaches suck
15:04
< Syk>
i have music on to drown out my family, and it is literally hurting me :|
15:06
<@TheWatcher>
Go for a walk
15:06
<@TheWatcher>
You might get some quiet, and the exercise and fresh air may help the headache
15:07
< Syk>
TheWatcher: it's 11PM
15:07
<@TheWatcher>
So?
15:07
< Syk>
and i'm one street from the bad part of town
15:07 Syloq_Home [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
15:07
< Syk>
which is, technically, all of the town except for the new part
15:07
< Syk>
and i really don't feel like getting mugged
15:08
< Syk>
(last year, one guy got stabbed with a screwdriver and his wife got her jaw broken. in a lit area in the middle of the CBD in town. yeah, it's one of Those Places)
15:08
<@TheWatcher>
Oh, yeah, and you're in Australia, too - so you need to worry about things like deadly animals, plants, insects, and some of the more uppity rocks.
15:08
< Syk>
fuckin mozzies will tear you to shreds
15:09
< Syk>
they are relentless
15:09
< Syk>
the best bit is when i am on my moped
15:09
< Syk>
i have an open-face helmet
15:09
<@TheWatcher>
... >.<
15:09
< Syk>
riding at sundown - i end up with bugs about an inch long bouncing off my helmet at 55kmh
15:09
< Syk>
or hitting me in the chest
15:10
< Syk>
and hundreds of mozzies splatting on my glasses
15:10
<@TheWatcher>
Be thankful you have glasses, then!
15:10
< Syk>
but yes
15:10
< Syk>
it is always hearing a THUNK on your helmet
15:11
< Syk>
i swear i hit a wasp one day
15:13
< Syk>
aughhhh i have to move out soon before I go /insane/
15:39
<&jerith>
Syk: South Africa's nice. ;-)
15:40
< Syk>
jerith: anywhere away from my insane, abusive family will be good enough for me
15:40 * Syk counting down the weeks
15:40
<&jerith>
froztbyte: ^^^
15:40
<@froztbyte>
Syk: I can certify that you do need to get the hell out.
15:41
<@froztbyte>
the first while after doing it will likely be a pretty crazy rollercoaster
15:41
<@froztbyte>
but it works out
15:41 * froztbyte not-so-recently-anymore cut all ties with his blood family
15:41
< ErikMesoy>
jerith: South Africa's beautiful, not nice. ;-)
15:41
< Syk>
froztbyte: yeah
15:41
< Syk>
i've been working on my getout plan since a domestic 'incident' back in Dec 2010
15:41
<@froztbyte>
ErikMesoy: you must have us confused with somewhere else
15:42
< Syk>
uh, Nov 2010, make that
15:42
<@froztbyte>
heh
15:42
< Syk>
circumstances have just been fucked
15:42
<@froztbyte>
that whole little "legal age" thing is pretty annoying, too
15:42
< Syk>
not in Australia
15:42
<@froztbyte>
nah, even in .au
15:42
<@froztbyte>
there's always some bullshit law somewhere
15:42 * TheWatcher hates all over spaces in filenames with scp
15:43
<@froztbyte>
don't use scp.
15:43
<&jerith>
ErikMesoy: It's very nice, actually. The bad bits are no worse than the bad bits in most other places.
15:43
<@froztbyte>
rsync is much better
15:43
< Syk>
if you need to move out for purposes of personal safety and you can prove you're responsible, you can sign most things as a legal adult
15:43
<@froztbyte>
and if you don't have rsync on the remote side, sshfs.
15:43
< Syk>
but anyway
15:43
<&jerith>
For example, I'd have no problem walking around my neighbourhood at 11pm.
15:43
< Syk>
i'm legal age now
15:43
< Syk>
my main problem is my geographic location
15:43
< Syk>
i am 8 hours from the next town over
15:44
<@froztbyte>
are you in shitsville, north australia?
15:44
<&jerith>
(Well, the only problem I'd have is that nothing nearby's open, which rather reduces my incentive to walk.)
15:44
<@froztbyte>
ah
15:44
<@froztbyte>
yeah
15:44
< Syk>
I have no family for 32h or so
15:44
< Syk>
which is GREAT
15:45
< Syk>
seriously, the worst day of my life so far was pretty much running away from home with a friend-organised evacuation for a few days
15:45
< Syk>
that was fucking fun
15:45
<@froztbyte>
:)
15:45
<@froztbyte>
I think you mean s/worst/best/, perhaps
15:45
< Syk>
uh no
15:46
< Syk>
since I was running away from home
15:46
< Syk>
with a swollen lip
15:46
<@froztbyte>
oh
15:46
< Syk>
this was temporary
15:46
< Syk>
the best bit?
15:46
< Syk>
it was the night I won like three excellence awards after graduating highschool
15:47
< Tarinaky>
Why the fuck does Math.floor return a double
15:47
< Syk>
so my stepfather decided that I - at that time, a full-time IT worker - didn't require a computer anymore
15:47
< Tarinaky>
What the fuck Java
15:47
< Tarinaky>
What the fuck
15:47
<@froztbyte>
Syk: ah, naturally
15:47
< Syk>
and i went woah wtf when he dropped my - still on! - external HDD to the ground
15:47
< Tarinaky>
Can someone who's laptop wasn't made in 1999 tell me how to turn a double into an int intelligibly
15:47
< Syk>
in the middle of migration
15:47
< Syk>
destroying all the data on it
15:48
< Syk>
and stuff went from there
15:48
< Syk>
TheWatcher: doesn't Java have Integer.valueOf()?
15:48
< Syk>
uh
15:48
< Syk>
Tarinaky: *
15:49
< Syk>
Tarinaky: and i think it returns a double because i think java's floor has a second parameter
15:49
< Syk>
so you can do floor rounding for like
15:49
< Syk>
123.456 -> 123.460
15:49
< Syk>
uh, .450
15:50
<@froztbyte>
Syk: ah, the old "I am the boss, and you will do everything I say. Look, I can prove it. There, fuck you." attitude
15:50
< Syk>
froztbyte: i would phrase it more as 'drunk technophobic fucktard' myself
15:50
<@froztbyte>
same base attitude
15:50
< Syk>
they still haven't got over me going into IT
15:51
< Syk>
i remember, back when I started
15:51
< Syk>
"you'll end up like $supervisor"
15:51
<@froztbyte>
my family was still on the "you'll never be successful if you don't start finish a degree or something" stage when I last saw any of them
15:51
<@froztbyte>
sending me shitty N+ course-links, etc
15:51
< Syk>
four years later, he has his own farm down south, a wife and kids and charges $100/hr consultancy fees
15:51
<@froztbyte>
(you should keep in mind that I've run chunks of the internet for ~4 years now)
15:52
< Syk>
so yeah
15:52
< Syk>
heh
15:52
<@froztbyte>
yup, I totally get it
15:52
< Syk>
i'm almost inclined to cut ties with them
15:52
< Syk>
and maintain with everyone on my mother's side, just not my mother
15:53
<@froztbyte>
the only person who I spoke to that side of the family died about 2 weeks ago
15:53
< Syk>
eep
15:53
<@froztbyte>
my father's mother
15:53
<@froztbyte>
eh, it's okay
15:53
<@froztbyte>
people die
15:53
< Syk>
my mother's side of the family is fairly awesome
15:54
< Syk>
eg. my grandfather is a retired realtor and electrician who can smell bullshit from a mile away - quite handy to know right now, for example
15:55
< Syk>
my mother was like 'you should invest in property in the city' and my grandfather laughed at her
15:55
< Syk>
(since taking out a $200,000 morgage at the age of 18 == not the best idea ever)
15:56
<@froztbyte>
yeah fuck that whole storybook way of thinking
15:56
<@froztbyte>
you seem reasonably well-adjusted though, that's pretty good
15:57
<&jerith>
froztbyte: Give Syk the ThoughtWorks job link.
15:57
< Syk>
i can put on one hell of a well-adjusted facade
15:58
<@froztbyte>
jerith: good idea
15:59
<@froztbyte>
done
15:59
< Syk>
hmm
15:59
<@froztbyte>
Syk: everyone does ;)
15:59 * Syk looks at it
15:59
<@froztbyte>
the trick is in learning what the facade is like :P
16:00
< Syk>
>Melbourne & Sydney
16:00
< Syk>
>v<
16:00 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
16:00 * Syk sighs
16:00
<@froztbyte>
don't
16:00
<@froztbyte>
give it a shot
16:00
<@froztbyte>
you don't have anything to lose by trying :)
16:00
< Syk>
the problem is that moving to Melb/Sydney is near impossible for me
16:01
<@froztbyte>
"Impossible is nothing. Miracles take a bit longer."
16:01 * Syk doesn't have her car license, which makes things really hard
16:01
<&jerith>
Syk: Why?
16:01
<@froztbyte>
Syk: pfft, those are all easy to fix
16:01
<&jerith>
Ah.
16:01
<@froztbyte>
hell, you could get people to give you a lift down there
16:01
<&jerith>
Apply for the Jo'burg one, then. :-D
16:01
<@froztbyte>
or a train ticket
16:02
<@froztbyte>
or whatever
16:02
< Syk>
froztbyte: I can get there no problem
16:02
< Syk>
it's more, like, getting everything /else/
16:02
< Syk>
hmm well
16:02
< Syk>
I could always go fuck it and just leave everything but my clothes and laptop behind
16:02
< Syk>
just bring a suitcase full of HDDs and just rebuy everything over there lols
16:03
<@froztbyte>
when I moved, I had my desk, computer, 2/3 boxes of stuff still packed from the previous time I'd moved (books and DVDs, that sort of stuff), clothes, and a mattress
16:03
<@froztbyte>
nearly all of it fit in a car
16:03
< Syk>
except I can't legally drive a car
16:03
<@froztbyte>
my cbr400 is still at the parents' house
16:03
<@froztbyte>
Syk: I can't even get a license
16:04
<@froztbyte>
a fuckup on the licensing system here has a still-active booking from 2008, and I haven't gotten a round tuit for dealing with it yet
16:04
< Syk>
I have my car L plates
16:04
<@froztbyte>
(since it'll possibly take easily 3~4 days of bureaucracy)
16:04
< Syk>
then my stepfather had a neck injury
16:04
< Syk>
ugh fuck it
16:04
< Syk>
i might as well go for my auto license
16:05
< Syk>
my stepfather is unreliable as all fuck
16:05
< Syk>
okay so
16:05
<@froztbyte>
:D
16:05
< Syk>
now to see if I'm qualified for any of these thoughtworks jobs
16:11
< Syk>
well... not really
16:12
< Syk>
...no harm in trying, though...
16:12
<@froztbyte>
:)
16:13
< Syk>
jerith: why thoughtworks in particular?
16:13
<@froztbyte>
because we were at their recruiting gig on saturday and they're pretty awesome
16:14
<&jerith>
Syk: They had a recruiting thing on Saturday that froztbyte and I went to.
16:14
<@froztbyte>
(and they have a presence in .au)
16:14
< Syk>
ahh
16:14 * Syk nodnods
16:14
<&jerith>
(I was there to talk to them about how they're using our stuff -- I already have a job I love.)
16:14
<@froztbyte>
jerith: oh btw, I clicked the button earlier today
16:14
<&jerith>
But now it's hometime.
16:14
< Syk>
well, I think I can try
16:14
<@froztbyte>
so we shall see what comes of it
16:15
< Syk>
I honestly am terrified at how people percieve me
16:15
< Syk>
because nearly nobody takes me seriously in a professional capacity
16:15
< Syk>
and I get way too much disbelief when I say I made X or Y
16:16
<@froztbyte>
that's easy to fix, though
16:16
<@froztbyte>
if someone doubts you, you can say "don't believe me?", which will corner them into saying "prove it"
16:16
<@froztbyte>
but also, TW is the sort of company that's not full of fail like that :)
16:16
< Syk>
hehe
16:18
< Syk>
well, hopefully my portfolio has enough stuff in it
16:18
<@froztbyte>
another thing that I suspect counts in your favour is that you're young and already passionate about this sort of stuff
16:18
<@froztbyte>
that's kinda the sort of people they want
16:18
<@froztbyte>
ftp -_-
16:20
<&ToxicFrog>
Syk: having your stuff on github or similar will help there, too, because then you can just put links in your portfolio and they can golook
16:20
<&ToxicFrog>
froztbyte: in this day and age?
16:20
< Syk>
unfortunately 99% of my stuff is all work
16:20
< Syk>
:/
16:21
< Syk>
and the 1% of other things are tainted by... well, being bound to me
16:21
<&ToxicFrog>
wha?
16:21
< Syk>
i keep my professional and personal lives very seperate
16:21
<@froztbyte>
ToxicFrog: the fact that I can ftp this set of updates to the router, instead of having to tftp it, is considered a feature
16:22
< Syk>
none of those projects are any good anyway
16:22
< Syk>
i wrote something that has more comedic value in the comments than it does actually working
16:22
< Syk>
:P
16:22
< Syk>
but yeah, I have very little actual demonstratable code
16:22
< Syk>
outside of work's new website
16:24
<&ToxicFrog>
Aah :/
16:24
< Syk>
eh fuck it
16:24
< Syk>
i might as well link it
16:24
< Syk>
http://ekra.com.au/
16:24
< Syk>
(is a test domain for now until everyone else gives me the fucking content)
16:25
<@froztbyte>
haha
16:25
< Syk>
I wish I had more time to spend on it :(
16:25
< Syk>
because there's so many things i can fix
16:25
< Syk>
but oh well
16:25
< Syk>
for being given no design requirements, no targets and no support apart from the funds to buy the VPS
16:25
< Syk>
I think I did okay
16:26
< Syk>
oh and working inside the fucktarded style guide
16:26
<@froztbyte>
eh, you did that whole thing entirely?
16:26
< Syk>
we have three colours as part of our palette
16:26
<@froztbyte>
that's pretty good :)
16:26
< Syk>
grey, orange and red
16:26
< Syk>
and white/black
16:27
< Syk>
froztbyte: yeah, more or less
16:27
< Syk>
well some of the backend is my supervisor's
16:27
< Syk>
the front end (css/html/etc) is all me
16:27
< Syk>
i'm gonna be using galleria soon
16:27
< Syk>
too
16:27
< Syk>
http://ekra.com.au/ekra/webfids.html
16:27
< Syk>
i am pretty proud of this though
16:28
< Syk>
this is grabbing the data from the FIDS board I wrote
16:28
<@froztbyte>
this is pretty good though
16:28
< Syk>
(also, the site uses some hacked together media queries)
16:28
<@froztbyte>
decent layout, design, etc
16:28
< Syk>
it ALMOST works great on mobile
16:29
< Syk>
but since I finish work in uh
16:29
< Syk>
...one week
16:29
< Syk>
not much else is getting done on it :/
16:29
< Syk>
it took a few weeks... the design itself maybe two or three weeks
16:29
< Syk>
(part time)
16:30
< Syk>
the back end took a lot longer but that's because it's static page generation
16:30
< Syk>
it's a slightly weird design choice but I think the benefits outweigh the downsides in the end
16:31
<@froztbyte>
I've also been poking at some static generation stuff lately
16:31
<@froztbyte>
like for the mirror.neology.co.za admin page
16:32
< Syk>
imo, if things rarely change
16:32
<@froztbyte>
bonsai is looking like a nice choice, there's just no direct docs so I get to figure structure out myself -_-
16:32
< Syk>
the speed benefits are freakin amazing
16:32
< Syk>
i wrote the generator myself lols
16:32
<@froztbyte>
there are some other ways to gain those same benefits
16:32
<@froztbyte>
generate once, cache until invalidating, etc
16:32
< Syk>
i just make templates, make blocks where I insert content and write it out
16:32
< Syk>
yeah, that's true
16:33
<@froztbyte>
but yeah
16:33
<@froztbyte>
durrrrr
16:33
< Syk>
that there is essentially the best part of my portfolio
16:33
<@froztbyte>
forgot I just updated the router through which I was bouncing
16:33 * froztbyte fixes up the tunnels again
16:34
< gnolam>
One day, someone will cross VHDL and Verilog with each other just right.
16:34
<@froztbyte>
that'd be crossing the streams
16:34
< gnolam>
So that you have an HDL that's not a huge pain to write but still provides you with some decent error checking.
16:36
< Syk>
uh
16:37
< Syk>
...did anyone else have a massive lag spike
16:39
< Syk>
...it seems to be fixed now tho
16:40
< ErikMesoy>
Not that I noticed
16:45
< Syk>
okay so
16:45
< Syk>
sleep time, maybe
16:45
< Syk>
since it's 12:45am...
16:45
<&ToxicFrog>
...yeah, probably a good idea
16:46
< Syk>
jerith, froztbyte, thanks for the heads up re: thoughtworks
16:46
<@froztbyte>
cool
16:46
<@froztbyte>
good luck :)
16:46
< Syk>
i'll have to persue it when my head doesn't feel like it's having a bad double blind date with the left and right sides of a nutcracker
16:47
<@froztbyte>
haha
16:47
< EvilDarkLord>
An oddly specific kind of headache.
16:48
< Syk>
well it's better than your head feeling like a four year old has used it for boxing practice
16:49
< Syk>
protip: four or five 4 to 6 year olds can easily overpower a sixteen year old, given the time and correct family outing
16:50
< EvilDarkLord>
Is sand and sunbathing involved in this scenario?
16:51
< Syk>
EvilDarkLord: no, but a family christmas party and a plastic childrens tractor are
16:52
<@froztbyte>
Syk: that just means the 16 year old was sufficiently concerned for the safety of said youngins.
16:53
< Syk>
they menaced me with party poppers :c
16:53 * Tamber drapes paper streamers over Syk.
16:54
< Syk>
D:
16:55
< Syk>
also, your daily comic: http://www.jerkcity.com/jerkcity5037.gif (image is sfw, site is not)
16:58 Syk is now known as syksleep
16:58
< syksleep>
anyway... bedtimes
17:12 shawn-p [Shawn@Nightstar-4db8c1df.mo.charter.com] has quit [[NS] Quit: Leaving.]
17:15 shawn-p [Shawn@Nightstar-4db8c1df.mo.charter.com] has joined #code
18:47 Derakon[AFK] is now known as Derakon
18:47
<@froztbyte>
http://lists.grok.org.uk/pipermail/full-disclosure/2012-November/088813.html
19:00 Kindamoody|out is now known as Kindamoody
19:09 * Derakon ponders Python.
19:09
<&Derakon>
I want to do something like def foo(arg1, *args, kwarg1, **kwargs)
19:09
<&Derakon>
That is, one required argument, some number of ordered args after that, then a keyword arg, then any number of other keyword args.
19:09
<&Derakon>
Unfortunately this appears to be invalid syntax.
19:09
<&jerith>
Derakon: Yeah.
19:10
<&Derakon>
I guess all explicit args have to come at the front...which screws up ordering of the *args entity.
19:10
<&Derakon>
Oh, sorry, I wrote that wrong.
19:10
<&Derakon>
def foo(arg1, *args, kwarg1 = default, **kwargs)
19:10
<&Derakon>
kwarg1 is optional.
19:11
<&jerith>
The standard way to do that is to manually extract kwarg1 from kwargs.
19:11
<@Tamber>
wark?
19:12
<&Derakon>
Ugh.
19:12
<&jerith>
"kwarg1 = kwargs.pop('kwarg1', default)"
19:13
<&Derakon>
I guess I don't really have a better option.
19:13
<&Derakon>
Kinda wonder why the syntax I wanted to use is invalid though.
19:13
<&Derakon>
Anyway, thanks.
19:14
<&jerith>
Derakon: *args and **kw have to be the last two things in the argspec.
19:14
<&jerith>
That's just how it is. :-/
19:14
<&Derakon>
Phooey.
19:14
<&jerith>
I think they've done something about that in 3.4 or whatever, but that won't help you.
19:33 * iospace eyes this segfault
19:42
<@Azash>
When you stare long into the segfault, the segfault also stares into you
19:43
<&McMartin>
Speaking of segfaults!
19:43
<&McMartin>
Can anyone recommend a good hex editor for Windows these days?
19:44 * McMartin has been just loading files into Python and dicking around with the octets, but this is inefficient.
19:44
< iospace>
probably a plugin for NP++ :P
19:47
<&McMartin>
Emacs also has a hex editing mode =P
19:47
< iospace>
Emacs can go jump off a cliff ^_^
19:48
<&Derakon>
How about vim then? http://nion.modprobe.de/blog/archives/628-vim-as-hex-editor.html
19:49
<&McMartin>
wxHex is marked as beta but looks acceptable for my needs
20:01 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
20:13 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
20:13 mode/#code [+o himi] by ChanServ
20:21 Kindamoody is now known as Kindamoody[zZz]
20:22
<@froztbyte>
<McMartin> Can anyone recommend a good hex editor for Windows these days?
20:22
<@froztbyte>
I've stolen UltraEdit the last few times I had to do something like that
20:22
<@froztbyte>
<Azash> When you stare long into the segfault, the segfault also stares into you
20:22
<@froztbyte>
truer words than you might've thought.
20:24
<&jerith>
kill -11 froztbyte
20:24
< AnnoDomini>
-11? What's that code for?
20:25
<&jerith>
I don't think you can actually send SIGSEGV, though.
20:26
<@Tamber>
Sure you can.
20:27
<&jerith>
Oh, right. You can't /catch/ it.
20:27
<@Tamber>
Not without Magic, anyway.
20:29
<@froztbyte>
it's a sometimes sad fact of my life that I know most sig id's at glance
20:30
<&jerith>
froztbyte: 6?
20:30 * Tamber has 2 listed for that. o.o
20:31
<@froztbyte>
jerith: that's not very nice :P
20:31
<&jerith>
9 and 15 are easy.
20:31
<@Tamber>
30!
20:31 * Tamber ducks.
20:31
<&jerith>
Although people seldom use 15 explicitly.
20:31
<@froztbyte>
yup
20:32
<@froztbyte>
I often use -1
20:32
<@froztbyte>
(from outside of something)
20:32
<&jerith>
I think pretty much everything above 15 is system-dependent.
20:32
<@Tamber>
Most likely.
20:32
<@froztbyte>
and nooooow and then there's a need for hackery with 3
20:32
<&jerith>
Many of the names are the same, but the numbers match.
20:33
<@froztbyte>
jerith: and then there's the fun with how things sub to USR1/USR2
20:33
<@froztbyte>
in general, things seem to take USR1 as "print out status"
20:34
<@froztbyte>
yet here and there we've come across something that has USR1 as "breakpoint, HALT THE FUCK NOW AND EMIT PROMPT"
20:34
<@froztbyte>
which isn't so good.
20:34
<&jerith>
I've always liked SIGWINCH, because it gives me a mental image of a crane resizing my terminal.
20:35
<@froztbyte>
hehe
20:35
<&jerith>
Err, s/match/differ/ earlier.
20:35
<@froztbyte>
reminds me, I need to figure out why my screen(1) config causes a SIGWINCH
20:36
<@froztbyte>
it's really annoying when working from a windows box now and then
20:36
<&jerith>
screen resizes itself to fit the window its in or something.
20:36
<&jerith>
Actually, it can also try to resize the window it's in to change itself.
20:37
<@froztbyte>
well, I haven't really dug into it much
20:37
<@froztbyte>
but I'm guessing it has something to do with my status line or something
20:38
<&jerith>
froztbyte: If you can figure out why multitail likes to redraw itself a billion times every now and then, I'd appreciate it.
20:38
<@froztbyte>
jerith: probably because it sucks at linefeeding
20:38
<@froztbyte>
why use multitail instead of just tail -f src1 src2 src3 ?
20:39
<@froztbyte>
err, tail -fq, I think I mean
20:39
<&jerith>
froztbyte: Colours, rotation following, merging, etc.
20:39
<@froztbyte>
hageshii % man multitail
20:39
<@froztbyte>
No manual entry for multitail
20:39
<@froztbyte>
hageshii % googsearch man multitail
20:39
<@froztbyte>
I really do love my shell aliases.
20:39
<@froztbyte>
jerith: hmm
20:40
<@froztbyte>
jerith: I pipe to ccze for colour, tail -F sorts out following on rotation instead of tracking a filehandle
20:40
<@froztbyte>
merging in which sense, if it sees a line in syslog and daemon.log, only show it once?
20:41
<@froztbyte>
(err, that alias opens up my query in a browser, for those who wonder what happened)
20:41
<@froztbyte>
jerith: ah, okay, I see what it does
20:42
<@froztbyte>
that's kinda useful, I suppose
20:42
<&jerith>
froztbyte: multitail puts each log you're watching in its own window.
20:42
<@froztbyte>
and yeah, probably some curses crap for the windows
20:42
<&jerith>
But you can merge multiple logs into a single window if you want.
20:43
<@froztbyte>
I don't think I have a general need for that
20:43
<&jerith>
I do that with a different colour for each log that's merged for multiple homogeneous worker processes behind a single interface.
20:44
<@froztbyte>
yar, I could see how it would be useful
20:44
<&jerith>
Several HTTP API workers behind haproxy, for example.
20:44
<@froztbyte>
I just don't really have much of that in my environment
20:44
<@froztbyte>
my side is more multiple components with each little bit doing stuff
20:44
<@froztbyte>
in which case it becomes easier to chuck it all together a single stream for the rare cases where I need a unified view
20:44
<&jerith>
We have that too.
20:45
<&jerith>
Typically a transport worker (which may have multiple instances running), a dispatcher and one or more app workers.
20:46 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Connection reset by peer]
20:47 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
21:05
<&McMartin>
>_<
21:05
<&McMartin>
Suggested name for localization experts
21:05
<&McMartin>
l10n tamers
21:06
<&jerith>
The guys we outsourced a lot of our localisation work to at my previous company were called L10nbridge.
21:33 cpux|2 [cpux@Nightstar-98762b0f.dyn.optonline.net] has joined #code
21:35 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
21:41 Vash [Vash@Nightstar-b43e074a.wlfrct.sbcglobal.net] has joined #code
21:41 mode/#code [+o Vash] by ChanServ
21:57
<&McMartin>
[programming] katre says, "I've been playing Portal lately so I am really identifying with Glados"
21:57
<&McMartin>
[programming] katre says, "'Little function, if you prove that '1' == 1 there will be cake!'"
21:57
<&McMartin>
... I'm not sure how far he's gotten into Portal
21:58 * McMartin tends more towards SHODAN when debugging.
21:58
<&McMartin>
TURN AROUND, INS-S-S-S-S-S-SECT, AND FACE YOUR EXECUTIONER
22:05
< iospace>
... since when did McMartin turn into roscoe?
22:10 ErikMesoy is now known as ErikMesoy|sleep
22:18
<@froztbyte>
http://eigen.pri.ee/shooter/
22:21
<~Vornicus>
Roscoe? Try TF
22:21
<~Vornicus>
anyway
22:31 * Derakon teaches Pyrel to teach the player how to play it, in a rather limited sense.
22:31
<&Derakon>
(When you select an item from your inventory, the game will pop up a list of commands you can perform with that item)
22:32
<&ToxicFrog>
McMartin: HAVING TROUBLE, INSECT? TURN AND FACE YOUR EXECUTIONER!
22:32
<&ToxicFrog>
Also, that's Diego, not SHODAN >.>
22:32
<&McMartin>
"Diego"
22:33
<&ToxicFrog>
(assuming that there's actually a distinction between the two at that point~)
22:33
<&McMartin>
(I am not drawing that distinction, no)
23:09 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has joined #code
--- Log closed Tue Nov 06 00:00:03 2012
code logs -> 2012 -> Mon, 05 Nov 2012< code.20121104.log - code.20121106.log >

[ Latest log file ]