« first day (1320 days earlier)      last day (3622 days later) » 

user1596138
2:00 PM
Aside from that I have this per-command solution gist.github.com/Jhawins/9743785
 
howdy people
 
If there's some interest in my element-to-element thing drawing, I'll make it an independant micro-lib
 
I would love to see how you did it
for interests sake
svg or canvas?
I imagine svg?
 
svg, yes
and some nice things to handle scrolling
 
hulo geezers. has anyone looked at win.js?
 
2:05 PM
@KipDeeds 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.
 
it's also possible to have more than one on screen
 
@rlemon hows life, the universe and everything?
 
7
exactly 7
no remainder
 
@rlemon Impossible
 
added a single button to my nav and now I have to re-do the entire way my layouts render :/
 
2:08 PM
@rlemon 7.
 
user1596138
@TonyCronin Bad idea
 
user1596138
@RUJordan around?
 
@Jhawins thanks. I kinda knew, just wanted an experts opinion.
 
Good morning
 
@Jhawins working with a .net firm at the moment. they are hard for any MS technology.
 
2:09 PM
@Magikaas 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.
 
Anybody here have experience with the http-proxy NPM package or grunt-connect-proxy
 
@Martin http-proxy, jup
 
woo, font rendering was updated in Chrome/Chromium on Windows
:D
it's no longer shitty
 
@TonyCronin suggest Qt just to be a bitch :P
> you know, we could have a shitload of money if we did everything in Qt and forgot .net
 
@rlemon. LOL. It's called a mortgage, don;t get one.
 
2:12 PM
been there, done that, got the tshirt.
trick is good down payment and low monthly cost
 
@RalphWiggum there were a lot of changes recently. They also fixed bugs regarding the loading/caching of fonts (impacting also linux and mac)
 
@Martin I have also used http-proxy
 
@rlemon. Good advise. 5 years too late :D
 
Nevermind actually I just noticed the problem and fixed it
 
@rlemon @Jhawins. I know you guys say raw js, better learning, but what MV['C','VM','W'] frameworks are you using?
 
2:15 PM
uhh. does express count?
otherwise none.
 
angular?
 
thanks monsieur lemon.
@RoelvanUden I'm pushing angular for this project.
 
Good
Has anyone used Thorax?
 
@martin looked at it.
 
I too prefer Angular, usually with Express for API/auth/etc. It's naice. :-)
 
2:17 PM
@TonyCronin What's it like
 
@martin, was burnt badly by bad documentation on Yii.
 
posted on May 28, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} New exclusive comic at The Nib!

 
@TonyCronin Fair enough.. bad docs is a dealbreaker for me
 
@martin now the documentation is the first thing I look at
 
Then again Angular's docs aren't good either
 
2:18 PM
ahh.
but then there's egghead io
 
True
There's a lot more information about angular than for Thorax
 
backbone is a beautiful thing, ashkenas is a bit of a wizard IMHO
 
Honestly I never used it
Idk why
It looks awesome
 
i tried to get into backbone, but I couldn't
 
but it requires a look of boiler plate, a project like marionette - built on backbone, reduces boilerplate, but increases dependencies
 
2:20 PM
I don't think it is a bad library, so maybe it's just me
 
Thanks for showing me Marionette
I think I've seen it before but I forgot all about it
 
I've been around the block here, I keep coming back to Angular.js
 
I'm trying to learn it now
 
@martin happy to help
 
haven't tried angular
It seems everyone's tried it at least once. I should really give it a try at least
 
2:22 PM
@Jhawins so if you get this gig. fuck that "are you still there" popup is annoying as shit
pass on the word
 
egghead.io is a good companion, along with a a good book.
for angular.js
 
Egghead.io is nice yeah
 
@TonyCronin Cool, I'll take a look
 
1 min ago, by Neil
haven't tried angular
18 secs ago, by Neil
haven't tried angular
 
@martin @neil disclaimer: I'm not on commission
 
2:23 PM
I THINK WE GOT IT
 
Afterall, my knowledge of Angular is my company's knowledge of Angular ;)
 
That shit annoys me
What do I do with that shit
 
@FlorianMargaine sorry
 
@TonyCronin I was talking to @Neil :)
 
@FlorianMargaine Sorry, it does that sometimes when the message fails to send
 
2:24 PM
@Neil ah, my bad
 
@FlorianMargaine did you skip lunch ;)
 
had a pretty good lunch actually
 
