« first day (2797 days earlier)      last day (2145 days later) » 

1:10 PM
Hey there
Is there a particular pattern to include JS plugins in my project? I have this project where I need to add a new plugin, but I'm a bit confused about how to do it.
I downloaded the latest release, took the src folder, and copied it to the project root folder.
I also put it into a plugins folder, but I don't know if there's a particular way to put this into my project without running npm, because my project doesn't use it.
It looks like this
 
usually you'd use a package manager of some sort
like npm
 
This project has nuget.
 
You can still use npm
 
But I was told to add the folder manually without nuget.
 
So you'd run npm install imask, and it would stick that into your node_modules folder
nuget is a .net package manager afaik, it's not related to js
 
1:17 PM
I see.
So I guess there's no way to do it without npm.
 
Well you have bower_components there, which is a package manager
 
I'll do it that way and if someone complains they can go fix it themselves.
 
I feel like you might be a little confused about what all these things are
 
Oh is it?
I thought it was a framework based on bootstrap
 
@KarelG API?
 
1:19 PM
web service to be correct
 
@HéctorÁlvarez bower.io
 
I proxy rightgif.com
giphy is misleading command name
 
thanks :)
Oh hey @rlemon
We thought you died somewhere horribly.
Good to see you didn't ripperino.
I guess you got some spam asking for your hosting to be fixed.
 
I was screwing with ssl and took down a bunch of sites.
I'll handle it
 
is lorem pizza a proxy too? :P
 
1:35 PM
Awesome, one day we'll have Arnold back.
!!brb
 
We miss you Arnie.
Alright so related to NPM, I just installed the latest package for Node, and updated npm.
Now I go to install imask (My plugin) and it throws an error. Expected V4.0.0 or higher, but npm version is 2.7.4, node version 0.12.2
npm WARN engine imask@3.4.0: wanted: {"npm":">=4.0.0"} (current: {"node":"0.12.2","npm":"2.7.4"})
{ npm: '2.7.4',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.2',
  openssl: '1.0.1m',
  uv: '1.4.2-node1',
  v8: '3.28.73',
  zlib: '1.2.8' }
Got this from the version command, but I just ran npm update npm -g
 
@KarelG no, it's like 30 pizza images on rotate
 
Hmmm can someone help me sort this out? I don't use node or npm too often and I might mess the whole thing :|
 
if you're very scared, hire someone
 
1:45 PM
Are you kidding me?
xD
 
No, he's not.
 
Node version v0.12.2, but It says 10.4.1 on the website.
Wow this room. No wonder they threw that rant post not so long ago.
About chatrooms being in dire need of help.
 
nothing that was said was rude
he suggested you hire someone
 
only 30 robert?
 
Again, if I was new here I'd have left immediately and tell everyone Stackoverflow is full of kiddos.
 
and that would be your own downfall
 
Which is straight to the point of SO chatrooms being unwelcoming.
Nah, I will disagree with that.
Most newcomers are usually scared away, I've seen in the C# room for reasons like this particular one.
 
you asked a question, someone said if you're scared about solving it hire someone. and then you derailed the room into a welcoming mini-rant
 
how do you suggest to change it in a reasonable way?
 
1:52 PM
good morning
 
the only thing here I see that is discouraging to newcomers is the attitude you're displaying
 
Wow no one said good morning back in under 30 seconds this room is too unwelcoming
 
@HéctorÁlvarez How did you install Node? It's outdated.
 
@Vap0r no
 
@littlepootis Just ran the msi package.
 
1:54 PM
fair enough it wasn't that good anyways. Traffic over the bridge was terrible
 
😲 G͍͎O̥O͏̖D̦̭̟̬̹ ̶̩̮̤M̫O̲̭̲̲Ṛ͞N͉̺͠I̮̞̬̝N̪̼͍͝G p̝̤̼̖̦̝̱ͪ͗̃͗͊̄̓l̩͙̻̼͕̳̼ͫ̾ͮ͗̓͂͂̀s̊ͤ͊̄̄̍̃̚҉͉̭̜͔̳͈͜ͅ ̬̬̭̼̙̞͗ͩ̍ͪ̈͊̎́r̊ͨͫ̈́ͭ͏̩͈̘͎̝̫̬e̻ͥ͛͐̔̏ͦ̈͠͝p̛̭̞̙̰͎̦̩̣̘͒́͊͆͐͒l̸̟͖̝̱̪̲̈̄̄́͜y̷̧̓̀̆̾̋̊̚͟‌​͈ 😲
This is how you attract attention.
 
@HéctorÁlvarez I don't know what an msi is, but download the latest version.
When v0.12.2 was released, I was a virgin. Now I have 3 kids.
 
@littlepootis that's scary
 
