« first day (2165 days earlier)      last day (2781 days later) » 

12:02 AM
hah I never even noticed that
 
12:39 AM
morning guys
what does || mean in var doc = iframe.contentDocument || iframe.contentWindow.document;
 
159
Q: JavaScript OR (||) variable assignment explanation

m.p.cGiven this snippet of JavaScript... var a; var b = null; var c = undefined; var d = 4; var e = 'five'; var f = a || b || c || d || e; alert(f); // 4 Can someone please explain to me what this technique is called (my best guess is in the title of this question!)? And how/why it works exactly?...

I'm a dork, I explained that backwards.. I explained &&
 
|| just means or right?
 
yea
 
alright. thanks :)
 
wth... How come this question got marked as a duplicate of a question asked almost a full year later? stackoverflow.com/questions/9121395/…
Surely there is a check to make sure questions aren't marked as duplicates of later questions
not to mention that the accepted answer is a fucking regex ><
 
1:03 AM
@david age doesn't have anything to do with it typically
typically they mark the dup of the better question
 
I guess i can't really be objective about that seeing as my answer was accepted in the first one.
 
@david your accepted answer is better imo
 
Thanks :S
it actually goes another layer deep
and the 3rd question is actually older than both of them
 
hahaha stackoverflrow is retarded sometimes
 
but its answer involves stomping on the base Object.prototype :S
I guess it takes javascript to make if statements difficult ><
 
1:10 AM
the object.prototype one is terrible
i wish duplicates would link both ways
 
 
1 hour later…
2:23 AM
I'm starting to remember why I stopped coming to this site... What kind of an answer is that? stackoverflow.com/questions/39564450/…
 
3:05 AM
@david did you lose rep for it? It was my understanding that you didn't in those situations
And if you really think your question/answer is a better qa you can vote / goto meta
 
@rlemon Nope, but I won't gain any more because people will just follow through to the other one
 
I think there might even be a way to merge the answers
@david not always. I often see duped closed questions in my searches and they are helpful
So I vote
 
I guess, but it would still be less than I'd get otherwise
it doesn't really matter because people who are searching for how to compare multiple values are usually looking for crazy [].indexOf and regex answers anyway :P
 
3:25 AM
\o/
 
 
1 hour later…
4:54 AM
hello
anyone know which socket.io version ie8 supports
??
 
5:25 AM
Ummm, none?
 
@monners that's the best answer you have ??
 
@bitten I think you were right when you said you aren't sure if node.js should be used as a reverse proxy. I am still new to web development beyond the front-end and simple backend in php or node.js. But after spending the entire day yesterday reading and trying out different solutions it looks like all I need is a nginx reverse proxy server :p
 
@Shubham socket.io is 6 years more advanced than ie8 so don't expect it to work well. Search on SO main site.
 
I don't see why it shouldn't work with fallback to long-poll?
It's not like streaming is a new concept, I was working on a long-poll solution at my first job and that was in 2006
 
@Shubham who is so cruel and makes you support ie8 ? :D
 
5:40 AM
I don't even want to think why a browser before XHTML2 would not be compatible with the new web.
 
6:06 AM
@Cerbrus good morning
 
Is there any point in doing an Ember 1.6 tutorial, when we're at 2.*+ now?
 
@Schoening we want to support ie8 too, but some error is coming in socket.io
 
6:30 AM
@Shubham Get the javascript error message and search on SO main. I found a number of questions along the line of what you are asking.
 
6:42 AM
hey guys, in Postman rest client
can you generate your own custom code such as that uses fetch library instead of jQuery ajax?
 
6:59 AM
@Jason I think NO, As per my knowledge...!!
 
7:11 AM
hi
looking for a jquery that help me in flying element and has no conflict with rslider and lavaLamp
 
7:29 AM
0
A: Change placehloder font color in html

ehsanTry this : <!DOCTYPE html> <html> <head> <style> .d { position: relative; } #txt { position: absolute; background-color: rgba(220, 220, 220, 0.3); border: 1px solid #000;...

^ can anyone explain this guy that the code isn't working when I exactly click on the placeholder's text?
I tried my best but still he can't understand. Maybe because of my poor english
 
@Mr_Green I can reproduce your "bug report". You English is also fine.
 
oh thanks
care to explain to that guy?
can't withstand that he is wrong and unable to understand it
 
Follow disney princess Elsa's example.
 
haha
 
Related
 
7:37 AM
yeah
!! youtube prodigy warriors dance
 
@Mr_Green Something went on fire; status 403
 
he first made me right (there was bug in my code) but now he isn't able to understand when I am trying to correct him
 
@Mr_Green If it's tagged as JavaScript, I can close it as dupe. Assuming one of the existing dupe votes is correct.
 
yeah it's been answered before
can't you tag now and close it?
 
Tags I add myself don't count.
That'd be easy to abuse
 
7:44 AM
done
 
done
 
why o/
 
Must be a pretty slow day to see two incompatibility news in a row.
 
