« first day (821 days earlier)      last day (4142 days later) » 

6:00 PM
Hopes destroyed.
Does it work for you ?
 
Yep
 
@RyanKinal :-P mean. but looks good.
You know you like it :-P
 
:-D
> mean. but looks good.
Sounds about right for the room, no?
 
HA
One would assume so :-P
 
6:06 PM
oh god
I tried eclipse today
still trying
but god it's so awfully effin slow
 
lol
 
I'm being tired of emacs
 
I moved up to PHPStrorn after using Netbeans forever.
 
for PHP, that is.
 
vim ?
 
6:07 PM
meh
 
Sublime ?
 
I wanna try other stuff
yeah, thinking about sublime or phpstorm
 
I'd try sublime if I weren't in a relationship with vim
 
since phpstorm isn't free, let's go for sublime.
 
@copy You're in a relationship with me.
 
6:08 PM
@copy is badger really your girlfriend?
 
But I'd can't miss the sex that vim and I have
@FlorianMargaine Yeah
 
k, poor you.
 
heh, pretty much :P
 
<3 Sublime
Unfortunately, there was a shotgun wedding with Visual Studio.
 
Sam
6:16 PM
I am using a custom lazy load for images. The following code works, but seems a little messy to me. Any idea of a more elegant way to do this?

function loadPics(index) {
$(getContainer(index)).each(function() {
$(this).find('img').each(function() {
$(this).attr('src', $(this).attr('xsrc'));
});
});
}
 
@Sam yes
use code spacing...
 
Haha @Florian your a bitch lol
Re: poor you
stupid mobile chat... haven't figured out how to respond to a message directly.
 
@rlemon yea... I was trying to do it earlier, but I could not figure out how...
 
If I could see the message I'd somehow....
Can you install user scripts on mobile chrome?
 
Not that I know of...
 
6:27 PM
> <meta name=Generator content="Microsoft Word 14 (filtered)">
 
O_O
 
Remind me never to view source on any webpages from my school.
 
@SomeKittens ?
 
Word generated HTML neal
 
!!/tell neal google meta name attribute
 
ahhhh I did not know that that was what @SomeKittens was referring to .
 
Sam
    @Neal in fact I do, I just supposed (worngly) multiple line code doesn't work here. Now I noticed the fixed font feature. Let me try again:

    function loadPics(index) {
      $(getContainer(index)).each(function() {
        $(this).find('img').each(function() {
          $(this).attr('src', $(this).attr('xsrc'));
          });
        });
    }

Any better (cleaner) way to do this?
 