Children are terrifying.
2
 
1:56 PM
@littlepootis please ensure that you removed the "like a virgin" song from your play list
 
@Vap0r GOOD MORNING DEAR
 
a deer? where?
 
Weredeer? Run!
 
🙀
 
where to run, dear?
 
2:00 PM
@MikeTheLiar I almost missed you
 
I see you've been practicing your aim.
 
🚽
 
^ what he said
 
missing something smiley
or smelly. up to you
💩
 
@SterlingArcher down 20lbs from keto now
Easiest way to lose weight ever. Seriously.
 
2:11 PM
When did you start?
 
@ndugger how? making more effort at shitting?
oh wait, "keto" is the diet name
 
I think it's been almost 2 months? And I have been way less than perfect at it
Once I lose another 5lbs+, I'm gonna start working out again.
 
@Neoares Keto does get you constipated, so it's true
 
HAHAHAHA
here it comes, here it comes
 
🐰 💩
 
2:23 PM
And you lot call yourselves professionals! I never!
 
My army is growing
 
I think you should stop breeding now.
 
@ndugger 10 rep
 
Where does a king keep his army? Up his sleevy!
 
2:28 PM
@KendallFrey In his prison wallet.
 
i'm bad at puns, boi
@KendallFrey ufffff what
what's a sleevy
 
a thing for an army
arm
sleeve
army...
 
sleeve
> the part of a garment that wholly or partly covers a person's arm.
 
I only wear sleeveless shirts
 
oh
 
2:29 PM
so where do my armys go?
 
arm = sleeve
arm + y = sleeve + y
good pun
 
Q.E.D
 
i got it from putt putt
 
hey, I can only digest 1 pun per day
 
I used to love putt putt. That damn purple car is probably why I'm so depressed, though.
 
2:32 PM
- Ibamos yo y Towc...
- No, ibamos Towc y yo !
- Vale listo, yo no iba.
spanish pun, bois
lol it's actually a good one xD
 
Obama yo, why manly?
No, Obama! Manly you!
Valery listen, you're no IPA
translated that for you all
 
lol
sorry I edited it and changed the name to Towc
but hey, good translation
 
2:47 PM
I'm not a laughing sto... oh wait
 
> Obama you're so fine you're so fine you blow my mind HEY OBAMA! HEY OBAMA! - Randy Marsh (2008)
 
> - JFK
 
> - Michael Scott
 
@KendallFrey not from puff puff?
 
2:53 PM
Is that a real quote?
 
Ah
 
ha, the second post
 
I better stop before I get banned
 
2:55 PM
banned for that ?
that would be silly
 
In today's social climate, it shouldn't surprise anyone.
 
yes, like if someone would escalate that to twitter
 
hitler is a touchy topic
but no one even knows who pol pot was
 
hitler is a hot trend
 
Let's write a blog post about how it makes us sad
 
2:56 PM
@KendallFrey I know
got enough people to make jokes about my surname
 
I don't see anything funny about "copot"
 
it just sounds vaguely similar to pol pot
in italian, anyway
 
I have no idea what that is
 
cambodian dictator
targeted against pretty much any intellectual
 
So people made fun of you by calling you an obscure dictator that nobody even knows about? Sounds like a bunch of smart people.
 
2:59 PM
I mean, it was only for a day, after a teacher mentioned it. Nobody dared actually nagging me about it
looking back on it, I think people in highschool were fairly scared of me
 
Were you that one kid that everyone thought was going to go on a school murder rampage?
 
well, they knew
one guy came up to me at one point saying that they wouldn't be surprised if I started shooting people in the middle of class
 
@ndugger "nobody" is not correct
 
I never actually hurt anyone though
 
@KarelG welcome to english, where nothing ever means what it's supposed to mean
 
3:02 PM
I slapped a guy for being disrespectful to someone else at some point, but it was actually a deescalation
 
I know who pol pot is. We were discussing about him during my history classes at high shool
but kendall is correct on that though
he is not so known as hitler
 
and I accidentally hurt a few people during football matches, but they knew I was sorry
 
Even Hitler lost the game.
 
I need somebody to guide me through how not to screw up my repo. I have 3 branches. Master, CMP, and VPP-508. Master... obvi. CMP is the epic branch. And VPP-508 is the story. It's branched from CMP.
I need to create a new branch, working off the changes of 508, which are waiting for a PR
So that I can continue working, but keep making branches per story
In sourcetree, how do I do this?
 
i don't get it
you just want to create a branch based on 508?
 
3:10 PM
Correct, because the next ticket is based on 508
But I can't keep working on 508 because it's in review
 
so, you normally branch from CMP, but because 508 isn't merged yet, you can't do that?
 
