« first day (1858 days earlier)      last day (3094 days later) » 
00:00 - 20:0020:00 - 00:00

8:04 PM
I stayed up until 2:00 AM last night and I'm not nearly as blithering as I expected to be by this point.
 
I suppose there's still 90 minutes left in my work day to enter a sleep deprivation triggered fugue state.
 
DSM
Why up so late?
 
@AdamSmith Yup.
 
I don't recall any particular reason. I do recall a lot of reddit.
 
8:07 PM
I can't do that to myself or I'd fall asleep sitting straight up at work.
 
That is precisely the scenario I thought would occur.
Is it this lemon water I had for lunch and hated? Does hate sustain me?
No rest until all lemons are destroyed?
 
So, I think technology may have finally gone too far.
A cup that reminds you that you might be thirsty, because you're too busy to pay attention to your mouth.
Only $90.
 
DSM
Pushback: people are very bad at judging whether or not they're sufficiently hydrated. #notthatkindofdoctor
 
Guys. Smart Toilets. "Hey, I noticed you hadn't defecated in 2 hours, how's it going down there?"
 
Everything under "why do you need a sippo?" should actually be under the section "why do you need water? (90$ glass totally optional)"
 
8:11 PM
Instructions were unclear - I filled my Smart Bottle with vodka and now have alcohol poisoning.
 
Sippo, now sold outside your local AA meetings.
 
The cup itself does not confer increased physical energy, unless you are doing nuclear fission on it.
fusion? Whatever.
 
DSM
Fusion sounds comfier than fission. Let's go with that.
 
Hopefully it's cold fusion, because warm water is nasty.
 
Sippo, now with New Clear Vision
Energise yourself daily for only $90
 
8:15 PM
The only way it's worth $90 is if it refills itself.
 
with Gin
 
Also yes.
Do I need a seperate one for the tonic and lime? Or does it come pre-mixed?
 
what is the command to run python 3 again on Windows?
I thought it was like py-3.
 
@edwoollard py3
 
but I seem to have forgotten. Sorry people!!!
py3 doesn't seem to work.
 
8:17 PM
Hello everyone.
 
Yeah, it can get a little wonky if the path gets weird. I usually just do C:\Python34\Python.exe.
On another topic, this makes me glad I'm not using Python 2.
> CPython implementation detail: Objects of different types except numbers are ordered by their type names; objects of the same types that don’t support proper comparison are ordered by their address.
 
Same. On *NIX it's python3. On windows it's C:\Python34\Python
 
I'm here with a few questions. I'm a CS major and my intro to programming was in Python. Loved it but never touched Python again for 1 and a half years(where I used only Java in my classes and coded websites in PHP)
 
So '' > 1 == True, because 'str'>'int'.
 
Now, I'm trying to learn some advanced Python and build websites using it(probably on a Ubuntu) machine but I'm not really sure where to go from the basics.
 
8:19 PM
@nTuply DJango
 
The big frameworks are Flask, Django, and Pyramid. Pick one and do a tutorial.
 
DSM
@MorganThrapp: it was handy to sort lists of heterogeneous types but it introduced too many headaches.
 
django django django.
 
Late to the party but py -3 works on my machine (Windows 7). The space is probably important maybe.
 
I saw Django, Flask, etc. What about Pylons?
 
8:20 PM
Maybe you guys should suggest a tutorial? (Confessed ignorance of Django/Flask)
 
Thing is I only know basic Python, nothing advanced, i.e I don't know anything about sockets, protocols and stuff. So I guess I need to learn some advanced stuff before diving into a framework.
 
Neither do I
but django doesn't make you know that anyways
 
@nTuply Nah, most of that stuff is abstracted away behind the framework.
 
cheers guys @MorganThrapp @QuestionC
 
8:21 PM
it does have its own templating language
 
@Kevin That gives me Python 2.7.8
 
