« first day (1430 days earlier)      last day (3504 days later) » 

12:13 AM
@Neil , thanks for the link. Will try to figure out, what's wrong with this exp.
 
Hello all
@Eugene I have a quick question
it's more of an angularjs question
 
1:21 AM
@JoeSaad Welcome to the JavaScript chat! Please review the room pseudo-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.
 
m59
1:59 AM
@FlorianMargaine it seems that lodash.template is what I was looking for.
or underscore
 
2:30 AM
I'm a bit annoyed at some of the 'server' submissions for js13k
 
2:57 AM
Does anyone know what's happening here? jsfiddle.net/f3xdp2hg
 
3:19 AM
@SomeKittensUx2666 Are they pushing over 13k?
 
no, they'd get disqualified for that
the server files are noops, just so they can enter the category
if you're going to enter a multiplayer category, MAKE A MULTIPLAYER GAME
 
 
1 hour later…
4:49 AM
@SomeKittens Which games are these?
Also, isn't it cool to be assured you'll be in the top 4 of your category? :D
 
Yep, pretty much why I submitted
 
I wanted to, but when they announced it, ender said there wouldn't be a server category, so I dropped it. Should have kept up to see if they readded it later
 
Wish I'd started learning this animation stuff a few months ago, I'd have totally put something together for the competition
 
@monners so said book covers the maths?
 
Yeah, hang on, I'll put an example in a fiddle I think you'll appreciate
 
4:55 AM
nice
After building Spaceships! I realized I need to read more on trig.
It was a lot of fun - I want to do more
and I wasted this whole weekend playing Robocraft
 
That's from the book (although I did slightly improve the key event handling)
Obviously you'd separate all that utility stuff out into another file
 
got a reply from clay.io, he was rather nice
@monners I like their border handling better
but why all the mouse/touch/color stuff?
 
5:14 AM
@SomeKittensUx2666 I just copy/pasted from a utils.js file that's shared across a whole bunch of other examples
Obviously you could streamline that down to the minimum
 
Hello Every one
I am calling Rest Webservice like this pastie.org/9554430
i want to print entire json response
i am very much new to ajax and jquery, can any one help me to solve this issue?
 
basics about „AJAX“: gist.github.com/Zirak/3086939
all you need to know about jquery's ajax function: api.jquery.com/jquery.ajax
 
@Aamirkhan console.log(data)?
 
how you can print objects into your console: developer.mozilla.org/en-US/docs/Web/API/Console.dir
how you can parse and create json strings: developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/…
 
5:28 AM
@GottZ @JanDvorak ok thanks, let me check
 
5:59 AM
Mornin
 
hai
 
What's up?
How's Germany @BadgerGirl ?
 
Far away from me.
I just quit my job on Friday.
And I'm waiting for the visa.
 
yikes!
good luck!
 
6:04 AM
Hai
what an incredible way to start the day with... hitler
 
@BadgerGirl good luck :)
 
@SomeKittensUx2666 @Benjamin thanks
 
@Zirak I just found out that you got your precious computed property names in object literals in ES6
 
var foo = "bar";

var x = {
    [foo]: 3
}
x.bar; // 3
 
6:19 AM
Extending JavaScript results in very ugly syntax changes
 
Why? It's very similar to the current syntax for computed property names
var foo = "bar";

var x = {};
x[foo] = 3;
x.bar; // 3
 
Yeah, I guess
 
@copy fire doesn't work for me on IWTBTC
 
Because you didn't find ammo yet
 
fiiiiiiine
the original didn't have ammo
 
6:30 AM
https:\/\/www.google.co.in\/s ---- why this type of escaping is found in google responses and these characters --- [\"h\\u003cb\\u003eotmail\\u003c\\\/b\\u003e\",0]
is this some type of encoding ?
 
It's runes
They tell of an ancient spell
 
Google has been hacked
 
send me the all user data please
:)
 
6:47 AM
Can Jsbin/jsfiddle can support CORS ? I don't see any Access-Control-Allow-Origin: *' in the response
Is there anything I can do ?
I want to run ajax request from my domain browser to a json file which is on jsbin/jsfiddle
(for testing ...)
 
