« first day (986 days earlier)      last day (3969 days later) » 

12:00 PM
ok
 
@JanDvorak how you doing?
 
but I do not need code just to someone point out where the error is
 
@DarkoJ You'd better start by reducing the code to the minimum and remove anything not related to the precise problem.
 
not bad
 
this is only 3 maps layer, I know that my error is in java
 
12:02 PM
Java != javascript
 
javascript, sorry
 
Try running yes blah . I wonder what's the usecase...
(not aimed at DarkoJ, in general. what an odd command)
 
@Zirak yes | ./verbose_installer
 
cool cool, do you have any suggestions for my userscript, what do you wan't with chat?
 
But it just outputs, it doesn't execute
oh facepalm
 
12:06 PM
ie> "Are you there?"
 
@BenjaminGruenbaum "Are you there?"
 
has anyone idea on how to make elements in circle aligned ? somenthing like the g+ circles
 
ie> navigator.userAgent
 
@JanDvorak "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; .NET4.0E; .NET4.0C; Tablet PC 2.0; rv:11.0) like Gecko"
 
@BenjaminGruenbaum new bot?
 
12:07 PM
@Zirak ?
 
@Connor rooom-owner-only
 
11 hours ago, by Benjamin Gruenbaum
Attention room owners and 5K+ users. You may now execute commands on IE11 JavaScript using the ie> handle thanks to @Zirak. It runs on a vm on my box. If you mess the bot up, it will mess up. This is an eval call and not a web worker, if you stick it in an infinite loop it will stay there. This is why this is only open to room owners and 5k+ers
@FlorianMargaine
% yes blah
blah
blah
blah
blah
blah
....
^C
 
@Zirak thats fair enough
 
what's the point?
 
6 mins ago, by Jan Dvorak
@Zirak yes | ./verbose_installer
 
12:09 PM
I don't get it
oh
 
Imagine an installer that constantly asks you y/n questions, and you only want to answer y
 
I see
yep got it
 
It's pretty clever
For, you know, something that constantly outputs the input
 
can i choose what website shows up first in google?
like MDN when i type
 
You can use site:somesite to narrow it down to a specific...site.
So Array.filter site:developer.mozilla.org
 
user1125394
12:12 PM
you mean !!/get some shit
bot> this or that?
you> this
 
Should I send this guy to the PHP room ? :D
-2
Q: Mysqli or Mysql?

Afonso MatosWhat is really better for websites logins system, mysql or mysqli? I've seen many people saying that mysqli is more secure but would It really be more helpful than mysql?

 
@Connor usually, adding "mdn" to the query is enough
 
> mysqli is more secure but would It really be more helpful than mysql?
I mean, security is just a fad, it'll blow away
 
@Zirak The initial question was totally different !
 
yeah i suppose
 
12:16 PM
alright, just broke 8K
2 more and I got my privs :)
 
@dystroy what the hell happened here? What was the original?
 
posted on June 28, 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) {} BOOYA

 
@JanDvorak The original was about the same length but without reference to mysql. It was enquiring about why people seem to dislike w3schools. And it has very different tags, among them PHP and HTML
 
ie> Math.round(1.25)
 
@rlemon 4
@rlemon 1
@rlemon 1
 
12:18 PM
@dystroy ew
 
SMBC says badgers are the key to everything ? Somebody might like this...
 
@BadgerGirl See above comic. You will be part of our salvation, and destruction.
 
and salvation, and destruction
 
I suggest adding to the room description
 
If only you had the ability to do that. What a shame only room owners can.
 
12:22 PM
I want a second opinion
 
Do whatever you want
 
k :-)
 
user1125394
 
@JanDvorak @JanDvorak Here's your second opinion : I don't want that.
 
@dystroy k, thanks :-)
 
user1125394
12:26 PM
lol meme generator's too tanned guy not nice for him (chat.stackoverflow.com/users/895378/rdlowrey)
 
