« first day (1558 days earlier)      last day (3373 days later) » 

8:00 PM
argh, come on, someone ask some good flask and sqlalchemy questions
 
@tristan yes!
@tristan well .. asking about...
 
is there a method to nuke flask servers? I keep having ghost flask servers running, which I cant shut down (Ctrl C, or closing it in Spyder)
 
@rodling kill them?
 
so it has to be cmd type "grep" and etc
 
Has this room just turned into the close vote and delete vote room or something? :p
 
user2555451
Martijn, Zero, me, and others are currently running a massive purge of all tags related to programming contests.
 
taskkill /IM application.py leads to ERROR: The process "application.py" not found.
 
user2555451
8:10 PM
You're welcome to join. :)
 
comment sections on metal videos on youtube are pretty insufferable
 
@corvid comments section anywhere tied to the general public is a bit terryfying i find
 
youtube_truth = 'Comment sections on {} videos on youtube are pretty insufferable'.format
youtube_truth('metal'); youtube_truth('cat'); youtube_truth('all')
 
Umm.... is a "Klout" score of 43 good or bad?
 
8:15 PM
man. The thing I miss most in python when doing javascript stuff lately is the format function. Forgot just how useful that was...
 
so ya no luck on killing flask, its not in tasklist
 
user559633
jfc people that write code in go have a fanboyism i haven't seen since microsoft was relevant
 
@rodling ps ax | grep python in linux?
 
