« first day (1795 days earlier)      last day (3151 days later) » 

9:00 AM
@Abhishrek Huh? I thought integrating Cordova and React Native would've been the thing to do
 
@BenFortune Why would you ?
Cordova essentially forces you to render components in a webview
React Native renders them in a purely native environment so you can use system gestures and core animation frameworks which outperform css transforms and even webgl animations on iOS by far.
 
@BenFortune It goes even further
the way facebook recommends abstracting your native calls and callbacks is different
then what cordova does :-)
 
isn't that basically what titanium or sencha touch has done for years?
 
@Sheepy Yes. I think the actual meaning is as you pointed out .
.append() just append things to "something", no change is made to the "something" itselft. I don't think this is something worth pointing out in particular.
I took that sentence too seriously.
It is just an ordinary mention of sort of obvious thing.
 
9:15 AM
@rlemon How ugly would you care for it to be?
 
@Zirak explain how you accidentally dd the first 500mb of your disk
 
If you look at the page's source, you can see there's a CHAT.RoomUsers.initPresent somewhere down the middle, and you can get the current user's uid from the DOM
@SomeKittens Which is stupid btw, since it's supposed to be a promise/task... @BenjaminGruenbaum linked me to an argument he had with the angular guys, it was a sad ordeal.
@FlorianMargaine oh, easy. dd if=/dev/zero of=/dev/sda bs=5M count=100
Switched cables around, sda wasn't what I thought it was.
ALSO! I think I found a way to invalidate the cache in bazil!!!!
 
9:34 AM
@Zirak ooooh?
@Zirak is it in the mount options?
       kernel_cache
              This  option  disables  flushing the cache of the file contents on every open(2).  This should only be enabled on filesystems, where the file data is never changed externally (not through the
              mounted FUSE filesystem).  Thus it is not suitable for network filesystems and other intermediate filesystems.

              NOTE: if this option is not specified (and neither direct_io) data is still cached after the open(2), so a read(2) system call will not always initiate a read operation.
 
@FlorianMargaine Hell no. It's in the FUSE protocol.
 
(in man mount.fuse)
 
There's a message which basically tells the kernel to invalidate a node's cache.
 
oh :-)
@Zirak keep me posted
 
You'll hear the cries of joy all the way to France.
 
9:41 AM
@Zirak also, are you in vacation right now?
 
hi everyone
 
@FlorianMargaine Time off work, at home.
 
i´ve been reading some posts concerning putting the .js file at the bottom, or at the top...and i´m trying to understand this but related to what i want to achieve...so, when a page starts, if i want to fade-in it...should i use the .js file at the bottom or top, what is the best practice?
 
hii i want to ask u about how slice() will work ? suppose i have written slice(2) then it will discard first 2 elements from array ? is it so ?
@FlorianMargaine
 
9:51 AM
!!tell zanky mdn slice
 
hmm
 
The slice() method returns a shallow copy of a portion of an array into a new array object.
 
but still not clear with single argument
 
@zanky How is it not?
> If end is omitted, slice extracts to the end of the sequence (arr.length).
 
9:55 AM
For object references (and not the actual object), slice copies object references into the new array. Both the original and new array refer to the same object. If a referenced object changes, the changes are visible to both the new and original arrays.
For strings and numbers (not String and Number objects), slice copies strings and numbers into the new array. Changes to the string or number in one array does not affect the other array.
If a new element is added to either array, the other array is not affected.
 
ok @BenFortune and @ZhengquanBai
actually i am working in Unity. so i dnt know javascript that much
sorry for that
and thanks to all
 
You are welcome
 
i will ask you more if i get stuck at any point
:)
 
@FlorianMargaine here?
 
I was puzzled by a sentence from JavaScript: The Definite Guide, which says "if you insert elements that are already part of the document, those elements will simply be moved, not copied, to their new location. If you are inserting the elements in more than one place, jQuery will make copies as needed, but copies are not made when only one insertion is done. "
In what circumstances will jQuery make copies when I'm inserting the elements in more than one place.
 
