« first day (972 days earlier)      last day (3974 days later) » 

3:00 PM
idk, someone posted it in here a while back
 
I feel like you guys have a much higher tolerance for stupidity/bullshit than I do
 
I don't.. but I also have to give the people at least one chance.
 
Hi, I'm having some trouble getting an imagesloaded plugin to work, I must be missing something very basic, can someone take a very quick look? jsbin.com/ijapel/1
 
and 15 minutes is not a fucking chance.
 
@Shmiddty I have to work very hard on not being rude to some of the people who come here.
 
3:00 PM
I keep getting Uncaught ReferenceError: imagesLoaded is not defined
 
@waffl What's imagesLoaded?
@waffl what were you attempting to do in your JS?
 
@Benjamin - this plugin: github.com/desandro/imagesloaded
@BenjaminGruenbaum I'm trying to do something after the image is finished loading
 
imagesLoaded !== ImagesLoaded
@waffl ;)
 
I haven't answered an SO question in months because I gave up on finding one worth answering
 
@StrandedPirate 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.
 
3:02 PM
@waffl look at the console: Refused to execute script from 'https://raw.github.com/desandro/imagesloaded/master/imagesloaded.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
 
@waffl Your scripts aren't being loaded.
 
awwww
fuck. I looked too soon
scroll down rlemon.. SCROLL DOWN!
 
deleted @rlemon
 
@waffl basically, don't use github as a cdn :P
 
which is fine Neal, point being you can be pretty assish to 'noobs' without giving them proper reason / respect / or a chance to improve.
 
3:03 PM
@Neal Yeah, I asked in the PHP room
 
@BenjaminGruenbaum Ah thank you, but I just used github as the CDN for jsbin, on my site I'm using a self hosted version but it still doesn't work :(
 
@rlemon Dont ignore me my friend please i really want help
 
@rlemon I did give proper comments before voting.
@echo_Samir 42
 
@BenjaminGruenbaum I also tried pasting the entire script into the 'javascript' portion of the jsbin and it still doesn't work
 
@echo_Samir it's not about just me ignoring you, everyone did. and i'm sure it wasn't personal we just are not interested in your problem atm.
 
3:05 PM
If it's obvious that someone hasn't put in the effort to Google their question, they aren't going to learn anything from anyone
 
try back in a bit and maybe some new people will be here that are.
 
@BenjaminGruenbaum oh no I think I found out what ht eproblem is
@BenjaminGruenbaum It has dependencies
I'm sorry about that I'll have a look and hopefully figure it out
 
@rlemon i also saw your test and you are correct. I read in books so i assume it's right but i was wrong...and i deleted my answer. sorry i can't gave you up vote as i deleted my answer and so, your comment also deleted
 
// explanation please?
parseInt('0123456789abcdefghijklmnopqrstuvwxyz', 36);
> 8.684682361119716e+52
(8.684682361119716e+52).toString(36);
> "123456789ab4swksk4c4oogok4k0sc8kskg" // why the different representation?
 
@web2students.com I'm not looking for upvotes - I was just giving you advice. you want to improve your questions, that also mean going through and removing ones that cannot be improved.
 
3:10 PM
Did I hit a maximum?
 
also now you know to always test things before claiming them
books can lie
@Raindrop you could... you know... get the latest edition shop.oreilly.com/product/9780596805531.do
javascript: the good parts
eloquent javascript
pretty much the entire MDN site.
 
My college library doesn't have the latest edition
 
@Raindrop to get a ecopy or buy it
 
@ryan leading 0
 
It doesn't seem to matter
 
3:12 PM
@rlemon ok, i will test then post and write good answers
 
:)
 
Oh, the letters are different too
 
So I guess it is important to use a latest edition...
 
@rlemon best I've got is nowhere near close
 
@Raindrop always
 
3:13 PM
Must be a rounding error
 
[48,97,65].reduce(function(p,c){for(var n=c+(c<65?10:26);c<n;c++)p.push(String.fromCharCode(c));return p},[])
 
it's going to be hard to get it below 75 chars.
@Shmiddty produce this array in < 75 chars
!!> "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
 
@RyanKinal Yes, JS numbers have a 53 bit mantisse, and therefore ~10 base 36 digits
 
