« first day (1720 days earlier)      last day (3230 days later) » 

A_V
12:05 AM
Can someone help me with cordova ?
 
@A_V 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.
 
@A_V don't make me regret this (I know you will)
What's up, buddy?
 
A_V
well, I'm trying to play with cordova for android but having a rough day getting started
 
Good luck, kind sir
Is that why you invited me here?
 
12:12 AM
You need us to talk you off the ledge?
 
A_V
somehow, it was related to android wasn't it
 
No one in the Android room is going to be able to help with that (most likely)
somehow yes
Should have been? No, never
 
A_V
aah okay, well thanks anyhow
 
You should ping rlemon and ask him about it
leaves abruptly
 
I wouldn't.
 
A_V
12:15 AM
Why not, is he a terrible person?
 
Only when pinged randomly.
 
Also, being rejected from a room then inviting a room owner to another room is typically not a good idea, Luckily, you picked me instead of one of the others
He's very terrible
 
A_V
That's good to know, thanks.
 
He can erase your identity with just two lines of js code. I know, I didn't think js was that powerful either
 
He exploits a bug in IE9.
 
cant tell if serious or not...
 
Ok, back to the Android room where things make sense. === wut
 
@codeMagic psh, you and your privates
At least we never have to check if the user's a goat
 
Correction, you can't check if the user is a goat
You also don't know the gravity level of the death star
 
!!> function isCodeMagicAGoat () { return true; }; console.log(isCodeMagicAGoat());
 
12:22 AM
@SomeKittens "undefined" Logged: true
 
Take that, you goat!
 
Even your bot knows you're full of shit! :D
 
Does any one here use notepad++ here ?
 
o/
Though, I'm not sure if I'm really here or not
 
Does this happen a lot for people these days?
 
12:25 AM
@codeMagic Do you know how to add a server directory to workspace > project in notepad through their ftp plugin ?
 
 
@Asher infinite loop causes that when i make a mistake
 
I get this like 10 times a day...
ooh.
but when you load google.com/voice
?
 
checking
works fine
 
Nope, sorry, haven't tried to use ftp with it
 
12:27 AM
Thanks.
 
try remove cache and disable javascript in dev tools and see if /voice loads
 
(thinking there maybe is a conflict with local storage variables?)
 
which stack exchange is best to ask about code editor specific questions?
 
A_V
Ionic framework must hate me
 
SO is fine if it is about a tool specifically for programming
 
12:30 AM
okay ! thanks!
 
But, from your question, SU might be best to start with
 
@Asher Could be one of your browser plugins
 
i'll try SU first
they can move it to relevant place
 
Either could be fine depending on how you word your question...and depending on if jackasses see it
Sounds good
Some seem to think that any tool is off-topic
 
I wonder if sublime can do what i am trying to do..
 
12:40 AM
 
 
1 hour later…
1:59 AM
Have you seen this extension
 
the internet?
 
2:23 AM
morning
 
evening
 
its not using flexbox upgrades yet but its already performant enough
and now when i overkill it with flexbox i wonder what kind of speed am i going to get.
 
How do devtools draw colored boxes over and around elements when selecting them from the inspector? They don't appear in the dom/shadow dom/devtools dom. I don't see any rendering binding for this either :/
@Abhishrek nice
 
@AwalGarg overlays
overlays everywhere !
 
2:32 AM
@Abhishrek overlays of what? where are they?
 
most likely a seperate view layer
on the top of all even over the browsers rendering context
 
but devtools are just a webapp. they run on some weird protocol with permissions to contact native code. but that's it.
 
/* some native code */
 
I meant V8's native code. Maybe it's debugging APIs etc. But V8 has nothing to do with adding anything to the rendering layer.
 
webkit does
 
2:38 AM
so devtools have access to native webkit apis as well?
 
o_O even javascript does
 
wut
 
@AwalGarg stop trolling
when you build a browser you can, must and will use the tool best for the job
 
I am not trolling. I seriously can't find the code responsible for those colored boxes :(
 
lets have a look at the other side
 
