« first day (1866 days earlier)      last day (3084 days later) » 

9:00 AM
it was about time
 
Hi @GNi33
 
Hello
 
how are you?
 
tired but fine, how are you doing?
 
9:04 AM
@MadaraUchiha I added a short explanation to the answer you just edited.
Also, I really dislike "It works, so it's not wrong"...
 
@GNi33 fine
and rejoiced
 
@Cerbrus I know
 
wife is coming back with the little guy today after 6 days to her family
 
"tired but fine"? "fired"?
 
Although I normally just edit the technical inaccuracies out
Contrary to popular belief, editing code in answers is perfectly acceptable as long as it doesn't change the meaning of the answer.
 
9:07 AM
@MadaraUchiha I usually don't. Because... popular belief
 
@FlorianMargaine you probably coded a lot the last week, didn't you? :D
 
@GNi33 ... shame on me
 
@Cerbrus Well, please do. It improves the quality of the answer, and worst case, author just reverts, no harm done.
 
@Cerbrus nope, I'm just tired because my sleep hasn't been the best lately
 
Yessir
;-)
 
9:10 AM
A good answer there would be to use .filter() though
And a sprinkle of arrow functions
 
So, what he's basically trying to do, it determine if an array of numbers contains a certain number (variable).
 
Hmm. If my edit got reverted, will I get a notice?
 
Nope
 
Oh. Sad. But maybe better this way.
 
@Cerbrus indexOf?
 
9:12 AM
@FlorianMargaine Or even .find() if he's brave enough
 
That's what I'm thinking
No need to grep
 
@MadaraUchiha well, browser support is better for indexOf
although still IE9+, iirc
or IE8+?
 
0
A: passing parameter to jquery $.grep

CerbrusSo, what you're basically trying to do, it determine if an array of numbers contains a certain number (variable). There's no need to over-complicate this with grep. just sue indexOf: var array = [ 1, 5, 12, 31, 7, 69 ], search = 112, hasNumber = array.indexOf(search) !== -1; do...

 
@FlorianMargaine 8
 
@FlorianMargaine Oh, I was wondering how you managed to push so much... I didn't think the kid was still away :)
 
9:14 AM
@DenysSéguret hehe
 
@FlorianMargaine Check MSDN. They have a page for each function for each available IE version.
 
I wrote about a dozen lines total in my open source projects since a week :(
 
@Sheepy I don't care that much
 
@Cerbrus document.write?
 
*shrug* xD
I know, it's wrong
 
9:15 AM
@FlorianMargaine That's ok, in this case. indexOf is really old.
 
@Sheepy not that old for Array.prototype.indexOf
String.prototype.indexOf is really old, yes
 
@Cerbus Yes, though this is not Question ? Could use Array.prototype.filter() in place of $.grep() to avoid calling jQuery as well — guest271314 1 min ago
Yeap, let the nitpicking begin. I'm not using the method the OP wants
 
Apparently we can build bridges out of paper now
 
How do I execute a javascript line here?
 
9:19 AM
I find that paper bridge to be rather fitting as a synonym to inefficient code.
 
@Cerbrus I don't think you answer the question. Personally I immediately flew from this QA as it was so unclear
 
Too much water (load) and the bridge (code) breaks.
 
Most bridges break when there's too much water
(not pretending that a paper bridge looks like a bright idea)
 
!!s/Most/All/
 
@Cerbrus All bridges break when there's too much water (source)
 
9:20 AM
@ErroreFatale Press F12. If you don't see a console, click "console". Type and press Enter.
 
It's the "too much" that depends on the bridge.
 
I'm just amazed to see a question like that get 6 answers in less than an hour
 
@Sheepy I know that in THIS chatroom you can write a javascript line and see the results. I saw other users doing this...
 
@ivarni Averaging 11k reps each. Pretty interesting.
 
!!> console.log('she isnt?')
 
9:23 AM
@ivarni "undefined" Logged: she isnt?
 
Oh!
 
So, Caprica is not of stackoverflow?
 
@ErroreFatale There you are :D
 
@ErroreFatale No, it's a community-ran bot (open source and all that, too)
 
ok
It would be good to show my problem directly with the boot. BTW...
(parseFloat(elt) * 100)
 
9:25 AM
morning
 
if elt is 0.036, the result is 0.03555555555555
 
!!> parseFloat(0.036)*100
 
@Neoares 3.5999999999999996
 
:o
!!> 0.1+0.2
 
@Neoares 0.30000000000000004
 
9:26 AM
same happens there
 
sorry... 3.59999999999
 
it's because of binary
one does not simply represent decimals on binary
 
one??
Ok, but then how do you do math with javascript?
Using float numbers is a perfectly normal use case...
 
Math.round displayed values.
 
9:31 AM
Alternatively, google "javascript bigdecimal library"
But they are slow, like all bigdec lib.
 
Float numbvers in javascript are of 32 bits?
 
@ErroreFatale 64bits.
 
Ok
thanks
 
FYI, js integer is not limited to 32 bit either - as long as you steer away from bitwise ops.
!!> Number.MAX_SAFE_INTEGER
 
@Sheepy 9007199254740991
 
9:35 AM
!!>0.036*100
 
!!> 9007199254740992
 
@CSᵠ 3.5999999999999996
@Neoares 9007199254740992
 
safe enough
 
Yes. :) And it is accurate. 9007199254740992 is no longer safe for ++
 
