« first day (1656 days earlier)      last day (3291 days later) » 

2:02 AM
cbg
 
cbg @AdamSmith
 
 
2 hours later…
4:33 AM
Okay, tilaprimera is safe from the earthquakes
 
5:21 AM
@MartijnPieters following our previous discussion can you CW this stackoverflow.com/q/29731415/1348195 ?
Ty!
 
cbg
 
@vaultah Cabbage :-)
@BenjaminGruenbaum Actually, I purposefully included the Promise Constructor Antipattern stuff after it became the dup-target. Glad it shows up in Google search :-)
 
5:36 AM
Yeah, it shows up in Google search because of the dupe though and not that, still good answer (already upvoted ^^)
When a non-singed-in user enters a duplicate they're automatically redirected to the original question - this is what happens to Google here.
 
Hmmm, I need to verify that. Let me switch to incognito mode and try that now
 
"What is the promise constructor anti-pattern and how do I avoid it" search for this full string
Also, you don't need incognito - protip:
Saved me tons of time, lets you choose whether results are from "personalized google" or "regular google"
 
@BenjaminGruenbaum Thats cool :-)
 
@BenjaminGruenbaum that's incredibly cool. I had no idea!
 
:)
You can search for the url itself and still get redirected.
 
5:42 AM
Please include one line about Promise constructor antipattern in your answer. Now, it shows only my answer's excerpt and I am not very comfortable with that
 
In your answer, the "Promise constructor" is not there, right? So, google shows excerpts from my answer. Since my answer is just a supporting answer, I want yours to be highlighted.
 
6:00 AM
hi everyone
 
I'm fine with you getting the upvotes for those, I'll see if I can edit it later :)
 
I am working on a script...can I discuss my problem here
?
 
Sure. If it's a Python script -- we might even be able to help
:)
 
@Arijit Welcome to the room :-) Please read a little bit about this room and its rules
 
I am working on a script under which some sub program will run. for example test.py is the main program and under that test1.py, test2.py, test3.pl will run and I need to pass the arguments from the main program(test.py) to test1.py and test2.py program also.the arguments should be in unchanged condition. while passing to another program.
 
6:02 AM
Ugh I sat down to code TWO HOURS ago and I've been pulled this way and that the entire time. I've written FOUR LINES of code. This is awful
 
@thefourtheye--thanks for the infor
 
@Arijit I don't understand any of that. Show us some code! MCVE please.
 
stackoverflow.com/questions/29892810/… is the link of my question
 
ah okay -- that will be more helpful
Hmmm looks like an XY problem to me. What are you actually trying to accomplish?
(cbg Martijn)
 
I am trying to pass the arguments from on main program to sub program in unchanged condition
 
6:06 AM
No, that's not what you're trying to accomplish, that's how you're trying to accomplish it
 
for example if I am providing the arguments like python test.py -fname=abc -lname=tttt
 
what problem are you trying to solve?
(that's the X and the Y in the "XY problem." You're asking how to implement your solution when you should be asking how to solve your problem)
 
then I like to pass -fname=abc -lname=tttt part to another one sub program
 
I've written an answer. I haven't used argparse in forever so you may not actually be able to do some_function(*parser.parse_args()) but I think you can
or I guess it might be a mapping, so some_function(**parser.parse_args())
hmmm looks like you can't do either of those things ha!
 
6:50 AM
-1
Q: How to read hex string in python

distikingDoes anyone know a better site than this where i can post my question and i don't get a quality standard error, even thou my question is described correctly and has not grammar errors ?

Ranting... Sigh
 
lol
 
Looks like a troll
 
I was about to complain about Jedi's lackluster autocompletion until I realized that I didn't have it set to look at my virtualenv and I was telling it to autocomplete modules that didn't exist in my system Python
Sorry Jedi.
 
Hey up
 
Cabbage @Ffisegydd :-)
 
7:05 AM
although it won't go deep enough down the rabbit hole to figure out what a db.Column is
 
bedtime~ night all
 
@AdamSmith Rhubarb :-)
 
