« first day (2176 days earlier)      last day (2997 days later) » 

user6568562
11:14
Cbg !
user6568562
Yet another week ended like a champ. The race against being caught slacking is going well, guys.
If it's a race then you're trying too hard :-)
user6568562
That's actually true : D I'll work on that
user6568562
Dammit ! Work seems unavoidable
I'm sad that Swift got the glam of app dev while all Python has is Kivy
Atleast it's still limited to iPhone
user6568562
11:22
Well Python has Antti, you know. That's solace enough
No matter what people say, Kivy is sh0tty
I want a nissan gtr
It looks so un-native, takes ages to load.
I hate cars. All I have is a moped
mine is an old corolla
11:29
too slow
user6568562
Mine is a VW Caddy. Pretty cool, feels like a Golf front with a storage area for all the whisky bottles in the region in the back
I wanna get an entry level honda cbr
I'm at the mad house right now. Once I get to home I will try to scrape all my states vehicle number details
I'm at a net cafe near the mad house
I miss my house
user6568562
11:32
Every two days they give me anesthetic and give me ECT
They poke a plastic needle right into the nerve
@randomhopeful lovely
*vien
user6568562
@khajvah I'm sure you noticed the bikes' speedometers. AMG engineers sure love to burn their fuel efficiently
@randomhopeful yeah that's scary
but cbr300 seems to be a good entry level bike
and it's cheap
@Wally That doesn't sound like fun. But at least these days they give you anesthetic. In my grandma's day, they just gave her the voltage with no anesthetic. Does the ECT seem to be helping?
11:37
Kinda. I'm less violent towards my family now
user6568562
@khajvah Yeah, true. Especially if you won't use it for your daily errands
DSM
DSM
@PM2Ring:
In [8]: %timeit m = math.factorial(70000)
10 loops, best of 3: 135 ms per loop