DSM
sockets aren't really advanced Python, though. That's just a, well, a thing.
 
I see. So I'll just have to write my own code without worrying about the library. Anyone used Pylons before?
 
@MorganThrapp How very unusual.
 
and you'll need to know stuff like inheritence
inheritance
 
8:22 PM
@nTuply That's Pyramid.
 
I've never even heard of Pylons.
 
nor have I
 
Yeah, I got the OOP down from Java. Maybe I'll need check out the Python syntax. I want to move from PHP.
Really?
 
Pylons apparently made Pyramid according to their site.
 
Wild guess: py -3 asks py to execute whichever Python executable it can find with the highest version number, and it doesn't know where Python 3 lives on your machine, so it uses 2.7.8 instead.
 
8:23 PM
> The Pylons Project was founded by the people behind the Pylons web framework to develop web application framework technology in Python. Rather than focusing on a single web framework, the Pylons Project will develop a collection of related technologies. The first package is the Pyramid web framework.
 
DSM
@Kevin: that's unfortunate. It should error on a 2/3 break.
 
Quora uses Pylons, that's why I was wondering about it.
 
@Kevin py -3 works and runs python 2.X for me
 
Unless I'm reading that wrong.
I would stick to Django. It's the most popular, so it's the easiest to get help with.
 
8:24 PM
(Note: I've never used any of the web frameworks).
 
Fair enough.
 
I mostly used Django, and moved straight to it from raw PHP
(ie no PHP framework)
 
I prefer my PHP lightly sauteed.
 
I'm in the same situation. I code raw PHP and I realized PHP might not be good for what I'm trying to do
 
I really like flask ... imho thats the best to work with ... theres no behind the scenes magic (well not much)
flask is soooo easy to get started with, and you also have tonnes of flexibility
 
8:26 PM
Flask is like Django but better for light weight projects AFAIK
 
What about customization though? Say something is not in the library and I need it. Is it easy to implement and improve upon the existing one?
 
Yeah.
 
@Firedrake969 And what about algorithm heavy ones?
 
what about them?
 
@nTuply what do you mean?
 
8:27 PM
if it takes 15 days to calculate it will still take 15 days to calculate
 
pYou mentioned flask is better for lightweight projects, what did you mean by that?
 
its easier to get setup and get something quickly returning
 
> Flask is like legos - bolt on what you want. Django is more like a finished complete toy
(how do I do a quote)
 
and of course Django's built in admin and ORM
 
8:28 PM
but django often has alot more than what you need ... and it does so much behind the scenes some errors can be very difficult for new users to troubleshoot ...
 
^
 
and no one really uses django's built in admin ... but their ORM is the nicest
 
I use it in dev a lot when I have to test migrations and stuff
 
the builtin admin is helpful for you when your developing
yeah ok :P
 
That's the thing. I only did an intro to CS in Python and I have been doing Java from my second semester till now(end of second yr)
 
8:29 PM
then use java if you want
 
Java is boring to write. :p
 
ugly*
 
personally i would rather use python but meh ... I dont understand the problem I guess
 
I didn't want to be blunt @Firedrake969 :v
 
8:30 PM
OP asked a question, commenter posted an incorrect observation, OP replied "oh of course, how obvious. I'll delete my post", and it's gone before I can interject. Life is full of tiny tragedies.
 
I mean it's a lovely language, but I don't think I would like to write long useless lines of code for a web app
 
@nTuply I did it for you, then?
 
Python seems to be the best for that
 
(it was Evaluation of variables obtained by execution incidentally. "integer" and "string" should be swapped in the comment)
 
That question was... Interesting.
 
8:32 PM
I get the feeling that people downvoted it for its gratuitous use of eval and exec, which seems unfair
 
How are you able to see deleted questions?
 
The code is bad, but that's orthogonal to the question being bad.
 
This thing is awesome :o
 
DSM
@Firedrake969: get enough upvotes. :-)
 
