« first day (1391 days earlier)      last day (3558 days later) » 

3:00 PM
that's with promices
 
damn this is overkill
 
I wanna know what translator this guy is using. Very impressive
0
Q: Streaming live from a pre recorded video via websocket

UserSorry for English, I am using a translator. As the title itself already explains, need to create a live broadcast using localhost (apache server), and I thought I could use websockets for this transmission, the video for this transmission would be in the database (MySQL). It is feasible to br...

 
I could just disregard bad data on hte backend lol
thats' a lot easier
less processing with the user
 
@NickDugger depends on the source language, but Google Translate isn't bad
 
user1596138
3:01 PM
3
Q: Reprodução video ao vivo usando websocket

UserGostaria de fazer a transmissão de um vídeo que esta em meu banco de dados(MySql) e gostaria de saber se é possível reproduzir conteúdo de mídia ao vivo utilizando websocket, e se for como eu poderia construir? Tenho em mente que vou utilizar html5 e JS e uma linguagem back end(php ou até mesmo p...

 
I have not invented it sorry
 
What language is that?
 
user1596138
....
 
portugueseses
 
user1596138
Yes
 
3:02 PM
don't mock my ignorance.
 
user1596138
lol no it's just that if you click the link
 
I don't like putting effort into things
 
user1596138
I see "Portuguese" in 3 places
 
i am not sitting back!
 
user1596138
3:03 PM
 
user1596138
:P
 
lick vs. like ... live vs. life :)
 
My brain not good today. 3 hours of sleep me
 
@NickDugger needs more licking...
 
0
Q: Traversing a DirectoryEntry, using what've been read

giuscriI need to write a function that process files contained in a DirectoryEntry. What I would like to end up is something that's iterable that contains object of the kind {path: '/root/inner/cat.jpg', blob: [Blob representing the file]} I've found different solutions that solve the problem of trav...

 
3:06 PM
not from you, thanks
 
can some 10k user post a screenshot of this please...
 
I like women.
 
really?
 
@ziGi lololol
It's an Italian number :P
 
3:07 PM
Nick, you naughty :D I see what you did here
 
I like guys.
 
@ZlatinZlatev if only I was that clever... nah, I mis-spelled women... lol
 
@AwalGarg Can't you use a tool like fireshot?
@NickDugger lolz
 
@SufiDeveloper no, the count of binary digits is not divisable by 8 so it's not really a string or it's missing something
 
Seriously, though. I got 3 hours of sleep last night. I was on the phone with the girl that I have the date with tomorrow.
 
3:09 PM
anyone here worked with mongoose
?
 
@ziGi apply 0s in the begining to make it pad to 8 bits
 
@tejas-manohar not even with the creature
 
lol...
0
Q: Does JavaScript / NodeJS automatically throw Errors?

oskar1983I wonder if (for synchronous JavaScript/NodeJS) it does make sense to surround the whole code with try { .. } catch (e) { .. }, even if I myself do not throw any Error in my JavaScript/NodeJS code. Does JavaScript/NodeJS automatically throw some Exceptions in error cases just like for example Ja...

 
@ziGi Because I wanted it to. I can imagine someone even tried to make something meaningful out of that or worse, think that it could reveal my number xD
 
3:11 PM
@ZlatinZlatev you are Bulgarian right?
 
so nobody's used mongoose odm?
 
Zlatan Ibrahimovic :)
 
I do
 
558-7420 (now try and guess the area code)
 
@ziGi yes, why?
 
3:12 PM
!!google 558-7420
 
shtoto i az
:D
 
First one.
 
@NickDugger I actually posted an answer to that...
 
867-5309
 
3:12 PM
@ZlatinZlatev I see. You rep whore.
 
@ziGi bravo :)
 
@NickDugger how so?
 
post.scriptum. California.
 
@NickDugger thanks to this chat, I know what you just told me :)
I did not know about meta-memes like moments ago
 
Best Torrent client for Mac?
 
3:13 PM
@NickDugger Aw c'mon, there's not even a downvote
 
I've run out of legal options.
 
@ziGi may I still trash it?
 
sure
thank you
 
no nice 10k user here?
 
sure there are
 
3:14 PM
Why would someone need to have 10k rep in order to take a screen shot?
 
1 message moved to Trash
 
He wants to see deleted material
 
If it's old enough it may be stored in Wayback machine
 
user2620028
Hey JS chat. In regards to data security, is it always advisable to never store data in javascript variables that is ever going to be inserted back into a database.
 
3:15 PM
@AaronSiciliano depends for how long and how sensitive the data is
 
Depends on the use case
 
