« first day (1909 days earlier)      last day (3055 days later) » 

crl
12:06 AM
Firefox is buggy, it shows some overlay for a selected element with its sizes.. but sometimes you can't remove that overlay easily
oh it seems you have to click that element
 
@rlemon looks like your average cast of a porno
 
photoshopping your face onto the photo would be funny
the hard part is choosing which one to put it on
 
she's holding him by the back of his singlet
like carrying him
 
the thing is that doesn't look any more ridiculous than the original
 
12:11 AM
!!youtube shaq girlfriend piggy back
 
in heels no less
 
@CapricaSix impressed.jpg
 
well, from an evolutionary standpoint, she would be dead already if she couldn't do at least that
 
Wtf
 
12:18 AM
 
it's true
 
@ndugger is that game ui done in css? I totally want to use that in a serious business app and see if I get away with it
 
@Luggage ndugger is afk: gonna drive home, crash, and die, and go to star wars heaven
 
@Abhishrek finally get some actual coldness?
 
12:25 AM
@Luggage nope
 
ohh? it was about 26 degrees here (-3.3 C) here yesterday and a bit this morning
actually probaly colder this morning.
 
@SterlingArcher i.imgur.com/jGTbMI6.gifv
 
it's been a very warm winter.
 
@Luggage it was 26 degrees C here this morning :)
 
12:28 AM
consults room map
 
We should have made a room secret santa
 
12:46 AM
@Luggage -6 here
But I have adapted extremely well to winter, I guess
 
depends ho long you are outside too.
 
@BadgerCat o/ o hai !
@Luggage been going in and out
 
@Abhishrek hi
 
whats up ?
 
1:01 AM
@Luggage nah, that UI was just pictures
 
1:43 AM
@FlorianMargaine Do you use evil mode?
 
 
3 hours later…
5:11 AM
Good Morning Guys
 
5:29 AM
@Mohit Mohit can you discuss about jsp with me? I have problem
 
Hi @DickyMahardika I am a .NET developer, but what problem do you have
 
@Mohit may be I will tell you by pictures but I just used the stackoverflow chat, I don't know how to send a pictures
 
well you don't send pictures use imgur and just paste link
 
@rlemon lol wtf
 
@Mohit ok wait
 
5:41 AM
@rlemon my god yes
 
hi
 
@Vijay 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.
 
gj @CapricaSix
that's almost a typing rate of 200 characters a second.
 
I am using an iframe that loading content from different domain. can someone tells me how to handle cases like the domain is not reachable or server is down.
 
5:49 AM
@crl As you generally practice on event handling. This is a good reference developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model
 
so... just tried to install latest phantomjs on fresh ec2 instance, and it's pretty messy. Am I just stupid, or is there really some configuration steps to be taken?
 
1. that's my structure program. 2. index.jsp 3. form action 4. web.xml 5. error
the question is why the action form can't found and the url to be pages/editCompany. there is "pages" @Mohit
 
@Abhishrek That ain't winter, where I'm going tomorrow the forecast is -24C ;)
 
@DickyMahardika that seems like an issue with your routing.
 
WHere is that @ivarni?
 
5:55 AM
@Mohit so, what must i do?
 
@FélixGagnon-Grenier Central Norway. And we're planning to go snowboarding so it's going to be... cold...
 
it may help
it's a jsp page you are mapping like servlet @DickyMahardika
 
lucky guy @ivarni. Here we're way past the winter we should have. Still couldn't do any snowboarding... climate change and shit I guess.
past meaning... way over the normal temperature
 
We've had a shitty start as well but it's coming around now
I've only got 15 days in so far, which is unusual
 
6:00 AM
days in?
 
@Mohit no, that's is servlet page. the action through to servlet page
 
@FélixGagnon-Grenier days/evenings snowboarding, I normally go 4 times a week starting mid-november... not this year :/
 
you lucky bastard !!!! :) If I get to snowboard like two times a month I'm like out of my pants :p
metaphorically, that is
 
We have two hills 20-25 minutes outside Oslo so popping up for a few hours after work isn't too much hassle :)
 
6:13 AM
0
Q: How to show loader with set timeout function?