And apparently it does send
 
He's French. The French are always angry.
something about not knowing who is buying the croissants
 
Always.
 
2:25 PM
@Jhawins you dialed?
Mornin fellas
 
@Martin Did you put your controller in a separate file?
 
@FlorianMargaine what part of belle francé?
 
Grenoble
 
@RalphWiggum yeah
 
@Martin ooh, hm. That usually happens to me when I'm testing something out in the same file
 
2:26 PM
I can't remember what I did that started causing that error >_>
 
@Martin Have you tried hitting your computer?
 
@FlorianMargaine supérb. we go religiously to department 64 every year.
 
Grenoble, The Chernobyl of France?
2
 
@RalphWiggum Yeah obviously
 
had to look up where it was :P
@Loktar why?
 
2:28 PM
they rhyme!
ish..
 
very ish...
 
Gre-noble Chair-Noble
how I pronounce both :P
 
@Loktar lay off grenoble. it's beautiful.
 
oh
yeah, that's now how you pronounce tchernobyl at all :D
well, in France.
@TonyCronin not really
 
anyone anygood at SQL, could do with a hand (i realise this is JS room)
 
2:29 PM
Oh got it I commented out ngMockE2E but not the $httpBackend injections
 
@TonyCronin I hate france and @FlorianMargaine so I always say mean shit to him
stay out of my business
 
I hate you too, it's ok
 
lol
kidding of course
 
@Loktar ooh sorry
 
2:29 PM
He's not ;)
 
i have a table and need to count how many occourances of each unique value there are....
 
@TonyCronin sorry, but it's "superbe"
 
@FlorianMargaine I need more wine. I speak better on 3+ glasses.
:P
 
s/speak/think I speak/
:P
 
2:30 PM
@DrogoNevets select count group by? ;)
 
TIL that some people don't have wine ready just in case. Foreigners are strange.
 
I drink therefore I am
 
Speaking of drunk speaking @rlemon I went to do laundry last night and I fell asleep lol sorry
@dystroy I have emergency tequila at home
 
@dystroy yeah... don't come to my house :>
 
any way geezers, better get back to paying the mortgage.
@FlorianMargaine Allez Allez C'est maintenant.
 
2:33 PM
@RoelvanUden yea i just figured it out :) but thanks!
 
@RUJordan I made the mistake of getting caught up reading the troll posts and forgot to eat dinner
so I may have been drunker than 5 beers would normally have gotten me
 
@rlemon sounds like he won then xD
 
ohh no no
read the comments
I fully enjoyed the evening :)
 
link?
 
2:36 PM
> Julia is netflix
wat
just wow
psychotic
 
Anyone know how to get Browserify to map errors to the unbundled files?
It used to work for me, but I think they removed the feature from browserify...
 
Pfff.. somebody upvoted that answer...
 
@dystroy why is it POB?
 
Because it's a matter of style
 
2:46 PM
if it's objectively a matter of style, the style is subjective, but that it's a matter of style isn't. The question doesn't ask whether to do that, but rather why some people do.
g2g, sorry.
 
Heh another one of my meta questions made the bulletin board
 
What's a table cell ? Do I miss something in stackoverflow.com/questions/23914897/… ?
 
Robert LemonMay 27, 2014 at 7:31 PM
Ha! jokes on you! my teeth already are out while I sleep. Dentures bitch!
#win
hahaha
 
Hello
 
3:02 PM
@the star freak. stop
3
 
HAMMERTIME!
 
tool
 
there should be a way to upvote a comment without starring... I agree with rlemon there should not be all those stars
2
 
someone is just trolling right now.
 
@ThiefMaster ban pls ^
 
3:03 PM
@FlorianMargaine your comment is magical :)
 
I need to write a userscript to one click unstar
 
cleaned up
 
they eventually run out of stars
I'm curious if us 'removing' them allows said person to star more
and I suspect whoever it is just upvoted 5 of my questions
now they are undoing them :)
ha!
SO is strange sometimes
 
@dystroy a single field in a single row
 
A single field of 500mb ? That would be a RTFM question...
 
3:14 PM
someone was being funny? 5 questions upvoted. 3 reversed. 3 different ones upvoted? all reversed in a matter of minutes.
they are clearly in this chat room. every time I mention it they go do something else
so @random user, what is the end game?
 
note to strange random user, you should stop annoy rlemon and upvote somebody's else... for example the author of the present comment...
 