@RoyiNamir uhh...
Why?
 
^ testing
 
Why JSFiddle/jsbin though?
 
On the android course I want to make a jsbin which spit out json so everyone can access this url
Does it really matters why ?
 
Wait what?
Why would you care about the same origin policy in an Android app?
Do you understand what the same origin policy is and what it's for?
 
6:50 AM
restrict the browser to get ajaxc response from other domains
 
You're building an Android app?
 
which holds webview
 
You do realize an Android app is not subject to the same origin policy right?
 
To tell you the trough im buildng hybrid app so it's holds iframe ( webvire)
 
It would make no sense, the same origin policy is so that if you're logged into your bank and go on my site, I can't exploit your credentials and make a cross origin request to your bank and send myself money.
Since I have full control over where you go to since you're inside an app, the same origin policy makes no sense. You're solving the wrong problem.
 
6:53 AM
as i said ^ restrict the browser to get ajaxc response from other domains
 
Right, but you don't have that issue, you can make an HTTP request to anywhere you want.
Even if you have a WebView, you can still make that request in your app and communicate with the WebView
 
What if the webview runs js code which makes ajax request ? it wont need cors ?
 
@RoyiNamir tell me what you think, do you think it would make very much sense to not be able to set that property in a web view in your own app?
Remember, an AJAX is just an HTTP request
 
I don't know , im an android beginner. I dont know if i can set this property in a webview
I believe the server should send those headers.
(or am I missundertanding your claim ?)
 
You are misunderstanding the purpose the same origin policy serves. I'm sorry if it sounds rude but that's the case
 
7:00 AM
No I'm not. I just wrote you what is it used for. maybe the Android POV is new to me ( apparently it is) - hence I have some doubts / questions
 
morning all! is it bed time yet?
 
@DrogoNevets Yes
 
@RoyiNamir It would make no sense for there to always be a same origin policy enforced in a web view in Android. Even if there was, you can easily bypass it by communicating with Java.
The problem the same origin policy solves is completely irrelevant in an app.
 
@RoyiNamir It's pointless to have accept headers when requesting from a WebView, because the WebView does not respect them.
 
@SecondRikudo wat?
@SecondRikudo accept headers are from the server, and are irrelevant in this context anyway.
 
7:04 AM
@BenjaminGruenbaum I'm not an Android expert, but isn't a WebView similar to an embedded browser window in the app?
 
@SecondRikudo it is
 
In which case, even if the server did send accept headers, a WebView wouldn't respect them.
 
You need to look up Accept headers again
 
@SecondRikudo that word you keep using... I don't think it means what you think it means.
 
@BenjaminGruenbaum About the thing you wrote : "if you're logged into your bank and go on my site, I can't exploit your credentials and make a cross origin request to your bank and send myself money."........If I go to your site and you run ajax request to the bank : the bank server WILL see the request . and if you run ajax request withCredentials , the cookies WILL be sent
I think you're talkina bout CSRF attack to block
 
7:06 AM
@BenjaminGruenbaum accept headers?
 
@SecondRikudo Yes, accept headers are for content negotiation, you're thinking about access control headers.
 
cors is just for not getting response from other domain ( jax requests)
 
@RoyiNamir no, CSRF is something different. CSRF is when I sneak an image or a button to make a request on your site to bypass the same origin policy.
 
@BenjaminGruenbaum Right
Yeah, got those mixed up for a moment
 
If there was no same origin policy to begin with, I could make an AJAX call to the site directly and perform the cross origin request.
CSRF is relevant even with no AJAX involved at all.
 
7:11 AM
It does not relate to my site . Csrf is when you initiate request on my behalf .
 
@BenjaminGruenbaum You can do that though, just not read the response
 
You can send me html form which posts to a known location for example - bank
And so the solution is cookie / hidden field match to a server value
So if the malicious site is doing a request - it wont have the hidden field value
Your example - talks about csrf attack . The part where you cant read the response - is the only cors part
 
@SecondRikudo ok I'll go home to bed at 08.16hrs
 