Ram SinghI have a function that is doing some calculation, i want to add jquery loader for some time for this, i have tried the following but it is not displaying the loader not getting why? function onChangeLeaveEndDate() { //$('.k-loading-mask').css('display', 'block !important'); $(".k-loadin...

 
@Mohit thank's for your time to talk with me. I have solved that issue with stackoverflow.com/questions/14363641/…
 
> yeah, I use jQuery
var jQuery = function(selector, el){
    if (!el){ el = document; }
    return el.querySelectorAll(selector);
}
 
6:29 AM
'UNION(abc("kasdf"), abc("io23$"), abc("88^*kfdsj"))'
给定这样一个字符串,请用string的match方法,将'abc("xxx")'这样子串match到数组里。xxx部分是数量大于等于1的任意字符。
 
@DickyMahardika welcome
 
'UNION(abc("kasdf"), abc("io23$"), abc("88^*kfdsj"))'
Given this string, please use the match method of String to find the pattern ‘abc("xxx")' into an array, where 'xxx' is an arbitrary string with length above zero
 
what about no
 
@ZhengquanBai try running this in console console.log("take it elsewhere")
 
/abc(".+>")/g
( and ) needs to be escaped
/abc\(".+?"\)/g
 
6:48 AM
!!> 'UNION(abc("kasdf"), abc("io23$"), abc("88^*kfdsj"))'.match( /abc\(".*?"\)/g )
 
@Sheepy "null"
 
Uh?
Oh SO ate the slashes.
 
@Sheepy "abc(\"kasdf\"),abc(\"io23$\"),abc(\"88^*kfdsj\")"
 
must be pretty full
 
user5503464
7:05 AM
0
Q: How to make cascading Dropdown using Angularjs?

komalHere i have Added list of mobile brand name with submodels. my expectation: 1.here nokia and samsung htc listed multiple times.how can i avoid same name repeated in list 2.when i select nokia in first dropdown list,one new dropdown should come under first dropdown it should show nokia brand mod...

 
user5503464
help me out guys
 
user3119231
Good morning
 
oh man. just decided to start battlesstar galactica over.
 
7:17 AM
Angular noobness: 'If the controller has been attached using the controller as syntax then the controller instance will be assigned to a property on the new scope.'
^^ How to access? ng-controller="TagsListCtrl as vm"
$scope.vm == empty object
eh, scratch that. it's a replacement, duh.
 
Anyone has worked with webpack and typescript? can u share some thoughts?
 
user3119231
7:35 AM
no, jonathan. :)
 
crl
Someone ever user TreeWalker? seems not so practical to parse a whole tree, I'd better do a recursive thing
 
@Luggage I don't
 
7:56 AM
0
Q: Get Week off days between two dates using jquery?

Ram SinghI am getting no of week off days are coming between two dates by using following function if dates are non week off days then it is working fine if i select like sat and mon then it counts only 1 week off day instead it should to return 2. Not getting what i am doing wrong. function CalculateW...

 
How to check is a given x.509 certificate valid, verify if it's signed by another certificate and extract it's public key in Javascript?
 
@LeonGrdic 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.
 
8:12 AM
@LeonGrdic I don't think you have anywhere near that kind of access in JS.
 
crl
not even close
 
@Cerbrus I don't mean the HTTPS certificate, I have a certificate stored in a variable in JS and I want to parse it.
 
Right, that's a whole different story. Then you're just comparing the contents of 2 certificates, right?
 
@Cerbrus Which content should I compare? In PHP I am doing this by parsing both certificates and checking if the authorityKeyIdentifier extension is the same, but I don't know how to parse a cert in JS
 
user3119231
PHP = server. JS = client. Y u know security of clients? :)
 
user3119231
8:19 AM
But you can make a http request from js to php and get the data...
 
@Maurize I'm building an application and I need the certificate to be verified on the server and client for security reasons
@Maurize That kinda breaks the security part as it's over HTTP..
 
crl
maybe he's using node :)
 
user3119231
Maybe he did not tell us... :)
 
I'm not using node, I'm trying to make this application as compact as possible.
 
Morning guys
 
8:21 AM
@Longshanks 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.
 
user3119231
Using node is a good step to create a application. websockets, ect. Cordova...
 
Well it's too late now..
 
crl
certificates belong to server
 
