« first day (1306 days earlier)      last day (3648 days later) » 

12:01 AM
 
Does anyone know anyone who works on the Google Maps team by any chance?
 
@SomeKittensUx2666 ooh thanks.
 
I just wrote a document for business chrome development :D
 
Biz speak?
 
12:13 AM
yea what does that mean @RUJordan?
 
@adeneo lol I love that ad
its so creepy
 
It means we're having chrome as the default browser with customizable limited capabilities for end users
 
'chrome as the default browser' music to my ears
 
So, having Firefox devtools open makes your code slower like in the old days of Firebug
Good to know
Mozilla tries to make Firefox like Chrome, but they completely fail at it
 
12:37 AM
hi JScript chatpeople! quick question; I'm trying to store the drop function outside of the "droppable" method. is that possible? how do you do it?
i'd like to call the function from outside because i don't want to be repeating the same lines of code over and over again for different droppables.
fiddle here for more clarity: http://jsfiddle.net/Zy3Js/
 
Most certainly
 
@copy How is it done..?
 
@Carnal 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.
 
Anyone willing to help with this problem of mine? :(
 
12:42 AM
@phenomnomnominal Cool! Thanks so much! Haha I've learned a lot from this site.
@Carnal Don't ask to ask, just ask; they'll cream you, friend.
 
@Willow also, i'd hazard a guess that your drop function could be simplified a lot, but I'd have to see some mark up to say how
 
That sounds weird. But okay.
Hmm
 
!!welcome Carnal
 
@Carnal 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.
 
@Carnal it might sound weird, but it reduces the noise in the room having to explain it all the time.
 
12:43 AM
I did not notice that. Sorry.
 
wtf?
theyll cream you?
 
@Loktar i should've said "they'll eat you" huh?
 
@Loktar I get really aroused when people ask if they can ask a question.
 
retraction
 
ah you have 69 rep I should have guessed there would be allegations of bukake on the chat.
 
12:44 AM
Consider this room (•_•)
( •_•)>⌐■-■
(⌐■_■)
creamed
 
@Willow lol now I understand what you meant I guess
 
LOL for some reason I make it a habit to embarrass myself in chatrooms
Oh well, here's to 69 rep!
 
haha
 
@SomeKittensUx2666 lol @ your edit
 
I created a jquery function that checks if a radio button is selected/checked and if the radio button is selected and it equals to 'Yes', a set of checkboxes will appear. Now, the problem appears. I can't click the checkboxes! I tried inspecting the element and it would seem that everytime i tick a checkbox it repopulates it since this event is activated by the parent element.
 
12:47 AM
@Carnal make a jsfiddle
 
Alright. hold on
 
@pxqr 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.
@idiotype 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.
 
1:02 AM
Hello.
I am done with my fiddle, jsfiddle.net/Carnal/MD29h/4
I only make it work for the value of the first selection in the drop down list
since I am just testing things out before doing it for the rest of the cathegories.
Any advice would be very much appreciated. :D
@phenomnomnominal here's the fiddle you requested. :)
 
@Mudeyanse 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.
 
1:46 AM
anyone knows if you can somehow squeeze 3 types of series into Google Chart's comboChart?
2 works as per example, but squeezing 3 doesnt seem to work (candlestick, bar and line)
 
@SomeKittensUx2666 Totes legit.
 
Good Morning
 
Can anyone help me with my problem? jsfiddle.net/Carnal/MD29h/4
Good morning.
 
@monners What's this whole $7 thing?
news.ycombinator.com/newest <- Upvote the Guinea Worm one
 
2:02 AM
@Carnal Right, what's the "problem"?
 
here
I only make it work for the value of the first selection in the drop down list
since I am just testing things out before doing it for the rest of the cathegories.
 
@Carnal sorry, can't look now, working.
 
It's okay. :D
 
@Carnal make what work?
 
by the first selection i mean this: "Food Products and Beverages, Tobacco, Animal feeds, Agricultural products"
Hmm. Let me explain again, it got overrun.
This:


I created a jquery function that checks if a radio button is selected/checked and if the radio button is selected and it equals to 'Yes', a set of checkboxes will appear. Now, the problem appears. I can't click the checkboxes! I tried inspecting the element and it would seem that everytime i tick a checkbox it repopulates it since this event is activated by the parent element.
Hopefully that makes sense.
 
2:06 AM
@Carnal ok, nothing happens when i click the radio boxes
 
if you select
the first one
food products...
 
ok
 
it will
 
First of all, I think you need to re-think the way you're doing this
this is bad
     + "<input type='checkbox' name='production-ss-items[]' value='Seafood'>Seafood<br/>"
        + "<input type='checkbox' name='production-ss-items[]' value='Shortening'>Shortening<br/>"
        + "<input type='checkbox' name='production-ss-items[]' value='Sugar'>Sugar<br/>"
        + "<input type='checkbox' name='production-ss-items[]' value='Buffalo Meat'>Buffalo Meat<br/>"
        + "<input type='checkbox' name='production-ss-items[]' value='Copra Cake'>Copra Cake<br/>"
        + "<input type='checkbox' name='production-ss-items[]' value='Vitamins'>Vitamins<br/>"
You should use a data table and generate elements accordingly
 
I am still working out on the logic before improving the code
 
2:08 AM
and why does everyone use name[] in html attributes nowadays
don't you think this would be better also
<option value='Paper and Paper Products'>Paper and Paper Products</option>
<option value="paper-products">Paper and Paper Products</option>
 
They have to select multiple
products.
 
so?
 
are you saying that i should change this to select multiple?
 
You use [] for multiple elements with the same name
 
yes, as an array.
 
2:12 AM
@copy really?
 
Yeah
 
officially?
 
i just concatenate them together and save it to the database
is that wrong.
 
@Carnal I'm on about the values
 
I don't know, to be honest. But PHP treats it differently
 
2:14 AM
I am more focused on making the checkboxes "checkable"
 
@Carnal What you're trying to do could be accomplished in like 20 lines of code, but you'de want to change the way you're going about it, I can help you if you want
 
the entire code to work properly, I am planning to improve it once it is done.
 
@Carnal It's strange
 
I would love that.
But I really just want to make the checkboxes checkable.
for now.
 
I just wrote this to fix a bug and I am so proud ashamed:
HTMLElement.prototype.getBoundingClientRect = undefined;
 
2:17 AM
@phenomnomnominal oh wow
that is deep
@Carnal I have no idea why it's doing that
 
Me too. Hmm, I don't want to create a long code that is why i am doing this through a parent element change event.
I can jsut do this by creating a change event pointing to the radiobox itself.
but it will be a long code.
 
Trust me, you need to rethink the whole thing
 
Yes, I am planning to change this.
 
Well, then you've got your priorities wrong :)
 
It's easy to change, I can just create a loop for it.
 
2:23 AM
 
Okay.
 
anyone here use video.js?
Any idea why the videos are not autoplaying in Chrome?
 
2:38 AM
@TylerK 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.
 
3:01 AM
I have an interview on the topic of Javascript and have been poking around for good interview questions. Do you guys have any favorites?
 
@TylerK What's an interesting project you've been working on lately?
 
Rebuilding an old JSP project with a brand new ExtJS front end.
Though, I probably can't talk about that much. =/
 
@MuhammadOsmond 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.
 
@CapricaSix Okay. )
 
