« first day (1717 days earlier)      last day (3234 days later) » 

3:01 PM
> To support this odd hack, the JavaScript engine in your browser treats the characters <!-- as the start of a one-line comment. No joke. This has really been part of the language all along, and it works to this day, not just at the top of an inline <script> but everywhere in JS code. It even works in Node.
7
TIL
 
@Jhawins noice, I've gotta do some more experimenting with mixtures and techniques, see what works best
 
@uselesschien I know one too it's shafou.com
 
@Retsam TIL O_O
 
user1596138
@KendallFrey 5:4 KN to powdered sugar works good for explosions...
 
@Retsam shit :OOO
 
3:05 PM
@afonsomatos That's creepy. It won't give someone a seizure though.
 
user1596138
Seal it up in a metal can with a hole or two lol it smokes for 3-4 seconds and then explodes and everything burns in the air before it hits the ground
 
@Jhawins how do you make an explosion, I thought this stuff just burned
 
what if I want to predecrement something, negate the result and then compare the negation numerically to a value?
 
user1596138
@KendallFrey ^ tin can with 2-3 holes in it and a fuse.. Light it and the stuff burns so violently that it'll make a huge explosion. I didn't think it would light the rest of the mixture when the can exploded but turns out it pretty much all burns away instantly when it does blow up so it's like a flash bang/smoke bomb
 
3:06 PM
it explodes because the pressure inside is too high?
 
user1596138
Yeah.. But it's pretty violent lol
 
oh cool
 
Just like your mom
Wait...
 
No that could work
 
user1596138
3:07 PM
Have you seen how much smoke this stuff will make and how fast with a large surface area lit?? It's actually really fast lol it works great
 
--> is also a comment, but only if it's at the beginning of the line.
 
We made a cobbled together rocket engine, with a metal pipe and a small nozzle
 
user1596138
Nice
 
it looked decent, but not enough to lift anything
 
user1596138
I'm going to try some PVC bombs that stuff it so brittleI've only used metal
 
3:08 PM
not even itself?
 
Dammit now the ATF is gonna be watching this chat
and or NSA
 
also TMZ
 
I ought to make a couple chunks of candy just to throw in a campfire when no one's watching
 
Anyone remember these: scontent.cdninstagram.com/hphotos-xfa1/t51.2885-15/s306x306/e15/… ? When we were kids we'd fold them so all the little pouches crack, roll up 7-8 rolls add a fuse and duct tape it all and that makes quite the bang when it totally annihilates a mailbox ;)
 
user1596138
I live between a bunch of cornfields lol I am only intending on blowing up dirt
 
3:10 PM
lol Jan
 
@uselesschien Youuuuuuu sonovabitch
And it even stops you from closing the tab lol
 
user1596138
@KendallFrey Dude that's what I was thinking... But then I bought a box of 72 smoke bomvbs for $10 and I'm gonna dump all the powder below the fire ring for when my brother lights it lmfao
 
user1596138
I'm always broke at 4th of July.... Not this year lol I have so much shit to blow up!
 
how do you get angular ui-router to navigate to index? this doesn't work: href="/#"
$urlRouterProvider.otherwise("/");
 
3:12 PM
I've already blown up $25 of fireworks this week
 
I stay on the some route eg #/foo
 
user1596138
I have no place to do it so I might have drove out to the country yesterday and set some off lol
 
We just did it on the driveway
surrounded by cars
 
user1596138
I have an apartment now
 
ah, right
less good
 
user1596138
3:13 PM
Yeah.. I already regret it but there was no way I'd renta house that fast lol
 
> **<- don't click**
 
I regret clicking
 
I don't think there are many who wouldn't regret clicking that
 
Wise words indeed
 
jesus christ
 
user1596138
3:16 PM
Huey huey huey hueeeyyyyy
 
@SterlingArcher I don't regret cliking that. I didn't click that.
 
Saying don't click to me is basically unfair psychological warfare
 
Damn your sound logic
 
am I only one who had no reaction opening that link?
probably I am just dead inside
 
