« first day (1119 days earlier)      last day (3845 days later) » 

8:00 PM
@BenjaminGruenbaum Yes, but how would that help?
 
@rlemon Only two more rounds and you can pretend you're in Mass Effect
 
I was under the impression this was impossible to solve with CSS alone.
 
user1596138
@Retsam It's worth it if you enjoy driving the way I do. It adds almost an hour to my trip, but I hate the interstate. I spend most my drive back between the cornfields.
 
@SomeKittens I have a galaxy nexus I can rock as well
and some old blackberries
 
@NathanOsman You want to fill the remaining height with floats, if it's static just set the height to 100%
 
user1596138
8:00 PM
There isn't that much in Indiana, but when I say that I don't mean it in a bad way. I love this state.
 
they all work
 
@NathanOsman Can you give me an example in jsfiddle?
 
user1596138
@SomeKittens It happens. Rarely..
 
@NathanOsman you are not by chance in Ontario are you?
 
@rlemon No, I'm not.
 
8:02 PM
booo
 
@BenjaminGruenbaum Sure, give me a couple minutes.
 
@Jhawins True, I just think it's not any more often than the general populace.
 
@rlemon I was in Ontario back in September during a vacation.
But nowhere near your city.
 
ahh, fun times?
 
Ale
At first I wanted to
 
8:03 PM
0
Q: How to stop Firebug from jumping in the source code all the time

testingIf a Javascript is changing e.g. a style, firebug jumps to the position in the source code where the change happened. The problem is that I want to analyze a certain part of the source code but everytime I scroll to a certain location it jumps right back to another location. So I cannot analyze t...

 
user1596138
@SomeKittens Chiiiiilllllllllll
 
@Jhawins If you haven't been to Turkey Run, I highly recommend it; especially this time of year with the leaves turning. It has some pretty great walking trails and some really cool scenery.
 
@Ale i.imgur.com/Aw6smQZ.gif // It's funny, give me stars.
3
 
user1596138
Have you got another job lined up yet? Worried or do you have things in the bag>
 
Ale
@SomeKittens Yep
 
8:05 PM
@Jhawins There hasn't been a better job market for devs in SF since the demand for firefighters around Crassus.
 
Ale
That what I usually do
 
Anyone know the developers of the common application ? commonapp.org
 
Ale
> Aw..sm..
 
@BenjaminGruenbaum jsfiddle.net/79f5f <--- I want .content to take up the remaining space in .parent.
 
8:06 PM
I'm surprised. It looks like nobody knows querySelector. I didn't expect those bad answers...
3
Q: How to get the source of an image inside a div using javascript?

ishkeeHow can I get the source of an image placed inside a div with unique id. <div id="0a01"> <img src = "one.jpg" /> </div> <div id="0a02"> <img src = "two.jpg" /> </div> <div id="0a03"> <img src = "three.jpg" /> </div> I know if I had given an id to the image itself I could've got it us...

 
just use height: 100% ? jsfiddle.net/LbWxV
 
@BrandonGelfand nope. Why?
 
@NeerajKumar 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.
 
@nderscore That doesn't do what you think it does: jsfiddle.net/k2W3e
 
user1596138
@Retsam Looks cool! I'll check it out sometime. My family is actually from Scottsburg and Louisville, so Southern Indiana has a lot more meaning to me than way up here.
 
8:08 PM
that's what I get for not actually looking at it ._.
oh, it's because you have margin and padding
 
I'd like to take that into account if possible.
And if it helps: this only has to work in Firefox. It won't be used in other browsers.
 
then use calc
afaik it isn't horribly broken / slow in FF
 
calc?
 
crap. margin
 
8:10 PM
@nderscore jsfiddle.net/79f5f/4 That causes the <div> to take up the full height of its parent.
 
I can't believe it's not margin!
 
If you don't substitute with margin you'll end up with padding.
 
jsfiddle.net/rlemon/79f5f/6 even better with border box
I have only gleemed at flexbox but wouldn't it work for this as well?
 
