« first day (1814 days earlier)      last day (3117 days later) » 

1:25 AM
would somebody mind reviewing a presentation for me ?
 
1:36 AM
Only if you didnt mind posting the presentation
 
@copy can't post in public chat :-x
 
1:53 AM
actually nvm xD i am too tired now I need to goto bed. Will post the video instead :D
 
@phenomnomnominal Yes. Considerably.
 
 
3 hours later…
5:13 AM
Finally done with my build, can pull it from the basement into my room
> 2xDiamond 3DFX voodoo 2's sli
ATI Rage 128 pro, 32mb
384 mb ram (PC133)
Pentium 2 450mhz
Sound Blaster Audigy
dem specs
best PC of 1998
 
384mb of RAM?
That's too much! What do you need it for?
 
haha
yeah I decided to max it out
I found a sweet PC place here, dude sold me a ton of stuff for the price of scrap
the PC itself was $35, and the ram was like $4 for 10 sticks of 128mb
 
Hah, nice!
Got to go, talk's starting
 
see ya
 
(At PyCon India)
 
5:15 AM
ah nice
 
stackoverflow.com/q/32930262/2476755 (and delete the NAA posted by the OP)
 
lied on the specs, Diamond Viper V770 ATX WS 32MB
I pulled out the ati rage
 
5:58 AM
 
@Retsam thats fucking cool
 
I saw that! So badass
 
6:26 AM
anyone one still up and want to chat?
 
7:08 AM
morning, happy sunday
 
@asolar a/s/l?
 
@Zirak i was going to do exactly that.
 
@ivarni echo '127.0.0.1 twitter.com' >> /etc/hosts
 
@AwalGarg I'm not a socal media hater :)
People who dislike social media just have shitty friends
 
But you can't stop watching it, I gave you the solution.
 
Oh right
I don't want to stop watching it :p
 
I don't have anything, in that case.
 
8:03 AM
@AwalGarg how's the nginx thing going?
 
@FlorianMargaine haven't got time to work on it. My exams just got over.
 
8:26 AM
@phenomnomnominal Oh. My. God. So. Fucking. Great.
also, nice language.
 
@FlorianMargaine so good right! Probably took longer to write than the language
 
hehe true
truly enjoyable
and I like his [the language] way of using macros
 
 
1 hour later…
9:41 AM
@FlorianMargaine : Recently i'm following courses at an uni (to learn something new), and at one course, they use a variant of LISP: Racket. Did you have heard about that ? If so, what is your opinion about that ?
 
9:59 AM
@KarelG I heard of it, it's a statically typed lisp. Heard good things about it, but never tried it.
 
@Loktar lol, is "ribbet" on the homescreen of ribbitsmash a typo? If so, mind if I do a pull request on github to fix that? XD
 
10:58 AM
hm... next project idea: define a bunch of facts, a la puppet, and generate a debian package for each host...
 
@AwalGarg oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooold
 
@FlorianMargaine you are
 
@AwalGarg sure are
 
I just discovered bash.org/?top. This is awesome.
3
 
11:04 AM
oh dear
you're in for a ride
lucky 10k
 
> what the fuck is wtf
 
@AwalGarg you'll understand so many references now
 
example?
 
hunter2
caps lock
 
I knew that already. I knew some bash.org quotes too, just didn't knew what that website is all about.
 
11:17 AM
> <i8b4uUnderground> d-_-b
<BonyNoMore> how u make that inverted b?
<BonyNoMore> wait
<BonyNoMore> never mind
this is too much fun XD
 
<JonTG> Man, my penis is so big if I laid it out on a keyboard it'd go all the way from A to Z
<JonTG> wait, shit
 
LOL
 
@towc happy new gravatar
 
thanks ;)
what do you think about it?
any suggestions on stuff to change?
 
yes, change it back.
 