I've been looking at questions on SO and elsewhere but I'm not finding a lot of good material.
 
3:06 AM
@Hige 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.
 
@TylerK you are being interviewed?
 
Yep!
 
I have one that's used sometimes one sec
 
I fully expect the interview to be quite difficult.
 
3:13 AM
@user2576961 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.
 
Hello everyone
 
theres some, but I have an actual question with code, trying to find it
 
I have a homework assignment for debugging the existing code and I am failing to get my desired results of the assignment.
I fixed all but one I believe. I am not getting an error though.
 
@Loktar Cool, I haven't stumbled across that yet. Thanks!
 
np
thats the one I'm thinking... i had a fiddle a while ago for it but cant find it
basically it checks to see if you understand closures/variable scope in JS
 
3:18 AM
Sure.
I've seen that question a few times.
I've also struggled with it a few times.
:)
 
haha I do every damn time
I know the answer but implementing it always trips me up
 
Most powerful interview tool I've seen: I don't know
It's much more impressive that a candidate knows the bounds of their own knowledge
 
@SomeKittensUx2666 as long as they show they know something
 
x2 bonus points if you follow it up with "...and here's what I'd do to find out"
 
That is my best answer.
 
3:20 AM
I've interviewed people who said idk to almost everything... or "I havent used X" and then its like well fuck..
where do we go from here
 
You thank them for their time.
 