Third opinion: Nobody will care too much
 
Where is , by the way?
 
room topic changed to JavaScript: All about JavaScript and its various libraries | unofficial rules: rules.javascriptroom.com [2.9] [consistency-of-suckiness] [ecmascript-5] [javascript]
There you go
 
@copy You might like this game: kongregate.com/games/fabrIQ/simian-interface
Besides the inaccurate portrayal of what executing commands consists of
 
so I just got an email from a guy at shieldsters.com telling me because i'm using IIS6 to drive our website (I am not, godaddy is) that it is insecure and my emails and private information is at risk :P
> we should arrange a meeting to discuss this matter
 
12:37 PM
sup
 
I love getting emails like that then going to see their nice WP themed website
always the SEO and security guys
 
This is the best way to select multiple elements, Assign them different IDs! stackoverflow.com/q/17364889 Muhahaha
 
from what I read they just try to sell you a WP website advertising it as being more secure than what you have now
 
@dr.eval I don't even get the goal...
 
@dystroy Dolphins with lasers.
 
user1125394
12:40 PM
 
ok confirmed.
if you look on about us, and the clients on the right -> look up some of their webpages, all purchased themes for like 15-> 40 a pop
I wonder how much they charge to install a theme
 
Hey, @Darkyen, what do you think of that responsive technic: codepen.io/dievardump/full/bvAuL
Using height: 0 and playing with paddings
 
@dievardump I think on mobile the 3 thumbnails in a row should be on their own rows
not squished together, otherwise looks good
/me pretending to be Darkyen
 
@cptnk 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.
 
That's just for the padding technic
having the video and the images keeping their own ratio
 
12:50 PM
look good
 
Chrome seems to have some problems with the vw unit
:(
 
@rlemon Canned Messages are done :)
 
@rlemon I may come back in Canada for two weeks at the end of August
 
user1125394
 
hi guys I m looking for a Unity3d room cis there any?
 
12:57 PM
@cx s/dev/brogrammer/
 
user1125394
ok let's stop rlemoning now
 
user1125394
@BenjaminGruenbaum hard to get much tanned in front of computers
 
@Ch33f 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.
 
user1125394
I wanted once to set up an outdoor desk
 
user1125394
12:59 PM
but you don't see well the screen
 
fuck we should totes do this: @mikedidthis @Loktar @Amaan @RyanKinal just sell WP themes and install them + customize them for a pretty profit
I mean shit. I see so many 'companies' who do this
 
@rlemon Good idea Branden
!!are you alive babe?
 
@BenjaminGruenbaum Probably
 
"yea i'll sell you a website for $3000"
> buys a $40 WP theme, changes colour scheme, installs it
Here is your new site!
$$ in the bank
 
@rlemon Hell, my business partner does that
 
1:02 PM
@user2372006 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.
 
or we could be honest,
"We install WP themes for you! $50 premium per install. $40 for a backup."
 
hello
 
user1125394
I'm not sure web is the best way to get good profits :/
 
@rlemon Nice work Branden
@user2372006 Is it me you're looking for?
 
@rlemon Totally dude, you should be a douche and con people
 
1:03 PM
@RyanKinal loooooot of people do that.
 
Im looking for someone who can give me an exemple (files, in a zip) of this answer..
91
Q: jQuery "Please Wait, Loading..." animation?

thedpI would like to place a "please wait, loading" spinning circle animation on my site. I'm having trouble to find a plugin for it, so here I am asking a weird question :) Thank you for your help.

 
@Zirak That won't be a big difference compare to now (a)
 
It doesent works for me...
 
@Zirak i'm half serious, half annoyed that I just got an email from someone who does this telling me my current site is not secure and we should do business with him
 
user1125394
it rocks better
 
1:04 PM
this is the answer but I can't do it . it doesn't work
 
@dievardump I only con'd you into bed that one time. Jeesh, way to never let it go
@cx yAy!
 
