« first day (2186 days earlier)      last day (2762 days later) » 

6:26 AM
Cabbage :-)
 
7:04 AM
cabbage yo
 
usa is so going to be wasted
 
7:28 AM
cabbage, team
 
 
1 hour later…
8:34 AM
Cabbage!
 
8:51 AM
@DimaRostopira please read the room rules sopython.com/chatroom
In particular, please don't link newly asked questions.
 
hm, ok
I see, you are very welcome to new comers
 
We're welcoming to those who follow our rules.
 
Some of us are even friendly to those who don't.
We have a saying in Yorkshire (where people are often held to be "cheap"): "Courtesy costs nowt"
 
Frankly, I don't see what was discourteous about my response at all, but whatever.
 
I understand, why you removed question, it's ok
but why the f you -1 my question?
 
8:57 AM
Nothing at all was discourteous about it - does everything have to be taken personally?
 
First rule of room - be nice
it's not nice
 
@DimaRostopira How was I not nice?
@holdenweb Apologies :) your message directly after mine could be taken as a rebuke.
 
@Ffisegydd you'll get to know me better in time
 
guy has inherited from BeautifulSoup, calling the constructor (that they omitted in error from the code)
bad pattern... but answerable -> "don't do this"
 
8:58 AM
@DimaRostopira You don’t know that. You cannot know that. So you shouldn’t just blankly assume it.
@AnttiHaapala Reopened, do your thing.
 
9:13 AM
@poke done
real xy wtf problem :D
 
hey guys
how can i convert an existing dataset of categorical (string) data to numerical data
im intending to use neural net libraries like tensor flow. but my dataset has categorical data. I believe neural nets do not allow for strings?
 
@Ming you've asked questions before, you should know to frame them better by now. What library are you using would be a good start.
 
It's sad that my lack of understanding of neural nets in uni has never been fixed
 
9:31 AM
yes. sry. let me rephrase.
I'm using tensor flow and Keras. I want to run a neural nets on my dataset. My question is : " my all my data be numerical? or can they be categorical? "
eg: must i convert my string data into numerics like this?
age, height, weight, location
[10, 140, 56, 'london']
[20, 112, 53, 'New york']
[10, 140, 56, 'boston']

[10, 140, 56, 22]
[20, 112, 53, 34]
[10, 140, 56, 12]
i converted 'london', 'new york' , 'boston' to numerics.
must i do this to run neural nets? or can i have strings in my dataset
 
@Ming You should look at the TF docs to find out, this is a very specific question on a very specific library.
 
but how about neural nets in general? @Ffisegydd
 
That's too broad for a Python room.
And probably unanswerable, some nets may allow strings and others may not.
But frankly, why don't you just try and see?
There's nothing wrong with experimentation. You already have your data - just try it and see.
You'll learn more that way than asking us.
 
yeah. guess will do that. just thought if someone knew about it.
thanks for the feedback
 
9:56 AM
washing-machine-repair-guy-just-left cabbage
 
Too broad sqlalchemy existing database query - DevC‎ - 2016-10-10 09:45:25Z
@AndrasDeak I hope you didn't have a leak
 
@IljaEverilä no, fortunately not:) Just some intermittent rattling that the repair guys swore must have been a bra wire. Because it's usually a bra wire. sigh
(the foreign body is no longer there, so they could only guess)
but bra wire.
 
@AnttiHaapala as in, please review this for reopening? :-)
 
cbg
 
o/
 
10:08 AM
cbg
 
cbg
 
I really want to ramble about the tyre fire I'm working on but can't. Frustrating.
 
 
have literally had a cafetiere full this morning
 
Amateur.
 
cbg
 
cbg
 
cbg
 
10:23 AM
@Ffisegydd Mate, it was just nescafe when i arrived.
I've upped this place's coffee game significantly.
 
grudging approval
 
you should take that, Withnail, it won't get any better than that
 
good thing you're not a newcomer:P
 
Dunno what you're talking about, after all what they said was:
2 hours ago, by Dima Rostopira
I see, you are very welcome to new comers
If they'd said "You're not very welcoming" well that would have been the issue
 
10:29 AM
I'm just catching up with the transcripts. I see we had some "interesting" visitors in my absence...
 
you're missing out on all this northwestern semihemisphere fun
 
I also noticed people talking about watches. Here's one of of my old favourites: a genuine atomic watch.
 
I must have missed the watches
I was probably sleeping, so it must have been a night's watch
 
sleep is for weak
 
Sleep is the best.
Unrelated to my need for literally buckets of coffee, of course...
 
10:35 AM
Did someone just say sleep for a week?
 
Mmmmm
When we went away on a city-break last year, first mini holiday without the kid, we literally slept for 13 hours a day. It was glorious.
 