in that case I just ask them what project they worked on that they're proud of
usually opens them up
and if at that point they have nothing.. yeah
its wrap up time :p
in fairness I interviewed people for gov web development positions... the candidates were ummm
unqualified is the nicest word I can use
but yeah idk in your case I cant imagine youll do terrible, I mean you came here :P
being active in a tech community at all generally puts you in the top 10% or so
 
This company only hires the top 1%.
So yeah.
 
Which company?
 
I have the option of scheduling the interviews at any time, but want to feel prepared.
 
3:24 AM
and everyone says that
 
Rather not say.
 
fair enough. But there isn't a good way of quantifying who's the best, so saying "we only hire the top 1%" is meaningless
not that you should say that at the interview
 
Such a tease, I know. But I also don't know how public these chat rooms are.
Well, they're known for their high false positives.
Which, in all honestly, is why I haven't interviewed.
A stupid reason, but a reason nonetheless.
 
....high false positives?
 
As in qualified candidates are rejected.
 
3:25 AM
that's a false negative
and lots of companies have high false negatives - see earlier comment about it being difficult to quantify a coder's ability
 
Interviews are hard.
 
I used to think so until I stopped caring so much :P
 
Which is why I prefer a coding interview.
 
I just relax and converse now and its been pretty fun
 
3:27 AM
A sit down pair coding interview is my preferred method.
 
do you absolutely 100% need this job?
 
I've started doing phone screens with recruiters, just to practice
 
if not then the stress is off a bit
 
Na, don't need.
I'm comfortable.
Which is part of the problem.
I don't really want to be comfortable.
 
yeah I understand that, I had my last position for like 5 years
was really comfortable
 
3:28 AM
@TylerK Great attitude to have
 
I've left jobs out of pure boredom. :(
This would be the first for purely being too comfortable.
 
@TylerK I understand. Comfort doesn't necessarily mean contentment.
 
@Carnal You here?
 
@Loktar some excellent other posts on that blog. Thanks again for the link.
 
yeah np good luck!
 
3:37 AM
Let us know how it goes!
 
You don't have to tell me.
The place I work for also says we only hire the best. :)
I'm trying to find the post from Joel where he talks about hiring remote.
Since it does allow him to hire the best, since they're not location biased.
But my google-fu is failing me.
Solved this (frontendcoder.wordpress.com/2013/02/17/…) with two lines.
 
DKS
can any one help?
-2
Q: How to update array generated by @Html.Raw(Json.Encode(Model.list)) after list changes client side

DKSI have a model A with some other elements and a list 'AList'. I am using @Html.Raw(Json.Encode(Model.AList)) to get model's element AList data into jquery array. It works fine. When client add any item to AList, it added to database tabl of List using ajax call and append to list. So there is no ...

can pls vote it for reopen?
 
3:56 AM
Hi guys, really dumb question but I can't figure out how to call expand so I can change it to false: pastebin.com/BirsXr0Y I tried less.dist.files[0].expand but it isn't working...
 
hello everyone
 
@enzo t = {less: {

dist: {

files: [{
expand: true
}]

}

}}
How does one format code?
 
in general, or in chat?
 
Chat.
/code t.less.dist.files[0].expand
true
 
t = {
  less: {
    dist: {
      files: [{
        expand: true
      }]
    }
  }
};
 
4:00 AM
@TylerK that's not working...
 
hit ctrl+k
 
@enzo Wrap the object in an object.
I see, @phenomnomnominal, thanks!
Formatting is nicer than how hipchat does it with /code.
 
hmmm I see, and it does work... It's a grunt experiment I'm doing so I'm actually missing some context, but now at least I'm sure on how it should be called so thanks :)
 
Sure. What are you trying to do?
 
I'm trying to use the grunt.event.on to listen for the watch event so I can edit my less task cwd depending on where's the modified file located
In all my others tasks I could do it without a problem, but this one has an array so it's getting harder...
 
DKS
4:09 AM
Hi guys, i have updated the question pls see
-1
Q: How to update array generated by @Html.Raw(Json.Encode(Model.list)) after list changes client side

DKSI have a model A with some other elements and a list 'AList'. I am using @Html.Raw(Json.Encode(Model.AList)) to get model's element AList data into jquery array. It works fine. When client add any item to AList, it added to database tabl of List using ajax call and append to list. So there is no ...

 
@phenomnomnominal Still on the front page of hackernews?
 
615
Q: Is it possible to apply CSS to half of a character?

