« first day (1525 days earlier)      last day (3417 days later) » 

7:00 PM
@prog.Dusan oauth has a verify (can't remember the exact name) command
 
DSM
Cabbage, all.
 
cbg
 
DSM
@Ffisegydd: in your recent answer the string literals are concatenated and so the array only has one element, I think.
 
@davidism that's my question .. I believe that it has, but I cannot find
 
can't help you more than that
 
7:01 PM
@DSM it seemed that he had an array of individual string literals (letters)
 
DSM
@Kevin: have you considered watching the football yourself?
@Ffisegydd: yeah, but you don't, is what I'm saying.
 
@davidism anyway tnx.
 
you could also just try to make a request and see how it fails
 
Ah god yeah I missed the commas :D
 
could probably tell from that whether they've removed the auth or changed perms
 
7:03 PM
Edited. Cheers @DSM
 
I misread the time stamps in my log and thought this script was going to take 5 minutes, when it's actually going to take 5 hours. Damn. I would have tweaked it to save progress in case it blows up at the end if I had realized. I hope it doesn't blow up.
 
@davidism well, I'm trying to do it.. here is user_permissions attr.. let me see if I'm lucky
 
DSM
@Ffisegydd: here, have an upvote.
 
I left some feedback on the linkedin website earlier. On the site where it tells people to post on SO.
 
@DSM The actual gameplay is exciting enough, but I don't enjoy the other 40%, which consists of resetting the game field, showing what the people on the sideline are doing, and going to commercial.
 
DSM
@Kevin: those are the times you get to talk to the relations. It's all about the pacing.
 
To say that I was less than complimentary about their choice in moving support to SO would be making an understatement.
 
DSM
I still don't understand it. We have enough trouble getting on-topic questions as it is; introducing an alien culture isn't going to help anyone.
 
But I don't like talking to my relatives :-( Every time they ask what I'm up to, there's this implication that if I don't have any interesting updates to give, then I'm a failure.
 
user559633
LinkedIn questions remind me of sea turtles laying eggs. So many made, so few make it to the ocean
 
user559633
7:09 PM
@Ffisegydd just saw your "do your homework" comment :D
 
DSM
Kevin: so get creative. Did I mention I do special ops for an underwater exploration consortium?
 
@tristan :D
 
user559633
 
user559633
why is the computer doing this thing? because you told it to
 
Answer: The function can't read your mind
 
user559633
7:20 PM
I really want that football helmet. I think i'm getting sick, so maybe that means a weekend of staying home and getting it.
 
train-cbg
@AirThomas If Jon can carry the number he does, then I can cope too.
 
hey guys...
 
Cabbage!
 
user2555451
@Aj - Cabbage! (which is "hello" in here :)
 
7:29 PM
I think there's an HTML5 input tag that lets you upload stuff, actually
 
:) Funny..
i think you guys are nerds..
i just say Ola !!!
 
So what if we are?
 
thats good .. I wish i was one :P
 
And why would we say "Ola" and not "Noswaith dda"?
 
user2555451
Nerds are the weird ones. We're geeks.
 
user559633
7:34 PM
who are you calling a nerd, nerd?
 
okay Geeks :P
hahahah
i think i just started a war with all troops looking right at me
 
user559633
i only do this computer thing to give my legs a rest from running through b*tches all week
 
:) you got b*tches.. i got nothing :)
 
Should there be a salad word for geek / nerd ?...
 
user559633
(don't tell my girlfriend i made that joke...i can't take another demerit this quarter)
 
7:36 PM
hahahah......
 
@AjGauravdeep Not nerdy enough ;-).
 
yeah not nerdy enough.. i got my own game going on... not as good as you guys though :)
 
arrival-rhubarb
 
i got a question before i start looking up on this thing WWW. how to decompress all tgz files in all subdirectories. i was trying something with find but couldn't figure out loop part.. i am not any good with linux.. maybe little.
 
You mean a bash command
 
7:38 PM
@AjGauravdeep Is Python installed on that Linux computer of yours? :)
 
yeah.
yes it..
thats what i am using.. i was just hoping to use subprocess to call that bash command.
 
How about a tarfile module? docs.python.org/2/library/tarfile.html
 
good option, what i was thinking before(not same but something like this), but i thought maybe simply write a bash command which loops recursively instead of looping in python code
that way i will also learn to loop in the pipe output of previous command. Previous command in this case, find..
ofcourse, this wouldn't make sense "find . -name "*.tgz" | tar zxvf -" since it doesn't loop
 
@AjGauravdeep You could try fiddling with some of the answers from superuser.com/a/537037
 