@Shmiddty :-/ Bah
 
@rlemon ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j"‌​,"k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","‌​E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y"‌​,"Z"]
 
3:15 PM
What's this
 
@copy Aw :-(
 
I'll give it a shot when I get to work
 
@CapricaSix proves that she knows js :P
 
Now I want to make this into a real thing... stackoverflow.com/a/17111599/561731
It looks so nice.
 
@Neal y u no TreeNode.prototype = { constructor: TreeNode, ..... methods ..... }
 
3:18 PM
anyway bye all
 
@rlemon baaah. I was following the coffeescript model
 
@rlemon can I use e4x?
 
e4x?
ECMAScript for XML
hrm, I find something new today
 
It's totally deprecated
 
@rlemon I dont think i have ever made a js class in that way...
 
3:22 PM
var a="1234567890",b="abcdefghijklmnopqrstuvwxyz",c=b.toUpperCase();(a+b+c).split(""‌​);
!!> var a="1234567890",b="abcdefghijklmnopqrstuvwxyz",c=b.toUpperCase();(a+b+c).split(""‌​‌​);
 
@eazimmerman "SyntaxError: illegal character"
 
@eazimmerman I think we're trying to avoid explicitly listing the chars in a string
 
@eaz declaring c is a waste of bytes
 
!!> var a="abcdefghijklmnopqrstuvwxyz";("1234567890"+a+a.toUpperCase()).split("");
 
@eazimmerman ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j"‌​,"k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","‌​E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y"‌​,"Z"]
 
3:24 PM
There you go
 
for some reason when I copy and pasted @rlemon's code, it added some funky hidden characters that made @CapricaSix throw an error
 
Now drop the var
 
user2157210
hello
 
hi
 
!!> btoa("Ó]·ãž»ó֛qן‚£’Y§¢š«²Û¯Ã³ƒQ‡ ’‹0ӏA“QU—a")
3
 
3:26 PM
@copy "0123456789abcdefghijklmnopqrstuvwxyzEIMQUYcgkosw049BFJNRVZdh"
 
@CapricaSix almost
 
@copy where do you live.. and what should I wear?
 
@copy oh god you are ... crazey
 
I'm here, everyone back off.
 
@BadgerGirl we don't want you. we want your man.
 
3:27 PM
lol
 
@rlemon Ok
 
!!> atob("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
 
@eazimmerman "MTIzNDU2Nzg5MGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6QUJDREVGR0hJSktMTU5PUFFSU1RVVl‌​dYWVo="
@eazimmerman "×møç®ü÷F›qן‚\u0018£’Y§¢š«²Û¯Ã\u001c³\u0000\u0010ƒ\u0010Q‡ ’‹0ӏA\u0014“QU—a"
 
@rlemon don't you think that the "WHAT IT DOES" part in my IMAGE represent what I 've tried ? don't you think ? really ? do you realize what you are asking to me ? — user2372006 35 mins ago
 
hmmm how else can I expand this to make it "great"? stackoverflow.com/a/17111599/561731 :-)
 
3:30 PM
How do I make a search engine? What it does: blank page. What I want: google.
@Shmiddty what is that codegolf site you and @copy go to?
 
@user2372006 let me clarify: Have you tried to produce any code to facilitate your needs? If you have we would very much like to take a look at it to see how close to a solution you may be at. If you have not tried any solution then you can also tell us that. Your attitude and (seeming) rage on the entire issue does not bode well for you, and you should probably check that at the door. — rlemon 27 secs ago
 
// About the best I've been able to do
var a=[],i=122,c;for(;i;){c=String.fromCharCode(i--);if(/[a-z0-9]/i.test(c)){a.push(c);}}
 
Golf.shinh.org
 
And it's still longer than just writing it out :-(
 
it was an interesting problem.
I knew copy or Shmiddty would have an interesting solution :)
 
3:33 PM
@cocco 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.
 
@BenjaminGruenbaum what is funny to me is: I was the only person in that comment chain (I imagine) who didn't downvote him and who was actually trying to resurrect his question
 
But... the btoa solution doesn't actually work. It doesn't produce the same output.
 
did anybody notice the optical illusion on top ? or we are just too much mad for alcohol
 
@Darkyen classy
 
