« first day (1639 days earlier)      last day (3302 days later) » 

8:01 AM
Looks like Avinash is in an hurry to get his hammer
 
OTOH, YOU's answer (that I like) which uses x.lstrip(' ') is also building a new string... I'm glad I put the YMMV disclaimer in my comment about which answers are Pythonic. :)
 
I'd like YOU's answer best, except that he does F = lambda ...
just use a def...
 
Sure, but I was just ignoring the lambda. :)
 
@AvinashRaj nice timing, we were discussing ur answer there
Though it is not dv worthy!
:D
 
really?
 
8:06 AM
Poor samlexxy is having problems fixing his answer, despite numerous helpful comments. But I'll give him another 10 minutes before I dv.
 
@AdamSmith this won't give you the exact length.
since re.findall returns a list.
 
And also all the best for py gold
Get it asap and hammer all the dupes
:D
 
@AvinashRaj ah, oops. len(re.findall(r"^\s+", text)[0]) then :)
 
@BhargavRao Yep, tomorrow i''ll get that.
@AdamSmith now, it's ok..
 
8:08 AM
And do provide links to regex howto, whenever you mention about using module re
 
BUt re.findall(r"^\s+", text)[0] won't give 0 as a result if there isn't leading spaces.
 
No it will throw an IndexError which you can catch and return 0 :P
there's a reason I didn't post it as an answer~
however r"^\s*" would return 0
iirc
since it should catch the zero-length match at the start of the string
 
It is surprising that the question is not a dupe
It looks so much like a simple problem
To have not been asked before on SO
 
it is a simple problem
I'm sure it's a dupe
 
i added an alternative
len(re.match(r'\s*', s).group())
 
8:15 AM
@AdamSmith Searched like hell before answering
Else it would have been FGITW
 
@AvinashRaj Why not just re.match(...).end()?
 
@AdamSmith Good call. Maybe you should post that yourself. Or are you happy to let Avinash take the glory? :)
 
I'm not interested in answering it
 
@AdamSmith post it. I'll delete mine.
 
@AvinashRaj DONT delete.
It is an answer
 
8:19 AM
done.. deleted..
 
no, problem. You may add it to your's..
@BhargavRao did you watch the yesterday's match?
 
@AvinashRaj Yeah! RRRRRCCCCCBBBBB
 
RCB vs KKR
 
Gayle - 96
 
8:21 AM
I stayed in Bangalore for three months. I think the area name is Vijaya nagar.
 
*Vijaya Nagar
 
sorry typo
 
@BhargavRao Please undelete that answer, and add Adam's suggestion to it. I'll upvote it.
 
@PM2Ring Why you ask this to Bhargav?
 
@PM2Ring Twas @AvinashRaj's answer
lel
 
8:24 AM
Oops. I was agreeing with Bhargav that AvinashRaj should not delete!
 
@PM2Ring That's why I added that emoticon
|o
 
@BhargavRao :) I upvoted you a while ago.
 
