« first day (1096 days earlier)      last day (3854 days later) » 

1:00 PM
ok now back to the important work. why is this not fully transparent (edges):
 
@SomeGuy mikedidthis is afk: drinking Ethanol
 
whispers because PHP. cough
 
Hahaha
 
@OctavianDamiean I will flog you.
FLOG!
 
1:01 PM
I want .split to accept an array of separators. Anyone against? Anyone in favor?
!!welcome rlemon
 
@rlemon 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.
 
@rlemon I will enjoy it. ENJOY!
 
@JanDvorak <3
 
I'm leaning towards very cool :-D
 
@BenjaminGruenbaum ??
 
1:02 PM
Yay caprica
 
@BenjaminGruenbaum better yet, make it accept a regex to match the separators
 
@JanDvorak It already accepts a regex. Some people find it confusing though.
 
@BenjaminGruenbaum against. Polluting the language for existing feature
 
posted on October 16, 2013

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) {} Kerpow!

 
 myString.split(/ |-|\/|\+/g);
 myString.split([" ","-","/","+"]); // this is easier to read
 
1:04 PM
@Feeds Heh
 
how do I disable audio in the chat?
 
@FlorianMargaine It's adding options to the API just so we're clear, not changing syntax or breaking semantics or something that already exists.
 
@KendallFrey ??
 
myString.split(/[- \/+]/g)
 
@BenjaminGruenbaum Do you want to submit that as a RFC ?
 
1:05 PM
I imagine you have muted the 'ping' for NinjaEcho?
 
@rlemon There's a button beside "all rooms" on the top
 
@dystroy I want to know if that's something people are interested in.
 
:facepalm:
 
@JanDvorak That breaks on multiple characters
 
@BenjaminGruenbaum granted
 
1:05 PM
thanks @SomeGuy
@CapricaSix test
niceeee.
 
not against, but more like "I don't care if this is added"
 
@FlorianMargaine ? granted what?
Ah ok
 
@BenjaminGruenbaum That might be useful for new users more than for us. Doesn't seem bad, at least after two micro-seconds of reflexion
 
what are you guys talking about anyways ?
 
1:06 PM
anyone here have worked with google+ signin button?
 
evolution of String.prototype.split in ES6
2 mins ago, by Benjamin Gruenbaum
 myString.split(/ |-|\/|\+/g);
 myString.split([" ","-","/","+"]); // this is easier to read
 
ahh, ok
 
Benji wants to propose this
 
hrm. I think that would be kinda okay?
 
Mainly, it means I don't have to know regex at all to do this
 
1:08 PM
you know my stance on regexp
:P
 
@fengshihao 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 don't
 
I dislike it
 
I see this in SO all the time, I've read all sorts of "how do I split by multiple values" in disguise
 
now I do
 
1:08 PM
In general, some people find string parsing surprisingly challenging
 
not @KendallFrey ;)
 
he loves string parsing with regexp
 
Let me know what you think, comments appreciated
 
@BenjaminGruenbaum Me too
I hate to learn regexes. Boring.
 
1:10 PM
@erikroyall Would split by multiple separators be something you'd use?
 
@BenjaminGruenbaum I didn't get you.
 
@erikroyall If you want to split a string by space or tab or dash or plus for instance. Would you like to be able to do that without regular expressions?
 
@BenjaminGruenbaum string.split(sep)
 
@erikroyall Yeah, what if you have multiple separators?
 
Does String.prototype.split allow a regex to be passed?
 
1:13 PM
Yes, it does.
 
hi all :D
 
string.split(/\,\s/) // spaces and commas
 
@BenjaminGruenbaum The varargs proposal scares me. I prefer the regular array.
 
@dystroy Me too
 
!!/choose "Chrome" "Firefox" "Opera" "Safari" "IE" "Maxthon" "Amaya"
 
1:16 PM
!!/tell deep google js toISOstring()
 
@erikroyall Opera
 
Oh, wow. Opera
 
no love of lynx
2
 
deep you could just go to google and run that
 
1:17 PM
oh well
http://deepschool.kd.io:8000/

Opinions?
 
@deep Uncaught TypeError: Cannot call method 'addEventListener' of null
Wait, maybe that's not your site
 
what Browser are you using? IE6?
 
gist.github.com/rlemon/952ad80462e25a2d305e yes it is php, yes it is ugly. it isn't production anything. I'm trying to migrate some images and they are not working out
 
