« first day (1897 days earlier)      last day (3275 days later) » 
00:00 - 17:0017:00 - 00:00

17:01
Angular Atlas - A little weekend project
https://github.com/kamranahmedse/ng-atlas
crl
crl
!!how deep fucked in cm?
@crl 5/10
crl
crl
@KamranAhmed nice
Thanks @crl :)
crl
crl
how did you make the search/dropdown field?
crl
crl
ah select2 ok, thanks
crl
crl
we should be able to customize the native <select> button (have an input in it) and be able to add children in <option>, hopefully in HTML6, I feel it won't happen
Hello, how do I get a question taken off hold? I edited my post to fit the guidelines better.
@Laere 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
crl
17:15
!!> Object(2)===2
@crl "false"
crl
crl
@AwalGarg excuse again:) , why not typeof obj==='object' there
!!> typeof null
@AwalGarg "object"
!!> Object(null) === null
17:18
@AwalGarg "false"
because this
crl
crl
ok, if it's only that, we could add just a case for null
or just use what he used
crl
crl
ok :))
want more?
!!> var x = new String('foo'); [Object(x)===x, typeof x === 'object']
17:20
@AwalGarg "false,false"
why have 2 cases if you can have only one
err, well, you get the point
@AwalGarg "true,true"
crl
crl
!!> var t=x=>x; Object(t)===t
@crl "true"
crl
crl
17:21
^ covers function too (for line 3), but it's more clear like that, ignore it
@crl yeah, that's for readability
should probably be a comment, I guess
@FlorianMargaine how do you synchronize your dotfiles with your github repository?
crl
crl
isn't there a way to set bound=this once at loading and not on every get calls, since it's always the same one used later by all extensions, no? gonna check ok
long story, I wrote it in a blog post. cba to get the link
awal.js.org/blog // I wrote this by hand here, might be wrong
crl
crl
yeah was reading, no worry :) that's not as if you had 100 blog posts :)
Hey guys how do I get my SO question off hold?
crl
crl
17:35
edit it and put a goat image in it, that's always appreciated
@Laere post a link to the question here?
@towc I did google, but it is of no help. All, that I found were mostly phpStrom and intelliJ themes, that might be good, but is hard to choose due to small amount of js code preview.
@Eugene so you did find some themes...
@crl just like most people who start a blog, I had thought of keeping it alive. but well, I am a programmer anyways, lazzzzy
make your mind up...
17:37
I already edited to try and fit the guidelines Awal Garg: stackoverflow.com/questions/34473157/…
still a bit new to SO
crl
crl
same here :)
@Laere that's much better than most questions posted, thanks for putting in the work. Can you edit it to add a runnable code snippet (or link to the JSBin on which you were working). It would have ended up on the reopen review queue and will be opened up in due time.
yeah let me add the JSBIN Awal Garg, and appreciate it
As for your question, can you tell me why does your clearInput function accept an input argument?
what is that argument? and how does it get passed to the function?
well in my actual code the input arg is a variable that is in the scope of another function
and that variable is basically the same variable in the JSBIn
it grabs the usertask element
still new to how functiosn and scoping works
but I passed the parameter input into the clearInput function to use the var input
if that makes sense
Might make more sense if I posted the entire code, but I don't want to clutter the question
17:47
console.log(input); inside the function
so. function A () { var input = document.querySelector('#userTask'} function clearInput(input) { //do something }
whoa
no idea what that is
it logs the value of the input variable ofcourse
someone pls tell me who knows opensuse
linux
can you define the same variable more than once?
like can I create the same variable in another function with a diff name attached to it
or is that bad practice
Define once, set many times
17:49
because if I do that, then what I want works
Well the variable is defined in another function
anyone who knows bash shell?
which is why i passed that var as an arg
Ohh yea, to can reuse names hen it makes sense
bin bash chat is empty
@InevitableDreamer I know the basics.
17:51
Ohhh I got it
I just put the variable into the global scope, and passed it to the function it was in previously and the clearInput function
and it works now...I still have tons to learn lol
In JS, variables exist in the function they were declared in, or any function that was called from within that function.
avoid global scope, when possible. It makes it hard to remember where variables are used
Ah
sucks I have to go to work now, so I don't pollute the global namespace
I mean do I want any variables in the global scope ever?
crl
crl
17:53
would be better without any
@Abhishrek answer on hangouts :/
crl
crl
but for development, you can, makes it easy to debug
(function(scope){

var temporaryGlobal = 1;
var myLibrary = scope.myLibrary = {};

myLibrary.libraryVariable = 2;

})(window);
I like doing this, where temporaryGlobal won't exist after the closure, but myLibrary will be a container in the window.
crl
crl
myLibrary will be a global var
yea, that good but the name temporaryGlobal is misleading.
17:56
Yeah, naming variables after a week of christmas parties is a greater task then I thought
and putting one or two items in window/global for your whole app is ok.
easy to keep track of
if you must
18:21
Hello
@ewrwr 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.
18:36
@AwalGarg oh damn this guy talks so fucking much
@Abhishrek just stay on hangouts goddammit
crl
crl
18:55
meh already seen
<div ng-repeat="user in users | filter:{'id': 1}:true"> this is not working for me in Angular 1.4.8
I get this error:
Error: [filter:notarray] Expected array but received: 1
@copy wow !
@Abhishrek ?
@BadgerCat saw his rep on stackoverflow
18:59
wow
9
Q: How to find the closest element using jquery

MahadevanI have searched in SO I found so many examples but mine was little different from all. 1) initially i have a row if the user click save & next button it will say you have 3 fields missing 2) if the user click the addmore button and he did not type any value in the text field then he click th...