2:41 AM
ok?
 
wait wrong link i gave you inspectAt, so sad that chrome doesnt has the ffox goodiness for this in js
 
that is the underlying implementation. how do devtools do it?
 
by calling the binding
btw
 
WHERE?!!!
 
do you have the devtools source code ?
 
2:47 AM
sure. I'll link you to a search if you wanna check yourself.
just a sec
@Abhishrek code.google.com/p/chromium/codesearch there you go. set the path to /src/vendor/devtools and find it out
 
wow
 
@AwalGarg have you found the code that renders the tree ?
 
which tree?
 
The dom tree
which you hover to get the overlays ?
 
2:59 AM
as you can see, nothing for webkit internals.
 
-_- where did i say webkit internals ? they expose them as javascript functions
 
then find them
I am about to lose interest :(
TIL there is an internal function definition to create something or throw :/ awal.js.org/especser/#7.3.6
> If success is false, throw a TypeError exception.
Return success.
 
Holiday :D
@AwalGarg Allow me to search by spec. section no. senpai. github.com/awalGarg/especser/blob/master/src/spec.js#L192-L223
 
3:17 AM
@uselesschien the search is horrible. it looks fuzzy but it is more like "just find anything remotely similar to what the user types except for the last character". It will be replaced soon with more features and magic keywords.
 
@AwalGarg you know what am a tard
 
like sublime text search :D
 
i was trying to find it in a place where we most likely wont find it
 
@Abhishrek ofcourse I know
 
the much simpler way is to find it in react debugger
(lets hope we find it there )
 
3:18 AM
lol no
 
@AwalGarg Oh, lol, yes. You kind of replicated it, including the key binding :P
 
no they do the same thing, if it is a public api they most likely will use it
 
@uselesschien yeah. if you have any keyword suggestions, please open an issue listing them. would make my work 50% easier.
@Abhishrek I hope you are right. But you are not.
I mean how can I be wrong?!
 
inspectorOverlayPage.drawNodeHighlight({
      elementInfo: elementInfo,
      marginColor: getHighlightColor(config.marginColor),
      contentColor: getHighlightColor(config.contentColor),
      borderColor: getHighlightColor(config.borderColor),
      paddingColor: getHighlightColor(config.paddingColor),
      quads: quads,
      showRulers: config.showRulers
    });
 
@Abhishrek github.com/facebook/react-devtools/blob/master/injected/… exactly. it is not the same thing.
 
3:21 AM
> sitename and logo copyright © bookStro 2015-16
> 2015-16
> 16
 
@AwalGarg ^ that function
 
@Abhishrek damn right. I am stupid.
what is more stupid is that it is under webkit/source/web/
kinda the same stupidity they did with the db implementation
 
lol
It does make sense, blink is still webkit and webkit had these too which is why i originally thought they'd be in c and not js , ps @AwalGarg :P :P That facebook bet was so damn right !
and we both are stupid a holes for not searching webkit documentation
now if you will allow me i need to go back to complete my UITableView with flexbox dream
 
3:27 AM
@Abhishrek yeah it stems from webkit but fork of stupidity is still stupid.
 
@AwalGarg Lets not call webkit developers stupid shall we ?
 
@Abhishrek meh it is just bad directory structure. But I can understand why this thing keeps building up in large code bases.
Hopefully someday we will get a big wave of refactoring which will make it easier to browse stuff.
 
or docs maybe
 
> We're excited to invite you to Project Fi. Earlier on, you requested an invite, and now we're ready to bring you onboard. Just click the button below to sign up
useless for me but thanks google
 
3:36 AM
readmes inside subdirectories are a boon
@uselesschien github.com/babel/babel/blob/… brilliant
 
@AwalGarg ahahahahaha
 
bah dum tss
 
@Abhishrek hacks.mozilla.org/2015/07/… in case you haven't read this, I think you might find this interesting
 
@AwalGarg added to my to read list.
 
I have so many things on my reading list.
Including the Intel IA-32 manuals :v
 
3:57 AM
!!urban :v
 
@AwalGarg :V Created by Internet pioneer Joe Griffith in August of 1999, the :V is as ambiguous as it is masterful, representing a variety of expressions and emotions. Occasionally seen on the somethingawful.com forums in one or more forms.
 
A PornHub link too. Why.
Wut*
 
1 message moved to Trash can
 
so I'm assuming you wrote that chrome plugin, @MuhammadUmer?
 
4:53 AM
life is irony!!
 
sweet, sweet irony
 
:( I with no history of a girlfriend (stable or unstable) is working on a matrimony website :( irony
 
@argentum47 lol
 
keep you chin up, buddy
there's plenty of other websites to work on
 
5:09 AM
@AwalGarg hi bru
 
@argentum47 yo
 
whatcha doing?
 
mostly exploring stuff. not feeling well these days so not much code going on :/
didn't even complete the draft I was writing for ya
 
5:23 AM
thats cool ... I am also having some work these days... finishing parts of a project is difficult .. test test and test
 
I know I'm not supposed to, but I need to modify the remote's history. I did git push --forced
and now on top of my commit there's 2 commits deleted. It's unacceptable. How do I solve this?
 
@BenjaminGruenbaum that bluebird wiki you linked me to says we should not do [].slice.call(arguments) because it leaks the arguments object to the splice function. Then it says you should not directly use the arguments object anywhere either. Then it says Function#apply is special and doing somefunc.apply(something, arguments) is ok. So does that mean we can do [].splice.apply(arguments) without harming performance?
 
@AwalGarg BenjaminGruenbaum is afk.
 
who asked you, silly bot
 
@StevensHaen Get caught doing something you shouldn't have been, eh?
 
5:34 AM
I can do git push origin +dd61ab32^:master, but should I do this for my last commit, or the 2 automatic delete commits, that came on top?
@monners definitely
 
my last commit - delete commit 1 - delete commit 2
Should I go for mine with the above command, is that going to get rid of the delete commits automatically?
 
Why can't you just leave them there?
That's the point of source control
 
I absolutely have to get rid of them
 
Why?
 
5:40 AM
reset your head to the commit before them then maybe, then push the changes up?
 
If you did something your immoral or illegal, just bite the bullet - or dust.
 
On git log the last 2 delete commits don't show up, so the tip is mine
I could reset the HEAD, but that means pushing on top of the delete commits, I need to actually rewrite history
 
hey guys
 
Man, you must have done something really shameful
 
yeah sorry, no idea how you f'd up, so not sure how to help there
SHAME
bong
 
5:42 AM
This is why you should never put naked pictures of the boss' daughter into source control
 
SHAME
 
One can rewrite history
 
H.G. Wells tried that once. Didn't turn out so well...
 
 
Hell, you can't even rewrite most of the future, let alone of the past.
 
5:44 AM
@StevensHaen yeah I do Case 2
 
I could imagine creating a bigger mess if this doesn't work out
 
you just rebase to the sha before your SHAMEFUL commits
Nah, you'll see the branch locally
Sorry before hand if we get you fired though
 
@StevensHaen then try coca-cola. Or maybe ask at Lifehacks. As for hiding the gun, I don't know. Can you make it out of ice?
 
user2620028
@taco don't post tv shows with bad plots in here! just the nudity
 
@argentum47 yeah but that is asking about apply on Array constructor. I am talking about [].splice.apply.
 
5:46 AM
@HatterisMad quit smoking crack when you watch it. It's good :d
 
!!afk
 
user2620028
@Taco that episode is the only one i have seen lmao
 
@HatterisMad you find a job over there yet
Ahh
@HatterisMad you should've seen the Ice walker episode. it was epic
 
user2620028
@taco uhhhh well i have been teaching English but i don't know how long i can keep it up. It doesn't pay the bills and it is kids 7 days a week
 
user2620028
I just have a very hard time getting into the soap operas
 
5:49 AM
@AwalGarg I was looking through some currying , and in most places I find people using apply github.com/ramda/ramda/blob/master/src/internal/_arity.js#L4 ..
 
@argentum47 AwalGarg is afk.
 
This post has some solutions
42
Q: Git: permanently remove few commits from remote branch

Arnis L.I know that's rewriting of history which is bad yada yada. But - how to do that?

 
@HatterisMad that sucks. Good luck
 
user2620028
@taco yeah that and i am doing remote customer service for an online software product lol
 
user2620028
$6/hr and all the craziest problems in the world
 
user2620028
5:52 AM
I seriously feel like every time i log in to that support forum the conversation should go like... "No. Sir. Seriously how did you get your dick stuck in the company software again?"
 
@StevensHaen git rebase -i *sha before the f'd up commits* .... "pick" the good commits ... "Simply remove the line with the offending commit" as the article says (delete them) write the file, the next screen will show the logs that will be written
 
The history has to be clean
 
@StevensHaen Seriously, what did you do?
Just give us a clue
 
Just try it without committing? Duh.
 
It's an assignment, history has to be clean and now this ass is going to make me go through tutorials all over again over my git push --force, which is an unacceptable waste of time
 
5:56 AM
history meaning? there should be only one commit ?
 
isn't that less waste of a time than trying to change the past?
 
Ah, well if it's school work, then figuire it out! Wow.
 
Yes, there shouldn't be two delete commits following
Why are they even showing up in the history?
 
rebase commits ? like git rebase -i HEAD~n
 
Is this going to rewrite history?
I mean remote
no ...
 
5:59 AM
and you might know that you can squash the commits into one while rebase .. pick one (posibbly the first) and squash the others thing
 
thanks
 
yeah, like I said, Case 2 in your link
 
@argentum47 ooh arity optimization. well that is. But still I am talking about the general arguments to args (array) conversion. Why not use apply for that...
 
If you squash delete any commit logs you don't want
 
[].slice.call(arguments) is slow in V8, but Function#apply is special so why not [].slice.apply(arguments)?
 
6:03 AM
Don't be scared to break anything. It won't be an issue unless you push it back up
 
The more I learn about JavaScript the more impressed I become with that my code actually works in the google sheets
 
call or apply is having the same signature, except for the way in which arguments are passed, maybe that's why the argument hold in both cases. Lets wait for Lord Benjamin to come :P
but what does it mean to leak arguments object
 
hi guys
i have a problem
 
@argentum47 leaking something means passing a reference to it to another function preventing it from being garbage collected
TBH I don't see how that is applying here but probably some internal magic.
 
does apply create a shallow copy too ?
 
6:09 AM
no. slice does.
 
oh .. sorry :P
 
@AwalGarg hello
 
hello!
 
@AwalGarg I think [].slice is the main thing here not the call or apply .. mdn says "You should not slice on arguments because it prevents optimizations in JavaScript engines (V8 for example)."
 
@argentum47 hmm, that makes sense as well. link?
!!> Array.slice
 
6:23 AM
@AwalGarg "function slice() {\n [native code]\n}"
 
I thought generics got removed? o.O
 
yeah just noticed. It says you should use array generics instead. I think I get it...
 
cool
 
6:40 AM
0
Q: Do preventDefault and then do default behavior

Mr_GreenI have a requirement in a single page application project, where I need to change a page's section when I click on a anchor tag based on the provided href attribute. Something like this: <a class="page-click" href="#showPeople/1">Open</a> This anchor is in a popup on that page. So, whenever I ...

 
I edited the mdn array page to update their generics polyfill. it still seems weird to have it there but if people really want it... why not.
I wish it standardizes anyways.
 
0
Q: Get remote stream with out peer connection using Easyrtc

shineI am using easyrtc for a video chat application. i have to get someone stream before peer connection.Now geting remote video on after call but i have to get remote stream before calling. is it possible? how to get remote stream?

 
@Mr_Green simply remove the preventDefault call. your code will still run, alongside the default action.
 
I was trying that first.. but it ain't work
 
But I am not sure I understood your situation entirely correctly.
 
6:45 AM
hmm
I will create a fiddle wait
 

« first day (1720 days earlier)      last day (3230 days later) »