Kilos | morning all | 05:23 |
---|---|---|
Kilos | eek down to 30 again | 05:24 |
magespawn | morning Kilos | 05:43 |
Kilos | hey magespawn | 05:43 |
magespawn | still cannot get through to the core from the internet, got some work to do | 05:45 |
Kilos | oh my | 05:56 |
Kilos | how do things just break like that | 05:57 |
Kilos | it was working fine | 05:57 |
magespawn | not too sure, everything seems to be working right from my side | 05:58 |
Kilos | you got gufw? | 05:58 |
magespawn | what is that? | 05:59 |
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:01 |
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:02 |
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:03 |
Kilos | magespawn: its a firewall | 06:04 |
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:05 |
Kilos | hi nlsthzn | 06:06 |
superfly | TaraLS: that's a very decent machine | 06:07 |
superfly | I have a similar PC at home and that is my main "workhorse" PC | 06:08 |
magespawn | yes i have a firewall up and running | 06:09 |
TaraLS | Yay, awesome. Thanks everyone. Now I go back to sweltering, woohoooooo. | 06:10 |
TaraLS | <3 | 06:10 |
Kilos | <3 | 06:11 |
Kilos | hiya superfly you got meds today | 06:11 |
Kilos | ? | 06:11 |
magespawn | but nothing has changed there | 06:12 |
* magespawn is suspicious of cell provider | 06:13 | |
superfly | Kilos: ya | 06:13 |
* magespawn goes to check dyn dns | 06:14 | |
magespawn | you sick superfly? | 06:15 |
magespawn | looks like it was the dyn dns, did not update properly yesterday | 06:19 |
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:22 |
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:23 |
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:24 |
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:25 |
Kilos | what does it do? | 06:26 |
Kilos | aw magespawn and you stuck on vc | 06:27 |
magespawn | nah Kilos just did a maual dyn dns update and all is well again. | 06:28 |
magespawn | manual even | 06:28 |
Kilos | oh well thats good | 06:32 |
Kilos | oh you cable there | 06:33 |
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:35 |
Kilos | k | 06:40 |
Kilos | hi Tonberry | 06:43 |
Tonberry | hallo | 06:44 |
Kilos | hiya maiatoday | 06:45 |
Kilos | hi jrgns | 06:47 |
jrgns | morning K | 06:47 |
Squirm | stupid utf-16 encoded file :/ | 08:03 |
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:08 |
superfly | Squirm: so what's the problem? | 08:15 |
nlsthzn | the file is utf-16 | 08:15 |
* 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:16 |
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:17 |
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:18 |
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:19 |
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:20 |
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:21 |
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:22 |
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:23 |
Squirm | ok | 08:24 |
superfly | which is why converting it to ascii is both erroneous, and useless | 08:24 |
Squirm | ok | 08:24 |
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:25 |
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:26 |
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:28 |
superfly | Squirm: use chardet if you don't know | 08:29 |
Squirm | >>> chardet.detect("main.cfg") | 08:34 |
Squirm | {'confidence': 1.0, 'encoding': 'ascii'} | 08:34 |
Squirm | I think I ran it wrong | 08:34 |
Squirm | I see an example | 08:35 |
Squirm | 1sec | 08:35 |
Squirm | superfly: {'confidence': 1.0, 'encoding': 'UTF-16LE'} | 08:37 |
maiatoday | hi Kilos | 08:50 |
Kilos | wb magespawn | 09:25 |
Kilos | wbb | 10:14 |
Squirm | superfly: ok, so decode will decode into unicode | 10:16 |
Squirm | well, back to unicode | 10:17 |
Squirm | and if I use unicode("string") it will decode ascii into unicode | 10:17 |
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:18 |
superfly | Squirm: don't truncate the \n before decoding | 10:22 |
superfly | do you en/de-coding, and THEN strip unnecessary characters | 10:22 |
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:23 |
Squirm | so I took out the rstrip | 10:24 |
Squirm | UnicodeDecodeError: 'utf16' codec can't decode byte 0x0a in position 34: truncated data | 10:24 |
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:26 |
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:27 |
Squirm | BookName=Test Book | 10:28 |
Squirm | well | 10:28 |
Squirm | BookName=The Long Earth | 10:28 |
superfly | Squirm: if you open the file in a text editor, do you see physical "\", "x", "0", "0" and "B" characters? | 10:29 |
Squirm | nope, I see ascii characters | 10:30 |
Squirm | it looks like a plain text file to me | 10:30 |
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:31 |
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:32 |
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:33 |
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:36 |
Squirm | and it never worked | 10:37 |
=== confluency_ is now known as confluency | ||
Kilos | hey Jabberwocky | 11:46 |
Jabberwocky | good afternoon Kilos, how is things? | 11:46 |
Kilos | long time no see | 11:46 |
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:47 |
Kilos | http://bit.ly/WtOUPl | 11:48 |
Kilos | where you been? | 11:48 |
Jabberwocky | moving around, I don't have any mobile internet :( | 11:49 |
Kilos | ah | 11:49 |
Kilos | oh my peer got the flies | 11:54 |
Kilos | wb superfly mrs_fly | 12:50 |
Kilos | and warthe lurker | 12:50 |
Kilos | grr | 12:50 |
Kilos | Wraz, | 12:50 |
Squirm | superfly: got it sorted | 13:57 |
Squirm | thanks | 13:57 |
superfly | Squirm: can I see your final solution? | 13:57 |
Squirm | superfly: http://slexy.org/view/s20NuNrM76 | 14:00 |
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:04 |
Squirm | I forgot it was 12/12/12 today | 14:39 |
Squirm | :P | 14:39 |
Kilos | hehe | 14:39 |
magespawn | afternoon all | 14:39 |
magespawn | Squirm your paste expired, on purpose? | 14:40 |
Kilos | hehe he dont want others to have life easy | 14:44 |
magespawn | i like to have a look at what other people do, to learn, if they do not mind | 14:45 |
superfly | magespawn: all my code is open-sourced | 14:46 |
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:47 |
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:48 |
Kilos | date/time/boot options etc | 14:49 |
magespawn | get the update from manufacturers site Kilos | 14:49 |
magespawn | maybe check the battery | 14:49 |
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:50 |
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:51 |
Kilos | keeps going back to cmos settings wrong | 14:52 |
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:53 |
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:54 |
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:55 |
superfly | Kilos: I try not to mess with computer hardware, so you know better than me. | 14:56 |
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:57 |
Kilos | pc crashed same time as the 2 TB drive | 14:58 |
Kilos | they corrupted each other seems like | 14:58 |
Kilos | cmos checksum bad. thats what it says | 15:04 |
Kilos | grrr | 15:04 |
Kilos | eish inetpro jy was still vandag | 15:06 |
magespawn | if the chip is gone there is not much you can do | 15:06 |
Kilos | ya they not plugins like the old pcs | 15:07 |
Kilos | sigh | 15:07 |
* nlsthzn tests a new IRC client for Windows... | 15:34 | |
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:42 |
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:43 |
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:44 |
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:45 |
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:46 |
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:47 |
magespawn | later all | 16:56 |
Kilos | k magespawn | 16:57 |
Kilos | yo Vince-0 | 17:36 |
Vince-0 | Sup | 17:36 |
Kilos | same old | 17:38 |
Kilos | wassup smileyborg? | 17:38 |
Kilos | she dont come here anymore | 17:38 |
nlsthzn | good night all | 17:58 |
Kilos | sleep tight nlsthzn | 17:58 |
Kilos | see ya morrow | 17:58 |
nlsthzn | :) | 17:58 |
Kilos | hi smile | 18:51 |
Kilos | night all sleep tight | 18:52 |
smile | hi :) | 18:52 |
smile | good night :p | 18:52 |
smile | slaapwel! :) | 19:34 |
inetpro | goeienag ou grootte | 19:37 |
smile | dankie :p | 19:37 |
Symmetria | hrm | 19:42 |
* Symmetria eyes the myadsl article on tenet's new ceo | 19:42 | |
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:53 |
Symmetria | though the latest comment is the funniest fucking shit I ever read | 19:54 |
inetpro | by elvis presley? :-) | 19:57 |
Symmetria | yeah | 19:58 |
Symmetria | that was hilarious | 19:58 |
* inetpro tries to remember usenet | 19:58 | |
inetpro | that was ages ago | 19:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!