« first day (1650 days earlier)      last day (3313 days later) » 

@HatterisMad meh
 
user2620028
@Bartek Im Sorry! I didn't mean to bother you. Really just wanted to let you laugh at my frustration.
 
@HatterisMad I hope you venting out will help you approach the tasks with the clean mind
Use the force! :)
 
user1596138
@KendallFrey No the joke was that the person wouldn't work on a server side version without the login for a specific account :P
 
use Vim for a Clean Mind
hue hue hue
 
user2620028
2:08 PM
@bartek lol thanks
 
@rlemon lol
today is bring your kids to work day... showing the kids what I do all day
had to bring up the chat ofc
 
Hi children!
Don't do drugs
but if you do
don't
 
lol Ernie is so wise
 
@Loktar HELLO CHILDREN! YOUR FATHER SPENDS ALL DAY TALKING TO ME ABOUT VIDEO GAMES!
;)
 
Hi, kids!
Your dad is a creep!
 
2:13 PM
@Loktar Excuse me!? I'm a pancake
 
@Loktar Hey kids! Wanna see the glass bottle I keep in my desk because of you little shits?
 
yes ernie
 
user image
7
KIDS! YOUR MOM IS BIEBER
 
RFC #234 - Do you have any idea of how to embed API keys in the bot?
@rlemon What a honk
 
I still think making it part of the userscript loader would suffice. you're never going to be happy with a solution because you don't want to have to use an API key
 
2:19 PM
@Zirak just google with site:youtube.com?
 
meh
Awal's idea will be better
 
what is the problem with a proxy server?
 
Still open to abuse, you can just query my server nonstop
 
limit the requests to come from chat.so/se and meta.chat.se
 
HAMMERTIME!
 
2:20 PM
Still open to abuse
 
@rlemon but we still would have to process the requests
 
then host it on my server
 
See previous messages
 
you are impossible to please
 
it is best not to introduce any server in between, imho
 
2:21 PM
I give up
 
pls
 
Sorry, I can't accept that solution
 
@Zirak have the site:youtube thing as default, and if an api key is found in localStorage, use it instead.
 
@AwalGarg Can you comment on the issue with delegating to /google? That's probably what I'll end up doing
In unrelated news: @SomeKittens gist.github.com/Zirak/2eaa4e12d9f94323ce43 that's yesterday. Load it up, tell me if it's what you had in mind.
 
done
 
2:24 PM
Thanks
 
@Zirak I made a slightly better scraper once ^_^
it logged things in indexeddb with localforage
iirc
with history and all
 
Better how? Link?
 
Better because he wrote it
 
Did it scrape the past?
 
I don't know where I put it now :/
I'll have to turn on my old pc
@Zirak No you feed it a room number and date 1 and date 2 and it scraped all the messages in between with their history.
ok, yours records timestamp too, touche
 
2:28 PM
cough
> Then founded an API management/monetization startup, WebServius.
@EugeneOsovetsky got an insights here?
 
@StevensHaen In reply to "Why handle them elsewhere further and not in the same .use()?": Separation of concerns. Your middleware that parses JSON should not be concerned about how your "login" or "joinChatRoom" (etc) are going to use that information down the line.
 
@Zirak I unno if you know or not but you can get the raw message (for oneboxes) from chat with the message id. That is the one it scraped. Lemme post the endpoint wait.
 
Yes, I know.
 
ok cool
 
Just add ?plain=true
 
2:30 PM
hmm, I used a different one. just a sec
@Zirak example linky?
 
plain true one seems better since it doesn't require information of room :O
 
Yeah, you can prefix it with the room id. Dunno why they have that.
 
0
Q: Code doesnt work inside for loop