Cabbage!
 
7:23 AM
@BenjaminGruenbaum Done!
(and cbg)
 
Thanks!
(also cbg)
 
 
1 hour later…
8:26 AM
Cabbage all. Quiet in here this morning.
 
maybe because i dont ask questions anymore :P
 
@StephanKetterer :D
I assume that means you are now a MongoDB virtuoso
 
8:47 AM
i solved the small problem i had , but was told to keep it quiet , so i do :)
 
hello, is it possible to nest grids in Tkinter ?
 
@StephanKetterer "told to keep it quiet" ?? By someone in here, or from your course? That's a bit strange.
 
no i understand and will keep it down until i am really out of any ideas or ressources
 
OK - fair enough. FWIW, though, I personally don't find your pursuing a problem too much. Obviously you already understand we're all here through choice, might leave abruptly and at any time due to other commitments, don't ping specific users unless directly in a convo etc. On the other hand - it is a good skill to get good at reading the the docs, finding resources - targeting your google searches etc. So Good luck!
 
thank you ,and thank you for all your help !
 
9:00 AM
Hi @Nakkini - not ignoring you, but looks like you're out of luck for a Tkinter expert at the moment! Googling Tkinter nested grid has a couple of SO questions at the top - I presume you've seen those and they don't do what you want...
@StephanKetterer No problem. I now see the conversation you are referring to from last night as well. I think what people are trying to push you to do (and it is a good idea) is to get proficient at reading the docs and helping yourself to debug. They also think that's what your tutor is doing
 
@JRichardSnape thank you
 
There is a fine line between pushing you to do that and being cryptic. It seems that, for your style, your paid for tutor is on the "cryptic" side of that line. Because people here are all here for "fun" / unpaid - a lot of us are very concious of people sucking up time because they are not looking for themselves (i.e. being lazy)
I don't think you are
BUT - I do think that you haven't been shown properly how to find and decode the information about what you want to do
 
i suspect that, since i was not the first to start the course, and the forums are empty when it comes to questions on where i am in the course, that either means nobody has any questions or people have given up, the chat is full of people doing the first module though
 
That's why I rarely actually give you code, but ask questions to try to get you to decide for yourself what you need to do next. It's easy for people who've coded for a long time to forget that words like update and others have specific meanings in coding (I count myself, although there are people here with a lot more than my 10 years in work and 25 years at home)
 
9:16 AM
eventhough i have a master in engineering, we never learned to actually program, i think if had courses on it, alot of questions would have been asked and answered in class
 
It does sound like your course has a high attrition rate, possibly due to teaching, lack of enthusiasm of students etc, etc - probably a mix
Yes - I'm an engineer too. We were "taught" C++. Most of my compatriots copied it from a book and couldn't have written hello world from scratch. it's a problem
Here's what I did - some top tips. Use print a lot. Every time you get an error that looks like its about the value or type of a variable. Read error messages carefully - they will point you to what is failing (almost always...). If you get syntax errors and you can't see anything on the line highlighted, look for missing punctuation on the previous line.
If you can't understand why something is failing with a big data set / input - reduce the input size. If you can't understand why something is failing in a complicated bit of code, pull out the smallest block you can around the line that fails and test that
I know all this sounds simple, but if you do it all before you ask, you will avoid annoying (almost) anyone
 
yes will try all of that, also i think its a better start for me , to do a problem step by step and then line by line, i sometimes read "superslick" solutions where it is all just in one line, but i am just not there yet to come up with that for myself
 
Yeah. Don't worry about superslick. To some degree it's a Python thing IMHO - there is a pride in doing things concisely - which is good basically, but most people have to go through the slow way of doing things first.
For instance: It's much easier to follow the flow of the program / values being used if you use a for loop written out long hand and put in print statements, rather than in a list comprehension. Once you know it works, you can always rewrite it in a comprehension style if appropriate
 