@ThiefMaster will the system automatically trigger on them because of this random voting?
I'm not even sure they are reversing them
SO probably is because the votes are so close together in time
 
@dystroy You'd expect that 130k would be enough :P
 
Testing: I will upvote you three times in quick succession - see if they are reversed?
 
I see no reputation change for you today. I don't know if it's immediate for other viewers.
@rlemon this sounds dangerous...
 
3:20 PM
@dystroy because it is being reversed within seconds / minutes of happening.
@dystroy that is why I made it known :P I now have 'documentation'
 
ok, but reverse them yourself very fast if it doesn't automatically
let's not let other people think we're an upvote ring
I see 3 upvotes for me
 
haha no worries
I'll give it a minute or two
but looks like my theory was wrong :P
 
still not gone
still there
I'm full of rep !
and gone. Is that you ?
 
I reversed them myself.
hrm.
 
ok. I feel poor now
 
3:23 PM
ohh well. serial voting would have been reversed over night anyway
@random user : have fun
 
hum... there were upvotes fast reversed just right now...
and again
and again
Maybe it's a site wide bug ? No one else experiences that ?
 
no whoever it is is probably targeting you now :P
 
CSS/JS question : Imagine you have an element. It may be experiencing a transition (on its background) or not. You have no info. You just want to immediately make the background go to its final state. Is there an easy way or do you need to read the stylesheet ?
@rlemon that's one for you I think, you're the css wizard here I guess
 
I don't think it is possible.
I would be more tempted to use a lib like GSAP in that case
more control + faster than CSS in most cases
 
Parse the stylesheet? Don't you have something to do on your weekends?
 
3:28 PM
well I already wrote a stylesheet "parser" ish dealio
 
@Neil I mean using the parsing done by the browser, sorry
 
18
A: How to get a style attribute from a css class by javascript/jquery?

rlemonI wrote a small function that traverses the stylesheets on the document looking for the matched selector, then style. There is one caveat, this will only work for style sheets defined with a style tag, or external sheets from the same domain. If the sheet is known you can pass it in and save y...

 
@OmkarChoudhury 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.
 
@dystroy look at this: greensock.com/gsap-js
easy to use, and honestly out performs CSS transitions in some of the basic demos I've seen
and it is small footprint
 
3:31 PM
@CapricaSix Thanks a lot.
 
I might have a look at gsap.js in the future
@RUJordan those random question upvotes are very painful
It's just like if any stupid useless question should be upvoted if it's written by somebody with low rep...
 
I presume you don't have any information about it then
You'd think there'd be a nice way to know if there were currently a transition
I suppose you could do setTimeout and compare the value relative to a previous one
Though it's ugly as sin
 
@Neil I need to do it instantly
(no : one ms isn't acceptable)
 
@dystroy care to enlighten me on something
!!> [parseInt(parseFloat("14.2") * 10, 10), parseInt(parseFloat("14.2") / 0.1, 10)]
 
@rlemon [142,141]
 
3:38 PM
how are they not the same?
* 10 === / 0.1 no?
 
@andQlimax 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.
 
@rlemon because IEEE754
!!> 14.2 / 0.1
 
@dystroy 141.99999999999997
 
@dystroy I don't think there is a generic way of doing it, but I suppose you could check for the event that causes the animation
 
@rlemon another one :
!!> 2.3 - 1.3
 
3:40 PM
@dystroy 0.9999999999999998
 
fml
that is stupid
 
@rlemon that is floating point arithmetic
 
I predict ES12 will use decimal instead of floating point for numbers :)
 
I would expect parseInt( n / 0.1, 10); to always equal parseInt( n * 10, 10);
threw me for a loop
 
@dystroy not likely
 
3:42 PM
fuckin IEEE
 
@rlemon that IEEE standard actually does describe a decimal system
 
Would be cool though "use integer"
 
Why do people always insist on using regex for stuff?
Just answered a "parse url with regex" question :/
 
@JanDvorak seems logical to trade a lot more in memory and cpu for better arithmetic when it will be 1000 times cheaper
 
@BenjaminGruenbaum more compact?
 
3:43 PM
and if you weren't cursing IEEE 7.54, you'd be cursing fixed decimals that don't go big enough -- or something.

There is always a reason to bitch in computers.
 
no this is a legit reason
 
@BenjaminGruenbaum it's often very efficient
 
@dystroy v8 already optimizes most arithmetic to integer operations
 