8:12 PM
@BenjaminGruenbaum I'm afraid there are a couple problems - the padding is ignored and the .content <div> starts halfway down .parent.
 
Ah, can you show me what result you want?
 
@BenjaminGruenbaum rlemon's fiddle just about nails it.
(The result, that is.)
 
Ah, so do it like that :P
 
Let me check how far back calc() support goes in FF...
 
everything but ie8 works, even ie7 and ie6 shimming is easy with expression
 
4.0 (2) -moz
16.0 (16)
 
IE8 needs shim
 
@BenjaminGruenbaum I don't need IE8 support, thankfully.
 
Ah, so definitely calc
 
@BenjaminGruenbaum how should I get started with playing with market shares et al? TipRanks isn't on play store :p
 
user1596138
8:16 PM
@SomeKittens Kinda what I figured. Good luck!
 
@FlorianMargaine You can start by reading recommendations, you can get on tipranks.com and get the free version for Chrome.
 
@BenjaminGruenbaum TipRanks is only for mobile / tablet?
 
It gives you access to the most recent recommendations so you can judge for yourself
 
got a windows 8 widget thingy?
 
@rlemon No, it's for all web browsers, and then we also have a Windows Phone app and iOS and Android soon.
 
8:17 PM
yea I just loaded it
 
@BenjaminGruenbaum i mean where do i subscribe and play with the money etc
 
@FlorianMargaine We don't do that, we just tell you which people are worth listening to when they give you advice, imo if you've never invested before don't start trading just yet - do it all virtually for a month or two before you get the hang of it.
I just had an idea, how would I detect the actual background color of a page?
 
the visible background? the body background?
 
The body background, the actual background.
 
document.body.style.background doesn't meet your needs?
 
8:23 PM
No, people have wrappers.
For example, let's say I want to get the actual background color here: dailyfinance.com/2013/11/05/…
 
so then the visible background
 
(Also, has to work in IE8 :P
 
I suppose you could check the documents children for any direct children that are 100%+ height or width and measure that
just make sure it is also visible.
otherwise you'll pick up overlays
 
What I'd really want to do is snapshot the side and average the color it has in practice
Although I don't know how to do it
 
you can do it with a extension
I have no idea how to do that without
 
8:27 PM
Ok, let's assume I have an extension
Here's the use case, since you have TipRanks installed - dailyfinance.com/2013/11/05/…
 
NPAPI
 
It works here, but I don't like the fact it's black here. I'd like it to be closer in the scheme.
Also, TipRanks works on all browsers, NPAPI is not an options.
 
well pft
flash?
 
Sounds like you got a challenge.
No flash
 
you can also use the html-canvas stuff and render the html to the canvas and read that
 
8:29 PM
I don't think you can do it.
 
but then you won't work with older IE
 
Wonder if it works with the html canvas shim
For IE8
Q: How do I get html2canvas to work in a browser extension?

A: You shouldn't use html2canvas in a browser extension
 
or you can do it all on the server and just send back the style information via json
 
That's not really an answer to that question
 
It is a practical suggestion though.
Doing it in the server is interesting, if I can do it on the client side it's much better.
 
8:33 PM
lavishbootstrap.com I'm thinking of what this site does
otherwise, without canvas, and without extensions....
you will be doing a lot of guessing I think
 
That's not a problem - they do it for an image
If you can't do it that's ok, I don't have a good idea either
 
@BenjaminGruenbaum depending on the language there are tools to take a 'snapshot' of a website on the server
 
I think canvas may be your best shot
 
Yeah, I know how to do it on the server, that's not what I had in mind though,.
 
let me tinker some bad code out to read the direct children from the body
otherwise take the body
 
8:36 PM
@BenjaminGruenbaum I'm going to quote someone I follow on twitter...
 
> If someone asks a, "How do I X?" forum question and you answer, "Why would you want to X?" then YOU SHOULD NOT BE ANSWERING FORUM QUESTIONS.
I suppose "You shouldn't X" and "Why do you want to X" are slightly different, but still.
 
function isCovering(element) {
  return element.offsetHeight >= document.body.offsetHeight && element.offsetWidth >= document.body.offsetWidth;
}
function findCovering() {
  var next = document.body.firstChild;
  while( next && next.nodeType !== 1 && !isCovering(next) ) {
    next = next.nextSibling;
  }
  return isCovering(next) ? next : document.body;
}
untested
probably doesn't work
 
Note : As Google halted the support of IE9 in GMail, I can halt the support of IE8 in SO ;) — dystroy 8 mins ago
(not everybody seems to agree...)
 
