« first day (1475 days earlier)      last day (3464 days later) » 

11:00 AM
@AlexThornton :) True. But I don't find other rooms using cabbage language or as active as this room is
 
@d-coder there's probably a perfectly logical reason (possibly something to do with sanity) that other rooms don't use cabbage...
 
@d-coder there are other rooms that are more active than us.
 
@JonClements Says the person who invented the cabbage language!
@Ffisegydd. Hmm. Could be. But I like it here. :)
Bye all
 
@JonClements did the wrong lizard get in?
 
err... sagely nods and shakes head simultaneously
glad I didn't do that in public - people would think I was having a seizure or something...
 
11:08 AM
rbrb
 
@Ffisegydd that Q got nuked... thanks to Martijn and Jon Sharpe
 
@JonClements At what rep do you get delete votes? 10k? 20k?
 
@JonClements the only reason i will vote for you in the next elections is that you are a cute little yellow puppy with 3 legs . A Python Specialist?? Not enough reason for me to vote for you on that basis.
 
You're right @RobertGrant, the Window Task Scheduler is perfect for this task. But, the guy who needs to install the script is a retired person, and not very good at such things (like creating a new Task Scheduler task)... That's why I would prefer to tell him : Do python.exe myscript.py and that's all...
@RobertGrant I would like to avoid to have to explain him by phone how to create / remove / debug a Task Scheduler thing (such a thing could take another 1 hour.... ;) )
 
@Alex you get them at 10k but that's for questions and you have to wait 48 hrs after closure... you get immediate delete votes on questions -3 or less at 20k and get to vote to delete answers -1 or less
 
11:13 AM
@Basj have you google how to configure task scheduler in a batch file?
 
There may even be a Python package somewhere that allows you to schedule such things.
 
wouldn't be easier to have a small loop in Python that checks every hour if a new day is here or not ?
 
avi
cbg
 
user559633
cbg avi
 
user559633
11:15 AM
cbg alex
 
I'm hesitating about these different methods...
What would you choose if the main thing is : the less things to do for the customer (a retired man) the better
 
You've then got a Python process that is just sleeping, I'm not sure how much footprint that will have.
 
@Basj No need for a check every hour, just count.
 
@Basj I'd script it so it was automated to make it easier for the client, but you should use the correct tool for the job.
 
avi
guys know any python3 api or wrapper which works with Google Maps? I am getting results only of python 2
 
11:16 AM
@AlexThornton how?
 
avi
okay, I found this
 
@Ffisegydd what would you script ? the creation of a Task Scheduler task? or the checking every hour in PythoN ?
 
user559633
@avi do you know which one is considered to be the "good" one?
 
The creation of a task scheduler, as I said earlier.
 
@Ffisegydd ok
 
avi
11:17 AM
@tristan ?
 
Surely it would be better just just count the seconds, rather than count every hour and then check every hour?
@Basj
 
Another wave of rumors that Putin has cancer. Mixed feelings..
 
@AlexThornton how would you do this ?
 
user559633
@avi I didn't know if there was a "good" python2 google maps API package -- I was just going to translate it to 3 for you.
 
avi
ohh
 
11:18 AM
Another wave of rumors that Putin has cancer. Mixed feelings..
 
user559633
@vaultah Yeah. The dude has been doing things that could make my life hell, but I respect him.
 
avi
@tristan I found one which works with 3, let me try that.
 
while(true):
    secondselapsed = time() - oldtime
    if secondselapsed > 24*3600:
        # do the thing
        oldtime = time()
 
@Basj same way you would count the hours? time module?
 
this is quite ugly, isn't it ?
 
user559633
11:19 AM
@avi alright, if not, i'll translate the 2 version to 3 for you by this afternoon
 
Another wave of rumors that Putin has cancer. Mixed feelings..
Another wave of rumors that Putin has cancer. Mixed feelings..
 
avi
@tristan Thank you, I will let you (:
 
CBG
 
@AlexThornton do you mean counting this way ^ (see code below) ?
 
My question ban has been finally removed :) Yay! Cheers!!
:)
 
11:20 AM
Another wave of rumors that Putin has cancer. Mixed feelings..
 