11:20 AM
:,(
 
It looks like a black square spot here. Doesn't tell me anything and makes it difficult for me to recognize you.
 
not like yours is any different :P
 
Right, that's the third reason. People might confuse between us.
 
I'm claiming this as my logo everywhere online. I'd rather have this than a pic of myself (I don't like any pic of myself btw). Should I make it bigger or something?
 
crl
11:31 AM
> Mike3285: wtf is a palindrome
MaroonSand: no it's not dude
 
I have a treasure box(image that when clicked displays a fancybox which inturn calls a table in the database Learner_Treasure). The user chooses a treasure that is stored in the table and displayed in the treasure box. But no form of feedback when an item is stored into the treasure box. I want to make it flicker when there is something new in it until it is pressed. anyone know how to do this?
 
12:04 PM
> *** Topic in #doghouse is 'Our hearts are extended to the 17 victims of the recent internet fraud'
* Anubis has joined #doghouse
<Anubis> what fraud?
<Kadmium> You haven't heard about it?
<Anubis> no?
<Kadmium> You can read the full story at http://www.tubgirl.com
<Anubis> omg wtf!
*** Kadmium changes topic to 'Our hearts are extended to the 18 victims of the recent internet fraud'
 
12:16 PM
> I hated going to weddings. All the grandmas would poke me saying "You're next". They stopped that when I started doing it to them at funerals
> <DmncAtrny> I will write on a huge cement block "BY ACCEPTING THIS BRICK THROUGH YOUR WINDOW, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE INSTALLATION OF THIS BRICK INTO YOUR BUILDING."
<DmncAtrny> And then hurl it through the window of a Sony officer
<DmncAtrny> and run like hell
ok, I'm done XD
 
someone has discovered bash.org
 
yup ^^
 
yup ^^
 
@towc, @AwalGarg Your avatars are too similar, I can't tell you apart. One of you switch.
 
names? They're there also for this, ya know
 
12:32 PM
Too hard
When you read this message, you read the message starting at its beginning, you don't look at the entire line. So you see the gravatar at the edge of your vision, and based on some heuristic, determine who it is.
 
ok, I got an idea
brb
 
 
@Zirak maybe this?
 
Sure.
 
crl
12:49 PM
let Cap decide
!!towc or awal?
 
@crl awal
@crl towc
 
crl
it did towc twice out of 3 (we should put a (*) or something to show that Cap's result is the same after an edit, maybe? )
 
awal has no reason to change
I'm completely fine with changing mine
just let SO update the thing, it's taking a while :P
 
@Zirak the almighty
 
@Zirak I will let @towc do the needful
 
12:55 PM
I've already changed it
it's just taking a bit to update, as always
 
cool :)
 
Oh hey @Zirak do you want an account on my ircanywhere? It's like irccloud (irc bnc + web version)
 
@towc nice
 
@FlorianMargaine meh, not really. Thanks though.
Don't use irc as often as I used to
 
Heh... I have SO chat, work chat, miaou, irc...
 
12:58 PM
@FlorianMargaine just curious, what do you use for work chat?
 
The best discussions are still on irc imho tho
 
crl
Where is it in Cap's sources, where it checks whether to post a new message or don't do anything if the last message is the same as the current one? bot.js right?
 
Sounds like a ripe platform for
!!xkcd competingstandards
 
@crl That's the chat's doing
 
crl
12:58 PM
ah
 
Try to post the same message twice in succession
 
@AwalGarg my company uses hipchat right now, we don't like its lack of availibity and are looking for something else though
 
crl
ok
ok.
lol
anti-spam detection
 
@FlorianMargaine go anywhere but not mattermost (warning about mattermost because some gitlab cynicals are mad about it's looks right now)
 
@AwalGarg huh?
 
1:09 PM
yes
 
not sure what the problem is
 
@FlorianMargaine ircanywhere looks nice. I am thinking of installing on my server. does it have anything for code snippets?
@RoyMiloh it is overly designed, but feature wise useless
 
this could change everything! http://flif.info/
A new image format that beats every image lossless-compression algorithm used
 
@towc real gratz on new avatar
ircv3.net these are those horrible people
@Zirak the spellcheck one is awesome. Cc @JanDvorak
 
@AwalGarg any concrete examples?
 
1:20 PM
@RoyMiloh markdown doesn't follow either of the leading specs (not even gitlab's own markdown spec), no email notifications out of the box, out of the box allows anyone with remote read access to register on someone's server (this is horrible seeing as gitlab and mattermost are designed for on-premise installations). Some others which I don't remember right now
 
@AwalGarg Not really. Kinda cute, more like.
 
@AwalGarg I would say it sounds weird, nevertheless, it's still pretty new (although they are out of beta if I recall correctly).
 
It appears as though a lot of work went into making it look like Slack, but not work like it.
 
Sure, I understand what you've said, but again, they are few months in the market (still remember them from Go newsletter few months ago :-)).
 
1:42 PM
guys can i ask something?
 
Anything but that
 
anyone familiar with firebase?
 
@MywikiWitwiki that would be me.
@MywikiWitwiki you already did.
 
i'm having a problem with querying data entries with push() operations
how can i query the entries without the unique string auto-generated by the push() function?
 
what do you mean by "query"
 
1:46 PM
@MywikiWitwiki "push" doesn't generate any unique string
 
yes it does generate a unique string that serves as the key for the new entry
 
@MywikiWitwiki it's a unique key
 
@MywikiWitwiki Are you talking about Array.prototype.push?
 
nope firebase
 
1:47 PM
@MadaraUchiha Firebase
 
app.firebaseio.com/users
 
Ah, my bad. Carry on\
 
should have entries for each user
every push will be identified by a unique key
i want to query all these entries but "bypassing" the unique keys as if it returned:
'app.firebaseio.com/users/user1 ... user2' instead of :
'app.firebaseio.com/users/<unique_key>/user1 ... user2
 
@AwalGarg you don't paste code snippets on irc...
Auto pastebin would be nice
 
@FlorianMargaine I once built a mIRC script to do that
When you paste multiple lines, it would automatically halt, save the lines into a variable, upload to pastebin, then /say the link to it instead of your code
 
1:57 PM
@MywikiWitwiki ref..snapshot.forEach can do that
@FlorianMargaine why not?
@MadaraUchiha needs a brother userscript to inline-view the code from that pastebin on hover or ctrl+click or something
 
@AwalGarg mIRC doesn't have "userscripts"
But I can see something done in a graphic window
That's the only thing I've never really done in mIRC
Them graphics
 
@MadaraUchiha Ah, well, I thought it is something web based
Like every other thing we see these days ~_~
 
@AwalGarg mIRC is Windows based IRC client
It's been around longer than what you call "these days" :P
 
mirc.com/images/aboutmirc.gif this... looks classy
 
@AwalGarg irc is limited to 150 chars per message, and you can only have a single line per message. You also have flood limits that prevent you from posting too many messages. Generally speaking, it is frowned upon to paste multiple lines in irc
 
2:05 PM
"irc is limited to 150 chars per message" da hell
 
@AwalGarg mirc existed before you were born
@AwalGarg look up the irc protocol, or how to use irc via telnet. The protocol is fairly simple.
The chars limit makes sense from a C point of view, you can easily stack allocate a message array
 
@FlorianMargaine I have used it via telnet but never knew it has a message based limit
 
(You'll notice that all protocols have either a length based limit, or the length is prefixed to the message on a specific number of bytes, it makes sense as soon as you start writing a client or server in C)
(hermes used to use the 2nd scheme)
The 1st scheme is much more efficient to implement though
(As I said, you can simply stack allocate if possible)
 
Why does Heartbleed come to my mind?
 
2:11 PM
I don't remember how heartbleed worked?
 
!!xkcd heartbleed
 
Ah, so the 2nd scheme without zero-filling the rest of the buffer :-)
 
Am I right thinking this bug would have been absolutely impossible to achieve if the lib was made in any other language?
 
2:14 PM
Well, openssl code is terrible
 
@FlorianMargaine It's lesson 2 in preventing exploits...
 
@JanDvorak you're right
 
@JanDvorak Mostly right. You don't have the power to read random N bytes of memory in most other languages.
You can't say "give me 40 bytes starting from 0xblah"
 
That's why C is awesome. In a way.
 
@Zirak yeah, which is why I like malloca... Although I haven't often used it
 
2:16 PM
C is a sports car without any seatbelts.
 
C for cool
 
Err, not malloca...
What was the name already?
 
@FlorianMargaine malloca wouldn't have saved them
 
@Zirak I'm talking about the function to allocate a buffer and assign zeroes to it
 
jemalloc (I have no idea what you are talking about)
 
2:18 PM
@FlorianMargaine memcpy?
 
No, that one is a string function
(Despite the name...)
 
@FlorianMargaine Still wouldn't have saved them
The memcpy was the vulnerable part, they mallocd just fine
 
@Zirak why? Don't they reallocate the buffer for every client?
 
back-end > front-end
 
@Zirak ah, I see
 
2:20 PM
@Neoares Says who?
 
@Neoares both are as important as each other.
 
@Neoares not for internal/personal projects where browser-compat is latest FF and chrome only
 
Both are useless without each other
 
I prefer back-end
not saying it's better :P
 
2:22 PM
@Neoares TMI
 
@Cerbrus only now?
 
!!urban TMI
 
@AwalGarg TMI Too Much Information - way more than you need/want to know about someone.
 
Yea
 
// Snippet from the link Awal Garg posted:

// int padding, payloadSize
// unsigned char *pl
bp = OPENSSL_malloc(1 + 2 + payloadSize + padding);
memcpy(bp, pl, payloadSize);
 
2:23 PM
I'm not very active on the weekends
 
@Zirak yup, read that
@Cerbrus just open SO on your phone to see if you have chat notifications
 
payloadSize is defined by the user, so you're reading payloadSize bytes from pl, which isn't related to the malloc
 
@Neoares I let someone else do my back-end
5
While I'm working of the front-end
 
that's nice
 
@Zirak Is payloadSize directly user defined or derived from user input? Because if the former, that's some more than apparently troublesome thing to commit to openssl.
 
2:25 PM
we could do a great team then :)
 
Aye
 
@Zirak how is pl allocated though?
 
@Cerbrus You don't have to tell us how you like people doing your back-end
@AwalGarg It's part of the request, just like the xkcd said
 
Any experience using Tapito?
 
@FlorianMargaine It's the request
 
2:26 PM
Ah well, the weather's great, I'm out :D
 
Ah, it's just raw memory...
 
Again, xkcd illustrated it nicely. pl points to the beginning of the requested answer string.
 
Yup got it
 
I'm fairly certain there's a lesson portraying that exact vuln in hackthissite or some similar site
 
Is there a way in JS to get a function's default argument value?
 
2:29 PM
It's embarrassing, and makes you wonder
 
@BenjaminGruenbaum without calling it, stringifying it or opening it in debugger, you mean?
 
!!> function foo(x=4) { return x + 2; } foo.toString()
 
@Zirak "function foo(x=4) {\n\"use strict\";\n return x + 2; }"
 
@Zirak is that standardized? Also does that help me with binding?
 
Chrome doesn't have default arguments, right?
 
2:31 PM
!!> var x = 5; function foo(y=x){ return y + 2; } foo.toString()
 
@BenjaminGruenbaum "function foo(y=x){\n\"use strict\";\n return y + 2; }"
 
Yep, worthless.
@Zirak lemme check canary
 
whispers "XY"
 
@BenjaminGruenbaum Not standardised AFAICT
 
@BenjaminGruenbaum I don't think other languages have this either
 
2:32 PM
I remember the spec saying something like return [[ECMAScript Code]] value for Fn..toString
 
@JanDvorak this is not the xy problem, I'm genuinely wondering about it. What started it is thinking about pattern matching in JS and how I can use that to implement it - but I care more about the actual question.
 
python may have it through some obscure reflection library
 
so, purely theoretical? My guess is you can't
 
Yeah, Python has it.
 
With bindings though? Probably not
 
2:33 PM
Fuck it. I'll ask in main.
 
Really? The resolved binding as well?
 
Maybe through Reflect, hmm
 
awal.js.org/especser/#19.2.3.5 half way implementation dependent.
 
0
Q: Get function's default value?

Benjamin GruenbaumIs there a way to retrieve a function's default argument value in JavaScript? function foo(x = 5) { // things I do not control } Is there a way to get the default value of x here? Optimally, something like: getDefaultValues(foo); // {"x": 5} Note that toStringing the function would not w...

Let the games begin.
@JanDvorak So, this is possible in Ruby, nice :)
 