create a branch from it (if it is a dependency)
when it gets merged with the master after the review, you can merge or rebase from master
but I should not work on that because the requirements of that 508 can change during the review
 
ew, sourcetree
good luck not breaking everything in that awful ui
 
which may alter the behavior of your new branch
 
I use sourcetree
 
3:16 PM
rip
 
@KendallFrey that is correct
 
git has a built in source tree: gitk ...
 
If that doesn't violate internal procedures or policies, it should work ok
 
Ideally I make this branch, keep working, and when 508 is merged back into CMP I can use 509 like a normal branch off CMP
 
I think that would be a rebase
don't quote me on that
What truly is a "branch off CMP"?
Ultimately it comes from CMP, there just happened to be another branch between
 
3:21 PM
The word rebasing scares me
 
 
can we please ban feeds?
 
k
 
3:31 PM
Everytime I buy something now, they ask for my e-mail, and every time I say no
 
like at a physical store?
 
Yes
 
I wish strangers asked for my email here
 
They claim it's to e-mail you the receipt, but it's not. You sign up for their shitty newsletter
 
@Cereal I just give them <their store name>@madara.ninja
When they look at me skeptically, I maintain eye contact and ask "problem?"
 
3:33 PM
i bet that confuses them
 
With phone numbers, I just normally go "052... 111.... 11... 1... 2."
"Read it back to me?"
 
In mathematics, the look-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, 312211, 13112221, 1113213211, ... (sequence A005150 in the OEIS). To generate a member of the sequence from the previous member, read off the digits of the previous member, counting the number of digits in groups of the same digit. For example: 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as "one 2, then one 1" or 1211. 1211 is read off as "one 1, one 2, then two 1s" or 111221. 111221 is read off as "three 1s, two 2s, then one 1" or 312211. The...
 
with phone numbers in dutch, I always go for 87654321
 
honestly, nobody's ever asked for my phone number against my will here
 
if you say them in pairs 87, 65, 43, 21 and you say them in dutch (which reverses the order of the numbers), you get something like "seven-and-eighty, five-and-sixty, three-and-forty, twelve" which the other person only realizes he actually typed that only when he is done
 
3:44 PM
wow
coldfusion documentation that works exists
 
I don't believe you
 
I just successfully pushed a record to firebase database using a dynamic CFC proxy to proxy a coldfusion CFC to a java interface thus allowing me to use the java sdk's .setValue method
which means... i've got all i need to make this project work using the java sdk
 
@KevinB what is a CFC proxy?
 
I'm not entirely sure how to answer that
What i've done is created a cfc that implements a java interface, that i can then use as a callback to java methods
within coldfusion
 
if you have a backend, with a directory for dealing with db stuff, another for utils, another for validation, and so on, what do you call the directory that you put your express stuff in?
web-interface?
routing?
 
3:50 PM
public
 
not files to serve
 
er, what do you mean by "express stuff"
there's routes, there's middleware,
 
in a simple scenario, it would be just one file, where you require express, and set up the app.get/post/listen stuff
@KevinB all of that
 
so your routing
i mean..
"routes"
 
routing seems very non-web-server-y
 
3:51 PM
call it what it is
 
routes sounds like data that is used by some external controller
 
does it matter? Why would you call something that holds your routes something other than routes?
 
it holds more than routes
 
like what?
 
the middleware, what controls those routes
 
3:53 PM
the middleware goes in middleware
 
when I read routes, I imagine something that exports a map of paths to some function
 
user379888
var data = new Array()
	data=localStorage.getItem("todo");
	//var count=localStorage.getItem("todo").length;
    $(".submit").click(function(){
		//count++;
		data.push(JSON.stringify($('.data').val()));
		localStorage.setItem("todo", data);

		var i;
		while (data[i]) {
			var value = "<div class='todorow'><div class='todoitem'>"+data[i]+"</div><div class='todoremove'>X</div></div>";
			$(".container").append(value);
			console.log(data[i]);
			i++;
		}

    });
 
that is unfortunate
 
@FahadUddin Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
user379888
In the above code I am trying to retrieve data from localstorage. I am getting error that data is not an array
 
3:57 PM
@FahadUddin read up on localStorage
it's not a bug, you're not meant to get an array
 
well it can be an array, right?
just in this case it's evidently not
 
you know better @KendallFrey
 
what?
 
!!wat
 
it can only be a string
 
3:58 PM
localStorage only stores strings
you can set one of its items to an array, but it will be converted to a string
 
oh right
i guess you need to manually JSON.parse everything?
 
aye
or store data differently
also JSON.stringify for arrays
or you'll end up with a comma-separated list, which ain't json-compatible
 
user1596138
@Cereal Same thing with the credit cards themselves.
 
