« first day (1520 days earlier)      last day (3429 days later) » 
00:00 - 17:0017:00 - 00:00

12:01 AM
Anyone know if this returns the home directory in an OS agnostic way? npmjs.com/package/path-extra
I know that it's different between windows and osx
 
Hello all.

I want to download viber at my iPod.

To do this is the only way to download it from App-Store?

Because I don't have an Apple-ID and to create one I have to give the payment method, but I don't want to. Isn't the download free?

What can I do???

I would be glad to get answers!
 
Odd question to ask in a javascript chat room, don't you think?
 
@NickDugger Sorry. I don't know where to ask this. Any hints would be appreciated!
Now I asked it in NSChat. Is it appopriate?
 
12:31 AM
Hey!!! Could I ask you something about depth-first-search?
 
No.
 
12:51 AM
@SomeKittens Ok....
 
Look at what @BenjaminGruenbaum sent you
 
@SomeKittens That I should check Corman's book?
I don't have this book... :/
 
user2985029
1:17 AM
@user159870 apple.stackexchange.com have a look at this site
 
@9205892 Ok. Thanks.
 
@NickDugger look at the code
 
@FlorianMargaine its horrible
 
1:32 AM
Yeah. But it answers his question.
 
1:45 AM
I went a different route anyways, but you're right, I should have looked at the code
 
2:04 AM
Hey, it's me, five years in the future. You were right! — SomeKittens 37 secs ago
 
 
2 hours later…
4:04 AM
Loving javascript for those moments when going from no registered error to a predictable error makes you fist pump
 
4:43 AM
I think I will win this one: stackoverflow.com/questions/27466364/…
 
What does that mean?
Your edit will be accepted?
 
4:59 AM
@monners my answer about it: stackoverflow.com/a/27466393/586051
 
nobody cares.
 
Who here knows how to font?
 
@phenomnomnominal apparently :-/
 
make them or chose them?
 
@phenomnomnominal Choose them.
 
5:02 AM
just go on font squirrel?
 
Using Open Font Library for now
 
Whats the font for?
 
So you need a heading font and a body font?
 
Along those lines
noodling around now
Playing with some sans-serifs.
You don't want any Serifs, as Bob Marley might shoot them.
 
for header and body, respectively?
 
hmm.
maybe.
I'm going for a more classic look.
Mainly because I want people to think I'm older than I really look.
I like the header font
 
@SomeKittens Typography matters. Fix dat typographic rhythm!
 
@monners tl;dr me
 
5:10 AM
Eh?
 
What do you mean by typographic rhythm?
 
:facepalm:
 
@monners these northern hemispherers AMIRITE
 
^^ dat
This is what happens when devs don't befriend designers
 
5:12 AM
I HAVE DESIGNER FRIENDS
 
Your mom doesn't count
 
Actually, the one at work gave me some really good pointers. He was really excited to see one of the devs show an interest.
 
Makes all our jobs easier if we can work from a cross-discipline baseline of knowledge
 
That's (one of) the points of this project
 
I'm pushing really hard at work at the moment for styleguides (for designs) to become mandatory for all new projects
 
5:14 AM
Once the design is more settled on this, I'm building one of those.
@phenomnomnominal SO FLIPPIN' USEFUL
 
@SomeKittens Indeed
 
5:30 AM
yo im writing shit in node
how do i make authenticated api requests
to github
api
it's just reading public data
so no user auth
im doing unauth'ed requests but capped at 60 per hour
no good
 
@phenomnomnominal Hmm. Monkeying around with golden ratio + font sizes. Not liking results
 
5:45 AM
@phenomnomnominal Font size being my regular boring text size?
 
6:06 AM
That better?
 
Regex question: How do I get the src part of the <img> using regex?
 
Generally, you shouldn't parse HTML via regex because it gets VERY complicated VERY fast.
Instead, grab the HTML element via querySelector
 
@SomeKittens looks nice. Only thing is that I'd probably vertically align the text in the links
 
