« first day (2056 days earlier)      last day (2890 days later) » 

7:03 AM
hello JS ppl
!urban
 
user3119231
?
 
@rlemon tell us about the antelope tho :P
yeah @littlepootis
 
7:23 AM
@littlepootis 32k. I know, I know. I am awesome.
Imagine if I had left that attributed... that useless timing attack got me a job offer. This could have probably done more.
 
yeah
I got two, btw.
 
@AwalGarg show me show me show me
 
A Laravel website and a MEAN app.
 
was this the google thing?
 
@littlepootis oh gosh that's still better than doing security stuff without knowing anything about infosec haha
@towc the lesser you know, the more you have chances to learn
 
7:29 AM
fair enough -_-
 
I'll have to work with shitty telecom apis.
 
I mean, was it the thing Addy Osmani congratulated you for on twitter some time ago?
 
I couldn't find what he was referring to then either
 
@towc that was paul irish praising my timing attack demo
 
7:30 AM
oh, ok, right
link?
I can give you 1 more view :P
think about that
can't refuse it
 
2 mins ago, by Awal Garg
@towc the lesser you know, the more you have chances to learn
 
:,(
mooooom they're being mean to me
let's pick a mom...
 
@SomeGuy is your mom, no? I doubt amaan will do anything about this
 
@towc how many do you have?
 
@SomeGuy nice!
 
7:32 AM
nah, he's the one that comforts me when they steal my icecream
 
@littlepootis oh lol. shotsfired
 
I call @BenjaminGruenbaum
 
@AwalGarg Is that why babies are cute?
 
/me steals @towc's ice cream
 
:0
 
7:34 AM
There there, it'll be fine, kiddo
 
/me stabs that mom right in the neck
:)
ok, one down, 46 to go
 
Oh shit, typo
 
thanks for letting us know
 
they're being mean to me. I chose you to protect me
(useless banter, nothing serious, go back to work if you don't have time for this)
 
7:42 AM
@SomeGuy this looks really cool and helpful, but for some reason I am getting a vague feeling that it is a joke/parody. Is it?
 
@AwalGarg Yeah, some dude wasted hundreds of hours writing and illustrating a 200-page parody
For some reason, I read joke/parody as jeopardy.
 
@littlepootis I didn't look at all the pages -_- just the front one. But ok, I am definitely gonna read this soon.
 
user3119231
what this about?
 
@Maurice your mom
 
user3119231
 
7:49 AM
@AwalGarg It isn't as good as it seems (lot less detail than I expected in the few chapters I've read so far), but it's definitely not a parody
 
Good morning all
 
@towc who do I kick?
 
:D
@AwalGarg plz
 
@SomeGuy ahh ok. so it'd be easier to skim then
 
Do I get kicked if I say "*whom"?
 
7:56 AM
@AwalGarg lol, always with the skimming
 
:D
@towc @BenjaminGruenbaum I am innocent :(
 
@SomeGuy he confuses skim with skip sometimes, like with sex
 
keep telling yourself that @AwalGarg
 
8:15 AM
> It is? I was counting how many JavaScript versions it'd take before Domino Cola blog.domenic.me shot this thread down. (esdiscuss.org/topic/…)
@BenjaminGruenbaum ^ you read this? lol
 
esdiscuss is shit, all the interesting discussions are on GitHub now
 
yeah domino cola. frigging awesome
 
user3119231
8:38 AM
@FlorianMargaine hell. but why?
 
o/
 
o/
 
user3119231
\o²
 
\Vodafone
 
@FlorianMargaine Hahaha people are strange
 
8:49 AM
o/
 
@Zirak I think you'll love this lecture youtube.com/watch?v=Fz_srDeCNTQ
 
Has any one had this problem with node debugger: type foo.txt | node debug somefoo.js ... did that work? Or is it a known issue?
 
If someone has an idea how I can solve this: stackoverflow.com/questions/37586104/… I'll be the happiest person in this room :D really I can't figure it out :D
 
user3119231
is there a shorter way than this? var $ = (a) => {return document.querySelector(a)}
 
@Maurice Yes. <script src=/js/jquery.min.js></script>
 
user3119231
8:57 AM
@JanDvorak in fact: this isn't shorter. but I know what you did there.
 
@Maurice $=a=>document.querySelector(a)
 
user3119231
thank you. I'm glad I've learned something.
 
user3119231
 
<script src=j />
You'll need XHTML though
 
user3119231
good day, sir. I said good day.
 
9:05 AM
Morning :)
 