user1596138
I didn't really care.. But still.
 
3:17 PM
@SterlingArcher Don't talk to a deaf man about sound
 
user1596138
I don't ever have sound on
 
I had a sudden urge to sell nuclear secrets to russia when i clicked that link
But then I remembered I don't know any secrets
 
yeah, your mom told them all to me
 
mother russia wants you!
 
@tereško I was like "Goddamnit, this is so awesome. Let me troll poor peeps"
 
3:18 PM
meh
 
Experience has taught me to never open any links posted by this chat's regulars.
Not even my own links.
 
Experience has taught me to always open links
but that one...
I'd rather have goatselemonspin
 
Is that even real
 
if not, it should be
 
@SterlingArcher rule #34a
 
3:20 PM
the thought of that is terrifying
 
not as terrifying as urban dictionary
 
user1596138
Hey guys -subject change- how much money do you have to be making before losing $1K to taxes every 2 weeks isn't an alarming thing...
 
user1596138
The IRS withholding calculator is confusing in the middle of the year and with multiple jobs :(
 
more than $1K every two weeks
 
user1596138
^ that makes sense
 
user1596138
3:23 PM
You're not even in my country
 
@JanDvorak there was an addendum to 34, something along the lines of: "if it exists, then some SJW is outraged by it"
 
user1596138
And this is a terrible place to ask these questions lol
 
but I cannot find the exact wording
 
I lose about $700 per paycheck to taxes
 
@Jhawins o/
 
3:24 PM
!!urban SJW
 
@JanDvorak SJW Social Justice Warrior. A pejorative term for an individual who repeatedly and vehemently engages in arguments on social justice on the Internet, often in a shallow or not well-thought-out way, for the purpose of raising their own personal reputation. A social justice warrior, or SJW, does not necessarily strongly believe all that they say, or even care about the groups they are fighting on behalf of. They ty(snip)
 
user1596138
@DrogoNevets whats up
 
@SterlingArcher is that all?! be thankful, here in uk the unwritten rule is 1/3 will be taken off of you
@Jhawins the sky?
hows tricks?
 
That is a third
ish?
 
user1596138
@DrogoNevets Heh, hey dude I moved from IN to Nebraska while you were dead
 
3:25 PM
s#ish#ick#
 
@Jhawins dead? who died?
@SterlingArcher fair enough, i had just over £1k taken off me today (pay day! woohoo!)
 
Payday is this friday for me :)
Hopefully i can finally sex this girl I've been chasing. She's playing hard to get
 
though to be fair, there is pension in there too - i think
 
user1596138
@SterlingArcher Yeah I pretty much lose a third..
 
disclaimer: i'm not literally chasing her (I'm talking to you, @KendallFrey)
 
user1596138
3:28 PM
@SterlingArcher lmfao #goals
 
user1596138
@DrogoNevets You did for like a few months lol.
 
I went go karting this weekend, and placed 2nd, 2nd, and 1st in 3 races
 
It's hard to type while running
 
> Stalker blog day 1: She's in much better shape than I am...
 
@Jhawins nah, i got married
(same thing? :P)
 
user1596138
3:30 PM
Heh
 
user1596138
Kept the bike tho right?!
 
yea, and she bought me one for a wedding pressie!
 
user1596138
I went and looked at the new Tiger 800XC the other day. I think I might get one in the summer!
 
They're good bikes, though not as capable off road apperently
 
user1596138
I'm going home to pick up my bike this week... 1300 miles of driving this weekend :/
 
3:32 PM
(lots of youtube review vs tiger XC, F800GS and other similar ones)
 
user1596138
@DrogoNevets Eh, I have a real offroad bike when I need it
 
@Jhawins harsh! :P
 
user1596138
I sat on the f800 and I hate it lol. I just hated the way it felt.
 
user1596138
The R1200 I loved but jeez that thing is too big for me right now. The tiger has ~94hp!
 
!!s/f800/dildo/
 
3:34 PM
@KendallFrey I sat on the dildo and I hate it lol. I just hated the way it felt. (source)
 
Well, now you know at least.
 