@AjGauravdeep Well, I am so bad at bash that I would probably accidentally sudo and rm / if I try to do loop in it :-P.
 
abc
7:44 PM
Everything I bought 2 months ago for my PC is now 2 times more expensive #russia
 
So I would rather write 5 lines in Python.
 
haha, i am sure you are not that bad
 
user559633
@abc where are you in russia? are stores raising prices?
 
@AjGauravdeep So actually, it would probably be 3 lines :-D. os.walk loop, os.chdir, tarfile.open().extractall().close() something.
 
Turning into a comment war on @DSM's answer here (overexaggeration)
 
user559633
7:47 PM
last i checked, technopoint was selling things at the regular rate in roubles
 
Didn't the Russian government just skyrocket interest rates? Assuming that's related
 
user559633
yeah, and they're accepting more things as collateral on loans
 
abc
@tristan Moscow. I'm a huge fan of ASUS and Corsair (which both use USD to trade with Russia), so yes the USD/RUB ratio has a great effect
this was 13500 when I bought it.
 
@AjGauravdeep You can try find . -type f -name "*.tgz" -execdir tar -zxvf {} +, if you want to go the bash route.
 
find . -name "*.tgz" -exec tar -zxvf {} \;
this works but this is extracting all of them in current directory and not to same directory where files are
trying yours now
 
7:53 PM
@AjGauravdeep Yup, use -execdir, it avoids that (according to the docs)
 
yup that works,,
let me read up on it once..
so any thought of the day guys?
 
DSM
Bah. This is why I shouldn't touch regex questions.
 
Hello guys, i am compiling an app in Kivy for android and it is taking some major time (>4 hours) please help me (just ask and I will give you more details)
 
abc
@tristan and yes, most of stores had already raised prices. Some of them are closing for 2-3 days to change prices. Zara, Calvin Klein, topman, bershka etc. have suspended supplies.
 
user559633
@abc i'll be in moscow next week -- i was thinking of going computer shopping :)
 
7:57 PM
@Caridorc Slow computer?
 
user559633
bleh. i can see that from fashion/etc because they have brand image to keep up -- they'd prefer for the stock to rot on the shelf than be perceived as cheap
 
It is less than 2 years old and the app is Hello World, so something is clearly wrong.
 
@Caridorc that sounds strange (though I have no Kivy experience). You don't have some accidental loop or such do you that's insane?
 
What I did:
1) Go to Kivy.org and copy-pate the hello world app in main page
2) Go to the folder
3) Run buildozer init
4) Run buildozer android deploy debug
 
So it's the basic app? Something is borked.
 
8:01 PM
It gives no errors...
The message it hangs on is #Compile platform
I run Buildozer distclean maybe that helps
 
@Fenikso
Look at this
find . -name "*.tgz" -print0 | xargs -0 rm
 
Ok, running
No results, is this good
?
 
@AjGauravdeep It sounds like Å¡Å¡Å¡Å¡Å¡ (white noise) to me :-).
 
abc
@tristan that'd be wise :D some of the hardware I own have tripled in price.
I can suggest some good stores
 
i was just trying to show what you don't like it... rm in a bash in a recursive through pipe.. :D instead of python
 
8:06 PM
@AjGauravdeep Yeah, I kind of noticed the rm in there.
 
@Aj It runs in a second
Anyway I am reinstalling all the android packages, maybe that helps?
 
yeah it does :)
 
user559633
@abc euroset? I hadn't heard of regard until just now. was probably just going to go to the mall
 
user559633
@abc i assume that apple has stopped selling or moved prices up?
 
@AjGauravdeep I still prefer rm -rf / --no-perserve-root as my evil command of choice...
 
8:09 PM
I heard that command gives you wizard powers...
 
user559633
my favorite thing to leave behind was something that removed a random inode in bashrc in etc skel
 
yeah i am not gonna try that
heeeheh
why do people go to these yahoo groups to have fun chat when we got all in here.
 
Well, they all kinda do same...
 
abc
@tristan they raised the prices a week ago, yeah. Now there're rumours they're going to do that again soon. everoset's quite good, unless you want some computer accessories (cpu, motherboard, etc.). In general I prefer online-stores, they have lower prices.
 
user559633
8:18 PM
@abc yeah, i mostly work off of laptops now and i don't want to deal with customs on declaring computer parts. good point on online stores, i'll be there long enough to get a delivery
 
user559633
@abc what's the tone like in moscow about america/europe right now? the reports i'm seeing are making it seem as if the general public is really supporting the government and some recent speeches have had a "us vs them" tone
 
