« first day (1578 days earlier)      last day (3595 days later) » 

16:00
you would see the gem answer by N.N: "You have to start cmd.exe , navigate to the directory where your dictutil.py file is located , and type python, and then type import dictutil."
user559633
haha neat! technically kind of an answer
user559633
i wish there was a product management stackexchange site. it would read like a markov chain drunk on huffington post articles
Answer by N.N: "you must first run your code $python testFile.py then pass the argument !"
user559633
sensing a theme here
just going through your answers
it seems you post to questions that don't gather that much deleted answers
maybe ti is because you typo 40 words a minute?
user559633
16:07
i typo at LEAST 45 words per minute, which is why i only type around 40
so many web frameworks, and so much adoration and hate for all of them... decisions decisions
Simple answer: use them all at the same time.
you're onto something, but I'll only use the worse parts of all of them
so basically PHP
oooooooooh snap son!
16:14
morning davidism
I like mongoose a lot for handling databases, but writing everything else in javascript is... ehh...
@corvid use django :d
or web2py
I hope my reverse psychology works
user559633
[cv-pls] stackoverflow.com/questions/28436424/… do the needful on my homework
DSM
DSM
16:21
Morning cabbage for all.
In my code I just wrote the comment "the implementation is implementation-dependent".
Which is a surprisingly useful insight for the current problem.
user559633
morning cabbage
user559633
has anyone seen inspectorgadget lately?
No.
No, in fact I posted a message to the RO board just today asking people to keep an eye out for him.
I might as well ask everyone though: keep an eye out for him, if you see him check that everything is okay and let us know.
I've just sent him an email anyway.
user559633
16:31
I don't have his email address, but if you see him, please tell him I was asking about him
Hey up inspector.

It's Ffisegydd btw. I hope you and your mother are well. Just wanted to check that everything was okay.

We haven't heard from you in chat for a while so thought I'd drop you a line to see how everything is.

Cheers.