10:02 AM
@AwalGarg half
 
@ZhengquanBai When you're inserting the elements in more than once place...
 
@FlorianMargaine alright. tell me when you are here. fullllll
 
@BenFortune Could you examplify a situation where elements are inserted in more than one place?
 
@AwalGarg won't be today
 
np
 
10:05 AM
@AwalGarg what is it about?
 
@FlorianMargaine makefiles
 
@ZhengquanBai let $foo = $('.foo'); $foo.appendTo('.bar'); $foo.appendTo('.fooBar');
I think
 
When you have many .foo, this will be a multiple insertion. (I think)
 
The description of it is far more clear than my example.
 
concur. The api doc has even more details - the last one will be the original element not a clone.
 
10:19 AM
In my opinion, when multiple elements are with class .bar, the $foo.appendTo('.bar') will lead to $foo being inserted into multiple places. In this case, $foo will be copied to support multiple insertion.
 
From the api of appendTo: "If there is more than one target element, however, cloned copies of the inserted element will be created for each target except the last, and that new set (the original element plus clones) is returned."
 
Could you please send me the link to the api?
 
!!tell zhengquan jquery appendTo
 
I googled it out.
thx. Good night.
 
10:30 AM
1
Q: No 'Access-Control-Allow-Origin' header is present on the requested resource shows up on hitting controller action

NezamI have already added the * as the Access-Control-Allow-Origin but the request yields a 404 saying that No 'Access-Control-Allow-Origin' header is present on the requested resource. My Controller code: [HttpPost] public JsonResult uploadzip() { ...

 
yawn yawn !!!!
 
10:47 AM
No windows on react native makes me sad
 
@Zirak it was bitching CHAT was undefined last night.
I had tried
Also, do want..
 
@rlemon I meant that you can try parsing out the script node's textContent
 
11:08 AM
Hello, is there a list of what errors can be thrown by ajax?
 
@GiwrgosGkogkas 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.
 
crl
I wish I could talk to skype users using hangout
!!tell Giwr mdn ajax
 
crl
@GiwrgosGkogkas isn't it HTTP errors?
 
@crl All the HTTP errors?
4xx provides at least 20 variations.
 
11:17 AM
!!tell GiwrgosGkogkas wiki http errors
 
I 've seen this list, but which of these error coded are returned by ajax?
*error codes.
 
"ajax" is just an http request
 
@Zirak That I know. Does that mean, that all errors are supported or jquery filters what exceptions to through?
 
I don't understand your question
If the request fails with some status code, then it fails with some status code
 
11:21 AM
I'm working on webrtc, user A shared a video with user B but user B has forgotten to connect his web cam and microphone, later when he connect his webcam and microphone he is not getting pop up like "This page is accessing your camera and micro phone" allow or decline when he reloaded the page then ge gets
so here is my question can i get that pop up or access to webcam and microphone in the middle
 
@Zirak Ok, then I can get any of the listed errors. Thank you.
 
why this is bed $('#CompanyName option[value="' + data + '"]') ?
 
@Richerdfuld 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.
 
@FlorianMargaine I give up github.com/bazil/fuse/issues/111
 
11:33 AM
@MadaraUchiha \o/
 
@Zirak oh, the lib doesn't use C bindings? Nice
 
@FlorianMargaine Yep, it implements the protocol in Go
@SomeKittens I just realised importScript is impossible: I can't synchronously load and eval an external source.
@MadaraUchiha Why is this exciting? Can you summarise in a sentence?
...why am I an 8th grade English teacher
 
11:49 AM
Hi guys! I'm trying to learn AngularJS, but I find it hard to make out what the errors in the console are saying. I am a Java developer and usually if I look at the stack trace in Java I'll be able to figure out what exact line of code is causing the error. But JS throws out something which I am not able to comprehend as of now.
 
crl
[noob question] How do you run a node process in background? I'm accessing via ssh to a server, and want to run this process and be able to exit from ssh and letting it run
 
@crl Read up on bash jobs
 
crl
ok thanks
 
This is one I came across just now:Uncaught Error: [$injector:modulerr] errors.angularjs.org/1.4.5$injector/modulerr?p0=bnbNeedsApp&p1=Erro…Floc‌​alhost%3A8081%2Fbower_components%2Fangular%2Fangular.min.js%3A19%3A381)
 