Mathew MacLeanI have searched high and low for a solution, and I have yet to come by anyone even mentioning what I am trying to do. I'm not even sure that it is possible. What I am looking for: A way to apply styling to one HALF of a character. (In this case, half the letter being transparent) What I have c...

@Abhishek You may like that ^
 
@Zirak cute
 
4:18 AM
Thanks, I just got this new dress
 
stop
 
HAMMERTIME!
 
oh yeaah
!!> while(1) console.log(1)
 
@Connor Maximum execution time exceeded
 
pffffft
 
4:31 AM
@Connor How about print();
 
@TylerK It's alright, just trying to break her :)
 
@Connor does the bot execute code?
 
yh
is it possible to polyfill Proxyy?
 
You people haven't really tried to break the bot's sandbox
It was only actually attempted once or twice, with nice success
 
I'm rather surprised this is allowed:

for (var i = 0; i < 5; i++) {
print();
}
 
4:34 AM
Zirak, is it possible to shim Proxy?
 
I mean, not cause an infinite loop, but actually exploit the bot's logic to make it crash
@Connor You have three guesses
Do you think we're currently able to override new or Object.keys?
 
....................
 
5:01 AM
@Zirak I got pretty close
 
can anyone tell me why this doesn't set the height?
 
!!> Object.keys = new Array(5);
 
@monners ["undefined","undefined","undefined","undefined","undefined"]
 
5:46 AM
Your momma's undefined
 
I've just read a long and interesting discussion among Moz developers about whether to drop mathml support (and maybe favor TeX). TIL there are still many people at Moz who want XHTML...
You managed to break SO formatting :) — dystroy 8 secs ago
 
6:08 AM
Wow - there's no good way to handle file uploads with express 4
 
@SomeKittensUx2666 No, there's not. Use busboy as in miaou
 
I'm 'using' busboy
nothing's happening
exports.csv = function(req, res) {
  req.busboy.on('file', function(fieldname, file) {
    console.log(arguments);
    file.on('end', function() {
      res.send(200);
    });
  });
};
 
I found it easy to do with busboy : github.com/Canop/miaou/blob/master/libs/upload.js
 
Ah, because the actual way to do it is entirely different than what they've got in the docs.
Nope, that does nothing.
Nothing after var busboy = new Busboy({ headers: req.headers }), files = []; is executed.
 
@SomeKittensUx2666 apart sending back a OK, this does nothing
 