user559633
@avi no problem.
 
@Basj It would be alright if you commented it.
 
avi
(:
 
user559633
@vaultah i think you're having connectivity messages. We received your message
 
morning everyone
 
11:20 AM
@vaultah You really want to discuss that, huh?
 
Ffs
Sorry guys
 
user559633
No worries @vaultah.
 
@Ffisegydd if you had (I know you don't want to ;) ) to implement the all-inside-python thing, would you use such code ^ below with a while(true) ?
 
Haha, I hate my ISP
 
Okay... so shall we have a sweep stake as to how long it takes @d-coder to get Q banned again guys? :p
 
11:22 AM
@Basj I wouldn't do it, so I don't know how I would.
 
user559633
did you see my message above vaultah? edit: hah, how would you know which was my "last message" ( Yeah. Putin has been doing things that could make my life hell, but I respect him.)
 
@Ffisegydd ok :) Let's imagine we don't have cron or Windows Task Scheduler :)
 
Then I'd create cron and make lots of money.
 
@Basj I don't know what you want from this conversation :)
 
@JonClements This time I'll make sure I'll ask questions in the right proper way.
 
11:23 AM
You've had a recommendation or two, and you don't want to follow them. Just try that code if it's the only thing you want to try :)
 
user559633
@RobertGrant he wants to create a scenario in which we go "wow that's hard" and he feels like he has a problem to solve.
 
@Ffisegydd How would you do cron in Python ? With such a while(true) loop, and couting the elapsed seconds ?
 
Man! Question ban sucks!
 
Yeah. I mean I'm at work at the moment :/ you've asked for peoples opinion and we've given it to you in no uncertain terms.
 
I know it is there for a reason.
 
11:23 AM
@Ffisegydd that's true. Thanks by the way
 
user559633
Question ban is great. People that repeatedly waste others time and don't appreciate their good will are the ones that suck
 
Originally, it was my question ban that motivated me to post some good answers, so it would be lifted. But I enjoyed it, so I kept going, got good and now I simply love it.
 
Can you please move all those messages to Trash? I feel like an idiot right now :(
 
@tristan loll ;) some sort of... I admit it's not a real problem... but I feared to have my client come back during hours about "How does Windows Task Scheduler work ? Why do you use this ? blah blah"...
 
user559633
@vaultah why? it happens.
 
11:26 AM
Yea, but it doesn't change the awkwardness of the situation...
 
@basj the same client who is a pensioner and won't ever know how the schedule was implemented if you just install it using a batch file?
@vaultah really not awkward at all
 
@vaultah It's not awkward at all.
 
user559633
@vaultah why? it's a valid topic of discussion and i don't feel as if it's awkward at all
 
@RobertGrant yeah you're probably right. I shouldn't care about this and just do as you suggested. Problem solved!
 
user559633
And this is the MTFL telling you that there's nothing to be awkward about. My internet persona almost demands that I at least create awkward jokes
 
11:27 AM
@RobertGrant do you mean the "at" command in Windows : technet.microsoft.com/en-us/library/cc755618%28v=ws.10%29.aspx ?
 
@tristan my mentor who recently died loved awkward jokes
 
I agree with you all about Question ban.
 
what is MTFL?
 
user559633
I'm sorry to hear about your mentor @RobertGrant.
 
11:28 AM
an example of awkward jokes please
 
@tilaprimera @tristan my mentor who recently died loved awkward jokes
 
melons @tristan
 
There you go
 
hee
laurels
 
user559633
you should have tried to have his wake on the same day that a wedding was happening
 
user559633
11:31 AM
just show up with the casket after everyone has taken a seat in the pews and then just stood there like "oops, oh, am i? oh. make a phone call. okay, hmm. can we..can i leave this here?"
 
user559633
"would that be weird? tell me if that would be weird"
 
how do you simplify (2(n+1))! ?
 
there's nothing to simplify
 
@corvid Algebraically, you don't. Unless that is big-O notation, in which case it would simplify to just O(n).
 
user559633
2n+2, if you're going O notation, the +2 is irrelevant and the 2n simplifies to n, making O(n)
 
11:35 AM
^what he said
 
then can you simplify (2(n+1))! / 2n! ?
 