user3119231
Nevermind. I think there is no reason to get security informations in javascript. Just think about everyone using console and recieving informations.
 
Well the point is to ensure a valid certificate has been received from the server. A CA is stored on the client already, accessible by JS and the script itself is cached on the client.
 
8:23 AM
I'm attempting to make a notepad app using just JavaScript, the app has a login, sign up and then a simple text area to populate a list of notes. I'm using cookies to store the data, are there any guides that you are aware of to help me get through this? struggling with the whole storing in an array and saving to cookies bit then retrieving bit
 
@Longshanks Login via JS? Not a smart idea.
@Longshanks You need some kind of server authentication
 
It's not for a site or anything just to get used to using cookies with JS
i'd usually use rails otherwise
 
crl
if it's a password login it can perfectly be done in JS, but ajax login sucks when it comes to OAuth
 
@crl The password can be read in the page source..
 
doesn't matter, won't be live code
 
crl
8:26 AM
@LeonGrdic wat?
 
@crl We may not have understood each other
 
just need the functionality of a sign up/login and notepad using cookies, it's a self learning project
 
crl
a request is sent by ajax the same way you'd do in a classic way, then server can reply with a JWT for the ajax case
 
@Longshanks Where would you like to store the credentials?
 
via cookies
 
crl
8:27 AM
or JWT it's better imo
 
it's to develop my front end skills, don't need anything fancy
 
So you would have a cookie per user or one cookie for all users?
I would suggest using localStorage rather than cookies in this case
 
crl
Leon...
it's client-side cookies
> one cookie for all users
 
Hacktoberfest Swag \o/
 
user3119231
Client App needs communication with a Server. Server is rather safe to work with sensitive information. Get input values (username, password) -> http request it to the server (xyz/login.php) and return a session id for the user if okay, otherwise ban him for lifetime :D
.
 
8:29 AM
cool so one cookie nice and easy, got the code for cookies (atleast i think i have :) ) so i'm setting a "userCookie"
I'm not using a server, ergo the use of cookies
 
user5503464
-1
A: How to make cascading Dropdown using Angularjs?

kunalWith modified data model it will be easy deal with duplicate records { brandName : { modelName:"", id:"" } } e.g { Nokia:[{ id: "986745", modelname: "Lumia 735" }, { id: "986746", modelname: "X 2" }] } Working demo could be...

 
@Longshanks Sign up/login. So you do want multiple users or a single one?
 
crl
lol
single user app
 
one user is fine, just need it to demonstrate a sign up/login function of some sort
 
crl
what a good idea
make it work for any number of users
 
8:32 AM
still one cookie is fine?
 
user3119231
agree with crl. simply check the user data on the server side. Nothing more nothing less.
 
just have to add an id i presume?
 
user3119231
Simply check user data on server side. Where's the problem.
 
crl
client cookies are local to clients, like localStorage, what are you not getting?
 
ah ofcourse, sorry too used to databases :)
so it is the same one user or multi users?
 
user3119231
8:34 AM
I don't get what you want...
 
I'm trying to create a "notes" app (basically a CRUD) with user authentication using only JavaScript
so i need to use cookies instead of a database
It's a challenge
 
Use localStorage instead of cookies
 
user3119231
THe challenge is that you have to make it safe.
 
crl
by client cookie I mean manipulating cookie on the browser, but if a Set-Cookie is already present in the http request it's done automatically, that means you're using sessions on server
 
it doesn't need to be safe, only me and one other person will see it :)
I meant a literal challenge, someone has challenged me to do it
 
user3119231
8:38 AM
What I understood: "I buyed a car. I only took one with 2 seats instead of 4(5) because only me and another person is using this car..."
 
s/buyed/bought/
 
user3119231
Nevermind. I wish good luck my friend.
 
@Longshanks: Does that challenge explicitly mention cookies?
 
user3119231
@FlorianMargaine It's night in germany.
 
@Maurize: No it's not.
 
8:40 AM
@Maurize really? I'm in CET too and it's day for me.
 
@FlorianMargaine 9:40 am CET
 
crl
9:40 and it's night, wow dark day
 
no I just presumed cookies would be easiest (thanks to lack of front end knowledge :) )
 
> I'm in CET too
 
