« first day (1181 days earlier)      last day (3783 days later) » 

12:00 AM
@BenjaminGruenbaum Only played with it a little bit. The in-app JS eval functionality looks pretty powerful. I'll definitely be using it for my more learning-centric projects
 
Tried installing it, crashed.
 
OS?
 
!!doge stable,works,LightTable
 
          wow
                  such stable
                         very works
so LightTable
 
@monners W8
 
m59
12:01 AM
@rlemon netobjects.com Now that's a fail way to start web development.
 
Dunno. I'm using it in OSX. I did have to update Java before it'd work
 
m59
@BenjaminGruenbaum Chrome could be wrong? :'(
 
@m59 lol, sure. I'm not 100% convinced FF is wrong here.
 
m59
:'(
 
I'm pretty sure the spec sides with Chrome/IE here
 
m59
12:03 AM
j/k =D
 
m59
I have too much Chrome-love
Has anyone found IE11 to actually be decent?
Because right after I decided to stop being suspicious of IE10, it screwed me.
 
> Standards from the last days of Disco, like Disco, will never die.
 
I am so used to chrome all other browsers seem clunky to use.
Even ff
 
m59
The dev tools man
I can't stand any other
IE has always been just horrendous, of course.
Firebug is alright
but it's no Chrome =D
 
12:07 AM
I don't like they layout of FF console. But that is minor
 
m59
It really sucks that Safari 6 is mac os only
for testing purposes, I'm screwed
 
@copy how was it?
 
hrmmm, graphics driver update
.... do i risk it?
 
m59
NVIDIA or ATI?
 
former
 
m59
12:11 AM
nice
should be reliable then, right?
 
it isn't a GREAT GPU but it is good enough to play most games
i'm only concerned because it is a few years old :P
 
m59
I've never had a problem with NVIDIA (mine is old too)
 
9800 gtx+
 
m59
I got my wife a crazy boss ati card and, though it is totally boss, the driver is lame
nice
Mine is barely suitable for gaming - gt240 something
that's like half the power of your card
or worse
 
eh, you can get my card used now for like $40
 
m59
12:14 AM
Guild Wars 2 was heavier on the cpu, thank goodness and I have a good one.
 
when I got it I payed $90
and it was already a couple years old then
 
m59
I played in the FF14 beta and somehow had it on max graphics with 30fps and that game is freakin beautiful.
it also sucks, but it's beautiful =D
@rlemon you don't have sweet web developer monies for a 550?
 
yea my bro was just telling me about how this weekend they are doing a server stress test or something
everyone can play
I have money - I just see the need. The games I play all run
 
m59
ah true.
 
once they don't i'll upgrade
but now i'm also trying to not play as many PC games until I feel i've gotten some monies worth out of my PS4
 
12:42 AM
anyone know of a JS lib that makes stylized logging friendly in webkit? (kind of like colors in node.js)
 
 
2 hours later…
2:12 AM
Alright I have a design problem here that I need some advice on. I have a fixed navbar on top (using twitter bootstrap). I created a basic F.A.Q. page where, when I click on the link, it automatically shows the corresponding information. However, the fixed navbar on top always ends up coming over the information box.
 
2:22 AM
0
Q: Length shows as 497 instead of 562 due to Unicode; how to get real length?