user559633
Are you doing O notation @corvid?
 
nah
 
@corvi wait, are those factorials?
 
yeah factorials with the exclamation point
 
user559633
11:36 AM
then you can't drop +1
 
That might complicate things a bit
 
cancel the two 2s
then
(n+1)! = (n+1) * n!
and that divided by n! will give
>> n+1
final answer..
 
user559633
You can't ignore the 2. It affects the amplitude.
 
since it is simplification..i guess it won't affect the outcome..
oh wait...
my bad..
i got what you mean..we need to use the 2
: )
i had not see the braces so well..
anyhow, can we not do separation on them and make the numerator to 2! (n+1) ! ??
 
user559633
You could make it (1/2n!(2(n+1)))
 
user559633
11:42 AM
but that doesn't really add anything
 
oh molly..i dont know..
[see] (chilimath.com/algebra/intermediate/fac/…) although there is different arrangement of the braces, example 4
oh leave it
 
@tristan lol sorry just read that wedding thing
 
user559633
@tilaprimera the two aren't equatable...
 
yea they are not...
so what do we do in this case?
 
I should buy a horse, it's the best mode of transportation
 
user559633
11:47 AM
You solve 1/2n!(2(n+1))
 
that is a good idea but you need to clean the road with every poop it makes on the way
is that 0.5*n!*(2(n+1)) ?
 
@corvid is it (2n)! or 2(n!)
 
user559633
I think something got lost in translation
 
(2(n+1))!
 
ohkay..on your part or mine?
: )
 
bah, this class is absurd
"prove that for all ints k, if k > 1, then k^2 + 2k + 1 is composite". (k+1)(k+1) should seem an obvious answer, right?
 
I hated doing proofs.
 
you have no way to escape from that, esp you..laurels!
evil laruel
 
The formality and syntax of proofs is very annoying... although, induction is pretty important in programming in general
awh... horses cost $3,600 a year :\
 
12:06 PM
Today is a yamming mess
 
why's that?
 
I hate today. It can die in a fire
Slightly unsafe client location, slipped on a pen dropped very expensive laptop
No longer booting
 
*laurel (it is correction of my above typo, in no way trying to laurel in your situation)
that sounds like hell
 
No data loss or anything. At worst would have lost yesterday's work. The only issue is that I have to coax VS2008 to work on another machine. Last time, it took me a full week
 
Visual studio?
 
12:11 PM
@IntrepidBrit I feel thy pain.
 
user559633
Unsafe client location? Maybe don't take client contracts in Baghdad
 
@corvid Yeah, I wouldn't mind so much if I could use modern versions of VS but they dropped SDK support like a hot stone (despite theoretically supporting the OS for many more years)
@tristan But Triiiiiistaaaaaaan, they pay SO well. I just can't help myself
 
@IntrepidBrit Microsoft's worst move in any situation is always to drop support for something. And yet...
 
what's an "unsafe client location"?
 
Edge of a volcano?
30k feet up without a parachute?
The middle of a cage containing lions that haven't been fed for a week
West Africa?
 
12:16 PM
Standing in for a priest conducting a Sierra Leone funeral?
 
at the front lines of the Roman legions as the hold off the armies of the Eurasian Steppe?
 
@corvid did the Romans have much requirement for software development though?
 
Bringing Hitler bad news and saying, "Don't shoot the messenger!"
 
I don't want to say over an "open medium" like SOchat
 
12:19 PM
apparently they didn't like listening to their scientists, they did after all build their aqueducts largely with lead
 
But let's pretend I was dragon riding to the office
 
@IntrepidBrit you're working for a company doing voice recognition?
If so, your clue was conveyed in very natural language
 
Haha
If only ;)
 
user559633
Westeros?!
 
user559633
Your contract is in Westeros?!?
 
12:23 PM
John Snow wants an army that doesn't berate him for his lack of knowledge.
So we're trying to reprogram Hodor
 
user559633
Hodor is the name of my bugtracker instance
 
I like that
 
@tristan or is it a... hodortracker?
The italics there not really having their full effect
 
user559633
No. It's Hodor, Robert, it's Hodor. That's why I typed "Hodor is the name of my bugtracker instance," do you even read what I type? C'mon buddy
 
