« first day (1694 days earlier)      last day (3271 days later) » 

5:00 PM
how is that better?
 
@oldmud0 how will javascript open an UDP socket on the browser?
i.e. which code?
 
Should I use Infinity If I want a variable that is used in conditions like (myVar > value), to pass all those tests no matter the value?
 
@FlorianMargaine What do you mean by that? The code would be calling the ENet bindings directly to establish a UDP socket, i.e. client = new enet.Host(new enet.Address('localhost', 0), 128, 1, 256000, 256000, "client"); peer = client.connect(...)
 
@oldmud0 how is enet.Host written?
 
var enet = require('enet');
 
5:07 PM
no, wait
how is the enet.connect method written?
what's its code?
 
client.connect(serverAddr, channels, data, peerConnectCallback(err));
 
no, the code of the connect method
not how to call it
 
Ah, I see what you're getting at. Gimme a sec.
Took me a while to find it in the bindings: github.com/mnaamani/enet-npm/blob/master/src/…
Uses dgram to make the socket. Apparently chrome has its own? but otherwise it uses the one from the package itself.
 
@oldmud0 window.chrome.socket is only available in chrome extensions
 
5:23 PM
@oldmud0 my point is, there's no API to have UDP sockets in browsers
for http requests, there is XMLHttpRequest
there's nothing for UDP sockets
or just network sockets in general
 
So the best way would be to create an HTTP wrapper on the UDP?
(There's no way for me to take out the UDP part - it's required as part of the game protocol)
 
@oldmud0 I have no idea how that makes sense in any universe
 
Looking for examples of terrible recruiter emails. Ping me if you've got one.
4
oh snap, did I miss the talk?
 
@FlorianMargaine @tereško Fixed it.
 
@SomeKittens
 
5:30 PM
@KendallFrey paste me
 
You've made the classic logical error
Pinging you if I have one does not imply having one if I ping you.
...and I wonder why I have no friends.
 
WebRTC
 