9:18 AM
Is it possible to confirm that a file is actually the filetype that the extension says it is (magic number) for example a .exe renamed to .jpg if my object is a stream and no file object has been created yet?
I've read this stackoverflow.com/a/21111868/4345246 and alot of other things on it
(and I'd like to get it working without a external library)
 
@StrahBehry Tons of code
and a bit of guesswork
 
Am I wrong assuming it would run faster without an external library if I write the code myself?
 
I could also do it with a file object... but only if that's significantly easier because with a file object it would already be written to the /tmp/ folder
Bcs the problem I have now is that my Node server blows when I rename a file to a different extension :P
 
@StrahBehry looking into the file signature wouldn't need an external library
 
9:24 AM
@bitten I mean things like github.com/mscdex/mmmagic
 
@StrahBehry sure you could use a library, but you could just use a FileReader and read the header of the file
jpeg's is FF D8 FF E0
 
Good luck distinguishing the tons of .xml.zip file formats
 
It doesn't matter it just has to be confirmed
 
odt, ods, odd, graphmlz...
 
That it's a JPG or a PNG when the extension says it is
 
9:27 AM
@JanDvorak is that in regards to us?
 
But I tried like mmmagic and it made it so slow
 
if he's just checking for jpeg or png then he only needs to check for jpeg and png headers? ^^
umm
 
Right now it can resize 7000 images in 90 seconds
With mmmagic it got to 1500...
 
you could write this in like 30-40 lines
 
Just convert it into a data URL and see if it opens in an image element
 
9:28 AM
61
A: How to check file MIME type with javascript before upload?

DrakesYou can easily determine the file MIME type with JavaScript's FileReader before uploading it to a server. I agree that we should prefer server-side checking over client-side, but client-side checking is still possible. I'll show you how and provide a working demo at the bottom. Check that your...

look at step 2 header inspection method
@JanDvorak that's smart, do you mean like listen on the onerror event?
and if it doesn't fire then you're okay?
brb :3
 
Pretty much
 
Ehh you don't upload via a browser tho
Does that not matter?
 
You don't WHAT?
 
@JanDvorak he said it comes through as a stream
@StrahBehry no, i wouldn't say so
 
If there is someone who could help me with a AngularJS problem I would be happy!:

http://stackoverflow.com/questions/37579792/scope-watch-is-working-with-old-values
 
user3119231
9:39 AM
why are variables declared with a '$' in front?
 
Stream {
  domain: null,
  _events: {},
  _eventsCount: 0,
  _maxListeners: undefined,
  readable: true,
  headers:
   { 'content-disposition': 'form-data; name=""; filename="phptest (8).jpg"',
     'content-type': 'image/jpeg' },
  name: '',
  filename: 'phptest (8).jpg',
  mime: 'image/jpeg',
  transferEncoding: 'binary',
  transferBuffer: '' }
 
@Maurice those are reserved AngularJS variables
 
user3119231
@DaViDa good to know
 
Is there anything I could do with that header object?
Bcs then I can catch it before it's even being written
Which would be the best, the FileReader method works for the file object
But it's still quite slow then because then it gets written to /tmp/ and I have to fs.unlinkSync (delete) it
 
BCS?
 
9:45 AM
Because
Sorry
 
9:56 AM
You just implement a Stream that checks the magic, then pipe to it.. no need of temp files..
 
1 message moved to Trash can
@SuperUberDuper Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Firefox outlines don't follow the border radius. Why? :-(=
 
←
hi, got an ultra simple issue with express, I get Cannot GET /invoice

app.get('/invoice', function (req, res) {
res.send("foo")
})
any ideas?
 
@FlorianMargaine can confirm? i.imgur.com/1ViQ0Rj.png
 
this works fine:

app.get('/', function (req, res) {
  res.sendFile('index.html')
})
 
9:58 AM
@doug65536 I am able to break it :( - jsfiddle.net/e14oL103/8
 
@SuperUberDuper Wrong URL / routing issues?
 
@bitten have you been bitten by that?
 
@JanDvorak most people still don't know ?
 
@bitten lmao
 
10:00 AM
I know ?.
 
> Please know we have no security breach. We're experiencing issues in parts of our network. We’re sorry for the inconvenience.
> inconvenience
 
@JanDvorak 😂
 
@JanDvorak then you don't come in most :P
 
@JanDvorak no idea Im afraid only app.get('/',
seems to work
 
@doug65536 actually problem is in my syntax of data... let me find out why, sorry
 
10:05 AM
i forgot to restart node lol
 
@littlepootis yeah, also a bit lol
a friend of a friend had has paypal drained
 
@MadaraUchiha definitely
although it's not an expression you'd use, it's a valid literal translation
 
@doug65536 actually it is broken :(
 
@JanDvorak Firefox outline can follow radius. The example does not work because of a MDN bug, but it can be fixed with F12. Related bugzilla.
 
ew. I'll just use a border
Well..
 
10:10 AM
The only time I used outline is when I can't use border. Glad to hear that this is not your case. :)
 
It might be. Can I have negative padding?
 
Of course!
You can also have negative margin and position. We haven't figured out how negative size should work, though.
 
@doug65536
this is the latest I have from you, https://jsfiddle.net/e14oL103/9/
and here is the previous fiddle I initially had, see it's working fine for this data - https://jsfiddle.net/jwf347a4/24/
 
@Sheepy Nope, invalid property value
 
how can we see chat history for a particular user ? I want to see all messages from doug65536 to me from start
 
10:15 AM
@JanDvorak Opps. Sorry, my fault. You are right. No negative padding :(
 
Should I up the element size then?
Actuall, that seems to work pretty well
 
@bitten nice
 
Not sure what you wanted - I just noticed the Firefox in the Firefox outline question, sorry :|
 
@MadaraUchiha nice
 
no one knows ?
pretty sure someone here knows about chat api...
 
10:24 AM
 
@GNi33 thanks
 
np
 
user3119231
10:40 AM
wat: shouldn't the pink div not shrink? jsfiddle.net/s81j82ht/1
 
HTML elements are bad psychiatrists
 
user3119231
I see.
 
@Maurice what are you aiming for? you gave the parent containers fixed dimensions and set Mr. Pink's width to 100%
 
user3119231
@FilipDupanović I just want to shrink Mr. Pink to have space in the red container
 
user3119231
I knew how to realize this... Damnit, I'm getting old
 
10:47 AM
@Maurice just decrease mrs pink's width or height or add either a margin or padding to mr red?
 
guys
Kindle Voyage vs Oasis
 
user3119231
@bitten The point is that the size shouldn't increase
 
user3119231
If I don't remember how I realized this I will use calc (per hand) or something
 
Anyone here good with arrays in JS ?
 
Voyage also has the page turn buttons
so the 100€ difference is for the leather case, lighter construction and PREMIUM SPARKLE
 
10:51 AM
I am having trouble with developing an algorithm someone might already had solved
 
@Mathematics noone
not a single person
 
@BartekBanachewicz I am getting a kindle paperwhite this week :|
 
@BartekBanachewicz my bad :(
 
@AwalGarg paperwhite is great, don't get me wrong
but the feature I missed the most were page turn buttons
 
!!welcome mathematics
 
10:53 AM
@mathematics Welcome to the JavaScript chat! Please review the room 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.
 
@BartekBanachewicz isn't that a plus since it is meant to be close to paper books, which don't have buttons to do that?
 
@AwalGarg who said it's meant to be close to paper books
heck, I want it to be as far from paper books as possible
 
@BartekBanachewicz Oasis... page turn buttons plus ergonomic grip
 
Get a projector
 
@BartekBanachewicz The reading experience part, I mean. amazon does say that :)
 
10:54 AM
@JanDvorak um?
@FilipDupanović do you have either?
 
@BartekBanachewicz superior screen size
 
I already have a projector vOv
 
@Maurice but it will increase because 100%?
 
but really can't see how it's relevant to book reading :)
 
as far from paper books as possible
 
10:55 AM
@BartekBanachewicz I can see little interest in room regarding logical arrays problems, otherwise I will keep repeating my question
 
@JanDvorak oh lol
 
@Mathematics what's your question? ^^
 
@Mathematics just label your variables thing1, thing2, thing3 etc
 
@BartekBanachewicz I have the first international and paperwhite and I am missing the page flip buttons
 
@bitten I have a tree of tables, I need to merge them all into a single table
 
10:56 AM
@FilipDupanović bah well I get that part, but both Voyage and Oasis have them
so I'm wondering if the €100 price difference justifies it
 
@Mathematics Not specific enough. Can you explain more?
e.g. What tables? Input? Output? Collision resolution? Pre-order, in-order, or post-order?
 
user3119231
@bitten I'm working on it. Checking out my previous projects
 
:30918453 I have a tree like this,

RootTable
     ChildTable1 Level 1
     ChildTable2 Level 1
            ChildTable3 Level 2
                    ChildTable4 Level 3
     ChildTableN Level 1
does above makes sense ?
 
Are we talking about JavaScript or DOM?
 
@Sheepy let me put it down into a question on SO, brb
 
11:10 AM
Hello guys
does anybody have idea on this warning
WARNING: Tried to load angular more than once
 
You have tried to load angular more than once
 
0
Q: Merge Tree of tables into a single flat table

MathematicsTable Structure (Input) RootTable Level 0 ChildTable 1 Level 1 ChildTable 2 Level 1 ChildTable3 Level 2 ChildTable4 Level 3 ChildTable N Level 1 Example would be <tableclass="defaultResultsFormatting"> <thead> <tr> <

 
@JanDvorak kek
 
@Sheepy I put that into question, does it makes sense now ?
 
@bitten Sometimes people keep missing the obvious
 
11:13 AM
:p
 
i can't go to home :-(
i've used a train to go to a meeting this morning. Now there is a strike.
 
no am calling in two separate view cshtml files only
 
@KarelG :_;
call a taxi?
 
@MBalajivaishnav put a question on SO with all details and code
 
i've been cycling in, wouldrecommend.jpg
 
11:16 AM
@bitten for almost 200 km ? :P
 
Call a taxi, then sue the railway company for expenses
 
@Mathematics I can deduce what you want from the question. But I can't answer it now and it is quickly gathering close votes... you may want to edit the question a bit to improve it. Add a small introduction, try to explain the problem in English etc.
 
@Mathematics I have done it but it has been disapproved by moderators due to duplication of question, but actually that is different question
 
Going off now. Wish you best luck.
 
@KarelG haha.. ha..
well, i'm sorry to hear it
 
11:17 AM
@Sheepy did I not used English :/
 
@Mathematics eh, not really.
 
hey you guys wouldn't know any sort of i guess application framework that exist? kinda like a modal but more in depth
 
@Mutch95 Welcome to the JavaScript chat! Please review the room 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.
 
@Mathematics it's a too vague question
what's that structure. What's the origin of it ?
 
11:20 AM
@Mutch95 almost every framework in existence exists
 
what do you mean with "example"
 
Anybody Has any idea how to add table in chart.js tooltip
 
The chart.js docs should give you an idea
 
in v2
ya i have read it
i got the solution for version-1 but not for version-2
 
@JanDvorak please explain
@KarelG it all starts here - stackoverflow.com/questions/37480483/…
 
11:23 AM
add these info then ...
 
@KarelG but they are not necessary to solve the problem though, it will make it a lot bigger question and people will loose interest...
 
eh, it's typical in belgium. IT's a country with two regions: a dutch and french one. The trains in the nothern part (dutch) are 90% available. In the south (french) 5% :/
But i'm waiting for my turn at the desk
 
in ver-1 it like var innerHtml = '<span>' + parts[0].trim() + '</span> : <span><b>' + parts[1].trim() + '</b></span>';
 
@JanDvorak i guess i'm looking for some sort on controller which allows me to manage which part of the application is being used etc
 
A routing controller?
 
11:26 AM
but version-2
innerhtl var like
var innerHtml = [
(tooltip.beforeTitle || []).join('\n'), (tooltip.title || []).join('\n'), (tooltip.afterTitle || []).join('\n'), (tooltip.beforeBody || []).join('\n'), (tooltip.body || []).join('\n'), (tooltip.afterBody || []).join('\n'), (tooltip.beforeFooter || [])
.join('\n'), (tooltip.footer || []).join('\n'), (tooltip.afterFooter || []).join('\n')
];
 
like how ios apps work
 
@AtalShrivastava yuck
 
???????
 
and that code is fugly
 
11:27 AM
@SterlingArcher The puns, they slay me.
 
iOs apps do work?
 
an MVC but for web using javascript
 
its also same
 
Hi can this be done ? var condition = "row[1] != 'sometext'"; if(condition){ } ...
can i use a var to store an if condition ?
 
why?
 
11:31 AM
you mean with lazy evaluation?
otherwise, just store a bool
 
@Mutch95 do you have preferences or any existing implementation in mind? there's a lot to choose from, it's hard to give you a good answer
 
lazy evaluation ?
 
@Joseph what you can do is wrap the if function in a function and store it as var
 
@FilipDupanović i just want to make a basic chat application which is easily controllable and easy to implement into an existing web page
 
user3119231
I'm driving insane: Why the hell isn't it possible to center it vertically? jsfiddle.net/d1ud7b7o
 
11:37 AM
@Joseph if(eval(condition)) { .. }
don't do that though...
 
@Maurice if you're doing layouts, drop whatever it is that you're trying and go for flexbox! css-tricks.com/snippets/css/a-guide-to-flexbox
 
user3119231
@FilipDupanović damn, this works like charm. I used this. However why isn't table-cell unsupported?
 
imgur is so much faster with JS disabled
(excluding size of the image I wanted to view...)
322kb cache-less load without JS
65kb cache-enabled load without JS
4665kb cache-less load with JS
2808kb cache-enabled load with JS
now that it redirects all static image links to the "full page" view...
 
11:59 AM
@KendallFrey ... I need
 

« first day (2056 days earlier)      last day (2890 days later) »