« first day (1887 days earlier)      last day (3065 days later) » 

7:00 PM
@AwalGarg It's a contract, from that university, to make a website. Make a note of the interesting thing you learned, if it's actually good to tell people about.
 
Folks, I'm getting something strange. My framework ends the response, and the 500 error view is rendered, but Chrome keep's spinning as if it's loading. It finally stopped after 2 minutes. What else would cause Node to not end the response?
 
@ssube But it is not from that university. Someone from the university faculty hired me at their personal cost. Granted, the work was university related, but still, it was a faculty hiring me, not the university.
 
nevermind, it was a typo...
dur
 
@MadaraUchiha Hah, no one wanted to hire me when I got out of the Air Force. Basically it was a game of "No degree", "Not enough experience for this position", "Too much experience for this position". But I'm in a really shitty area for technology.
 
@AwalGarg then tell em that?
 
7:04 PM
@ssube But careers.so wants me to put who hired you. Writing out the name of that individual seems pretty silly, and writing out the univerity's name isn't valid.
 
@AwalGarg why does it seem silly?
It's a bit unusual, but not silly. You could say "Prof. Soandso, for Univ Blah"
 
@ssube Seriously? Does "Sean Sube hired me to debug his multithreaded nodejs app" look valid?
(I don't actually know, so that is a genuine question)
 
@AwalGarg yes? It's not super impressive, unless you did something cool, but yeah.
It's contract work, so each gig may be a small thing.
 
@ton.yeung Have what? A degree program? Yea, sure, if you have time for it.
@ton.yeung Not for civilians.
It's all military, since that's what they're paying them for.
That's contractor roles.
Oh, he's actually a government employee then.
The government...is stupid when it comes to hiring.
And your friend might be GS 15, since that's the highest I'm aware of.
 
> I was hired by an individual faculty at $university's $department, to design an internal website which dealt with accumulating large amounts of data and processing, involving a great deal of optimization work. I worked with the cutting edge SIMD APIs introduced with the nightly builds on Firefox's Spidermonkey JavaScript engine (and proposed for ES7).
@ssube ^ looks good?
 
7:19 PM
@AwalGarg not bad. The grammar could be tweaked, but in general, yeah.
 
@Codeman I added the freelance part, if you still care. Again, I do understand company limitations. Thanks for considering anyways :)
@ssube I will interpret "not bad" as "that is perfect" since it comes from you :P
if it came from florian, it would be "omg that is fucking awesome"
 
@AwalGarg I would name the person who you were in contact with: "I was hired by $professor in $university's $department to design an internal-facing website. The site was responsible for accumulating and processing large amounts of data, requiring in-depth optimization work. I spent time using the new SIMD APIs to accomplish this, etc."
 
a company in atlanta is offering 50k for a lead mobile dev position, I almost lol'd until I looked up the cost of living comparison
50k in atlanta == 125k in SF
 
yeah but you have to live in Atlanta
 
right
well, it's still USD :P
if I travel overseas it suddenly becomes a whole lot more
 
7:25 PM
@ssube you cannot be sure about star wars not being real
 
@ShotgunNinja which means your car will get smashed
and you'll probably get shot
 
and you'll definitely hate your life
 
I'll troll everybody by not owning a car
@ton.yeung yeah for sure i'd be stuck
 
I wonder how performant and well implemented it is right now. A month ago, spidermonkey was blazing fast and implemented most of the things I needed.
 
7:26 PM
@AwalGarg SIMD is a processor feature
like, hardware
 
@ssube but the API part still has to be done by the engine
 
like you should never actually be needing it in js land
technically
 
yeah I wrote a vectorized C++ program using SIMD a week or two ago
 
@AwalGarg unless they totally fucked up, it should just make a native call out
a now, it's not even a real thunk
@nick why not SSE?
 
@ssube typechecking and stuff. Also, the current spec does include coercing of things, so that is there as well.
 