Oops started raining!
Mango showers
@PM2Ring I know :) the 3rd one
I have a strange algo that lets me know who voted!
Though 90% of times it predicts wrongly
:(
 
s/know who/probably know who wasn't the one who/
 
Daf was dat?
 
8:29 AM
@PM2Ring done.
 
@AvinashRaj Cool now upvote worthy answer
 
@PM2Ring it is safe
 
And the guy who downvoted will return
And remove his vote
 
@AnttiHaapala That SQL thing? Excellent.
 
till now i assume stackoverflow.com/users/846892/ashwini-chaudhary a female member. Because of the name Ashwini . But this person is a male.
@BhargavRao
 
8:33 AM
@AvinashRaj South Indian Problems
 
Ashwini is a famous male name in the Hindi heartland and a female name in the plateau
Same with Indra
But the other way round
:D
 
how different are the various indo-indian languages?
 
Completely. The transition is quite visible from Kashmir at the top to Kanyakumari at the bottom
 
is there continuums of mutual intelligibility
 
8:39 AM
Nope
I can't understand @AvinashRaj's language
:D
 
@AvinashRaj what's your mother tongue
 
There are 22 official languages in India
 
how about how good is the command of Hindi then?
or is it starting to be so that Indians start talking in English with each other?
 
@BhargavRao Why? so many grammatical mistakes?
 
Nope I dunno Tamil
 
8:42 AM
sorry i'm poor in English Grammar part.
 
@AvinashRaj Hey! Not english. I meant Tamil
 
How do I figure out my total score on Python answers? I have a bronze, but I'd like a silver...
 
@PM2Ring your profile page
your score is 261
your upvote ratio is not very good :D
 
@AnttiHaapala Tamil
 
you might want to enhance your FGITW
 
8:44 AM
@AnttiHaapala English is the official language in Nagaland. A very scenic state
 
@BhargavRao I also can't understand your lang :-)
I or me?
lol
 
@AnttiHaapala At least as different as the European languages, although there are related families, and many Indian languages derive fairly directly from Sanskrit, although you do get a lot of language evolution over the space of a few thousand years. :)
 
@AnttiHaapala What's your mother tongue?
 
Finnish
and no it is not an indo-european language
 
@PM2Ring Sanskrit and Tamil ...
Kannada was the mix of both
Kannada got the GWR though!
 
8:46 AM
I know some kannada words..
 
many indian languages are indo-european :D
unlike finnish :D
 
ohh, I forget that.
 
@AvinashRaj I know Vanakkam asin - Vanakkam Avinash, nalla irikiya
That's my limit
@antti How far is Ivalo from your place?
 
500 km
 
Can you also see the auroras?
 
8:51 AM
yes
 
Have any awsum photos?
 
not mine :D
 
lel
 
You the guy in the first photo?
:P
 
8:53 AM
this was less than 1 month ago (and of course I was sleeping)
nope
 
You so dum ... Who would miss auroras coz of their laziness
 
Damn it, misclicked
 
How many people agree with me of sharing beautiful photos (natural sceneries) taken from our current living location?
Not compulsary but it would be awesome..
 
@vaultah Banned?
 
Nope, not yet...
 
9:00 AM
So lucky!
And all the best for 10k
 
thanks :)
 
@AvinashRaj In private if twas possible.
Where do ya live in Chennai?
 
No, Madurai..
 
@AvinashRaj Madurai?!?! :O
TCE?
 
TCE?? means
 
9:03 AM
Tata Consulting Engineers Limited
:D
 
Thiyagarajar College of Engg
 
@thefourtheye facepalm... I shud have put that
 
I'm a 2013 passed out student.
 
def leading_spaces(s):
    return next(idx for idx,val in enumerate(s) if val != " ")
 
9:05 AM
studied in Hindusthan college of Engineering , Coimbatore./
 
one more
almost certainly the fastest
 
Hello everybody, All the day spent today trying to solving stackoverflow.com/questions/29587617/griding-a-numpy-array Can somebody provide super easy answer?
 
That's a relatively new ques on SO
Wait there till ya get answers
If you don't get any after a few days, then post here
 
I've seriously considered going and learning numpy just so I can get MOAR POINTZ
 
@AvinashRaj Maan! I like Madurai for many reasons
 
9:08 AM
really? post the reasons one by one. lol :)
 
@AdamSmith You stay away! Mine!
It's bad enough I have to share the sciencey points with @DSM
 
@AvinashRaj What are you doing in Madurai da?
@AvinashRaj I have hell lot of memories :D
 
@AvinashRaj Certainly not here bro!
 
@thefourtheye nothing other than playing,eating,sleeping,answering :-)
 
Eh! You don't take bath?
 
9:14 AM
@BhargavRao add that also,..
 
@AvinashRaj Your native is Madurai?
 
@thefourtheye Your native ... Chennai?
 
@thefourtheye yep .. We already talked about this. Did you forget?
 
