« first day (1628 days earlier)      last day (3311 days later) » 

12:01 AM
@taco you know you have a console in your browser right?
 
!!> console.log('@phenomnomnominal ...no');
 
@SomeKittens "undefined" Logged: "@phenomnomnominal ...no"
 
@phenomnomnominal yeah, I was just checking Caprica's timezone and I kept forgetting the new keyword :p
plus I'm bored. I'm the only one at work
 
Why the heck did I get invited to the trash room, I didn't even do anything, aside from two commands.
 
12:05 AM
@DemCodeLines Phenom moved a bunch of messages. It happens.
 
alright cool
 
@DemCodeLines were you ready to throw down?
 
@taco wut
 
@DemCodeLines oh nothin', just instigating
"How does this even work" .... lol....
 
12:21 AM
world getting stupider by the day
 
I wouldn't say that. There is something outside of everyone's scope of knowledge
Why would they need to know about rotary phones? It's amusing though
Around 5 minutes in they're realize the phone didn't send text messages, lol
 
Hi guys, if you are kind to give me some hint/advice.
I'm looking for a code or the syntax to load a JavaScript function after the function has complete, I have found "setTimeout()" example. Are there anything else to go about this?
 
@Maki what's an example?
 
<p><strong><a><strong>Our&nbsp;compliance expertise</strong></a></strong></p> FML
 
Are we talking something asynchronous, or do you just want to call one function and then another?
@monners seems legit :P
 
12:35 AM
@phenomnomnominal the JavaScript is outside the html file (xxx.js). But due to the large amount of table data it has to process, currently after page load you can see a weird table for 5-10 seconds. What I am trying to do is avoid the display of the loading table.
I have a minimized sample of the function in jsfiddle jsfiddle.net/revzephyr/b42vn2nh/96
 
@taco Well, not rotary phones specifically.
 
Hey @DemCodeLines how much might an unopened copy of Visual Studio 2008 pro go for? I see 'em on eBay for up to $1,500
 
hey EnglishMaster
 
What's cracking?
Master Maki
 
12:40 AM
Looks like I can probably get $1,200 at least
 
@taco Why do you need an IDE that costs $1200?
 
@EnglishMaster I don't. Hence the reason it's unopened.
I got it in a meeting for answering a question from a Microsoft rep
It was probably worth $500 or so at the time, not sure
 
what was the question?
 
@EnglishMaster JavaScript, lol.
 
12:45 AM
@taco $0 if you're a student. Who even uses that anymore?
 
@DemCodeLines I dunno
 
Are you trying to sell your own copy?
 
That's why I was wondering if these ebay prices seemed realistic. This is a Pro version though, not a student version
Yeah, I need to fix my car, plus my tires cost me $750
 
@EnglishMaster do you happen to have an answer to what I asked phenomnomnominal?
I'm looking for a code or the syntax to load a JavaScript function after the function has complete, I have found "setTimeout()" example. Are there anything else to go about this? the JavaScript is outside the html file (xxx.js). But due to the large amount of table data it has to process, currently after page load you can see a weird table for 5-10 seconds. What I am trying to do is avoid the display of the loading table.
I have a minimized sample of the function in http://jsfiddle.net/revzephyr/b42vn2nh/96/
 
$1,500 is unrealistic. No one will buy that, and Microsoft releasing VS13 Community edition doesn't help the cause either.
 
12:48 AM
@Maki I'm sorry but your code is awful and it scared me off
 
@Maki You can dynamically allocate functions within setTimeout
 
Microsoft released a cheaper Surface 3 today. 0 marketing. Nice.
 
yeah, I think it's time to sell it as I heard about the .Net Linux rumblings
 
Don't worry about awful code, in my experience nobody cares about nasty code of yours as long as it works
It's a lot better to write nasty and unstructured code btw, it saves your time sometimes
 
@phenomnomnominal I'm not surprised, I don't really know JavaScript. Just did what I can and put 4 different parts of codes together. I tried to refine/clean it up, but I don't have the basics....sorry for the messy code. Thanks for looking.
 
12:51 AM
Which one would you prefer 1) a bunch of if and else statements, takes 10 minutes to write 2) Spending 1 hour trying to figure out what observer pattern is and trying to emulate that in your code
 
Lazy person says 1, caring-person says 2 (most of the times).
 
@taco VS10 is around 1,800 max on ebay....if you want to sell it fast. I say max 1,200.
 
^ still a profit of $700
 
if I can understand what I need to do, (2)
 
would anyone mind to help me with a javascript issue? i'm banned from asking questions on the site. for some reason, in IE 11 two variables are returning the same value, but in other browsers this does not occur.
 