Must be a pretty slow site if they just now figured out that Angular 2.0 isn't backwards compatible :)
 
Not surprising. Sometimes I read it on news a few days before the site got it in the headline. I think someone saw the Swift news and decide to bring up Angular...
 
8:19 AM
greetings, programs! \o/
 
@thedigitalmouse greetings, computer input peripheral
 
"Googles New Angular 2.0 Isn't Compatible With Angular 1" is not news :P we knew that before it went beta! :P
and hey Sheepy! if you are bored, go play with my latest woes at stackoverflow.com/questions/39510407/…
:D
it's not critical - i've decided to solve the proble another way by not using ES6 at all... but I leave it up as an exercise in futility. :D
 
Sorry. I don't use node and I don't use babel now. :(
 
What's wrong with that answer? :P
 
hehe.. i see that as a trend actually
@Cerbrus - what was the question? :P
but @Sheepy ! node is the future! \o/
 
8:24 AM
@thedigitalmouse Doesn't matter. The answer is doing something very wrong. But for context: it has to do something every second.
 
@thedigitalmouse Tell me when WordPress has a node version.
 
@Sheepy - sounds like an opportunity to create 'nodePress'
 
@thedigitalmouse Better do it fast. You are already late. But WordPress wasn't built in a day.
 
@Cerbrus - that whole delay function leaves a bad taste in my mouth... but can't quite put my finger on it, or where to start. there are easier ways to trigger things every second.
 
Or wikipedia. Or prestashop. Actually we also have around 100kloc .Net code in production.
 
8:28 AM
@thedigitalmouse it's using "Busy waiting" to make a delay
while(conditionToWaitFor)
^ Burn it with fire
 
@Sheepy - not for me! I got too much on my plate as it is. New water control system touch interface (that wheel thingy I used to bug you with), bicycle rental system for a library, and a badminton scoring system for the boss. >.<
 
@thedigitalmouse Like the raise of smartphone app, Node may catch up and become a new king. I am aware that many media servers are available in Node, but otherwise I don't see a critical problem it solves that existing stacks don't, for us.
And I'm too busy learning baby care to care about Node now.
 
@Cerberus - yeah did get my attention, along with setSeconds(now.getSeconds() + seconds)
@Sheepy - oh? congrats on compiling a new baby!
 
@thedigitalmouse Thanks! But yeah. Last week my gaming PC mysteriously refuse to boot and I don't even care to fix it now...
 
8:42 AM
Well you won't need it for the next 4-5 years anyway :)
Oh and grats!
 
What the hell is this guy doing? stackoverflow.com/posts/39566796/revisions
I clean up his snippet, and he mangles it again...
 
how I'm suposed to win the game?
I'm having nightmares
 
@Neoares You just lost.
As did I.
Damnit.
 
idc I lost several times this night, I just want to win Q_Q
 
I had dreamed of playing coding game with my child(ren).
But test runs on friends' children are not very promising.
 
Ouch. Cockroaches. Didn't see that in the title and jumped right into a big banner of those black winged devils. (*feeling sick)
 
How to get a collection through Id in Backbonejs?
 
 
1 hour later…
10:09 AM
@Schoening heh, i don't remember saying that but cool, glad you worked something out ^^
good afternoon everyone
 
good afternoon~
 
^^
@thedigitalmouse the only thing i could suggest is npm uninstall json-socket npm install json-socket@0.1.2
the Socket class should be available
 
10:35 AM
Guys can I get webpack compiled bundle.js somehow?
 
@TeodorKolev hm?
 
I use webpack that combine all my files to a single bundle.js
but I never see that file
 
nice
oh
how are you running webpack?
 
I use this
and run with npm start
 
@bitten hmm... i'll give that a try, thanks!
 
10:40 AM
@TeodorKolev it's a development only set up, so it doesn't give you any production features like 'building'
 
can I set it for development?
 
do you just want to use it for development?
 
I want to take my ouput static file
 
i saw the idea of that repo is to just like test some react features or use it to learn react or to see how to use react hot loader
 
@TeodorKolev usually the build.js file is in webpack's dist subdirectory. and depending on the boilerplate system or how you installed it, you will probably need to run npm run build' to actually build it first, then copy it to the webserver you want to run it on, using a <script>` tag to include it in your html file (for example).
 
10:42 AM
@thedigitalmouse i know it's the equivalent of 'turning it off and on again' lol, but that class should be in there :l
 
there is no dist directory
 
@bitten yeah it shouldn't be so difficult to mod .vue stuff to run in ES6 :/
@TeodorKolev maybe a build directory?
 
@TeodorKolev that's because it's not set up for it, it's a development only repo
 
nope
 
there are no production builds in that repo ^^
 
10:43 AM
can I set those builds?
 
are you familiar with webpack? because then, yeah sure
 
@TeodorKolev what do you run to do the development with? something like npm run dev or similar?
 
is it hard to do that, or I must search for another repo
 
could be a nice way to learn webpack too
@thedigitalmouse with the react-hot-boilerplate i was just running npm start which starts up the webpack dev server
 
sorry @bitten - that was meant for Teodor :D
 
10:45 AM
oh no problem :3
 
but also a good clue
 
npm run dev not working
 
@TeodorKolev it doesn't exist in that repo
 
@TeodorKolev - hmm.. well you could look inside your package.json file, or find the webpack config file... the command to build your..um..build.js file is usually defined in one of those places... usually the package.json if using some kind of webpack template
 
I am a bit noob in webpack
and I will skip that
I will search for another repo
 
10:48 AM
i would consider taking this opportunity to get into webpack
just look for a production ready template next time ^^
 
thanks guys
 
according to the git repo you guys posted, the static file is located at static/bundle.js
 
@thedigitalmouse yeah but webpack doesn't.. generate it to that folder
you access it through localhost:3000/static/bundle.js as it goes through the webpack dev-server
 
I need webpack
 
and even then it has all the hot module code in it so it's not production ready
 
10:50 AM
huh.. sounds like that repo is not very complete then... and yeah even the webpack config says something about 'dev only'
 
i'm simplifying a ton
 
I need react webpack sass boilerplate
 
There's probably 200 of them :)
 
well there is reactboilerplate.com but you'll have to add sass. and you can search through andrewhfarmer.com/starter-project it has a nice little search engine for starter projects
that you can filter through
 
10:55 AM
thanks again
 
@TeodorKolev that has a development and a production set up
 
in fact if you use that second link and type 'sass, webpack' you find a bunch of possibilities including github.com/alicoding/react-webpack-babel
heh i used that React template search engine which led me to using Vue instead >.<
 
'css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:‌​5]'
Fucking webpack
 
awesome, thanks again guys
 
11:25 AM
no problem... you owe us some beer :D
 
11:41 AM
@bitten Sorry to disturb you again but does that has dev build github.com/alicoding/react-webpack-babel
I believe there isn't
 
rtm ;)
but yes, it looks like there is
i've never used that repo so can't say what it's like though ^^
 
but i still did not see any compiled files
oh sorry, with npm run build
I got one
 
should be in public/
 
yes, but why when I try to debug
I cannot see my src files
hmm ok thanks sorry again
 
 
1 hour later…
1:18 PM
lol I'm gone for one day and y'all think im dead or something :P
I was at my brothers wedding
 
!!s/brothers//
 
@rlemon I was at my wedding (source)
 
CONGRATS!
you finally made Steph an honest woman
 
God I hate you lol
 
<3
 
1:20 PM
Dude she met like.. my entire family.
Like everybody.
 
is she malory approved?
 
She is, yes lol
brb my freaking badge isn't working
again >.< this is how they fire me lol turn off my security badge and say nothing
 
@BenFortune I'm going to blindly copy this python code to node and use the i2c-bus library
have no idea
 
@rlemon Do it!
 
♫ making it up, as I go along♫
@BenFortune tmk this will be the first library to control the 1602 LCD display AFTER connecting it to a funduino i2c controller
which is a neat little board
compact and easy
 
1:33 PM
how can I inject unicode in element ??, I am trying to do that but it is not appering
 
hi
what is the last logo in this pic
php wordpress html5 and ....
 
joomla
 
@rlemon thanks
 
My back is fucking killing me.
I had to drive to richmond yesterday to return some heavy ass barrels, but a 4 hour journey turned into an all day trip returning tuxedos, helping clean up the venue, and driving people. 7:30am and I didn't sit down finished until 10pm :(
 
joooomla
 
1:45 PM
Oh @rlemon I finally saw Rick and Morty with Mr. Meeseeks
I was dying when Jerry sucked at golf
 
:P
LOOK AT ME
@SterlingArcher I went back to the venue to collect stuff people left behind, the organiser gives me a set of keys saying "must have been someone at the receptions"
half way into my 3 hour drive home she calls me back saying she gave me her keys
nope, you can now wait till they come in the mail.
 
wtf
in C#, 41 mins ago, by Avner Shahar-Kashtan
I do this constantly
 
@rlemon lmfao
 
testing out one of these today
I have pens heavier than this thing
 
1:50 PM
we also had several car keys left behind, somebody's bra (I don't even know) and several pairs of heels
 
I really wanna crack it open and see what hardware is inside
 
Everything but the bra has been claimed
 
grandma isn't coming back for the bra dude
 
We assumed nobody was gonna claim it, and I'm gonna toss it, but it's a(thankfully clean) and shockingly fancy one. So it wasn't like ew gross it's dirty
 
s/toss/wear/
 
1:52 PM
lol
@rlemon I was losing my shit during this scene
 
they make adult diapers for those problems
 
@SterlingArcher I sent you something on Hangouts but you probably didn't see it
so here it is again
I found it very funny
 
T minus 10, 9, 8, 7, ignition sequence start, oh god nonononono
 

« first day (2165 days earlier)      last day (2781 days later) »