« first day (1564 days earlier)      last day (3385 days later) » 

9:04 PM
Interestingly, my major developer predictor for "other" is 0 despite encompassing both of what I consider to be my strongest minor developer "kinds"
(but to be fair to their methods, I'm not a professional developer)
 
1
A: Find the smallest positive number not in list

Antti HaapalaI came up with several different ways: Iterate the first number not in set I didn't want to get the shortest code (which might be the set-trickery) but something that could have a good runtime. This might be one of the best proposed here, my tests show that it might be substantially faster esp...

one day ...
I will FGITW something like this: stackoverflow.com/questions/16801322/…
;(
hey upvote for jon and not for me, grr :8
 
"Full-stack" type books seem to always focus on one part more than the other :|
this book is weird because sometimes it just completely leaves out the front end implementation
 
aha... even better
 
@AnttiHaapala yeah... turning in for the night, and such a well documented answer deserved +1 :)
as for FGITW - I don't think answering 21 mins later on the question you linked counts :)
 
9:21 PM
shorter
print(next(filterfalse(set(a).__contains__, count(1))))
forgot we have filterfalse
 
I'm going to make a web browser. It will be called Crowme.
8
 
@corvid we "eagle"ly await the result - but for now... I shall get some snooze... rbrb all
 
@cody thanks - now I've got a craving for rhubarb crumble and custard :(
 
9:34 PM
@cody thanks :)
anyway, back in 4hrs-ish, see ya later guys/gals
 
do we have gals??!
 
ok i'm new to the world of Restful apis somehow trying to create one restful api and i think i'm missing a piece here
i go into the documents of django and other rest apis
 
what?
django isnt a rest api ... I think it has an addon
 
i know.. i mean using rest in django django-rest-framework.org/#example
 
ok cool
 
9:44 PM
my question is more generic though.. i understand that REST .py file or even php file, will check on the request method, whether it is post or get, then check on the parameters in the url and accordingly run a certain def / function, right?
 
yeah essentially ... most of those frameworks automate most of it though
 
the thing is that i don't know where do the sql statements are in all this?
 
I usually find its easier to just write my own endpoint functions and return a json.dumps
you dont
if you are using the framework you register the models you want to be accessible
 
yeah, that's what i want to do as well, create my own rest api
 
Martijin, your answers always are so interesting
 
9:46 PM
so there would be no presence for sql statements?
 
and then the addon handles all the routing and stuff ... I'll give you a bitbucket of a simple rest you would do yourself ... its easy
 
that would be great
 
I think those addons add very little because you typically dont want to just change your sqlstatements into urls ... you want some intelligent behaviour
 
the thing is that i think coming from an old school a bit, i feel more flexibility modifying my sqlstatements to get to the data that i want
for example i can use a sql statement to get the entire history of a borrowed books of a certain borrower from a library and another get the books that are currently out by a borrower
 
you can also do that with models ... models just provide a more oop interface to sql such that you could switch your database easily say from mysql to posgres
 
9:54 PM
great!
thanks a lot
i'm looking into it now
so now another quick question so now i have an html file with an ajax call to that url, i can get the json there then, right?
 
ajax is usually javascript ... something like $.getjson('http://localhost/api/get_user/6',function (data){consol.log("GOT RESP");console.log(data);})
 
yes, that's all i wanted to know.. that's really good
 
@JoeSaad you get the JSON with an AJAX call and then do something with it in the callback function
 
yeah that's great
i was looking for this help.. i want to know what port my python is running on though
 
10:00 PM
MyModel.get(function(data) {
  $scope.model = data;
}, function(error) {
  $scope.$broadcast("error", error);
})
@JoeSaad which framework are you using?
by default, Flask will run on port 5000. But usually it will output to the console when you start your web server
 
I made a room for him to ask question about this ... since its not really python specific and of little use to most room members
 
10:19 PM
stackoverflow.com/q/26951679/2359271 and get rid of the answer - in that order, so the rationale for closing is crystal clear
 
hmm only 1
@AirThomas you need some upvotes :d
Too many of your recent flags have been declined - please review them instead of flagging this post! :D:D:D
cannot flag the answer :D
this is because I got 1 flag yesterday,
and 1 flag 9 months ago :d
*decline
and they were among my 3 last flags
sorry
not an answer – Antti Haapala yesterday declined - a moderator reviewed your flag, but found no evidence to support it
 
@AnttiHaapala Hmm? What do you mean?
 
I wanted to flag the answer as "not an answer"
but I cant since mods have declined 2 my (valid) flags
I had flagged this: stackoverflow.com/questions/23035478/… as not an answer
-> declined
and then I had also flagged 1 post for mod attention, it contained auth tokens
so no flags for me :d
just downvote the question :d
 
@Antti Hmm. That answer is a tough one though. +4/-0 and accepted, with no other answers on the question.
 
@AnttiHaapala Wow, that answer is the most link-only answer I've ever seen! I can't believe you got declined.
It's totally a link-only answer! It's a travesty of an answer!
 
10:27 PM
My guess is that the decline was based on the fact that the linked resource is short enough that you could salvage the answer with an edit
 
yeah, I asked mikko who is my ex boss to actually copy the blog article to SO :d
but he's travelling around the world atm
stackoverflow.com/a/28180853/918959 anw, this deserves a "not an answer flag" :D
 
Well, blog articles are not necessarily answers? But if your boss doesn't have an issue with his content showing up on SO, you could just add it to that answer as a quote
 
ofc the other case of having access tokens in the post was declined too, because there was just lately a post about meta that some mods are tired with removing access tokens from posts :D
one of the best articles in his personal blog is written by me <g>, copied the former company blog to his personal domain and then coalesced all users under 1 name :D
but I think he ought to have the credits for that in this case
 
Reading through more carefully I can see it's not as simple as just pulling a quote
 
yeah, it is not like "the answer is there"
just that "go read"
a comment at most
 
10:35 PM
Hmm, I wonder if there is something preventing converting accepted answers to comments
 
191
Q: Your answer is in another castle: when is an answer not an answer?

Shog9I think we can all agree, this sucks: If you've been around a little while, you've probably encountered hundreds of answers like this in various forums, some of them even marked as "The Answer" by well-meaning1 forum admins looking to close a thread. We could try to enumerate the commonly-obse...

 
^ Of course, the mods do not follow that to the letter :)
 
anw now I cannot make helpful flags for ages
since I havent flagged for ages anything
and now 2 declines in a row
 
I feel certain I've read a meta thread where a mod justified declining a link-only flag on an answer because it was the only answer on the question, it got a bunch of upvotes, and the link itself was helpful
 
10:38 PM
But even if I could find it via search, I have to do something else now
rbrb
 
rbrbrbrb
 
rbrbrbrbrbrbrbbrbrbrbr
 
Arakkoa in world of warcraft are bretty cool
 
11:01 PM
screw that Im hardcore I play project 1999 :P
 
oh well, I will be flag banned until friday
if only... I had NOT flagged all those linkedins
 
but awesome
little bit of swearing ... if that offends you dont watch it but that car looks amazing
 
11:45 PM
cbg all
 
wow... xfce start menu search is so fast
 

« first day (1564 days earlier)      last day (3385 days later) »