2:38 PM
Send the link in esdiscuss
 
I've just tried. It doesn't actually show the value, just lists the names
 
@BenjaminGruenbaum toString() + eval()
 
It might turn in a circlerjerk about the poor state of reflection in js though
 
7 mins ago, by Benjamin Gruenbaum
!!> var x = 5; function foo(y=x){ return y + 2; } foo.toString()
 
But yeah, there should be a better way
 
2:39 PM
@MadaraUchiha how would eval resolve the bindings?
 
Are JS default values like Python's or like C#'s?
 
!!> eval('5')
 
@MadaraUchiha 5
 
!!> var x = 5; eval('x')
 
@MadaraUchiha "SyntaxError: let is a reserved identifier"
@MadaraUchiha 5
 
2:39 PM
!!> function foo(i, arr = []) {arr.push(i); return arr; } foo(1); foo(2); foo(3); foo(4);
 
@BenjaminGruenbaum [4]
 
Like that @AwalGarg ^
 
^ 2 win.
 
@BenjaminGruenbaum Yes, you do
 
@MadaraUchiha that doesn't help at all, the bindings might come from a different lexical environment
 
2:40 PM
@JanDvorak meh repl.it/BNIm
 
@MadaraUchiha ninja'd by benji
 
function bar(){
    var x = 5;
    return function(y = x) {};
}
var foo = bar(); // now what @MadaraUchiha
 