!!>Math.round(0.036*100)
 
9:38 AM
@ErroreFatale 4
 
!!> 9007199254740992++
 
:)
 
@Neoares "SyntaxError: invalid increment operand"
 
You need a variable. :p
 
so true
 
9:39 AM
!!> var i = 9007199254740992; ++i;
 
@Sheepy 9007199254740992
 
There, an infinite loop!
 
crl
more like an infinite constant sequence
 
!!> var i = 9007199254740992; i++;
 
@Cerbrus 9007199254740992
@happy 1
@happy 1
 
9:44 AM
@happy What is ` i < -1` supposed to do?
 
nothing, at first I tried
!!> var i = 0; i < 10; i++;
 
@happy 0
@happy 4
@happy 0
 
meh
 
I think happy is thinking a for loop. Without the for.
 
you help me realize I should sleep
 
crl
9:46 AM
!!> var dumbSequence = i =>{var j=9007199254740992;return ++j}; dumbSequence(42)
 
@crl 9007199254741034
@crl 9007199254740992
 
Yeah. If you lower the precision to two (instead of one), it can keep going for quite a while.
 
crl
what's that sorcery
 
lol sorcery
This is floating point. In effect, the bit representing "1" is dropped. So the lowest bit is now "2".
 
dammit I have to go shop for grocery
I hate that
 
crl
9:50 AM
did 'sorcery' make you think of that?
 
wat, no
mum told me that
 
@AwalGarg can't it be done online?
 
I live in India. Do the math.
 
@AwalGarg how does your daily grocery list look like there?
 
never been in India. I'm in Canada
 
9:59 AM
@CSᵠ I have to get rice, some soap and honey for now. We get a fortnight's grocery in a batch though. That includes a lot of pulses and grain, various kinds of soaps, and my cookies (among other little things).
My mum makes ghee at home (and sometimes butter too)
 
crl
grocery+3Pi/2*India = .. oh I get it
 
@AwalGarg oreo or chips ahoy?
 
@Neoares neither. I like cookies from a local brand. They taste really good.
 
:o
 
@AwalGarg isn't ghee made from butter ?
 
10:02 AM
ghee sounds interesating...
 