user1125394
totaly
 
@ben
@BenjaminGruenbaum can you help me ?
 
I'm trying to make it possible to add svg images with a png fallback to a webpage in a cms, to make the png fallback I want to use PhantomJS to load and screenshot the svg on the server, however I am failing to make scaling/dimensions work, has anyone here ever done something like this? :|
 
1:06 PM
use a css loader
 
@rlemon I think eye steel fookin luv ya
^^
 
@rlemon And you're better than him, right?
 
My account has been blocked I can't ask question that why Im here... please help me
 
user1125394
of course
 
@Zirak yea, but annoyed he probably makes more money than I do
 
1:07 PM
@user2372006 So fix the reason you're blocked
 
done and done
 
Contribute quality
 
@sg3s Not in JavaScript. Selenium with C# maybe. I'm sure there is a way though, converting svg to png is something people do.
 
@rlemon Will it make you feel better if I told you you make more than I?
Well, most likely
 
@zirak.. you don't understand.. I have already fixed.. but I don't have time to wait admins answer.. Im stuck on this since 5 days. man please help me
 
1:08 PM
no, because you are smart.
 
@rlemon Troll him, agree to meet him and then show up in drag or something
 
and not a douche selling WP themes
I could waste his time
set up meeting after meeting and never buy his services
 
How can I get the source of an iframe with JavaScript? I already tried some things like innerHTML and so but the Problem is: the original frames HTML looks like: "abc" but Im allways getting something like: "<html><head><style type="text/css"></style></head><body>abc</body></html>"
 
@rlemon Or tell him that he has bring cheese to the meeting, that it's your ancestral heritage and that if he doesn't you won't show up.
 
@BenjaminGruenbaum ? please Can you help me ?
 
1:09 PM
@user2372006 Is it urgent? Am I kind sir?
 
@user2372006 begging for help will likely land you in the ignore pile.
 
user1125394
 
yes it is urgent
very urgent
 
@user2372006 Awesome, then I can help you.
 
user1125394
1:09 PM
too bad we can't adjust time dynalically and changing animation-duration dynamically
 
@user2372006 It's 60$ per hour Paypal, is that acceptable?
 
uhh seriously wtf he gets upvotes on this but not me stackoverflow.com/q/17343794/995876
 
^ $60/hr is a good deal.
private consulting usually goes for more
 
@Esailija here, get an upvote whore :P
 
@BenjaminGruenbaum thanks you.. I hope you are serious.. I need an exemple fils of this : jsfiddle.net/jonathansampson/VpDUG/170
 
user1125394
1:11 PM
oh he's ready to pay
 
60$/hr is my current price when freelancing
 
@BenjaminGruenbaum ffs that guy is basing his answer on benchmark that defines the function to benchmark in the benchmark
it's not even in setup (which would still be wrong)
 
INCEPTION
 
@BenjaminGruenbaum the solution I have converts svg to png however I cannot get it to respect the dimensions I give the script :p basically PhantomJS loads a page in webkit / renders it, and you can screenshot the result... works fine and is quick...
 
@Esailija I see
@user2372006 I added you to another room
 
1:12 PM
basically I need someone with more PhantomJS knowledge than me, which shouldn't be hard since I hadn't heard of it until yesterday ._.
 
the best part is his Fiddle doesn't work because the mockajax function is not working and it is still trying to post the page
so click (spinner) page errors (no spinner)
 
@user2372006 join it
 
the linked plugin is 404ing
jesus people @user2372006
check your error console now and then
 
posted on June 28, 2013 by paullewis

An introduction to antialiasing, explaining how vector shapes and text are rendered smoothly.

 
the f12 key is heavy, ctrl+shift+j is too complex
 
1:15 PM
How can I get the source of an iframe with JavaScript?
I already tried some things like innerHTML/documentElement and so but the Problem is:
my frame's HTML looks like that:

<b>abc</b>