Danny BeckettThe following string shows a length of 497, whereas it's actually 562 characters: alert('[**BFI/KBFI**](http://aviationweather.gov/adds/metars/?station_ids=KBFI&std_trans=translated&chk_metars=on&hoursStr=most+recent+only&chk_tafs=on&submitmet=Submit): Boeing Field King County International Airp...

 
@DannyBeckett Have you read the room rules?
 
2:51 AM
@Jeremy A few times; what do you object to?
 
@DannyBeckett Advertising your own question
Especially 3 minute after you had posted it
 
So? It's a JS question
I've been hanging out in this room a while
 
Great. So have I. That doesn't mean you can spam the room with a 3-minute-old question
 
The rules permit it
 
> Do not spam. This is a fairly simple rule, do not repost questions because you did not get an answer right away. It was likely we read it and just didn't care. Tough luck. There are times when the room gets carried away with images or oneboxes, but this is no excuse to make a habbit of it.
 
2:52 AM
> How to link questions from the main site?
Links to main site questions on any Stack Exchange site will onebox in the chat. So, if you would like to post a link to your question please post it by itself, not additional text (in that post). This way we can see the onebox and get a little more information at a glance, it will also help your chances of having the question viewed.
Yes, it's referring to not posting a link multiple times
which I haven't, I've posted once
@rlemon Please let me know who's right here
 
---^
 
uhh what?
> do not repost questions because you did not get an answer right away.
................^
 
Hmm... even if the question was 3 minutes old and still active?
 
why not?
if he posts it twice, 30 minutes apart then bitch
 
Hm, okay.
 
3:37 AM
!!tell Jeremy wiki spam
 
@Jeremy Just in case you didn't know, this chat is for javascript discussion/questions. WTF is wrong with you?
 
Does this address work for anyone?
"http://data.githubarchive.org/2012-04-11-{0..23}.json.gz"
 
3:41 AM
no
 
Me either. It's supposed to.
 
4:32 AM
!!wiki the consumption
 
@monners No result found
 
you mean "Me neither?"
 
" do you mean "Me neither" "
 
Am sorry.
 
4:47 AM
Is anyone here who is familiar with todoMVC.com ?
 
@IamDesai Just ask the question
 
I am having hard time to understand their code
related to dojo
 
Isn't it grammatically correct to put a gerand instead of to-verb in your sentence?
 
What's a gerand?
 
such as "understanding"
It works same as to-verb
 
5:05 AM
"I am having a hard time understanding their code"
alternatively, "I am having a hard time trying to understand their code"
 
please excuse me :)
 
@IamDesai no need, your English is fine.
 
!!urban gerand
 
@SomeKittens gerand A cool colleague at work
 
Thank you. English is my third language.
thanks mate
 
5:10 AM
So what are your first and second languages?
 
@EnglishMaster arabic then french
 
I can speak both North and South Korean.
 
And I need a cup of tea
 
5:24 AM
@connorspiracist I agree with your deleted message.
 
@phenomnomnominal ha
 
Haha, I agree too
 
@EnglishMaster Marathi and Hindi :)
 
I'd say English is my first, because I feel more comfortable speaking in English than I do in Hindi
@monners Have you read any of Gladwell's books? Am I judging too soon to say they seem gimmicky and over-simplified?
 
5:49 AM
@SomeGuy Yeah I've read a few of em, and yeah I'm pretty much of the same opinion
Especially Outliers
He does like to generalize a fair bit
 
@SomeGuy They're alright. Nothing deep.
"Lemme summarize TED for you"
 
Hiyalo guys
 
6:06 AM
Hi
 
@monners @SomeKittens Awesome, thanks
 
 
1 hour later…
7:15 AM
Wait, there's a difference between north and south korean?
 
7:28 AM
Guys Please suggest me a Datatable with sorting and search functionality . The elements inside the datatable is from getters of the java bean .
 
@sankrish Java != Javascript
 
7:59 AM
@JanDvorak What do you mean, how are they different from each others?
 
!!tell english wiki javascript
 
HA WHAT?
Jan have you ever used sailsjs?
 
Which attribute would like the most want as a programmer from the following list?
1) Connections and friends from every big IT firms.
2) spatial, literature and maths intelligent
3) big biceps
 
8:02 AM
@jAndy already has 3
 
Only my right bicep is big :(
 
!!wiki sailsjs
 
@JanDvorak The Gods of Wikipedia did not bless us
 
!!google sailsjs
 
!!google sailjs
 
1st result ^
Rails for Node
 
for both
basically
Actually it's not even really specific for sailsjs
Say you use mongo or couch adapter for node and you have to create models/schema's
I'm in a situation where it would be good to create them on the fly as I have a situation where a user can create "product types" and each product type will have different fields etc.
any ideas?
or suggestions
 
Isn't NoSQL thingy all about using no schemas?
 
dojoConfig = {parseOnLoad: true}
Can someone please tell me the meaning of following code in Dojo
Explain like I'm 5 please
:)
 
@IamDesai I think that parses some sort of HTML
link?
 
8:16 AM
> when you use parseOnLoad, any functions you have passed to dojo.ready will not get executed until after the parser runs and any widgets it finds have been created and initialized.
@IamDesai you should really work up your google-fu, I've never touched dojo in my life before
 
@FlorianMargaine I just reached to that link
Thanks though
 
@FlorianMargaine Isn't that the most important thing in programming/whatever? Knowing how to use a search engine?
 
not really
 