crl
7:27 PM
<script>
// </script>
console.log(1);
</script>
 
ofc SSE
 
@AwalGarg you can prevent coercion
 
I live in Milwaukee. Car theft is probably the worst that happens unless you're on the North Side.
 
@ssube Yeah, but when I was working on it, I didn't think of it :P
 
or you're in a gang
 
7:28 PM
I was just.. "omg lets get nightly spidermonkey and hook it up to this amazing IPC thingy I built we are rocking on yoyoyoy"
 
if you write it correctly and set the correct optimization flags, you can view the assembly output and you'll see SSE instructions
 
With spidermonkey? I am pretty sure that's not true :P
 
clang
 
ah
 
I don't think any JS engine lets you see the asm :(
not in a good way
 
7:30 PM
You might see the stack machine code, but that's about it.
 
it would be very unreadable :P
 
mrale.ph guy has something to see what V8 compiles your code to, IIRC
doesn't V8 actually compile straight to machine code?
 
@AwalGarg not "straight" to machine code, it's super round-about and can change at any time
 
crl
why doesn't this work jsfiddle.net/crl/6a13gabd/3
let Type='Row'; // where Row is a component
ReactDOM.render(<div><Type/></div>, test);
I thought it should work
 
Strings aren't elements
 
crl
7:39 PM
yes but there's a trick for that, I don't remember hmm
 
@Zirak JSX magic -> capitalization === replacement
 
crl
it should yes but in the fiddle no..
 
if Row is a class, then let Type = Row; not 'Row'.
only use a string if you want a built-in element
 
crl
but I get the type from a string dynamically
 
let Type = 'div'; or let Type = Row;
 
crl
7:42 PM
ah I see, that thing doesn't work for Components
 
since Type is capitalized it will use that value, wether string or object reference.
!!define wether
 
@Luggage wether A castrated buck goat.
 
no.. that's now the word I wanted..
 
@crl Define a Map of string => component if you wish
 
but it's the word @Zirak wanted
 
7:43 PM
Nay, it's the word I deserved.
 
No one will ever know.
 
hehe
 
crl
@Zirak ah, yes
 
don't listen to the potato, just use eval
 
none of the above. he doesn't even to get an object from a string key. that was a mistake.
 
crl
7:45 PM
jsfiddle.net/crl/6a13gabd/4 sad but that, hehe eval
 
eval(all.the.things)
 
hi
 
Hi.
 
@Luggage meh, I can see why that'd one time in a bazillion that'd be okay.
 
@AwalGarg I would bullet point ALL THE THINGS
 
var chkfromDate = $(".endDate",$(this).prev()).val();
 
i have assigned one css class value in a variable using jquery
 
oh
 
7:48 PM
i want to get the value in alert
how can i do that
 
12
Q: Potential bug concerning kicking users that share a name

