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