8:32 PM
don't make me feel bad
 
@Firedrake969 10k rep.
 
I remember I did something like that using Turtlegraphics(such a PITA waiting for it to finish)
 
@nTuply Yes but I want to improve it so you can move the camera around beyond the current edges of the canvas. This is necessary eg. if you want to draw a Pythagoras Tree - the squares need to be completely outside of the current viewport.
Also the tree would only use two squares, not three, so I need to make number of squares variable.
 
DSM
I like that tree.
 
8:34 PM
I think you could do a koch snowflake with four. Or one side of it at least.
 
That's pretty cool, it's the L-system right?
 
For a rather loose definition of "L-system", maybe. It does work on a system of replacing elements of a sequence with other different elements.
 
You need to invent your own pattern and call it Kevin's Triangle* (* bonus points if it doesn't actually involve triangles)
 
I see.
 
Although it uses a deque instead of a list, and tuples of scalar integer data instead of characters.
 
8:36 PM
And also add a zoom option. Go deep!
 
@Ffisegydd I did independently discover the Levy C curve before I discovered it on wikipedia many months later.
 
I've done that before: did you know that I invented cross validation?
 
Nice job. I also invented coroutines.
 
And I invented the JVM.
 
@nTuply I could form an unholy abomination of the above program and my existing Zooming Fractals project, but boy would it be a mess under the hood.
And I think it would only work if none of the squares overlap one another
 
DSM
8:38 PM
Are we boasting about our rediscoveries again? Skiplists.
 
If I look at that gif for too long I might become a victim of epilepsy
 
That hasn't happened to anyone as a result of me... As far as I know.
 
that gif is getting to me in a deep, emotional level
 
Trippy.
 
It won't happen. But apparently it does happen to people who have the problem. Apparently messing with lights as well can cause that. It's some scary thing lol
How to trip:
1. Open the gif in full sreen(not sure how you'll do that and resolution might be messed up)
2. Put some pink floyd.
3. look at screen and don't blink
 
8:42 PM
4. drop acid/shrooms.
 
5. ???
 
5. At your own risk. Never forget the line that will save you from a lawsuit in case some stupid kid actually go and does that
 
pre-cursor: make sure to immerse self in pillows and blankets fort
 
5. enter monolith, become star child
 
5. Learn to count to 6
 
8:44 PM
5. Invent numbers.
 
5 = 6 Illuminati confirmed!
 
Turn the 5 180degrees. It looks like a backwards 2. 6/backwards 2 is backwards 3. demrifnoc 3 efil flaH.
 
DSM
I was wondering who would be the first to go there..
 
Half life 3 has 3. Half life 3 confirmed!
I have seen the half life joke for quite a long time. lol
The following is spooky:
 
It's a common joke in the room.
 
8:49 PM
what happens when half life 3 is officially confirmed?
 
apocalypse
 
I'm pretty sure we'll have bigg - never mind.
 
I'll take a day off work and just poke around the internet.
 
There will be immediate signs that Half Life 4 could be confirmed.
 
I'll order all of it and then cancel my order.
 
8:50 PM
It'll turn out to be a re-make of 1.
 
It's fun to see kids rage. :v
 
@Ffisegydd There would be no survivors.... why gabe?
 
I worry that HL3 can never live up to the expectations that have accumulated over the years. Take Duke Nukem as an example - they had to start over every N years because engines and popular game mechanics and player tastes kept changing.
The world has moved on.
 
DSM
See also "Chinese Democracy".
 
Half life is kind of an old man's game at this point. It came out 17 years ago.
 
8:52 PM
I know not what system Half Life 3 will be played on, but Half Life 4 will be a mobile-based Bejewelled clone with microtransactions.
 
Hopefully microtransactions are life Candy Crush. We can always time travel for more...
 
Is there a way to do an optional capture group in regex?
 
Yes.
 
(capture_group_goes_here)+?
 
Eg, I want to capture str\d+\s?(;|\))
 