Maybe I haven't been to Iceland because I'm busy dealing with YOUR crummy code.
5
 
@copy in a meaningful way
@RoyiNamir Any "meaningful" way would mandate a preflight, which means you really can't make the request.
 
7:21 AM
Not for get post
 
@RoyiNamir yes for get and post if you have specific headers. It preflights for everything that you can't do with a <script> tag or an iFrame post yourself.
Meh, you really don't have to explain how CSRF or CORS works to me, I'm well aware of how they work :/
 
Of course , no arguing here :-) im just saying that the bank example was a bit irrelevant here
 
Of course it was relevant -_-, meh.
 
For a.com to run ajax requests to facebook to get all friends - its where comes more relevant
 
Anyway, my whole point was that there is no point in something like the same origin policy in an app.
 
7:25 AM
Ok tnx
 
@JoeSaad yes. What is it?
 
8:22 AM
The thing about examples/metaphors is that they're great for explaining concepts, but they're horrible to use in arguments because they never accurately reflect the actual scenario 100%.
Someone could always say, "this situation isn't like that because of X", and that someone would be right
Worse, when you think you're having a conversation and you use an example/metaphor to explain something to someone, they, thinking it is an argument, can call you out on having made a stupid point because that example/metaphor isn't accurate.
Then you have to backtrack and try to explain what you meant, but by then it is too late. Your opponent thinks he has managed you get you to contradict yourself, when in reality, you only wanted the other person to understand your point of view.
 
cool story
 
My rambling of the day.
 
MGE
Hello
I have a problem, I have a jquery that load a player, and then I have an script that tries:
        var coverplace = $('.fap-current-cover');
 
@Neil How about similes?
 
MGE
the problem is that this class is loaded once the page is loaded
and the script can't catch this element into the var
Uncaught TypeError: Cannot read property 'top' of undefined
 
8:29 AM
Put the code at the bottom of the <body>
 
MGE
same problem
 
I'm not a jqery user; does the .animate() start animating as soon as it is called? So that something like this would be out of sync: .animate('#first').slowFunction().animate('#second') ?
 
@MGE You have a class called fap-current-cover??? Is that a joke?
 
@monners Metaphors are like similes.
 
@Neil I hate you.
 
8:31 AM
:)
 
MGE
yes
 
Yes it was a joke?
 
MGE
I have a class called 'fap-current-cover'
 
!!tell MGE urban fap
 
@MGE fap The onomatopoeic representation of masturbation. Often used to suggest that something is attractive.
 
MGE
8:36 AM
I know
whats the problem?
 
No problem, the 6 year-old in me just found that funny
 
MGE
lol
Fullwidth audio Player
FAP
 
MGE
Somebody knows how to detect an elemente created after the document is ready?
element*
 
GTA5 coming to PS4 mid-November. About fuckin' time
 
8:47 AM
@MGE mutation observers
 
Or you can just bind to a parent element
$('.parent').on('click', '.target', function () {...});
That'll hit dynamically-created elements
 
@monners quiz: do you know the name of this technique? :P
 
Lol
 
No... -.-
 
8:50 AM
Question though, do you guys prefer to delegate to the parent or window?
 
event delegation
 
@FlorianMargaine Oh! Right! Duh. I thought that was a trick question.
 
I don't ask trick question
that's @BenjaminGruenbaum's domain, not mine
 
Sure ya do, you're not completely void of humour
Even if you are French
 
Shall I flag ?
4
 
8:53 AM
Now that's funny
 
inb4 ban
 
I'm afraid I can't let you do that, Dave
 
@monners LOL
 
@AbhishekHingnikar Yeah, yeah. I'm sure you've already played through it on a PS3 with all your hipster friends
 
I am a pc gamer dude
i only play one fucking game : counter strike
 
8:56 AM
counter strike isn't a game
 
Guess you'll have to wait til February then :P
 
it's a religion
 
@Kippie all hail
 
@dystroy what?
@FlorianMargaine what?
 
@monners i won't play it either
 
8:56 AM
@BenjaminGruenbaum :D
 
@BenjaminGruenbaum Just ignore them, they're French
 