That's a new use of online mentoring I haven't seen before..
> We have begun interviewing candidates for a Technical Lead / Sr. Architect position at our company. We need an expert to help vet candidates that make it to the second round of interviews (technical round). We'd schedule the interviews at your convenience.
> The goal is to ensure that the candidate is technically fit for the position. We will provide you with the role details and the necessary product details, so that you may come up with the proper line of questioning. This would be ongoing until the position is filled.
 
I've gotta go - work and meetings :( Final thought. You are getting better. Go back to module one - see how easy you'd find it now :D
cbg @martijn
 
9:30 AM
Outsourcing their tech interviews? Not sure that a) I'd ever do that, and b) it's a good idea to have an external consultant you have never met set the tone for you.
I'd at the very least bring in that consultant to get to know the company culture a little and talk about their needs and expectations.
@JRichardSnape cbg
 
I'll stop spamming / preaching on here now - was just using some quiet time
I'm with you on the interviewing. Also - although as a candidate you may not know - would you want to work in a place where they couldn't assess your suitability...
 
@JRichardSnape yeah, there's that too. But if this is a company going to move into more tech and they feel a little out of their depth, I can see that bringing in additional help can be a good idea.
but it needs to be a bit more hands-on than what is being proposed here.
 
@MartijnPieters yep, was just musing on that.
To some degree I did it informally for an acquaintance, actually. Gave them a list of things they should ask and gauge the response. Not model answers, but "If they hedge on this point, they're not for you" kind of thing
I should have realised I could charge for it :D
 
Not sure if that's my record, but just got an accept on an answer posted over 2 years ago.
If I could be bothered, I'd make a query for that..
 
Two years! That's quite a development cycle for the OP
Anyway - I really had better prep for my meeting...
 
9:40 AM
I think they were reminded of the existence of the question by an upvote 2 days ago.
In fact, it's my highest-upvoted answer in the tag, which is saying something as that tag is quite quiet.
 
 
1 hour later…
10:44 AM
cbg
hehe Russian progress is now a shooting star
 
11:03 AM
cee-bee-gee
 
11:18 AM
cee-ee-ee-dash-bee-ee-ee-dash-gee-ee-ee
 
Cᴀʙʙᴀɢᴇ
 
11:28 AM
cbg
 
I noticed in the transcripts this number puzzle about expressing a number as a sum of squares, posted by Benjamin Gruenbaum a day or so ago. It took me a couple of minutes of mental arithmetic to figure out the answer, but it intrigued me enough to motivate some code. Yes, it's recursive - I couldn't be bothered doing an iterative version. :)
 
C̷̙̲̝͖ͭ̏ͥͮ͟A̡͊͠͝BBA̡͊͠͝GȆ̴̟̟͙̞ͩ͌͝
 
re-cbg
 
That's a very curly cabbage you have there, Bhargav.
 
11:37 AM
It's a quiet night on SO (he said, stating the bleeding obvious :) ).
 
...night... morning for some of us. I should be doing some real work. Instead working hard on a question edit / answer pair that I retrieved from the close vote queue. Should I have just voted to close, I muse...
 
It's tempting when you realise that with a bit of work a meh question might be transformable into something worth answering that could benefit future readers. But it can be a time sink. And it's generally not a fast way to earn points. :)
 
каббагэ
 
Am I being harsh in suggesting that this OP could be a cargo-culter?
@abarnert: Well, JadenBlaine didn't actually claim to have written that code, merely that they've got it... On a related note, see meta.stackoverflow.com/a/291565/4014959PM 2Ring 8 mins ago
 
well that is fake Russian,
капуста
 
11:43 AM
@AnttiHaapala But I guess it's a fair transliteration into Cyrillic of the English spelling .
However, it's a long time since I learned the Cyrillic alphabet...
 
@AnttiHaapala ಎಲೆಕೋಸು
 
@PM2Ring yeah - as you can see from my rep, I'm not a fast-points kind of a guy. Here for the journey, really. To each according to his need and all that.
 
@PM2Ring it is Finnish pronunciation of "Cabbage" transliterated into Cyrillic :P
@BhargavRao and your mom too :D
 