3:35 PM
@eazimmerman's solution does, though
 
@Darkyen you mean the hypercube lantern?
 
yea I don't see anything
 
@rlemon Not worth your time.
 
old lamp?
 
@Darkyen pretty
 
3:36 PM
I want wine now
afternoon of fish tanks and wine? I think so!
(assuming boss lets me hook early)
 
!!> btoa("Ó]·ãž»ó֛qן‚£’Y§¢š«²Û¯Ã³\0\20ƒ\20Q‡ ’‹0ӏA\24“QU—")+"YZ"
 
@RyanKinal no but I imagine it is the right track to take
 
@copy "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
^ see - hahaha
 
@eazimmerman yeap
 
3:39 PM
lol, indeed
 
@rlemon Fridays are off here. I'm having an afternoon of fish and wine too, only I'm eating the fish :P
 
hehe, I have some fish in the fridge I need to cook before it goes bad.
maybe i'll have all three!
 
Also, scotch instead of wine
 
Then go back to the ocean aquaman. Nobody likes you anyway
 
my fav coral right now
 
3:43 PM
thanks shmiddty
 
Logical conclusion: @Shmiddty does not like users who show no effort. Actual conclusion Koalas are not nice to strangers.
 
(shameful delete)
 
lemon, that is weirdly lush
 
@eazimmerman "Error: Failed to decode base64 string!"
 
I was making fun of aquaman, the super hero
 
3:44 PM
is there a page somewhere on SO, with a list of REP privileges?
 
@eazimmerman Thank you
 
Plerogyra sinuosa is a species of coral. Named this because of the grape sized bubbles that increase surface area or get bigger to more light, they don't like the light though. The bubbles are bigger during the day, but get smaller during the night, when the tentacles reach out to capture food. Low light and soft water flow is about all you really need to make Plerogyra sinuosa pleased. Common names for Plerogyra sinuosa include grape coral, octobubble coral, bladder coral, pearl coral and branching bubble coral. References External links * *
 
octobubble coral lol
 
@MichaelPeppler 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.
 
3:48 PM
!!/mustache MichaelPeppler
 
how does it get it so wrong so often
 
that's pretty close?
 
!!write my own face detection using node-canvas or fork a project and be lazy
 
@rlemon fork a project and be lazy
 
3:50 PM
sounds good
 
is this selector one that starts with or contains?
[id=*"tabz"]
 
@Connor *= not =*
 
@dystroy ok thanks
 
var i=-1,c=[],d;for(;i++<35;)c.push(i.toString(36));d=c.join("");d=d+d.slice(10).toUppe‌​rCase();
still too long
 
3:53 PM
@dystroy Thank you
 
is it possible to change the value of a list item in an ordered list using lowercase letters?
i want to have two items listed as "c"
 
@TimDown You're trying to do this ?
var d = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
 
yeah
Or I could do some actual work
 
!!> (btoa("Ó]·ãž»ó֛qן‚£’Y§¢š«²Û¯Ã³\0\20ƒ\20Q‡ ’‹0ӏA\24“QU—")+"YZ").split("");
 
@eazimmerman ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j"‌​,"k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","‌​E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y"‌​,"Z"]
 
3:56 PM
that is shorter than mine by 1 character.
 
@BenjaminGruenbaum "And finally... why don't you end your PHP, write your HTML normally, then put your PHP in there where it should be?" lol
 
@BenjaminGruenbaum how to LOL loud enough
 
@TimDown A simple way to shorten it :
var i=-1,d='';for(;i++<35;)d+=i.toString(36);d+=d.slice(10).toUpperCase();
 
I was linking to Neal's deleted attempt to answer it, but sure yeah, the question itself is pretty funny too :P
 
4:00 PM
awww
we can't see the deleted answer (pic?)
@dystroy too many var's
 
@rlemon I just shortened tim's answer. I don't know what's that about.
 
for(i=d='';i<35;)d+=i++.toString(36);d+=d.slice(10).toUpperCase()
 
2 hours ago, by rlemon
Challenge: var n = [0-9a-zA-Z] produce an array of 0-9a-zA-Z values shorter than writing them out "...".split("");
 
@TimDown what are you trying to do?
 
