« first day (817 days earlier)      last day (4128 days later) » 

9:00 PM
Call two different functions
 
switch()
 
Loop once and make an array of all the feeds which are of the same kind?
 
cache the object properties outside the loop ?
var foo = 'foo',
  bar = 'bar';

... feed[foo][bar]
 
m59
I did think of making two different for loops - that sounds faster, but then the code is repetitive.
 
Only in the fact that you're using the same control structure twice. You're doing different processing each time.
It's kind of like saying "I don't want to use multiple if statements. It's code duplication."
 
m59
9:02 PM
@rlemon feed.data.items[i].video.title;
 
function loopy(isFoo) {
  var bar = isFoo ? 'foo' : 'bar';
  for(;;) { feed[bar].fn() }
}
 
@RyanKinal Thoughts on scaling a canvas using CSS?
 
m59
feed.data.items[i].title;
 
@AmaanCheval The following come immediately to mind: (1) Nope (2) Good luck
 
@RyanKinal lol
 
9:03 PM
Haha, yeah, that's what I originally thought. But it works and it's bothering me that everyone thinks it's wrong
I mean, I don't see anything that's going wrong because of it
 
m59
I guess I was hoping for something like feed.data.items[i][ENDING HERE]
 
duudes
sorry
been bust at work
 
Oh... I thought you were having issues with it, and wanted to know if I knew how.
 
so whats up @AmaanCheval?
 
Hey!
What do you think of scaling a canvas using CSS instead of ctx.scale?
@RyanKinal Haha, no
 
9:05 PM
ctx.scale just scales the pixel dimensions
 
Having to scale the whole thing must be slow right?
 
whereas css sizing changes the size, yet leaves the dpi the same
using css to resize the canvas makes it blurry
 
^ makes sense
 
like taking an image and just stretching it
 
@Loktar, we've been trying to tell him :)
 
9:06 PM
ctx.scale will make it blurry too I believe BUT, wont change the dimensions of the canvas element
 
@Loktar I have to change the dimensions anyway
Need the game to be fullscreen
 
itll get blurry thats the drawback
 
@Loktar you use centOS correct?
 
@rlemon yeah
 
dumb question: how do I add myself to the list of sudoers?
 
9:07 PM
:? idk dude, I use root when I do simple tasks
im a linux noob
I just know to use yum lol
 
$ sudo su was my first thought
 
lol
 
fuck it, $ su it is
 
@rlemon Hahaha
 
9:08 PM
@AmaanCheval a better approach might be to resize in game, like don't make anything pixel dependent
 
What do you mean?
 
but.. I guess if you are using raster images it doesnt matter, would be blurry regardless
 
Yeah, I am using images
Thank you
 
np
 
9:09 PM
lol
 
I love using the touch command.
$ touch little-kids.html
 
Oh, @Loktar do you remember the shitty frog game I showed you?
Hahahahahha
 
lol yeah
 
This is what my version was
Hahahahaha
 
who did the art?
the art is pretty damn nice
 
9:11 PM
I don't know
I think it's Ionut Hegade
He's the guy who did the art for the other games we've made
 
it still needs something though..
like animations for the frog moving
he should hop side to side or something
 
Yeah, I thought so too
Client didn't really want it, though
It'd be a plus of course
The frog doesn't move with the platform either
What's weird is that that's how they wanted it
 
lol
weirdos man
you developed it then?
 
Yeah
 
nice job man
 
9:15 PM
how the fuck do you paste shit into VIM in a putty session?
 
right click?
 
keyboard shortcuts I am used too don't work
no right click
 
Haahha, doubt that
2
Q: Copying stuff from vim running in putty

Pulkit SinhaI am running Vim 6.3 through putty and putty connection manager. I have the mouse option set (set mouse = a). I am able to paste things from the (windows) clipboard to vim by but selecting text in vim isn't copying anything to the clipboard. Does anyone know how do I do this? Note: I can't upd...

Grr, nothing about pasting
 