(sorry, I'm ignorant, I always buy the ghee already made)
 
crl
!!learn img google.com/search?q=$encode($0)&safe=off&tbm=isch
 
@CSᵠ If you like to cook, you should try ghee
 
@crl Command img learned
 
@DenysSéguret Don't think so. She brews it from... I dunno. Something something is done to cream and then ghee and a chocolate like powder comes out.
 
crl
10:03 AM
!!tell CS img grocery+india
 
The smell of brewing ghee is wicked irritating. But the ghee itself is really nice.
 
@AwalGarg as butter is made from cream, it makes sense
 
crl
!!img awal+garg
 
10:05 AM
@DenysSéguret yeah I think a little changes to the ghee recipe results in the butter recipe
 
We don't buy grocery online either. There is always a supermarket downstair and fridge is too small.
 
crl
Awal, found your photo!
 
great accomplishment
 
crl
:>, now let's try next level
^ Awal ftr
 
good look finding anything about me on google, lol
 
crl
10:09 AM
too many damn Indians, I'll google image your photo, might give results
 
May be we need to try Khoj the search engine.
 
is there a recommended ng-module for role/permission based routing (ui-router)?
 
@crl i've seen that before. that was ...
 
to be specific, anything like this for AngularJS github.com/Zizaco/entrust?
 
Is there a browser extension, that, instead of storing my password, stores a password "hint" for each site, and shows that hint when I am trying to login/whatever? I use passwords which I remember and not random crap, but I don't remember which password I am using on which site :/
 
10:19 AM
AFAIK , the link function in angular is for "register DOM listeners as well as update the DOM." — If so - then why one uses it to push formatters and parses : eg : ctrl.$parsers.push(..)
 
@AwalGarg that would be nice. What about using a google account, login in chrome to manage your passwords easily among devices?
 
@happy Is "I don't trust google" a satisfactory answer? :P
 
@AwalGarg develop your own algorithm in your mind which uses the website as seed. Then use the output as password.
i do that :p
 
@AwalGarg meh. Not trusting wont prevent the government from tapping your internet
 
it become a habit to "decode" the website name to a pw
 
10:23 AM
I do something in between. I hash a site mentally and maps to a set of passwords.
 
@KarelG I chose passwords based on my trust on the website. I'll not use my gmail/github password on some random low profile website, for instance.
 
the argument is equivalent of not wearing cloth because you are filmed. Naked or not you still will be filmed so why not making it a comfort by wearing cloths
 
@AwalGarg you shouldn't reuse your password ...
 
correct
 
just do this: website A --> gives password A. Website B --> password B
 
10:24 AM
@happy Ok. The real thing is, I am not the only person who uses my laptop. And "friends", have the habit of peeking in saved passwords.
@KarelG explain
 
crl
I wouldn't trust my mom either
 
in node.js
 
fe if the website is www.crap.org, then my password will be cR_nothing_1uSt_ftkg
 
then put a password into your local machine account. Chrome require local password to see password
 
is there a way to require() a file that's written in es6, and have it automatically parsed by the server?
 
10:25 AM
@AaronHarding babel
 
so i have to use babel to compile the file into es5?
like you do in the front end
 
@AwalGarg most attacks occurs by dictionary attacks. These dictionaries exists of leaked e-mails and passwords hooked on that.
 
@AaronHarding module keyword with babel
 
@KarelG And if someone knows this algorithm, it becomes sooo easy for him to guess all your passwords.
 
try to know that because i don't tell that, neither i tell my password :p
 
10:26 AM
@Sheepy thanks
 
p@s$w0rd is no more secure than password
 
I don't save any password in personal computer.
 
@KarelG Which hints that we should not reuse the same password again and again. That's not what I do.
@KarelG lol, that's such a weak argument
 
your algorithm should use a unique salt for every site and no, the website url is not a good salt
 
^^^
 
10:27 AM
you can only reverse engineer if these sites which i have an account on leaks passwords ...
you don't even have a key, unless that example that i gave. But that isn't enough for reverse engineering
 
how get hacked by anon teens\
 
but ofc i don't tell all details :P
 
@happy for me chrome just autofills passwords on all websites like anything
 
because google wants that
they even overrule the protection attribute
 
and repair broken as hell code
 
10:29 AM
It is like... I am working on some leet thingy, and "friend" comes, takes away the laptop like he owns it, and opens a new tab and starts working. It is kinda the culture, there isn't much I can do about it.
 
@AwalGarg then your friend need a lesson. a laptop is like underwear. If you share you need to revert it
 
@AwalGarg while you're even on it ?
 
I can't go teach everyone, specially when "one" is a family member. So I need to stop storing passwords and start storing "hints".
 
Bitdefender has an extension called Bitdefender Wallet, that is activated if when booting the machine you insert the master password, if not, it's inactive...
 
but chrome/FF don't like that. Guess I'd have to write my own extension.
 
10:31 AM
put a password on your local account. make your laptop behave in a way that if you shut the lid it lockdown. Then create a new limited account with no password or just activate the guest account
 
@happy I agree with Awal that in less developed countries, notebooks are often shared. Cheap pads are helping turn the tide, though.
 
@happy I can't put it into words, really. I just can't do anything apparent to isolate my stuff. It comes off as rude.
 
do you know veracrypt?
 
@happy the default setting is to go in sleepmode when you shut the lid. When back online, it asks for password since it's locked
 
And have a guess account ready, for your friends will ask for the password. ;)
 