@AbhishekHingnikar I promise I won't tell your parents
 
@BenjaminGruenbaum :D
 
Flag what?
 
Tested snapick's sync with ~15,000 images (college CLASSMATES) on around 40 mobile devices and laptops, (around 50 photon on least person, with ~5400 on some girls device)
 
8:57 AM
I'm not sure what was supposed to be offensive in the messages above, honest :S
 
sync was flawless :D .. the distributed thingy worked perfectly though our network clogged severely
 
Any nude pics, though?
 
6 mins ago, by monners
Even if you are French
 
@BenjaminGruenbaum Are you sure you're not French ?
 
@BenjaminGruenbaum Apparently the French aren't the only ones without a sense of humour?
 
8:58 AM
@Kippie snapick uses e2e encryption
and the data is opaque to server.. so nope
 
@FlorianMargaine lol, you know I love ya
 
no I don't.
Prove it.
 
@AbhishekHingnikar Wait, how does that work? In the end, the server has to decrypt them back to display them to the users, no?
 
Bend over
 
The best part is the machine learning algorithm was able to figure out who is in those 15k photos in about 4 hours. for everyone (including those with over 3k friends on fb) I loved that :D
@Kippie nope.. its distributed server is merely a storage array and relay station
 
8:59 AM
sorry.
 
@AbhishekHingnikar nice
 
it can store the images without "decrypting them"
 
@AbhishekHingnikar So decryption happens inside the browser / app?
 
@Kippie the app.
 
And who holds the decryption key?
 
9:00 AM
the devices
 
What if it's lost?
 
Oh god
Oh god please don't do this, this is horrible. What are you actually trying to do here? — Benjamin Gruenbaum 22 mins ago
 
you can wipe the device remotely ;-)
@Kippie alternatively you can opt out of using a server and just use your own device for storage
 
what if the decryption key is lost?
 
like say hard-disks
@FlorianMargaine can you lose your face ? and a password & a phone at the same time ?
 
9:01 AM
You can lose your device.
 
Wait, the face is the decryption key?
 
@copy not just that, it uses face as a component
if "applicable"
 
@AbhishekHingnikar you're saying the decryption key is stored on the device. If I lose the device, I lose all my pictures, no?
 
Oh, I thought it was just bound to the device completely. Like with an IMEI code or whatever
 
@FlorianMargaine if you lose your android you can wipe the device no ?
 
9:02 AM
@AbhishekHingnikar that's not the point
I don't want to remotely wipe the device
 
The point is you'll never be able to get back into your account afterwards
 
I want to be able to see all the pictures on my new device
 
Suggest me what can i do in that case, you can lock private photos though
 
allo experience dev
can u help me with postgre?
ERROR: decrypt error: Data not a multiple of block size - You can perform this action again in 1 seconds - retry / cancel
i seems to have this error when using decrypt(field,'secretkey','aes')
for postgre
i'm not yet well versed in postgre since our db will be migrated to postgre along with the encryptions please do help
any advise well be highly
appreciated
 
@FlorianMargaine yeah that works flawlessly
 
9:02 AM
@dystroy ah, didn't figure that was offensive.
 
if you cloud is on, you will never lose any single photo ever
 
you said the decryption key was only on the device
 
@FlorianMargaine kinda hard to explain, would u mind if i just demonstrate it ?
 
no
where is the decryption key
 
9:03 AM
I do mind, but carry on anyway.
 
just answer ffs
 
@BenjaminGruenbaum It may be because I'm terribly sick but isn't Promise.join a strangely unconsistent and not very useful function (never used it) ?
 
it's not hard: the decryption key is there, bla bla bla
 
@AbhishekHingnikar What if there's a nuclear holocaust?
 
@monners well ask amazon :D
 
9:04 AM
@dystroy It is like joining with another asynchronous thread
 