i want exact answer — Shital 2 mins ago
._.
 
11:51 AM
I mean where do you start to look when you hit something like this?
 
@shyam Have you tried following the link in the stack trace?
 
Yes it took me to a page which said it failed to load some module. But it did not say what module
 
Can you post the link?
 
Yep.
 
11:55 AM
seems like the link is too long for chat
 
@FlorianMargaine Read the "what have I tried"
 
@shyam Just pastebin your stack trace or something
 
@BenFortune I admit this says something about the ngRoute module
 
11:58 AM
@FlorianMargaine That invalidates just that node, I need the node and all children
 
@Zirak do you?
 
Yes?
 
@shyam It points to dgAuth
 
@Zirak don't you just need to invalidate the cache of files like version?
 
12:01 PM
@FlorianMargaine No, because that'll just make it hit the file handler again, or at best, the parent directory, it won't make it hit /pkg/installed
 
@Cereal Oh man that's great. Looks perfect for our CMS actually
 
When you think about it, it makes sense
 
@BenFortune How did you find that out? When I clicked on the link what came up was this: imgur.com/gbmZPwB
 
@shyam Just keep clicking through the links in the trace
 
12:03 PM
Would somebody like to help making react-native runable on windows & linux
 
@Zirak not really, but that's because I don't know how the api works
 
its mostly with the shell scripts and mac scripts that they need help
 
@BenFortune Thanks. That seemed strange to me :D
 
@shyam Yeah, Angular can be pretty fucky when you want to debug
 
LOL!
 
12:11 PM
@FlorianMargaine The crucial difference (or so I think) between how you and I do things is when we get package data: I get everything on /pkg/installed, while you get it on /pkg/installed/foo,
 
hii..
 if (straight.length && parseInt(straight[straight.length - 1].val, 10) === (parseInt(key, 10) + 1)) {
          straight.push(ranks[key][0]);
        } else {
          straight = [ranks[key][0]];
        }
here ranks and straighr are the array
i want to understand how ranks is used
straight is pushing one element of ranks
how the element is choosen ?
 
chosen by the key, right?
 
yea first dimension is having key and second is zero
means first element with that key ??
 
well, if ranks is a 2-dimensional array, then it will be an array where each element is also an array,
 
yea
 
12:16 PM
so ranks[key] evaluates to an array, and then with [0] you get the 0-th element of that array
 
ok means oth element of that key which is passed
0 - th *
 
mhm
 
okk
ans one more doubt i have
how parseInt will work ?
 
Hello. I am trying to upload my program to Chrome App Store. However im getting an error. Can anybody help?
 
@zanky it simply takes a string that looks like a number, and returns the number,
!!>parseInt("10")
 
12:18 PM
@Cauterite 10
 
I think the error is with my code *
 
@Steve what does the error say
 
okk thanks@Cauterite
 
not sure if i explained it so well but
0
Q: Unmatched app urls - Google Chrome App Release

SteveI am trying to release an app on google chrome. I am getting the error: "Unmatched app urls:" + "To verify your ownership of these websites, add the necessary websites using Google Webmaster Tools and return here to complete this step." However, if I click WMT (Google Search Console) you can cl...

 
thanks a lot
 
12:19 PM
you can see the link there @cau
 
@zanky no problem, good luck
 
@Steve Eh, why is it tagged with and ?
 
i assume its because the url on the line of code I have, dosnt match the one on my WMT acc, as there is an extra / at the end of the urls. But if I get rid of the / - m program breaks
@BenFortune - im not sure. Is this not ok? It is javascript i believe..
 
Jesus christ
 
where?
 
12:22 PM
do you want to see my code @Cauterite
 
i sure don't
for i know nothing about chrome
 
@Zirak no, it's just that I have no fuse cache at all, the whole path is traversed every time
 