10:33 AM
@KarelG this rely on settings which can be changed. modifications depend on system
 
mhmm, I'll just go with writing something of my own
 
just curious
 
you will still have a sync issue
 
@happy chrome extensions can sync data
 
is there not an extension which acts as a safe ?
 
10:34 AM
has anyone worked with inquirer? -> npmjs.com/package/inquirer
 
@argentum47 hangouts
 
hmmm @AwalGarg you should checkout Bitdefender Wallet, it does everything you've been talking about
 
@feniixx I don't use windows
 
creating a system on your own make it more likely to be insecure
 
each time you have to enter a pw, you have to enter a master key (password to unlock the safe, which then autofills the field )
 
10:35 AM
Bitdefender is available for mac/linux/win ...@AwalGarg
 
@happy only if we actually store anything important in it.
 
your idea is interesting
 
hah, everything I come up with is born from my personal needs. guess the old quote is right indeed
 
you could have a json file with your parameters in it and load your extension using dev mode
 
don't forget to use a symmetrical encryption to store your passwords
 
10:39 AM
@happy The implementation is not a big deal, I'll get around it. Just need time.
 
i've seen an extension which locks the pw's as plain text
 
@KarelG -_-
 
@AwalGarg Firefox has config flags to disable autofill. But I am not aware of any extension that gives you password hints.
 
yep, aware of that
 
> Lists out the password requirements for the current website
 
@happy that's not what I want
 
seem to be the same principle to me. you want hint it provide hint just not hinting the same thing
it also permit you to hint the password
plus it provide information about the kind of password the website require
 
Yes. It seems to fit your requirement - you can input your own hint.
 
since I joined a a company I have been given a custom gmail address like abcd@company.com .. I know that if I am logged in with gmail account and I search stuff (mostly using chrome) so my search history and stuff must are trackable by the owner of company admin ?
 
10:43 AM
oh, I missed that detail. let me check
> Read your browser history
 
@shortCircuit it can for several reason
 
@shortCircuit Google will says no. At least not through them. Unless your company happens to be NSA.
 
@Sheepy it is feasible. harder since google implemented code injection restriction
 
@shortCircuit if you use search, it will always lead to www.google.com/?q=<your search param> That will always be visible on both network (packages -) and application layer (browser / OS )
unless you use vpn. But they would notice that
 
oh, are the search history stored anywhere? I mean can I delete it if stored
 
10:47 AM
@happy that works for my usecase indeed, thanks!
 
you can delete it but it will not prevent the network admin from seeing your habit
 
you can delete your own search history, but not the routing logs fe.
 
@AwalGarg great!
 
this should be core browser's functionality :D
 
heh, private browsing isn't "private"
firefox has a copy of what you did hidden in the profile folder, even if you clean up your history
 
10:49 AM
also if you are using business email trough your own machine beware that your IT service could have implemented a security policy making your computer able to receive remote administrative tasks
aka remote whipe
 
@happy can it even bypass your own secure settings ?
(if you're on a computer which isn't managed by their AD )
 
@KarelG yes
 
how ?
 
those are feature of activeSync
 
it's only for the content within that app, not outside
that's not a problem
 
as of gmail for business ; support.google.com/a/answer/4580176?hl=en
 
i got a ping to that "removed" :/
 

« first day (1866 days earlier)      last day (3084 days later) »