@Longshanks: Use LocalStorage instead. Slightly easier to work with
 
user3119231
8:40 AM
It is 09:41 AM. For me it is night. Thanks to coffee, otherwise I would fall asleep.
 
@Longshanks Stick to localStorage. Much bigger data can be stored and it's not sent to the server!
 
Ok cool thanks
 
@Longshanks Cookies are great for things you want the server to know about as well.
 
@Maurize Where do you live? Near the north pole?
 
Sometimes, logic can (and should) be contained only on the client-side
That's when localStorage and sessionStorage come into play.
 
user3119231
8:42 AM
@Cerbrus No, I live in Germania, Country of snow atm.
 
Ok great, will attempt local storage and if that fails be back soon :)
 
user3119231
@Cerbrus for ME it's night, mate. Because normally I would sleep till 12:00.
 
8:43 AM
Lol okay maybe he has sunglasses
 
Night or nighttime (sp. night-time or night time) is the period of time between the sunset and the sunrise when the Sun is below the horizon. This occurs after dusk. The opposite of night is day (or "daytime" to distinguish it from "day" as used for a 24-hour period). The start and end points of time of a night vary based on factors such as season, latitude, longitude and timezone. At any given time, one side of the planet Earth is bathed in light from the Sun (the daytime) and the other side of the Earth is in the shadow caused by the Earth blocking the light of the sun. This shadow is called...
> Night or nighttime (sp. night-time or night time) is the period of time between the sunset and the sunrise when the Sun is below the horizon.
 
crl
naptime
 
user3119231
@Cerbrus 1:0 for you
 
I'm still waiting for someone to help parsing a x.509 certificate in JS!
 
You can't change the definition of "day / night", just because you have a different sleeping rhythm.
 
crl
8:45 AM
!!google parsing a x.509 certificate in JS
 
Oh look, cap's alive :D
"rhythm"... weird word. Not a single vowel in there
 
user3119231
The period between evening and bedtime. ++ The period between bedtime and morning: thefreedictionary.com/night
 
crl
isn't y a vowel?
!!wiki y
 
Y
Y (named wye /ˈwaɪ/, plural wyes) is the 25th and next-to-last letter in the modern English alphabet and the ISO basic Latin alphabet. In the English writing system it represents either a vowel or a consonant. == NameEdit == In Latin, Y was named I graeca, since the classical Greek sound /y/, similar to modern German ü or French u, was not a native sound for Latin speakers, and the letter was initially only used to spell foreign words. This history has led to the standard modern names of the letter in Romance languages, — in Galician i grego, in Catalan i grega, in French and Romanian i grec —...
 
crl
8:47 AM
both
 
user3119231
If you go to bed in the morning. Do you say good night or good morning? :oooo
 
@crl The first link contains a Certificate Viewer in JS but it does not include the authorityKeyIdentifier extension..
 
hey guys, I've a problem with drop down list
 
@Shubham That's HTML
@Shubham But what's the problem?
 
I want to call a function every time
he selects something
 
crl
8:52 AM
you can do pure html dropdown but usually it involves js
 
@Shubham Using jQuery or?
 
javascript
don't want to use onchange
 
user3119231
drowdown.addEventListener("click/mousedown/change/google your event", function(e){ console.log(e); ... your code ... });
 
it will not call unless the selected option is changes
changed*
 
crl
mousedown yea
 
8:55 AM
if a option is selected and i click on the same option again , function should be called
 
user3119231
man. Just add an event handler to the DROPDOWN not to the options.
 
user3119231
In the DOM the select is a element itself. You can attach events to it.
 
@Shubham Why?
 
if i'll use onclick , it will call before you select any option
 
user3119231
Create a var last_option. Simply ask if current selectedIndex is the same.
 
user3119231
8:56 AM
Then use change event
 
user3119231
Will only fire if select options are changed
 
i have a dropdown list
and there is only one item
now i want to fire an event
 
So then add a blank option as your first.
 
user3119231
Dropdown === Select> <option> </select
 
i don't wnat to man
want*
 
8:57 AM
You haven't got a choice.
 
is there any way or not
 
crl
no dropdown is a div that is an emulation of a stupid <select> that can't do anything, and are not used anymore
 
Does anyone know how to submit a CVE entry?
 