Need a space after the . :)
 
12:30 PM
@tristan sorry Tristran. come on rob, get it together
@tristan have a shandy
Ah hahahahaha. Ha.
 
/me grabs rob and gives him a good shake... come on Rob! Get with it Rob! :p
 
user559633
It's 8:30am @RobertGrant first you ignore me and then you try to turn me into some sort of bathrobe-wearing, he's-throwing-his-life-away alcoholic?
 
Some of us are already there
 
@ZeroPiraeus: sorry, couldn't resist working out the Python 2 sorting rules again; it's a complex beast.
We could also reimplement the Python 2 comparison rules to detect NotImplemented return values vs. TypeError exceptions.
hrmz.
 
Every SA session I create is called Hodor.
 
12:42 PM
Nope, won't work as complex numbers now just return NotImplemented
 
@JonClements Should I stop using declarative_base and use automap_base?
 
No idea... don't dabble that much in SA... not heard of automap_base...
 
divisibility proofs are worst proofs.
 
@corvid Surely they're the easiest? Just factorise.
 
nah, I dislike them a lot
 
1:01 PM
Issue has nothing to do with requests but with the OP reading empty files (probably from the current working dir if folder is an empty string).
 
avi
can anyone ELi15 me on messaging or Celery etc? read wiki, but I am too noob to understand all that. why do I need to use such tools? is it like asynch?
 
@avi i use celery almost every day for running background tasks, scheduling, queueing tasks like that
 
avi
like Cron?
 
ELI15? Why aren't you in school? What are you doing on SO when you should be in lessons?
 
cron does only scheduling?
 
avi
1:05 PM
@ChillarAnand let me read
 
Because when your web server needs to respond to large numbers of requests you want to respond fast.
 
user559633
@avi cron does task scheduling and runs a task at a pre-specified time. Celery or other queues allow you to offload a task to a "listener" that will do work as soon as it can/
 
If you cannot respond fast, you push the work out to a asynchronous task and respond fast anyway.
So your web request returns, and the slower work won't hold it up.
 
user559633
A good example for a website is sending out "forgot your password" messages. Say that you want to email the user and you don't want the webserver to wait for the email to be sent before redirecting the user to a page that reflects that a message has been sent
 
avi
like handling requests in asynch? like Motor? @MartijnPieters
@tristan aha, makes sense now!
 
user559633
1:08 PM
It's helpful to think of it like async, but imagine that you had 10 webservers and 5 machines dedicated to just doing WHATEVER WORK the webservers think will be blocking/will slow responses to users
 
user559633
The 10 webservers can say "someone else do this" and celery or a task queue is what facilitates that.
 
user559633
(this is a huge oversimplification and one of the more common use cases. this model also gives you a large number of other benefits)
 
@Martijn what's the dupe for this one
seems to turn up about once a month
 
bah, why does java have to be so difficult? Why can't it just do the thing?
 
user559633
@corvid because a bunch of programmers need jobs. especially if they're not creative or clever people
 
1:11 PM
I never thought making a dictionary of the lowercase alphabet would be such a massive pain
 