@deep Chrome 31?
 
!!/choose "Chrome" "Firefox" "Opera" "Safari" "IE" "Maxthon" "Amaya" "Lynx" "Opera Mobile" "Opera Mini" "Royall Wowser (Coming not so soon)"
 
1:19 PM
@erikroyall Firefox
 
Google Chrome 30.0.1599.69 (Official Build 226629) m

Works Fine
 
// I'll be honest, I don't understand wtf it is achieving
hahaha
 
for reals.
like I know what the function is doing I read the docs.
but I shouldn't need it
 
@deep Uncaught TypeError: Cannot call method 'addEventListener' of null
 
it works fine for me.
 
1:20 PM
Uncaught TypeError: Cannot call method 'addEventListener' of null app.js:158
OPTIONS spark-learning.iriscouch.com/todos 405 (Method Not Allowed) pouchdb-nightly.js:655
OPTIONS spark-learning.iriscouch.com/todos Origin deepschool.kd.io:8000 is not allowed by Access-Control-Allow-Origin. pouchdb-nightly.js:655
XMLHttpRequest cannot load spark-learning.iriscouch.com/todos. Origin deepschool.kd.io:8000 is not allowed by Access-Control-Allow-Origin. deepschool.kd.io/:1
I get a buttload of errors
 
I'm on Opera Next 17.0.1241.28
 
@deep try opening your console.
 
Can't, at school
 
newTodoDom
ReferenceError: newTodoDom is not defined
 
@deep Not your gaming console. Press Ctrl/Cmd + Shift +J
 
1:22 PM
@FlorianMargaine because you showed the slightest bit of interest:
this is what it is outputting
 
slightest, really
 
which is what I want minus the black.
 
1
Q: Send non-public file as attachment in response (download non-public file)

John ツI have a download button in HTML that when is clicked a POST request is made via ajax sending the filename of the file that must be downloaded. On the server side I do something like this: function download (req, res) { ... // path is an absolute path to a file that is not in the publi...

 
@erikroyall I Know.
 
Any solution...? Searched a lot and no solution found.... :-(
 
1:22 PM
@deep It's not responsive
 
what do you mean?
 
You kidding? Don't know about RWD yet?
 
Is there any online site which let's you test js code for ie 7-8 ? (not emulator). I think i've seen a site which lets you download pure VM with ie7/8... any help ?
 
1:25 PM
yes. that's it. thank you :-)
 
!!norris
 
@erikroyall If at first you don't succeed, you're not Chuck Norris.
 
BrowserStack is great because it's free for 30 minutes
 
!!are you back?
 
@RyanKinal Of course not
 
1:27 PM
Oh...
 
But it's good. Buy a plan
Hm...
https://pbs.twimg.com/media/BWjeQuAIQAAhqW0.jpg:thumb
 
@erikroyall OMG MUST TRY IT NOW
 
why are people upvoting wrong answers...
2
A: Get actual value specified in CSS using jQuery

Rory McCrossan Is there a way to get the exact CSS (non-computed) value of an element using jQuery? No. You can only retrieve the computed value in px. That being said, you can work out the percentage by getting the elements height and comparing it to the parent's height. em, en and other measurements are...

 
@FlorianMargaine Because they don't know they're wrong?
 
Attention Room: I'm now hosting Caprica, if you find issues with her (I.e she isn't working) ping me instead of Zirak and I'll sort her out.
9
 
1:30 PM
@erikroyall y u repost?
1 message moved to recycle bin
 
@FlorianMargaine Sorry — AmitChotaliya 1 min ago
 
I wonder how many PHP related deaths there have been... I'm about to add one more to the statistic.
 
@rlemon Noooo! Who will maintain Caprica?
 
<? die()
 
@FlorianMargaine iirc I have an answer that does exactly what OP wants
I smell a close
 
1:33 PM
0
Q: how can i give my footer container the width from content if that slide left

Dave-88if i open my testsite: http://devauth.labscope.de/htmlapp/report-overview_test.html and click on the top left icon (filter) so the content and footer slide left and i see that the footer container don't have the same width as content container because the scrollbar in the Content make this. H...

 
You guys haven't seen this Pull Request yet? github.com/WhiteHouse/fortyfour/pull/5
 
11
A: How to get a style attribute from a css class by javascript/jquery?

rlemonI wrote a small function that traverses the stylesheets on the document looking for the matched selector, then style. There is one caveat, this will only work for style sheets defined with a style tag, or external sheets from the same domain. If the sheet is known you can pass it in and save y...

 
I don't suppose anybody has any experience with deployment tools? Opinions on good ones, ones to avoid, whether they're worth it... ?
 
@RyanKinal deployment tools as in "easily run a bunch of commands"?
or deployment tools as in Maven?
 
1:34 PM
or deployment tools as in Fabric/Capistrano?
 
hey i just made this: sieve of eratosthenes
 
@rlemon nice
 
@FlorianMargaine Well, I was looking at git-deploy.
But in general, yes... "easily run a bunch of commands"
 
Fabric is nice then
I like it because it's python
so, close to bash yet easy to make something funnier with it
 
1:37 PM
> By choosing stocks randomly based on how funny the ticker sounds when you try to say it out loud
damn, there goes my entire system!
but protip: ditch the TBBT pics for Community
 
@FlorianMargaine I'll give it a look.
I'm not doing anything serious (yet) but I've been meaning to figure out a good, systematic way to deploy that's not just "FTP some shit"
 
@RyanKinal we're using it at work, we can have easily opinionated deployment tools
and it's quite easy to write.
 
Sweet
 
@Delarn 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.
 
Good morning all!à
 
1:40 PM
The perfect diet for a JavaScript programmer:
1. A half-baked ice cream in the morning
2. Vegetarian chicken in the afternoon
3. Chicken stuffed stuffed with butter scotch and dipped in vanilla essence in the evening
4. Nothing for dinner
 
@BenjaminGruenbaum WP said no, but suggested trying: microlancer.com/explore/psd-to-wordpress/…
 
@mikedidthis You saw that whore again, didn't you!?
 
@Delarn Good morning, and welcome :-)
 