@AnttiHaapala wut?
 
@BhargavRao just a silly joke
 
11:47 AM
Some rapid action there
 
Six answers for "how do I sort more than one list" -_-
 
@BhargavRao I thought you were insulting me in Canadian ;)
 
at least 30% of which suggest list = list.sort()
 
downvote to oblivion
@Kevin seeems that they're fixed
 
Wow. That's quite a feeding frenzy.
 
11:49 AM
@Kevin Argh! I'm almost too scared to look, in case my brain melts...
 
It is brain melting. Don't look. You can't un-look
 
Devil's advocate: assigning the result of list.sort to a variable is harmless. OP still gets their lists sorted, as desired.
 
@AnttiHaapala ನಿನ್ನ ತಾಯಿ
 
Hooray for for x in [a,b,c]: x = None not blasting away the values of a b and c
 
11:51 AM
@BhargavRao funny, google translates as thy
@Kevin this is no php :D
 
@AnttiHaapala Go word by word ... :D
 
@JRichardSnape The points are fun, and handy to get a bit of respect & power, but like you, I'm mostly here to help people.
.. and to show off my brilliant code. :D
 
@PM2Ring A man after my own heart. And yes - I can't deny two little pushes to get over 2000 and 3000 respectively to see how the site works / wield new executive powers :D
 
You are right, but don't deserve -4 points :) — JuniorCompressor 3 mins ago
Argh
Will downvote now
 
11:55 AM
@BhargavRao I think you can actually reverse-engineer what z looks like from the OP's comment, "I tried the below but this puts 3 letters on each line rather than the 3 lines". This indicates to me that z is a string. I bet his code would work if z was instead a list of strings.
 
But on a more serious note giving people code may address their immediate needs, but helping them learn to code better will be of more benefit in the long run. So I'm happy to "waste" time explaining stuff, rather than just posting cool code with minimal explanation.
 
cbg Jon
 
@PM2Ring Absolutely
cbg Jon
 
@Kevin I think he's messed it up somewhere before that snippet ...
 
11:57 AM
As Terry Pratchett said: "Give a man a fire, and he'll be warm for the night. But set a man on fire, and he'll be warm for the rest of his life!" :D
 
His code actually works perfectly if z is a list.
 
Yeah
 
So really, the true answer for his question is "do z = z.split("\n"), then run your code"
 
One of the reasons why I asked
What is z?... — Bhargav Rao 23 mins ago
Maybe we should ask him to do type(z)
 
No point, if he hasn't responded to any of the existing comments, he must be AWOL.
I'll just answer.
 
12:02 PM
You'd better elaborate on Using a list instead, by adding a comment on that split there
 
Second time I've seen that Pratchett quote today / yesterday. I have a nascent theory that you often see phrases / quotes / unusual words come up clustered in time as one person using it reminds other people of it.
 
@BhargavRao I mean google translates it as thy, one cannot make google translate anything from finnish as "thy", always "your"
 
though in Finnish there is the "thou / you" distinction and politeness etc...
 
@Kevin Good answer there! ... TL;DR - Use a list instead of string ;)
 
12:06 PM
what am I thinking
 
@AnttiHaapala Same here!
 
Sometimes I worry that the subtle influence of one's environment has a much larger effect on our behavior than we really think. "Saw a yellow car this morning while a song with heavy percussion played on the radio? You will say something rude to your coworker without thinking this afternoon"
"Why would yellow + percussion cause rudeness?" you ask. I dunno, but I bet it made total sense when we were all living in caves.
 
12:19 PM
Rhubarb all
Hailstorms here
:(
 
@JRichardSnape Well, there is a lot of Pratchett stuff moving around the Net at the moment, partly from a lot of fans going onto Pratchett-related sites in the wake of PTerry's passing. xkcd had a Discworld theme for the recent Mod Madness (an annual event of using crazy filters on posts for the 1st week of April). And there's gnuterrypratchett.com
 
yeah - I'm aware (although, heretically, I'm not well versed in all things Pratchett)
 