:(
 
Shift-Insert to paste
 
9:16 PM
Smart man
 
tried that
 
well i tried nothing left to do here
 
shift-insert inserts a half page of blank lines :P haha
just FTR
 
ohhh, nvm.. that was what was in my clipboard..
~
~
~
~
~
~
~
~
~
~
 
9:17 PM
I don't know enough about vim to know if that'll help
Hahaha
 
^ how did five pages of code turn into this?
 
also center mouse button
 
I know vim copies anything you select
So probably that
 
:(
i think center mouse selects in vim + putty on centOS 6
 
@AmaanCheval ahhh ok then
 
Def' center button was copying for me
bah
 
@Zirak Oh? I was all excited because the series had 11 books
 
user image
3
 
I can hear him yelling the words
and I feel his pain
 
9:21 PM
@Loktar ohhh.... my...... god..... THAT IS AMAZING!!!!
 
Today's SMBC was awesome
 
It shouldn't be pinned just to his balls!
 
97.74.126.218 there, it's on my page now. I cannot lose that one.
 
@AmaanCheval Ever heard of Dune? :P
Or The Wheel of Time?
 
9:23 PM
No, and no
 
really?
Dune is pretty popular in the US
 
I've read too little SciFi
 
Dune is a science fiction franchise that originated with the 1965 novel Dune by Frank Herbert. Considered by many to be the greatest science fiction novel of all time, Dune is frequently cited as the best-selling science fiction novel in history. Dune won the 1966 Hugo Award and the inaugural Nebula Award for Best Novel, and was later adapted into a 1984 film as well as a 2000 television miniseries. Herbert wrote five sequels, and the first two were presented as a miniseries in 2003. The '
 
Yeah, on the Wiki page right now
 
I gave up near the end of the 3rd (4th?) Dune book
 
9:24 PM
@rlemon whats that IP from?
 
tha interwebz.
 
@Neal His shiny new website
 
I think it could be from LOST
 
posted on January 10, 2013 by Victor Rodriguez

Run Ubuntu 12.04 on Android Google Talk used for home automation communications via Android Adding an LCD screen terminal for TP-Link routers Building a new motherboard for a TRS-80 Lego Announces Mindstorms EV3, a More 'Hackable' Robotics Kit

 
or possibly MATH
 
9:25 PM
damnit, you are making me want to send in my server to the colocation place..
 
@AmaanCheval Y U NOT USE DOMAIN?
 
been meaning to do that forever
 
@Neal It's being set up because he bought it only today
 
And I'm about to rejoice. Had the entirety of TWoT books...except the first...for so long. So I couldn't read them.
 
1) too lazy to deal with the domain shit right now
2) read #1
 
9:25 PM
@AmaanCheval BAAAH. i bought and set up the blog in less than 2 hrs :-P
 
But! I ordered the first one recently. muahaha
 
@rlemon that makes more sense :-)
 
@Zirak Hahaha
@Neal And it still doesn't work for me :p
 
@AmaanCheval well there is something wrong with the internet
 
@Zirak sounds like a total waste of time to read that book now.
 
9:27 PM
 
@rlemon I've fantasized about it for so long.
 
and ^
 
Woke up in the middle of the night, my mattress stained from the wet dream I just had, where I finally open the first chapter...touch the longed pages...smell their aroma.
cough
 
@Neal Hahaha, I loved the IT Crowd
 
@AmaanCheval ^_^
 