@BhargavRao There is a small town called Virudhunagar, near Madurai
 
@thefourtheye where did you studied?
 
9:16 AM
@thefourtheye :)
 
@AvinashRaj KCET
 
Kamarajar College of Eng and Tech?
 
Ha, answered jose's numpy question anyway. Take that @Ffisegydd!
 
9:19 AM
@BhargavRao are you in FB?
Give a Friend REq.
 
@AvinashRaj Yep. Check it out
 
It concerns me when the TOC for the beginner's guide to Arch Linux is an entire page long.
 
@Adam Smith Thanks..
 
arch linux to me is always "argh linux"
 
It seems...interesting I guess?
I don't have the time right now to learn it
is basically what it boils down to
Any big differences between Ubuntu and Linux Mint other than GNOME vs Unity?
(or I guess Mint comes with more than just GNOME but....)
 
9:33 AM
I dunno
 
What do you use, @AnttiHaapala?
 
ubuntu now but I hate it
unity sucks
gnome sucks
kde rocks but kde as butchered by ubuntu sucks :D
 
@AnttiHaapala Ah! So that's what those numbers mean. I knew it was somewhere on my profile page, I just forgot where, exactly. :)
 
@AnttiHaapala Mint has a KDE flavor
 
@AnttiHaapala True. I'm 65% of the way to Silver, so the situation isn't totally hopeless. And as I've mentioned before, I seem to answer a lot of questions from people who don't have enough rep to vote, so that impacts my upvote ratio, but OTOH it also got me Unsung Hero.
 
9:38 AM
I thought you could always vote on the answers to your own questions?
 
@PM2Ring if you got the unsung hero, there is nothing more to gain from answering the 1 rep bad questions :D
instead if they are dupes, cv them and move on :D
@PM2Ring the first is score, the second is number of posts
 
Bleh okay, fuck it. Wiping and installing Ubuntu since I already have a liveUSB for it.
If I never come back, tell @Ffisegydd he can have his numpy rep back.
 
:D
 
@AnttiHaapala Understood. So if I got an average of (a little over) 3 more upvotes per answer on my existing answers I'd have Gold.
 
@PM2Ring exactly
I have 561 answers and I had gold long time ago
 
9:42 AM
don't worry, my numbers are similarly dismal 824 × 656
 
@PM2Ring also you should consider upgrading your python :D
 
@AdamSmith Dunno. But I've seen newbies apologizing that they can't vote. Some even come back later & upvote. But not many.
 
653 × 320
Not that bad then
 
@AnttiHaapala Maybe I need to change my distro - I'm on the stable Debian stream, which means my default Python is 2.6. And I'm scared to change it in case I break something. OTOH, I guess I could investigate virtualenv...
 
@PM2Ring there is 3 always
python3
debian and ubuntu therefore are very good at multipython installations
maybe you should go for jessie?
 
9:52 AM
I currently use a somewhat obscure member of the Debian family - Mepis. I originally started using it because it was more stable than Ubuntu, and there was a book about it with alive CD in the local library. These days, I guess some flavour of Ubuntu would make more sense, or maybe just straight Debian. OTOH, I have thought of giving Arch a go.
When I'm traveling I use Puppy on a USB, which is kinda fun, but I think I'd like something more fully-featured for my main distro.
 
I know davidism recommends Arch.
 
@PM2Ring I call it ARGH linux for 1 reason:
to me Linux is about doing work, and I get the feeling that ppl using Argh just want to tinker with it :d
@PM2Ring why dwouldn't you just use debian unstable?
 
10:07 AM
Why not just get a Mac? <3
 
RbRb guys
:D
 
@Ffisegydd bc mac is for trolls
nothing works on it but you can always say "but hey it's a mac and it is expensive"
 