Thanks @RyanKinal
 
@CapricaSix She lives!
 
1:42 PM
@mikedidthis Thanks to Lemon, yes
 
!!summon 29074
 
I just happen to have the login and extra computers to run her on
no biggy
I don't like it when people over credit my contributions to the bot. I feel like it is robbing Zirak of his much deserved credit
really i've done very little
 
oops..!
 
@rlemon Oh I realize. Caprica is Zirak's baby. But she's currently running because of you.
 
Someone from here created a parody twitter account of mine.
It's all chuck norris jokes said in first person
 
1:46 PM
Why would you assume that's a parody of yours? And that it's somebody from here... ?
 
I'm playing with google maps api v3, with the infobox and the markerclusterer libraries. I want to make the cluster marker react on a click event to popup an infobox with all the managed markers in a list. I have made an infowindow to popup when the click event is triggered but every time I click the cluster icon it pop a new one.
 
@erikroyall3 on twitter
 
> Account suspended
 
@RyanKinal yea I wasn't so much talking about what you said. I just had to make it known
 
Oh and I am using JS not JQ...
 
1:48 PM
Oh, thank Twitter. They understood me
 
@rlemon :-)
 
I'm using JS because @rlemon once told me so ;)
 
@erikroyall Why do you think it's someone from here?
 
Listening to rlemon. A good first step.
 
@SomeGuy Might not be. It's someone else.
 
Should I even look at Phonegap anymore if I'm not really interested in Adobe's build service? I just did my first proper phonegap app and I got the impression Phonegap was just wrapping and monetizing Cordova.
 
@RyanKinal hahahaha thats what I want you to believe evil grin
 
did any one played with the google maps api v3 before ?
 
@Delarn Sorry, nope
 
@Delarn No, it's not playful when I asked.
 
1:54 PM
I started mucking around with it then quickly gave up and just put a static image of the map on my site :P ha
 
LOL
I have to use that in my project.
 
@Delarn no, but styled maps looks really cool.
 
That's a great idea
 
so far I'm not styling, I'm creating behaviours that are not common in it
like having a cluster icon showing an infobox with the list of markers that are managed by it.
 
It looks cleaner. I haven't worked with it professionally but the old APIs always struck me as kind of Frankensteiney.
 
1:58 PM
v2 was hell...
 
Google, Facebook and Wikipedia were initially my ideas. When I got Internet access, I was shocked to find them implemented.
 
lol
 

« first day (1096 days earlier)      last day (3854 days later) »