Can anyone please help me with this code: jsfiddle.net/P7b9S/8 I cant seem to apply the Claro theme of Dojo to the Start button.
the class was missing
Nevermind :)
 
8:51 AM
@BenjaminGruenbaum how do you promisify stuff like app.get(..., function(req, res) {}); from express? I'm not sure about pastebin.com/90YnbQ64
 
What's the relationship between gingerbread and gingerkid?
 
@FlorianMargaine @BenjaminGruenbaum I have a question about BlueBird
0
Q: Fluid construction of parallel promises

dystroyMy question is about the elegant parallelization of promises in BlueBird when you need to pass both the context and argument to the functions building the promises. To make my problem understandable and testable, I made an example with no dependence. Let's suppose I do computation ( 1/(x*x*x) +...

(too bad esiliaj isn't here)
 
@Esailija ^
@dystroy did you try with just return [proto.square(arg), proto.cube(arg)]?
it should work
 
Where would arg come from ?
I don't see what you mean
 
    .then(function(arg){
        return Promise.all([
            proto.square(arg),
            proto.cube(arg)
        ]);
    })

    // replace with
    .then(function(arg){
        return [proto.square(arg), proto.cube(arg)];
    })
 
8:57 AM
@FlorianMargaine as in, remove whitespace?
 
remove Promise.all
 
@FlorianMargaine It works. Thanks. You know I spent more than one hour around this problem... Can you answer the question ?
 
there, done
 
It's not really as simple as I hoped but it's really acceptable
I'll wait to see if I get a simpler solution
@Esailija I wonder why there's no polymorphism here to interpret an array of functions (then takes a function). But as I'm just starting to learn BlueBird I might be missing an important reason.
 
Would this be illegal?
Smart sugar: It's a powder like product developed using smart-edible technology. Nowadays, smart wearables are becoming popular in markets. So we came up with an idea to make a smart edibles to compete with them. When you inhale this substance, you will temporary view everything around you as pastries, such as your laptop become a cake and and iPhone becomes an actual apple
 
9:01 AM
@EnglishMaster there is already such a product, and it's illegal
 
damn it
 
except not as a powder
 
I wonder why all, contrary to then, doesn't execute functions in argument. — dystroy 1 min ago
@dystroy I don't get it ^
 
When you pass a function as argument to then, it's executed
When you pass functions to all, they're not
(in fact there's an error)
 
@dystroy (btw, I improved my example from last night pastebin.com/M6fD2KGj)
@dystroy ah yeah
because Promise.all takes an array of promises, not of resolved
it's just not the same kind of function
 
9:05 AM
Smart-parents: These parents won't screw up your early stage of life ($2000 per parent)
 
@EnglishMaster $2k? You're underestimating the demand
 
We can move the production line to China to put the price down!
 
Hi all
someone point me to right direction, I am not new to designing interfaces but want to know the best practices
 
Really.. think of the cost of therapy.. that alone goes way beyond 4k
 
@yaron the best design is no design
 
9:19 AM
^
 
especially no animated gif of a dancing baby and no parallax
 
ensure every pixel conveys information, not aesthetics
 
Patterns are strange things. If you don't know enough to know when to use them, you shouldn't use them and when you do know enough to know when to use them, you don't because they never quite meet your requirements.
 
ok we go further with an example, now if I have a table with 4 boxes, should i create 4 divs within a main div

or create 1 big div then 2 verticle divs and then 2 divs in each verticle div or

create two horizontal divs and then divide then into half
 
@yaron For what? page layout?
 
9:21 AM
@yaron depends on what content is logically closer together
 
@Neil yup, it's a page
 
@yaron No, I mean: Dividing the main page into 4 sections?
 
HTML should convey content, primarily. CSS is for styling.
 
hii
i am facing one small issue. can anybday help me
 
@dystroy edited my answer a little bit
 
9:27 AM
!!welcome kruti
 
@kruti 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.
 
@Neil @JanDvorak this is what I am actually trying to do s7.postimg.org/u2ndvi4uj/Untitled.png
 
thanks
 
@yaron which four sections do you have in mind, then?
 
@JanDvorak that was just another example :)
 
9:30 AM
my que is i want to change url without reloading page. taht cna be achive from history.pushState but it is not supported in IE9. can anybody help me
 
@KrutiJani I guess you can't do anything in IE9, then
@yaron page => [title, body]; body => [body-main, sidebar]; sidebar => [image-widget, large-widget]
 
@JanDvorak no option? can i update queryString value without reloading in IE9? www:localhost:7070/hello/submitInqry?id=1
 
@KrutiJani I don't know of anything
 
@JanDvorak Ok np.
 
Easier than paint. :)
 