@BenjaminGruenbaum Well then, the answer to your question is astoundingly simple.
> Nope.
 
@MadaraUchiha well, ES2015 has a lot of new reflection APIs and such and there is ES2016 stuff, and other languages like Python and Ruby do have this ability.
 
But I guess that question is a great source for RFC since it's about to get so many votes
 
2:41 PM
@BenjaminGruenbaum also how'd Reflect help?
 
@BenjaminGruenbaum (excuse me for this :P) say the default args involve ... ahem, this. How should your getDefaultValues function work in that case?
 
@AwalGarg what do you mean?
 
BTW, may I unstar any Friday links whenever it's not friday?
 
@JanDvorak by all means, go for it.
@AwalGarg I only need to get a reference to the value, not the reference itself.
 
2:44 PM
unstarred @Luggage's testicles
 
Imagine functions had a .defaults property that returned an array with the default and a reference to its value. It doesn't have to be the same binding it just has to point to the same place.
 
@BenjaminGruenbaum function foo (arg = this.x) {} getDefaults(foo) // how should it resolve this since it is not lexically bound?
 
@AwalGarg the resolution of scope is done when the function is parsed, not when it is called. As far as I know. Even with this.
I recall having this discussion with you before, but I don't remember the result so I might be remembering it wrong :D
 