@dystroy: Good point. I started with arrays before getting to that approach and never lost them
 
4:02 PM
@dystroy produce the resulting array from "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("") shorter
 
@BenjaminGruenbaum: See rlemon's last message
 
> golf "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")
 
I think (btoa("Ó]·ãž»ó֛qן‚£’Y§¢š«²Û¯Ã³\0\20ƒ\20Q‡ ’‹0ӏA\24“QU—")+"YZ").split(""); is the current best solution
 
^ is the actual challenge.
 
What JS engines does it have to work on?
 
4:03 PM
!!/mdn btoa
 
We're allowing undeclared vars then?
 
it's golf :P
doesn't need to pass strict. must run in chrome / ff console
I say chrome because it's what i'm using atm... but i'm sure you guys will find better solutions with spidermonkey
 
is it possible to easily change the label of a list item?
without using some hacky css?
 
Shmiddty's condesing of mine looks good, is there a better one? And are we counting chars or bytes?
 
@TimDown I think chars
 
4:14 PM
@BenjaminGruenbaum hmmm?
 
17 mins ago, by Benjamin Gruenbaum
Seriously? http://stackoverflow.com/a/17111197/1348195
 
@BenjaminGruenbaum I deleted it. I read the q too fast
 
!!> l="";i=47;while(i++<123){l+=String.fromCharCode(i)}l.match(/[0-9a-zA-Z]/g);
 
@Loktar ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J"‌​,"K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","‌​e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y"‌​,"z"]
 
4:20 PM
blarg. Thats as short as I can get it
I need to get back to my game.
and @copy btoa is interesting, learned something new :)
 
!!> a="abcdefghijklmnopqrstuvwxyz";("1234567890"+a+a.toUpperCase()).split("");
 
@eazimmerman ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j"‌​,"k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","‌​E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y"‌​,"Z"]
 
shorter by one char
 
!!> l="";i=0;while(i++<123){l+=String.fromCharCode(i)}l.match(/[0-9a-zA-Z]/g);
 
@Loktar ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J"‌​,"K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","‌​e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y"‌​,"z"]
 
4:24 PM
Could trim the last semicolon too
 
0
Q: Firefox 21: Error Console Doesn't Display Error Messages

user787832Windows 7 Professional Firefox 21.0 Hi, The error console ( Tools > Web Developer > Error Console ) in Firefox is not displaying Javascript error messages under any circumstances. I get these messages in my error console when starting up a fresh session: Could not read chrome manifest 'file:...

 
!!> l="";i=47;while(i++<123){l+=String.fromCharCode(i)}l.match(/[0-9a-z]/gi);
 
@canon ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J"‌​,"K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","‌​e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y"‌​,"z"]
 
what did the count have to be under?
 
!!> for(i=s="";i++<123;)s+=String.fromCharCode(i);s.match(/[a-z0-9]/gi)
 
4:26 PM
@copy ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J"‌​,"K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","‌​e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y"‌​,"z"]
@mgnyp 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.
 
Nice @copy!
 
Based on your idea
 
yeah I felt good about stringfromcharcode and using regex
but then I saw your btoa and was like wow wtf :P
 
I have a very short solution. Open the console using F12 and type :
document.body.innerHTML.match(/\b[a-zA-Z\d]{62}/)[0]
yes, it works :)
 
LOL
 
4:28 PM
!!>for(i=0,s="";i++<123;)s+=String.fromCharCode(i);s.match(/[0-9a-zA-Z]/g);
 
that is interesting approach @dystroy
 
@eazimmerman ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J"‌​,"K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","‌​e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y"‌​,"z"]
 
This one is shorter :
document.body.innerHTML.match(/[a-zA-Z\d]{62}/)[0]
 
/[a-z0-9]/gi => /(?!_)\w/g
 
ok on the drive home i'll try to think of another challenge.
 
4:28 PM
(Zirak here (of course)): \w matches a-zA-Z0-9_
 
be back later.
 
It would also wotk on a codegolf page, is that a code golf question ?
 
I decided fridays should be codegolf challenge days in the js room
 
I support the idea stated above
 
so I will try to come up with interesting js codegolf questions
l8tr
 
4:30 PM
cya
 