avi
@tristan thank you! (:
(:
thanks all
now it makes sense.. I will try to use in app
 
user559633
:) any time
 
if i do something like
for egg in eggs
how i know which egg is "parsing?"
 
user559633
What do you mean parsing?
 
user559633
You're iterating though a list of eggs.
 
avi
1:16 PM
@DeepVinicius you can use enumerate so that you also get index
and you know 'which' egg
 
@DeepVinicius Umm... print it out? Or you could keep track of the index with enumerate.
 
avi
for index, egg in enumerate(eggs):
...
 
sorry if that was unclea
enumerate is what i need, thanks
 
user559633
Or, to not make assumptions about your level of knowledge, you can look at the __iter__ definition for the eggs object
 
@JonClements That's actually about the hash value of tuples.
 
user559633
1:21 PM
Whoa, that's a big edit to the question
 
user559633
Can someone describe how lists are implemented in Python? edit: dicts
 
@JonClements: hrm, yeah, it is about misusing is again. Not sure what the best dupe target is.
 
1:38 PM
I'ma fail this class you guys :|
 
@corvid Why do you say that?
 
@MartijnPieters It is both awesome and a little disturbing that you went to that much effort over a question that not only already has an accepted answer, but already has a bounty obviously preassigned to that designated answer.
 
@AlexThornton there are three tests, total of 30 questions on all tests, and that is 90% of the grade. Getting any part of a proof wrong (even if the conclusion is correct) is 0 points on the question
 
What a cabbaging awful method of marking.
 
@corvid Just practice, and keep your cool.
 
user559633
1:40 PM
that's alright @corvid, the world will always need janitors
 
^laurel
 
yeah, I like projects a lot better. Get time to figure things out, rather than a stressful 50 minute period to determine 30% of grade :|
 
At least you'll be able to get large parts of it over and done with quickly. @corvid
 
user559633
Well, clearly not projects in which he has to do proofs.
 
user559633
(i'm kidding @corvid, you'll be fine. especially if the professor grades on a curve)
 
1:47 PM
@ZeroPiraeus But there wasn't a correct answer on that post yet. My answer sorts the way Python 2 sorts, which is what your question asked for.
 
user559633
@corvid seriously, i'm sure that you'll be fine. where's there's no advantage for rushing for partial credit, simply work through one at a time and check that each step makes sense in context
 
yeah, math class in general is hard. Writing classes are easy cause shotgun approach to question answering
 
@MartijnPieters It asks for a number of things, some of which are mutually exclusive :-P
 
user559633
 "to": [
            {
                "email": "recipient.email@example.com",
                "name": "Recipient Name",
                "type": "to"
            }
 
user559633
from now on, i'm going to require dictionaries that have subdictionaries with the key of the dictionary.
 
user559633
1:56 PM
"game" : [ {"action": "new", "type": "game" } ]
 
rbrb
 
user559633
ohh i needed to read salad lang again
 
still not a big fan of IS but at least I found a source of quality tuts on it. @Ffisegydd although the current version still using X11 which makes it awful to use on a Mac, but it is still free: inkscapetutorials.org
cbg(all)
 
Umm... is there anyway in MySQL to force a portion of a table into RAM?
 
I've been using iDraw and loving it.
 
2:01 PM
I found another plagirist.
 
3 answers out of 3 checked are copies.
17 more to check.
 
@Martijn Plagiarist of what?
 
@Ffisegydd I know, I know -- but have you looked at the new rising star vector editor in the AppStore called Affinity Designer ?
 
@AlexThornton copying other Stack Overflow answers wholesale.
then passing them off as your own.
3 out of 4 so far.
 
2:04 PM
@MartijnPieters should he link to the original answer?
 
@Peter will look at it now.
 
@ChillarAnand I would either put a 'related' comment, or if it is the same issue vote to close it as a dupe.
 
@ChillarAnand more that that, see stackoverflow.com/help/referencing
 
Eh. @Peter I don't need that much.
 
but it looks good, isn't it?
 
2:05 PM
You need to write original answers; quoting others is fine, don't just copy, with or without credit.
 
(it has amazing features, tbh)
(even if you don't need those -- I know ;))
 
@AlexThornton @MartijnPieters to answer a question, if i copy a piece of code from another answer, i must reference it?
 
guys, give me some reasons why python is a good introductory language in computer science department
 
@ChillarAnand if it is not your work, credit it.
 
user559633
@corvid because you can focus on solving a problem without dealing with types, it's interpreted, which lends itself to guess/check very well, the builtins are numerous, meaning you don't have to go into teaching data structures to teach logic
 
2:11 PM
5 out of 7 blatant copies..
sorry, lost count. 6 out of 8. 12 to go still.
 
Those are all good, Tristan, I also added disassembler
 
Haha... I read that too quickly, and saw "6 out of 8.12" - was thinking 8 and almost an eighth of a post? Wat?
 
The joys of the moderator tools. :)
 
@corvid Is "it's becoming the standard" likely to fly with the people you need to convince?
3
 
@corvi Large built-in library for scripting, but still has low-level access that makes programmers happy, easiest syntax in the damn world. etc. Google uses it?
 
2:18 PM
That was a devious one; copy replaced right with left, introduced a spelling error, but I still found the original
 
Being able to do 'Hello world' in one line might convince them.
@corvid
and object-orientation is always fun
 
Whenever I find an original answer it is almost disappointing..
 
@ZeroPiraeus it is so good to hear that..
 
@MartijnPieters how do you find that answer is duplicate?
 
I can only hope the folks who are teaching it, teaching the pythonic way as well, not only the "translated from C to Python"-like coding :)
 
2:22 PM
@ChillarAnand soon we shall use Nidaba! :)
Soon means probably 2015 though :)
 