@JRichardSnape I have noticed this exact same phenomena before.
I also hypothesise it might be some form of confirmation bias, you notice a "strange" term and then notice it again precisely because you've already noticed it once.
 
I won't claim to be a Pratchett / Discworld expert, but I do know a fair bit about Pratchett & his works. I've read all the Discworld books at least twice, and most of his other books at least once.
 
I keep meaning to add that header to all the servers I have rights on. Although not an avid fan, I like the idea
 
12:25 PM
@Ffisegydd Yep. Closely related to the Recency Illusion , sometimes known as the Baader-Meinhof Phenomenon.
 
@Ffisegydd a question you might be interested in?
 
morning friends
 
Gotta love Pratchett... we even have sopython.com/wiki/The_Regulars_as_Discworld_Characters which I'd forgotten about :p
 
No it does not at all. I suggest that you read the docs and then try the example that I listed 5 years ago. You will note that setting the value of x proves that the code does not do what you have claimed. — Amoss 1 hour ago
soon I will just downvote every answer that has exec in it :D
 
Not sure I understand your last comment there. I ran compile('3+4','<dummy>','single'), and it doesn't print anything.
Oh, I guess you mean "if you take the value returned by compile('3+4','<dummy>','single') and exec it, it prints something"
Ok, I agree with that
 
12:38 PM
The exec
strictly speaking it is the code compiled with 'single' and not the exec, the code itself will have a print opcode
>>> dis.dis(compile('42', '<string>', 'single'))
  1           0 LOAD_CONST               0 (42)
              3 PRINT_EXPR
              4 LOAD_CONST               1 (None)
              7 RETURN_VALUE
 
Done so already I couldn't get it my true problem is I can read code but I can't code myself — FuriousFoxxy 6 mins ago
and
@PM2Ring yes I have I know a bit about for loops and jonrsharpe it really isn't I don't know why he's teaching us this I'm taking informational tech which I realize includes coding but we've been coding FOR 3 YEARS I WON'T EVER USE THE PROGRAMS HE'S TAUGHT US AND THEN WE HAVE TO SELF TEACH OURSELVES — FuriousFoxxy 3 mins ago
:cries:
@JonClements Excellent!
corvid can be Quoth, the raven.
 
That's very sad.
 
hmmhm??
 
Ummm... we need a character for @Antti :p
 
@Jon Harry King.
 
12:46 PM
@AnttiHaapala The guy's been allegedly learning how to code for 3 years, and reckons he can read code, but he doesn't have a clue about writing code himself. That's sad.
 
@JonClements character for Antti, how about U+1F4A9 ;)
 
turtle is literally used to teach first graders how to code. If this guy can't get it with three years of experience...
 
surely this question could be closed with "lacks minimal understanding"
 
@Ffisegydd I guess that could work: both Antti & Harry aren't afraid to speak their minds.
 
@Antti nah... I think you're going down as Harry :)
 
12:48 PM
Exactly. And he helps to take out the trash(exec)
 
Russian folk music is cool, why isn't there more Russian folk music?
 
"I won't ever use the programs he's taught us". What does this even mean? One doesn't teach "a program", one teaches syntax and critical thinking and maybe some common algorithms
If he's saying he'll never use critical thinking... This is getting increasingly tragic.
 
ofc I am a prodigy who learned programming from a book all by myself so I do not know how one must feel after 3 years of such frustration
 
There we go... some evil beep has just edited the entry whistles
 
@Kevin It's a classic symptom of cargo-culting.
 
12:50 PM
Reminds me a bit of the students in my high school who were like "We're never going to use this in real life" and "I just can't do math lol"
 
I do see the students point though. It's good that they teach things like trig but I also wish they taught about financial math etc.
I had to ask my girlfriend how credit cards worked the other week because I've never had one and had no clue.
 
Maybe I'm being too hard on him here. Sorry, I'm grumpy today.
 
Buh. Anyone here use Ionic Framework before? Having a bit of trouble consistently with a small thing.
 