8:56 PM
The question mark is not part of the regex.
 
I think I misrepresented my question.
 
No, no it's just regex.
 
I want to match str\d+) or str\d+;.
Got it. Thanks for being my duck. :)
 
Umm... Kermit the Frog and Rubber Fizzy... ummmm
 
Phew, didn't have to actually learn any regex for this question. [matrix_dodge.gif]
 
9:02 PM
guys, new puppy!
 
I hate web proxies I decided ...
 
This one actually wasn't too ugly. Just replacing \bstr\d+(\)|;) with string\1.
 
my stupid application just fails with them ... and I am at a loss as to how to even debug it ... as it always works in house for me ... but fails almost every time for customers
 
@corvid huh? I'm being replaced!!!!?!!!!? 8(
 
awkward
 
9:07 PM
i feel like i just missed a part of this conversation
 
puppy is being replaced because corvid doesn't have a heart.
 
@RNar I think that's generally the "normal" way to feel here :p
 
@JonClements Yes, this dog is a pirate though
 
Consults SOPython Lore Cliff's Notes
 
ninjas > pirates
wait wait....this might start a war.
 
9:08 PM
@corvid am I bovverred!? huh? you bird thing you...
 
Consult Appendix B. Index of nonhuman users. Includes talking animals and abstract geometrical shapes.
 
is it just me or do all the GCSE students need to start learning how to research their questions before asking
like all their questions are always the same haha
 
You need to combine all RO Rings to unlock the vault to Appendix C though, which contains a prophecy that foretells the apocalypse.
 
Good luck with that, I dropped mine in the Mariana Trench.
It belongs to the fish now, or possibly James Cameron.
 
Luckily I actually made up foretold the prophecy, so I know what it says.
 
9:15 PM
Unluckily, carrying words of that power around in your head is not good for your mental state.
 
Which is why he whispers a little bit of it to his houseplant each night.
Natural pressure release system, that.
 
@davidism it's okay if you're drunk at the time I thought?
 
Yes. A hard strike to the head with a blunt object within 30 minutes is the other way.
 
For detailed information, consult Appendix D. Interaction of intoxicants and thaumo-semantic memes
 
@Kevin is there another book the only role of which is to serve as an index to the appendices in the current book?
 
9:21 PM
Yes, it's in the reference section next to "index of books that do not contain a reference to themselves"
 
2 messages deleted
Who needs one? :p
 
user559633
:(
 
mod abuse!
 
user559633
yeah seriously flagged mister i hope you're ready for my lobbyists in the 2019 elections
 
@tristan "lob"byists? ears perk up - ummm opportunity of tennis balls - ummm - could be good
 
9:31 PM
We should hold an "Occupy Kent" to protest him.
 
user559633
don't try the dog puns with me after deleting my art
 
@Ffisegydd ummm.... "OK" could be a bit of a confusing abbrev. though :p
 
10:07 PM
heya @rarspace01 and @Sebastian
 
Just taught an orientation for incoming entry-level employees
 
Sounds... errr.... interesting?
 
DSM
"We're a Python shop, newbies. Embrace the future."
 
Shouldn't that be "Embrace the cabbage."?
 
DSM
They may not speak Salad yet, which would leave them pretty puzzled. :-)
 
10:15 PM
non-tech employees. Store clerks :P
 
DSM
Clerks should also be Python programmers.
 
of the dozen in the class, 11 of them were bright and attentive
one of them was literally passed out in the back of the class. Zzzzzzzzz
I have no idea how to handle that.
 
DSM
Huh. I had students not pay much attention but that was usually in large classes where if you sat in the back and dozed off it wasn't much of a distraction.
 
10:34 PM
Yeah that's kind of how I feel about it. As long as they're not being a distraction, I don't really care
 
DSM
Time to flee. May all your students be conscious!
 