still now no anwser for this question almost 2 days :( i am also trying
i need help :(
pls
3* days :(
@AwalGarg I just use Dropbox nowadays
@FlorianMargaine how does it update your github repo?
@AwalGarg it doesn't. the github repo is outdated
@FlorianMargaine oh, hmm. I made a dotfiles folder and ln -sed my configs in there keeping the directory structure and git inited. was wondering if you have a better way :P
19:07
I have some confidential infos in my dotfiles, so using github doesn't make sense anymore
(e.g. aws keys)
@AwalGarg I do the same but with the files in Dropbox, basically
@FlorianMargaine I am going to use this technique to handle that: wiki.archlinux.org/index.php/Mutt#Passwords_management, but I think dropbox might actually be a better way
crl
crl
noone like drive.google?
@AwalGarg this works for some clients, but not all
@crl there's no real linux client
@AwalGarg typically, aws cli expects the keys to be in env vars
crl
crl
yea, anyway the client sucked on windows too (no way to filter which folder to sync, and it sync everything on the root) last time I used it
19:15
@FlorianMargaine well, surely you can encrypt a file called ".SIKRIT_ENV_VARS" and source it from your .<terminal>rc file, right?
yeah, I'm not sure of the usefulness of encrypting local files though
my hard disk is already encrypted
and I don't really like pushing sensitive files out there in public, even if encrypted
crl
crl
hehe github.com/awalGarg/especser/blob/master/src/mod/utils.js#L1-L8, like the fragment.innerHTML=something I wanted
Working on some really nice function jsfiddle.net/4apd6to0/2
but guess what, touchend event doesnt work on android!
Omg
while its nice to see someone refer to my code, I must warn, if you suffer headache from reading anything from my github, I take no responsibility.
@AwalGarg damn I got blind from reading your code. Im calling my lawyer
oh nvm. I cant if im blind lol
20:02
0
Q: Touchend doesnt work, even after calling e.preventDefault()

AspergerOk I am in a big predicament. I stumbled across the touchend bug. After touchmove the touchend event doesnt work, no matter what I do. I tried adding preventDefault() within touchmove. I also tried to replace touchend with touchcancel. It all fails. I did that read that this is related to scrol...

Just in case someone is familiar with it
20:45
@Asperger because blind people can't use the phone?
it would've been funny with e.g. deaf or mute people but blind...
21:00
so... vim has its own clipboard, can't share the X11 clipboard. which kind of makes sense because headless, but ... eww
You can use the X11 clipboard. It's "*p and "*y IIRC
" selects a ring (or register?), * is the system one
I didn't mean "can't" in the sense "not technically possible"...
crl
crl
*doesn't :)
It's even less than that, it just has a concept of different registers
Which is confusing and perhaps foreign but not much more
Holy code monkeys,..that's one in-depth answer. What's great is that you probably wrote in in vim in about 10 keystrokes. — Stimul8d Nov 27 '09 at 15:36
hehe
21:04
vim sounds fucking awful
Programming is pretty awful too
You just get used to it, sorta.
you should just get better at programming
Make me
one day you'll achieve the zen of not giving a fuck
agreed. @Zirak sucks at programming
21:05
@AwalGarg so much
It's parabolic. Sometimes you're in that zen, and then you emerge, flabbergasted by stupidity.
start from the basics @Zirak
@AwalGarg I'm on my Windows partition, does it get more basic than that?
@Zirak You should try JavaScript, it's kind of like Java
@Zirak fixed the problem.
The thing is both touchcancel and touchend have to be called on android
since the bug hasnt been fixed until version 6 of android
21:07
@phenomnomnominal No thanks, I'm using LiveScript, it's like living.
@Asperger Great
@Zirak what a leet guy
@Zirak like... visual basic 6.0 enterprise?
Oh yeah, that reminds me: Just from reading their website, can anyone tell me what does this company's product do? spigit.com
@Zirak its abit unclear
at least for an outsider like me.
@Zirak Is that apple's website from when they started? :P
21:11
I hate those endless scrolling websites. I know its modern and all but oh god, they should scale down the use of it!
a software platform made to keep everything up to the most modern standards?
@towc is it?
I guess
@towc "I guess" is bad for them. So they make us guess what they are actually selling unless we are insiders
yeah, they definitely are making a mistake
21:14
"We are Interchange. We create amazing solutions."
ehm what solutions? lol
I think it's a demo website to showcase design or something
@towc what about user friendliness?
it's pretty well done
for who doesn't mind flat design
they are obviously selling hiking shoes
@towc No, it's a very big company selling a very enterprise-y product.
21:15
oh, sucks to be them then
And like all enterprise-y products, you won't get to know what that product is
I am sending that to my government and local media, they'd love it.
@Zirak things
They sell real products to real people
They like to keep it real
inb4 zirak is an insider
21:18
they're hip and happening
so, who has watched Making a Murderer
crl
crl
@Asperger well I hate pagination, so I still prefer infinite scrolling
there should just be pagination on the same page, like #start=10 and everyone will be happy
that reminds me, the "star wars fan-ship" has arrived in here as well. not as much as this room and rest of the internetz, but still observably irritating.
7 messages moved to JS trash
Fuck Star Wars
5
I WANT TO SEE IT WITHOUT PREJUDICE
21:26
oh ok sorry man
kicked cause you piss me off
crl
crl
kiwis kick quick
Wow. So that was a real ban
Dang, I thought everyone saw episode 7 up to now : /
@phenomnomnominal let the world know this, pinned. hopefully the entire world will suddenly come to this room and notice it.
Noticed that I was the one kicked because of spoilers? Phemomnomn is turning to the dark side. Im innocent :D
21:31
sorry but you missed a couple of "nom"s
haha ya. I have difficulty spelling his name.
!!> phe${'nom'.repeat(20)}inal
@AwalGarg "phenomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnominal}"
hey wait! Caprica is a damn bot....what the??
@CapricaSix are you human?
@Asperger "SyntaxError: missing ; before statement"
@AwalGarg "phenomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnomnominal"
21:35
!!> he${'ll'.repeat(20)}0;
@Asperger "SyntaxError: missing ; before statement"
@Asperger "SyntaxError: missing ; before statement"
Can someone explain how this works? : /
@Asperger "SyntaxError: missing ; before statement"
21:42
@Zirak why do you still have a windows partition?
@FlorianMargaine Playing games
@Zirak linux can do that
Not all of them, unfortunately.
And when I say that, I mean not without taking a considerable investment of time to make them work right
@Zirak I, uh, have no idea :/
in PHP, 46 mins ago, by bwoebi
http://lxr.php.net/xref/PHP_MASTER/ext/standard/var_unserializer.c#399
@KendallFrey, @SomeGuy
user image
4
21:55
@Zirak poor gingerbread
@Zirak that said, can a gingerbread scream?
Can houses scream?
I do not know the answer.
22:08
smart houses feel pain when you put up paintings
22:19
How Can Houses Be Real If You Don't Have A Sense Of Togetherness?
22:41
I suck at writing readme's
and life
but writing readmes in particular
good at plagiarizing though
crl
crl
22:56
#school-times
crl
crl
23:13
I guess it's not possible to have 2 spread operators in function arguments :( or even 1 and other arguments after
no, but maybe you want destructuring?
crl
crl
ah indeed, passing the arrays
@crl uh...
how would you expect that to be parsed?
crl
crl
without types, not possible indeed, but in Java you can do void shit(String... s, int... i)
why does your extra argument have to be after?
crl
crl
23:16
good question, could change that
I'm stuck
Can someone tell me how can I access variables within another variable, without making a new variable in the function itself.
@Laere wat
So I want function A to use function B's variables, without creating a new variable within function B for the same thing.
crl
crl
nest them
23:20
@Laere why?
@Laere you could pass an argument to function A from function B.
Yeah I tried that, but it isn't working. Are there rules for passing args to other functions? I am still trying to understand the fundamentals
Hello everyone! I'm trying how can I make more then 1 XHR that take data from another website at the sime.. When I try 2 make XHR the second xhr wait the first to finish, how can I avoid that?
@GregoryWullimann 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.
@Laere answer my question, neophyte
crl
crl
23:31
at the sime = at the same time? wow I found lazier than myself
....................................................................^someone
crl
crl
yes :))
Ahaha OPS! I don't how I wrote that.. Sorry :)
crl
crl
no worry that was funny
wors are disappearing you guy
crl
crl
23:34
@GregoryWullimann normally they are asynchronous, totally independant
@crl Yes I know.. I'm trying to download 2 Blob at the same time, the point is that when the first file finish the download the second start :(
crl
crl
fiddle it
Anyone familiar with accounting.js?
@Darkstar 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.
00:00 - 17:0017:00 - 00:00

« first day (1897 days earlier)      last day (3275 days later) »