Million dollar idea: a how-to site for people with gaps in their knowledge but are otherwise intelligent. "how credit cards work", "how to operate the washing machine without turning all your clothes pink", etc.
 
@Ffisegydd Badly if you don't use them properly :)
I only got one for the re-assurance of getting a more prompt response versus using a debit card
 
12:57 PM
@Kevin I would pay a lot of money for a site like that.
 
Existing how-to sites seem a little lowbrow to me. One article I read recently on "how to correct your sleep schedule" effectively boiled down to "drink a tremendous amount of Mountain Dew until you crash at the proper bed time". Yes, they specifically recommended Mountain Dew over all other sugary drinks.
@MorganThrapp Me too. Unfortunately, as a book-smart man-child, I'm the least qualified person to set one up.
 
@Kevin Hahaha, yeah, you and me both.
 
It's a "blind leading the blind" problem.
 
Maybe we could set it up so people could ask questions and other people with more knowledge could answer them. Kinda like a Q+A site, I wonder if something similar already exists...
 
@Ffisegydd I bet it would be overflowing with knowledge. Maybe we could call it Overflowing Knowledge?
 
1:02 PM
Judge: if I could, I would put you in a place where you would be removed from the general public. Perhaps locked in a big, secure building with other dangerous people for a pre-determined period of time, based on the nature and degree of your offense. Unfortunately, as far as I know, no such place exists. So, I have no choice but to set you free.

Peter: Does that mean I get my kids back?

Judge: Absolutely not! Case closed! [bangs his gavel]

Peter: Oh, crap! [to the judge] Oh, it was prison you were thinking of. Prison.
 
I look forward to the quarterly SO meetings. Gives me a chance to use my gavel.
 
does something similar to Werkzeug url adapters occur in most web application frameworks?
 
Is that a rhetorical question?
 
green thick-leafed vegetable
 
Brassica oleracea to you too
 
1:31 PM
Needs reproducing code, which OP seems unwilling to give
 
@BhargavRao @PM2Ring you're now on the editors list for sopython.com - use responsibly :p
 
Aaaand everything is on fire.
 
That's disappointing... I expected explosions!
 
@JonClements Thanks!
 
@PM2Ring err... check it works though... had to do a bit of hackery with the database
 
1:41 PM
Ah. Rightio.
 
The user list is stored like allowed_editors = "Kevin Ffisegydd davidism".split(), so it takes a little bit of black magic to allow users with spaces in their name.
Please change your name to PM_2Ring, thanks in advance. (don't actually do this)
 
oh good job me... treated myself to a decent bottle of brandy... reached over to get a plate, guess I'm mopping the floor in a bit
Wouldn't mind so much if I'd have had a couple of drinks from it... sighs
 
There's no use crying over spilled milk. Spilled booze, however, is very cry-worthy.
 
@JonClements Melons!
 
@BhargavRao watermelon!
 
1:48 PM
Musk Melon?
 
@BhargavRao just check it works first :)
 
Does it support Markdown as in SO?
 
@BhargavRao, pretty funny comment on that circular reference post :-)
 
Yup - don't get a preview though...
 
Maybe you should see thisBhargav Rao 7 mins ago
:D
 
1:55 PM
I do like that
re-cbg
 
@JonC So who was the guy who solved github.com/sopython/sopython-site/issues/34 ? I'm really indebted to him
 
Ooof - Foxxy certainly is furious
 
I do wish I could think of a practical example that wouldn't be better done using OO.
 
@BhargavRao not solved yet... :p
 
1:56 PM
My relationship example is pretty dumb when you could do it much nicelier with a Person class.
 
user559633
haha @BhargavRao you jerk
 
@JonClements Argh! But I can edit the page now! Soo nice
 
@JRichardSnape I'm almost tempted to post some grid drawing code...
 
To be fair, using turtle to draw graphs is pretty silly.
Use a proper GUI lib, for goodness sake
 
I'm tempted to draw an aeroplane and then say "oh, not that sort of plane?"
 

« first day (1656 days earlier)      last day (3291 days later) »