« first day (2172 days earlier)      last day (2776 days later) » 

12:08 PM
@Andras Can you provide an example?
 
You should ask for a [mcve]
;)
 
I'm probably abusing it; my file looks topologically like this:
  0.546262263191D-02  0.671627065930D-02  0.788292819879D-02  0.895975892036D-02
  0.994400793543D-02  0.108328097987D-01  0.116234119921D-01  0.123131290172D-01
  0.128993550893D-01
I'm doing a lot of work in the hopes of sparing a little on in the end:P
fortran-y D notation makes numpy break by default, so I wanted to convert those Ds to Es
for that I wanted to use converters in np.loadtxt, but that 1. won't work with a defaultdict due to zip and 2. breaks with an indexing error for a proper dict case:/
I'll just use genfromtxt, probably
 
Oh Fortran
 
Hmm...and it's not because of my partial line. Might be a bug. I'm looking at /usr/local/lib/python3.4/dist-packages/numpy/lib/npyio.py and can't see how it tries to take my converters dict into account properly
 
If np.loadtxt will take a file-like object you might get away with a generator doing text substitution ...
 
12:14 PM
that's exactly what it does, for instance it works with StringIO
I just assumed there should be an easy way of doing this:)
> TypeError: 'str' does not support the buffer interface
that might be it
 
@AndrasDeak ...
 
bytes vs strings?
 
The more I listen to Ariel's song about how she wants to dance on the surface, the more I think that Disney didn't consider how much more freedom of movement for dancing etc a medium like water would afford
That is all
 
@holdenweb No, I think it just fails to convert the fields to float by themselves, decides they should be strings, and somewhere nearby gives up:D
 
Ho, hum
 
12:29 PM
Hi all, trying to get importlib to behave with MPI, but currently I'm getting errors about my modules not being pickleable. I was able to get it to work with MPI before when I was using relative paths, but relative paths are no longer possible (I have to load by file name)
 
cbg, Is it possible to disable print statements from 3rd party libraries?
 
@ChillarAnand And do you want to keep "your" print statements?
 
@RomanLuštrik Preferabally yes
 
I seem to be on a yak shave. Is anyone familiar with enabling sqlite3 support on Linux Python builds, please?
 
Because if you don't, there's an easy solution of writing to os.devnull.
 
12:32 PM
Sorry about the on-topic post
 
@holdenweb Yes, in the sense that I've built python before now and successfully gotten sqlite working.
 
@holdenweb congrats on the 61.8% :)
 
61.8%?
 
Actually, let me ask a more basic question: I want my users to be able to override individual python files with their own. I currently load the modules dynamically via importlib. Can I simply add their local paths to path to override? Do they need to write complete modules to override?
 
Ah, you mean cousin Jeremy ...
 
12:36 PM
And what the heck do you think you're doing asking a Python question in the Python room!? You should know better by now :p
 
Times like this I miss Zero D:
 
@RomanLuštrik Melon
 
So i did apt-get install sqlite3, which I thought would enable setup.py to find what it wanted, but alas no
 
@holdenweb oh "cousin" right right... of course...
 
@holdenweb so that appearance comes from genes
@JonClements Jeremy is a surname, obviously.
 
12:38 PM
Easy to tell us apart - I'm the urbane, well-groomed one (so $deity help him)
 
Ah my bad @holden, I assumed you meant building Python, not building python libraries. Probably can't help as much in that case.
 
Ah, right. Yes, building 3.7.0a0
 
sqlite is built-in
 
@PM2Ring we both agree there :)
 
@holdenweb did you need sqlite3-dev ?
 
12:39 PM
@holdenweb @poke in case you're interested: I switched my Ds to Es outside python, and now it gives a clean error about "Wrong number of columns"
 
a sec...
 
Yeah you'll need *-dev I think (or I had to when building 3.5)
 
@holdenweb you probably want apt-get install libsqlite3-dev?
 
apt-get doesn't find one :-(
 
I always try *-dev
 
12:39 PM
or something like this
 