@ChillarAnand a bit of Google magic..
 
What.. Python is Now the Most Popular Introductory Teaching Language at Top U.S. Universities? I wish to see that happen in Indian universities also!
 
\OFF
@JonClements && @Kevin yesterday, I finally figured out how to create public lists on IMDB -- god, I hate the UX of IMDB so much.. or am I just too stupid to understand it? ;);) -- so here is my "great list" with movies and tv films and series in it.. Well, the second half is not properly ordered, but I think you get the point:
\ON
 
Oooo K-PAX - haven't seen that in years
 
2:29 PM
That's 10 flags, and some clean-up edits for the remainder..
so 10 original answers, a whole 50%!
Or at least answers for which I have found no evidence of copying, but they were very thin on the ground anyway.
The OP has already self-deleted one such answer.
 
Cabbage guys
is it possible to make an array of tuples?
like colo = [ (0,0,0) , (255,255,255)]
 
Yes.
 
I'm assuming you mean a list of tuples?
Of course you can.
 
Sorry, a list, yes.
 
well i find it difficul to call it a list
._.
colors = [(255,0,0), #red
(0,255,0), #green
(0,0,255) #blue
]
if i try to use colors[0] as an argument of a function
 
2:38 PM
@DeepVinicius When your question is "can I write this?", just do it. The interpreter will tell you whether you can or not.
 
My oh my, that user really wanted to gain rep; just saw they lost a large chunk of rep from a User Deleted event too.
 
it says list assignment out of index
 
@DeepVinicius Really?
 
@ZeroPiraeus yeah, i know, i can't figure out the error
 
It has a first item...
 
2:40 PM
This sounds like an issue with timing.
 
this function is the one i was talking
 
Like, colors is empty when you try to access the first element.
 
screenList[i*nRows+k] = (ScreenDivision(desktop,
-1,
((resolutionX * k / nCols), (resolutionY * i / nRows)),
((resolutionX / nCols), (resolutionY / nRows)),
colors[0])
)
i declare color as a global
 
There's two lists in that line you know...
 
2:42 PM
screenList[i*nRows+k] is the problem.
colors[0] is fine. You would get 'list index out of range' if that was wrong.
'assignment' is the clue here
 
oh, that was the line of the error, that's why i focused on colour
what's the problem in the assignment?
 
It's probably worth mentioning that assigning to a list won't cause the list to resize in order to fit it. x[100] = 23 won't grow x to a size of 101 if it's smaller, it will just crash.
 
This is where you kind of have to debug the program man.
 
So if you're initializing screenList like screenList = [], it's not going to be big enough. You could do screenList = [0] * listSize, where listSize is however big it needs to be.
 
ok, thanks, i thought there was a specific reason
yeeeeep
that's the problem °_°
 
DSM
2:48 PM
Morning cabbage for all.
 
Or, alternatively, use append to add items to the end of your list, which does do resizing for you. Although it can be tricky to incorporate this if you're doing fancy arithmetic to figure out the index of each item
 
mornin'
 
cbg
 
i was using fancy arithmetic which does return an ordinated list of numbers, actually ò_ò
 
@davidism cbg! Just the guy I was looking for!
@davidism Got a minute for a SA question?
 
2:57 PM
morning davidism
supposedly the lead of my department says languages like ruby or python are too hard to learn compared to java. Hm.
 
@corvid I've tried to learn java. I hate it.
The lead of your department is an idiot.
rbrb guys
 
If he didn't want you to teach Python, he shouldn't have asked you what language you want to teach.
 

« first day (1475 days earlier)      last day (3464 days later) »