Hi, is it possible to use gulp-livereload without a src? I would like to have a function called on change that only reloads. Has anyone done this? I've looked for examples but I can't find anything
 
@Warosaurus 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.
 
@Warosaurus what you ask may be simple, but I'm not 100% sure I understand. Can you rephrase?
 
@CapricaSix someone shouldve swappe dout hate
 
user1596138
3:38 PM
@DrogoNevets so she got you a bike? What'd ya get?
 
@Shmiddty I don't try to look like you
 
user1596138
@php_purest please if you're going to troll today... Just don't.
 
I don't troll IMO
 
Well your opinion doesn't matter, so
 
@php_purest Nor I, you.
 
3:40 PM
@Cereal niether does yours then ;) ;)
 
;) ;); )00:0)));;;))))
 
@Jhawins kwak H2
 
user1596138
@DrogoNevets what?!!
 
@Luggage Yeah sure! Okay I have a default function that calls a watch function. This function watches specific dirs for changes. I want to call a simple function called reload on most of these dirs being watched like html, etc.. right now I have gulp.task('reload', function () { livereload(); });
 
3:41 PM
i tried to dig out of ?block, so I come here
 
user1596138
Yeah I know what it is! Lol
 
Hey folks, could someone can help me understand how to work with clone ? I've tried two way and still don't get what I'm trying to achieve ( http://jsfiddle.net/jonathanlaf/74mborc7/ & http://jsfiddle.net/jonathanlaf/74mborc7/1/ )

I'm trying to clone a div find an element in it remove it than print de result...
 
@Jhawins sexy huh?!
 
and you are using gulp-watch already? npmjs.com/package/gulp-watch
 
user1596138
That's sick. Like 190hp out of a <1000cc bike. I hear they're kinda heavy tho for what they are..
 
3:47 PM
@Luggage Yeah! :D Um the appropriate function gets called however it doesn't reload properly. It reload only seems to work when used in a pipe from a src? Or at least that's my limited experience
 
@Jhawins not when they're going they aint! needs the weight to make in managable, its a bloody monster!
 
@Warosaurus ohh, gulp has a built-in watch, too.
the way I understand it, you can watch files without having them from from a gulp.src() pipe.
 
user1596138
@DrogoNevets I just mean in comparison :P The ZX-14 makes what, 8hp more? But it only weighs like 40lb more and is a 1500cc. I just feel like they should've been able to shave off a little more weight :P. But I bet it's so badass! I love the way the seat looks like it grabs your ass
 
just gulp.watch('/some/path/**/*.js', ['reload']), basically.
 
3:52 PM
how much reliable is FF developer edition?
 
@Jhawins only downside is i cant take the mrs on it
 
user1596138
...Can she ride it herself?
 