@AnttiHaapala In that case, you might like Mepis. :) It's always used KDE Plasma Desktop as the default desktop environment, and from what I've seen on the Mepis forum Mepis does KDE a lot better than any of the Ubuntu variants. I use Mepis 11, but there's a Mepis 12 in beta.
@AnttiHaapala Well, you learn how it works by tinkering with it. :) The learning curve for Arch is a bit scary, but I would like to learn more about the core details of Linux anyway. OTOH, Puppy can be good for learning, since it's such a tiny distro, and designed for customization. But it's not exactly a typical distro, so Puppy knowledge doesn't necessarily transfer to other distros.
 
10:23 AM
@AnttiHaapala Why unstable? I like stability! I forgot to mention that as well as using the Debian repos, Mepis has its own repos, some from the Mepis organization, and some created by the community, so you get the stability of Debian stable, plus added goodies, including some from Debian unstable.
 
@PM2Ring I am not interested in tinkering anymore, it is so highschool
debian unstable is much more stable than any other operating system
if you don't like debian unstable then you will hate arch
arch is like "debian too unstable to be in unstable"
 
@AnttiHaapala Ok.
 
also it is a rolling release, so if you do not update every week or month then you cannot really update your system anymore :D
you need to install intermediate packages from "archives"
what with ubuntu LTS happens after 5 years happens with arch in 5 weeks :D
anw, use debian jessie
python 3.4
We now have a target release date of Saturday the 25th of April. We
have checked with core teams, and this seems to be acceptable for
everyone. This means we are able to begin the final preparations for
a release of Debian 8 - "Jessie".
WOOHOO
 
4
A: How to get events in the last 24 hours with SQLite?

avikar96See edit, question resolved. I'm a moron.

There's no "edit" anymore
 
yeah
I will edit the answer
 
10:34 AM
@AnttiHaapala I see. That's too scary. I'd heard that Arch is a rolling release, but I didn't realize that meant you're virtually obliged to keep up with their update schedule.
 
3
A: How to get events in the last 24 hours with SQLite?

avikar96There must be a space between -1 and day; datetime('now','-1 day') works as expected.

@PM2Ring there are intermediate steps through which you need to upgrade :D
and they are like the "inofficial archives" and one needed to tinker to cope with them
or I dunno, but I have had that experience with arch when fixing a system for a newbie who thought arch is a good choice
 
@AnttiHaapala Yeah. I saw that you said you need to install intermediate packages from "archives". So you don't have to re-install from scratch if you fall behind in your updates, but it still sounds a bit annoying.
 
"a bit annoying" is a "a bit understating"
 
:)
 
as i said, linux is a tool for me
not a way of life
 
10:40 AM
I'm not exactly a Linux newbie, though. But I do admit that there's lots of low-level stuff I'm quite ignorant of. OTOH, I've done things like modifying initrd
 
when it does not work the best, I will switch
didn't ever happen though; though I use windows occasionally and sometimes tinker with macosx
they're both toys
 
cbg
Sorry @Ffisegydd, I made it back.
 
I never could get the hang of Windows. It was just so foreign to me, coming from years of using the Amiga.
Some people don't respond well when you tell them they're wrong:
dude i complete the code the guy asked..which was the first 5 whitespace....with your example i believe the continue should be "break" like you should....nd like i said mai program was the writer's example dependent not universal — samlexxy 2 hours ago
 
Is there really no way to move the Unity launcher bar?
 
anybody can advice how to debug generator expressions?
 
10:48 AM
@DominiCane unroll it into a generator function :P. What's the exp?
 
@AdamSmith it's something like (i[v].strip() for i in some_array if ....some_condition...)
 
and what's the error you're getting?
 
@AdamSmith the error is in other function with one of generated values, I'd like just go one after one, like in list comprehension..
I can make list from this, but maybe there is other way to do it
 
@DominiCane well since you can't provide me with either the code or the error, I can't help you sorry. Take some time to form your thoughts and write a question.
 
Very simply web programming tutorial w3schools.com that awesome. basically man. :O
 
10:54 AM
@AdamSmith thanks, although error code is not relevant to my original question
 