user1596138
They're just mining information. Their cost is to maintain the cards etc for the inactive users, but they get your info
 
user1596138
My girlfriend is forced to ask > Credit card? Email? Phone Number? On every transaction or be reprimanded. It's sad
 
user1596138
4:11 PM
Does Star Gazer still work?
 
If you install it, I'll star something so you can see
 
user1596138
I did
 
Did it work?
 
user1596138
No
 
4:12 PM
k
 
user1596138
Oh well
 
user1596138
Ah yea his server is totally offline
 
4:24 PM
hi im having a problem with some script im injecting to a webpage, im not very expert with javascript so i might be missing something, basicly i need to make a script that does movements in a webpage, but im having trouble clicking a <a>
this is the code i have (it works fine)
setTimeout(function() {
var all = document.getElementsByTagName("*");

for (var i=0, max=all.length; i < max; i++)
{
     // Do something with the element here
     if(all[i].className == "btn ng-scope")
     {
       alert('a');
       console.log(all[i]);
       break;
     }

}

}, 1000);
basicly all[i] has the element i need to click
but since its not a buton i cant click on it?
i tried to do inside the if a all[i].click(); but it didnt work, how do i solve this?
 
Have you attached an event listener to your element to verify that your click is firing? Start there.
 
Is NodeJS WebApps can be hacked? if nodejs is open source then hacker know how to hack it?
 
@dinindu anything can be hacked
 
@ndugger cant i see the events that are being trggred in the console?
 
It depends on how good you are at implementing security measures
 
4:33 PM
Yeah, a knowledgeable person can be hacked anything. I just mean, if the logic is open is it gonna be easier than closed source?
 
@Neil Ohh haha. Well, there are always edge cases but if you're doing large manipulation of data you can usually validate that it was manipulated correctly
 
Not really. Encryption methods are one way. Reading the source code doesn't give you insight to cracking it.
 
user379888
Hi. I am looking for a way to get length of a specific key on localstorage
 
user379888
I have tried localStorage["todo"].length
 
you want the length of the key, or of the value?
 
user379888
4:36 PM
where "todo" is the key
 
user379888
I want the length of the value. There are multiple values in a key
 
wat
 
@FahadUddin No there aren't. localStorage is always 1:1 key value pairing, with both keys and values always being strings.
 
What kind of values?
 
user379888
I am making a todo app. I am storing todo items in them.
 
4:37 PM
That has nothing to do with anything
 
user379888
 
your localStorage is empty (for me, at least). You are trying to access a property that doesn't exist, which returns undefined
 
user379888
@MadaraUchiha: I have been able to make the todo app work. Now one challenge is that the strings displayed have quotes sign around them.
https://fahaduddin.com/todo/
 
user379888
I am guessing JSON.stringify() is causing this.
 
Why is that a challenge?
 
@FahadUddin correct. If you are not saving JSON, and just a string, you do not need to "stringify" it.
 
user379888
5:17 PM
I did a hack and added .replace('"','') to it twice to remove both occurances. I understand its not a good approach because if the string contains a real quote, it will cause issues.
 
yeah, just don't do JSON.stringify; there's no reason to do something hacky to fix something you shouldn't be doing in the first place
 
user379888
Thanks.
 
5:37 PM
Fahad is a time traveler from the past
 
oh no uddin't
praise me for making a clever joke
 
you're so clever. I already know
 
thanks, bruv
 
user379888
@Shmiddty: Why do you think so?
 
@KendallFrey when I make a PR for my branch of branch, do I merge it into the main feature branch or the branch's direct parent?
 
5:51 PM
You merge into wherever you want the changes
master or whatever
 
hrm, that's gonna make the PR look like the other one until it's reviewed
 
Don't you have policies regarding branching and merging?
 
Yeah: don't fuck up master
 
Our only policy here is that master is protected and requires a PR that has been code reviewed and builds have passed
 
5:52 PM
well in that case, do what works
 
No we just use feature branching policies, but they aren't explicit about branching off a child branch
 
our policy is that you can't commit code with failing tests
we even have CI
it fails miserably
@SterlingArcher so is the main concern that feature 2's PR actually looks like feature 1+2?
 
Is it weird to listen to latin pop if you can't understand a single word of spanish?
 
no
i listen to k pop
it's much preferable to american pop
 
no, that's just some weeb shit right there
 
5:56 PM
That's because american pop is hip hop
 
k != j
 
Why does everyone I know listen to kpop
 
i don't listen to j pop
 
it's the same thing
 
i listen to j rock
 
5:57 PM
babymetal is theo nly japanese music I've ever listened to
and iavan pollka
 
I think the kpop is why you're short; it stole your legs
 

« first day (2797 days earlier)      last day (2145 days later) »