@Luggage Yeah I have that working, but the problem comes in with the reload function. I can't seem to get it working :? So this is what I have for the reload task: ```gulp.task('reload', function (){
livereload(); });```
 
wow, FF DE update right now
 
@Neoares what is new?
 
3:55 PM
@Jhawins no, but loves going pillion (though has habit of falling asleep)
 
how does it not work? does the task get called? put a console.log() before livereload().
 
@uselesschien I dunno, from 40.0a to 40.0a2, so minor changes I guess
 
hacks.mozilla.org/… last time I used it, this wasn't there
 
user1596138
@DrogoNevets That's a weird word for it. Heh that would be bad! I took my sister for a ride one time and she passed out... Thank god while we were stopped. But I was terrified to take her home on it lol what if she passed out while we were riding. Must've been sick... Or doing drugs.. Or something
 
I want to use it as my default browser, but, FF doesn't support touch scrolling.
 
3:58 PM
@Luggage Yeah the task does get called, it pops up in the terminal but the frame never reloads. So it leads me to think that's not the appropriate way to call livereload.
 
!!afk leaving work
 
@uselesschien It does have smooth scrolling though, which is awesome.
 
@Meraj99 But, drag scroll..? I'm too lazy to reach out for my mouse.
 
ohh, you're are trying to reload somethign in the browser?
 
@Meraj99 s/awesome/worst thing ever invented/
 
3:59 PM
@ssube ... its stylish
 
stylish is an expensive way to say shit
 
You'd rather have design that looks like Windows 95?
 
nah, I just use a terminal
 
shit I still clicked it.. my deep curse to that site
Anyway, I have a question
I am planning to publish my blog on my custom domain
which CMS should I use? or should I go with something else?
 
wordpress or bust
 
4:07 PM
then I choose bust
 
wise choice sir
odd pokemon name, but wise choice
 
can someone point me the "bust" link?
google is giving me something else
 
im so tired i think i just drooled on my desk
 
Hmm
What can this question be closed as?
 
@BenjaminGruenbaum I'd say unclear, because a clear and present question is not asked
 
4:10 PM
Good idea.
 
Finally a flag from the Lounge!
I thought LoveOverflow was gonna outdo them today
 
user1596138
Besides above it has a use case in context of redis where connection has already failed, and I want to have a promisify getConnection as well, I'm working on something, will edit shortly. — user2727195 18 secs ago
 
can't find anything related to programming with "bust"
 
user1596138
Nothing. Just let it go
 
user1596138
Or close as "asking us to write their code and nothing else" but he is clearly asking a genuine question, just poorly.
 
4:13 PM
going with wordpress
 
Found the solution: gulp.task('reload', function () { livereload.reload(); });
 
@SterlingArcher there isn't even a ? in the question at all
 
hello everyone
I have faced a problem..I have node.js server and upon hitting a particluar url that server gets 5 images from another server and then show them one by one. Now as I am using node.js
I have to write something like
for(var i=1;i<=5;i++) http.get(options,function(response)){...}
Now is there any way I can do this?
 
4:30 PM
@coderredoc promises. Send out all five requests, then Promise.all to get the results.
 
get Bluebird; get familiar with methods such as map and all
 
@ssube & @JanDvorak.: can you tell me some good easy and clear tutorials on it..so that I can use it in 2/3 hours
 
I just read through the docs
 
the Bluebird API docs are pretty good on the specifics
 
okay! I will give it a try then..thanks for help..
 
4:33 PM
Your job as a programmer is to connect lego bricks; just looking at the bricks and using your imagination should suffice.
 
assuming you have an array of URLs, you want to do something like: let requests = urls.map(asyncRequestReturningPromise); Promise.all(requests).then(images => ...);
 
yes @ssube
 
i.e., turn each url into a request, wait for them all, then use the images
the specifics depend on what you're doing and how you're making requests
 
lego possibilites are endless
 
user1596138
@rlemon what was that tool you used to capture gifs? Was it screntogif? Because that one is making me mad
 
4:34 PM
so bluebird provides support for older browsers?
 
@ssube.: I will generate the urls and then use it to form requests right?
 
Yea. Bluebird is a full JS implementation of promises so it works everywhere*.
 
@coderredoc generate, already have, whatever
@Mr_Green both legacy support and additions to the spec
bluebird does a fair bit more than the spec requires
 
@Jhawins.: It's a different story altogether..at my context I am generating pdf which is what we need
@ssube.: thanks for your answer and @JanDvorak.: thanks ..I will try and come back soon
 
ok thanks
 
4:46 PM
I am planning to host my blog through github
for that I need to install wordpress on my github repo with a database
 
@SterlingArcher There's a lot of goatse in the picture
 
I'm like 90% sure you can host a blog on github with just jekyl or whatever
 
this seems confusing to me as there might be some security issues
 
i think github only hosts static sites. you'll need a separate backend.
 
@Cereal with a backend?
 
4:47 PM
@KendallFrey fuck
 
G'morning
@Polyducks Star Wars, man!
 
@Mr_Green What kind of back end do you need?
 
and yea, jekyl is a decent choice. with that you can just put your blog posts in files and github will 'build' your jekyll site for you
 
@SomeGuy They have to do with Data Warehouses
 
GitHub will automatically generate HTML pages for you based on your blog posts
 
4:48 PM
jekyll has no backend. it just regenerates a static site
 
Jekyll is designed with blogs in mind
 
@KendallFrey php
 
That's... not what I meant
 
Why do you need a backend for a blog
 
sorry mysql
 
4:50 PM
I was referring to requirements, not implementation
 
@Cereal User auth, comments, etc
 
which no one seems to understand the difference between
 
clearly, I didn't understand
 
@SomeKittens disqus
 
I host rkoutnik.com and inmailfail.com on GH pages
@ssube Yeah, there are other options, but those are two reasons you might want to
 
4:50 PM
@SomeKittens Why do you need another host for hate speech just below your blog posts?
 
@KendallFrey because you're probably wrong and folks need to point out how it's Obama's fault
 
my requirement is to create a blog using wordpress. I realize that wordpress uses database to store comments and other meta info, So I also need backend support
 
Speaking of my blog and data warehouses, mind upvoting "Building Data Warehouses for Fun and Profit" on HN? news.ycombinator.com/newest
 
@SomeKittens DWs are neither of those things
 
If you are dead-set on wordpress, then I don't think gh-pages is going to be your host.
 
4:56 PM
@ssube Neither fun nor profitable?
 
Is it me or is the temporary SO logo just prettier ? It's reminiscent of all those 80's computer logos... I'm neither gay nor American but I hope they'll keep it.
 
any guidance on how to attach a database while hosting using github?
just point me out
 
You can't
 
Github pages is just that. Pages.
 
@copy While I see you, thanks for this link, I find it very useful
 
4:58 PM
hmm I was looking for a free hosting services like github with support to backend
 
google app engine?
 
@DenysSéguret Cool
 
These Pocahontas gifs on imgur are amazing
XD
I love it
 
Hey guys, I have two numbers, 19 and 9.9. I want 9.9 to be 9.90 and 19 to be 19, but this piece of code displays: 19 as 19.00. What's wrong?


                if (price.indexOf(".")==-1) {
                    return (price/100).toFixed(2);
                } else {
                    return price / 100;
                }
 
google app engine is not free
they are giving trial
 
5:02 PM
@AliGajani Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
@AliGajani just interchange the statements
price.indexOf(".")==-1 is true when there is no decimal dot
 
there is a of type coersion going on there.
types are being marched around at gun point.
 
Didnt work, 9.9 is back again
 
what 9.9? be clear
 
9.9 is a price
i want it to be displayed as 9.90
 
5:05 PM
it's in his description
 
@DenysSéguret ["9.9","19"]
 
but there are prices like 19. I want them to be display as 19. not 19.00
 
:24167059 Operator precedence
 
!!> [9.9, 19].map(function(v){ return v===(v|0) ? ''+v : v.toFixed(2) })
 
@DenysSéguret ["9.90","19"]
 
5:06 PM
@copy yes, I figured that a second too late...
I should have tested before
 
How would that be incorporated into my if else Denys
 
Probably shouldn't be recommended to beginners though
 
that denys example goes top of my head
 
v.toFixed(2).replace(".00","")?
 
@Mr_Green It's not hard.
he's passing a function to map
 
5:09 PM
v % 1 === 0 ? "" + v : v.toFixed(2)
 
Yes, that's easier to read
 
I didn't get this part v===(v|0)
 
| is a bitwise or
 
v|0 coerces to integer
 
I like Jan's version. the intention is clear.
 
5:10 PM
Cool, that was neat
 
@Mr_Green in short binary operators first change the operands to integers (and it breaks when you deal with big numbers)
 
Thanks folks
 
*bitwise
 
"I want to format this number with two decimal places". "ohh, yea, and let's not show it when it's '.00'".
 
v.toFixed(!!(v % 1) * 2)
 
5:11 PM
@JanDvorak A $ maybe (depends on the goal)
 
shouldn't make a difference IIUC
 
@copy this is easy to understand
thanks denys
 
posted on June 29, 2015 by Alex R. Young

Mesh (GitHub: mojo-js/mesh.js, License: MIT, npm: mesh) by Craig Condon is a data synchronisation library that caters for server-side and client-side requirements. The author has pitched it as the "underscore of data", meaning it's a highly focused library that you can drop in to existing applications. It covers

 
@SomeKittens correct
 
@ssube I get the joke, but I had quite a bit of fun putting that article together.
 
5:19 PM
I just saw the most wtf code ever
 
@SomeKittens what joke?
 
er, nevermind
 
@Gemtastic HOW DID YOU GET INTO OUR CODEBASE
 
someone trying to use html code to make a javascript that connected to node's socket.io on his node thorugh some kind of hybrid URL/URI
 
Did anyone tried immutable? facebook.github.io/immutable-js
 
5:22 PM
from a php app
 
@php_purest that's really very unnecessary
2 messages moved to Trash can
 
@KendallFrey YOU POSTED IT ON FREENODE!
 
... why did you tag the gradient as not safe for work? — Woodrow Barlow 3 hours ago
 
I told you it was offensive
If Someone had seen that on my screen at work I'd never be allowed anywhere near GUI code
 
5:38 PM
Hi folks, do someone could help me with a dom manipulation i'm trying to do with jQuery ? I'm cloning an element than I'm trying to remove some stuff in it and print it out, but it's removing the exact opposite of what i'm trying to remove... ( http://jsfiddle.net/jonathanlaf/74mborc7/3/ )

Thank you:)
 
how do I select the checkbox from a form with plain JS. document.forms[0].?
 
Hummmf ! Finaly found something and understood why it was the oposite -.-
 
document.forms[0].querySelector('input[type=checkbox]');
maybe
 
Well this gave me happiness img0.joyreactor.com/pics/post/…
 
How does this sound to you all.
 
5:45 PM
terrible
 
@KendallFrey -_-
App uses pouch db which replicates data on couchdb, the user can read-write their data, all data is soft deleted (purged later), the sensitive data is writeable only by server side code, basically read and non sensitive writes goto couch, while sensitive writes goto api server which relays them to couch after verifying.
 
My boss caught me looking at this gradient and now I have to meet with HR. Thanks a lot Aaron. — Sterling Archer 12 secs ago
 
Any AngularJS people on? I am having some trouble with using data-ng-src for a base encoding, but if its null having it point to default non-data (base64'ed) image url.
 
@Abhishrek why do you have an unverified write path?
 
@ssube its not completely unverified
it uses couchs inbuilt authentication, but its very primitive, so stuff like where one user have to put something in some other users database needs to go over server (which has server level provilages)
 
5:49 PM
Essentially, can I turn this into one statement?
<img class="sp-company-img" ng-click="csmvm.loginToCompany(company)" ng-if="company.Logo" data-ng-src="{{company.Logo}}" />
<img class="sp-company-img" ng-click="csmvm.loginToCompany(company)" ng-if="!company.Logo" src="http://someDefaultImage.png" />
 
Dear 8 & ⅔ out of 10 engineers, Just. Use. Postgresql. Your data isn't "big" and if you was, you wouldn't know what to do with it anyway.
 
@SomeKittens that won't work for base64 encoding will it?
 
ng-src="{{company.Logo || 'http://someDefaultImage.png'}}"
 
@Austin it will you need to allow base64
by allowing data:
 
If ES6 seems exciting and new, consider learning more languages. The world is much more interesting than ES6 and this stuff is not new.
 
5:52 PM
Gary >=(
 
If programming seems exciting, check a neurologist there is a real world !
 
@Abhishrek oh wow nice! Thanks!
@SomeKittens u2!
 
ugh, how did I ever like yellowcard?
 
http://www.commitstrip.com/en/2015/06/29/as-the-last-resort/
CommitStrip - Blog relating the daily life of web agencies developers
As the last resort
CommitStrip
1435600332
 
@JanDvorak I didn't use a loop, because you cannot drink infinite coffee after some time you will have a coffee overflow, like a stackoverflow.
 
5:53 PM
not in your code, though
 
Calm down @Feeds
 

« first day (1717 days earlier)      last day (3234 days later) »