What did you think I was referring to? My clever use of > and `?
!!/tell sam format
 
@sam Format your code - hit Ctrl+K before sending and see the faq
 
Sam
Sorry, tried it in the Sandbox and it worked.
 
6:32 PM
@Sam make the code a separate message than ur message...
 
posted on January 14, 2013 by ericbidelman

#webspeechapi figure { text-align:center;display:inline-block;vertical-align:top;} #webspeechapi .time-author a:before { } #webspeechapi .demopreview { width:480px;height:219px;border:1px solid #ccc;max-width:100%;} #webspeechapi .time-author a { display:inline-block;width:70px;overflow:hidden;height:23px;line-height:21px;text-decoration:none;vertical-align:middle;} The new JavaScript Web Sp

 
What does getContainer(...) do @Sam ?
function loadPics(index) {
    $(getContainer(index)).find('img').each(function() {
      $(this).attr('src', $(this).attr('xsrc'));
    });
}
Try that ^ @Sam
 
Sam
It recieves an index of an element (in my case, a slide of a slideshow) and allways return only ONE element. That's one of the things that made me think that maybe I could get rid of the "each"
 
function loadPics(index) {
    $('img', getContainer(index)).each(function() {
        var that = $(this);
        that.attr('src', that.attr('xsrc'));
    });
}
 
@Sam that is dumb. Y RETURN ONLY ONE ELEMENT?
@FlorianMargaine :-P that's basically the same thing as mine
 
6:35 PM
@Sam if there are several images in that one element, then the each is still worth it
@Neal yeah, just prettier.
 
Sam
The element gotten contains the images.
 
@FlorianMargaine baaah
 
Sam
I mean, the "container"
 
function loadPics(index) {
    $('img', getContainer(index)).each(setAttr);

    function setAttr() {
        var that = $(this);
        that.attr('src', that.attr('xsrc'));
    }
}
this is the prettiest I can get you
 
Sam
@FlorianMargaine wow, looks much more readable. Thanks.
 
6:38 PM
@FlorianMargaine wow dude you french people have a thing for art
 
@FlorianMargaine NOT ENOUGH PRETTY!!!
 
note that setAttr is only available in loadPics, don't try to call it from outside
 
@Neal DO U WANT HIM TO PAIN MONALISA IN CODE
 
@Darkyen meh, it's just named functions.
 
@FlorianMargaine the white spacing , minimal details ...
 
6:40 PM
:P
 
@Darkyen YES I DO. WITH NO CSS, JUST PURE HTML BLOCKS.
 
@FlorianMargaine you are at 10 k!
 
Sam
@FlorianMargaine, yep noticed that. Btw, why would you do the that = $(this) part?
 
i got 1k !
@Neal Well fork you!
 
@Sam to avoid calling $(this) twice
$() is a function
 
6:40 PM
@Darkyen BAHH
 
@Neal i am on it
 
I store the result of it and use it twice
 
@Darkyen ok, on what?
 
@Neal monalisa with text
 
Sam
I see :)
 
6:42 PM
ascii mona lisa
there you go.
 
@FlorianMargaine i ninja'd you :P
 
not on my screen!
 
@Darkyen No, you didn't
 
ah god -_-
 
6:43 PM
damn man!
 
I hate SO
 
It's probably your internet's fault
 
maybe but happens more on SO
then fakebook or ixat
 
!!s/then/than/
 
6:44 PM
@AmaanCheval than fakebook or ixat (source)
 
anyways bbye i needa read more :-/ else i am failing tomorrow
 
it's just that on facebook or xat, you're talking with other indians
 
Hahahaha
 
6:59 PM
@FlorianMargaine your argument is invalid
xat's only server exists in Dallas USA
so if my network was an issue
then meh it'd have more issues on xat
and further there are a very handful of people on xat those are indian
 
lol oy
 
@Darkyen long polling sucks for that. especially when the client doesn't recheck for positioning. I've had it happen to me. Quick verification on your end is to mouse over and check to see that the id's are in order before you call out a ninja move.
 
mv ./foo ./ && rm -rf foo
is this right syntax?
 
@Zirak lol wth
 
copy all files in foo to the parent directory then remove foo
 
++ ++ y is not allowed at all! — Neal 42 secs ago
 
wth, cache buster ( random javascript.js?1234123 ) not working in android.. default browser Or chrome.. still loading the old version from cache.. has anyone ever dealt with this?
!!/google "cache buster not working in android"
 
7:23 PM
@bushdiver The Google contains no such knowledge
 
!!/google cache buster not working in android
 
hmmm I am not getting chat updates...
 
Server error (status 500) occured (message probably too long)
 
no new messages come up for me until I refresh the page
wth is going on?
 
@rlemon You're probably working right now, right?
 
7:24 PM
yes sir
hey, @FlorianMargaine you around
quick subdomain godaddy question
 
Oh! LemonMeme.com works for me! :D
@rlemon You have to let me close the lightbox with the Escape key
 
beta.lemonmeme.com I want this subdomain to 'point' to the directory it currently forwards too
 
keyCode is 27, to save you the trouble
 
@AmaanCheval haha, it's was a sample site I put together quickly to have something for the main page.
 
@rlemon that sub doesnt work for me
 
7:25 PM
also, I like making shitty image galleries.
 
wait it did... just very slowly
 
0
Q: How to make a subdomain record point to a subfolder of my website "godaddy domain manager"?

Amr ElGarhyI have a dedicated server on a webhosting company "not godaddy", and I manage my domains through godaddy. I want to add a new subdomain and want this domain to point to a certain folder in my website. I tried to add a new record : mysubdomain -> www.mywebsite.com/subfolder but godaddy appeared a...

 
@Neal yea it's just a forward.
 
also dont put subdomains in public_html @rlemon
 
after you load it once the forward is quicker.
 
7:26 PM
@rlemon Moves, doesn't copy, but I guess you meant that. Sure, looks fine
 
I'm testing out the server.
 
WTH I dont get any chat messages until I refresh
 
I realize not to put it in public... but I want to get the subdomains and how to set them up figured out (basics) then i'll worry about placements
 
Congrats, you got it running!
 
@Zirak know anything about setting up subdomains?
I figured out subdomain forwards... but that isn't what I want.
 
7:27 PM
Not a single thing
 
As far as I can remember, you should have a folder for your subdomain
Somewhere around the www folder (above, usually)
 
Man, I still don't get how reduce and reduceRight don't accept a thisArg. Is there some reason for that?
 
What I'm saying is shit I know from using free hosts, so I don't know if it transfers
 
!!/mdn reduce
 
7:29 PM
@Zirak hurr hurr hurr your this will be a Number instance
:p
 
hehehe
 
@rlemon I think you're going to have to deal with httpd.conf or something
 
yea probably.
 
@rlemon add a A record for your subdomain and then add it to your .htaccess (i think that should work)
 
@Neal you'll have to be more specific than that.
 
7:30 PM
Rlemon: add an A record for your subdomain and create a new virtualhost for it
 
I meant A record...
 
copy the current and just change the servername
 
I am a front end hobbyist... never ever aspired to run a webserver. never learned this stuff before.
 
an A record to your IP @rlemon
 
@FlorianMargaine doesn't the mobile interface suck for @'s and reply's
 
7:31 PM
Totally.
 
I wish they had an API for chat
I'd totally make an app for SE Chat for Android
 
so DNS Manager again > Quick add A Name > put in the subdomain name?
 
Yeah, pointing to the vps ip
 
@rlemon to the IP so beta.lemonmeme.com. A [your ip]
 
Then go to /etc/httpd, find the virtualhost for default, duplicate it and change the servername
 
7:34 PM
I doubt he understood any of this entirely :p
 
I don't remember the full path to the virtualhosts on centos...
 
@rlemon instead of forwarding you want it to just point?
 
a virtualhost is an apache config file defining a site with path to serve, domain to listen to and other htaccess options
 
@AmaanCheval some of it.
I've done this once before in the past... and I have done some stuff with the servers to allow my localhost to be seen outside (+ port forwarding)
 
@rlemon remove the forward and add the subdomain as a new domain. In hosting control panel, go to More - Hosted domains - Edit the subdomain of domain - and then edit the folder it points to ..
 
7:38 PM
 
So get the default virtualhost, copy it and change it according to your new subdomain. When you restart apache, it will pick up your new virtualhost and serve it
 
@FlorianMargaine I don't even have that folder. I guess on shared with cpanel it is handled somewhere else lol
 
shared with cpanel everything is different
which is why i'm so lost
 
You can't access it on shared hosts, it is root only
 
@bushdiver I do not see an option to just 'add domain' unless I purchase a new domain
 
7:39 PM
rlemon you could install cpanel to make it easier
 
Is the subdomain a subdomain as the main domain for the hosting or is forwarding from elsewhere?
 
abd look for the screenshot i showed earlier, it is showing the subdomains i have
 
^ this looks right @FlorianMargaine
 
Yeah thats good
now configure apache to serve the domain correctly
and cya, gotta go
 
@FlorianMargaine ahhh ok
 
7:42 PM
posted on January 14, 2013

The new WebSpeech API, driven by Google but supported by at least Apple and perhaps other browser vendors is yet another interesting API for JavaScript applications that will enable some pretty amazing stuff in the future.  The API adds support for both voice recognition as well as speech synthesis to JavaScript. You may remember that Chrome had added support for an additional form input attri

 
# cd /etc/httpd
# ls -la
total 16
drwxr-xr-x  4 root root 4096 Jan 10 14:02 .
drwxr-xr-x 64 root root 4096 Jan 10 14:03 ..
drwxr-xr-x  2 root root 4096 Jan 10 14:01 conf
drwxr-xr-x  2 root root 4096 Jan 10 14:02 conf.d
lrwxrwxrwx  1 root root   19 Feb 13  2012 logs -> ../../var/log/httpd
lrwxrwxrwx  1 root root   29 Feb 13  2012 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx  1 root root   19 Feb 13  2012 run -> ../../var/run/httpd
yea i'm lost now
I've made so many changes i'm not sure which did it
was it the 'forward with masking'
 
lol
XD
 
but I deleted that (maybe it worked and it's just taking time to delete.. like it did to apply)
 
Sounds like that was it
 
fml robbie only make one change at one time!
 
7:44 PM
There needs to be an = sign after the random name I think or else it won't look like a proper query part. (Not 100% sure that's true but it'd be the first thing I tried :-) — Pointy 4 mins ago
 
ugh.
ok well I will leave it and if nothing breaks in the next 12 hours I'll assume it worked.
 
LOL
 
anyways. beta.lemonmeme.com should be lememe now.
Haven't tested it out to ensure it works. Just cloned the gh-pages repo
 
@bushdiver Na
Try it anyway to be sure, but I don't think it's true
 
it's got to be the forward - how else would it know to look in that pub directory
 
7:45 PM
I've busted the cache by appending #00001 even
@rlemon I tried making a meme on it, but the ALL THE THINGS meme seems kind of blurry. Or it's the text. Basically, it looks unreadable
Looks better when I make it bigger and change the colours
 
Why didn't I know of this?
!!> 'abc'.concat('def');
 
@Zirak "abcdef"
 
Oh, I didn't know that about strings either
How is it useful, though?
 
@AmaanCheval it's the fonts. I picked some at random when I started this and never tested them
 
Could just concatenate with +
 
7:48 PM
No need to + strings together
 
lemon meme will be all of the experiences I learned with lememe + all of the cool features you guys have asked for + ALL OF THE IMAGES!!!!
 
@Zirak What's the advantage of doing this over +?
 
+ Impact font... gotta have impact font.
 
I like Ubuntu
The font is pretty neat
 
yea but all of the meme people want impact.
 
7:49 PM
Yeah
 
Farts maybe? Dunno...just seems like something I should have known
 
Including Paul Irish
 
Paul Irish wants Impact.
I will give him Impact.
 
ninja'd
Hahaha
 
I really did laugh out loud when I got the email containing:
 
7:50 PM
lol
 
welp, seems like I'll use .bind then...but random IRC guy has a point: There seems to be a soft-limit of 2 arguments for native functions
 
How'd he come across your repo again?
 
9gag.com/gag/6329401 - that could totally be our hacker friend from last night
 
I pointed him there tee hee
 
Besides Date functions and n-argument functions, JSON.stringify has 3 arguments...and I can't recall any other.
 
m59
7:51 PM
What's a good way of dealing with a plugin's css files so that the markup isn't seen until the css loads?
 
Ah :p
 
@ThiefMaster, it bet it is him
 
m59
Right now, I'm making the parent div hidden when it is created and the css file sets it back to display: block.
But what if the css loads too soon? Or do you load css last?
^which seems slower
well, actually loading css IS slower
last**
crap, too early to type
 
I have an element (a `div`) which I only want to show if the outcome of an if statement goes a certain way. What is the best way of doing this? Should I have the element already on the page and hidden in some way, or should I create the element when the if statement is being called?

I've never done this before, thanks.
 
m59
Personally, I base it off of how likely the if statement is going to be answered that way.
 
7:54 PM
@ThiefMaster That is the most awesome story I've read in a while.
 
m59
If it will be hardly used, I create it when it is needed.
If it will be used often, I would make it and have it hidden until needed.
 
@RyanKinal, awesome blogpost, only slightly ruined by the linewrapping on the code!
 
m59
@James oops, forgot to tag you. See my answer above.
 
@phenomnom @m59 It will be used pretty often. With Win 8 Apps they have multiple views including 'filled' and 'snapped'. In snapped view I want to present the user with a search box, whilst in filled view I want them to use the native search. Given that Win 8 apps generally use standard JS. What code would be used to hide an element? I know there is a visible attribute, is this the correct one?
 
OK: while I understand lemon meme will need to have it's own new layout - I do have a lot more server than it needs and 252 more subdomains. SOOOOO... lets start of the list of 'subject specific' meme generators
 
7:57 PM
Also, if it is hidden does it still use up 'space' as such and therefore stretch its container element, or is it effectively not there until it is made visible?
 
m59
@james this.hidden = true
 
DR Who,
Kittens,
The Hulk... anyone else wanna toss their hat into the ring
 
@m59 Simples!
 
ohh shit... nickcage.lemonmeme.com
 
m59
hidden is the same display: none, so it is totally gone.
 
7:58 PM
@m59 My code is never that simple, I'm sure I'll to complicate it somehow :-|
 
@phenomnomnominal Yeah... I've been trying to figure out how to re-style that.
And thanks :-D
 
hidden is in fact a weak map to display: none with virtually no specificity (any css rule of any specificity will over write it)
 
m59
Did anyone understand my question above?
 
@rlemon so are you saying display:none is better to use?
 
depends on the use and intended target audience.
 
7:59 PM
What kind of factors should I be considering?
 

« first day (821 days earlier)      last day (4142 days later) »