jrwren | use a global | 00:58 |
---|---|---|
jrwren | you writing an irc bot? | 00:58 |
jrwren | you could do nice things with **kwargs | 00:59 |
mrgoodcat | yes it's an irc bot | 01:00 |
mrgoodcat | mostly i'm just stuck out of ideas of what to do with it | 01:00 |
mrgoodcat | most of my ideas involve WAY too much talk in the channel == spam | 01:01 |
mrgoodcat | so now i'm just trying to find ways to make the code better | 01:01 |
mrgoodcat | but not nessecarily more functional | 01:01 |
mrgoodcat | rick_h_ waf cmaloney when is chc tomorrow? i always forget which one is the early one | 01:09 |
cmaloney | next week is early | 01:09 |
mrgoodcat | ok | 01:09 |
mrgoodcat | ty | 01:09 |
cmaloney | usually it's the last wed of the month | 01:09 |
rick_h_ | rgr, it'll be 8pm | 01:10 |
mrgoodcat | yea i always forget that | 01:10 |
jrwren | ya know what is really fast at all those function calls and those 10million dicts in a list to json? | 08:28 |
jrwren | pypy | 08:28 |
cmaloney | morning | 10:00 |
rick_h_ | morning | 11:27 |
cmaloney | Dammit. I was hoping that a particular request at work wasn't going through. | 11:38 |
cmaloney | But apparently it is, so whee! | 11:38 |
rick_h_ | lol | 11:48 |
cmaloney | I hate it when I lose those sorts of bets with myself. :) | 11:55 |
mrgoodcat | jrwren: well yea, switching implementations is cheating though | 12:55 |
jrwren | its not cheating! | 12:58 |
jrwren | you really think so? | 12:58 |
mrgoodcat | lol | 12:59 |
mrgoodcat | hey whatever works man | 12:59 |
mrgoodcat | jrwren: how slow is slow? | 13:05 |
mrgoodcat | for the json? | 13:05 |
jrwren | yes, the json | 13:29 |
jrwren | 1,000,000 dicts in a list. | 13:29 |
jrwren | 78s with CPython | 13:30 |
jrwren | some tweaks with simplejson and for_json can get it down to 68s | 13:30 |
jrwren | pypy - 11s | 13:30 |
jrwren | pypy - with same tweaks - 8s | 13:30 |
mrgoodcat | that is quite the improvement | 13:31 |
rick_h_ | JIT ftw for that kind of repetitive function calling | 13:32 |
mrgoodcat | i wonder if the new dropbox VM for it will be everything it's supposed to be | 13:33 |
mrgoodcat | jrwren: what about with marshal or pickle? | 13:35 |
jrwren | its likely the same | 14:07 |
Havenstance | could you guys look at this and see if you can make heads or tails of this apt-get error? | 14:53 |
Havenstance | http://pastebin.ubuntu.com/7315217/ | 14:53 |
bookiebot | http://is.gd/51akbC - Ubuntu Pastebin | 14:53 |
rick_h_ | Havenstance: go look in /var/lib/apt/lists/ | 14:55 |
Havenstance | rick_h_, I found the problem. I had a duplicate entry lines 21 and 25 of the pastebin | 15:01 |
cmaloney | JoDee's teaching a magnetics lab today | 15:21 |
cmaloney | and I have Insane Clown Posse's Miracles stuck in my head. | 15:21 |
cmaloney | specifically: https://www.youtube.com/watch?v=OvmvxAcT_Yc | 15:21 |
bookiebot | http://is.gd/Tv0lbQ - Fuckin' Magnets, how do they work? - YouTube | 15:21 |
jrwren | lol | 15:24 |
greg-g | why are magnet's bipolar instead of tri or quadpolar? | 15:39 |
rick_h_ | binary rules the world | 15:40 |
cmaloney | greg-g: Problem with this class is there's a bunch of things that students are taking based on faith | 15:41 |
cmaloney | because they don't have the experience with physics to handle anything more complex than "here's some iron filings" | 15:41 |
greg-g | rick_h_: but nothing in the math/physics says it couldn't have been trinary or quadary, it was, according to my college physics prof, "just one of those things that could have gone differently" | 15:51 |
Havenstance | so the boss waits until the server is in deployment to remove the encryption..... yay me, live removal whilest in production should be fun lol. | 15:59 |
Havenstance | how's everyone today? Haven't been around in a few days | 15:59 |
Havenstance | how hard would it be to write a simply program in python that would chown a file from root to the Users Group in like Python or something? | 16:27 |
jrwren | its 1 syscall | 16:28 |
jrwren | import os | 16:28 |
jrwren | os.chown | 16:28 |
Havenstance | hm. i'll try it | 16:28 |
Havenstance | the only way I can get wireshark on linux to run allowing me to save any files or access any directories is if i run it with root perms | 16:29 |
Havenstance | but then every file i save is openable only by root I cant touch it from winblows... | 16:29 |
Havenstance | ideally i'd save the file on the host machine and be able to go to the win machine and open it in a wireshark client there to read and/or print the contents of the files | 16:30 |
Havenstance | could I change the owner of the directory to something like $USERS so everyone could read and write to it with it being a network share drive without interfering with ACL permissions? | 16:31 |
Havenstance | one way to find out I suppose | 16:32 |
Havenstance | score one for me :) | 16:34 |
Havenstance | no need i just chowned the dir from root to user: | 16:34 |
MaskedDriver | http://imgur.com/r/funny/EAaIkZr | 16:38 |
bookiebot | http://is.gd/G0baRS - He gave a “Wuddup. Peep this.” nod to the cameraman. - Imgur | 16:38 |
MaskedDriver | wrong channel. Still hilarious | 16:38 |
=== mrgoodcat is now known as bookie_sentry | ||
cmaloney | I swear the thing that always bites me in the ass about python is not having __init__.py in a directory that I'm trying to load a module from | 18:32 |
=== bookie_sentry is now known as mrgoodcat | ||
=== mrgoodcat is now known as bookie_sentry | ||
=== bookie_sentry is now known as mrgoodcat | ||
=== mrgoodcat is now known as bookie_sentry | ||
=== bookie_sentry is now known as mrgoodcat | ||
cmaloney | Also: Apparently today needed a Hammond Organ. | 18:34 |
cmaloney | .np squeekyhoho | 18:34 |
bookiebot | squeekyhoho's current track - Howlin' At The Sea by The Grave Dolls | 18:34 |
brousch | cmaloney: That is fixed in Python 3.3 http://chimera.labs.oreilly.com/books/1230000000393/ch10.html#_problem_173 | 18:37 |
brousch | Well, sort of | 18:37 |
mrgoodcat | i use python 3.3 for everything and i still have to put __init__.py | 18:37 |
mrgoodcat | hmmm | 18:38 |
mrgoodcat | sys.path.extend fixes it? | 18:39 |
brousch | I guess it's not fixed, but you can exclude __init__.py to make namespace packages | 18:40 |
cmaloney | brousch: That's all fine and good but I'd like my hour back if you don't mind. :) | 18:40 |
mrgoodcat | i just tested it and apparently im just mentally challenged | 18:41 |
mrgoodcat | it is fixed | 18:41 |
rick_h_ | __init__.py is a good thing | 18:41 |
rick_h_ | it's your chance to fix the api for your module | 18:41 |
brousch | Maybe you should modify your editor to always add them for you | 18:41 |
rick_h_ | embrace it and use it and never forget :) | 18:41 |
cmaloney | rick_h_: I will, just after I find the person who put imports in the middle of code | 18:41 |
cmaloney | ;) | 18:42 |
rick_h_ | circular imports fml? | 18:42 |
cmaloney | Maybe. | 18:42 |
rick_h_ | or was I just evil and imported in the middle of code? | 18:42 |
brousch | For instance in Pydev, you add a new PyDev Package and it makes __init__.py | 18:42 |
cmaloney | I'm not sure if this was you or someone else | 18:42 |
rick_h_ | oh, in that case "those bastards!" | 18:42 |
cmaloney | Just having fun "porting" code from one system to another. | 18:43 |
rick_h_ | "little copy here and a little paste here and we've cargo culted bad code through all the code bases yay" | 18:43 |
cmaloney | copy of a copy of a copy fo a cpy og a cp of a crapy | 18:43 |
rick_h_ | "wow, how do we keep running into this bug?" | 18:44 |
cmaloney | ;) | 18:44 |
cmaloney | Though I fixed a bug that John was having in another piece of his code. | 18:44 |
* cmaloney doesn't believe the unicode hype. UTF-8 is enough for everyone. ;) | 18:45 | |
mrgoodcat | UTF-8 is the one true encoding | 18:45 |
cmaloney | Yep, which is why Windows and Excel use UTF-16 | 18:46 |
cmaloney | because fuck me | 18:46 |
mrgoodcat | do they really... | 18:46 |
cmaloney | Yep | 18:46 |
mrgoodcat | did you see the times' python module for working with excel? | 18:46 |
brousch | UTF-64 is what we need | 18:46 |
cmaloney | Because we haven't had enough byte-endianness issues this century. | 18:46 |
cmaloney | mrgoodcat: Need a little more to go off | 18:47 |
cmaloney | brousch: Right, because I won't be satisfied until we have the equivalent of a Sinclair ZX81 representing each characacter | 18:48 |
mrgoodcat | er NPR | 18:48 |
mrgoodcat | not times | 18:48 |
mrgoodcat | .bmark dyladan | 18:49 |
bookiebot | http://copytext.readthedocs.org/en/latest/ - copytext 0.1.1 (beta) — copytext 0.1.1 (beta) documentation | 18:49 |
cmaloney | Yeah, I just took a peek at it. | 18:53 |
cmaloney | Interesting. I would have thought openpyxl would have suited their needs. | 18:53 |
mrgoodcat | idk | 18:53 |
mrgoodcat | i've never really needed it so i didn't really care | 18:53 |
mrgoodcat | but you were just complaining about excel so i figured you might | 18:54 |
cmaloney | If it weren't for openpyxl I would have much more slitted wrists. | 18:54 |
brousch | Wow, this is awesome http://projectnaptha.com/ | 19:42 |
bookiebot | http://is.gd/Ew4BEH - Project Naptha | 19:42 |
mrgoodcat | yea that was a hot topic on hacker news recently | 20:25 |
mrgoodcat | maybe as recently as yesterday? | 20:25 |
brousch | :P | 20:27 |
gamerchick02 | Trusty Tahir in the house! | 21:47 |
cmaloney | woo woo | 21:47 |
gamerchick02 | yeah. did a fresh install and software audit last night. running like a champ. | 21:47 |
gamerchick02 | also got my macbook back from microcenter and managed to walk out of there without buying anything (a FIRST!) | 21:48 |
cmaloney | heh | 21:48 |
gamerchick02 | and woo woo for backups. | 21:48 |
cmaloney | heh | 21:48 |
gamerchick02 | no setup on xchat. | 21:48 |
gamerchick02 | just run deja dup and *magically* my files come back from my external drive | 21:48 |
gamerchick02 | oh and grats to rick_h_ for the bookie GSoC thing | 21:49 |
gamerchick02 | also back to chromium. i'm trying to limit ppas (again) | 21:52 |
gamerchick02 | not sure if i will be successful | 21:52 |
gamerchick02 | kernel updates? | 21:54 |
cmaloney | Yep. :) | 21:57 |
cmaloney | Welcome to Linux. :) | 21:58 |
gamerchick02 | hah i know | 21:59 |
gamerchick02 | this was easier to install than mavericks | 21:59 |
gamerchick02 | oh and i grabbed the mac iso and i'm gonna try it live on my MBA | 22:00 |
gamerchick02 | that should be fun | 22:00 |
gamerchick02 | ;) | 22:00 |
mrgoodcat | gamerchick02: ask rick_h_ but I think the current generation works better with the regular iso | 23:30 |
rick_h_ | gamerchick02: don't grab the mac iso, that's for legacy devices | 23:54 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!