@DominiCane with respect, I'm pretty sure you don't know what's relevant to the problem =/
 
@AdamSmith with all due respect I don't remember I asked for your opinions what I know, but only for help. If you can't provide it, please feel free to start judge anybody else :)
 
Yeah, somebody will definitely help you after this.
 
@DominiCane I can't help you debug code you won't share because of an error you won't write. The fact that you can't or won't share the code that's throwing the error tells me you're not experienced enough to know how to debug your code yourself AND you're too stubborn to let anyone help. Those kinds of people, in my experience, don't have the wherewithal to know whether the error message they're getting is useful or not.
Ugh all the text seems HUGE on Unity.
Where can I turn down the font size?
 
@AdamSmith I didn't ask question about the code, it was general question about debugging generators. Maybe I that confused you and wasn't clear enough, but this wasn't my intention. I just wanted to know about common ways to debug generator.
 
11:06 AM
@DominiCane In that case, Adam's first suggestion is good: Convert your generator expression into a normal generator function (i.e. a def-style function containing one or more yield statements), and add debugging print statements at strategic points to ensure that what you think should be happening is really happening.
 
Sry.. was using from cell phone so posted as new answer instead of a comment. ! - What's wrong with those people :(
 
I don't know if that's better or worse than "I don't have enough rep to comment, so I'm posting this as an answer".
 
Actually, this is a comment posted 2 minutes after the answer :D
 
HA
that's hilarious
 
11:26 AM
2 flags
 
holy bajeezus what have I done
it's 4:30 in the morning
 
Nice.
 
11:48 AM
Is this ok as a comment?
"However, this question in its current state is too broad for SO. We can help you debug your code once you have an algorithm, but suggesting an algorithm is off-topic. "
@AdamSmith Time flies when you're having fun.
Actually, make that 2nd sentence: "We can help you debug your code once you have an algorithm, but helping you figure out what algorithm to use is off-topic. "
You're a data-representation person, Fizzy. Any suggestions for this guy: stackoverflow.com/questions/29588892/… ? Or do we just close him as too broad?
 
cbg
all the questions saying I do not know what to do next, any ideas?
should be closed as too broad
 
My biggest first world problem: trying to remember WHICH thumb drive I put <file x> on.
In this case it's -- where did I keep my key backup? Is that the one I kept at work? Is it in my laptop bag? Maybe it's one of the three on my desk?
 
But a 24k user tells me that algorithm questions are ok:
I disagree, this is a good fit for SO. The OP asks for an algorithm, and has provided his own ideas about finding one. Algorithm questions are not off topic, or there wouldn't be an algorithm tag. — IVlad 4 mins ago
 
@PM2Ring I haven't read context, BUT (famous last words)...
I feel like "How do I improve this algorithm: <code>" is on-topic
I feel like "I need help developing a binary search algorithm in language XYZ" is not
 
@AdamSmith You need a thumb drive that indexes the files on your other thumb drives. :)
 
12:00 PM
@PM2Ring wouldn't that be a hand drive? (ba-dum pssh)
 
:)
@AdamSmith Yeah. OTOH, it is an interesting problem...
 
@AdamSmith this is about "I have no idea on how to do an algorithm to do X, any ideas?"
 
I generally leave a snarky "Use maths" comment
 
all the answers will start like "well, you could try"
 
is that bad? :P
 
12:03 PM
actually I'd not even use maths for this
I'd try to match the images together only, and then draw the difference
*I'd try to orient them so that they minimize the difference
 
oh crud, I really DON'T have a backup of my GPG key. Bleh. Luckily the only thing it was ever used for was signing git commits
 
hoho
print the next key (encrypted) on paper
 
12:20 PM
Tattoo it beneath your eye lids.
I think I've broken something on the server D:
 
@Ffisegydd too risky...
adam smith comes to sopython after a looong break... "you know guys, I tattooed the damned gpg key beneath my eyelids... well had this accident, my face burned and... well so did the gpg key, damn it. Well, it took a while to learn to read braille, but here I am... cbg, btw"
 