12
A: Do we have to adhere to legacy browsers for answers to questions?

rlemonShort answer: NO Long(er) answer: NO, but in my personal option it is always nice to inform the user if the code does not work in any specific release (worth noting). So if it fails in IE6, who cares... if it does not work in safari or IE7... well I wouldn't go so far as to provide them wit...

I hate when people jump on the "this doesn't work in X previous version!"
 
8:41 PM
@rlemon Check the suggested edit
 
see reject reason
:P
but also tee hee
i think that would just get edited out if I put it in
 
Can't see it...
 
"This edit would radically change the answer too much..."
 
8:48 PM
hehe
 
sigh, people really need to grow a pair
> <ThiefMaster> hrm, i have two usb audio devices (a cheap-ass usb soundcard and a creative usb headset).. the former works perfectly fine but on the headset (which uses the usb audio class, too) i just hear a pop sound when playback starts/stops but no actual sound
> <ThiefMaster> no idea if it's actually a problem with the pi or the device on linux in general, but before i get a linux livecd to test it on a proper pc i guessed asking here couldn't hurt.. maybe someone had a similar problem
> <IT_Sean> please mind your language in #raspberrypi
(yes, the guy has a problem with "cheap-ass")
 
Well fuck.. that's a rough room.
 
LOL... I've read it twice wondering before you precised in parenthesis the problem.
 
@ThiefMaster LOL wow wtf
 
@Loktar Isn't "wt_" bad language ?
 
8:51 PM
theyd probably consider the acronym wtf bad
 
> Posting content containing excessive foul language or adult content will result in a warning, a kick, or a ban depending on the nature of said content.
 
@ThiefMaster Mind your language in the JavaScript chat, we don't take kindly of people who say ass, fucking clusterfuck or "This is JavaScript, a room full of fucking asses and discussion looks like a clusterfuck".
 
/me farts
 
> Also be aware that ‘fsck’ is only acceptable in the context of a file system check. Telling someone to run fsck is fine. Telling someone to fskc off is not.
 
@RUJordan Good one. Source ?
 
8:53 PM
> Also be aware that ‘fsck’ is only acceptable in the context of a file system check. Telling someone to run fsck is fine. Telling someone to fskc off is not.
 
Just a rule from the link @ThiefMaster posted lol
And they spelled fskc different from fsck, is that a pi thing or a typo thing?
 
typo i guess
 
Foreshame.
Rules with typos instantly lose credibility and thus breaking them is ok.
 
this pen makes me sad
w3schools is the best place he could link for colour names?!
and I am so making this tonight: codepen.io/grgrdvrt/pen/vqphy
but you know, lemony
 
That deeppink is sexy
 
9:04 PM
0
Q: Pre-selecting category from drop-down list or convertingdrop down list to links

user41531I'm using this plugin called buddypress links and in it's link directory page the user can sort through the links by category from a drop down list(screenshot).What I need is seperate links for each category not a drop down list and after some searching I tried to follow a tutorial to pre-select ...

0
Q: Refactor to provide for multiple instances on a single page

mantisI have a script that separates the date from a datepicker into day, month, and year. It works fine when there is one form on the page but not when there is a second one (presumably due to the id being the same). How can I add a value to my id and name so that they are unique values if the script ...

 
@rlemon Beta or Alpha, man... i.snag.gy/Cxyrs.jpg
 