@AaronSiciliano never trust the client machine
that's it
 
/cc
 
If it's personal data just no, don't ever think about that if you're serious.
 
Node.js and Demandware are examples of systems where a lot of persistent data is kept in memory
 
user2620028
3:16 PM
@Sufi not personal data no
 
if you send it to the client machine, the user will see it if he wants to
 
also there are ways for keeping persistent data securely
 
@AaronSiciliano Then what data are we talking about if I may ask?
 
Only credit card numbers, social security numbers, phone numbers, how many women you've slept with.. you know, the basics.
 
Node.js & Demandware = Server-Side javascript
 
3:17 PM
it is advisable if you don't care for security, and want your server to be dead within half an hour.
 
user2620028
@Sufi i am talking about like a ladder system
 
lol...
 
@AaronSiciliano what's that?
 
user2620028
A tournament ladder
 
3:18 PM
Something having to do with challenges if I'm not wrong. Sorta game.
 
user1596138
@AaronSiciliano If you don't mind people cheating the ladder
 
@AaronSiciliano do you mean storing and manipulating data with client-side javascript, then submiting to server to persist?
 
user2620028
Uhh no. Think like gamebattles.com
 
Well, if you don't want users to cheat store everything server-side please.
 
@AaronSiciliano storing it is fine. Reading it back from the client and storing it in the database isn't.
 
user2620028
3:19 PM
Ok see thats what i was thinking
 
@JanDvorak still depends on the use-case
 
Yeah, that, Jan
 
@ZlatinZlatev name one where it's OK
 
think of current user's address information
which you want them to modify and persist back on the server
 
Whatever, if you're trusting the client he'll always find ways to cheat/exploit the system, no workaround to that.
 
3:20 PM
hi all
 
user2620028
Now I have never read an article that claims that you should avoid storing data you dont want possible to be manipulated by the user on client side and then sending to database.
 
wait, they can see my complete email address?? @JanDvorak can you see my complete email address from that post?
 
user1596138
Use client side to trigger actions and stored procedures etc. Not store/send sensitive data.
 
@AaronSiciliano That's reasonably right yes
 
@rlemon IE logo + Grumpy cat with the Chaplin mustache.
 
3:20 PM
So i need a recommendation on how to accomplish this task:
 
user2620028
But i knew it was possible to modify it and i was thinking to myself. Why in the hell has no mentor, teacher, article advised me best practices on this.
 
I hate these days, where I have like one thing to do
and Idon't know how to do it
fuuuuu
 
I need to generate a google map from some coordinate data... and then i need to draw a line on that map... from more coordinate data
 
@Cereal mash face on keyboard until something works.
 
Because he's either a bad teacher or you should study at a higher teaching institute
 
3:21 PM
What plugins? what apis? what kinda shit should i be lookin at?
 
@AaronSiciliano never trust the client code on the server, period.
 
google maps api + svg magic?
 
If I knew this was a requirement, I wouldn't have used this library =_=
 
user1596138
@Bubbas Google maps only.
 
Aaron, are you by chance Italian?
 
user2620028
3:22 PM
@Sufi I have been saying that my University is the worst for programming ever but they keep winning awards... Its all BS
 
oh nice!
 
user2620028
@Sufi My family heritage is Italian, i am born and raised American.
 
user1596138
:)
 
didnt realize it had drawing features as well :)
 
3:22 PM
@JanDvorak yes, validation and character encoding is mandatory, but not trust client for data input to database is a bit overkill...
 
ty
 
@AaronSiciliano given the w3schools rating on weboftrust... I'm not that surprised
 
@AaronSiciliano It could be yes.
 
user1596138
Yup sure does. That makes it much easier than getting SVG coords to match up with google maps coords lol
 
and I mean don't trust it for direct input, but validate the info, and then input it
 
3:23 PM
Oh cool :) I'm living in Italy.
 
user2620028
@JanDvorak I didn't follow? Are you trying to say my university is w3schools haha
 
@ZlatinZlatev OK... you may trust that the data he submits is the data he wants you to see
 
@ZlatinZlatev I hope you meant to validate the info server side, right?
 
user2620028
@Sufi My family is from Acri, Italy
 
3:23 PM
@SufiDeveloper yes
 
@Jhawins oh god yea, haha
 
@AaronSiciliano no... that reputation isn't a guarantee
 
now... to get more accurate GPS points from the field...............
 
@AaronSiciliano Nice. I went to Acri, Palermo, Siracusa and Catania. Very nice places :)
 
user2620028
@JanDvorak I don't understand what you are trying to say.
 