9:36 AM
@Neil true, thanks :)
 
My advice to you would be to be sure to get the parent-child relationship properly established
but beyond that, try to make css show it properly for the most part
It's enough that each section is in its own div
It makes it very flexible for changing later
 
i give it a go now
 
If you used table, for instance, you'd be obliged to leave it in a grid-like fashion, whereas you may not necessarily want that for say mobile phone browsers
 
@FlorianMargaine Your answer deserves more upvotes but of course it's hard to lure people into a QA starting with

>My question is about the elegant parallelization of promises in BlueBird when you need to pass both the context and argument to the functions building the promises.

I should have started with

> My jquery event handler isn't executed when I dynamically add element, why ?
 
9:40 AM
I guess I should start answering more of the latter type
 
@JanDvorak An important part of my rep come from those :\
 
The low-hanging fruit contains the most alcohol
 
it's ok, I don't care
@dystroy edited again
to include a usage example of Promise.all
 
Hi guys
Is it true that if we add our company address at the bottom of the company's web page.. the google understands that it is address and shows up in search results?
 
try it out
 
9:47 AM
@FlorianMargaine Seen, but I'd prefer if you removed the By the way part, which defeats the purpose of chaining promises
 
please
not possible.. I tried
 
@JanDvorak this is the structure i came up with jsfiddle.net/gdWM5
 
@dystroy done
just don't forget to fix your code to use this.square and this.cube
 
but I want to know if there is any technique then just tell me what it is..
@JanDvorak
 
@FlorianMargaine In my real code it's more complex but I don't have to use this here as I add the prototype's functions to exports
 
9:51 AM
@dystroy you do, because proto doesn't refer to the current object..
 
@yaron <image> should be <img>
 
@FlorianMargaine There's no problem : all instances share the same function. this inside the function is the right one
 
@yaron should do, otherwise
 
kool, thanks
 
should I autodownvote any question that starts its title with "Hi I'm ..."?
 
10:00 AM
@JanDvorak I wouldn't if the user is new on SO. Take the first pretext to edit the garbage out and the user will probably learn.
I frequently comment in this direction.
 
how should we name our classes for divs
i think ID names are fine @JanDvorak ?
 
They are pretty long
but that's not neccessarily bad
body-main-upper-image and body-main-upper-image2? Chances are this should be a single class instead
 
Don't forget that you can also use aditive classes
.body-main-upper .image & .body-main-upper .image2
 
try to use semantic classes and IDs (main, first, last, side) rather than presentational classes and IDs (top, bottom, left, right)
 
nm, just noticed your containing div already has that class
 
10:07 AM
@Kippie .image2 doesn't really deserve to exist
What's so special about the second image?
.image-last makes more sense
 
ummm, nothing really, i think i should just put them in a single div
 
good point
 
point is, is it a good practice to use divs to control elements e.g. image or just style the image, e.g. float left on image rather then on div
 
use divs or spans whenever it makes sense to group stuff together.
 
@JanDvorak span is for text
 
10:14 AM
span is for any inline content
 
Seems weird to use it for an image
 
why not? If the image should flow with the text?
you can use div with inline-block if it makes more sense
 
@yaron surprise your boss / professor by making a static image webpage
they'll be like, we have a badass here.
I wonder what is more exciting news than 2014 is here
 
Anyone know if it's possible to update a file's contents inside a form before submitting?
 
@EnglishMaster didn't get ya to be honest
it's not a static web page, it's just small part of a dynamic page
 
10:28 AM
@Greg which browsers do you support?
 
I mean, literally draw your website in photoshop and turn it into a jpeg then
<img src="mySite.jpg" alt="hmm, my site didn't load">
 
@FlorianMargaine just modern webkit blink
 
Your boss: "I've never seen anyone doing this before, you are promoted sir."
 
@Greg FileAPI might be what you need then
 
@FlorianMargaine I thought that was a read-only API?
 
10:31 AM
hence the "might"
I've never used it
but this is the only possible way you have
dunno if it can work
 
I think what I'm trying to do the way I'm trying to do it is impossible
 
@Greg noo
actually
probably
actually
noo
!tell Greg mdn FileEntry
or not
 