unexpected (non transparent) behavior is never cool
 
@dystroy what do you suggest - fixed decimal precision?
 
3:44 PM
@rlemon Would you expect n / 3 to always equal n * (1 / 3)?
 
@copy only if you have 32 bits integers in all spots of your calculation, no ?
@JanDvorak mixed with symbolic
 
@dystroy Yeah
 
@atom2ueki 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.
 
@dystroy or you could go the lisp way - rational arithmetic with decay to float for irrationals
 
but I'm not designing ES12, just making some cheap prediction because I won't be proven false before you forget the stupid things I said
 
3:46 PM
@dystroy I may record your predictions
 
@JanDvorak joke on you : I drink too much, I'll be dead before ES12
 
ohh fml
I used / 0.1 over * 10 everywhere :/
 
human lifetime is an obstacle, I admit
 
!!afk bug fixing
 
lol, answering with capped is so much fun.
 
3:47 PM
@dystroy Jokes on, you'll be dead
 
@FlorianMargaine I can't see who's starring things :/
 
@rlemon but why ? I sometimes did the reverse because * was faster than / but why using /0.1 ?
 
@ThiefMaster can we make a feature request?
 
sure, good idea
 
3:47 PM
@dystroy idk. makes more sense to me?
 
i think this could even be public information
or at least room-owner-visible
 
@rlemon storing 1/10 in a binary fraction is just like storing 1/3 in a decimal fraction. You can't you have to round it.
 
anyone ever faced a problem on document.ready function when running via grunt server?it's not running that function when grunt run it..but working in normal server
 
@rlemon ok. Sometimes /0.1 may reveal your intent better... But it is slower in V8 for different reason it was slower back in the old times
 
@ThiefMaster what about voting stuff. if a user is quick voting up and then reversing a bunch of questions does the system pick that up?
 
3:49 PM
@dystroy rlemon is afk: bug fixing
 
@dystroy well intent is that I'm communicating over a protocol that requires integers
 
@ThiefMaster damn, you suck
 
so coming in I scale down, going out I scale up
 
how fast are modern CPUs in floating point division, actually?
 
Slow
 
3:50 PM
one bit of mantissa per tick kind of slow?
 
@ThiefMaster I don't like room owner visible thing, I like anonymous voting. Definitely mod visible though.
 
same as ben
 
@JanDvorak you mean compared to integer math, or in flops?
 
Our special rights should be limited to what's necessary for room preservation
 
@KendallFrey compared to the CPU frequency
 
and to floating point multiplication
 
@copy thanks. Will check.
@dystroy You can do that in one tick (if your ticks are slow enough)
 
It seems it might still make sense to do the optimizations I made when young... sometimes...
 
I do know that floating-point comparison is as fast as integer comparison
 
but admittedly it's been a very long time I hadn't made a 3D engine...
 
3:54 PM
150 ticks to do multiplication???
 
In 1980
Or so
 
Who is this false guy btw? Strangely, I've never seen him before (or I don't remember), has over 2K +1s in JS:
false ♦, British Columbia, Canada
83.3k 14 127 177
 
minitech
 
Namechange? Or did we just not run into each other very much before?
Ah, didn't know that.
 
what copy said
 
3:55 PM
oh, 2 ticks in AMD K6. Makes sense, thanks.
 
How can I check that?
 
@copy why ? I liked the minitech name ? And no picture ?
 
I always just look in the chat transcript
 
To do a floating-point multiplication, you just need to xor the sign, multiply the mantissa, and add the exponent. I think
 
google when "false" said "rlemon" in this room
go a page back. see minitech
 
3:57 PM
hmm... 24 ticks to do long double division? That's ~2.5 bits per tick. How?
 
not even a page back
 
division would be xor the sign, subtract the exponent, and do integer division I think
Maybe integer division is slow
 
Integer division is also slow
 
plus some shenanigans around denormals and other special cases
 
@dystroy No idea
 
3:59 PM
but how do you integer divide 64 bits in 24 ticks?
 
@ThiefMaster minitech -> false : another drama ?
 
I know you can do integer multiplication in O(n^2) space and O(1) time
 
@KendallFrey link?
 
I don't know if you can do the same for division
 
@dystroy maybe just wanted a name change?
 
3:59 PM
oh, multiplication
 
@JanDvorak Just my head
 
@rlemon no picture, no mention of the old name
 

« first day (1320 days earlier)      last day (3622 days later) »