There's no function in re that specifically removes matched groups, is there? You'd just use re.sub with an empty string replacement? This feels like a stupid question.
I don't see anything like that in the docs, anyway.
 
No, me neither. There isn't one for strings (except strip, but thats different) either.
 
user3407196
Agree, use re.sub
 
guys, i am trying to merge csv files..
i know there are some programmatically ways to do it...
but i just thought of a hacky way.. looking for why one shouldn't do this if you don't like it..
cmd = "find . -type f -name 'failure.csv' -execdir cat {} \;"
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, bufsize=0)
time.sleep(15)
p.kill()
 
8:27 PM
I wouldn't do that because it's stupid.
 
abc
@tristan most of them offer a free delivery, some of they don't. Anyway, there's an option to pick the purchase from their office for free. Russians are making awful/unfunny/harsh jokes about the leaders of other countries (Obama and Merkel in particular) and yes, most of them hate america and worship Putin
 
You assume it'll take 15 seconds to merge, which may not be true.
 
umm i feel so too but why?
 
abc
(such people are called vatnik's, but don't call them like that) - they're like rednecks but more aggressive and remarkably stupid. The percent of those people has significantly decreased because of the economy problems. Sanctions appear to help the brain grow..
 
forget about the timeout part. assume it takes 10
 
8:28 PM
You're using a ridiculous bash cmd when you could just use the csv module.
 
I keep seeing you creating new subprocesses, then sleeping, then killing them. Why not just do subprocess.call? It doesn't create a process object that you need to take care of or anything.
 
Or just reading the files as strings and concatenating them.
 
well that would require looping in files etc
more code
Kevin, I almost ignored you again
let me read what call does
 
In any case, why are you using Python at all if you're just going to execute command line commands? Can't you just write a .bat file if that's what you want?
 
Someone needs to cook up a user script to make Kevin's name bold and flashing...
 
8:30 PM
or bash files or whatever the linux equivalent is
 
user559633
@abc cheers and thanks for responding to that question. i'm hoping that something good comes out of this new pressure (like actual talks and reforms in policy). also, i just recently got my multi-visit longterm visit and it would annoy me to no end if all that paperwork was for nothing :)
 
Bash script?
 
ohh no what am doing is little more complexx.. these are small places where it talks to terminal
it is much more than what i am showing you
and there are tons of modules i am using which are in python developed by my company to talk to devices attached to where this program runs..so gotta make my life easier doing that
 
abc
@tristan also, people in Moscow are generally more adequate, so I doubt you'll run into any problems in there
 
@AjGauravdeep Relying in subprocess would be my last resort based on my experience. Learning Python a bit more would save you a lot of time and trouble IMO.
 
user559633
8:32 PM
:) yeah, and the time i'm spending outside of moscow is going to be only with friends and family
 
@Fenikso I will take your suggestion for dinner
 
With gravy
 
I don't necessarily condemn the frequent use of subprocess here. Python is multi-paradigm, and if you want to use it as glue to combine together existing command line functions, that's fine. It's just not what most of us do every day.
 
@Kevin Sure, if he has the peaces already working. But if he is writing a subprocess command to call a bash command to join two csvs in a hackish way, that smells.
 
8:41 PM
haaaaaaaaat!
 
Is it possible to execute a Python function as another user using multiprocessing, subprocess, etc? Assuming that the main is running as root of course.
 
@Fenikso He is calling the bash command remotely, that's why the use of subprocess
 
15
Q: Run child processes as different user from a long running process

Peter ParenteI've got a long running, daemonized Python process that uses subprocess to spawn new child processes when certain events occur. The long running process is started by a user with super user privileges. I need the child processes it spawns to run as a different user (e.g., "nobody") while retainin...

 
@AirThomas I do not see anything remote in there. Care to explain?
 
Well, I suppose I'd better make sure my assumption based on his earlier questions is correct then...
 
8:48 PM
I was referring to the one for joining CSV files.
 
In that case, withdrawn
Earlier he was using it to communicate with an external device and I still had that on my mind, I guess
I need a fork. I stole my wife's lunch today and she has forks at work. I don't have forks at work. I am forked because I am forkless. Sigh.
 
@AirThomas Just fork someone else's fork then? :-)
 
I heard you liked forks? So I forked your fork so we could all fork while you fork.
 
@Ffisegydd And eat lunch. Do not forget the food.
 
9:17 PM
user has also been repeatedly pinging me in the comments asking me to help them
sometimes I regret commenting for clarification
question in general is all over the place, has at least 3 questions implied in it
 
tbh I've used the linkedin message but the question is just eh in general.
"How do I get people to use my app?"
I kinda wanna make a meme for linkedin along the lines of
 