ah. Lib. Because naming
 
yeah, I didn't do anything special to enable it per se
but it works in my 3.6
 
I think my experience of building Python (wanted 3.5 before it had a package available) was forgetting to install some dev libs and specifying a compiler option or something...
 
No neither did I, I just had *sqlite-dev installed IIRC.
 
libsqlite3-dev
 
12:40 PM
if you have the devs installed, then the configure script will recognize it and enable it by default
 
There's a quasi-hard to find SO post about building Python. It should be a canon question if it's not :P
 
@WayneWerner ./configure && make && make install :P
 
(i.e. it actually has the correct dependencies listed for ubuntu)
 
@poke though, better install with prefix.
I put mine in /opt/ in a suitable directory
can remove the crap with a single command.
 
I use make altinstall I think, but yeah it's pretty painless.
 
12:41 PM
@poke ahhh... been looking for you - if you've got the time - someone wants to pick your brains about the German IT market :)
 
someone..?
 
@poke That's not (technically) how to build & install, that's just running the command that does the build & install :P
 
@WayneWerner So what would you want to see then?
 
Where to poke the needle on your HDD. First off I'd want to see how to create a HDD by hand.
 
... to see how to create a hand in the first place would be NSFW.
 
12:44 PM
What's in the aforementioned question. "Here are the dependencies you need to install to get a fully operational battlestation Python installation battlestation"
 
Define "fully operational"
 
You know, with SSL, ensurepip, sqlite3, tkinter... those kinds of things
 
Python isn't fully operational for me without ATLAS and BLAS.
 
@FlorianMargaine you nailed it exactly - thanks, I'd have been stabbing around for hours
 
@Ffisegydd are those included batteries?
 
12:46 PM
Ahh you said "fully operational", not to do with stdlib or whatever :P
 
@WayneWerner I need neither of those for a fully operational battlestation
 
@poke Apparently I battle in different systems than you ;)
 
I'd love to have a decent Linux box at home D:
 
In any case, I think configure should tell you properly what dependencies it needs
 
"greatest common denominator" of the stdlib
It tells you what dependencies it needs, but not how to get them. That's the problem.
 
12:48 PM
But that totally depends on your operating system.
 