both
 
balpha
beaulpha
 
0
Q: How can I ensure reasonably spaced out enemies

SamuraisoulificationI have a simple javascript game and I'm initializing their positions on the y axis using random numbers. How can I ensure that they are reasonably spaced apart? My simple algorithm is: y = (Math.random()*1000%600); However I frequently get enemies almost directly on top of each other. This ...

 
user image
3
 
9:11 PM
^ glad they put that
I always get confused
 
inorite
 
That is the best picture I've seen all
day
 
Seriously, this looks like some kind of promotion of the actor...
Why assign fifty reputations to this very short answer? meta.stackoverflow.com/questions/118582/… This is a acceptable answer? I think this is a suspected acceptable answer... — Mirko Cianfarani 4 mins ago
 
who here speaks german?
what the hell does this say
@ThiefMaster ??
 
I can read it, very very slowly... looks like wtf...
 
9:19 PM
it's google-translator bullshit
 
jibberish?
 
0
Q: Resizing table columns with text overflow ellipsis making text overlap

Troy CosentinoI have a table, with text-overflow: ellipsis;, and am using https://github.com/dobtco/jquery-resizable-columns to enable resizing of the columns. My hope was that as I resized column 1 into the text of column 2, the text of column 2 would shorten and include .... Instead it overlaps: The fun...

really stumped here, when resizing my table columns the text-overflow isn't being recalculated and therefore I get overlapping text
 
Wow.. game players are so impolite and stupid. "[Player Name]: [Coder Name] fix the god damn mining guild"
 
@RUJordan Depends on the game
@RUJordan My solution : play only multi-player games that can't appeal to kids, with no graphics and no instant retribution
 
@RUJordan runescape?
 
9:27 PM
when I coded for UO servers
player: <GM / DEV name> Fix this now!
dev/gm: or what?
player: I'll leave!
dev/gm: /kick <player>
problem solved.
 
@rlemon what langs did you code in for UO's servers?
 
runUO -> c#
sphere was its own scripting language
 
@SomeKittens If you're online, I can go on TS for a bit, but I'm tired
 
sphere 55i
tbh I did much more work with sphereserver than I did with runUO
I was just getting out of the game the last few years when runUO was getting popular
@Zirak you are back for the entire weekend?
 
Which means Friday+Saturday
 
9:31 PM
so you return sunday.
evening or day?
 
Early in the morning
 