5:44 PM
(@SomeKittens still didn't miss it ^)
Can somebody get there and tell me if the resolution's ok and shit?
 
can't be both
 
20 mins ago, by Kendall Frey
...and I wonder why I have no friends.
 
right, so how do I see it
 
Go to event, hit "trailer" I think
I decreased resolution by a lot, increased font
 
the big play button in the middle?
 
5:54 PM
Hopefully
 
all I get is your avatar
 
huh
 
how should I write my new nodejs modules so that I can use bluebird PromisifyAll
 
Welp the first minute's going to be you telling me to reticulate splines
 
I can't get it to play
 
5:57 PM
did you get my ping?
 
Just hit play, I'll see if I can do something about it
You see my giant blurry avatar, right?
 
yurp
 
right
 
Oh well. Just hang there, I'll be on in a minute.
ok, starting
 
hurrrryyyyy
 
6:04 PM
\o/
I'm gonna watch, not because I give a single microfuck, but because I just like hearing you talk.
 
Did I come on time?
@argentum47 o/
 
yes
 
I can only see some octopus like creature :/ @Zirak
 
DO A FLIP
 
F5
 
6:08 PM
 
I think you need to broadcast yourself reading bash.org more often.
 
ahh ok
 
I may have fried something
 
lol
 
I can see it yay!
 
6:10 PM
@Zirak say "Hey SomeKitten's wife, this is a live stream"
 
Zirak: now you'll work or I'll be sad hehehehe
 
@Zirak read this one bash.org/?3749
 
@rlemon D:
 
@rlemon aah my ears
 
hey zsh looks pretty.
 
6:16 PM
ONE POINT TWENTY ONE JIGGABYTES
user: 'whoopsie'
 
@Zirak can we ask questions as well? (how?)
 
@AwalGarg Q&A section (check the icon grid menu)
 
@KendallFrey I can't see it :( I am watching it on youtube, does it matter?
 
probably
why not on G+
 
It doesn't load. Just shows me his pic.
wait
 
6:25 PM
dammit, can't stop reading
 
ahh I see now.
it is embedding the same link :/
@KendallFrey hahahahaha
 
bash.org/?348697 ahahahahaha
I need to try zsh, it seems
 
6:57 PM
Welp that was terrible
 
dang @Zirak XD
it was fun at least
> you can go over it, have sex with it and all that stuff
 
lol good job @Zirak xD
was fun, TBH
 
@AwalGarg That's fish
Posted a link to the stuff done gist on the event
Hopefully it'll work for you ~_~
 
@AwalGarg I figured the error
 
@Zirak lol awesome
@argentum47 great! did you finally ditch Q? :P
 
7:11 PM
 
@Zirak can cap make a websocket connection from that cheerio thing or does it fallback to polling?
 
@akaRash What cheerio thing?
 
on which you run it with node
Or is it night~something?
 
night-bitch ? from kickass 2
 
nightmare nightmare
 
7:14 PM
oh, that shit's old. Currently it's running on top of phantom, but the not-as-lame version does authentication itself. IIRC I think I got websockets to work, needed to specify cookies and some headers. Maybe not.
 
@Zirak what headers?
 
I don't remember
 
:(
chat is hopeless
ok @Zirak listen to this:
 
Do I have to
 
@Zirak did you promisify phantoms those nested callback ?
 
7:16 PM
I'd rather return to bed and weep
@argentum47 I didn't promisify anything about phantom
 
@Zirak well, tl;dr: basically when I try to connect to the long websocket url I get from ws-auth and the page is not a chat.so url, it doesn't let me go through :(
 
That's a real bitch
 
I think they detect the origin header
and cancel the socket connection if it doesn't match what they want
how to solve?
 
I dunno, figure it out
 
ok, go and weep now @Zirak
 
7:20 PM
!!afk weeping
 
lol
why would he weep
 
@argentum47 V8 source trolled him
 
how
 
god knows
 
7:23 PM
But what I did figure out is that I can hijack the headers from the webRequest API and use a little hack to get this done.
 
I can't figure out why bluebird's Promise.promosifyAll solves my problems.. too bad I couldn't figure it on my own
 
"promosify" your bengalism is leaking XD </racist>
chrome.webRequest.onBeforeSendHeaders // mind blown
 
haha lol
I need to buy a bigger backlit keyboard
 
IT IS HAPPENING!!!
 
AHAHAHAHAHAHA TIS WORKING
 
@akaRash that calls for shots.. screenshots
 
^ Hi, any suggestions ?
 
@argentum47 soon, wait for it.
I don't want to share a devtools screeny with the cookies and stuff and I am too full to edit stuff out.
 
thats fine.. I meow
 
7:41 PM
I wonder how @Zirak figures out whether I can figure it out or not.
As in mostly when he says go figure out... I go figure out :/
 
I think he knows what is figurable .. like my ceo
 
@akaRash Math.random > 1.0 ? 'Awal can' : 'Awal can not';
 
...I see what you did there.
@SomeKittens you are terrible at conditions btw. It should be 'Awal can' + (Math.random() > 1 ? '' : ' not');
 
@akaRash Operator precedence
 
Also, exceedingly clever code usually gets one in trouble
It's better to be clear than concise
 
7:45 PM
Concise is usually good
 
what is clear to you can be unclear to me. what is concise to anyone is concise to anyone else under a realistic limit of agreement.
 
@copy Yeah, don't be Java
 
Linux at its best in @Zirak's talk
 
8:08 PM
Aww, Subtle Patterns is down
 
i'm back
 
 
1 hour later…
9:24 PM
@SomeKittens They're on GitHub
 
Yup
just went with a white background
too much scope creep in this project already
 
Now that's very subtle ;D
 
function clearDOM () {
	document.body.textContent = '';
	document.head.innerHTML = '';
	// that is how you finish a fucking document
}
My userscripts are great.
Why can script tags take an src attribute and forget about what is inside the tags but style tags can't?
 
One whole day to document my library
sad face
 
9:40 PM
I'm using jQuery .hover() and it leaves it with the switched image.
 
@KendallFrey Amazing
 
@KendallFrey So there's this exoplanet that has an orbit whose axis rotates(?). Is it possible for a satellite to "go all the way around", so to say?
 
@Shmiddty I, uh... er... 42?
 
I thought you knew about this stuff. haha
 
about questions that don't make sense?
 
9:50 PM
"I don't understand what you mean"
 
oh, that
 
Hmm.
 
you mean in the YZ plane? or something else?
 
I'm not sure of the terminology
there's an exoplanet whose orbit is not restricted to a single plane
 
Is it affected by another body?
 
9:53 PM
probably
 
N-body orbits are hell
 
What I want to know is if an orbit can, essentially, touch every point on a sphere
(and remain stable)
I think it should be possible, right?
 
N-body orbits are never stable for N>2
 
ah
 
if (~(i = this.options.indexOf(optObj))) {
this is badass ^
 
9:55 PM
no, it's not
 
Don't quote me on that
 
@FlorianMargaine Is it bad javascript?
 
lol
 
@FlorianMargaine Ok, let's see..
var i = this.options.indexOf(optObj);

if (~i) {
better?
 
9:56 PM
no way
 
better, but still not good
 
Because ~i only returns false for -1, so I don't see the reason to do !== -1
Other than to be more readable
 
readability
 
Yeah right ok
 
If your code is explicitly designed to never be maintained, go for it
 
9:57 PM
!!> if ('foo'.indexOf('s')+1) { console.log('yo mama so fat'); }
 
@akaRash "undefined"
 
dum dum
 
@KendallFrey That's stupid, ~i is not maintainable? The only reason not to use it is readability.
		var i = this.options.indexOf(optObj);

		if (i !== -1) {
 
If you can't read code you can't maintain it well
 
I can, I wrote it.
 
9:59 PM
twss
 
Are you maintaining it now, or will you be maintaining it in the future?
 
I know ~i is the same that i !== -1
 
Array.prototype.contains = Array.prototype.contains || function(ref){return this.indexOf(ref) !== -1;}
 
how bout you shim es7 .include and use it instead
 
It's still readable for me, but I will stick with i !== -1 because I want feedback when I put this on github.
 
10:01 PM
you make your code readable, future proof, etc.
 
And it's more readable for other people.
 
s/contains/includes/
 
I'm writing a CLI module.
 
another one?
 
No, still the same I was writing yesterday.
 
10:02 PM
@argentum47 :(
 
I'm documenting / reviewing the code
 
aren't you writing it since the past decade or something?
 
No, since yesterday.
 
if you say so...
 
I started writing yesterday, but I had previously been searching for a cool structural design.
 
10:08 PM
!!> "use es6"; let bananas = "delicious";
 
@Shmiddty "SyntaxError: let is a reserved identifier"
 
Yo mama is a reserved identifier, because you're a robot.
 
her mama is a yellow floating face, actually.
 
@akaRash Your momma so fat she is almost as fat as me send help :(
 
cats are not allowed to say yo mama jokes
shut up and go stand in the corner
 
10:13 PM
have you guys used mithril
 
copy of angular thingy?
 
I don't think so
it's a tiny mvc framekwork
with virtual dom
 
I read about it on hackernews I think.
 
that weighs 12kb min+gzip
 
some example of it making a spreadsheet in less than 30loc
 
10:14 PM
and is much more performant than react
 
why is it not as popular as react, then? (just curious, not hating)
 
converting something I made yesterday with react so we'll see
@akaRash less hype? it's made by basically one guy
 
@RyanKinal Would you be interested in trying to play some EDH via google hangouts?
 
which is good in some respects, bad in others
it does have ~4k stars on GH
 
github.com/lhorie/mithril.js this, yes. it says 5kb gzipped
 
10:17 PM
the site says 12
 
@Shmiddty Tabletop simulator, man
 
@SomeKittens I already have a deck though, and I just want to play!
I don't have a playgroup locally :/
 
DONE
 
@Catgocat What was your time?
 
10:30 PM
@Shmiddty Wait, what?
 
@Catgocat from start to finish. your time
 
Like 10 hours?
 
@Shmiddty what does your nick mean? Is it your real name?
 
I'm going to make an example code here, you guys let me know what you think
 
@akaRash It's a derivative of the name of my first WoW toon
 
10:32 PM
"WoW"?
 
World of Warcraft
 
ok
 
ok
 
OK!!11
 
OK!1ONE!1
@Mosho you should change your name to @somedoge
 
10:35 PM
did you seriously not know what WoW is just now
 
or manydoge
 
dogelegion
 
why yes?
 
noob
 
Is it something important to know?
 
10:35 PM
it's just something that you know, you know?
 
I mean, I have heard about "World of Warcraft" but not the acronym.
 
no, but it's something important to not be ignorant of
 
What is important to know?
 
what is drugs
 
> I hope you're doing well.

I'm reading terrible recruiter emails, so things could be better.

> I ran across your profile and thought you would be a great individual to reach out to.

You "ran across it"? I should tell that thing to stop hanging out in recruiter bars.

> My company is continuing the expansion of its headquarters here in San Mateo, CA. We are searching for a full-time Senior Software Engineer/Architect that is interested in working with the best.

If my two years of experience qualifies me to be a "Senior Software Engineer/Architect" there, I'd hesitate to see what you of
 
10:37 PM
I won't settle for anything less than QCTO
 
@SomeKittens why so harsh?
 
@SomeKittens why so soft?
 
@SomeKittens Why so humorous?
 
@Mosho that's the theme of the site I'm throwing together
(so, is it good or not)
 
const Interface = require('./cli');

// Create CLInterface
var cli = new Interface({ version: '1.0.0', outfn: console.log });

cli
	.command('add', {
		params: '[Number] [Number]',
		description: 'Adds two numbers'
	})
	.option('t', 'third', '[number3]', 'Adds a third number')
	.callBack(function(opts, n1, n2) {
		var n3  = opts.get('third', Number),
			sum = Number(n1) + Number(n2);

		if (n3) sum += n3;

		this.output("Result: " + sum);
	})


cli.parse('add -t=4 1 2');

// Result: 7
 
10:39 PM
is what good
 
What you guys think? @SomeKittens @KendallFrey
 
@SomeKittens better than "fair"
 
@Mosho The snippet I pasted. Funny?
 
@Catgocat s/\t/ /
 
@Catgocat I think you just pinged me about something I don't care about :P
 
10:40 PM
@KendallFrey sorry
 
@SomeKittens nope :D
 
And you didn't ping when I actually care. </3
 
@akaRash
 
@Mosho ah. Drat.
 
it is too late. good bye.
RIP
 
10:41 PM
no wait
* dies inside *
 
Anything I can do? Is it the theme (haha recruiters) or my responses specifically?
 
@SomeKittens it is a little pessimistic. How are things in your world?
 
@SomeKittens Well, some really top-notch responses would make it "good" but not "great".
 
@SomeKittens so that snippet isn't based on reality?
 
@Shmiddty Ah, well.
 
10:42 PM
Can't say whether a format change would be good
 
@Shmiddty Things are pretty good out here.
@KendallFrey Better source material? That one was picked at random.
 
@SomeKittens Looks good in my opinion
 
@akaRash The quoted sections are real
 
@SomeKittens Ah. So you're not reading the emails looking for work?
 
@Shmiddty Nope, looking for comedic stuff
 
10:43 PM
I see
 
@akaRash ^
 
@SomeKittens I'd say, if you get good enough material, you can just publish it as-is.
 
someone bin that please? ^
 
XD
 
10:44 PM
@KendallFrey ok, so let them run themselves into the ground.
 
1 message moved to Trash can
 
@Catgocat what exactly do we have to review? code or interface?
 
> The only reason coders' computers work better than non-coders' computers is coders know computers are schizophrenic little children with auto-immune diseases and we don't beat them when they're bad.
 
@akaRash interface
 
How was Zirak's talk?
 
10:45 PM
@BenjaminGruenbaum zsh-ish
 
@copy I've found a niche!
 
@Catgocat it's ok. Consider accepting an options parameter with all the info in addition. Calling a method to provide a single piece of info each time (setter injection~ish) is generally not the best idea.
@BenjaminGruenbaum you missed all the fun :(
 
@BenjaminGruenbaum He didn't seem impressed
 
@BenjaminGruenbaum Some technical problems
 
@akaRash The methods are chainable
 
10:46 PM
I just let it play in the background so I could hear him talk
 
@akaRash who the f are you?
oh wait
 
I am florian's dad.
 
@FlorianMargaine your wish is my command
 
@Catgocat same deal
 
10:48 PM
@akaRash ^
 
@BenjaminGruenbaum that's what I said, but more polite
I should work on that
 
1 message moved to Trash can
 
@copy ?
 
@Catgocat ok cool
 
Use hastebin.com
 
10:49 PM
@copy do you know how apt-pinning works?
 
@FlorianMargaine Nope
 
@Catgocat you think this is some kind of programming chat?
4
 
damn. Ok.
 
@FlorianMargaine Is it really like that everywhere?
 
night night :)
 
10:49 PM
(I mean, I have found it to be true in my experience)
 
@Shmiddty same.
 
@FlorianMargaine hey programming doesn't suck. It is awesome and I love it.
 
?
 

« first day (1694 days earlier)      last day (3271 days later) »