12:56 AM
@r3wt I'm not sure, that's not suppose to happen, maybe you are drunk?
 
@EnglishMaster i assure you i'm not drunk
 
Let me use my secret superpower to read your code on your text-pad. HMmmm
I definitely see some compatibility errors there, give me sometime to guess
I got it
 
thanks dude
 
@DemCodeLines I see one guy whose sold 8 copies for $799. He's still got 3 copies left, so I think I might just sell it for around that
well at least that covers my tires
 
1:01 AM
@EnglishMaster, so your suggestion is to use setTimeout within the xxx.js?
 
@r3wt Just don't let CIA or NSA know about my superpower, I heard they are still chasing down X-men.
 
@EnglishMaster Not sure if you're trolling or not, but here's the basic problem i'm experiencing. I don't know enough about javascript to know why this happens. but its only in IE. puu.sh/gX5bs/d1dac7150c.png the numbers old_price and new_price seem to always be the same according to IE
 
maybe it's cached
delete cache on ur browser and try again
 
it comes from a websocket event.
cache is disabled too
the strange thing is that eventually it starts working correctly after a few minutes. so bizarre
 
3
Q: javascript syntax check for Internet Explorer

Udo GIs there some tool that can syntax-check my JavaScript files to see if they contain syntax errors that would bother the Javascript engine of Internet Explorer, especially excess trailing commas? Example: var some_object = { valid : "property", one : "comma too much ---> ", }; This code wo...

later kids, time to go home
 
1:06 AM
see ya later alligator
 
well thank you for your time anyway. atleast you're honest
 
I don't want to read your code, it's boring as reading a bible
 
@r3wt EnglishMaster is a troll, I've just kicked him
 
dude, i just figured it out!
the event is firing twice in IE
this is bizarre
 
1:08 AM
nice!
one step forward in debugging
 
Yep. coming from the library. reconnecting-websocket.js
 
setInterval(function() { if (!$("#egg-actions").hasClass("egg-has-voted") && $("#egg-action-restartdecline button").click().length) console.log("Declined restart at "+new Date()); }, 10000);
 
1:31 AM
 
m59
1:46 AM
function makeRouter(routes) {
  return function(req, res) {
    var url = req.url;
    async.eachSeries(routes, function(route, cb) {
      if (req.method !== route[0].toUpperCase()) { return cb(); }
      if (routeMatches(route[1], url)) {
        route[2](req, res, cb);
      } else {
        cb();
      }
    });
  };
}
// when the route handler calls res.end() rather than cb(), is this a memory leak?
 
It's been a long time since I touched any js, but somebody please tell me when I should use the "new" keyword. I find it somewhat amazing how searching SE found me absolutely no straightforward answer among even those with hundreds of upvotes...
 
m59
never, if you agree with Douglas Crockford (I do)
 
So what's the point of having it then?
 
m59
Failed attempt to make Java developers happy.
 
BTW, are you seriously recommending that I take the "new" out of, say, "ws = new WebSocket('ws://localhost:12345');"?
 
m59
1:57 AM
LOL no.
I'm suggesting you not be the developer that wrote WebSocket that way such that it is needed.
 
Fair enough.
 
m59
ctrl+k
 
@Will you can abstract that away though
function createWebSocket (path, port) {
    return new WebSocket('ws://' + path + ':' + port);
}
 
m59
I don't know of any problem to the developer that uses the lib that way, but the lib itself will be harder to reason about for whoever develops it. The problem isn't with new. The problem is with this and prototype.
 