:(
 
@Zirak it's cool
 
@rlemon That boggles my mind that someone can write a game server for an MMO.
 
my work fish tank is dirty but I don't want to clean it
@NathanJones I didn't write the game server
UO is like a shell.
you develop on top of it
 
9:35 PM
oh
 
@dystroy @troy small text based MMO I help develop
 
9:49 PM
Russian dating (possible nsfw, but lol): sadanduseless.com/2013/11/russian-dating-sites
 
@OctavianDamiean, @rlemon, @BenjaminGruenbaum I'll probably just get a nexus 4
I started going over reviews for the phones I considered, they were all pretty crap. As I went up, the gap between the cheapest decent option and a nexus 4 got pretty slim.
 
I have had no issues with my N4 other than a mystery app killing my battery
last os update I guess made said app do strange things
but after clearing out all downloaded apps and reloading the ones I use daily the problem is gone
@Zirak if you are ever visiting NA while you still have the phone remind me and you can have all of my N4 cases / covers and crap
 
Did you root your N4?
 
I can't wait for my contract to be up in march. I want new phone :(
 
9:54 PM
How's the battery life, though? Once in every what while do you charge?
 
I charge every night while I sleep
but I use my phone a lot
it gets me 8am to midnight without going into the red usually.
things like GPS suck back the juice
the ONLY complaint I have with the phones is no extendable memory
the 5 cents in hardware was too much to add a SD card slot
 
more like they couldn't find a spot to put it
 
are you kidding me?!
the phone is quite large (compared to my other phones)
 
That's something I'm worried about...
 
you get used to it
felt funny for about 2 days
 
9:58 PM
520
Cheap
Gets the job you need done done
Seriously, it's way cheaper, it's sturdier and it's not full of stupid shit.
 
@rlemon Yeah you're forgetting where I'm going
 
does the nexus 4 have a removable battery?
 
@Zirak no I haven't
still fits in a pocket fine.
back or front
and isn't heavy at all
 
my friend just got a nexus 5 and I was shocked at how light it was
 
@Zirak have you held the iphone 5?
or seen one in person?
left: N4
right: iphone5
 
10:00 PM
(The iPhone 5 looks so much smaller in that picture)
 
that is a generous picture
i think it looks deceivingly small in that
 
(still looks huge, not that it'd bother me that much unless I needed to use the phone with one hand often)
 
@BenjaminGruenbaum Now I remember! That IE anime character looks like Lux
 
( I don't get LoL references :/ )
 
10:03 PM
anyways
@Zirak if you are not on when I get home, glad I caught you and hopefully talk to you tomorrow
for the rest: bbl
 
But, well, it's the generic slim, blue-eyed blonde with just enough bust to be noticeable
 
I have a variable that is declared outside of a function and the value is set inside a function. However, when I try to access the value later (in the function that declared), the var is undefined.
 
@dystroy Excuse that I had abandoned this chat and I was wrong for chat.stackoverflow.com/transcript/message/12839396#12839396
@ThiefMaster http://chat.stackoverflow.com/transcript/message/12839420#12839420
NO I am reverso.net bullshit
 
@NathanJones are you sure it's later in time as well as later in code?
223
Q: How to return the response from an AJAX call?

Felix KlingI have a function foo which makes an AJAX request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. f...

 
I have made a joke...
 
10:06 PM
i have something like this element.onload = someFunc(), how can i pass in 'this' as a parameter to someFunc?
 
@user2204158 I don't think you have that. If the parens are there, someFunc will be executed immeditely, not on load
 
you are not very funny
 
@janDvorak ah damn, any ideas how i could execture the onload with parameters?
 
var t = this;
element.onload = function(){ return someFunc(t); };
 
@user2204158 use an anonymous function? ^
@user2204158 If you don't mind ES5-only, then element.onload=someFunc.bind(this)
(except with more whitespace; I hate whitespace)
 
10:10 PM
@janDvorak i mind it, but still thanks for pointing me at the anonymous functions, i think that's what i'm looking for
 
yeah... that's the classic way
but I feel great everytime I avoid creating one
 
now what I can do for recovering?
 
this is part of hack for ie so it's a bit if a guilty pleasure to do some 'dirty hacks'
 
anonymous functions are not dirty hacks. They are the bread of the day
but I prefer ham and eggs
 
shovels bread into his mouth
 
10:17 PM
@user2204158 ES6 is even nicer.
element.onload = () => someFunc();
Or define someFunc on the element in the first place.
 
Why would a company want to 'keep in touch'? Is that just a nice thing they say, or is there ulterior motives?
!!learn yourwrong @SomeGuy Your needed!
 
@SomeKittens Command yourwrong learned
 
Is it bad practice to have a lot of levels of callback?
 
@NathanJones you can still avoid deep indentation
fetchConfig.then(fetchData)

function fetchData(config){doFetchData.then(useData)}

function useData(data){...}
ultimately, when ES6 becomes available, you can just write something like this:
var config = await fetchConfig();
var data = await doFetchData(config);
...
damn, I'm getting impatient
 
10:33 PM
You know, you're not supposed to go more than one level deep with your promises
@BenjaminGruenbaum thanks for the suggestion, I'll do that, already found a website for this :) it's a shame there's no mobile app though
 
@FlorianMargaine If you'd like to sign you up for private beta I can possibly do that.
(Well, I can, there is just no beta, or code yet :P)
Frontend is such a small part of what we do though, and our browser extension does a good job :)
@SomeKittens Business is done in a very polite way between professionals.
In case anyone cares, Angular 1.2 is out of beta
Also, Knockout 3 has recently been released.
 
11:11 PM
I'm trying to make a very simple dropdown toggle with angularjs, and I'd like the dropdown to close when you click elsewhere on the page. So I tried to bind to the angularjs $document to a close function, but I run into scope problems. I've got a plunkr here, if anyone has suggestions: plnkr.co/edit/5oYJcRJftuuuuHP801DD?p=preview
 
@mikedidthis doesn't close still when you click elsewhere, looks like?
 
ahh sorry, I thought you wanted it to close on clicking it
 
Both.
(standard dropdown behavior)
 
hah
reminds me that I wrote a lightbox thing a few days ago
convinced the client that jquery + jquery lightbox wasn't necessary for what he wanted...
 
11:22 PM
@Case sorry I don't know angularjs at all to be any more help.
 
k, thanks
rather not pull in ui-bootstrap, because I'm using bs3, and ui-bootstrap is dependent on 2.3.2
 
@Case bennadel.com/blog/… I am not sure if that helps
 
Performance improvement. Yay!
http://codepen.io/schoening/full/myqaA < http://codepen.io/schoening/full/vkCyj
 
If there is by any chance a javascript programmer here that cares about math on the internet and feels like contributing to a cool project. Your help is appreciated here: github.com/evilstreak/markdown-js/issues/129 and here: meta.discourse.org/t/discourse-should-render-latex/1687
 
@FlorianMargaine what did you end up with? Good lightboxes are hard to come by
 
@Kasper doesn't multimarkdown support mathjax?
 
scroll down to the "show lightbox" button
I just changed the onclick to only close the lightbox when clicking on a "close" button at the top right of the lightbox and anywhere out of the lightbox
the "close" button being this: ✖
or something like this, can't remember exactly. But an html entity anyway
@SomeGuy thought you might like that: github.com/killion/xkcd-substitutions
 
ahh nice. Sadly I need one with swipe / caption stuff.
 
@mikedidthis Not that I know of. But at discourse.org they use markdown-js. I would like to run a math forum using the discourse forum. I've been trying for hours to fix the markdown/mathjax issues, but it is quite hard.
And I'm very bad with javascript :P
 
ahh it can be added as an additional js file I think.
 
11:45 PM
@mikedidthis hm? what's swipe/catpion stuff?
oh, for image galleries?
yeah, I only needed a lightbox to display an iframe in it, nothing more
 
@mikedidthis Yeah, I can add mathjax as a js file. But the problem is they are not to designed to work togehter. For example $\{a,b,c\}$ is converted by markdown into ${a,b,c}$ before mathjax converts it.
 
and a title. Not much.
 
So I need a script that makes sure markdown wont convert anything between $...$
 
@Kasper what with $\\{a,b,c}\\$?
 
@FlorianMargaine Yes, that would work indeed. But there are many of those issues. You also have $x_0=y_0$ and you get escape this with $x\_0=y\_0$, but as you see this is not really one wants. I make this forum for the university. And my director insist that I fix this :P Otherwise the student will learn wrong latex habits :P
 
11:55 PM
@Kasper yeah I guess
can't you use `` or 4 spaces?
 
yay someone else is on reddit
 
@rlemon :D
 
@FlorianMargaine yeah sadly.
 
have you seen the "gaming then and now" yet?
also the 60ft cock
 
@rlemon not yet
 
11:57 PM
 
haha nice
 
the comments are funnier than the picture / article
are you subscribed to reddit.com/r/gaming
 
@Kasper if you put the code in a block element, markdown wont parse it?
 
@FlorianMargaine You mean put the math in code blocks ?
haha :P
 
11:59 PM
 
lol nice
 

« first day (1119 days earlier)      last day (3845 days later) »