god I so need a vacation
 
I came back 4 weeks ago and it feels like a lifetime.
 
So our founder was ranting over the weekend that lack of progress means I should withdraw "privileges" from the development team. Wondering how to get through his cluelessness, or whether this is going to be a continual battle. If the latter, I may just as well give up now, I suspect
 
10:37 AM
I havent had a true vacation for 2 years
when I don't go to work, I still have to study
 
@holdenweb How the progress is measured? Deliverables? User Stories? Issues Fixed?
 
@holdenweb Did you see that article in the guardian about working in startups? Seems very relevant. theguardian.com/commentisfree/2016/sep/26/…
 
@MartijnPieters as in reopened already
 
@PM2Ring amazing :-)
 
:)
 
10:52 AM
@thefourtheye And that's the gospel truth
 
@holdenweb :/
 
Sighs sitting waiting on IT unblocking my SSH access so I can play with the AWS instances I've spun up this morning. :-/
 
11:08 AM
IT unblocking the.....what gives?
 
don't even. it's a 'BLOCK ALL THE THINGS' approach.
So I had to get SSH unlocked on day one. I now have it unlocked... for a really small subset of IP addresses/existing servers.
So, you put up a new box to play with, and then have to get it added to the whitelist.
 
Very nice. Surefire way to avoid ALL THE SCARY THINGS ON THE INTERNET
 
Yep.
About ten times a day I think...
 
can't you summon Cthulhu on that one SSH channel?
 
yeah, i mean, i can route it through existing boxes, but faff
I want the Golden Key to the City of Gold
 
11:16 AM
Hi Guys! What can I do with the error which is caused by the third party library that exits the program in certain cases and doesn't support exceptions i.e I can't catch any?
 
I just did a horrible thing with __getitem__ :)
 
@arcanesorcerer Does it os._exit it? That behaviour doesn't sound right at all.
Does it crash or does it exit? If it exits, use another library:P
 
[Sorry - plannig meetingi ntervened]
We're using more or less classic scrum, with tasks estimated in Story points.
 
@arcanesorcerer To quote Elaine Roberts: "I think we should stab bad guys". :)
 
Last time I saw goto was like 25 years ago while playing with c64 basic :) — grubjesic 1 min ago
 
11:27 AM
Read that Guardian story: rings bells, but fortunately we now have outside investors and directors to who we are all accountable, so there may be a chance to change the ethos (from which I anyway attempt to shield my developers)
 
yes, that's a python question:D
 
Hah, that led me down the usual xkcd rabbithole, and the very relevant-to-my-coffee-point-from-earlier:
 
Hello, I used Pylean2 to construct a simple neural network which reads a file check if a line contain some string and 0,1 to signify true and 1,0 for false. I simply this tutorial gist.github.com/arngarden/6087798 the problem is that the result of my neural network is not predicting correctly or almost always give a value close to [1, 0] even through the match is found though. Why is that? thanks
 
I've fallen behind on xkcd... I quite like this one. I guess it's the same guy from #386
 
@PM2Ring lol true that!
 
11:38 AM
I'm unpicking someone else's version of that.
 
@PM2Ring YAK SH-A-A-A-A-A-A-VE!!
 
My favourite bit atm is where they've taken stuff from the database, it was obviously too large to process in memory. So, iterators? Nope, it all gets written to .marshal files in the local filestore, left there, and then parsed. Those files never get deleted, I have 100Gb+ of them.
 
reminds me of the github gitignore thingy on dailywtf
 
Canadian Thanksgiving cbg
aka no work today \o/
 
Canadian Thanksgiving should be called Sorrygiving
 
11:52 AM
Dude. Every day is Sorrygiving in Canada.
come on.
 
oh right:D
 
@idjaw Yes, it was a music gig. In theory, it's an open mic afternoon, but most of the performers are regulars who've had 5 years or more experience jamming with each other. I rarely play guitar at these gigs, I mostly play blues harp & do some back-up singing.
 
@PM2Ring That's awesome! There is an improv jazz bar I go to sometimes, that is just fantastic. When I went to visit some family in the west coast, there was a open mic for folk music (folk music is huge in that area).
I don't have the courage yet to play live :P
 
Yeah, I've only very rarely played live, even though jamming is fun, just because I know I'm "not good enough"
Of course being completely unschooled in music doesn't help
 
@holdenweb Yeah, I'm self taught as well.
I did learn how to read music when I was young...so I tried applying that when I was older to teach myself how to play guitar reading sheet music....but then I got impatient and jumped right in to reading chords to learn how to play <that_awesome_song_i_want_to_learn_how_to_play>
 