In [9]: %time len(str(math.factorial(70000)))
CPU times: user 2.44 s, sys: 8 ms, total: 2.44 s
Wall time: 2.44 s
Out[9]: 308760
If memory serves they made some optimizations somewhere in the 3 series and I don't know if they were backported, though. IIRC you still use 2 mostly, right?
@Wally bicycle o/
@DSM I mostly use Python 3.6.0a0 these days, but it might be a debug build...
@Wally what happened?
11:42
@Wally I'm sure they're pleased with that. :) What happened? Did you get slack about taking your meds?
@PM2Ring Yes. I stopped taking meds
Then shit happened
How did I guess... :)
Yes, I know the meds are not fun. OTOH, getting chucked into the mad house & zapped every couple of days has got to be worse.
Yeah. LOL!
DSM
DSM
@PM2Ring: the deleted answer shows a similar time measurement to mine, so I don't think I have some hyperoptimized implementation. (I don't think cpython detects whether you have gmp or similar available at runtime.. or compile time..)
@Wally Anyway, you're sounding pretty good to me. I hope you're well enough to go back home soon.
11:46
Will be home in 2 or 4 days
yeah, having never had such a condition idk what kind of side effects the meds have, but, I am not sure if the alternative is better.
@DSM If CPython did detect GMP mine should also be fast: I tested it with gmpy and with mpmath (which uses GMP if it can find it) before I tried math.factorial
DSM
DSM
Wait, PM2R, you must be in some weird mode. It takes me less time to do the multiplications manually in a loop!
The side effects are bad, but you just have to deal with them
Atleast that's what I learnt
It looks like most of the time is involved in the conversion & printing. If I just do `a = factorial(70000)` without printing, then it takes 1.312s on Py3.6 and 25.007s
on Py2.6
DSM
DSM
11:53
Yeah, that makes sense given that it's much harder to print, but I still don't get why you're ten times slower than me. Mine is not a fancy laptop. (i3 @ 1.9GHz.)
Doing the multiplication manually in a loop is considerably slower: 23.606s on Py3.6
and 24.219s on Py2.6
@PM2Ring damn that Py2 is slooow---- ---fast slow
Hello everyone!!
@Evangelos cbg
does anybody here know about Django framework?
11:55
@PM2Ring interesting, factorial is still a built-in function in Python 2.6
@Evangelos more or less, usually less.
@Evangelos please read the room rules; TLDR: no need to ask for experts just ask your question.
sry
i am having trouble migrating to oracle
initial migration gives "name is already used by an existing object"
cant find anything online
usually people who use oracle really do not need to ask online :P
11:59
they tell the oracle corp "now, lets use your support"
but no luck
dont understand
but yes, yet another reason to not use the django orm :P
You can't not use django ORM if you are already using django
that's the worst part
@Evangelos which version of Django? I seem to have gotten this when migrating from django 1.5 to 1.8.
dont know i am just trying to do the initial migration meaning migration,contenttypes,auth etc but i cant get passed it
i tried with 1.8.8 1.9.9 and now 1.10.1
:)
12:03
migration system is messed up
@AnttiHaapala starred
which version would u suggest for oracle?
where are you migrating from and why are you migrating to oracle?
(just to find out the background)
we have oracle db here at work
if you are using Django, you won't get oracle's advantages, if there are any
@Evangelos NONE AT ALL ;)
12:06
i am just trying to make a simple crud and it has to be in oracle
Seriously, if you don't do something where you absolutely require Oracle then don't use Oracle for it if you can avoid it...
but when i create a project and try to migrate i have this issue which it bothered me for couple of days now
@ThiefMaster I know but i cant avoid it if it was my choice i would. :)
why do you managers want to waste money?
don't know mate
Managers don't act in the best interest of the company, they act in their own best interest. Maybe they're trying to burn through all of their budget by the end of the year so their boss doesn't say "you didn't use all of your budget last year so we'll cut your budget this year"
12:09
to make employers life more difficult i guess.
:)
I am trying it out on my end too, let me see if I get the same.
Or maybe they know the project is doomed and they're pinning it on an employee they hate so they have pretense to fire them when it fails.
my manager was happy that I used open source technologies everywhere
Or maybe they think that if they create a maintenance nightmare, then their boss will approve more funding to hire more programmers to handle the maintenance nightmare, thus increasing the size of their empire
actually they decided that the network info has to be in a good RDMBS and they chose oracle to feel safe
DSM
DSM
12:11
@Kevin: I still remember the first time I was at a meeting (in academe) where we legitimately sat around trying to think of things to spend our unused money on, for fear of losing it. I felt like I was in a Dilbert cartoon.
i love opensource man
There is in fact a Dilbert cartoon with that exact premise.
but in this case i cant do as i please
@DSM bonuses are always good things to do with the money
They end up buying a giraffe, I think
12:12
if the employees ended up spending less money than the budget, why not just give bonuses
DSM
DSM
@khajvah: unfortunately that would have been a tougher sell. :-)
Cabbage for all, but with a rhubarb chaser!
12:28
14 downvotes & self-deleted in 2m24s. Impressive. :) stackoverflow.com/questions/39791489/…
Yeah that was a silly one
user559633
morning chaps/chapettes
o/ tristan
> I ain't able to understand this part {(variable_name) :0}
Ali G in da house
12:36
I'm (never|constantly) surprised when people ask questions about Python without having gone through a tutorial :P
Tech mology - what is it all about?
@idjaw Very lazy. Questions like that are why we used to have the "Lacks minimal understanding" close reason. There were a couple of close votes using "no MCVE", which I guess kinda fits, but I'm not totally comfortable with it.
> Will computers ever be able to figure out 9999999999999999999 times 9999999999999999999?
stackoverflow.com/questions/39791596/… watch out though...OP is a script kiddie. danger danger
user6568562
12:39
@AnttiHaapala I hear you ! I went through different books using this "edgy" way of teaching. That book was the first one I tried because, as you stated, so many people are recommending it as an alternative to the spoon feeding (and equally non constructive) way of tutoring by *cademies.
@WayneWerner I was going to post a comment saying: "It means you haven't read a Python tutorial, because if you had, you'd know that's a dict", but I was too slow.
^^ same
user6568562
@PM2Ring I see, you're right. Sorry for remembering incorrectly [ :
@randomhopeful No worries!
user559633
12:42
Sometimes, when I'm very awake, I think about commenting, then stop myself, pondering "do i really care to have this discussion?"
@tristan I do that several times per day.
I just delete fully written posts/messages thinking "Nah, not worth the grief."
Same.
question to the people of yankeeland: you all have played the beer pong since you went to primary school right?
The questions most in need of comments also happen to be written by people I'm least interested in talking to
Thankfully, the other 993 times per day I think "Damn straight it's worth the grief!"
user6568562
12:44
@tristan Wise mantra, man. I'm a recovering professional self proclaimed Internet everything debater*
@AnttiHaapala My friends started playing in early high school but I didn't drink until 25 because I'm a weirdo.
user559633
@Ffisegydd I'm trying to get better at it.
Wow, 25
user559633
@AnttiHaapala Under which rules? Regional or international?
user559633
@randomhopeful Same, minus the recovering part.
12:46
@tristan any rules :d
@tristan Yeah it's understandable, you just need to buckle down and remember that you're right, they're wrong, and you need to tell them this.
It comes with practice.
we're going to try the beer pong the first time today...
We're having my farewell party here at the office, so that's why @AnttiHaapala is worried about beer pong :P
Then after all that expectation I discovered I'm allergic to barley or something idk and I get a stabbing pain in the jaw after three drinks
user559633
@Ffisegydd Easy for you to say, you're always right! runs out of room sobbing
user559633
12:47
@AnttiHaapala I've been known to pong a few brewskies.
@Kevin just only drink quarts
user559633
Beer pong is like keg stands: "all" americans are generally aware of it, but it only happens at specific kinds of parties. Which is to say, those with tuxedo dress, of course.
I think I've described before my plan to do a binary search on typical beer ingredients to see what, if anything, is triggering this reaction. Do they sell pure alcohol-plus-water suitable for human consumption? I need a base case.
@Kevin Gin.
also: what is the standard volume of each of the ingredients in a Long Island Iced Tea
12:48
I'm tempted to buy a nice bottle of rum actually.
user559633
@Kevin Start with beer brewed under the reinheitsgebot so you can control for additives.
user559633
@AnttiHaapala Haha, definitely.
user559633
Long Island Iced Tea, a.k.a. you decided to execute the "get shitfaced" plan
@tristan standard office party in Finland
IBA only says 1.5 cl * 5, that sounds like water.
@MorganThrapp knows everything about drinks right?
user559633
Long island iced tea is one part of all the booze parts, except for half that for triple sec (or cointreau or whatever 'flavoring' alcohol)
12:51
@tristan I know... but how much is the one part in one glass :D:D
user6568562
@AnttiHaapala Do you consider "at will" as a valid measure ?
@Ffisegydd but what if I'm allergic to... googles... Juniper berries?
Then you'll die like a man.
@randomhopeful I am just worried that
user559633
@AnttiHaapala IBA cocktails are designed for passive drinking, not partying. I'd use a standard jigger (and then split it into different glasses because that's 4-5 shots per drink)
12:52
tomorrow people ask why do I look like that and I say "I had one Long Island Iced Tea" and then people look at those IBA numbers and are like "wow."
user559633
It occurs to me that Antti shouldn't be allowed to be at the bartender station
user6568562
@AnttiHaapala Just add extreme to your sentence then
@tristan I am not :P
isn't it weird that whenever tristan arrives, an alcohol conversation magically starts?
@khajvah no,
12:54
k
I am just drinking here as we speak
and so is @IljaEverilä, @Sevanteri
I am trying to fix a broken JS code
top that
user559633
@khajvah i thought about that before. we just talk about whiskey a lot and when i arrive, it's ~start of work day for the eastern seaboard and about knocking off time for europeans
:@khajvah Working on JS too here.. :P
user559633
12:55
Same
@AnttiHaapala The only thing I know about Long Island Iced Tea is the Simpsons episode
Worst part: this broken JS is written by me
@khajvah I am trying to abolish all alcohol from the world, by drinking it.
that's a noble cause.
user6568562
I'm trying to abolish all sober randomhopeful from the world
user6568562
Equally noble
12:57
Hmm, you can get the file name of a file from the file object, right?
@Kevin .name, if you're lucky
.name can also be for example a file descriptor
@AnttiHaapala good man
too bad my laptop isn't equipped with an alcolock
Still don't understand how answer deleting works, but can this get cleaned up? stackoverflow.com/questions/39792038/…
one down, one to go
user6568562
You gotta love when Microsoft Excel launches non responding, man. He's like your weird uncle that you learned to be fond of
12:59
mission accomplished
morning everyone
morning @corvid
I agree with the commenter that those two answers aren't dupes of one another, because one uses slashes and the other doesn't. Neither one is very good, regardless.
backbone.js is like writing in C. I have to explicitly remove views to not get memory leaks
horrible
Backbone isn't very good. React is good, Angular2 has its quirks but it's fast
user559633
13:03
React is fine, but good lord is it a lot of initial work to get going and for each new feature.
elm-lang seems very nice. Learning curve just is quite Haskellish
I would switch from Angular 1 to Angular 2 but I have a fear of version 2 of a language.
I'll wait for Angular 3.
Does it? I don't think it does. Maybe just because I am super used to javascript so setting up webpack is just tedious more than difficult at this point
@corvid yeah I tried backbone not long ago and wasn't impressed
But it's pretty old by now
I've fallen in love with a good Yeoman generator now, really appreciate it.
13:05
@RobertGrant it's supposed to be micro-framework but it's too micro
It seems very laborious, I found
To be able to do yo angular:route some-route-name and have it automagically generate the controller, view, tests, and add the right paths to index.html and app.js is great.
Some way of linking SQLA models to backbone would transform it
I was pretty into Flor.by for a while but now I'm all about Trombopoline. See, I can make up pretend library names too.
13:05
I guess I could just write something that does that
I've used Flor.by.
They've got a great way of writing async operations.
user559633
@corvid Webpack initial setup + pure reducers + actions + component + view components
so I had the DJango's bloated experience and had to choose a JS framework and went for, what at the time seemed to be, the most flexible one
I've heard good things about Trombopoline as well, but I'm worried that they're just a fad.
Trombopoline is a hyper-lightweight framework. It's zero lines of code.
13:06
and in the end, both of my framework choices ended up being wrong
@tristan don't forget about setting up the store!
user559633
@corvid Yeah, exactly.
user559633
I'm still trying to convince myself that this is somehow "better" than just storage<->component
yeah that part sucks, but once it is up and running, it feels like actually writing real code without any of the overhead of "connecting" things like javascript is so bad at
user559633
It regularly feels like extra pain that only exists because I'm following someone else's religion (I very, very much to not care about ~~functional purity~~ in my html "rendering")
user559633
13:08
@corvid One function that dispatches/talks to storage and a payload that's not > 400kb?
user559633
idk, i'm still not sold that this is the "better way"
I've never taken the plunge of a JS-first page. Always rendered HTML and then used $something to transform it. So retro.
@AnttiHaapala Yeah, it's traditionally 1.5oz each of white rum, vodka, tequila, and gin with 0.75oz of your orange liquor of choice.
user559633
@RobertGrant Oh, you mean hydrating an isomorphic template server-side?
@tristan reticulates some splines
13:10
it's not necessarily "the best" way. It's like if you got a choice between a chevy with 100,000 miles on it, a broken down 70s American muscle car, and a subaru forester with 5,000 miles, there isn't really any "perfect" choice, but there is a better one
And I gotta say, made properly with decent ingredients, it's a surprisingly acceptable drink.
user559633
Not sure the car analogy holds up.
All it is really to say is that everything in javascript kind of sucks, but there are things that suck less
user559633
That's fair.
user559633
I think react without the grandiose opinions would be a great setup.
13:12
@MorganThrapp 1.5 oz :? :D
lol
user559633
@AnttiHaapala Yes. That's a jigger.
If language tutorials were cars, what kind of car would LPTHW be? ;)
that's 3 times as much as the IBA one...
The empty helmet is starting to weird me out, like it's the ghost of Tristan speaking to us.
@AnttiHaapala One fluid ounce is approximately 30mL
user559633
13:13
20 mins ago, by tristan
@AnttiHaapala IBA cocktails are designed for passive drinking, not partying. I'd use a standard jigger (and then split it into different glasses because that's 4-5 shots per drink)
Tristan's been dead for 10 years...
Yup! The IBA is blah.
Is that when he first touched JS?
user559633
@PM2Ring A rusty muscle car with "my other ride is your mom" style bumper stickers on it
Also, if you want to really make it almost enjoyable, replace the coke with cranberry.
13:14
"split into different glasses" :D
A Tesla.
@MorganThrapp or replace coke with vodka :D
user559633
@AnttiHaapala yeah dude, it's an office party, not a re-enactment of jonestown
@AnttiHaapala Wiki says an imperial fluid ounce is approximately 28.4 mL, a US fluid ounce is approximately 29.6 mL.
user559633
corvid, quit your job and come write JS for me for $equity
13:15
Python's vehicle form is a perfectly silent UFO with a 1950s futurism aesthetic.
$equity sounds like a variable in php, I reckon it's a trap.
user559633
@tristan I am asking for per glass mixing guides and you say 1.5 oz * 4 + 0.75 ... and then say different glasses :D
user559633
@AnttiHaapala Yes, because you need room for ice cubes, cranberry/iced tea/cola, and other things that go into the glass.
13:17
Why are you mixing per glass? Do you not have a bucket?
pfft who uses a bucket, we mix by the trough
@Ffisegydd whyy not :D
Depends how big your bucket is.
@AnttiHaapala These party cocktails are intended to be mixed in bulk and then divided. It's quicker that way...
I guess that bucket's pretty big...
13:21
An old trick of medical students was to make up a punch with standard ingredients, then boost it with pharmaceutical grade ethanol. This can be scary, because it ends up being a lot stronger than it tastes.
Speaking of punch, I highly recommend punchdrink.com/recipes/philadelphia-fish-house-punch
Dear lord is it delicious and dangerously strong.
Medical students have many interesting tricks. My pharmacist friend told me of an acquaintance who would give himself a saline drip after a night of drinking in order to avoid a hangover.
I wonder how hard it is to get a proper IV insertion when you're blacking out
user559633
@MorganThrapp Yes yes yes. All those old presidential cocktails are amazing.
@tristan I picked up amazon.com/Punch-Delights-Dangers-Flowing-Bowl-ebook/dp/… recently, and I want to throw a bunch of fancy parties just so I can make all those old punches.
user559633
13:24
I threw a christmas party and had a few punches going. A++ would recommend.
Brits in the 1600s knew how to drink, those recipes are insane.
Brits still know how to drink.
user559633
Trying to find the one that took at least 24 hours of prep
I've forgotten more about drinking than you'll ever know Morgan, most of it I forgot because I was drunk.
I mean, anything with an oleo saccharum takes 24 hours.
user559633
13:26
Brits in the 1600s knew how to make a drink recipe.
We had a drink every time we colonised another country. So smashed.
4000 liters of cocktail. God damn, London.
I know Portland Place, nice part of the city.
The Institute of Physics is at 76.
I'm pretty sure alcohol was invented before written language so it's safe to say that every culture knows how to drink
@MorganThrapp sounds like roman empire that went nut with hubris ...
13:34
... Possibly even the ones that ban consumption entirely. Possibly especially those ones.
Hi, what pckg do you use for nested config?
What's a nested config?
For example yaml
{'name': {'ip': 'value'}}
Example of nesting
user559633
I use one that I wrote
Most of the time when I need a config file I just make a config.py and require that everything inside it be valid Python syntax. In which case your example would be {'name': {'ip': 'value'}}
13:43
just something with safe getting
Then I just have to import config in the actual code. Couldn't be easier. (for me, not for my users who have to learn Python if they want to add an attribute)
What about saving to that file?
my program keeps crashing my web browser
@PM2Ring naturally :P
I was asking how much per glass :D
@Kevin I think it's not an option for me :/
user559633
13:45
@VeeeneX :| I'd list out all the things you want this config handler to do.
for a "dash of coke/cranberry"
(on a related note not drunk enough to lose in beer pong)
user559633
I generally wouldn't save to a config file from a running program.
International drinking games: the loser drinks the most
config files are for humans to modify.
Finnish drinking games: the winner drinks the most (most free alcohol)
13:46
@tristan Have you seen laravel config class?
user559633
@VeeeneX Yes....
So something like that
user559633
I feel like this is slowly closing in on "good luck, have fun"
xD
No :D
I've already exhausted my near-bottomless wisdom on the subject.
user559633
13:47
gl;hf
gg no re
user559633
gl nr 20
TIL: Slack will embed spotify directly into chat if you link an album

« first day (2176 days earlier)      last day (2997 days later) »