Zapp T Brannigan function getFleets(targetCoords){ var count = targetCoords.length; var i = 0; for (var i = 0; i >= count; i++) { var target = targetCoords[i]; var sid = $('#sid').val(); var extr...

anyone have the dupe Q for this
 
@rlemon don't need one. "Stops working" is CV "question seeking debugging ... error message"
 
2:45 PM
Stop, drop, and collaborate
 
or just a typo
most of the close reasons apply to that post
 
I think "why won't this code work" is a valid question, right? just useless for anyone int eh future. too specific.
 
yea but there is a canonical we can close it with is there not?
at the very least OP still gets their answer
 
@Luggage Not with that title and body. "Code doesnt work" and "Everything in the code works fine, up to the point where I start the for loop." and "Why does it stop working inside the loop?" does not have the actual error anywhere.
 
i see
 
of course, someone showed up to repwhore the question anyway
 
I need to repwhore some more.
 
244
A: bodyParser is deprecated express 4

Ben FortuneIt means that using the bodyParser() constructor has been deprecated, as of 2014-06-19. app.use(bodyParser()); //Now deprecated You now need to call the methods separately app.use(bodyParser.urlencoded()); app.use(bodyParser.json()); And so on. If you're still getting a warning with urle...

Rep whoring 2 da max
 
I don't have as many votes, but mine is whorier stackoverflow.com/questions/7558648/…
 
650
Q: JavaScript closure inside loops – simple practical example

nickfClosures are one of those things that have been discussed a lot on SO, but this situation pops up a lot for me and I'm always left scratching my head. var funcs = {}; for (var i = 0; i < 3; i++) { // let's create 3 functions funcs[i] = function() { // and store them in fu...

 
most of the good universal questions ahave been answered. There is only that stuff left
 
@Zirak turns out it was a typo
disregard, but thanks
 
var casper = require('casper').create({
    verbose: true,
    logLevel: 'debug',
    onRunComplete: function() {

    }
});
var config = require('./config.json');

casper.on('remote.message', function(msg) {
    this.echo(msg);
});

casper.start('https://stackoverflow.com/users/login', function() {
    this.fill('#se-login-form', {
        email: config.email,
        password: config.password
    }, true);
});

casper.thenOpen(config.room, function() {
    this.evaluate(function() {
        window.startSOBot = function() {
Can't test it though since the bot doesn't parse the owner's commands :c
 
(@Zirak Since you asked if there were any working implementations yesterday, there seems to be one of STANDUP abdn.ac.uk/ncs/departments/computing-science/software-480.php)
 
@rlemon lol kids thought that was funny
 
2:55 PM
ugh, why does this libarry depend on bluebird AND when.
 
posted on April 23, 2015 by admin

Hovertext: Can I get a ride home? New comic! Today's News:

 
@BenFortune I've done something like that in the past, but it failed because phantom's js engine was really old. Maaybe something of the sorts will work today.
 
@BenFortune set development mode to on. or tell me the invocation pattern?
 
@Loktar are they beliebers?
 
2:57 PM
@thefourtheye That's a very subtle bug, took me a few seconds to see it.
 
semi-colon missing?
 
@Zirak Yup, even I voted to close so quickly :(
 
i don't see anything else :/
 
@thefourtheye the question, when we closed it, was completely bad. The OP skipped the error message (and expected results), as usual.
 
@AwalGarg Didn't notice a dev mode lol, i'll try again
 
2:58 PM
someone else adding the error, even if it is the right error, is pretty weird
 
@ssube Yup, I edited the question now and included the error.
 
yeah no one reads the asi rules, too bad
 
@thefourtheye because OP's question is vague and the code he provides appears to work as expected
 
@thefourtheye that's not... better.
 
I still don't see how he waned defineProperty out of that
 
3:00 PM
@ssube Oh. Why so?
 
I think some assumptions have been made. and errors not being thrown
 
somebody here?
 
@RadoslawKrasimirow Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
no one
 
because the OP posted a bad question and didn't put any effort into it
 
3:01 PM
jsfiddle.net/53ranmn5 I still don't see how this wouldn't work
 
even if someone else can take the code, reproduce some error (maybe/maybe not the right one), edit the question radically, and then answer it...
if that wasn't the most likely/only possible error, that would be rewriting someone else's question
 
@ssube But in this case, we are sure.
 
but that is different code now ;)
 
the console.log fixes it by forcing semi-colon insertion
 
3:02 PM
well yea, but he couldn't produce a proper example
and his question sucked
so with all of that, I don't think we closed it too quickly.
like certain comments on the question say
 
the code on there does fail and with the error stated
on the question
 
yea, but his example doesn't
who runs code when a fiddle is above it
 
At least, we can give proper explanation, right? Its really not that obvious.
 
ohh, right, i ignored the fiddle link
yea, good point
 
@thefourtheye yea for sure. I'm not knocking it in general. I'm just protesting the "we closed it too quickly" comment
 
3:04 PM
but.. the code on SO is the 'real' code. the fiddle is for convenience. maybe it was added later
 
@thefourtheye no, you completely changed his question.
If it's an interesting problem, write up a good question and self-answer it.
That question was awful and didn't show any effort whatsoever.
 
well I updated the fiddle to reflect the OPs code in the question
I think it is still a shit question, but at least valid
 
@ssube I believe I made the question meaningful.
 
@thefourtheye you almost completely replaced the question
there was nothing there to begin with. Making stuff up (regardless of correctness) and adding it is not good.
 
I disagree, @thefourtheye saw the question that was meant to be posted.
 
3:07 PM
Is that the same error the OP got?
 
OP had trouble explaining himself or giving an example for whatever reason.
That's the error you get from the code block
 
You can't possibly know if that's the actual problem they were running into, or a different one caused by a transcription error, or anything, because they didn't bother to include the error originally.
 
I could argue with changing the question title, but the rest I can agree with
 
So, OP shoudl ask better questions, but that the community can turn a shitty one into something that's actually potentially useful coudl be good
 
Asking the OP to elaborate and include the error they actually are getting, then reopen when they do that, is perfectly reasonable.
 
3:08 PM
@ssube actually OP did comment with the error message and a proper demo
just didn't edit his own Q
 
that missing semi colon is somethign that could trip others up (though.. i'm not sure that they'd be able to find this question to help)
 
@Zirak Please feel free to edit :-)
 
@rlemon I see the other fiddle, but which comment has the error?
 
The fiddle has the error
 
now
 
3:10 PM
> Questions seeking debugging help... must include... a specific problem or error
 
back to IE8 testing (takes a shot of whisky)
 
That's being overly meta police now
 
@ssube the fiddle does
op is lazy sure
but the question is there
you just have to do more digging than I prefer to do
 
Then OP can fix the question and we can reopen.
 
or we can fix and reopen
you're just being anal now because you don't like lazy op's
I get it, I'm the same way
 
3:11 PM
that is correct
I work with enough of them :P
 
in underscore, is there a way to find, in an object, the first key that does not have a null value?
 
Emails in code suck
 
as long as the OP knows everyone hates him. That's really the important part of all of this.
 
Hm, login isn't working
 
@corvid that's just find with a x !== null predicate
 
3:13 PM
Thanks a lot Guys :-) I feel that we did the right thing.
 
Encouraging lazy OPs is how we end up with lazy developers, and lazy developers write PHP. :|
 
lazy developers don't write code.
they paste it
 
If you won't close the question for me, do it for the Apaches. :'(
(not the native american ones)
(unless you want to, then do)
 
I'm not an interesting aboriginal. damn apaches
no one cares about the cree
 
@Zirak +1 :-)
 
3:16 PM
aright, now the universe is just fucking with me
0
Q: Javascript error: Uncaught SyntaxError: Unexpected token if

Philip7899I can't find anything wrong with this if statement, but I keep getting an error if($('.tag-select')[0]){ $('.tag-select').chosen({ width: '100%', allow_single_deselect: true }); }

this is a very similarly bad question
 
@Bergi Dang! I accidentally pressed undo in my text editor and I reverted to console.log(template.contents()) but I didn't realize that because my SO question still had the right version: console.log(template.contents(result)). Anyway, thanks a lot! — alexchenco 32 mins ago
This question can be closed as typo, and OP wasted a lot of time... Sigh
 
@ssube That's worse, it lacks reproducibility
 
@Zirak yeah
 
@ssube but just the first result. Isn't that _.findWhere?
 
First time I use
$.call.bind($.call)
1
Q: How can I add this function to an array without it being called immediately?

Nathan JonesI have an array of functions that return jQuery deferred AJAX objects called phoneAjaxCalls. My code pushes multiple calls to a function called newPhone that accepts two arguments. function newPhone(tlcPhone, studentsdcid) { //Create new email return $j.ajax({ type: 'POST', ...

 
3:33 PM
Hey guys! Can you tell me how to call one script from another and append arguments to it? Is it possible with ajax or jquery loading?
 
append arguments to a script? wat
 
how you load a script into the page shouldn't matter. Whatever method you use will append a <script> tag, the script executes once, and then in that script you create and expose a function to call (with arguments)
 
anyone has installed skype on ubuntu 14.04? save me some googling please :P
 
94
Q: How to install Skype 4.3?

tuxtuSkype 4.3 is just released with considerable improvements. As a regular Skype user I want to use the latest Skype on my Ubuntu 14.04, but there is no updates from Update Manager. Even in Skype website only Skype 4.3 is available only for Ubuntu 12.04. Is there anyway to use this latest Skype on U...

 
I have a several python scripts that should be converted to js. The python scripts assumes there is an array 'operation' and an array 'argv' set. I wrote a dispatching pyhton script to test these little scripts, and now I want to do the same in js
 
3:38 PM
don't be lazy
 
He says, giving him the answer
 
@rlemon thanks! <3
 
@Zirak everyone gets one freebie -- next time I mock and insult.
 
This is what did in python stackoverflow.com/q/29826430/1809463. Maybe now you have a little more understanding of what I mean with 'append parameters'
 
:P
 
3:39 PM
> We are trying to build a web application with features:
-1
Q: for a web application, what framework, languages to use ? Web Architecture?

pratha eamaniWe are trying to build a web application with features: A) user A signs in, puts up his/her services, details like location on the site. B) User B can search, with filters, for services by location (shown on the map) c) user B books User A's services and User A's calendar should be updated. ...

 
@mike you need to pass it as a function argument unless you're using node and are running from the command line
 
I'm using phantomJs to test the small scripts with the dispatcher script - at least that's the plan
 
@ssube migrate to quora -> insta rep whores give insta answers -> user follows low quality answers -> bad developers -> job secured for good developers.
 
@ssube How do you survive main? I've given up ages ago.
 
@AwalGarg that last step is a lie and you know it. Quora has never helped anyone.
@Zirak I want my grade 12!
also I usually only answer good questions
 
3:42 PM
I go on main. vote close a few questions. get angry. go on chats. bitch. make a coffee
 
@Zirak
Using casper/phantom
 
What? Which version of phantom?
 
2.0
 
They finally updated?
 
Had to hack casper a bit to get it working
 
3:43 PM
How would I go about using an id through an prototype body function parameter?
 
@DominicHughes Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@Zirak a few updates over the last few months
 
rofl
 
@ssube you mean second step? not true. quora does help people. just that the help you get is... ermm.
 
@DominicHughes the id is a property on the object that the protype belongs to?
 
3:44 PM
@rlemon hah no
 
this.id
or is this dom id?
 
@AwalGarg no, the last step.
quora does not end up gives good developers jobs
 
ahahaha
 
it ends up making a bunch of shitty developers who know just enough to get a job, then waste the time of the people they work with
also known as "consultants"
 
@lugg
 
3:45 PM
That's (half) my name.
don't wear it half-way out.
 
@age
 
@Luggage sup
 
@luggage no the id is an function parameter through the body scope of prototype .
prototype
{
function (id)
{
id.move.to.left = "2px"
}
}
 
I AM THE SMARTEST MAN ALIVE!
Take that python!
 
format that code, but i think it's nonsense anyway
edit it and CTRL-K
 
3:50 PM
-__-
 
you got a big mouth and some very small eyes
might wanna get that looked at
 
It's called badface disease
 
THE
hi, I am just going to start developing a app
I want it to be responsive
would it be okay if i use bootstrap for layout
 
Why are you even here? You have the worst ideas
 
no
@NickDugger that is rude
 
3:52 PM
Bootstrap is fine. it's popular so there is lots of help for it
 
he's here to ask mundane questions
 
But there are other 'grid systems' to choose
 
yes it is, but his questions are simply terrible.
 
THE
oh
 
bootstrap is fine. pure is also fine. making your own is also fine and easy (given a small tutorial you can google for)
 
3:53 PM
@THE bootstrap is nice, custom CSS is nice, any CSS is nice for responsive design. It's very easy
 
bootstrap works pretty well and has themes
 
I like purecss.io because it makes me do more work myself.
 
it's reasonably comprehensive but still not too heavy
 
You may outgrow bootstrap and chosoe to make your own later, but if you won't know where to start, it's a good one.
 
I don't feel like I'm Harry Potter Programming
 
THE
3:53 PM
ok, I am going with bootstrap thank you
 
However, if you roll bootstrap, you're doomed to a pretty bland and commonly styled page unless you customize the shit out of it
 
it's easy to chagem though
 
bootstrap has a bunch of themes
some are flat, which improve things immensely
 
adn wrapbootstrap.com has themes you can buy for < $20
 
3:55 PM
(but none of thier sloppy JS)
 
oh yeah, if you get a bootstrap theme, never use the JS
most of those heavy themes have multiple versions of jQ for some shitty plugins
 
@GNi33 Y R U DOING THIS TO ME?!
 
Yup. But it came with matchign styles for lots of controls like select2
 
I usually stick with: bootswatch.com
 
3:57 PM
which i had to update.. but hey.. it's a starting point
 
BAM BABABAMBAMBAAAAAM
 
saved me a pile of time
 
!!afk home
 
oh god, and now I can't stop listening to it.
what have i done? ;_;
 

« first day (1650 days earlier)      last day (3313 days later) »