Keiron/Fizzy.
I don't think this contributes to your problem, but consider using isinstance(x,y) instead of type(x) == yKevin 21 secs ago
I'm now second-guessing myself here. Is there any reasonable situation where you'd prefer type(x) == y over isinstance?
See Martijn's answer :P
I recognize that isinstance also checks subclasses, but most built-in types don't have a big type hierarchy anyway.
DSM
DSM
int/long and str/unicode as the ones which have classically tripped me up the most.
16:39
I'm incidentally now wondering if there's any value of x such that isinstance(x, object) == False
coming across a weird problem... if you were to do export $SOMETHING= and then a path which contains spaces, how would you do that?
Quotation marks?
CodeEval sees Python at the top for the 4th year running: blog.codeeval.com/codeevalblog/2015
@Kevin Surely an old-style class would give that?
@Kevin See my answer. :-P type(x) is y is useful if you want that type and that type only.
16:44
@Ffisegydd I thought so as well, but it seems not
>>> class derp:
...     pass
...
>>> d = derp()
>>> isinstance(d, object)
True
:o I do not have a Python 2 install to test so I shall trust you absolutely.
DSM
DSM
@Martijn: I wonder how representative that is of the Real World. Very few of the places around here are interested in Python devs. (Just the other day I saw a numerical Python position being advertised and was so surprised I applied out of astonishment. Interview next week, so I'm assuming there weren't many applicants.)
Any advice on what to serve with lasagna? Maybe a salad? Or garlic bread?
I found a Data Analyst position that wants Python :3 It's in Oxford which is a little far away but I'm thinking of applying.
DSM
DSM
I think the blood of a Java developer is traditional, no?
16:49
I even found the job via bloody careers.SO!
My family typically pairs lasagna with garlic bread.
@BhargavRao its not a code , am just asking if there is a built-in function or a module that can encode to html , I didn't ask to write a code to me !!! — acclav 1 min ago
Off - topic??
Isn't the answer to that question just urlencode?
Is there a dupe? Use your powers
I hate voting "resource request" for questions that want to know if X behavior exists in the standard libs. Seems to me that the spirit of the rule is to prevent suggestions that will rot when the third party library stops being developed. But a stdlib recommendation will probably be valid for as long as Python exists.
16:54
But there is google for that ... ;)
Oops, urlencode is for urls, not html contents. duh.
Now finally ....
Blaze your guns out .....
It's time to CV
Meh, for all I know, there's an htmlencode function in the standard libs and the question is 100% answerable
@BhargavRao he appears to be talking about Markdown
but it's still either "unclear" or "recommendation", so voted
I'm the only one who voted too broad :( :( :(
16:58
I'll abstain from voting, and instead go eat lunch.
Huh!... Eating when duty calls?
It is so un-python-chatroom-behaviour ...
DSM
DSM
I like the = a lot bit.
Isn't it sad that you take a hell lot of time to write a long answer and the OP marks another as correct just because it is small ... :(
the scary part is that the computer is probably fast enough that he could get away with brute forcing it without every realizing it was a bad idea.
accepting is for the author to signal what was helpful to them, and as their comment says, they liked how concise that answer was
upvotes will signal what answers are good in general
17:07
Yeah ... I came to know that long answers irritate OP ...
So next time I'll add a TLDR ...
depends on the op
Hopefully some years down the lane, The other answer gets 10upvotes and mine gets 21 ... (Optimistic)
stackoverflow.com/questions/28437418/… .... Off-topic ... recommendation?
full stack web development books always fall short on one component :\
Which book? Which component?
@davidism if delete from db, then why not do .delete()?
DSM
DSM
17:17
The missing ingredient is love.
@davidism Node.js, MongoDB, and Angular.js Web Development. The Angular.js part is pretty disappointing
@AnttiHaapala it bypasses sqlalchemy's bookeeping for related collections
yes, it would be even more efficient, but only if there were no other models dependent on it that need to get purged as well
I use postgresql and delete wisely so I am oblivious to these :d
in related news today I used session.merge() the first time for the kind of thing it was meant for
I've used it previously for precisely the kind of things that it is not designed for.
17:19
I've never needed to use it yet. I'm still not entirely sure how it's useful.
It can be used to do an ORM upsert
it's not safe though
ofc it is not safe for some definition of safe :d
I guess if you can guarantee that no other process/thread will act on the same record id, then it can be somewhat safe.
so we have named setting values for model X, so we can have Setting(target=x.id, name=foo, value=dict(our='json', value='goes', here='!')
so on setting the value, we can just create Setting(target=id, name="foo", value=dict()); then session.merge(new_setting) and session.flush()
and it does the right thing or aborts the transaciton
it will insert or update the existing in orm session or fetch from db for up.
but it works bc primary key is (id, name)
Yeah, I guess it's a problem with how I design my models, everything has an autoincrement primary key rather than a natural primary key, so I can't know the key ahead of time for merging.
autoincrement primary key sounds like mysql 3.23
or like django orm :D
stackoverflow.com/questions/27867516/… on both answers (by the same new user creating multiple accounts)
is there a question there?
17:30
@DSM I have plenty of Python work though. The TIOBE index shows Python is doing well too. Numerical Python is in quite some demand around London, all the hedgefunds are looking for number crunchers.
@AnttiHaapala I suppose it's "how do I fix the error?"
127.0.0.1:6379 (ECONNREFUSED) (Redis::CannotConnectError)
didn't even mention it in the question, new glasses needed
DSM
DSM
@MartijnPieters: you're -- almost literally -- the #1 worst person in the world to use as a representative example. :-)
@MartijnPieters indeed.
in Oulu, no one does python anymore.
the big N did some crazy stuff here not so long time ago
and python is not hip to use in startups anymore
and... then we have this annoying rails girls pretty strong in Finland
17:36
@DSM well @MartijnPieters is certainly near the top of the curve imho ... python is doing just fine across the board
because of that PyLadies meetups get mostly men :D
@AnttiHaapala TIOBE puts python way ahead of rails ...
in PyCon.fi more and more ppl that are talking are just data scientists, nothing wrong with that other than less and less about something where to get hired as a contractor...
but then I haven't ever gone after the popular options
@AnttiHaapala I think i will likely retire in the same company I work for now .... and I will probably use python for most of my career here
Im not good enough to be a consultant ... and contractor gigs suck in general
I hope I don't work whole my career in this company
bc it would mean I end up disabled, dead soon :D
17:40
I hope I do :P I really like the company I work for currently
we made forbes list of top 10 small businesses to work for in the US
I would want to find one like that too...
on site chef with free lunch on wednesdays ... cheap awesome lunches rest of the week. understands the work/life balance and strongly encourages taking time off ocasionally. gym with trainer, ping pong, slot car track and foosball all help kill time too :P
interviewed for the company 44. on that list
they didn't want to hire me because I was too expensive. I was like "ok then, bye"
They asked me how much, I said I want the average salary of a software developer in Finland.
ehhh I make less than the national average ... but its pretty in line with the area and it is cheap to live here (Im in Idaho though....)
DSM
DSM
You're in Idaho?! I was sure you were in Europe somewhere.
17:46
and its very very high in terms of average salary for the area
I wouldn't drop my salary to go to work there
DSM
DSM
Oh, wait. Is there an Idaho in Europe?
lol thats cause Im cultured: P
lol nope the potatoes...crappy education and lots of republicans ...
re-cbg
sounds like a dream then
17:47
(which also helps explain my atrocious spelling and grammar Im sure :P )
I wouldn't notice
think I just read something so dumb I thought "this must be satire..."
I hate when ppl pop up into the room, then they announce something... but never post a link
it might be ... its amazing what somepeople (ehhhrrrm Im looking at you some of my facebook friends) will believe
it's not very relevant to programming though
17:51
@DSM Joran lives in Moscow, that would explain it ;)
ah yes Moscow... land of the cats
I just assume everyone lives in the mysterious east except for me, DSM, and corvid
Not MOCKBA though
not the russian Moscow however ... so i never say im from Moscow ... that just confuses people ... and tyhey tell me how good my english is
17:54
where the cats are born and the cats are made
Moscow must be one of the few places in USA that when you mention them by name there ppl think you're a foreigner
but one says like "I am from Finland" --- "ah in Minnesota, right"
Reminds me of Egypt, Arkansas
Paris, Texas
there is a Rome in every state continent, I'm pretty sure
Incidentally, I'm annoyed that Arkansas is pronounced "arkensaw" and not "our kansas". WTF, original American pioneers, lrn 2 read
DSM
DSM
17:56
Antarctica?
Alternatively, "Kansas" should be pronounced as "kensaw". As long as it's consistent.
ofc, bc all roads lead to Rome
how could they cross oceans
all the places in Britain are pronounced wrong.
Only Finns know how to pronounce them right
this confuses people: Worcestor -> Wuss-ter
@corvid, Haha, I was just about to say that
yes, just was about to say the sauce is pronounced war sester shire in all of Finland, that's how it should be done
and the Green Witch mean time
17:59
Over here, the uninitiated will usually guess that there's an invisible H after the c. Wore Chester Shire.
But a soft C is also reasonable.
DSM
DSM
Lunchtime rhubarb for all!
and the river Tha Mess :D
new england is an odd mix of British names and Native American names
> In 1881, the pronunciation of Arkansas with the final "s" being silent was made official by an act of the state legislature after a dispute arose between Arkansas's then-two U.S. senators as one favored the pronunciation as /ˈɑrkənsɔː/ AR-kən-saw while the other favored /ɑrˈkænzəs/ ar-KAN-zəs
Way to do exactly the opposite of what I want, 1881 senator >:-(
I like how in USA they have to make a act of everything
18:04
whatcha mean, antti?
B-)
I'm guessing most places don't need official acts of legislature to decide matters of pronunciation?
To be fair to us, the decision to use "Arkansas's" as the possessive form is only a nonbinding resolution, not an act.
yeah, in finland there is no law regarding any kind of pronunciation or so
Well... I mean...
Nix v. Hedden, 149 U.S. 304 (1893), was a decision by the Supreme Court of the United States that, under U.S. customs regulations, the tomato should be classified as a vegetable rather than a fruit. The Court's unanimous opinion held that the Tariff Act of 1883 used the ordinary meaning of the words "fruit" and "vegetable," instead of the technical botanical meaning. == Background of the case == The Tariff Act of March 3, 1883 required a tax to be paid on imported vegetables, but not fruit. The case was filed as an action by John Nix, John W. Nix, George W. Nix, and Frank W. Nix against Edward...
Obligatory link for all dumb legislation discussions:
The Indiana Pi Bill is the popular name for bill #246 of the 1897 sitting of the Indiana General Assembly, one of the most famous attempts to establish mathematical truth by legislative fiat. Despite its name, the main result claimed by the bill is a method to square the circle, rather than to establish a certain value for the mathematical constant π (pi), the ratio of the circumference of a circle to its diameter. However, the bill does imply various incorrect values of π, such as 3.2. The bill never became law, due to the intervention of Professor C. A. Waldo of Purdue University, who happened...
In Finland everyone talks about how the European Union banned curved cucumbers
18:07
ehhh we(the US) do alot of stupid shit all the time ... all in all most people here however do enjoy a relatively good standard of living (for the time being at least ... all the time this is less true)
the only image I have in my mind about congress is out-of-touch old people discussing completely irrelevant matters
and that really kinda sums it up
... but it was so that the farmers lobbed for a european wide classification of cucumbers, so they said straight cucumbers are class I and class II are the others, now they sell straight in shops, then use the 5 % remaining to do pickles
My own mental image is out-of-touch old people discussing incredibly important and technical matters, which they have no understanding of beyond what was drilled into them by ultra-biased lobbyists.
so in Finland there has been astroturfing by some anti-EU folks that there should be a campaign to get rid of this act (while it was repealed years ago)
guess now farmers have to start producing curved cucumbers for finland, spending extra effort to not them hang freely
18:10
A lot of people in America are jealous of Finland's early education :(
our education system is pretty broken in general imho (the US)
college education is still good, if you can afford it
and Idaho ranks 48th in highschool education .... thats pretty dang pathetic really
I have a theory that you only hear about a particular philosophy or discipline when it's at its stupidest. Laws work great if you don't look at the cucumber law. Quantum physics is sensible if you ignore alive/dead cats. Various moral frameworks behave nicely if you stay away from train yards.
@corvid that is a bigger and bigger if
user559633
18:13
@Kevin depends, what do the five people look like? if there were five juggalos or bronies on that side, the choice becomes easy
@JoranBeasley yeah. Also kind of annoys me when people argue against higher taxes for more education. I don't mind paying taxes for education. Who wants to live in a civilization full of stupid people?
user559633
@corvid i'm against it because i don't believe there's a linear or provable relationship that more money going into education leads to smarter people
@tristan They're all juggalo bronies, but each one that survives will have five children who will reject their parent's lifestyle and become talented surgeons.
user559633
i used to work for a newscorp company that hocked crappy tablets at idiot school districts. typically these districts weren't high performers and burning that stack of money didn't lead to increased test scores.
user559633
@Kevin that's less likely than 5 people just standing on a track waiting to get hit by a train while i'm standing near a switch to save them
18:16
@tristan I think I read a study on that that showed the money wasn't actually reaching the fundamental layers of education, rather just adding extra layers of superfluous administration
Corner cases are improbable by nature :-)
user559633
yeah. so " Also kind of annoys me when people argue against higher taxes for more education. " it shouldn't.
user559633
say you make state schools free. hooray, more communications majors.
Crossing my fingers for a post-scarcity society which will make compulsory education a moot point.
Crossing fingers for the day we can all become cyborgs and have all the information in the world instantly downloaded to our brains
18:20
Uh oh, we're not preparing our children for the demands of tomorrow's industry! Oh, nevermind, we invented an inexhaustible robot work force. The kids can all become art majors or whatever, it doesn't matter
user559633
My gender studies degree is equally important as an inexhaustible robot work force.
the biggest department at my school was fashion, which was ironically departmentally located directly next to computer science
user559633
Sounds like a Ghost of Christmas Future deal, where the fashion majors see what society will be like if they don't heed their lessons.
user559633
Niiice.
18:24
@corvid: they decided to move from sports department after the drama fiasco of 2000?
user559633
Please tell me what the "drama fiasco of 2000" was
user559633
i don't think i've ever wanted anything more
(a made up event to denote sarcasm in my comment)
user559633
@ljetibo ಠ益ಠ
Whenever you tell a lie, you should have at least three backup lies ready, so you're ready to spin your elaborate web when challenged.
18:27
my back up lie is always "I am a kitty cat, meow"
It's an endurance sport. You have to keep going until your questioner gets tired.
yeah I know, but I still haven't read the rules and rather not risk it....
some rooms are quite serious with their chat...
user559633
@ljetibo leave now and never come back. teasing us with " the drama fiasco of 2000"
some are not
Most of our rules govern proper grammar and how to ask questions without being irritating.
18:28
more money should be put towards smaller classrooms and more tailored lesson plans not for ipads and and junk ...
If we have a ceiling on ridiculousness, we haven't hit it yet.
and there is a direct correlation between higher salaries and better more engaged teachers
user559633
i'm sending my children to an entirely faith-based curriculum. they'll have so much spare time without all that pesky math, science, or logic
this job lets me bring dogs to work :o this might just be the best thing ever
Service dog, or any kind of dog?
any kind of dog
Robot dog
user559633
like, canines or just people you call dog
18:33
How quirky and counterculture of them!
user559633
"yo, this is my dog, alexander"
I can bring Snoop Dogg to work
user559633
Is this the job at Harvard?
nah, got a few job offers, trying to decide which is best
user559633
18:34
@JoranBeasley nice, will read later
user559633
@corvid where at?
@tristan artaic, looks pretty cool
What is GM in Winter GM Meeting? Is it General Meeting?
user559633
haha, that's awesome @corvid. i'd work for a company that only makes mosiac tiles for the stories
18:39
their stack seems pretty cool, though kinda lacking in python
user559633
i just named an internal service "hashtag" so that people have to say hashtag outloud on a regular basis
that just means they need a python expert to correct their gross oversight :O
not entirely sure what they could use python for... I would imagine python has some great image manipulation tools, with scipy and all
user559633
seems really funny for a company that requires ordering of tiles to make images to use node.js
18:43
@tristan I think they mostly just use that for a few utilities. Node.js seems weird lately, never has new releases and there's that new fork
user559633
@corvid my doctor said i needed to stop huffing glue, which means i no longer follow nodejs
it always seems like people either love or hate nodejs, I don't get it
user559633
the community is terrible and most people use it in a way that ends up creating a callback hell or worse performance than alternatives.
user559633
@corvid I don't love or hate nodejs. I nothing it.
user559633
18:49
i just love coming onto a project in which some nodejs fanboy created a clusterfluff that is easily and better replaced by ruby or python
not ruby >:(
@tristan I remember reading somewhere Node.js being defined as a "web framework for a specific purpose" rather than a general purpose one... think people tend to overstretch the bounds of it
its like pythons handicapped little brother
user559633
i like ruby because i have `irb` aliased to `mcrib`

➜ ~ irb
mcrib is back!!!

irb(main):001:0>
18:54
callbacks are nice contextually though, maybe I am just doing them in python incorrectly
user2555451
Is it just me, or are we getting flooded with crap questions today? I've dv'd/cv'd at least two dozen in the last hour.
user559633
@iCodez yesterday and today
Maybe your standards are becoming more stringent.
user559633
That's never been the case for me :]
everyday during the school semester it seems to me :P
especially when there is an assignment due tomorrow
lol did you guys see that question about codecs and new lines?
18:57
I didn't
maybe we need a cs-homework.stackechange.com site, then we can punt it all over there and ignore it
his whole issue was that he was opening the file in notepad.exe to check for newlines
/facepalm
user559633
for newline characters (expecting to see '\n')?
user559633
oof, poor guy
18:59
no expected a newline
user2555451
@davidism - That idea's been tossed before. It bombed because nobody would go to the school site except for newbies and rep whores. So, the people will just come back here.
and notepad is retarded and doesnt recognize \n ... it needs \r\n

« first day (1578 days earlier)      last day (3595 days later) »