10:49 PM
humm, I think my python kernel because I am somehow being incredibly wasteful on memory!
could it be that I am creating a copy dataframe/other objects every loop?
which don't get deleted ...
 
11:11 PM
is there some context that is missing there?
 
heya @Joran and @ThomasOrozco
 
Air
super-ultra-meta-nocontext-star-boyz-cabbage
 
ah hi, I assumed everyone had gone to bed
do you mean me?
 
it's 3:13 on the west coast U.S.
My boss frowns upon me going to sleep during business hours
 
hah true
 
11:14 PM
@AdamSmith wait, you don't get nap time?
I thought everybody got nap time
 
I seem to be managing to make a 1gb data object become a 21 gb data object, until my python kernel dies under the strain :p
apparently naps are good for you
 
@Carl that's hard to diagnose without seeing code
 
ranks_monthly_list = []

for m_tuple in df.groupby('period_id'):
m, mdf = m_tuple
print(m)
ranked = do_ranking(df)
# ranked['period_id'] = m
#recode this to return a single data frame
oq_rank, aq_rank, value_rank, combined_rank, oq, aq, valn = do_wgting(ranked, wgts_dict)
tmp = pd.merge(oq_rank, aq_rank, left_index = True, right_index = True)
tmp = pd.merge(tmp, value_rank, left_index = True, right_index = True)
tmp = pd.merge(tmp, combined_rank, left_index = True, right_index = True)
tmp = pd.merge(tmp, oq, left_index = True, right_index = True)
 
Air
I've come here to express my rage at the new ™™™™ feature not providing adequate display real estate for joke roles, talk about how great it was that I was in Hawaii all last week (and you were not), and chew bubblegum.
 
so, its calling two external functions. But I ran these without storing the results yesterday, so I don't think there is a problem with those
I wonder whether I am somehow creating a copy of a data object and that is eating up the memory?
 
Air
11:16 PM
Oh by the way @Kevin I finished Blindsight, thanks muchly for the quasi-recommendation, and remind me never to get a radical any sort of hemispherectomy
 
download the free trial of pycharm pro and run it with profiling ...
 
Thanks, I'll look into that Joran
 
(note that you certainly dont need pycharm for profiling ... but its builtin so ...)
 
sure, I have pycharm. I just haven't been using it much recently due to playing with stuff in qtconsole and notebooks
tbh I should have thought of exploring the functionality of that more
 
11:39 PM
Is there a concise way to get a sequence of dict values using a sequence of keys?
I mean, a builtin, rather than an iterator.
For instance, myDict = {'a' : 1, 'b' : 2, 'c' : 4, 'd' : "Mama Luigi"}; myDict['a','c']; >>> (1, 4)
Kind of the opposite of dict.fromkeys.
 
Air
Ughhh. A track off of Jazz From Hell just came on my internet radio station and I knew it was Jazz From Hell before checking the playlist based on having bought the album from a used record store in the '90s, listened to it once, and thrown it away. So recognizable. So recognizably bad. Zappa, y u do dis.
 
@Augusta use operator.itemgetter('a', 'c')(myDict)?
 
@JonClements I'll check that out, thanks!
 
@Augusta or you could just write: tuple(myDict[k] for k in ('a', 'c'))
 
@JonClements That's what I'm doing now. :y
I was just curious if there was another way.
Or rather, what other (reasonable) ways there were.
 
11:49 PM
tuple(map(myDict.__getitem__, sequence))
 
@AnttiHaapala Oh, that'd do it, too, wouldn't it?
 
dont do that
please
your co workers will thank you in the future
 
@Joran or just not chase you out of the office right now? :p
 
One of the many merits of working alone is that you are never subject to review. <3
(I am being exceptionally facetious.)
Actually, wait, I can do better than that..
 
00:00 - 20:0020:00 - 00:00

« first day (1858 days earlier)      last day (3094 days later) »