No `<head>` or `<body>` or so.
But with everything I tried I get something like this:


<html><head><style type="text/css"></style></head><body><b>abc</b></body></html>
 
@fnkr I think the best is to issue a new xmlhttprequest using the src. It will be fast as it will be cached.
 
No, no XMLHTTPRequest. Im using HTML5 Appcache.
And Appcache and XMLHTTPRequests not want to work together :(
 
@fnkr your browser will interpret your html, and add the 'missing' elements on it's own
 
I know, but how can I get the real source? Im sure that this is possible (I think I had done this a half year ago or so).
 
iframe.document.getElementsByTagName('body')[0].innerHTML
something like that
without the typo which I corrected
 
1:22 PM
@dystroy its awesome but 3 thumbnails on iPhone look really tiny
so same as lemon
and sorry i was having my nap :D
 
Hey guys, if anyone is bored right now you could take a look at my post.
 
@sg3s if I do this its working but only if I dont use the head-tag...
@sg3s I want to support both :(
 
@fnkr you need to work with your iframe like it's a normal webpage, regardless of what you put in it
 
@Darkyen @Darkyen Are you sure you talk to me ? I don't see what's you're referring to. Note that I have about as much memory as a dragonfly.
 
@dystroy crap..
@dievardump **
sorry i am still booting up mate
all systems not functional yet :-( ... sorry for my confused brain
 
1:25 PM
@fnkr if you want styles then you need to get those seperately... something like iframe.document.getElementsByTagName('style') should also return all your style elements in an array (in your example it's just one though)
 
iframe.document.styleSheets will return <style> and <link rel=stylesheet>
 
@rlemon \o morning
 
o/
 
1:41 PM
hello
is somebody can help me
 
is maybe not sure if can
 
2
A: How to change content of div using Javascript?

Doorknobdocument.getElementById.('adcode').innerHTML = 'HTML code provided by ad networks'; innerHTML is not a function, it is a variable. A better way, however, would be something like this: var text = document.createTextNode('HTML code provided by ad networks'); document.getElementById.('adcode').a...

challenge: see what's wrong!
 
completed tunnel of doom! Lamest name in the world
 
tunnel! <3
 
@Loktar woa man that's awesome
 
1:49 PM
I had no idea innerHTML Was non-standard :P
 
@FlorianMargaine thanks :)
 
everything actually useful was non-standard at beginning by microsoft
 
I was thinking of adding datgui for colors
 
lol innerHTML is not non-standard these days omfg
 
@Loktar color cycles
ugh
 
1:51 PM
@Esailija couldn't find it there
 
^^
 
did you find it?
 
@Loktar Can you give the tunnel random colors?
 
yes
 
It's innerDOM in the standard.
 
1:53 PM
the link is on MDN .innerHTML article
 
@Esailija Everything?
 
innerDOM is some random library
 
1:55 PM
@Loktar it's so fluid
 
@Zirak insertAdjacentHTml, innerHTml, xhr etc
 
nicee
 
box model that makes sense
which is now available in box-sizing: border-box
 
On the other hand, they did insist on keeping typeof null === 'object'
 
1:56 PM
@FlorianMargaine it was going to be my js1k submission
 
microsoft loves them backwards compatibility
 
but I didn't finish in time :?
 
@Esailija Nope, standard :P
 
@BenjaminGruenbaum innerdom.sourceforge.net
 
@Esailija Told you.
 
1:58 PM
told me what? that's some random library not standard
 
@Esailija Yeah, like I said, it's part of the standard. Unlike innerHTML
 
no, innerHTML is standard in html5. innerDOM is not standard but a 3rd party library
 
!!> '&#x03bb'
 
@Zirak "&x03bb"
@Zirak "&#x03bb"
 
huh...
oh, duh
 
2:00 PM
@Esailija Y U NO PALY IN MY GAEM :((
 
@Loktar haha too bad
 
:(
fucking loops man
 
sigh...
hello
 
i'm all browser crash city over here today
 
@BenjaminGruenbaum happy now?
 
2:02 PM
!!/mute thecoshman 30m
Demo
 
@BenjaminGruenbaum Muted user 300797 for 30m
 
room mode changed to Gallery: anyone may enter, but only approved users can talk
 
don't wanna talk to him?
 
!!/mute 2372006 240000h
Scammer.
 
@BenjaminGruenbaum Muted user 2372006 for 240000h
 
2:03 PM
I had him on ignore, no clue why.
!!/mute
 
@BenjaminGruenbaum what?
 
@FlorianMargaine I did 15 minutes of work for him, wanted some money to see he was serious about paying before doing more work. He 'thought I was kidding about money'.
Needless to say, I didn't deliver what I did - still , annoying
 
ok so that is the solution for vamps? make them pay, if no pay, make them suffer...
 
2:06 PM
@rlemon I didn't make him suffer, making him pay was legit, and honestly that was just a couple of minutes of my time.
I don't mind doing 20 minutes of freelance if someone is desperate for help or doing hours of explaining if someone actually wants to learn and has the potential to be useful around here :)
!!/unmute thecoshman
 
@BenjaminGruenbaum Unmuted user 300797
 
@thecoshman unmuting is also possible.
room mode changed to Public: anyone may enter and talk
 
2:26 PM
0
Q: Optimize Recursive Function to traverse nested DOM nodes

AlanChavezI wrote a recursive function that traverses nested DOM nodes of the following form: <a href="#" title="test"> <div id="nested-image"> <img src="image.jpg" /> </div> </a> The recursive function is the following: function getNestedNodes(node) { var ary = []; for(var i = 0; i <...

 
how to check if an object is an array ? // i kinda forgot that
 
@Darkyen Why do you care if it's an array? (That changes the answer)
Array.isArray //easiest, but no crossbrowser support
ie> Array.isArray({})
ie> Array.isArray([])
 
@BenjaminGruenbaum false
@BenjaminGruenbaum true
 
ie> Array.isArray("")
 
2:30 PM
@BenjaminGruenbaum false
 
Too hot
 
Have you tried rebooting the sun?
 
@starkbr 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.
 
@Darkyen n00b lrn2google
 
I wonder what would happen if the sun was off for 30 seconds
 
2:33 PM
@Shmiddty whatif.xkcd
 
It depends on what "off" really means. That its molten core would disappear? That it will still generate heat, just not disperse it?
 
@Zirak well... this room gives more proper information then google :P
with(javascript)
 
Let's assume that off means it generates equivalent gravity, but that's it
 
Look at the SO robots file, it's hilarious
> # Baidu you have been a bad boy
 
> Yahoo bot is evil.
aw, they don't have a humans file
 
2:37 PM
# this technically isn't valid, since for some godforsaken reason
# sitemap paths must be ABSOLUTE and not relative.
 
xD
 
woot tunnel was featured
 
I love sarcasm, jokes and frustration in developer comments
 
What about threats of violence?
 
if they're good...
 
2:46 PM
What's a good threat of violence?
 
dafuk ?
 
damn, I need to figure out this recursive function to do the freaking line displacement :(
 
Use tail recursion
 
@Shmiddty Not in JS you don't. It's not optimized yet.
 
shhh
 
2:56 PM
there is no reason to implement tco in js
so I don't expect it to be ever there
 
I've crashed my chrome more times than I am willing to admit
chrome should handle endless loops better
 
it should say after some time that the script is running long
 
you should handle chrome better :V
 
there is hidden instruction inserted in loops precisly for that
(and debugger too, pretty much anything that requires stopping execution)
 
@sg3s you should be quiet.
 
2:59 PM
That's not nice.
 
Ohh well
 
if I put while(true) I get page is unresponsive after a while
 

« first day (986 days earlier)      last day (3969 days later) »