(I'm not arguing that it should, just that we should have that resource available and easy-to-link)
 
"Now witness the firepower of this fully armed and operational battle station"
>>> from deathstar import maincannon
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sheev/projects/deathstar/maincannon.py", line 32412
    print "WUUUUUUUuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuUUUUUMMMMMMMMMMMMMMMMMMMMM"
                                                                            ^
SyntaxError: Missing parentheses in call to 'print'
fffuuu
 
Is that a 3.6 error?
 
3.5 or 3.4?
It's been around a while
 
12:50 PM
3.5 IIRC
 
It's pretty
 
143
Q: What does "SyntaxError: Missing parentheses in call to 'print'" mean in Python?

ncoghlanWhen I try to use a print statement in Python, it gives me this error: >>> print "Hello world!" File "<stdin>", line 1 print "Hello world!" ^ SyntaxError: Missing parentheses in call to 'print' What does that mean?

or actually...
 
Shouldn't that be: DesignError: we really should not have put the exhaust pipes here? :p
 
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print "I feel pretty"
  File "<stdin>", line 1
    print "I feel pretty"
                        ^
SyntaxError: Missing parentheses in call to 'print'
Richtig!
 
⚘ python3 --version && python3 fun.py
Python 3.4.3
  File "fun.py", line 1
    print 'hi'
             ^
SyntaxError: Missing parentheses in call to 'print'
3.4 at least
 
12:52 PM
@RobertGrant "win32" hey? :p
 
@WayneWerner wrrooong, 3.4.2
 
@JonClements FTWin32
 
I remember Nick writing that Q and people trying to close it
 
alrighty then, lol
 
Now I'm in enormous debt, I was thinking about buying a dev laptop and shoving Linux on it
Any recommendations?
 
12:53 PM
@Ffisegydd and even more sighs when Nick decided to make that into a community wiki.
 
@RobertGrant You could just buy one preinstalled
 
@RobertGrant Mac.
 
@RobertGrant Go for a 19" inch, dual graphics card, 2x2tb SSD's and 64gb RAM...
 
If you're gonna be in crippling debt, you might as well do it in style.
 
12:54 PM
@Ffisegydd I'm not sure whether a raincoat counts as style?
 
@RobertGrant here in finland everyone used to get the mortgage loan for 110 %...
 
You'll be a great dad.
 
reminds me of a guy I worked with who was most likely lying about almost everything (this is the guy who also used three lists to remove one element), who spent quite a bit of money on things like a big effing gaming laptop
 
@Ffisegydd er I am a great dad, biznatch
 
Morning cabbage.
 
12:56 PM
Not to be confused with a college buddy who bought a gaming rig(?) for the Cuda. His power brick was the size/weight of my laptop.
 
@MorganThrapp cbg
 
my current laptop is my most expensive computer, home appliance or anything such, so far.
 
@RobertGrant pcspecialist.co.uk/notebooks/vortexVI-17 - looks sweet... just throw in some SSDs and more RAM... boom
 
It was impressive as heck when all four of the fans kicked on when he was thrashing his CPU
 
I guess I should buy a new desktop soon...
 
12:57 PM
@JonClements thanks
Although the boom sounds bad
 
too big
should be foldable
 
Not sure the styling of that is really me, but I suppose I don't care about styling that much
 
Looking through the transcript and see @ffisegydd coin the word "pandathic". Sounds like a description of the spread of disease.
 
oh well... you buy it - I'll trial it for a bit just to make sure, yeah? :p
 
Is boom the sonic boom? Or the sound that your wallet makes as it turns into a black hole?
 
12:58 PM
@JonClements oh thanks!
 
@JRichardSnape Yeah, symptoms include DataFrameitis and pivot_table rashes.
 
@JonClements they've got 4T ssd's already.
 
@WayneWerner Throw in the SSD's and more RAM and it's definitely the later :)
 
The pandathic spread of cargo-culting was a sight to behold.
 
12:59 PM
@AnttiHaapala well yeah... but 2 is better than one or something...
 
Totally irrelevant to the discussion at hand, but I can say that the crêpes are definitely better cooking with the butter in the batter
 
@JonClements you can have 2x4T in that vortex...
crepes reminds me, @idjaw have you eaten bánh xèo?
 
that looks delicious
 
ofc because I took the one from google img search that looked the most delicious
 
morning everyone
 
1:04 PM
Which one looked the least delicious?
 
@AnttiHaapala I can - awesome... who has a spare credit card or three? :p
 
@JonClements surprisingly my first attempt was less than 10k€
 
@JonClements Just action off your spare kidney
 
though I'd be very angry at my credit card co's if any of them allowed me to buy that ...
 
You do still have one of those, right?
 
1:06 PM
@WayneWerner yes he has one kidney but 0 spare.
 
cbg all long time no visit. Hmmm .. pandathic .. Well then there must be a "pandiolithic" ... as in the pandiolithic era .. the age of pandemonium beginning early 21st century around 2017
 
Or would that be the end of Pandas and the ushering in of $CHALLENGER?
 
@WayneWerner Well... I may have misread the recipe for a chilli con carne when it said use "kidney beans"... umm...
 
So which member of the family did you use?
 
1:08 PM
Didn't think that "pandathic" really cut it as a term. I think I'd go for a neologism: pandacious.
 
let me find the meme pic that my wife sent on the day of iphone 7 introduction
 
pandacious .. mm .. yes. nice word.
 
@holdenweb I think "pandathic" works - definitely sounds likes Fizzy after a Gin or two :p
 
@Cam_Aust As in, "That is one pandacious computer"?
 
1:09 PM
spacious pandas with arrays on into infinity.
@WayneWerner OK yes.
 
I see the on-topic discussion lasted about as long as expected :p
 
@JonClements err topic? (chuckle)
 