@davidism do you know of any decent tutorials for sqlalchemy? Going to start experimenting with getting the data into postgres.
 
@PM2Ring I don't know if that's on-topic or not, but it's a very interesting question, well asked.
 
Cbg Jon
 
12:31 PM
I agree it's interesting. And quite well asked, although he didn't add the details about the input data until after I explained (in a now-deleted comment) that SO questions should be self-contained and that he needed to add that info.
 
I've got to think that's a solved problem. He can't be the first person in astronomy using a computer to do blink comparisons... and then there's machine learning, which does a lot of processing of real-world images. Then robotics, factory automation, facial recognition...
 
Haha!
 
But I guess it's not cheating if he asks for help from people who don't know the answer. :)
 
12:51 PM
CbG
 
1:16 PM
rbrb
 
1:50 PM
@MartijnPieters: Did you see stackoverflow.com/q/29586776/4014959 ?
 
2:08 PM
See stackoverflow.com/questions/29589914/python-print-array-output - @thefourtheye answered it in a comment, but it doesn't look like a question that needs to persist. Do we have a process or policy around cleaning up this type of "Duh!" question to keep the noise down?
 
@PM2Ring: no I had not. sigh. I feel for them but he is spending too much energy on avoiding fixing roundup properly I fear. Mostly on mobile today do no responses from me to that right now.
 
I feel for him, too. I'm glad it's not my problem. :)
 
That awesome feel you get after giving a good answer. Its JavaScript though :D
@BenjaminGruenbaum and @Bergi have done a pretty good job in
 
wow es5 looks so foreign to me. I should do some of that. JavaScript good answers are hard to give too :)
Want some feedback on the answer?
 
Yes... That's one of the reasons why I pinged you :D
 
2:21 PM
1. Don't use `.done` like... ever, we have unhandled rejection detection :)
2. I'd prefer Promise.map with concurrency 1, Promise.each is good for when order matters (that's the additional guarantee it makes)
3. console is bound in node
4. delay accepts a second value argument which you can use for .tap with .delay before it and return a meaningful value
Other than that lgtm, nice answer, would +1 but already voted so can't upvote again :)
 
Thanks for the feedback man :-) done shouldn't be used to explicitly mark the end of promise chain?
 
2:34 PM
And when you say, console is bound in node, you mean to say, I can write it like
return calculate(key).then(console.log);
right?
 
2:46 PM
@BenjaminGruenbaum Okay, I got it down to
Promise.each(Object.keys(fileA), function (key) {
    return Promise.resolve(fileA[key]).delay(500).then(console.log);
}).then(function () {
    console.log('finish');
});
Even @SecondRikudo suggested tap.
.tap() would be better than .then() for console.log because it doesn't affect the resolved value. (So the last .then() can use the resolved values). — Second Rikudo 57 mins ago
Reading more about it.
BTW, do we have Canon dupe for this?
 
You can only flag for moderator attention 54 times per day Not again :[
 
How/why are you flagging so much?
What you flagging?
 
In two years I could flag only 270, and you are flagging 54 in a day? :O
 
VLQ posts from stackoverflow.com/… to get Marshal badge faster
 
@thefourtheye Promise.resolve(fileA[key]).delay(500) is just Promise.delay(500, fileA[key]) iirc
 
2:54 PM
Ah so you're just flagging. I thought you were doing custom mod flags everytime!
 
Also, .tap
 
@Ffisegydd :p This error message is slightly misleading...
 
@BenjaminGruenbaum That just prints 500 and the second parameter is not documented :(
 
@thefourtheye it's not o_0?
 
Nope :(
 
2:56 PM
Oh, it's reversed lol, I'm used to 3.0 which reverses it back iirc
 
Ah, silly me...
 
People review flags slowly, 55 of my flags are still pending
 

« first day (1639 days earlier)      last day (3302 days later) »