okay. Wrong place to ask?
 
@Steve yeah...
 
Im pretty sure its my code thats wrong hence the app store wont take it.
 
12:23 PM
@Steve how about you use some apostrophes for a change?
 
Really? So `cat /pkg/index/zsh/version` does:
1. attr /pkg/index + lookup
2. attr /pkg/index/zsh + lookup
3. attr /pkg/index/zsh/version + read
 
@JanDvorak apologies, is there a problem
 
@Zirak no, sorry, I said that wrongly. The whole path is given at once. So for cat /pkg/index/foo/version I get something like attr '(pkg index foo version)
 
@FlorianMargaine oh, right
 
So the caching and stuff is entirely controlled by me
test
 
12:38 PM
feels good to get rep from deleted content
@Steve pretty sure it is bitching about your manifest.json not the code
 
morning everyone
 
hi
 
@Raju 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.
 
12:55 PM
@rlemon thank you for that,. I wonder why
 
On a socket, you can't add more than whatever the maxListeners is set to, correct?
 
Mornin
 
@corvid No, it just prints a warning
 
Ah. Then gots me a big memory leak here
 
maxListeners is also for events, not sockets in particular.
 
1:04 PM
 
Shouldn't the garbage collector clean up these listeners? How does the JS garbage collector work?
 
If you don't remove the event listeners, why would they be cleaned up?
 
Because it's in a synchronous type fiber/future, so when it finishes, I don't see why it would need to stick around
 
Is it a function? Can it be called?
Is the socket it's listening on still there?
 
Yep, it mostly just waits for an event (or timeout). I can make a small gist rq
 
There's no need. If you added an event listener and didn't remove it, it won't be removed.
It's really that simple.
 
1:23 PM
How can I make this return false for false.toBatman()?
Boolean.prototype.toBatman = f => { return this ? Array(16).join("wat" - 1) + " Batman!" : !1 }
 
... huh
 
Since this seems to refer to the window
 
I guess it's finally happened guys. I've stopped being a OSX fanboy. Working with windows seems to be just as simple.
I feel betrayed.
 
@SterlingArcher Don't, Windows 10 is great.
 
user3119231
Hey, someone knows if there is a event which is fired if the user browsed for a file and selected one?
 
1:25 PM
Did they change the windows 10 command line to be more unix-like?
 
@corvid Not quite
 
Kind of
You can resize it
 
The highlighting is better now
You can do it per line instead of a box
 
Well, I'm working on windows 7, which I'm familiar with anyways
 
I have a page that is a table that contains hundreds of links to images. When the user hovers over the link, a gif preview of that image appears. If they click on the link, they can download the image (a PNG file). Questoin: How can I automatically check for broken/404 PNG links? I am using Angular and so the table loads client side.
 
1:27 PM
@Jonathan You're using an arrow function, meaning it will keep the lexical context of this
Just don't use the arrow function?
 
But I'm not using git anymore, which is throwing me off. Anybody use TortoiseSVN?
 
@SterlingArcher ._.
 
Shut up
D:
 
@SterlingArcher I did... 8 years ago :) It's actually not terrible.
 
TortoiseSVN is fine
 
1:29 PM
@corvid They changed the windows 10 cmd to be a little bit more usable than just a piece of trash.
 
@Zirak that guy loves redux, see his (meta) blog post on redux and hot loading. And obviously no way in hell I'd be able to attend that talk...
 
Like in notepad, you can now undo more than once!
 
@SterlingArcher HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
sucker
 
@ivarni So before git went mainstream? :P
 
@AwalGarg Just thought you'll be interested. It'll be recorded, so you can watch it afterwards.
 
1:30 PM
"Not terrible" seems to mean pretty good coming from most programmers
 
@Zirak sure, thanks!
 
To a programmer, nothing is good. The best thing that comes from us "It's not bad"
 
@SterlingArcher That's going on my tombstone
 
@SterlingArcher I disagree
 
Sadly that also includes our sex lives
Well, not mine obviously
edge cases brah
 