Sterling ArcherWe just had a user experience difficulties speaking in the JS room -- he has spoken before, I remember him. A user with the same name as him was kicked 3 days ago, and it seemed to affect this one's ability to chat. Here is our chat convo to get some more info out there. Is this a bug concerni...

 
:(
 
sigh
 
Hot meta post happened :O
 
resume protip: don't include Microsoft Office or anything you did in high school
 
7:48 PM
@Codeman wow wow, I'd never in my right mind, do that
 
sweet, it hink there is a hat for meta posts
 
The most intricate bit of code in my framework, to try and request the 505 page if a template file is not found:
if (!view || view instanceof Error) {
	response.writeHead(500);
	if ('/error/500' in http.routes) {
		const error = new Request('/error/500', { headers: request.headers });
		response.write(await error.get());
		return response.end();
	}
	return response.end(`Error 500 - ${http.STATUS_CODES[500]}`);
}
it was painful.
 
 alert("Alert 3: From date " + $(".startDate", this).val() + " should be greater than previous To date " + chkfromDate.val());
kindly correct me
 
@Codeman He's got mad poweropint skills, can both fade in and animate around
 
7:50 PM
when i did the console for chkfromDate i am getting the date
 
@Zirak lmao
 
@Zirak serious machine gun font skillz
 
crl
@AwalGarg I get 'Element' as a string and <comps['Element']/> doesn't work
 
@crl oh, then I don't care.
 
why chkfromDate.val() is not working i am getting an error
TypeError: chkfromDate.val is not a function
 
7:54 PM
then just let Type = comps['Element']; like you had..
if chkfromDate a plain DOM element or a jQuery wrapper?
if not in a jQuery wrapper, $(chkfromDate) it.
or use .value
 
Ok, maybe someone here can help me out on this...
This morning I was using some apple mouse and complaining how the scrolling was inverted.
My manager then said "No, all the other mouses are inverted". I briefly dismissed his remark as being utterly mad but I was just using CAD online which has "inverted" zoom, so now his remark came back to haunt me...
Is our mouse wheel the wrong way around?
 
@Jonathan mac's inverted scroll works when using the touchpad, then it matches phones
but feesl wrong when using a mouse wheel
 
@Codeman I still don't get what I have to bullet point. I separated out the thing into multiple coherent paragraphs anyways.
 
@rlemon You once linked me to some software which showed how it's debugging a page in FIrefox from chrome's devtools, do you remember what it was?
 
@Jonathan but yes, macs default to inverted scrolling compared to PCs.
 
7:57 PM
$(chkfromDate).val() i tried like this
Error: Syntax error, unrecognized expression: 02/01/2005

i am getting different error
 
You have the problem in reverse. Use Valence which lets you debug Chrome from Firefox's devtools. hides
 
Can that be used on Electron?
Get it? Valence? Electron..
 
Heh
 
I'm not entirely sure PC is the most rational way of scrolling. Is it the 'best' way, or is it just because we're used to it?
 
8:00 PM
Unfortunately, it is so easy to add a fake review on Glassdoroor. :(
Be careful, guys.
I flagged them and reported. It still goes through their loopholes somehow. This is the email they sent me this morning:
 
oh, remote debug. That's what valence uses
 
good memory
 
8:00 PM
@RahulDesai Lies on the internet? OH NO
The war on Christmas is ruining the reputability of internet reviews!
 
@Zirak that app is silly, btw. It is exactly the same thing as running chrome with the remote debugging port enabled, and inspecting some other page.
I guess you already realize that
 
ES8 should have ...= for setting a property on an object. (myObject ...= myProperty) // weirdest syntax ever.
 
it is the protocol which is interesting
 
@ndugger Object.merge(myObject, {myProperty})
 
@AwalGarg Quite. It's extra silly because Electron is chromium.
 
8:02 PM
don't get sassy with me
 
yup
 
So you run chromium to debug chromium from your chromium
 
Dat face
 
!!inur chromium
 
@KendallFrey yo dawg i herd u lik chromium so i put sum chromium in ur chromium so u can chromium while u chromium
 
crl
8:03 PM
!!can I eval?
 
@crl Frankly my dear, I don't give a dean
 
Author doesn't know shit about what chrome devtools are built upon, and decides to do something with it.
 
@ssube Object.assign() ?
 
yeah yeah
you kids and your ES9
 
Oh my god
 
8:04 PM
es10 should just be dots and dashes
 
@ssube excuse me I am not in the kids rally anymore kthnx
 
@ndugger that's already a language
 
bow before the dark lord
 
@AwalGarg I'll call you a grown up when you stop calling yourself a dark lord.
6
 
ES10 has code inference. It just knows what you want.
 
8:05 PM
Until then, you get to sit in a colorful plastic chair.
 
if I'm white, does that me me a light lord?
 
@ndugger do you glow?
 
@ssube damn xD
 
that depends on who you ask
 
@ndugger Paste King.
 
8:06 PM
@ssube Round 2, shared.awalgarg.tk (Round 3 is viewing its source)
 
@AwalGarg as an ignorant american, I can't tell the difference between that and the ISIS flag.
 
ISIS has a flag?
 
Of course.
 
What self respecting spy agency doesn't?
 
8:08 PM
Are we just ignoring that somebody went Will E. Coyote on a wall and made a car crash?
 
@SterlingArcher I call BS.
 
@Zirak that's not... no, no. that's just not, no
 
@ssube Someone doesn't know @SterlingArcher
 
kenneth.io/blog/2014/12/28/… ohhh boy, I was so much extra-polite back then. Right now I just want to tell that guy he is silly in his face XD
 
8:09 PM
@AwalGarg dude, FF dev tools are awful
 
Maybe that's the reason why they shut down ISIS in Archer season 5
 
@SterlingArcher you seen the interview on that?
 
@ssube the second paragraph
 
it totally is
 
I didn't know there was an interview -- sauce?
 
8:10 PM
@AwalGarg you were your parent's second paragraph
 
very funny explanation for Asynchronous functions be like... :)
175
Q: Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference

Fabrício MattéGiven the following examples, why is outerScopeVar undefined in all cases? var outerScopeVar; var img = document.createElement('img'); img.onload = function() { outerScopeVar = this.width; }; img.src = 'lolcat.png'; alert(outerScopeVar); var outerScopeVar; setTimeout(function() { ou...

 
!!urban second paragraph
 
@AwalGarg No definition found for second paragraph
 
@ssube ??
which reminds me, @Zirak since you are so much dying to shut down the bot, I implemented part of the functionality in a different way gist.github.com/awalGarg/31bdf9e28fc84c7bf295 :P
 
8:12 PM
feel lucky you witness a readme
 
@AwalGarg Cool
 
!!work or resume
 
@Trasiva work
 
!!nope
 
8:14 PM
just waiting for selinux to crash everything and remove my chrome profile, so next time I install the newer version of that script
 
huh, so an express app, getting data out of redis, can serve more than 2k reqs/sec on a single thread
which means I'm not bothering to optimize any of this
 
@ssube that's just sooo weak
amphp can do like 40k
 
@AwalGarg with getting data?
 
sure
 
orly
[citation needed]
 
8:16 PM
Hello world getting fetched from a db was benched at 102k IIRC
 
This, roughly, takes the request, goes to a connection pool, each connection goes to redis and gets a set, then gets each item from the set of keys, then picks out a few fields and returns.
 
I'll be installing Linux in a VM at the new job (can't use my mac). What's everyone's favorite distro for such a thing? terminal access is most important, but occassional desktop use might be nice.
 
@Luggage whatever your servers run
 
the servers are as400..
 
8:18 PM
find a new new job
 
hehe, my server is linux ubuntu that i'm brining
 
most of us run Fedora or CentOS here, cause our servers are RH
 
@ssube what amount is spent in getting data from redis?
 
(they are buying my sfotware from the company i contracted it with)
 
@Luggage did you ask this exact question a month ago, or am I losign my mind
 
8:19 PM
@AwalGarg not sure yet
 
@Cereal maybe..
 
@Cereal deja-vu yo
 
@Loktar second best reverse gif ever
 
@ssube Are you running the 64bit version of redis? My guess is that, or you benched wrong :P
 
I don't even know that I need linux. most of the tools I use run in windows. It's jsut something I might want to fool with.
 
8:19 PM
@Luggage I imagine you know how to linux at this point, so centos or debian, whichever matches the most other things.
centos is more stable, debian is more debian
 
yea, my default is debian/ubuntu since that's what i am used to
 
@AwalGarg yes
 
but this is a desktop install, so playing with somethign like arch might be nice.. i don't know.
 
c7 only has 64-bit packages
@Luggage you can change the WM pretty much anywhere
using a weird dist like arch or gentoo isn't worth it, IMO
 
8:21 PM
@ssube don't, unless you really need that large of a keyspace. How many million keys will you be storing?
 
1 message moved to Trash can
@user5674491 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@AwalGarg 25-35k/day
 
ok. debian unstable or ubuntu, i guess.
 
@ssube lol, that is meh for redis.
 
64-bit isn't going to be much slower, the hardware is all brand new
 
8:22 PM
32bit will give you better latency, faster access, and a lower memory footprint as well
 
dude, I have 8TB of free memory to play with
 
you can have all your porn IN RAM.
 
Hi, do you know why div test its not get like this:

 $('#test-content #test').each(function(){...	}


<div id="test-content">

  <div id="test" ></div>
</div>
 
@ssube well antirez (who made it) says there is something with the internals which makes accessing of things faster as well on 32bit
 
@user5674491 you've got a typo there in your selector
@AwalGarg I believe it, but a) it should be pretty minimal on this hardware and b) I'm not pushing redis anywhere near the limits
(like you already pointed out)
 
8:23 PM
@user5674491 Also, since IDs are unique, you really only need to use #test all by itself.
 
hmm, but 2k/sec is really low IMHO.
 
2k requests, round trip, on a single thread
 
@user5674491 with fixed typo, your code works. problem is elsewhere. jsfiddle.net/e0nayufn
 
unless #test is sometimes NOT inside of #test-content and you want to filter those times out..
 
is that in a container/VM?
 
8:25 PM
this isn't load balanced or anything, so it's actually one thread responding (there are two workers and one API server)
@AwalGarg yeah, centos 7.1 VM on my laptop
 
ah, well things ought to be different then
 
or so I have read. haven't actually tested myself about perf differences when in a VM/outside it.
 
@AwalGarg I'll bite. It's going on a server.
 
gl
 
8:28 PM
 
morning
 
@MadaraUchiha it doesn't refer to imaginary things at all
 
@SterlingArcher Not sure if D: or :D
 
crl
noseless
:ᗡ
 
There really needs to be a infomercial SAG awards
 
8:36 PM
@SterlingArcher I'd rather not be fucking a kiwi
 
a kiwi fruit at that
 
@SterlingArcher 100 gifs of terrible infomercial acting Dammit Archer, I have work to do!
 
crl
return <div>{d.children.map(i => {let T=components[i.type]; return <T foo bar/>})}</div> :( sucks
 
@crl step 1. Don't do that inline.
 
8:41 PM
You know, you don't have to use JSX for this...
 
createTypeElem(i) { const T = i.type; return <T foo bar />; }; otherMethod() { return <div> { d.children.map(createTypeElem) }</div>; }
 
JSX shouldn't add any burden. Have you looked at the react-boostrap code, @crl ? It does almost everything you are trying to do. It's a great example.
 
crl
ok thanks all, yes will re-look deeper in it
 
React.createElement('div', <props>, d.children.map(el => React.createElement(el.type))
 
crl
yes Awal, good also thanks
 
8:45 PM
1 message moved to Orphan GIFs
 
@ndugger no you!
 
@Shea better moved than flagged
 
It was a funny gif, but it was in the middle of an on-topic discussion
 
too late! back to off-topic.
 
@AwalGarg my server is slower because wifi :(
 
8:47 PM
lmao
 
okay.jpeg
 
@Luggage no, topic ends with my solution because my solution is best.
 
oops
since when does she do that?
 
@Shea just unonebox gifs after they repeat, kthnx
 
8:48 PM
kthxbye
 
kbai
 
esdiscuss.org/topic/propose-simpler-string-constant#content-8 intellectual randomness in esdiscuss, impressive
 
Jesus do not ever open "Ophan gifs"
crashed the shit out of chrome
 
crl
react-bootstrap is hardcore
 
@SterlingArcher open "Orphan gifs" for free laxative. Got it.
 
8:59 PM
o.o
 

« first day (1887 days earlier)      last day (3065 days later) »