9:29 PM
no one got my pun :(
 
The best:
 
@rlemon It wasn't very hard to get, really, I just silently ignored it for your benefit.
 
Where?
I missed it -.-
 
!!/stab Zirak
 
@rlemon Yo! I just stabbed0 in the face!
 
9:31 PM
@SOChatBot 0?
 
@Zirak y u no work
 
!!/help stab
 
command stab should have been "Yo! I just stabbed $0 in the face!"
 
@Zirak stab: User-taught command: Yo! I just stabbed $0 in the face!
 
worked when I first made it
 
9:31 PM
!!/stab rlemon
 
@Neal Y U NO MAEK SENSE!? Could not understand stab rlemon
@Neal Yo! I just stabbed0 in the face!
 
weird... @rlemon I was here when it worked..
 
it would appear when commands are 'relearnt' from a refresh the regex replacements are broken
 
Sounds like it, one moment
I think I see why
 
someone wanna take a look see here jsfiddle.net/rlemon/LZQg7/14 and tell me why the spinner isn't appearing before the images?
 
9:38 PM
bah, I'm on the windows partition...will have to do it later.
 
function switch_image() {
    var cont = this.parentNode;
    cont.removeChild(cont.firstChild);
    this.hidden = false;
    if (images.length > 0) setTimeout(load,1000);
}

function load() {
    var li = document.createElement('li'),
        img = image.cloneNode(true);
    li.appendChild(spinner.cloneNode());
    li.appendChild(img);
    img.addEventListener('click', lightbox, false);
    img.hidden = true;
    img.src = images.shift();
    img.onload = switch_image;
    list.appendChild(li);
 
0
Q: Improving jQuery - making the constructor private

pure_codeFor fun and learning purposes, I'm re-writing some jQuery development code . I noticed that the constructor is a property on the prototype chain. I made a a change in my version and made this constructor private by taking it off the prototype chain. Seemed like a strange place to have it anywa...

 
^ relevant code
 
This is gonna be good
 
9:41 PM
@MadaraUchiha Y U DO THIS?
 
Y... Y U DO THIS?!?!Neal 7 secs ago
 
Y SO MANY GIFS?!
 
@Neal Because you touch yourself at night!
 
9:45 PM
No.
idk who may be watching :-P
since when do deleted messages have history?
 
@Neal when you were married did you not become 'extensions' of eachother?
so if you're touching her you're touching yourself.
Logic: 1 || Neal: 0
 
Too personal, I guess :p
 
@rlemon :-P
 
@rlemon BLINKIFY!
 
ALL OF THEM!
hahaha
hahahahahahahaha
I love myself so much sometimes.
 
9:52 PM
Hahahahaha
 
I think this is my fav so far.
maybe I'll grab an old school photo and make the entire class blink in rhythm
 
I'm binding to a ListView with the following but for some reason it is calling _itemInvoked even before I've clicked the item. Any idea why?
ui.setOptions(resultsView, {
                itemDataSource: publicMembers.itemList,
                itemTemplate: document.querySelector(template),
                oniteminvoked: this._itemInvoked(data),
            })
Thanks in advance.
 
@James because you're not passing in the function expression you're passing in the results.
this._itemInvoked === the function expression
this._itemInvoked(data) === the return value of the function, it is also evaluated when parsed.
 
Aha, I see. So how do I pass data into 'itemInvoked' without evaluating it?
itemInvoked looks like this:
 _itemInvoked: function (data) {
            var passData = data;
            nav.navigate(homeURI, passData);
 },
 
no clue. what does oniteminvoked call with?
normally API functions like this pass params to the handlers.
ahh
ok eventInfo
ui.setOptions(resultsView, {
                itemDataSource: publicMembers.itemList,
                itemTemplate: document.querySelector(template),
                oniteminvoked: this._itemInvoked,
            })
 _itemInvoked: function (e) {
             console.log(e);
             //var passData = data;
            //nav.navigate(homeURI, passData);
 },
try that, e is the eventInfo object
see if in there you can access the data
 
10:04 PM
Thanks, let me take a look now.
 
otherwise you'd have to store the data globally and reference it from the global scope - there might be another way using .bind() but i'm not 100% on that.
!!/mdn bind
 
in PHP, 4 mins ago, by Neal
Hey how do I make it show the author's name shows on a post in wordpress?
 
anyways i'm outta here
 
:-(
 
10:06 PM
Ok, thanks for your help!
Trying it now, if not will look at that link.
 
@RyanKinal This might be the solution to ur ills with the blog:
in Tavern on the Meta on Meta Stack Overflow Chat, 31 secs ago, by ThiefMaster
The router often caches DNS replies too.. so restart it unless you know how to clear the cache on it (restarting dnsmasq via shell worked for me on my dd-wrt box)
 
@Neal Hmmm. Possible.
I'm at home now, so I can see it.
 
@RyanKinal ok then
 
I restarted my router like 6 hours ago
after all of you guys said it worked
No luck -.-
maybe because I'm using Google's DNS?
I'll try resetting it to my ISP's default and see if that works
tomorrow
 
oookey bokey
 
10:18 PM
according to dig google dns has the correct ips
but their ips are anycast IPs so they point to a ton of different servers - probably the one you are accessing has the old data
 
@AmaanCheval ^
 
I guess
 
10:37 PM
0
Q: Monkey-patching native JavaScript constructors

James AllardiceI've written a small utility for monkey-patching native JavaScript constructor functions. For example, you can use it to modify input arguments before returning an instance (this can be useful for unit tests). There is much more detail about the utility on GitHub, so it may be useful to read thr...

 
I was really hoping someone had trained a monkey to use Javascript... I think that question needs flagged...
 
@rlemon Can you paste what you get from running console.log(localStorage.bot_learn) on the bot's machine?
!! s///
ah yeah...I really should get an extra network card and give the server a damn internet access.
 
11:00 PM
@Zirak your server doesn't have a network interface?
 
So far it's not really a server, more like "storage with CPU". Been doing stuff like data-analysis and figuring out the 1024s fib number.
 
11:17 PM
Zirak I can't anymore. Left the office already
 
11:43 PM
0
Q: Wordpress menu background change onclick?

OrlandoI am using the wordpress default menu <div class="menuHolder"> <nav class="menu"> <?php if ( has_nav_menu( 'main_nav' ) ) { ?> <?php wp_nav_menu(array( 'menu' => 'Main Nav Menu', ...

 
Hey. If I use socket.io will it cause more latency than a normal websocket?
 
!!/tell JoeyMorani choose yes no
 
m59
Is this really the best way?

		var thumbInfo = [];
		var feedLength = feed.data.items.length;
		if (options.listType == 'playlist') {
			for (var i=0; i<feedLength; i++) {
				var title = feed.data.items[i].video.title;
				var imgSrc = feed.data.items[i].video.thumbnail[options.thumbQuality];
				thumbInfo[i] = {'title':title, 'imgSrc':imgSrc};
			}
		}
		else {
			for (var i=0; i<feedLength; i++) {
				var title = feed.data.items[i].title;
				var imgSrc = feed.data.items[i].thumbnail[options.thumbQuality];
 

« first day (817 days earlier)      last day (4128 days later) »