How would you go about simulating the gravity between two spheres, but not assuming their masses were in a single point but rather disperse throughout the sphere?
For a game, you obviously wouldn't care about that level of detail, but if you were running a simulation, that becomes relevant
 
@Neil multiple sub-spheres
 
@Greg Seriously?
 
10:37 AM
@neil I don't think that matters if the other points don't enter the sphere. Just use the mass center.
 
You'd have to approximate? There's no formula given x1, y1, r1, x2, y2, r2?
@dystroy It matters because gravity has an exponential pull according to distance
so the mass closer in the sphere pulls more
i'm sure it's a very small variation, but still
 
@Neil
In classical mechanics, the shell theorem gives gravitational simplifications that can be applied to objects inside or outside a spherically symmetrical body. This theorem has particular application to astronomy. Isaac Newton proved the shell theorem saying that: # A spherically symmetric body affects external objects gravitationally as though all of its mass were concentrated at a point at its centre. # If the body is a spherically symmetric shell (i.e., a hollow ball), no net gravitational force is exerted by the shell on any object inside, regardless of the object's location within th...
 
@Neil WAT? Gravity decays quadratically with distance
 
@JanDvorak Non-linear!
 
Cool therom.
 
10:58 AM
Can someone name the best book I can read which can help me with developing and designing html structure or user iterface using html, best practices please
 
experience.
 
11:13 AM
never going to get it then, asp.net developer gets to work on JS once in a while atleast in my job, i work on js once every 4 - 6 months for about a week only
 
Interesting comparison, designers: flatvsrealism.com :-)
 
<html>
  <body>
    <div>Fixed height 44px</div>
    <div class="content">How to make this div fill the rest of height</div>
  </body
</html>
 
@vzhen I would go for display:table-row
 
@vzhen A hacky solution would be using calc() - but it's not compatible on all browsers.
 
Or, give the top bar position:absolute and the bottom bar margin-top: 44px
 
11:21 AM
@JanDvorak I searched around. all the solutions are display: absoute, which I don't like. What is the disadv using table-row?

@IonicăBizău I want pure css.
 
@vzhen Yeah, it is pure CSS: jsfiddle.net/92GXm But it will not be compatible on all browsers.
 
@vzhen not sure it works in IE8
 
@JanDvorak i don't care IE8
 
@vzhen also, you might face the wrath against tabular design.
 
@vzhen developer.mozilla.org/en-US/docs/Web/CSS/calc (see browser compatibility)
 
11:23 AM
tables can't transition their dimensions correctly.
 
@IonicăBizău is cal() new feature in css?

@JanDvorak absolute top-bar seems not bad.
 
@vzhen go for position:absolute
 
@vzhen I guess so, it's experimental...
 
@IonicăBizău ya,

@JanDvorak ok
 
@IonicăBizău scrollbar animation = fail
 
11:28 AM
@JanDvorak Probably... Example?
 
@IonicăBizău the link you've posted
 
I don't see the scroll bar...
 
I mean, animation by scrolling
 
someone tell me why right section isn't in line with left please, please note i can't change HomeClass

http://jsfiddle.net/gdWM5/2/
 
@JanDvorak Ah, I guessed that you mean my jsfiddle. I don't know... I didn't creat it, but I like their work.
 
11:30 AM
it also doesn't quite fit on my widescreen
 
@JanDvorak Yeah, it uses a lot of resources, but it's very interesting.
 
waaay too much scrolling
tms;dw
 
11:54 AM
This will sound stupid but, why is this saying a[i].style is undefined ?
var a = [];
a.push(document.getElementsByTagName('div'));
a.push(document.getElementsByTagName('fieldset'));

for(var i = 0; i < a.length; i++)
    a[i].style.display = 'none';

document.getElementsByTagName('fieldset')[1].style.display = 'inline';
 
@AndréSilva because both elements of a are NodeLists
did you mean a=a.concat(...) instead of a.push(...)?
 
Oh
Did not know about concat
I just change the push to concat?
Because I noticed right after you said it and I changed to this:
var a = [];
a.push(document.getElementsByTagName('div'));
a.push(document.getElementsByTagName('fieldset'));

for(var i = 0; i < a.length; i++)
    for(var j = 0; j < a[i].length; j++)
        a[i][j].style.display = 'none';

document.getElementsByTagName('fieldset')[1].style.display = 'inline';
But it is ugly
 

« first day (1181 days earlier)      last day (3783 days later) »