user6568562
Cbg everyone ! So glad the worst part of this Monday is forever behind me. Man, time is sweet, sometimes
 
The worst part of every Monday lasts 24 hours
 
@AnttiHaapala yes!!!! So so so so so good
 
1:16 PM
@WayneWerner Wiki link wow really, that was daring. Reminds me of the story of remote PNG tribes where canablism was still practiced when exposed to western supermarket. Cans with picture of baked beans on opening has baked beans. Cans of fish had fish. So jars with babies on the front must have ... these westerners very advanced have everything in jars to buy. So street legend rumor has it.
 
user6568562
@tristan Dude my ISP betrayed me yesterday : / Right when I was about to post some giggle-gold : / Hope it was as cool as I hope it was
 
The second 24 hours are the worst part too
 
If there is one thing I would spend money on if I had an unrealistic amount of money are just chefs from around the world to make me food. That's not asking for too much right?
 
user6568562
@khajvah There are worse worsts than others, you know. Like when you're able to wake up and start your day but not your car
 
@Cam_Aust I think I've heard that rumor. I doubt its veracity, though. Sounds like something a cartoonist would make up
 
1:18 PM
Do you know OOP in python, is it good, when should I use it?
etc.
 
user6568562
@WayneWerner Eyyyy Double W, what up [ : ? Had been a while
 
@linuscl etc?
 
advantages of oop in python
 
CABBAGE @randomhopeful <metal growls>
 
I've heard the same "natives think baby food is made of babies" story, but it never mentioned cannibalism, just illiteracy
 
1:19 PM
@linuscl this is not the correct place to ask that question, I suggest you read your book
 
@idjaw No not at all. If thats your fancy.
 
It's been a few days for me... going golfing with le dad today, hooray for scrambles!
 
I wager 5 quatloos that Snopes has a full article on the matter
 
I wouldn't take that wager
 
@WayneWerner When i heard it, it was they, local fellas, were confused and asked the question. But yes, I would question the veracity.
 
user6568562
1:21 PM
@WayneWerner Nice : D
 
My quatloos remain safe for another day.
 
short visit alios rbhb
 
ergoernglkewrgo8ybo8wuhfjh oi43
I'm going to eat my keyboard in a minute, out of sheer frustration.
 
I have a question
 
@idjaw good... goooooood...
 
user6568562
1:27 PM
@Kevin To be horrified they must've thought it plausible for their Food Agency to have specifications for grinding up babies
 
so in my web application, there are many pages which have weird and page-specific data. Right now, I don't keep different data structures for each of those pages. I retrieve general data and then construct them when serializing which results in unneeded queries.
 
@IntrepidBrit I wouldn't recommend it. While the PCB can be tasty, the keys are a bear to pass through the digestive tract
@randomhopeful Oh ho ho, those silly Americans
 
Damn. I guess I'm going to have to tame inner joins in sqlalchemy then. Eating my keyboard seemed more appealing.
 
my question is, is it better to have different specific data structures or have general ones(note that these result in unneeded queries)?
 
user6568562
@WayneWerner Faking moon landings, spreading computer viruses, now grinding babies ! Damn Uncle Sam, why u so villain ?
 
1:29 PM
@IntrepidBrit worst case you could just use sa.text
 
@randomhopeful What's most chilling to me is the story ending with "... Naturally, the sales were terrible" as if to suggest that the shoppers thought babies were being ground up, and simply shrugged and didn't buy the product.
You'd think there'd be, like, a protest or something
 
user6568562
Hahaha, so true : D Well it ain't MOY baby
 
@randomhopeful Just one more reason to vote Fridge in 2016
#NotAllShoppers
 
user6568562
: D I would vote for my fridge, always keeping that beer cold.
 
@idjaw bánh bột lọc
tapioca dumplings with shrimp inside
 
1:36 PM
@randomhopeful Global warming? Fridge can #MakeAmericaColdAgain
 
@AnttiHaapala viet food is great
 
@AnttiHaapala yeah!! I've had that too!!!
 
We have a surprising amount of Viet food around here, because of encyclopediaofarkansas.net/encyclopedia/…
 
you don't have this:
 
user6568562
@WayneWerner This is hilarious : D They should change "Alcohol level" to "National debt" and "0°" to "18.92 trillion dollars"
 
1:40 PM
 
Golf rhubarb
 
those are much better than some shtty chicken wings :d
 
user6568562
Oh I'd take Cholesterol any day over Alien Food. And by alien food I mean grilled aliens
 
1:43 PM
@WayneWerner sa.text?
 
I love grilled aliens
 
There seems to be a lot of stackoverflow hate going around these days
also cbg folks!
 
?
cbg
 
@IntrepidBrit hows my favorite scotsman doing?
@idjaw check HN and Reddit.
Lots of SO hate.
 
@idjaw are you part-vietnamese?
 
1:48 PM
Yeah, that one that was on the HN frontpage was a lot of meh.
 
Link?
 
user6568562
@AnttiHaapala I was joking, man [ : Don't mean to be a dick, although I was a bit in retrospect.
 
A similar article gets written once per year.
 
1:50 PM
Reddit and HN shit on SO pretty regularly. Nothing new here.
 
Yeah, that one I linked is actually from 2015 but was on the front page of HN this morning again.
 
Wow that's a lot of links...
 
Kevin's reddit one is the reddit conversation & link to the one I posted. :)
So it's only two, really.
 
> Stack Overflow hates new users
 
Yes, yes we I do.
 
1:52 PM
:D
 
@Withnail what is HN?
HN = hacker news
ok
 
This is how I perceive the problem: SO is a garden that has a littering problem. Every day, ten garbage trucks pull up and dump their contents over our walls. We're the gardeners and it's our job to sift through the trash to find lawn ornaments and toss everything else out.
We do a bang-up job of it, but then we get a host of whiners saying "they unfairly tossed my plastic flamingo even though it's clearly a lawn ornament! Sure, the leg is bent and it's partially covered in human excrement, but nobody's perfect, right?"
 
Yes, we technically trashed your lawn ornament, but if we aimed to reduce false negatives, we'd let in ten times as many false positives.
 
> Quora might seem like an obvious choice
top lel
 
1:55 PM
I feel like there's a Discworld-based rebuttal/continuation to Kevin's example involving Lu Tze...
 
this was a big meme in finland, one guy is dumping truckloads of branches in forest on a hiking trail, just because... and starts raging when someone says that they shouldn't do that...
 
@Ffisegydd fag-end in the garden of zen, with Vimes?
 
@Withnail You know it.
 
Love that one
 
user6568562
The article is BS, reminds me of a "good" Fox News report. My questions were dumb as dumb can be and I got help. Maybe noobs should focus on why they're here, and not how they're treated once here. Although I always found the treatment more than correct.
 
1:57 PM
@AnttiHaapala No. I just love that cuisine so much and very good friend of mine is Vietnamese and I always take the opportunity to eat anything.....well almost anything :P ... I think there are a few things that I might have a hard time going for.
 
It's an astonishingly good book. Almost certainly the last great DW book.
 
user6568562
Also, participation trophy is a plague, man. In a couple of years our World Wars would be a who-cry-the-most battles.
 
I would say the later ones are great, and NightWatch is phenomenal ;)
 
@Withnail yeah I think so
 
1:58 PM
Though honestly, can't be beating Fifth Elephant for me.
 
ohhh... it's been ages since I read that.
 
Never really got the Fifth Elephant, but I do remember reading it in a hurry when I was about 16
 
@Kevin ^so there is your ordinary "I am entitled to ask my question" noob
 
I found SO quite intimidating at first, but the rules were pretty easy to follow
2
 
I didn't start by asking questions, just answering, so perhaps it was easier that way...
 
1:59 PM
And in trying to follow the rules/create an MVCE, I often answered my own question.
Which is sort of the point.
 
exactly
 

« first day (2172 days earlier)      last day (2776 days later) »