12:08 PM
@idjaw We get a fairly broad range of styles and skills at these gigs. Some players are top-notch, some are barely listenable, but we try to encourage everybody. Playing to an audience can be scary, but it's also awesome. You really should try to find somewhere that you can play in public where you won't feel too intimidated. Yes, it can be nerve-wracking, but the more you do it, the easier it becomes.
 
once your nerves are properly wrecked;)
 
@PM2Ring If I were able to find a place here that was that encouraging I would probably be much more inclined to try it out to start building that confidence.
 
You might find it easier in a little country town where people are often more laid-back than in the big city.
 
@PM2Ring That's exactly the vibe I got when I went to visit my family in the west. It was a small town.
Is there an obvious reason I am missing why numpy is being suggested here? stackoverflow.com/questions/39958095/…
 
because it's 2016, nobody uses jQuery anymore
 
12:19 PM
stupid me
 
but that's a typical numpy use case
matrix + python usually is
 
Apr 27 at 14:53, by davidism
Because "use numpy" is the Python equivalent of "use jQuery".
 
<3
that's beautiful. I almost want to copy that in to the comment of that question
Thank you Mr. Martelli for explaining exactly what I wanted to know about numpy: stackoverflow.com/a/994010/1832539
 
@idjaw that's half the important stuff
the other half is that numpy is compiled code under the hood
Note that if OP wants to extract the first column of their matrix, they'll need a list comp or a loop. Whereas it would be as simple as mat[:,0] for a numpy array
 
Wouldn't you just want csv for this? Does pandas give you more power at reading larger delimited files that typically you would use csv for?
 
12:31 PM
One interesting thing I did notice about going to jazz gigs is that my own playing definitely seemed to improve even just after exposure to new ideas. Festivals are great because you are immersed in it (and can sleep late)
 
^^ yes! Absolutely!
 
@idjaw what?
 
@AndrasDeak ugh...forgot to link the question...
 
wait for it.....sorry
 
12:35 PM
ok, it's not just me then
 
I guess it depends how much data you are dealing with
Maybe it's my background, but I never think to ever use numpy or pandas for anything. But I also never deal with obscene amounts of data, either.
 
12:47 PM
@idjaw pandas gives you the headers in a natural data-y format
print pipe_data['Time_(s)'] # print the Time_(s) column
from the answer ^
you don't have to keep track of header names and data, for one
pandas will also let you plot your dataframe with a .plot() method
 
I think of numpy and pandas less as being for dealing with large amounts of data and more as being smart with it
 
pandas also has pretty ballsy handling of missing data in the csv, that would usually break any simple parser
then again I'm not closely familiar with the csv module, nor pandas
I'm just being a smart-ass, as usual:D
 
@holdenweb makes sense. Ultimately, if you were smart with your Python code (sans pandas), you can achieve the same results?
@AndrasDeak never change
 
no risk of that
@idjaw sure
just more work to handle headers, handle groups, handle nans, etc
slice data, index into dates
 
@idjaw Certainly, but crunching big tables of numbers with native Python code is pretty slow compared to the speed of compiled code that you get from Numpy (and stuff that uses Numpy).
 
12:53 PM
^^ yes...I figured numpy would be the exception there.
 
>>> dfPrice[('A','2000-09-07'):('A','2000-09-14')].min()
that slicing of hierarchical indices is a bit nuts compared to native python
 
user559633
is it okay to ask if i can ask a question here cabbage
 
@tristan just cabbage
 
user559633
okay it's about the cabbage framework
 
Use jQuery
 
user559633
12:56 PM
@idj
 
user559633
can i ask you a question about jCabbage?
4
 
morning cabbage
 
you need to gtfo, newb
 
user559633
morning
 
12:56 PM
@tristan welcome :-) please read the room rules
 
@WayneWerner cbg
 
either too broad or unclear...
 
user559633
thanks @RobertGrant
 
> I'm sending byte string of a zip file from client side using JSZip and need to convert it back to zip on server side.
I give up. I'll just compress the file from client side instead. Thanks. — Tahreem Iqbal 9 mins ago
...
wat?
 
giving up and just doing the thing you asked for help on shows a certain amount of fortitude.
 
1:06 PM
@holdenweb questions like stackoverflow.com/q/39946810/344286 are why seeing the deleted questions are awesome :)
 
that's just a case of
user image
3
 
Too bad there's no CV reason for that ;)
 
senseless disruptive garbage can be flagged as abusive
 
@tristan I was hoping for a diatribe about how unfriendly this room is, but you're welcome :)
 
@WayneWerner I left a comment. If the OP doesn't clarify what the actual data is, I'll vtc as unclear.
 
user559633
1:18 PM
@RobertGrant got bored
 
@idjaw the martelli numbers are low
 
@AnttiHaapala what do you mean?
 