Haha, did some proofreading on that wiki page and changed the title, your link broke. I changed it back, but I really need to get the wiki redirects and revisions working.
 
Unfortunately, I doubt some would find it as funny.
 
user559633
@davidism ugh, the pinging thing. i'm in an irc channel in which people now recognize me as "the guy that understands how (tech) works -- ping him with inane 'how does i do thing covered in FAQ' questions"
 
I came home for Christmas. Already had 5-6 technical problems to solve.
 
user559633
9:32 PM
heh. i solved that by buying my parents an imac
 
My parents have a laptop each, both Windows 8, neither of them know how to use 8 and neither do I really.
 
@PythonMaster stop being a jerk and read the pinned message
please don't star random stuff
 
user559633
ur're not my real dad ;_; edit but you can remove my star from the side
 
yeah, deal with it son
 
user559633
i cant deal
 
9:35 PM
I really hope they don't do this star sh*t again next year.
 
user559633
what's the number of starred posts?
 
user559633
oh. that's a small enough number that it could just naturally happen.
 
oh god, that user pinging me deleted their comment then re-added it to ping me again
chameleon ping
 
DSM
9:38 PM
!
 
user559633
we could just close vote the post
 
it's at 4 votes
 
@davidism flag the comments.
 
I have been
This one will probably be declined because I forgot to use a custom reason, and it looks like the comment is adding info.
 
Screw it, I'm going to the drug store to buy forks. You can't stop me!
 
9:43 PM
Don't! That's what they want you to do! Eat with your hands! BE FRRRRREEEEEEEEeeeeeee.....
 
DSM
Didn't I always say AirThomas was a tool of Big Fork?
 
sporks are the utensil of the future
 
"I don't buy into the socially accepted notion that we can't eat with our hands."
 
I eat with my hands in certain company or at particular restaurants. But today my lunch is covered in tomato sauce and eating with my hands would be nightmare mode.
 
DSM
So eat it trough-style. All you need then is a postprandial towel.
 
9:45 PM
Roll up some paper and make chopsticks.
 
My shirt is a reddish color...
 
DSM
In that case it doesn't matter how you eat: you're doomed anyway.
Gather ye rosebuds, etc.
 
I'm starting to suspect you folks are bean influences.
 
D:
 
10:13 PM
Ok time to stress test the server (slightly)
 
Now they changed the question in their latest comment, after it was closed: stackoverflow.com/questions/27572733/…
 
Up to 240% CPU
Also GOOOOOOOOOONG
 
user2555451
10:28 PM
From this question: "If someone can help me by explaining me"
 
user2555451
I forget, do we do psychiatry?
 
It's gone anyway :P
 
user2555451
Yea, he deleted it just after I posted that.
 
Woo 300% CPU usage.
 
It suddenly got very in here
 
user2555451
Ah man, tristan is going to be so sad when he sees us.
 
:D
 
itd gettgni very hard tyo type wth this oversizer hel,ym on
 
11:05 PM
Should this be closed as a dupe of one of the questions about getting the size of objects in Python? stackoverflow.com/q/27574881/2359271
Or just reference it
 
No it's not a dupe at all
Not a bad idea to reference the older post though
 
I mean, he's basically asking "why does numpy array take up no space"
 
Well no he's asking "Why does one array take up no space, but another similar array takes up 1.5GB?"
 
Yeah I suppose you're right.
 
user2555451
Plus, it's numpy, which is 3rd-party. There is no guarantee that they did things the same as Python.
 
11:11 PM
Yeah, numpy be cray.
@Jon @davidism upgraded the mongodb now. So server is back to usual memory usage etc
 
11:38 PM
I love how this question (from a month ago) addresses the entirety of Stack Overflow as, "Team..."
 
user2555451
Sure, we're a team. Just a 3,700,000 person team. But still a team! Go team!
 
Not only that, we're your team
 
and it has a please do the needful in it - double bonus!
 
Just waiting for an assignment. Glad to be helpful. When there's something needful in the neighborhood... who ya gonna call?
 
exact dupe or not clear (still), take your pick
 
11:45 PM
Closed.
 
DSM
Aw, man. Just missed.
 
I've got to stop using https links, it breaks the cv-pls extension's close detection
 
You snooze you lose.
And speaking of snoozing, I'm gonna head off soon. Watching this awfully depressing documentary on the Boxing day tsunami.
 
that was 10 years ago, wasn't it?
 
Yeah :( it's depressing but a good documentary.
 

« first day (1525 days earlier)      last day (3417 days later) »