« first day (1916 days earlier)      last day (3030 days later) » 

11:00 AM
makes my eyes hurt to read white on this colour
 
user3119231
My eyes hurts when I try to read green on white :D
 
user3119231
So suggestions?
 
Pink is always hot af
 
user3119231
Need to find a color, which is acceptable to everyone :D
 
user3119231
11:06 AM
Or I display an image in background
 
You can use webaim.org/resources/contrastchecker to see if the text has enough contrast to be readable
 
Is that german?
2 mins ago, by pootis
@Maurize http://webaim.org/resources/contrastchecker/
 
user3119231
 
user3119231
I think this comes better than white background
 
@pootis Oh.. right
great minds etc
 
user3119231
11:08 AM
and an image catches the interest of the visitor
 
I started reading what was written there. "Neu hier?" Oh, well, that sounds familiar! I must mean "new here?"! "Regestriere dich." I think not.
 
user3119231
Registriere dich = Register yourself.
 
looks like facebook very first version
can I invest
 
user3119231
Dafuck is wrong with you? Facebook = Crap. Try to resize it.
 
user3119231
If you resize this, contents gets automatically repositioned :D
 
11:16 AM
@Maurize chill bruh.. just kidding
 
user3119231
I'm chilled :D
 
Oh, yes, absolutely, because resizing is really quite important to a massive social network with apps for every decent platform. ;-)
 
Butbutbut isn't resizing just like testing on mobile? :p
(read: I think you're looking for m.facebook.com)
 
user3119231
nope -> host several versions just because viewports is stupid. Nowadays you can make it compatible for every resolution
 
Yeah, I'm sure facebook (and twitter) just doesn't know the first thing about webpages
 
user3119231
 
user3119231
ctrl+shit+m - firefox to open mode
 
user3119231
just want to try this method. where is the problem?
 
@ivarni what is facebook anyway? they make like yearbooks or somethin'? pfff..
 
Nothing wrong with doing things differently, but making blanket statements about how every other way is wrong and crap is just unnecessary. Different usecases mandate different solutions.
I just get annoyed with the silver bullet humpers at times
 
Absolutely. Blanket statements are always wrong.
 
user3119231
11:27 AM
Dafuck is wrong with you? Facebook = Crap. Try to resize it. There was only the responsive design meant & it was more a joke
 
@Neil Does it matter? They have a shit tons of traffic and it's an interresting usecase
 
@ivarni Just ignore me, i'm in quirks mode
 
@Maurize You may want to work on your humor. ;-)
 
user3119231
nope, humor isn't useful.
 
crl
11:41 AM
text nodes are the worst shit in the dom
2
 
So, I installed our software internally to our company in a specific environment and I also installed it at our new client
my colleague worked daily to use the environment at our client, adding all the data and so forth and so on
So she comes up to me and says, "Why isn't the environment in our company updated?"
How can she not understand that? That's like slapping yourself in the face and being surprised that it hurt you and not someone else
 