@idjaw on 64-bit platform, py3, even a single float is 24 bytes
now if you just could do with 4 byte floats (single precision, as martelli suggests), then numpy array takes 4 bytes per item, but Python list 32 bytes = 8-fold increase.
but then the speed is more like 10-100x even for things like sum()
 
@WayneWerner It turns out that the OP has Base64 encoded the file. Pity they didn't mention that earlier...
 
Of course they do :P
 
1:32 PM
@AnttiHaapala Thanks for the clarification on that.
 
the reason is that each python float is stored indirectly; then __add__ needed for sum is a slot method that is called in a complex manner, and the result must be stored in new float object...
whereas sum() for a numpy array will be optimized by the compiler into a tight SSE assembly loop...
 
I just happened to answer a vectorization question, OP says 100x increase in speed
native double loop into numpy array broadcasting and sum
 
@AnttiHaapala You're making me read more now to learn more details :P
Interesting
> There was a desire to get Numeric into the Python standard library, but Guido van Rossum (the author of Python) was quite clear that the code was not maintainable in its state then.[when?][citation needed]
 
is the BDFL a NumberHater?
 
it is a good thing that it isn't in the core
 
user559633
1:42 PM
Should I start using numpy and/or pandas/etc?
 
quite big
@tristan numpy, yes
 
@tristan only if you need it
 
pandas... well... who cares
 
hey, pandas are surprisingly intelligent
 
if you need to crunch arrays of numbers, use numpy
 
user559633
1:42 PM
I'll wait for Pand B
 
user559633
Cool, I'll start using numpy then, I guess.
 
\o/
 
even very simple array problems are often much easier with numpy
 
user559633
:33385346 oh sorry, being in earnest
 
hehe :) ok
I had my jNumpy ready to go
 
1:44 PM
@tristan if you don't need to crunch arrays of numbers, do not use numpy.
 
user559633
What about for very frequent tree traversal / path algorithms?
 
I find pandas to be useful for tables of numbers
or data
but mostly numbers
 
@WayneWerner i.e. what it's for?;)
 
Yes, pretty much :P
 
pro-tip: import pandas then just use pandas.pandas.pandas.pandas.pandas.np
 
1:47 PM
Is that a variation on the theme "badger badger"?
 
wasn't; now it is:D
 
TIL I was hired as an iOS developer
 
...how long have you been there?
 
user559633
day 173 of suburb-city life: the natives continue to confuse and infuriate me. one has purchased a device that makes loud a ringing/chiming noise when a light breeze is present. i do not understand why you would purchase a device intended to annoy others or alert surrounding life forms of a very minor environmental event
 
omg
So high on my list of 'reasons to purge various seemingly abitrary members of my local area'
 
user559633
1:51 PM
i hate the suburbs, good lord.
 
My in-laws have a neighbour who has what can only be described as a 1970s discotheque in the shed at the bottom of his garden, complete with flashing lights and discoball.
 
@Withnail 1 month, they said "alright you ready to work on the ios app?"
 
It's on 24/7, regardless of whether there's anyone in it. screw the suburbs.
:D
 
user559633
it's almost worse that the people are so nice -- i know the neighbor that has it and he's very pleasant, but apparently just wants everyone around to listen to a clanging noise at all hours now
 
The trick with the suburbs is to rub people up the wrong way e.g., with a cheese grater
.
 
1:55 PM
@tristan I stayed away from that part of Montreal because of the amount of houses in that area of Montreal that have that.
 
user559633
It seems like the people here are so bored with their own lives/relationships that they express their discontent through buying things/obsessing over things that don't matter.
 
garden gnomes, wind chimes, bird feeders
bright lights that go on at night blinding you in your bedroom
 
at least gnomes are silent
 
are they??? I've seen the movies....
 
user559633
yeah, my neighbor has been feeding birds and they just shit all over the cars in the neighborhood, which i didn't realize destroys paint, but as i work all the time i didn't see the excrement on my way. i have parts of my clearcoat ruined. hooray.
 
user559633
1:56 PM
thanks neighbor for feeding garbage birds so they can cause thousands of dollars in damage to my property
 
our property company had to send out a missive asking the downstairs old lady to stop feeding the pigeons, as not only were they damaging the cars, several of them had died and clogged the gutters. \o/
 
pigeons - natures winged rats
 
exactly. vermin.
 
user559633
i wonder if it's a generational thing to be wasteful and mindlessly infuriating to everyone around you
 
More on topic - anyone recommend any resources on setting up test/staging databases that replicate the live data? I know I can do it, I'm just wondering about best practice, and handling migrations, etc.
 
user559633
1:59 PM
my parents are the same way with spraying chemical cleaner on everything, putting out windchimes, and watering plant species not native to the area
 

« first day (2186 days earlier)      last day (2762 days later) »