Sorry, was interrupted. So obviously then, but just to confirm; when I'm creating an object on the fly like this: `var r = (function() {
var rect = cv.getBoundingClientRect();
return {
x: rect.left,
y: rect.top,
w: rect.width,
h: rect.height
}
})();`...I don't need to bother using "new" at all?
damnit i fail a t markup
 
2:06 AM
chat isn't proper markup
 
m59
@Will ctrl+k man!
 
@m59 doesn't do anything...
 
m59
It sure does
 
How do you know?
 
m59
Because I'm using it?
 
2:10 AM
What effect is it supposed to have? BECAUSE I REAALLY SEE NOTHING HAPPENING...
 
@Will Are you on a mac?
 
linux
 
m59
You can also use the "fixed font" button --------------------------------------------------------------------------v
 
console.log('it makes code be formatted in a monospaced font');
 
Okay, thanks. So, yeah, no "new" on new object variables, no matter what, right?
 
2:15 AM
@Will Better yet, read "JavaScript: The Good Parts" and decide for yourself
 
or better yet, do what the other devs at your company do
 
how do i stop a certain function to stop working after specified amount of time, for eg: I want to stop the given function after 1 second .. how do i do that ?For eg this code : repl.it/g5o
 
@phenomnomnominal That would involve asking me, myself and I. :)
Hope to have some time some day to read "The Good Parts". Thanks, guys.
 
2:33 AM
Guys, please help me:
0
Q: I successfully compiled my program. Now how do I run it?

Aadit M ShahI want to solve Project Euler Problem 1: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. Here's my code: \documentclass[10pt,a4paper]{article} \use...

 
is it already April 1 ? @AaditMShah
 
entries = entries.concat(new Array(entrant.tickets + 1).join(entrant.name + ',').split(','))
I can't believe I just wrote that.
 
lol concat then split? @SomeKittens
 
I spent two hours today trying to re-write a core module to my works application only to realize I probably can't do any better and it is ugly for a reason.
 
This is why I shouldn't code while sick.
 
2:42 AM
that was fun
 
@ApathyBear Yep, not sure if it even works
 
Haha
@rlemon It's amazing how you can spend so much time doing something, and at the end of the day feel like you did nothing.
 
@ApathyBear at the end of it, I just reverted the file to the checkin I started with
such a waste
 
Ouch
 
Speaking of wasted work, guess what I'm building!
 
2:49 AM
2 days ago I spent 4 hours trying to get gunicorn to work
What?
Something open source? :P
#lowblow
 
@rlemon This is sick !
"IE is smelly and will not get support."
 
s'true
also, readme is out dated.
version 0.0.2.0
I should just remove the version from the readme
 
I think it's fair to say that a Chrome extension won't support IE
 
well for FF I will have to write supported versions
so, userscripts
 
3:02 AM
Not JS, but what would be the appropriate action for a question like this? Down vote and flag…? (but which flag)
it's just one of those questions that's too localized and bad all around
 
I recreated Crockford Facts, if anyone is interested
 
@Andrea FYI, HN upvotes don't count if the first hit on the site is directly to the comments page
 
Oh, really? Didn't know that
 
Yup. It's really easy to get a submission shadowbanned
 
I appreciate the sentiment, but his site is ugly af... I wouldn't mimic it :D
 
3:05 AM
@rlemon heh
 
@rlemon yeah… it's pretty terrible
 
That was very lazy CSS
 
new CrockfordFact('augh the irony');
 
it'll be improved at some point :p
 
828
A: What is the best comment in source code you have ever encountered?

Rohit// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass

 
3:07 AM
@rlemon Ah, but this is CSS, 'tis easy to fix
 
FALSE.
There is no such thing as "fixing" CSS - only more hacks
 
^truuuuuuu
 
I just keep appending to the file until it works in all target browsers
one day I'll clean it all up
... one day
 
@rlemon my manager "Don't worry, we'll implement the full API later"
 
so this was like 2008?
 
3:11 AM
everyone laugh at my codez
 
<table border="1">
NOOB!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!‌​!!!
 
@Andrea idgi, crockfordfacts.org ?
is that incomplete?
 
@royhowie yes
@royhowie ?
 
One of these days my new avatar will propagate.
One day.
 
The bear doesn't look very apathetic.
 
3:19 AM
@Andrea nvm I get it
 
some of the facts on the site are, sadly, truncated
 
I missed the last sentence about your having registered a .org
 
this is because the Twitter bot was limited to 140 chars and may have sometimes parsed HTML badly
@royhowie ah
 
I just happened to type in crockfordfacts.org instead of .com
 
however
I managed to recover a few because someone had an IRC bot called CrockBot that also scraped facts from the site, and there are a few logs here and there :D
 
3:20 AM
no one knows who ran the site originally?
 
actually, I think I found a reference to its creators
might be able to get in contact with them
 
PHP, I'm assuming, is built in C?
Is it open-source?
 
@SomeKittens you're right it looks more angry, sigh
 
@DemCodeLines Yes.
@DemCodeLines GitHub.
 
3:24 AM
@DemCodeLines but node.js is the true path to greatness
 
anyone here used esquery before?
 
@phenomnomnominal I'd never stoop to using such a tool, you frobnulous tart!
 
@royhowie Is it worth a career?
 
@DemCodeLines it is worth a lifetime ofc
 
3:34 AM
What style do you guys use to comment a block of code? Like say, a not so obvious function.
 
// here be there dragons
 
And if its multi-line? Just // all day?
 
depends on how long the comment will be
 
Say you need 2 or more lines
I was looking for something like this: python.org/dev/peps/pep-0257/#multi-line-docstrings but for JS
As you can see its embedded within the function or class, but you can't really do that in JS, so was wondering what conventions people used
 
3:41 AM
Epic link, thanks @SomeKittens
 
@ApathyBear I use what @SomeKittens posted for the most part; if I'm just going to write a quick note (regardless of lines) that isn't quite meant to "document," then I use //
 
Gotcha, thanks guys
 
StackOverflow is shutting down the chat :(
13
 
@BenjaminGruenbaum April Fools is in 16 mins…
(EST)
 
@BenjaminGruenbaum at least include a link to rebecca.blackfriday or something.
2
 
3:52 AM
It's after midday here
 
4:04 AM
Mornin by the way
 
mr5
Hello o/
Anyone here have been developed an HTML5 game for Android and iOS?
I'm trying to tweak as much as I can, hoping I could get a little bit of improvement in performance in my HTML5 game.
 
@mr5 Canvas?
 
mr5
Yes sir.
It's snappy in some mobile browsers. Even the newer one :(
brb... lunch time
 
4:35 AM
Even if somebody is really dying today and says the same here, nobody will believe him.
 
4:59 AM
@SomeKittens How did they even pull that off? Is .google a TLD now?
 
@Retsam Yup
 
Huh; didn't realize there were brand specific TLDs
 
Anyone have idea what google has created this fools day?
 
That was hands down the worst code I've ever worked on
I think I need a chemical bath
 
5:45 AM
What did you work on @monners?
 
@ApathyBear The stuff of nightmares
 
Does it have to do with IE?
 
Nope
 
6:05 AM
can we interrupt a function processing and kill it ?
in JavaScript
like running a program and after 1 second of its execution, kill it ?
 
dev tools -> script tab -> pause button
 
but do we have a inbuilt function ? .. that is different thing, we are doing it.. how to code it in
 
nope; while (Date.now() - start < 1000) beBusy();
 
@HarshalCarpenter If you are concerned at the level of function, then you can't
you need to use flags
within the function
 
6:09 AM
Like timer event -> stopFunction = true
 
@EnglishMaster doesn't work if the function is synchronous
 
@EnglishMaster it won't work .. in blocking thing .. it should work asyn
asyc
@JanDvorak that answer is funny though xD
 
err... wat?
I said flag it, not quote it
You have two minutes to unonebox
 
ok ok :D
 
@HarshalCarpenter What do you mean
?
 
6:13 AM
one more flag needed
 
@EnglishMaster what you just explained is synchronous coding.. the flags .. what i think will work is Asynchronous code ..
 
yeah
what are you even trying to build?
 
just exploring .. random JS thoughts that keep me up from sleeping until i find solutions :'(
 
I wouldn't do that, it's waste of time. Just go to gym and build some muscles instead.
I feel sorry for a girl who will end up marrying you because she had no other choices left
she will be squeezing your man-boobs all night wishing that they were all muscles ='(
 
xD
 
6:19 AM
thanks :) for the advice
you are gentleman :)
 
Damn nice !
Windows Phone is usable again !
 
I think nobody in this chat has Project Management Professional Certification
 
@SterlingArcher lel subtletroll: reddit.com/r/AskReddit/comments/310y99/…
I know a guy who taught me a lot about the PMP. He had his
 
cool
how many years of experience does he have?
 
You'd have to ask him.
 
6:33 AM
NVM
the exam is phucking extreme
you can't pee or take shit for 4 hours
 
Hi all good day, how to store an string value in one jsp and acccess it in al other JSP
 
I think it will be extra more difficult for me because I have a tiny bladder
 
@greenhorn Java != Javascript
 
i know but i thought some can help in this
 
@greenhorn I know
@greenhorn Hehe, sorry I forgot
I have assburger syndrome, I cannot remember something for more than 10 seconds
 
6:40 AM
its ok folks bye
 
Bye folk, you sound like Obama btw. He uses the word "folk" a lot.
Hiring QA team vs making programmers to do extra QA works and pay them extra
Which one would u choose?
 
Nik
Hey, it's april fools. Here's a little piece of code that'll edit any page.
<a href="javascript:document.body.contentEditable%20=%20'true';%20document.designMo‌​de='on';%20void%200" target="_blank" rel="nofollow">Edit This Page</a>
Happy pranking, everyone :D
 
codepen.io/darkyen/pen/ogOLPG - My best animation so far, hows it ?
 
DON
I couldn't hide dynamically created textbox
 
@DON 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.
 
DON
6:53 AM
$('#txt_id').hide();
its not working on dynamic textboxes
display:none
 
any chance you have duplicate IDs?
 
DON
i have tried above css
its not working too
but visibility:hidden is working
 
fiddle?
 

« first day (1628 days earlier)      last day (3311 days later) »