3:24 PM
@ZlatinZlatev Got it.
 
client-side validation is for customer/end-user to ensure he submits the data in proper format from the normal means. Server-side validation is a must for the developer, to ensure customer/end-user is not trying to do something he is not allowed to
 
user2620028
@Sufi I am trying to move to Bangkok, Thailand at the moment. I am hoping that will be a fun adventure.
 
user2620028
@Sufi Although i ride a Ducati Monster, does that count as pleasing my heritage?
 
I mean, if w3schools can get a high ranking on WOT, a bad university can also get a bunch of awards
 
Yeah, that is such a basilar thing something every good developer should know, or you can't be called one.
 
3:26 PM
^ my university is a prime example
 
var context=new AudioContext();
data.visualData.audioSrc=context.createMedialElementSource(data.music[data.playing]);
data.visualData.analyser=context.createAnalyser();
data.visualData.audioSrc.connect(data.visualData.analyser);
 
user2620028
@JanDvorak OH i didnt realize thats what you were saying. Yes i have been telling the professors that our CompScience program is a joke and they dont believe me lol.
 
something about those lines makes it so that data.music[data.playing].play(); doesn't make the music play.
(But the visualization will work.
 
@AaronSiciliano Are you a freshman?
 
user2620028
@Meredith No, i should have graduated last semester if i had taken 15hrs each semester.
 
3:27 PM
@AaronSiciliano Hehe, I heard that the prices in Thailand are one of the lowest in the planet. Not a bad choice and not really risky. Yeah it does :)
 
@theHeretic FWIR, you need context.output = ...
or similar
 
user2620028
@Sufi Or you could go to the Phillipines where it is cheaper and a lot more dangerous!
 
specifically, data.visualData.audioSrc=context.createMediaElementSource(data.music[data.playin‌​g]);
i'll try that?
is it supposed to equal the sound?
 
yep
you need to set what node is the output
 
@AaronSiciliano I can't speak about that one but I believe you :P As for the risks, yeah, filippinos are crazy, very crazy
 
3:29 PM
There was a filipino kid in my 11th grade chemistry class
 
so how do i make the context sound play if i set it equal to data.music[data.playing]?
 
One day he pulled out one of those chicken fetus eggs and just ate it
Without saying a word
 
user2620028
Bilut lol
 
user2620028
Thats not crazy, thats just difference in culture :P
 
user1596138
lol I could just pay someone else to do this part of this job
 
3:31 PM
Though I know that you guys in the USA are crazier. Was watching an American show about people going shopping with coupons and that shit. They had to pay $600 but with the coupons they just $2.40. That's just plain crazy. Wish it was like that here too!
 
I was just looking at my S5 Pedometer and realized it sounds a bit like pedophile meter (measuring your advantages over children)
that's a bit creepy
 
@Meredith Yeah that's what I meant xD
 
user1596138
@SufiDeveloper lol. No.
 
user1596138
> filippinos are crazy, very crazy
 
user1596138
@SufiDeveloper You're a weird dude
 
3:32 PM
@Jhawins how so?
 
@Jhawins What no? about filippinos or USA shopping shit?
 
I have a filippino friend
I really like her
 
Oh ok.. yes I'm weird, everybody knows :)
 
see: karambit
 
That's how you distinguish from everyday people
 
3:34 PM
Yeah, I am weird too
but that doesn't mean I am much different, just a bit weird
 
TBH, I would try balut at least once in my life
 
Yeah, you gotta be weird sometimes in your life or you aren't going to enjoy
 
@SufiDeveloper why do you think Filippinos are crazy
 
Hmm, looks like most of the Java chats are dead
 
@ziGi Because they do crazy things and are funny :)
 
3:35 PM
ew, I'd never eat that
 
Here in Italy we have a lot of filippinos so you get to know them
 
@SufiDeveloper totally agree my filippino friend is a girl programmer and she sings very well and has a really pretty smile
 
balut breaded with cheetos crumbs
 
gross
 
@ziGi You told me :P
 
3:36 PM
ur gross bro
 
ah yeah, I forgot
sorry man :D
 
user2620028
I was just told not to move to the Phillipines because they like to go around occasionally and shoot white guys.
 
haha yeah?
 
user2620028
Not quite sure how accurate that statement is
 
@AaronSiciliano really?
 
3:37 PM
No problem ziggi :D
 
user2620028
@ziGi I have no idea to be honest, but with the way the USA has been in the past i wouldn't doubt that kind of activity happens in the world.
 
@AaronSiciliano Pfff that's the same thing they say about arabs and turks -_-
 
user1596138
!!s/(Java)/$1Script/
 