@BenjaminGruenbaum As bergi answered that time as well, babeljs.io/repl/… it is done at call time :)
 
@AwalGarg This may be a time where transpilation shines through.
 
2:47 PM
Oh yeah, that's super weird. Also, when you post babel links use a link shortener or I can't click them.
 
noted
 
Hmm, that's a good point (about this binding), it's solvable but weird.
If you pass a getter as a default value, it gets called multiple times right?
 
@BenjaminGruenbaum yeah, the defaults are stored as ECMAScript code slots which are evaled in the function's lexical scope
 
lol yep.
Multiple times. So it'd have to return functions.
That sounds "good enough" that we would have heard about it.
 
I'd test that in a browser, it could be a babel bug
 
2:52 PM
@Zirak FF has same behavior
 
IE has same behavior too
 
Interesting. I'll check the spec later
 
And that is really good or else objects as default values would behave really weirdly if the function is called multiple times and the default val is mutated
 
@Zirak yeah this is super weird, but Awal is right here, I recall having this debate before and thinking it was weird then too.
 
@AwalGarg That's precisely what happens in other languages
 
2:53 PM
@AwalGarg that's all nice and dandy but dynamic scoping with this is really freakish here :D
 
@Zirak like python? screw them
 
It's a common python trick/gotcha
 
@Zirak and is hated behavior and a "gotcha".
 
@Zirak check the answer to my only question on main (all spec like)
 
You can achieve that behavior by storing the default value elsewhere
 
2:55 PM
I wonder if we can make cool stuff with it.
 
var defAry = []; function bufferize(defAry = ary){...}
might be marginally useful when golfing
 
Like, build pattern matching with getters over evaluating the defaults every time
match(v,
_ = v(1) => doFoo()
_ = v(2) => doBar()
)
Where v defines a getter for the value and it gets evaluated every time. Wait, we don't need a getter functions calls are also evaluted every time.
Also, that syntax makes no sense :D
 
I was wondering...
 
yeah I was confused too
 
crl
it lacks a comma too
 
2:58 PM
Ya
Maybe with object computed property names, although that misses on educating people about default argument values.
match({
   [1]() {  },
   [2]() {  }
})
 
Isn't that like exactly what switch(true) does?
 
3:23 PM
Well, switch true means you have to type the variable name each time, and it has no return value.
 
user3119231
whats up? :)
 
It would be cool if we had a "if it destructures to and equals that" type pattern matching
 
3:41 PM
@JanDvorak I'm offended.
 
crl
3:53 PM
must feel bad to have your testicles unpinned
 
@Luggage how does it feel to have a spellchecker brutally remove your testicles? ;)
 
pedantically painful
 

« first day (1814 days earlier)      last day (3117 days later) »