yaaa im doing this on win, :( not linux .. will be pushed to it later
 
ah there's your problem... windows
 
8:17 PM
i get such dirty looks in real life when that comes up haha
 
How do you end processes from cmd (or Powershell) in Windows?
I always pull up Task Manager (Ctrl+Shift+Escape) when I need to kill something.
 
thought it was ctrl-alt-del?
 
user559633
@CodyPiersall you put a thumbdrive with linux in one of the usb ports and reboot to get onto a more sane os
 
Hahahaha
Fair
I hate that there's no sudo in Windows.
(For the interested: the command is taskill)
 
@JonClements All Klout scores are evil.
 
8:22 PM
@rodling you'll have to kill the Python instance that's running application.py
 
@Zero cheers for the link - they only have my email, name and tweets... which are all mostly public anyway... so no biggie
 
@JonClements in Windows 7 ctrl+alt+del brings up an annoying menu; ctrl+shift+esc brings up the task manager directly.
 
oh hey, that's actually incredibly useful
 
@Cody ahhh... shows how often I use Windows hey?
 
@JonClements I'm jealous! We run Windows at work. I'm okay with Windows, but Linux is just more pleasant.
 
8:26 PM
sooo here's an odd question. If you were doing image manipulation on a web browser, would you do the image manipulation completely on the back end, or just use javascript to manipulate the image then save it to the back end?
 
Like for editing a profile picture or something?
 
@JonClements shift escape opens task manager right away
 
@corvid, I would consider how long does it take to process the image(UI responsiveness)? How many images would you be processing (backend load)?
 
@elyase A single image. I'm trying to make an "artist porfolio" but before they publish the picture, they adjust anything that seems a little off like brightness or contrast
 
@CodyPiersall after long hunt, found the right one... such a pain
any idea why flask is so weird about its servers?
 
8:32 PM
I don't know anything at all about Flask, sorry :(
 
user559633
how is flask "weird about its servers?"
 
@tristan i kill it, and its still running somewhere
 
@corvid, so they adjust it interactively or your app does that automatically?
 
user559633
then you didn't kill it
 
i run it in cmd, Ctrl C it and then RARELY it closes in CMD but keeps running
 
user559633
8:33 PM
if you're killing the master process, then its your OS being stupid
 
@elyase both, it will first make adjustments then ask "is this okay?" and they can make whatever adjustments they choose after
 
another Win problem i guess?
 
user559633
the app.run() method handles KeyboardException (^c) appropriately, i promise you
 
every few hours i have to go on a hunt like for Red October to find where its running out of
 
user559633
windows doesn't have a big boy version of a process manager yet?
 
8:35 PM
@tristan I do end up killing it, just like now, was just looking for better methods. I am just going to add /shutdown page so i can just close it manually
 
user559633
in linux, it's easy enough just to ps and grep. i'm near positive you can do something in cmd with findstr
 
user559633
so you're starting your application in a command window and leaning on ctrl+c isn't closing it?
 
ya ps grep is sweet, but kinda MIA here.. tasklist didnt have it
95% it does
 
user559633
and you give it a second to finish and no?
 
user559633
also
 
user559633
8:36 PM
tasklist | findstr 'Python'
 
ya, i just Ctrl C and do something
 
@corvid, I would do it in the backend only if the processing is so complex I need to use special libraries (like Machine Learning stuff) or if it takes too long and I don't want to keep the user waiting while the frontend processes the image. Otherwise it is better to keep load off your servers, so you can scale as much as you want.
 
@tristan nothing on that command
 
user559633
maybe do case insensitive @rodling
 
user559633
i don't have a windows computer handy out of self preservation
 
8:38 PM
It seems like the V8 engine at least is pretty fast, and with WebGL it is feasible to do some interesting analysis and math on a 2-dimensional image... just not sure how a 6000x6000 resolution image will do with it
 
@tristan ah i found the issue, Spydr cant kill it. I was just trying different way of launching it
 
user559633
never heard of spydr
 
GUI
 
user559633
gross
 
correction, IDE
 
8:40 PM
@tristan, I think he meant Spyder
 
^ yap
 
user559633
ah, cheers. still haven't heard of it.
 
it is an IDE mostly used by Science people, coming from Matlab I was looking for something similar, and I tried to like it without success
 
ya started in that environment, bit lazy to switch over. Suggestions? PyCharms?
 
Pycharm is good, I use iPython Notebook for quick testing and then copy over to Sublime Text
but I am more of a PyData guy, for Webdev I use only Pycharm
 
8:48 PM
I am looking at demo for sublime text sooo confused haha
 
user559633
 
thats the thing.. i use python for everything so webdev focus isnt only thing i need
 
hrmph, something I don't quite get is how single page apps handle authenticated views in a secure way
 
i use Notebook++ for multiple languages capacity, but Sublime looks cool
 
user559633
@corvid using sessions?
 
user559633
8:50 PM
or do you mean server side?
 
@corvid, which framework are you using?
 
@tristan well like. You can "hide" parts of the page easily <div ng-if="user.is_authenticated">{{ stuff }}</div> but that will show up in the inspector still
@elyase Angular.js with a Node.js backend
 
user559633
@corvid oh. i've always just responded with different data from the API
 
user559633
if you're just saying "hey browser, plz don't show" then that's not an authenticated view
 
9:02 PM
I don't get this question: stackoverflow.com/questions/28076537/…
 
9:16 PM
@tristan oh yeah, that'd make more sense actually
 
user559633
so when i've worked on a SPA, angular asked the API for the content to fill into the template section
 
user559633
for convenience, i'd sometimes drop an ID that could be quickly targeted for inserting content... e.g. <div id="show_profile"></div>
 
cel
Looks a little like OP is on python2.5 and installs into the 2.7 site-packages. But that makes no sense at all.
 
I have a 4gb text file. Each line is a new entry, If I want to manipulate this file on a line by line basis should I first change how I am storing these entries?
also cabbages
 
cel
probably not worth it, especially if you only need to load it once.
 
9:31 PM
what? where's the fun in that, if I were to convert it to something else, what would that be?
 
DSM
Depends on how it makes sense to index whatever it is.
 
alpha numero
does that answer that question?
 
it seems so redundant to make RestFul style web apps :\
 
@AdamSmith nice answer, I wasted time and had to delete mine at first. That defaultdict with a deque is a cool idea.
 
9:39 PM
@davidism reminds me somewhat of stackoverflow.com/questions/19851304/…
 
DSM
You have more documentation than code!
 
@JonClements I am away tomorrow so cannot award the bounty. So I have awarded the bounty now in good faith that you may be able to provide the extra detail. All the best SMNALLY :) — SMNALLY Nov 15 '13 at 20:55
I got guilt tripped into writing it :)
 
is tackling some now.
 
I've never used deque. anyone wanna explain what is it good for
 
9:46 PM
Not to discourage you guys, because this is great, but there's a dedicated room for coordinating close votes:

SO Close Vote Reviewers

This room is for support and discussion about reviewing and co...
I'm sure they'd love to see more activity too. :)
 
small meta tag to clean out while there:
 
user2555451
We're not just closing, we're tag killing.
 
user2555451
Close voting just happens to be a side effect.
 
@davidism We are burninating.
 
Yeah, you appear to be burninating all the thatched-roof cottages.
 
DSM
9:48 PM
.. where will we live?..
 
Well, they're also burninating all the peasants, so I'm sure we can find some space.
 
Kaboom, gone.
 
9:58 PM
@davidism I tried to quickly come up with your method of keeping original order, but ran out of time when the windows install I was waiting for finished. I feel like keeping original order is a better feature than a pretty data structure :)
 
@ZeroPiraeus Funny how some Chef questions use the codechef tag.
 
Presumably it gets suggested ...
 
also needs some burning.
 
I feel the need to remind all you 20k'ers that it's not Spring yet
 
DSM
10:02 PM
I'm very reluctant to delete anything which isn't manifest nonsense. Why isn't closing sufficient?
 
@DSM because they're trying to burninate tags
 