@AbhishekHingnikar I did, they told me to go fuck myself :(
 
/copy that paste here
 
You wait until the other thread finishes because perhaps you want to ensure a particular task is done before doing a synchronous action
 
Q: I have script that I use in HTML file Now I would like to implement it in asp.net MVC, what is the best practice to achieve that please?
 
@Marek Use script as a reference, but rewrite it. Don't try to do anything fancy
 
9:05 AM
@AbhishekHingnikar your pictures are all encrypted using the phone you're on. The decryption key is the only one who can allow you to see your pictures. You lose your phone, so the decryption key with it. You get a new device, and since your decryption key is lost, you can't see the pictures anymore.
that's how far you explained to us
 
@Neil Thanks alot for response. May you provide me with some link how to use script as reference?
 
@FlorianMargaine okay i explained it wrong.
time to explain step by step.
 
@Neil I have now tried to copy the script into the View page. Seems to not register the <script src="js/loaders/OBJLoader.js"></script>
 
@dystroy it's useful when using promises as proxies to solve the context issue.
 
MGE
@JanDvorak
$('body').on('click', '.add-to-pl', function () {
 
9:07 AM
var p1 = getStuff;
var p2 = p1.then(doSomethingWithResult);
var p3 = p2.then(doMoreWork);
Promise.join(p1, p2, p3 function(r1, r2, r3){
    // perform work on all results @dystroy
});
 
MGE
same problem
the problem is here:
        var coverplace = $('.fap-current-cover');
the $('.fap-current-cover') can't be read
 
@BenjaminGruenbaum Yes, but it's redundant with other more symetrical patterns
 
@BenjaminGruenbaum so... it's like Promise.all?
 
@dystroy oh, it's like 25 percent faster than .all(...).spread :P Not that that should matter in most cases.
@FlorianMargaine yeah, it's very similar
 
When you create an account we generate the first factor of getting the key on server.
Second thing is your facial model which is obtained by taking your photos.
Third is a unique uuid generated by the device.

These three combine to generate a key, now what i mean by end to end is when device A is sending device B the images, these two will be encrypted opaque to the server. But to ensure security our storage servers encrypt the images using their own keys (They are basically nodes of the distributed architechture, so when your device sends photos to the server the transaction occurs with e
 
9:09 AM
@BenjaminGruenbaum how is it different?
if Promise.all is slower, why should we use it?
 
makes sense now ?
<or did i over complicate this ?>
 
@Marek We're assuming of course that the script is valid
 
@AbhishekHingnikar that still doesn't explain how to get the decryption key back if you get a new device
or do you store the decryption key in your db?
 
You want to rewrite something that doesn't work, you need to talk to your boss, because as it stands, you'd likely write asp.net code that doesn't work either based on that
 
@AbhishekHingnikar you didn't overcomplicate, your english is just hard to read
 
9:12 AM
@FlorianMargaine well, for variable length lists
 
@BenjaminGruenbaum k
 
A ---- uniquely encrypted for A-Server transaction ----> Server -- uniquely encrypted for storing ---> [ Store ]
B <---- send it to b using e2e for this transaction --- Server <--- decrypt data using that unique key for every user --- [ Store ]
 
@Neil To be honest. I have never been working with Javascript and I started to working with Three JS and successfuly create an 3D object viewer that I would like to implement in ASP.NET MVC page. I read that I should create .js file and use reference to it. How can I create .js file which editor shall I use? I was working on my javascript plugin in .txt so far. Thanks for any kind of information.
 
ok so your server can totally see if there are nude pics
 
@FlorianMargaine well, yes and no.
 
9:13 AM
yes and yes
the server holds the encrypted files, and the decryption key.
 
you can turn off the sync with server, and store it on your own device.
 
what else is missing?
 
goooood morning guys
 
MGE
I can't get an element because its loaded after the document ready
 
@AbhishekHingnikar in this case, if you lose your device, you lose everything
 
MGE
9:14 AM
I tried
 
@MGE where are you placing the script tags?
 
MGE
$('body').on('click', '.add-to-pl', function () {.. var coverplace = $('.fap-current-cover'); }
 
@Marek In your page, you should include the three.js library, and reference locally your .js file as well, and that should be sufficient
 
MGE
but its impossible to get
 
@FlorianMargaine can you lose your desktop, your mobile phone, your external hard-disk, your tablet at the same time ?
 
9:14 AM
@MGE you've already been given multiple solutions. It's now up to you and Google
 
MGE
I tried var coverplace = $('body').find('.fap-current-cover').eq(0);
and I can't
 
@AbhishekHingnikar if you turn off the sync with the server, only your phone will have the data
 
MGE
yes, I tried some possibilities, but I can't solve
@AwalGarg after the body tag
 
We're not here to do your job for you.
 
@MGE fap fap fap
 
MGE
9:15 AM
:)
 
@MGE put it inside the body tag. at the end. just before the ending body tag.
 
MGE
ok
 
@FlorianMargaine all your devices you sync with will have your data
did you completely miss the point, I made it distributed so my servers are just bulk storage ?
 
@AbhishekHingnikar in this case, your server also has the data
 
@FlorianMargaine na-uh it allows you to sync without server
with your desktop clients.. like iTunes does
 
9:16 AM
well, you didn't say that.
 
wow, I'm just 50 points from a badge, didn't realize there were that many BB questions
 
user1607528
since css room is not active i will ask here. is there anyway to reset css class's properties in one line without specifiying default values to properties
 
MGE
fuck
same problem
 
@FlorianMargaine do you feel that your nudes are safe now ?
 
Oh wait, it's all from that optimization question
 
9:17 AM
@Muhammet the html / css room is very active.
 
@AbhishekHingnikar nope, my nudes are already on g+
5
 
@FlorianMargaine hahaha
use us :P , make it easier for others to find
 
@AbhishekHingnikar how do 2 devices find themselves? i.e. my laptop and my phone
 
mdns :-> (and i love it)
 
9:18 AM
@Muhammet anyway, I think the answer is no. A reset has to state at least some sort of value.
 
user1607528
@mikedidthis i dont see anyone online right now in css/html room. thanks for the answer
 
@FlorianMargaine Bonjour (as apple calls it)
 
@AbhishekHingnikar oh..
 
its really really really powerful, I am just experiencing its power now
and wonder why there is no mdns api for browsers :-/
 
@Neil thanks for that information. I tried to implement it. May I share my sort of robust code with you, do you have a minute please?
 
9:24 AM
@Marek Ok
 
MGE
omg there is no way to detect the info of an element loaded after the document ready? :(
 
@MGE send the entire code pls.
 
@Neil Thanks again. I added the three libraries to js folder in my project. When I tried to load the page I still get: JavaScript runtime error: 'THREE' is undefined - That means that the reference in <script src> is somehow wrong. I am not sure if it is correctly implemented in the View page. The script starts on 132 row. gist.github.com/mareksip/af014be5c1b6ff4d292c
 
9:44 AM
@BenjaminGruenbaum coursera?
 
@Marek You need to be sure that that file exists in build directory
It is relative to the folder that you're publishing, not relative to your project folder
That may be where you're messing up
 
How can I load an image without it affecting window.onload?
 
@Neil Oh yes. thanks alot I will put there absolute directory path to see if it is working. Thanks alot.
 
@SecondRikudo You can create an image tag and it'll only load when you assign an src, then just append it when you want to
via JavaScript, obviously
 
@monners But if I create a new Image and set the src, window.onload won't fire until it is loaded.
 
9:48 AM
@SecondRikudo It will if you do that as part of your window.load call, right?
 
@monners But then it means that I need to wait for window.load, which I don't want.
I want it to be completely asynchronous and not affect the rest of the window loading process at all.
 
So you want to asynch load your images? Don't browsers do that already?
 
@monners They do, but it affects window.load, which I don't want.
 
they do
 
Ah, hmm.
 
9:50 AM
I don't want this image to affect the rest of the page rendering (I have stuff in window.load)
 
@Neil Sorry i forgot to add the 'build' folder but now I get another error :/ But that one is related to WebGL. Thanks alot @Neil !
 
Well it either happens before window.load or after... don't see much wiggle room there
 
@monners I want to load it before window.load, but I don't want it to affect it.
 
Why?
Only guessing, but creating the images dynamically might bypass the window.load limit
Can't imagine that the window.load event is aware of async tag creation
 

« first day (1430 days earlier)      last day (3504 days later) »