1:32 PM
Most things are "not bad". Some things rise about others so gloriously, they become pillars of light, guiding our way through the dark. Those are "good".
 
Your mom is not bad, at best.
 
@BenFortune Yes, because it was pretty difficult to get larger orgs to jump on a vcs they had never heard of :)
 
Emacs is good. Fish is good. Awesome is good. Arch is good.
 
@SterlingArcher Your sexuality is indeed an edge case.
 
@Zirak sooooo ES2015 is good?
 
1:32 PM
@SterlingArcher hahaha no
 
Python good?
 
@Zirak love that answer
 
I haven't yet used a "good" programming language
 
@Zirak Why haven't you used Haskell yet?
 
@Zirak ruby?
 
1:33 PM
@SterlingArcher Zirak will surely agree that chrome devtools are good. (So will I, for that matter)
 
@JanDvorak Don't get me started on Ruby...
 
On a scale of swamp lanterns guiding you to a watery flesh melting grave to "pillar of light", I'd give ColdFusion... meh.
 
I love sushi, I wish we had a local restaurant.
 
The idea behind React is good, React itself is not bad.
 
I didn't know CF was still a thing
 
1:34 PM
s/life/ColdFusion/
 
@AwalGarg Indeed, chrome dev tools is good.
 
@BenFortune That's what I thought but it doesn't matter: jsfiddle.net/Jonathan_Ironman/qczmcxhq
 
@Zirak IE Edge?
 
almost as good as FF's.. :P hides
 
greg pls
 
1:36 PM
Hey, by logical deduction it uses MORE ram than Chrome, so it's gotta be good right?!
 
Edge's dev tools are great
 
@SterlingArcher It epitomises "good"
 
ben... pls
 
@Nick Fight me
 
k bb
 
1:37 PM
Nick don't make me ping Jonathan Sampson to school yo ass on MS Edge
 
make a facebook event and I'll RSVP
 
@AwalGarg oh, FF's devtools has improved massively over the last decade of versions, no doubt about that.
 
@SterlingArcher Jonathan and I are buddies; that doesn't mean I can't hate their devtools
 
@BenFortune this works now: Boolean.prototype.toBatman = function() { return this.valueOf() ? Array(16).join("wat" - 1) + " Batman!" : !1 };
 
I've never had a need for it, but I love FF's 3D modeling tool
 