@phenomnomnominal I'm not quite sure how
 
nav li a span {
    vertical-align: middle;
}
 
6:19 AM
  vertical-align: center
so that's why it wasn't working.
 
Noob :P
 
@SomeKittens Ok. By the way, which is preferable? getElementById or querySelector ?
 
@RahulDesai either
 
This jsPerf comparison says getElementById is faster.
 
@RahulDesai And I say you spent more time typing that sentence than the time you'll save
 
6:22 AM
apparently
 
anyone here use superagent
gist.github.com/tejasmanohar/3cc5183ce78ceaa9fa47 -- no luck when i use this auth stuff :( -- browser just hangs after submission then times out eventually, no errors in server console :( -- i've set the env vars properly because they print out right
w/o auth() function beign called it "works" BUT i get rate limited to 60 per hour
and thats not good when testing stuff
 
6:55 AM
@phenomnomnominal I can't quite get the alignment right: jsfiddle.net/ffzo6cp0
halp
Looks to me like the font thinks it's bigger than it really is?
 
@SomeKittens yeah I'm looking at it :)
 
7:16 AM
The downvote injustice! stackoverflow.com/a/27467117/586051
ugghh
 
@RahulDesai Dude. Deal with it.
 
I have no choice. :-/
Why do they not comment! :(
 
@phenomnomnominal So it's a browser thing?
ARG
I'm using normalize.css
 
@SomeKittens nah, I just added that to remove some things that were bugging me
 
7:27 AM
@phenomnomnominal So you just messed with the padding?
Still not sure it's centered
 
 
2 hours later…
9:42 AM
@SomeKittens haha yeah totally, I think it's the way the fonts baseline is set up, nothing I tried would fix it
 
 
1 hour later…
10:46 AM
!!tell Zirak define milquetoast
 
@Zirak milquetoast Meek, timid.
 
Hi guys! I just released a lightweight library for setting a spotlight on Dom elements, it's very simple and util I think, can you take a look and give me some feedback? thanks!! github.com/zzarcon/focusable
 
I hate when people do that:
$q: A service that helps you run functions asynchronously, and use their return values (or exceptions) when they are done processing. — Mihai-Andrei Dinculescu 2 mins ago
Gee, thanks -_-
 
What a dick
 
Well, he just deleted his answer and corrected itself so I guess he saved grace :P
 
10:59 AM
@Zirak @BenjaminGruenbaum A really long read, but it gets quite interesting newyorker.com/magazine/2014/12/01/quiet-german
It's about Angela Merkel, who's currently serving her third term as the Chancellor of Germany
 
Thanks I'll look into it later
 
Sure. It took me 3 weeks of leaving that open in a tab to finally read it :P
 
@SomeGuy jebus that's long.
 
> Putin summoned his black Lab, Koni, into the room where he and Merkel were seated. As the dog approached and sniffed her, Merkel froze, visibly frightened. She’d been bitten once, in 1995, and her fear of dogs couldn’t have escaped Putin, who sat back and enjoyed the moment, legs spread wide. “I’m sure it will behave itself,” he said. Merkel had the presence of mind to reply, in Russian, “It doesn’t eat journalists, after all.”
Nice.
 
@SecondRikudo Yep. I started reading at about 2pm. It's 4:40 now, and I haven't finished yet
 
are macbook airs any good for programming?
 
user2985029
probably
 
user2985029
go into a shop and try it out
 
@towc no
 
11:27 AM
It really depends on you more than the laptop
 
laptops are not good for programming as whole
 
What you feel comfortable with, what you want to actually do, etc.
I personally don't enjoy programming on laptops, but there are people who do
@tereško Why is that?
 
@SomeGuy not enough space
 
user2985029
i think it depends... depends what you're used to
 
Like physical limitations, you mean?
 
11:29 AM
@tereško Screen space or storage space?
 
user2985029
i use two screens at work and i feel most comfortable with that, but it's possible to get things done on a laptop with a little adjustment
 
Because both have solutions...
 
colleagues have preferred the Pro
 
@SecondRikudo my phone has enough storage space for programming
 
if you're committed to developing on a laptop, I've heard several people who use the Pro and whose opinions I value say it's hands down the best laptop to use
 
user2985029
11:29 AM
on os x there's this feature that allows you to have multiple desktops and it's easy to switch between them
 
I've only programmed on laptops in my life, and just wanted to know if there was a good reason for me to leave this WIN8 pc from 2012 and get a new MacBook Air
 
I'd never want to dev on a laptop. I value my screen space too much
 
user2985029
so that's a bit like having nine screens
 
@TomW I value mobility.
I work while travelling a lot.
 
^ that actually a reasonable cause
 
11:31 AM
I know that almost half of the web developers use mac, but I'm also learning client languages like c#, and I'm not sure if I should completely let that language alone just so that I can do better web developing
 
user2985029
i've done real work on a macbook pro so i can say it's certainly possible
 
You can run Windows in Boot Camp IIRC
 
user2985029
i have windows 7 and windows 8 on vmware fusion
 
user2985029
and visual studio 2013 installed on those for c#
 
@towc What OS you run doesn't really matter as a web dev, IMO
 
11:32 AM
@SomeGuy what about a client dev?
 
@BenjaminGruenbaum Only now I noticed the root meeting.
 
Just because people tend to prefer that doesn't mean it's actually better. Just that a lot of them prefer it
 
user2985029
these days you can use c# on os x natively too
 
well, when I stop working I become a "gamer" and not a "developer"
 
user2985029
with mono
 
11:32 AM
@SecondRikudo Heh
 
sudo meet
 
@towc Define "client dev"
 
@SomeGuy 'better' is subjective, and you can hardly prefer something that you think is worse, those things are contradictory
 
@SomeGuy c++, c, c#
with OpenGL and sorts
 
@towc Linux, Linux, Windows.
 
11:33 AM
I just use Windows for development as runs everything
Also has the best support IMO
 
@BenjaminGruenbaum lol
 
user2985029
but you can just run windows in a vm and it works just fine
 
In the last 3-4 years you can just join Microsoft's internal Jabbr chat rooms and have support instantly for development problems.
Nothing in linux matches that
 
user2985029
you can run linux in a vm too if you want
 
@TomW Not really. I prefer using Ubuntu, but I don't believe it's objectively better than other operating systems
 
11:34 AM
I send messages on Facebook to Scott 'fuckin' Gu and I get replies 5 seconds later.
 
But we're getting into semantics
 
@SomeGuy it's better for you, (presumably) because it does more things you like in the ways you like and less things that you don't. Hence the subjectivity.
 
I think we're saying the same thing.
 
@SomeGuy Dpends on the other operating systems...
 
Also - all the drivers always work
 
11:35 AM
hello everyone
 
Also, you can run IE and debug it easily which is a big deal.
@SecondRikudo repost
@AwalGarg mornin
 
@BenjaminGruenbaum Counter repost
 
problem is: I'm new to client dev and I certainly want to learn more, I may stop with learning web dev: I have a slow win8 pc and I could switch to an extremely fast macBook Air Pro. What should I do?
 
Suggestion that you create a vaccum
!!afk class
 
11:37 AM
@BenjaminGruenbaum vacuum*
nab
 
@SecondRikudo what's the opposite of Me?
 
@towc You
 
@SecondRikudo but Him can also apply
also Us
 
user2985029
also, she, them in that case
 
user2985029
no not us
 
11:38 AM
exactly
 
user2985029
us includes me
 
user2985029
opposite of us is them
 
one is singular, the other is the plural (opposite)
 
user2985029
oh
 
user2985029
in that way yes
 
11:39 AM
so, I fall in the 79 %
 
user2985029
i don't, but i must say i never thought of us as being an opposite of me, it's more of an adjacent in my mind
 
Wow
Apple store says:
> In the United Kingdom, consumers are entitled to a free-of-charge repair or replacement, by the seller, of goods which do not conform with the contract of sale. Under English law, consumers have up to six years from the date of delivery to exercise their rights; however, various factors may impact your eligibility to receive these remedies. For details, click here.
The only retailer I have ever seen to clearly acknowledge the existence of those regulations
Well played, Apple.
the 'contract of sale' implicitly says, among other things, that good should be free of manufacturing defects and fit for purpose, paraphrasing. IIRC it has been successfully argued for other products that fittings made from a material not durable enough to withstand use are defective, for example
 
11:56 AM
That's an awesome law.
Here you get 1 year (by law) for things that are not consumables and cost over 80$
 
I dk the law here, probably unexistent ? @SomeGuy ??
 
I give him advice so he deletes it -_- stackoverflow.com/a/27468242/1348195
 
12:20 PM
@darkyen00 No idea
 
1:01 PM
@BenjaminGruenbaum It's very difficult to actually exercise it and have the retailer accept it, and it's not necessarily to the full term of six years.
they'll often quibble it
 
The law here heavily favors the consumer.
If you sue, the court will rule in your favor most of the time.
120 more points on and I get the gold ^_^
 
1:17 PM
lol, promise questions are some of the least rewarding questions ever.
My rep-per-post is the lowest for
 
@BenjaminGruenbaum That's because people who know how to use promises rarely ask about it, because it's a relatively advanced topic.
 
Probably
 
And those rare few who do ask about it don't generally care about it.
(As in, care about it enough to follow the tag and vote on QA)
 
Yup
OTOH I'm 30 votes and 13 answers away from a BB silver badge
 
1:36 PM
hello
 
@Bilash 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 want to retrieve facebook friends birthday in v2.2. Anyone please help me ?
 
Facebook is really easy to work with
 
I HATE IT WHEN THAT HAPPENS
 
1:41 PM
I need a new laptop - MacBook Pro yes or no?
(Installing Windows anyway)
 
@BenjaminGruenbaum If you're installing Windows don't take a mac.
 
Suggest an alternative please
 
Standby.
 
@BenjaminGruenbaum in v2.2 many permission removed.
 
@BenjaminGruenbaum DELL Ultrabook LATITUDE E7440
Is what I'm using
I have no complaints.
 
1:43 PM
Has a small SSD or no SSD.
 
Small SSD
220GB
 
I want at least 256GB
 
I think there's a larger storage version there
 
aLSO, SLOWER PROCESSOR
 
@BenjaminGruenbaum Yeah, it has 256GB
 
1:44 PM
Woah reverse capslock
link to price?
 
Not sure how much it costs in Israel though
I have the rightmost version in that page.
(The no-touch one)
 
It costs more than the MBP and is slower
Are you satisfied with it?
 
I am.
 
The "Dell Price $1894.55" one right?
 
Yeah
I ran Windows for a couple months before I got the chance to install my favorite Ubuntu
Never lagged or did any issues.
Even when running Intellij + several instances of Chrome, Firefox and IE for browser testing
 
1:51 PM
Name one thing this does better than the mbp
 
@BenjaminGruenbaum Never tried the MBP.
So can't really tell.
Don't want to say things I'm not sure of.
This is an alternative, whether it's better than MBP I don't know. Check :P
 
MBP is around as heavy, has a faster processor, better warrenty and a better screen.
Also likely better battery life and trackpad - I don't want to buy a mac but I just might
 
Price though?
 
Around 1600$
I'd appreciate some critique on this btw:
 
2:28 PM
@BenjaminGruenbaum Sounds very cool
Any idea how the parallelism will be done?
Some 2014s need to be 2015s
 
Yes, a lot of algorithms have a chance to parallel a step in them, those steps will be provided by optional callbacks that default to running sequentially - those callbacks will probably do something akin to MapReduce - send each batch to a different machine or something like that.
 
I'd love to work on that if I got paid (that's not a request)
 
For example if you have kmeans(data, k) you'd instead have kmeans(data, k, mappers, reducer)
 
@BenjaminGruenbaum That means it will be able to use workers as a backend
 
I don't think I'll get paid to work on it. I can though but that'd require leaving my current job :P
@copy yes, that's the idea, we'll define an interface to 'dispatch work to', that can be a WebWorker, a process, and usually a remote computer.
 
2:33 PM
I guess you already know, but you'll probably want to look into simd.js too
 
Yeah, that's definitely a goal
I'd love it if you contribute stuff when we start actual development
 
I will
The simd shim already has 256 bit operations
 
that's sweet
 
2:52 PM
I'm currently pondering whether to use Buffers or typed arrays @copy
 
I want to spend last 6 months of my college
 
Leaning towards buffers.
 
building games :-/
 
@BenjaminGruenbaum Can you do math on buffers?
 
I originally started programming, to be able to write games x_x ... now I have a sharp urge to make em again !!!
 
2:53 PM
I think typed arrays are the right way to do this
 
@Loktar enlighten me
@IvoWetzel ^ /cc
 
@copy Typed arrays have to start filled with zeros (so allocating them is more expensive) - can you do math on them?
I mean, does the typed array give me something other than the indexer?
 
you know how something like bittorrent has an option like "Open Containing Folder" that opens up the folder in the file explorer in windows, or whatever OS. Is that achievable in node? Can I make windows navigate to a given path?
 
@NickDugger apparently but that doesn't look easy. If you can get into user32 you can probably do pretty much anything
 
@BenjaminGruenbaum No, but Buffer doesn't have that, does it?
 
2:58 PM
No, but I have to implement it anyway and I'm wondering what advantage typed arrays give me that buffers don't (that's worth the extra zeros wipe)
 
@darkyen00 Go for it.
 
I believe typed arrays are designed (optimized?) for operations on the data and buffers are for things like network/file buffers
 
What's stopping you?
 
Emscripten uses typed arrays
 
@SecondRikudo can't just go for it
the situation is slightly more complicated :-/
 
2:59 PM
@darkyen00 That's you saying.
The only thing stopping you is you.
Unless you broke both your hands, in that case it's a tad different.
 
@copy Buffers are just handles to malloc calls. Emscripten runs in browsers so it can't use node Buffers by default.
Buffers are unsafe, you can turn off bounds checking for example in buffers to get more speed.
 
@SecondRikudo not a hand.
@BenjaminGruenbaum o/ oi
 
@darkyen00 So?
 
Don't wanna talk about it on here, miaou ?
 
3:06 PM
@BenjaminGruenbaum I don't think the allocation is not going to be a huge factor (for instance if load or store on Buffers is more expensive, that should have a bigger impact)
@BenjaminGruenbaum I guess you'll need to write some benchmarks
 
@copy load and store are just assignments to memory location but you're absolutely right the correct way to resolve it is a benchmark
 
@NickDugger you can also start explorer against a given path in C#, put that in a C# script file and call that from node like this
disclaimer: have not tried
 
3:29 PM
Brown switches are louder than I thought
But this is nice
 
3:47 PM
@SomeGuy watch news nation.
our country is really idiotic. dnaindia.com/india/…
 
4:01 PM
Oh our mighty leader, we love you so much we stuffed your body in a freezer!
 
don't eccentric billionaires do the same thing?
 
i want to display a variable two times on the same page but if i use this function: $("#totalSum2").html(totalCHF + " CHF");
and with this elements: <span id="totalSum2">0&thinsp;CHF</span> and <td id="totalSum2">0 CHF</td>
and it is only displayed for the first and the second is 0
 
IDs have to be unique
You need something that does not need to be unique
 
ok
a class?
 
That would work
 
4:42 PM
posted on December 14, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Terry Johnson explains the evolutionary history of fad diets at BAHF

 
4:56 PM
lol, cute
 
 
00:00 - 17:0017:00 - 00:00

« first day (1520 days earlier)      last day (3429 days later) »