[05:23] <Kilos> morning all
[05:24] <Kilos> eek down to 30 again
[05:43] <magespawn> morning Kilos
[05:43] <Kilos> hey magespawn 
[05:45] <magespawn>  still cannot get through to the core from the internet, got some work to do
[05:56] <Kilos> oh my
[05:57] <Kilos> how do things just break like that
[05:57] <Kilos> it was working fine
[05:58] <magespawn> not too sure, everything seems to be working right from my side
[05:58] <Kilos> you got gufw?
[05:59] <magespawn> what is that?
[06:01] <TaraLS> Hi all
[06:01] <TaraLS> I got a message from the guy who was gonna donate le PC to me.
[06:01] <TaraLS> http://slexy.org/view/s2A4nAB1ek
[06:01]  * Squirm looks around
[06:01] <TaraLS> Is that good? I mean, I THINK it's good, but wanted to confirm.
[06:02] <Squirm> any donation is good
[06:02] <Squirm> but it's faster than my pc :P
[06:02] <Squirm> except I have more hdd space and a slightly better graphics card
[06:03] <TaraLS> Well, I don't really play games aside from stupid little flash games from time to time, so
[06:03] <TaraLS> And yes - any donation is very good. :)
[06:03] <TaraLS> superfly:  ?
[06:03] <TaraLS> Kilos:  ?
[06:03] <Squirm> so then it's not a bad machine
[06:03] <Kilos> yo TaraLS 
[06:04] <Kilos> magespawn: its a firewall
[06:05] <Squirm> the gui for Ubuntu Firewall
[06:05] <magespawn> TaraLS: looks good, and you can always test your drives and add them is they are okay
[06:05] <TaraLS> :D
[06:05] <Kilos> looks good TaraLS 
[06:06] <Kilos> hi nlsthzn 
[06:07] <superfly> TaraLS: that's a very decent machine
[06:08] <superfly> I have a similar PC at home and that is my main "workhorse" PC
[06:09] <magespawn> yes i have a firewall up and running 
[06:10] <TaraLS> Yay, awesome. Thanks everyone. Now I go back to sweltering, woohoooooo. 
[06:10] <TaraLS> <3
[06:11] <Kilos> <3
[06:11] <Kilos> hiya superfly you got meds today
[06:11] <Kilos> ?
[06:12] <magespawn> but nothing has changed there
[06:13]  * magespawn is suspicious of cell provider
[06:13] <superfly> Kilos: ya
[06:14]  * magespawn goes to check dyn dns
[06:15] <magespawn> you sick superfly?
[06:19] <magespawn> looks like it was the dyn dns, did not update properly yesterday
[06:22] <Kilos> aw that sucks magespawn 
[06:22] <Kilos> he isnt sick just got irritating probs same as tara too
[06:22] <Kilos> allergic to pollens
[06:22] <Kilos> and asthma
[06:23] <Squirm> looks at what my cousin plays with for a living
[06:23] <Squirm> http://www.redorbit.com/media/uploads/2012/05/tech-051712-003-617x416.jpg
[06:23] <Kilos> hayfever
[06:24] <Squirm> well, ok, he's studying. but he has to work with that for a project
[06:24] <Kilos> whats that thing Squirm 
[06:24] <Squirm> Husky a200
[06:25] <Squirm> remote controlled ATV
[06:25] <Kilos> i dunno what that is or does
[06:25] <Squirm> it's a big remote controlled car :P
[06:25] <Kilos> lol
[06:25] <Squirm> but you're able to make modifications to it
[06:26] <Kilos> what does it do?
[06:27] <Kilos> aw magespawn and you stuck on vc
[06:28] <magespawn> nah Kilos just did a maual dyn dns update and all is well again.
[06:28] <magespawn> manual even
[06:32] <Kilos> oh well thats good
[06:33] <Kilos> oh you cable there
[06:35] <magespawn> yes but did check through the cell connection
[06:35] <Kilos> ah ok
[06:35] <magespawn> bbl got to go out for awhile
[06:40] <Kilos> k
[06:43] <Kilos> hi Tonberry 
[06:44] <Tonberry> hallo 
[06:45] <Kilos> hiya maiatoday 
[06:47] <Kilos> hi jrgns 
[06:47] <jrgns> morning K
[08:03] <Squirm> stupid utf-16 encoded file :/
[08:08] <nlsthzn> +1, stupid file >:(
[08:08] <nlsthzn> what are we talking about?
[08:08] <Squirm> I have a utf-16 encoded file I want to open in python, modify it, then save it again
[08:15] <superfly> Squirm: so what's the problem?
[08:15] <nlsthzn> the file is utf-16
[08:16]  * nlsthzn has no idea and is searching for his windows cd in shame
[08:16] <superfly> nlsthzn: like I said, what's the problem?
[08:16] <nlsthzn> how are you superfly ?
[08:16] <superfly> nlsthzn: tired, sick, but otherwise fine thanks. How are you?
[08:17] <superfly> nlsthzn: has the cooler part of summer settled in yet?
[08:17] <nlsthzn> brilliant weather... highs of only 26-27 and dropped to 22-23 on a cold day like today :) - nights re chilly dropping below 20... brrrr...
[08:18] <nlsthzn> and I am serious, we get cold :/
[08:18] <nlsthzn> hope you get well soon then superfly!!!
[08:18] <superfly> me too
[08:18] <Squirm> superfly: I don't really know. I seem to need to convert it back to ascii, find the text I'm looking for, then convert it back to utf16
[08:18] <superfly> stupid bronchitis which gave me asthma and recurring chest infections
[08:18] <Squirm> the problem comes in converting it to ascii
[08:19] <superfly> Squirm: why do you need to convert it to ascii?
[08:19] <superfly> utf16's base chars should "match" ascii
[08:19] <Squirm> when I do a simple read on the file, my list spits out lines like the following
[08:19] <Squirm> \x001\x003\x000\x002\x00=\x00P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00 \x00t\x00e\x00s\x00t\x00 \x00s\x00t\x00r\x00i\x00n\x00g\x00
[08:20] <superfly> Squirm: yes, because it is utf16 and it is displaying the raw bytes
[08:20] <superfly> Squirm: I think what you *actually* want to do is convert it to unicode, if anything
[08:21] <superfly> Squirm: do you understand how encodings work?
[08:21] <Squirm> it's new to me
[08:21] <superfly> Squirm: ah, so I gathered
[08:21] <superfly> Squirm: do you know how ascii works?
[08:22] <Squirm> I udnerstand that each character has an ascii code associated with it
[08:22] <Squirm> understand*
[08:22] <superfly> ascii is an encoding
[08:22] <superfly> a particular byte represents each character
[08:22] <superfly> BUT ascii only has the range 0-127 (aka 128 bytes)
[08:22] <superfly> (and no, not 256, that's extended ascii)
[08:23] <superfly> utf8 is built on ascii, but extends further
[08:23] <superfly> both ascii and utf use a single byte to store a single character
[08:23] <superfly> utf16, however, uses *two* bytes to store a single character
[08:24] <Squirm> ok
[08:24] <superfly> which is why converting it to ascii is both erroneous, and useless
[08:24] <Squirm> ok
[08:25] <Squirm> what if I had to convert the string I wanted to search for into utf16 first?
[08:25] <superfly> yes
[08:25] <Squirm> superfly: http://slexy.org/view/s2c8eSah2Y
[08:25] <Kilos> hi barrydk 
[08:25] <barrydk> Good morning everyone
[08:25] <superfly> hi barrydk
[08:25] <Squirm> it's a little messy. but it gets neater when I fix my issues :P
[08:26] <superfly> Squirm: do you know what "decode" does?
[08:26] <Squirm> converts it into ascii?
[08:26] <superfly> no
[08:26] <superfly> I told you, ascii is an encoding
[08:26] <superfly> if you wanted something in ascii, you'd have to ENcode it
[08:26] <Squirm> ok
[08:28] <superfly> Squirm: is the "book" file actually in utf16, or is it in cp1252 ?
[08:28] <Squirm> it's the config file for the application that is encoded
[08:28] <superfly> (additionally, comparing a string to unicode is a little silly, you should rather compare unicode to unicode)
[08:28] <Squirm> but I'm not sure exactly
[08:29] <superfly> Squirm: use chardet if you don't know
[08:34] <Squirm> >>> chardet.detect("main.cfg")
[08:34] <Squirm> {'confidence': 1.0, 'encoding': 'ascii'}
[08:34] <Squirm> I think I ran it wrong
[08:35] <Squirm> I see an example
[08:35] <Squirm> 1sec
[08:37] <Squirm> superfly: {'confidence': 1.0, 'encoding': 'UTF-16LE'}
[08:50] <maiatoday> hi Kilos
[09:25] <Kilos> wb magespawn 
[10:14] <Kilos> wbb
[10:16] <Squirm> superfly: ok, so decode will decode into unicode
[10:17] <Squirm> well, back to unicode
[10:17] <Squirm> and if I use unicode("string") it will decode ascii into unicode
[10:18] <Squirm> so I try and run a decode on a line(after I've stripped the \n)
[10:18] <Squirm>     return codecs.utf_16_le_decode(input, errors, True)
[10:18] <Squirm> UnicodeDecodeError: 'utf16' codec can't decode byte 0x00 in position 48: truncated data
[10:22] <superfly> Squirm: don't truncate the \n before decoding
[10:22] <superfly> do you en/de-coding, and THEN strip unnecessary characters
[10:23] <superfly> Squirm: you're forgetting that UTF16 uses TWO bytes to represent a character, not one
[10:23] <Squirm> but surely the \n is just a part of the text file?
[10:24] <Squirm> so I took out the rstrip
[10:24] <Squirm> UnicodeDecodeError: 'utf16' codec can't decode byte 0x0a in position 34: truncated data
[10:26] <Squirm> ok
[10:26] <Squirm> superfly: would an = throw it off?
[10:26] <superfly> Squirm: eh?
[10:26] <Squirm> it parses the first line, which is "#Main Settings" but it fails on line 2
[10:27] <Squirm> \x00B\x00o\x00o\x00k\x00N\x00a\x00m\x00e\x00=\x00T\x00h\x00e\x00 \x00L\x00o\x00n\x00g\x00 \x00E\x00a\x00r\x00t\x00h\x00\r\x00\n
[10:27] <Squirm> the '=' doesn't seem to be encoded?
[10:27] <Squirm> the line in the config file reads:
[10:28] <Squirm> BookName=Test Book
[10:28] <Squirm> well
[10:28] <Squirm> BookName=The Long Earth
[10:29] <superfly> Squirm: if you open the file in a text editor, do you see physical "\", "x", "0", "0" and "B" characters?
[10:30] <Squirm> nope, I see ascii characters
[10:30] <Squirm> it looks like a plain text file to me
[10:31] <superfly> Squirm: hrm, probably because your text editor is realising it is UTF16, and displaying it correctly
[10:31] <Squirm> not knowing much about encoding, but it looks like the line is comprised of
[10:31] <superfly> heh
[10:31] <superfly> \x00B = B
[10:31] <Squirm> \x00B\x00o\x00o\x00k\x00N\x00a\x00m\x00e\x00 - Being encoded, the "=" not being encoded then "\x00T\x00h\x00e\x00 \x00L\x00o\x00n\x00g\x00 \x00E\x00a\x00r\x00t\x00h\x00\r\x00\n" beging encoded
[10:31] <superfly> first char is \0, second char is B
[10:31] <Squirm> hmm
[10:32] <Squirm> i see it now
[10:32] <Squirm> but then why is it failing on the 2nd line and not the first
[10:32] <Squirm> opening the cfg file in pluma(like gedit)
[10:33] <Squirm> these are the first 3 lines
[10:33] <Squirm> # Main Settings
[10:33] <Squirm> BookName=The Long Earth
[10:33] <Squirm> BookInfo=The Long Earth by Terry Pratchett / Stephen Baxter
[10:36] <Squirm> I've tried running the application with the config file in what I'd call "plain text", which I guess is ascii encoded
[10:37] <Squirm> and it never worked
[11:46] <Kilos> hey Jabberwocky 
[11:46] <Jabberwocky> good afternoon Kilos, how is things?
[11:46] <Kilos> long time no see
[11:47] <Kilos> ok ty and you?
[11:47] <Jabberwocky> yeah I was gone for quite some time
[11:47] <Jabberwocky> I can't complain :)
[11:47] <Kilos> you back in time though. monthly meeting on monday and reapp on tuesday
[11:48] <Kilos> http://bit.ly/WtOUPl
[11:48] <Kilos> where you been?
[11:49] <Jabberwocky> moving around, I don't have any mobile internet :(
[11:49] <Kilos> ah
[11:54] <Kilos> oh my peer got the flies
[12:50] <Kilos> wb superfly mrs_fly 
[12:50] <Kilos> and warthe lurker
[12:50] <Kilos> grr
[12:50] <Kilos> Wraz, 
[13:57] <Squirm> superfly: got it sorted
[13:57] <Squirm> thanks
[13:57] <superfly> Squirm: can I see your final solution?
[14:00] <Squirm> superfly: http://slexy.org/view/s20NuNrM76
[14:04] <Squirm> It's just so I don't have to edit the config file everytime I want to compile a new book. because fields are repeated a few times. Also means I could modify it to read a csv file, if I wanted to do a batch compile
[14:39] <Squirm> I forgot it was 12/12/12 today
[14:39] <Squirm> :P
[14:39] <Kilos> hehe
[14:39] <magespawn> afternoon all
[14:40] <magespawn> Squirm your paste expired, on purpose?
[14:44] <Kilos> hehe he dont want others to have life easy
[14:45] <magespawn> i like to have a look at what other people do, to learn, if they do not mind
[14:46] <superfly> magespawn: all my code is open-sourced
[14:47] <magespawn> i thought that was Squirm who pasted it
[14:47] <superfly> I have a section on my blog with code snippets and the like
[14:47] <magespawn> have had a look ty superfly
[14:48] <superfly> http://blog.saturnlaboratories.co.za/programs I think
[14:48] <Kilos> what does the execute disable bit do in bios guys
[14:48] <Kilos> this pc of ians has very sick bios
[14:48] <Kilos> keeps changing itself
[14:49] <Kilos> date/time/boot options etc
[14:49] <magespawn> get the update from manufacturers site Kilos
[14:49] <magespawn> maybe check the battery
[14:50] <Kilos> i cant get the pc to boot even from anything but ubcd magespawn 
[14:50] <Kilos> and scared to go the flash route unless i got help
[14:50] <Kilos> mb's arent cheap
[14:51] <Kilos> i have my battery in there. but once power is in battery should make no diffs methinks hey?
[14:51] <Kilos> sometimes it keeps saying cmos settings wrong and one cant save the changes you make permanently
[14:52] <Kilos> keeps going back to cmos settings wrong
[14:53] <magespawn> maybe the board is faulty then 
[14:53] <Kilos> eek
[14:53] <magespawn> do not switch it off lol
[14:53] <Kilos> lol
[14:54] <Kilos> i change date and time and other stuff and it reboots back to same place
[14:54] <Kilos> even had battery out for a week
[14:55] <superfly> either the eeprom is messed, or the battery is dead
[14:55] <Kilos> ubcd can erase bios i see but bang to do that till i got new bios upgrade and know how to install it
[14:56] <superfly> Kilos: I try not to mess with computer hardware, so you know better than me.
[14:57] <Kilos> this is deeper than i am confortable playing with superfly 
[14:57] <Kilos> hehe
[14:57] <Kilos> but must find a way to fix it
[14:58] <Kilos> pc crashed same time as the 2 TB drive
[14:58] <Kilos> they corrupted each other seems like
[15:04] <Kilos> cmos checksum bad. thats what it says
[15:04] <Kilos> grrr
[15:06] <Kilos> eish inetpro jy was still vandag
[15:06] <magespawn> if the chip is gone there is not much you can do
[15:07] <Kilos> ya they not plugins like the old pcs
[15:07] <Kilos> sigh
[15:34]  * nlsthzn tests a new IRC client for Windows...
[16:42] <inetpro> Kilos: sorry oom
[16:42] <Kilos> vir wat boet?
[16:42] <inetpro> nlsthzn: quassel works perfectly for Windows
[16:42] <Kilos> eeek
[16:42] <inetpro> Kilos: jy sê ek was te stil
[16:42] <Kilos> o ok. jy is vergewe
[16:43] <inetpro> dankie oom
[16:43] <Kilos> en nie met gif nie
[16:43] <inetpro> ai
[16:43] <Kilos> is jy ok inetpro 
[16:43] <nlsthzn> inetpro, yup I am aware but I preffer xchat (and in this case I am using the free version hexchat)
[16:43] <Kilos> net besig?
[16:43] <inetpro> sharp, dankie
[16:43] <inetpro> yebo yes
[16:43] <nlsthzn> now I need to get the spell checker working :/
[16:43] <nlsthzn> or spell badly \o/
[16:44] <Kilos> nlsthzn, how come you gotta pay for xchat now
[16:44] <Kilos> tara got it free for her winsucks
[16:44] <nlsthzn> windows version
[16:44] <nlsthzn> only free for 30 days
[16:44] <Kilos> ya
[16:44] <Kilos> for xp
[16:44] <nlsthzn> then cost $20
[16:44]  * inetpro wbb
[16:44] <nlsthzn> there is a version based on an older build of xchat that is also free called xchat2
[16:44] <Kilos> no man and ian had it on xp as well
[16:45] <nlsthzn> but afaik hexchat is more up to date
[16:45] <Kilos> did you look at this one
[16:45] <Kilos> http://www.silverex.org/download/
[16:46] <Kilos> i think thats the link i gave ian and atar
[16:46] <nlsthzn> yup, xchat2
[16:46] <Kilos> oh
[16:46] <nlsthzn> I only read about it a few minutes ago...
[16:46] <Kilos> eek
[16:46] <nlsthzn> I am happy with hexchat (same thing :P)
[16:47] <Kilos> ians had it for years
[16:47] <Kilos> well thats all that counts hey
[16:47] <nlsthzn> sure... initially xchat was also free as in beer
[16:56] <magespawn> later all
[16:57] <Kilos> k magespawn 
[17:36] <Kilos> yo Vince-0 
[17:36] <Vince-0> Sup
[17:38] <Kilos> same old
[17:38] <Kilos> wassup smileyborg?
[17:38] <Kilos> she dont come here anymore
[17:58] <nlsthzn> good night all
[17:58] <Kilos> sleep tight nlsthzn 
[17:58] <Kilos> see ya morrow
[17:58] <nlsthzn> :)
[18:51] <Kilos> hi smile
[18:52] <Kilos> night all sleep tight
[18:52] <smile> hi :)
[18:52] <smile> good night :p
[19:34] <smile> slaapwel! :)
[19:37] <inetpro> goeienag ou grootte
[19:37] <smile> dankie :p
[19:42] <Symmetria> hrm
[19:42]  * Symmetria eyes the myadsl article on tenet's new ceo
[19:53] <inetpro> Symmetria: and?
[19:53] <Symmetria> inetpro read my comment on there and tell me what impression it conveys to you
[19:53] <Symmetria> :)
[19:53] <Symmetria> http://mybroadband.co.za/vb/showthread.php/491295-Tenet-appointes-Duncan-Greaves-as-new-CEO
[19:54] <Symmetria> though the latest comment is the funniest fucking shit I ever read
[19:57] <inetpro> by elvis presley? :-)
[19:58] <Symmetria> yeah
[19:58] <Symmetria> that was hilarious 
[19:58]  * inetpro tries to remember usenet
[19:58] <inetpro> that was ages ago