user1596138
So, you hear that you're getting fired when you get to the office, do you;
A. Beg for your job.
B. Don't show up.
C. Bring your kid to the office with you for no reason.
Or A and C?
 
user1596138
Cause this bitch just did A and C...
 
O-o
 
Go. Argue why you're a valuable asset. Take it like a champ.
 
I think A was the reason of C, which thus wasn't really C.
 
4:32 PM
B+C would be more interesting
 
Is C the reason she is being fired?
 
@dystroy yay for people forgetting "#" in their IDs, you got an upvote from me too though :P
 
user1596138
@eazimmerman It's not me. It's this other chick who doesn't do anything.
 
user1596138
@eazimmerman Nah, she's never brought her kid in. I didn't even know she had a kid... But anyway she had a meeting (Fucking duh) so I've been keeping a 7 year old girl entertained for awhile now.
 
wtf..
wow.. so shes really trying to lay it on eh?
That would piss me off. If I were fired I just wouldnt show, because id be furious
 
user1596138
4:38 PM
Pretty much hahaha. She's our outside sales rep. She hasn't made a sale in over a month and can't prove that she's actually been working one single hour in two weeks.
 
heh would be funny to bring ALL of my kids in though
 
user1596138
@Loktar How many? Ha
 
3
plus a son who lives in MI so 4 technically
 
user1596138
Nice. If one of my parents did what she did there'd be 10 kids in the office...
 
although it would cost $$ to get him out here lol
@Jhawinsss haha
 
user1596138
4:39 PM
@JanDvorak YES!! Wait, no. Because for some reason I'm the one who has to watch this kid.
 
user1596138
I guess I'm not really doing anything else. I don't have any access whatsoever to my server other than through a PHP shell (Which they don't know about).
 
user1596138
Somehow they broke it yesterday at 4 and then they just went home for the day.
 
!!> for(i=s='';i++<123;)s+=String.fromCharCode(i);s.match(/[\da-z]/gi);
 
@canon ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J"‌​,"K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","‌​e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y"‌​,"z"]
 
@Jhawinsss Teach the kid JavaScript
@Loktar Technically :P?
 
4:47 PM
is there any way to make indexOf(); not case sensitive
 
@Zirak or anyone else who loves native dom stackoverflow.com/questions/17113403/…
@Connor lowercase the string before you use it?
 
@Connor regex?
 
@BenjaminGruenbaum done lol, so dumb of me
 
@BenjaminGruenbaum I bet regex is faster
 
@JanDvorak its ok toLowerCase(); will work, thank you
 
user1596138
4:49 PM
@BenjaminGruenbaum I so will.
 
for advance user, (say me after 1 year) question, it's better to use jquery or to write own library?
 
user1596138
No, she just went home. She apparently still has a job, too.
 
user1596138
@web2students.com You'll be an advanced user after 1 year?
 
@web2students.com if big project use jQuery if small and bored write your own, (my opinion)
 
@Jhawinsss i guess so :P
 
user1596138
4:51 PM
@web2students.com You'll go from knowing hardly anything right now to "Advanced" in a year??
 
@web2students.com Don't write your own libraries before you have a reason. What will you make better than jQuery ?
 
@JanDvorak I can't even begin to emphasize how much it doesn't matter :P
 
@BenjaminGruenbaum true that
 
user1596138
@dystroy He's got his head in the clouds. He'll make web2students.com.js
 
@Jhawinsss haha... full of bugs web2...js
 
4:54 PM
people say i have this array
var array = ['welcome he', 'john something', 'any more you can think of', 'hmm', 'maybe not'];
i don't wan't code, just advice on how
i have this
var string = 'thin';
i wan't to be able to fetch array[1] & array[2] because they both contain "thin"
 
array.filter(function(elem){
    return ~elem.indexOf("thin");
});
 
is there a better way to do this than using a for loop
@BenjaminGruenbaum awww, i was hoping for a challenge LMAO
@BenjaminGruenbaum i can't thank you enough
 
@Connor challenge: explain how it works
 
when i use jquery, it makes things easy and i don't feel comfortable i wanna make my code. i miss self-satisfaction of my own code ...
 
4:59 PM
is there a special word for a item in a array?
 
array element?
 

« first day (972 days earlier)      last day (3974 days later) »