6:19 AM
exports.csv = function(req, res) {
  console.log('yes');
  console.log(req.headers);
  var busboy = new Busboy({ headers: req.headers }), files = [];
  console.log('stupid');
  busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
    console.log('file');
    var chunks = [];
    file.on('data', function(chunk) {
      chunks.push(chunk);
      // todo : abort if sum of chunk.lengths is too big (and tell the client he's fat)
    });
    file.on('end', function() {
      files.push({name:fieldname, bytes:Buffer.concat(chunks)});
^ current code status
'yes' and the headers are logged. 'stupid' isn't
 
0
Q: ParseApp Saving data from httpRequest

ShrikarI am writing a simple app where I need to get the data from a http get api call and store it in Parse for some reason not all the data is stored. Also the http call returns before saving all the data here is the code. How can I make it to return only after saving all the data? Parse.Cloud.httpR...

 
You mean this line isn't executed ?
console.log('stupid');
 
correct.
nor is 'busboy'
 
Are you really posting the file ?
 
Pretty sure
 
6:21 AM
So you mean it blocks in the BusBoy constructor ?
 
Guys, is there a way to detect whether click event occured outside clickable element, but without too much noise in code? I reaaaaly don't want to mix angularjs with jQuery.
 
window.onclick = function(){ console.log('shut! less noise!') }
 
@dystroy it seems so
 
window.onclick = function(e) {
    return e.target.className !== 'target-area';
}
 
0
Q: In nodejs, what are the pros and cons of using control flow libraries vs using Promises?

ontkI am just getting started with Nodejs and I am wondering what is the best approach to deal with asynchronous code. I see 2 schools of thoughts: control flow libraries such as async or vasync and promises which are widely used on the client. I am reading NodeJS in Action and there is no mentionin...

 
6:28 AM
hello
 
Ok, turns out I wasn't uploading anything. I am now.
Same result
 
I see. Thank you. @dystroy and @monners
 
Does anyone know some good event handler for testing touch based inputs ? Android, iPad, Microsoft all use different events
I mean the Javascript events
 
Thank you for what? We're not going to write it for you. — RUJordan 57 secs ago
 
voted
 
6:31 AM
Ah, got it working
That was a horrible waste of time
 
@SomeKittensUx2666 explanation ?
This one should probably be closed : stackoverflow.com/questions/23647057/…
 
I was setting 'content-type': 'multipart/form-data'
which somehow broke everything
 
rookie error
 
2
A: multipart data POST using python requests: no multipart boundary was found

sigmavirus24You should NEVER set that header yourself. We set the header properly with the boundary. If you set that header, we won't and your server won't know what boundary to expect (since it is added to the header). Remove your custom Content-Type header and you'll be fine.

There were also about four other minor issues and one typo
So I actually fixed a few, but nothing changed
 
6:35 AM
@dystroy Thanks for your help (and the Miao example)
 
you're welcome
 
6:50 AM
i just noticed this statement in a code which i'm reviewing atm
var a =  dx << 0 >> 1;
dystroy, do you know what that does ?
 
@KarelG yes
(rounding then dividing by 2)
 
how does a bitwise shift by 0 round, though?
 
^--
 
because all bitwise operators return int
they're not really just bitwise
 
-1
A: regular expression : find "->" word in a string?

Derek 朕會功夫stringArray.filter(function(e){ return e.indexOf("->") > -1; });

 
6:57 AM
@dystroy but it is inaccurate if dx is not an integer, but a float
 
what do you mean ?
bit representations of float are very sensible : a very small change on the value changes everything bitwise (I mean for IEEE754, I don't know if today somebody still use representations which don't have this problem). Most of the time what you want is the bits of the integer representation
so bitwise operators only operate on the mantis part
 
Still, I think it causes confusion when parseInt would have the exact same result
 
@Kippie Can you find one useful use case where you need a bitwise operation on a IEEE754 float representation of a number ?
This being said, I don't see why use dx << 0 >>1 instead of just dx >> 1...
 
there's something wrong, isn't there?
ah no, my bad.
 
score != rep
 
7:08 AM
@FlorianMargaine soon
 
@Kippie it was the difference between 439 and 455 that bothered me
then I remembered wiki answers.
 
@KarelG can you show us more code ? I'm curious as to why use << 0 before the >> 1
 
@dystroy yep
 
meh, i had to review it because the results were inaccurate. Gotcha remove that. i doubt that the developer knows what (s)he was doing
 
Good morning \o/
 
7:13 AM
@dystroy honestly, it's so depressing.
@needaname mornin'
 
did any1 noticed the future sensed URL of a dilbert comics ? It's probably foresighting to publish thousands dilberts comics \o/
 
As every morning I'm already busy with something.

Now I'm trying to choose a nice/reasonable name for my project. My project is a **Discussion Platform** but also works as a Q&A, online Idea and Decision **Crowdsourcing**.

For now I have Yakamooz (which comes from the turkish word "Yakamoz" meaning "Phosporescence"), then I have Cembaz/Jembaz (from the turkish word cemaat/cemiyet meaning "community", and the word "baz" meaning "base"). Then I have Discoos (which implies a non-existing affiliation with **Disqus** in a person's mind), Combaz, Folkbaz, Conbaz, Baztalk.. What do you think? No
Wish there was a SE site to ask for these things :(
 
Why not use your "Decision Crowdsourcing" tool to decide ?
 
@dystroy I would, but I still have no community to make use of that :/
or do you mean hosting that project?
 
by this way, you can show what your project is
 
7:19 AM
@needaname How could we answer that for you? It's obviously aimed at a Turkish demographic, which (almost) none of us are.
 
in most situations, having a prototype is always better then concepts only
 
Then would it be good to host the prototype under a temporary name like "Bazcat.com" and then let the community choose it?
@Kippie No, not really. I chose turkish words because I happen to be half turkish and is the only reasonable-different language I know for making words combo. I speak a few more languages but they are similar to english.
 
@ssBarBee 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.
 
Even words in german would be good as far as I'm concerned.
 
@Soman 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.
 
7:32 AM
morning morning
 
@DrogoNevets morning*3
 
@aligator 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.
 
im hopefully getting my proxy updated :D
 
7:52 AM
uhm... is there a quick method to split an element in array to two elements ?

fe `[ ... [1,2], [3,4] , [5,6], .... ]` to `[ ... [1,2], [3, x], [x ,4] , [5,6], .... ]`
nvm
 

« first day (1306 days earlier)      last day (3648 days later) »