@SterlingArcher He's a funny guy. In one of his videos he's like "I CAN'T FEEL MY LEGS"
 
My Google results only cause more confusion :P
 
8:59 AM
@BenFortune that's hilarious
 
ok
then i'll use onclick on select tags.
 
@Ben
 
@BenFortune So, I just email them and say "Hi, I found an issue"?
 
@BenFortune what should i do then
 
9:02 AM
@OliverSalzburg Pretty much, you'll probably need a full report on it though
 
user3119231
mousedown :D
 
@BenFortune I was hoping there was some kind of form on the web which I just fill out
 
mousedown event will not work
 
crl
guys, question, I have <div id="shit">hello<button data-x="1"></button><button data-y="1"></button></div> how can I select all elements in shit that have a data attribute? sort of shit.querySelectorAll('[data-*]')
 
user3119231
Why would someone name his container "shit" ? :D
 
crl
9:03 AM
hmm put data in the value not as key..
 
@crl I don't think you can do it like that
Convert shit to an array and use filter
shit.filter((e) => e.dataset.length > 0)
Something like that
 
crl
@Meredith using data-i="x", data-i="y", ...
 
What do you mean?
 
crl
sme key for everyone
 
What
It's 4 am so you gotta help me out a bit here
 
crl
9:16 AM
<div id="shit">hello<button data-i="x"></button><button data-i="y"></button><button data-i="lol"></button></div>, then shit.all('[data-i]')//do thing with each element.dataset.i
 
Ok so you know what the name of the data attribute is?
Yeah you should be able to do that
 
crl
yes
 
So what's the problem
 
crl
there is none now :)
 
user3119231
Find your typo of girl: imgur.com/gallery/zl6ly SFW
 
crl
9:23 AM
seriously they all look dangerous
 
yeah? they pretty much look like normal women to me ;)
how does a "not dangerous" woman even look like?
 
hey all
 
@aks. 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.
 
user3119231
Someone I would definitely not date. At least not on fridays.
 
9:32 AM
@aks. hello
@crl hah
 
@Maurize only a couple look pretty to me :/
 
morning
 
user3119231
Just thought about having one of these woman as girlfriend. If I'm in trouble with someone - she would just kill/hurt them. Like a bodyguard for free or companion (fallout 4 thoughts) :D
 
Dogmeat
 
user3119231
Yesterday the father of my girlfriend watched me playing f4. He asked me if this is my dog. I answered yes. He asked if it got a name. I answered dog. - for him the game ended right there -
 
9:37 AM
@Maurize hl2?
 
@Quill this completely unbalanced piece of genius in Fallout 3
 
user3119231
hl2 = half life 2?
 
so half life 1 and 2 are already out
1+2 = 3
half life 3 confirmed
 
Just the first few seconds...
 
what the hell is that?
 
user3119231
9:40 AM
what the fuck is that?
 
oh, it's a WoW NPC, okay
 
He was the first WoW raid boss
And he's still a complete badass
 
I never played WoW
 
And I must admit I know that whole intro by heart xD
 
1
Q: Can we do something about old/outdated/terrible highly upvoted answers?

Florian MargaineThis question has 3 answers with >100 upvotes. The 3rd answer is very fine (obviously, since I'm the author), but the 1st and 2nd answers are terrible by all accounts. The first one relies on jQuery to do a loop (wut?), the 2nd one relies on eval to do a sum. Let that sink in. eval to do a sum.

 
9:43 AM
Yes please
 
user3119231
 
user3119231
dafuq did I just read?
 
crl
imgur
 
@FlorianMargaine: jQuery to iterate over an array... eval to add numbers...
Here I was thinking I've seen it all
 
9:46 AM
:)
 
@FlorianMargaine the eval one is actually pretty clever, useful for codegolfing for sure
although that's not what the asker asked
 
The eval one made me die a little on the inside
 
I mean, it's really bad, but it has something awesome to it
 
Yeah I guess there's a redeeming quality to it
The jquery one is just awful on every level
 
user3119231
I know this is css, but why is this graphically ugly?
 
user3119231
9:58 AM
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1),  rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
 
user3119231
every contrast line is huge as my finger
 
user3119231
 

« first day (1909 days earlier)      last day (3055 days later) »