@DSM When you cannot assign any other tag to a post.
These posts are widely off the mark topic-wise.
 
Is there a simple (obvious?) math operator that transforms non-zero numbers into ones? (But not zeros, or I'd use zeroth power)
 
10:05 PM
int(bool(num))?
 
Yeah, but I'm looking for mathy math.
 
re-cbg briefly
 
@MartijnPieters I like that comment; "Code Gold" instead of Golf
 
10:10 PM
I'm signing off, rhubarb all!
I'll revisit the tags tomorrow.
 
Rhubarb!
 
rbrb :-)
 
cel
@AirThomas maybe the sign function?
 
DSM
What's the appropriate close tag for this?
 
I went TB but POB works.
 
cel
10:12 PM
opinion based?
 
DSM
Wow, the Skeetster himself makes an appearance!
 
Odd though - I thought Jon Skeet could burninate a tag just by looking at it.
 
@Ffisegydd, sorry for editing, I though it would look closer to OPs plot
 
@elyase don't worry about it, I didn't really realise what you'd done until I'd already rolled it back
I just saw "Wait that's not my graph!? rollback"
 
DSM
@Zero: he's like a bodhisattva. He could, but he condescends to use our means to help us on our journey.
 
10:17 PM
Anyway I'm back off again, night all.
 
@Ffisegydd, BTW good guessing abilities, never crossed my mind that was what he wanted
 
DSM
Evening rhubarb!
 
@cel Yeah, that gives basically the right output (with abs if needed), but it's still piecewise defined. Doesn't scratch that itch I have that says, "there must be a way"
In this case, "there must be an arithmetic operator or similar" - and maybe it turns out there's not.
 
I guess for that matter, abs itself is piecewise despite being written symbolically.
 
cel
@AirThomas well it would not be continuous in x=0, so you cannot expect a too nice solution. The idea of being suddently 0 at x=0 is a somewhat artifical concept.
 
Mmmm, good point.
 
The new custom close reason text bugs me. Of course I "think" it, I just made a comment about it. :-/
 
@davidism there's a couple of meta posts about changing it
 
cel
@AirThomas maybe sign(x) * sign(x) ... I am not sure if you can get a mathematically nicer solution.
 
@cel x/x? ;)
 
cel
:D :D
 
Seeing as my wife and daughter are having a loooong chat, I have some more time.
I am out of votes.
 
I guess if you saw "nonzero(x)" you would be able to intuit its piecewise definition the same way as when you see "sign(x)"
But nobody uses such that I'm aware
@MartijnPieters I'm out as well, or I'd help out. ;)
 
10:38 PM
I burned down about 3 or 4 small content tags in the meantime (between 4 and 10 posts each)
 
cel
sign arises naturally when you want to use the abs() function. I think nonzero(x) is often expressed mathematically via indicator functions.
and abs() is used to define distances, and everyone loves distances :)
 
user2555451
I think hit a dead end. We need more downvotes than this room can furnish.
 
cel
I wonder why there is a limit on close votes. Apparently much more are needed than provided at the moment.
 
@iCodez Once closed, the posts soon come up for delvotes.
We can always post those to the closing room as well.
 
user2555451
Really? I thought they had to be negative.
 
10:46 PM
At 20K+ we can start deleting closed posts early if they have a negative (enough) score.
But if the post has been closed long enough, 10k+ can vote to delete even at a positive score, it just takes more delete votes.
So downvote to reduce the number of delete votes required and vote to delete as soon as we are able.
And then there were 4.
This one isn't yet put on hold: stackoverflow.com/questions/5752318/…
The other 3 are but are not yet of an age we can del-vote.
 
user2555451
I already voted on everything I can (for now) in . Time to go kill ! is a monster though. I'll tackle that tomorrow.
 
@iCodez Together we'll make a big dent in it, at the very least.
Hopefully big enough to matter.
 
user2555451
Well, if you think about it, we edited a couple hundred questions each today and it didn't take too long. I'm sure by the end of the week it will be dead.
 
We could have used a core of users collaboratively crusading counter to crap in the datascience beta. Instead we got a bunch of "Is <language/environment> good for Big Data???"
@cel Perhaps because as much as there is a need for close votes, there is a much greater need to handle the queue full of those already cast
 
buh... I have no idea why this isn't working...
 
11:03 PM
Whee, stackoverflow.com/questions/1408009/… is up for deletion now.
20k+ only, but still.
@iCodez We are already taking on a few hundred questions per person here today.
 
user2555451
Yea, so we do that for 2-3 days and is history!
 
That's half of gone already.
 
user2555451
Yea, I started hitting it from the back since I kept tripping over you up front. :)
 
Right, proper rhubarb now.
 
user2555451
rbrb! I'll finish .
 

« first day (1558 days earlier)      last day (3373 days later) »