user3119231
		for (var i = 0; i < 3; i++){
			var select = document.createElement("select");
			document.querySelector(".date").appendChild(select);
			if (i == 0){ //days
				for (var d = 1; d <= 31; d++){
					var option = document.createElement("option");
					select.appendChild(option);
					option.innerHTML = d;
				}
			}
			else if (i == 1){ //months
				for (var m = 1; m <= 12; m++){
					var option = document.createElement("option");
					select.appendChild(option);
					option.innerHTML = m;
				}
 
user3119231
is there a way to make this shorter? It works fine but I have this feeling, there is a better way to do this
 
11:56 AM
function createOption(text){
    var option = document.createElement("option");
    select.appendChild(option);
    option.innerHTML = text;
}
@Maurize ^
 
anyone there? can i use ng-repeat and ng-src attributes simultaneously for <img>? i have a list of image which i want to display in image library without wrapper element
 
@ShreeshKatyayan 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.
 
@ShreeshKatyayan Sure you can
<img ng-src="image.src" ng-repeat="image in images" />
 
cool thanks :)
 
> Window.prototype
      Window {TEMPORARY: 0, PERSISTENT: 1}
 
11:59 AM
hi guys, is animatedmodal in bootstrap usable only for one instance?
 
In chrome browser, I see only two properties in Window.prototype
Something wrong with my browser?
 
@overexchange PEBCAK
 
ok
> Object.getOwnPropertyNames(Window.prototype);
        ["toString", "TEMPORARY", "PERSISTENT", "constructor"]
> Object.getOwnPropertyNames(window);
       Array[704]
 
Oh, my first answer about iterators
1
Q: Custom iterator returns empty array

Barth ZalewskiWhy is the result empty? var myDogs = function(dogs) { this.dogs = dogs; this[Symbol.iterator] = function() { let i = -1; return { next() { i++; let j = 0; var dog = void(0); for (var dog in this.dogs) { if (j == i) { dog = { dog, hungry: dogs...

(I never used them ^^)
 
var dog = void(0);
*Sigh*
 
12:07 PM
well... I didn't want to point this, it usually leads to a stupid fight ^^
After all, it's a few characters shorter...
 
A stupid fight, yes. Because using it is stupid ;-)
 
Wouldn't dog be implicitly undefined anyway?
 
aye
 
I said it
> Side note: there's no reason to use void(0) today.
 
!!>var dog; console.log(dog)
 
12:10 PM
@Cerbrus "undefined"
 
I hope he won't be mad for that...
 
@DenysSéguret Let's all furiously upvote that comment
Oh, it's part of the answer. Ah well. vOv
 
So you must upvote the answer... :)
(kidding)
This question is exactly why people should take variable name semantics seriously...
 
Those Jedi mind tricks of yours are pointless! I already voted on it after suddenly feeling the urge to.
 
My first upvote for . I'm so moved. And proud...
 
12:17 PM
Too bad there's alreadt
 
And I've no vote for that one :(
 
I really need to read up on the new syntax
 
@GNi33 It's much more than syntax
 
I feel it's utterly unreadable at times
but that's probably because I haven't been looking into it too much yet
 
SQL is getting on my nerves
but I guess I only the hater here though ?
 
12:22 PM
you're not, no
 
@GNi33 some parts especially ?
What's your problem with SQL ?
 
how many men it gonna take to find out how to sum column values based on common ids (group by)
 
anything containing fat arrows really
 
@Mathematics: you want the sum of grouped values?
 
yes, but it just don't want to happen, I am trying it, just came here for a rant, let me get it right first then will share ;)
 
user3119231
@Cerbrus thank you, I really like the date picker :)
 
wut?
 
user3119231
I've created a function to create selects to choose birthday. Thanks to your 'option-function'
 
Oh, yw
You could move the loop into the function, as well
 
user3119231
I've created an extra function named createBirthdayPicker :D
 
user3119231
12:27 PM
saved it in another file and all what remains is:
 
user3119231
	"use strict";
	window.addEventListener("load", function(){
		createBirthdayPicker(".date");
	});
 
user3119231
And it only needs the parentElement
 
datepicker-lover?
 
@Snickbrack 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
12:49 PM
what did you say?
 
user3119231
user image
3
 
Those flags hahahaha
 
To be honest, that guy looks like an ass
 
user3119231
I've posted this because the baby is cute. ehem
 
hey guys, I have this super duper weirdo error that I've never seen in all my years of being a javascript looser, can some1 halp me
 
12:55 PM
but wtf is that
 
user3119231
jo neoares!
 
sup
that's NSFW
 
user3119231
why? It's just a guy with a bald who's kissing his baby.
 
user3119231
This is so safe for work, your boss should take this as wallpaper
 
lel
 
12:57 PM
whoever took that picture is a legend
 
but still can't see what's that "ass"
oh shit it's a head
 
user3119231
Then your desktop must be big.
 
lol
man it took me 5 min of watching the fucking mimage to realize
 
user3119231
Star it before it gets flagged :D
 
I have to say, that the ear is the key
 
12:58 PM
Hello
 
@maksadbek 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.
 
okay)
 
user3119231
Feel free to ask Caprica everything you want. Simply write !!google and then your text :P
 
Jesus fucking christ, Alan Rickman has died.
 
crl
Ranges are so.. hot. if you have <span>foo</span> there are 8 different ways to select that content
 
1:03 PM
@Cerbrus Ranting about stuff actually helps me fixing issues
*myself
 
crl
|<span>foo</span>| outside, <span>|foo|</span> inside, <span>#text(|foo|)</span> inside the text node, so that's 3 and 2^3 if you combine tem
 
Guys, does anyone know how I can solve this? stackoverflow.com/questions/34789633/…
 
@GjertIngarGjersund 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.
 
@Cerbrus Code Review Stack Exchange are actually getting rubberducks with their grad swag packs
 
1:10 PM
@Cerbrus that's funny lol, maybe effective too
 
@Quill That's awesome :D
@Mathematics It actually works.
 
hmmm, now I am facing another challenge which is more interesting though...
let me put it down in words
╔═════╦════════╦══════════╦
║ ID      ║ Name   ║ RandomID ║
╠═════╬════════╬══════════╬
║  1      ║  a     ║ 3        ║
║  2      ║  b     ║ 2        ║
║  3      ║  c     ║ 1        ║
╚═════╩════════╩══════════╩
I have this result returning from a BIG select query
I need to add another column, which will be "RandomName"
but I have no idea how can I do this
 
1:25 PM
right join?
 
@Quill to itself ?
sounds like a good idea
 
idk, isn't there a SQL room somewhere
 
@Quill there is one there but they are not interested in SQL
we have dba.database.. something
 
sql room not interested in sql?
 
yes, pretty weird isn't it
oh it's because it's shared by programmer.se.com.. maybe others as well
 
1:28 PM
@Quill That room gets very little activity.
 
user3119231
 
user3119231
is possible to make "Männlich" the same color as the other inputs -> placeholder?
 
Yes
 
user3119231
let me guess: color
 
There are CSS selectors to color placeholder
 
that's not a placeholder
color should do it, yeah
 
yeah, that's just a select value
 
U can find it by "color input placeholder"
Ohh ok
 
not sure why you can find it using placeholder, but it isn't a placeholder
 
I just heard.. Snape died...
 
1:41 PM
@Cerbrus Yoda kills Snape
 
Oh sad.. Good actor
 
Aged 69... RIP, alan Rickman.
 
what!? No!
 
what is with actors kicking it at 69?
 
It's like the new Club 27
 
1:43 PM
That means life's fuck
 
hrm, Cancer. fuck Cancer
 
^
 
user3119231
That means he worked his whole life and can't enjoy his pension...
 
(Good) Actors rarely retire
 
man... Alan Rickman really hits home
I pretty much loved every movie I saw that had him in
grew up watching The Prince of Thieves about a thousand times
 
user3119231
1:46 PM
if someone is interested I would show me current progress :P
 
user3119231
:'(
 
Question: How can I solve Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index for an <input type="text"> field?
0
Q: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index

Gjert Ingar GjersundI have this problem with Chrome and Safari (works in Mozilla and IE + Edge). I want to store the caret position and selection using range=sel.getRangeAt(0); However, I get the following error in Chrome: Uncaught IndexSizeError: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid inde...

 
Any recommendations for a Sublime + Browser refresh?
I'm getting tired of tabbing over to hit F5 after everything I do.
 
Question: How do you handle modifying libraries in a project?
 
1:56 PM
modifying libraries?
 
@Cereal Forks. Tons of forks
 
@pootis Thank you.
 
@OliverSalzburg but it's just for this project. I'm having a hard time rationalizing the point of forking
 
@Cereal it's a simple click away
 
but why
 
2:00 PM
because you want proper source control for all of your project
and you don't want to fuck up the day you're going to upgrade your dependencies
 
@Cereal Seems easy enough. Fork, modify, change source in package.json, done
Then wait a couple of years for your changes to be merged upstream, change package.json back and work a couple of days getting your application to work with the new upstream state
It's a bliss
 
hello all
 
@razorranjan 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.
 
i have developed this chat ui and i want the chat to automatically scroll to the last msg when the page loads. link is thekabir.in/bodhik_chat/chat.html
 
63
Q: Scroll Automatically to the Bottom of the Page

jatConsider I have a list of questions. When I click on the first question, it should automatically take me to the bottom of the page. For a matter of fact, I do know that this can be done using jQuery. So, could you provide me with some documentation or some links where I can find answer to thi...

Just modify it to your element
 
2:13 PM
@FlorianMargaine "What, source control is for when the project is done.." - My co-worker.
3
 
thanks i will try this and get back and let u know if it works. as i have tried various methods @BenFortune
 
@Luggage can you please murder him for me?
 
no, he works remote :(
 
what the fuck
 
2:17 PM
@Luggage how does this even make sense?
 
It does not.
 
@Quill god dammit
 
@Luggage did you link him the wikipedia definition?
 
This guy was also said "that's refractoring and I don't have time for that."
yes, the spelling mistake was a direct quote
 
But refactoring is the best part
 
2:20 PM
I get the impression this guy only programs because he's told to :(
 
most people do
 
@Luggage Is he 30-40 years old?
 
no idea
he's a voice on a phone
 
He could be a relic of the 2001 "quick everybody become a programmer" bubble, which is finally coming back to haunt us.
 
maybe.
the real y2k
 
2:22 PM
Does $(document).ready();waits for all the jQuery plugins to load before firing?
 
@Frondor It depends.
 
I watched a friend throw away a promising career in law to pursue web development, heh.
 
@pootis depends on the plugins right? But in general?
 
@JasonC Obama wants more programmers
 
@JasonC I wouldn't say everyone is trying to become a programmer, but everyone is definitely trying to be in IT.
 
2:23 PM
Obama won't be president for long
 
@Frondor It depends on how you load them
 
No shit
 
@Waxi Was, not is.
 
s/Obama w/Trump w/
 
The 2000's were a dark time for computer science.
 
2:25 PM
@pootis I'm loading them normally... Just before the </body> tag, and after jQuery library
 
Luckily I don't feel threatened by new faces.
 
@pootis Problems with the US two-term limit: Pre-election: I will do all these amazing things! Term 1: This is hard, but I'll still do some amazing things. Term 2: Fuck it.
 
I hereby declare I do not endorse any weird-haired nutjobs.
 
@benfo
sorry
 
I don't understand IT people. It's like... you have one job to do, does everything really need to be a 30-person conference call and a chain of 800 emails?
 
2:26 PM
@Frondor You should be fine.
 
@JasonC It's because they try to make something awesome out of their job
 
@JasonC How else are people going to feel important? The people with any talent never want to go to those meetings, it's the ones that pretend they are special that do that.
 
I am working on a project now. A guy from the IT contractors sent me an email about some router he was buying that essentially said "I can't really figure this out, can you take a look at the manual and let me know what settings to use?" and sent me a 600 page manual.
 
I'm playing around with a <video> element and I've noticed that when scrubbing(holding the scrubhandle and moving) the video, I understand the browser needs to decode beyond keyframes and that takes a few hunderd milliseconds but is there a way to reduce that lag for already decoded frame(so a part I already scrubbed over?), is there some way to cache it?
I'l gladly take the increased memory usage for it.
 
That's not an IT specific problem either, that's the office life. Meetings and emails to no end.
 
2:28 PM
I just waited a week to reply then said "Sorry that's outside the scope of my work here", heh.
Yeah I know.
 
@Waxi That's not even specific to office life. 50% of whatever group of people you pick performs below the average. People just suck. Period
 
@BenFortune it doesn't work. fyi i have used a plugin to show a decent scroll when the chat's height increases. can anyone try to make it scroll by writing temporary js and executing on my live code http://thekabir.in/bodhik_chat/chat.html
i want the chat to scroll to the end when the page loads
 
There was one project where I was installing some stuff in a network closet and asked if I could plug something into the switch that went out to the internet. Two weeks later they were still "planning" it and hadn't made a decision. Meanwhile I just plugged it in right away, did my thing, and nobody noticed. Lesson learned: Never ask.
 
it's easier to ask forgiveness than permission
 
@OliverSalzburg lol pretty much.
 
2:30 PM
What really kills me about the 600-page manual guy is that that contractor does all the traffic light and public transit network infrastructure for San Francisco. And he couldn't figure out how to set up his router.
 
Random question, for a .Net oriented shop would you lean toward's Angular or Ember?
 
Ember
 
React
 
Haskell
 
@rlemon Why, and do you have something that can help me push my boss?
 
2:32 PM
@Greg more efficient, 2 bytes shorter
 
He is scared because you can't "throw random jQuery" into Ember.
 
@rlemon Aside from that?
 
nope
 
One thing I've noticed that seems to be pretty common, is that if someone knows their shit and makes technical stuff easy to understand, the people that don't have a clue magically become experts. They feel like if this guy knows it, I must know it too. I see that a lot.
Hearing non-technical people trying to talk like they know something is so cringey.
Hearing accountants talk databases...like really?
 
2:34 PM
Well, my boss is leaning toward Angular because you still have jQuery and similar syntax. But I don't see it being better than Ember, Microsoft clearly is making a push for Ember.
Plus I've heard some really, really rough bouts with Angular in the .Net realm.
It doesn't always play nicely.
 
@Waxi this:
!!youtube the expert
 
@Waxi It's complicated though. Like I can't be technical with my clients, it just doesn't work. But then they have to pass on my dumbed down stuff to their clients through their own filter of poor understanding. It just breaks down.
In recent years I've learned that if I just stubbornly refuse to tell people what they want to hear, there's some initial pain but its better in the long run.
Now I just straight up tell clients "Look, this is how it is, but there's no way you can understand why because you don't have the background for it. So just go with me here, that's why you hired me."
 
@JasonC Haha...nice game of telephone right there.
 
Yeah it gets weird.
 
2:39 PM
RIP Alan Rickman
 
Case study is probably whatever communication happened on the way from CGI to Obama and the resulting chaos.
 
I don't like to baby people or water anything down. I'll tell you something as if you're on the same level as me. Either you get it or you don't.
 
When all else fails I just show clients Feynman's magnet video.
 
I generally try to make it make sense by reducing it to obvious level, like "You can't do this because that would mean you can't do that, because there's no sensible way to do both"
 
That entire series, Fun to Imagine, is really amazing.
 
2:40 PM
Yeah it is.
 
@KendallFrey lol
 
I love listening to him talk.
 
Yeah you can tell he was just a natural born genius who saw the world differently. Lovely mind.
 
I should have starting this build before lunch :/
opencv is a beast
 
2:43 PM
Oh yeah.
Well I gotta run have a nice day everybody.
 
Run, Jason, run!
 
@SterlingArcher bro, I told you to watch out for @KendallFrey's mom when backing up
 
the hell, man?
 
@SterlingArcher do you seriously have "PHRASING" for your license plate?
 
2:48 PM
Apparently so
 
@GNi33 got rear ended by a mini-van last night
 
@FlorianMargaine confirm
 
@SterlingArcher dude, you got mini vaned last night?
rough..
 
@SterlingArcher phrasing
boom
 
user3119231
Damn, a damaged Audi. This makes me cry.
 
2:58 PM
@Maurize :( i know man
 

« first day (1916 days earlier)      last day (3030 days later) »