@Jhawins Hmm, looks like most of the $1Script chats are dead (source)
 
user1596138
Oh. How does that work again?
 
3:38 PM
()
 
user1596138
Riiiight
 
Well they say they shoot other peope, but you get it.
 
@Jhawins Hmm, looks like most of the JavaScript chats are dead (source)
 
user2620028
@Sufi Foreigners yes.
 
@AaronSiciliano Foreigners?
 
user2620028
3:39 PM
@Sufi You said they shoot other people and i said Foreigners yes.
 
No they aren't arabs or turks, they are fundamentalists.
 
user2620028
Ehh either way i wont have to worry about it as i am moving to thailand and will hopefully mind my own business :P
 
ok, output.play(); works but only if I comment the line out so that data.music[data.playing].play(); would work anyway.
 
user1596138
@SufiDeveloper I don't know where this is going to end up... But please refrain from racial slurs. (calling Filipinos crazy was weird too)
 
@AaronSiciliano Haha then you should also learn Muay Thay :D
@Jhawins Look at my definition of crazy. Crazy as in extremely funny people.
 
3:43 PM
 
user2620028
Hahaha Pwnt
 
user2620028
But i agree with you Sufi i never use the word crazy as it is literally intended
 
@SufiDeveloper what I like about them that they don't think to harm you most of the cases and are really good and appreciate your help
 
user1596138
@SufiDeveloper Uh huh... Just a friendly suggestion. It's not me who will flag you, someone else will and it'll be validated and you'll see an auto suspension. You're not doing anything wrong right now, I'm just warning that if you escalate you won't be happy ;)
 
and have not so much hatred in their hearts
 
3:44 PM
@AaronSiciliano Yeah, the fact is that writing can be ambiguous because people don't get your tone.
 
Here in 'murica, we like to turn nouns into verbs, and adjectives into nouns. yeah.
 
@ziGi Yes, that's what I like about them
 
user2620028
@NickDugger Don't even get me started on rap music.
 
@NickDugger and resolving problems using guns, lawyers or psychotherapists
 
user2620028
@ziGi I prefer guns :/
 
3:46 PM
Jhawins Please. You're unnecessarily annoying now. You and everyone else in this room know that crazy was intended in a different way.
 
Get started on rap music
Go
 
user1596138
@SufiDeveloper lol I'm being polite lighten up! It's cool :)
 
@Jhawins Cool, and sorry about the misunderstanding.
 
user2620028
@Meredith The songs steal other people music without crediting them, And i don't just mean like stealing the beat from another song Vannila Ice style. That was bad enough.
 
user1596138
We're all good.
 
3:47 PM
Alright.
 
user2620028
Ok that was a start. Now im finished because i have better things to do than to bash on rap music :P
 
user1596138
@ziGi Canons
 
user1596138
Solve the problems much quieter
 
user2620028
@Jhawins Or NSA Wire taps. Those are almost entirely silent.
 
@ziGi Fiddle from yesterdays question
 
3:50 PM
!!eat my ham sandwich or continue learning java
 
@SterlingArcher continue learning java
 
fml ok
 
user2620028
Wow thats cute i have never seen jquery datatable before o.O
 
All of my half-assed answers that should be comments get deleted but all I want is to get 7 more rep so I can comment QQ
 
Why would you give half assed answers?
 
3:53 PM
@narthur157 Post a great question that can't get easily answered and I'll give you a bounty :)
Oh wait, that's for answers :P
 
Because I don't actually know what I'm talking about
 
user2620028
:P
 
@narthur157 with that logic you should be learning more than answering
 
@Sterling Archer But the points feed my soul
 
@Shoe you have to do $(".selected td input") in this case cause .selected is on the tr not on the 'td' as I thought initially
 
3:55 PM
Points corrode the soul in the long run. When you get enough points you want more. Then you want more and more and more.. you get it.
 
yes
I know
 
you may have a point
 
@ziGi It's still an empty set :\
 
it shouldn't be table.$(".selected td input") but just $(".selected td input")
 
But that will just select elements in the dom
If it's paged, page 2 isn't in the dom
 
3:57 PM
Yep :)
 
Can you spot the wtf here?
 
Let's go with Meth
 
@SterlingArcher Yes, the dead trees in the background.
And Java in the foreground.
 
I don't like Java telling me to addMeth >=(
 
@AaronSiciliano sports car using les gas ahahaha
 
3:59 PM
@ziGi Here's a new fiddle demonstrating the different results jsfiddle.net/shoe788/s5r944xd
 

« first day (1391 days earlier)      last day (3558 days later) »