1:38 PM
 $("#txtbox1, #txtbox2", "sibling :button").on("click", function() { // ... });
 
@FlorianMargaine and @Zirak hey for "some" (~_~) reason you are now known among my college friends. As "programming know-it-alls".
 
You have friends?
 
Don't lie, you have no friends. And how do they know (of) us?
 
@SterlingArcher Is that the shit where all the elements pop out of the page?
 
@SterlingArcher I asked him on twitter, "Now that MS's browser is good, can we finally switch focus to how bad Safari is?" -- He replied with a very diplomatic reply about how we all have strengths and weaknesses
 
1:39 PM
is it possible do something like above i jsut did please ???
 
@PleaseTeach yes
 
@BenFortune kinda. It's like a layered box model of the elements on the page. The most nested element being the most raised
 
look at the docs for proper syntax
$(context).on(evt, selector, function)
 
@SterlingArcher I've used it exactly once. Opened it up, said "cool" and never touched it again
 
For some weird definition of "friend", I have some. I don't know why, but I have. And @Zirak they know of you two cus I was doing something and came here for debugging help and they saw and thought "omg wtf is this" and I started explaining to them how some peeps here are abnormally good at stuff. forgot about benji and others :(
 
1:40 PM
> and then there is rlemon. we put up with him.
 
I'm good at jquery
 
so yeah, didn't get debugging help but you two famous. have fun
 
@BenFortune I had once use for it, back when I was learning Bootstrap 3
 
and making bokeh
and never finishing personal projects
 
My boss showed it to me so I could see a 3D rendering of how grids worked responsively
 
1:41 PM
@SterlingArcher A nice use-case would probably be checking z-indexes, without having to crawl through your CSS
 
and I'm also pretty good at playing ukulele
 
Also, do people still use Firebug?
 
@BenFortune hmm, I wonder if the z-index affects the layering of the elements
 
actually benji's name is too long, so that's why.
 
@BenFortune I have a coworker who does, but we're slowly converting him over to chrome's devtools
Bejamin Grubbermeier
 
1:43 PM
Firefox's dev tools looks like how firebug looked the last time I used it, have they integrated it?
 
ben jamin'
 
I got drunk and told my brother about @rlemon. He called me weird, but I said fuck off in an australian accent (I was trying to be canadian, it went wrong)
 
to sound like a Canadian when you swear you just have to sound like a donkey
 
you have to sound like a canadian donkey
 
@rlemon reason I want to do this is because I want to get textbox when i use this in the triggered function
 
> weesneh - canadian ass, proabably
props if you got that one ^
 
@SterlingArcher youtu.be/Uogdn7zWDmY?t=2m33s (at time)
 
Can't watch videos at work
:(
 
@SterlingArcher I've used it a few times to make sure I don't nest elements too deeply
 
@SterlingArcher watch it later
funny af
 
1:47 PM
@AwalGarg how much money will that generate for me?
 
@FlorianMargaine NaN
 
that much?!
 
@AwalGarg That's awesome! It meant he can do anything
 
@Zirak I'm assuming you had a specific reason to want a specific element nest depth?
 
@SterlingArcher Memory usage, flat trees are better
 
1:48 PM
@Zirak he can already do anything. I don't believe he is a human anymore. Neither are you.
you people are some kind of network super computers
 
It actually depends on how the money check is done, whether the current amount is on the LHS or RHS
 
@Zirak it's done in COBOL
 
if (florian.money < cost) { throw new Error() } if it's like that, he can always buy things!
 
if( florian.money ) florian.feed(florian.offspring[0]); // repeat for the next 18 years
 
although, not sure cobol respects the float spec.
@rlemon only one kid for the next 18 years?
 
1:50 PM
no, you only feed the first
the rest get to fend for themselves
 
$('#txtBox1, #txtBox2').siblings(':button').on('click', function () {
    console.log(this);
});
I want to get textbox in this
but it returns an input button
 
oh btw @FlorianMargaine solved the makefile thingy myself, thanks anyways :)
 
it is like Hunger Games, but with french people. so you only have banquettes and broken wine bottles to fight with.
 
Thanks for nothing, jerk
 
1:52 PM
yeah you can take it like that, sure
 
@rlemon blanquettes
 
@Zirak flat trees better assuming because of reduced node iteration time?
 
@FlorianMargaine baguettes got corrected to banquettes.. and I don't know how
 
@rlemon blanquette de veau is awesome.
 
I'll have to try it one day
 
1:53 PM
@SterlingArcher If you wish, but memory consumption is the more important aspect. Lets say you display a bunch of cards. If each button is made up of 10 elements and you display 400 cards, you have 4000 elements on the page, minimum. If they're only 5 elements, that's 2000. Simple as that.,
 
please read the docs.
 
@PleaseTeach Please no spammy
 
@FlorianMargaine wow, that looks delicious
 
2 messages moved to JS trash
 
@GNi33 it is
 
1:54 PM
@rlemon not sure what to search for
i mean what keywords to use
 
event delegation.
or how to use selectors
your choice.
 
@FlorianMargaine Porcs dans la couche!
 
@Zirak ?
 
(read as: why hasn't bazil responded to my issue yet)
 
you just said "pork in the diaper"
 
1:56 PM
...I know exactly what I said
You diaper pig
 
yeah... no. you didn't say that.
 
yeah, you wrote that, technically.
 
So what if I meant "pigs in a blanket"
 
has Slack burnt down yet?
 
@Zirak makes perfect senses
 
1:58 PM
More than one sense, specifically
 
:25719466 I know I can use this,

$(this).siblings('#textbox')

just not sure how to do it when add event delegation
but I will keep looking, thanks for help
 

« first day (1795 days earlier)      last day (3151 days later) »