Foo.Blarg

Pappy’s Ramblings

Get a Facebook Application ID in JavaScript

Posted by pappy74 on February 27, 2009

I needed to get my facebook application’s ID in my Javascript code.  I didn’t see a public API way of doing this or other posts online, so here’s a little hack to get at it:

function getApplicationId() {
try {
some_nonexistent_function();
} catch(e) {
var match = e.message.match(/^a(\d+)_/);
return match[1];
}
}

It takes advantage of the fact that the exception message contains the ID.  Nothing fancy, but I liked it :)

Please let me know if there’s a better way!

Posted in Tech | Tagged: , , , | Leave a Comment »

Dumbfounded.

Posted by pappy74 on January 21, 2008

I received an email from a relative claiming Barack Obama was a radical Muslim and implied he agrees with the terrorists. The ‘facts’ represented in the email were easily debunked by snopes.com.

I replied to her entire ‘To’ list -

Completely and totally *FALSE*. Even though the email tries to trick you into thinking otherwise, snopes.com does *not* support this!

http://www.snopes.com/politics/obama/muslim.asp

Nearly every statement in this email is either a misdirection or flat-out wrong.

Whether or not you support Obama, people should not be making decisions based on crap like this.

Please, please, please do a simple fact-check before spreading mis-information!

_jason

A tiny bit harsh perhaps, but I didn’t think it was anything too inflammatory. That is, until I received this reply (no clue who this person is) -

People can vote based on any information they want! whether Obama is Muslim or not, he doesn’t have good morals and this country should not be run by someone like him. I’ll base my vote on morals, and usually muslims and/or muslim raised people don’t have good morals. try reading the koran.

Are you kidding me?! This is the sort of racist, ignorant – wait, not ignorant… that’s too kind a word – *idiotic* foolishness that got Bush in to office. Sigh.

Posted in Uncategorized | 1 Comment »

If you’re going to register a domain name

Posted by pappy74 on January 15, 2008

Do *not* use Network Solutions…

http://www.techcrunch.com/2008/01/10/network-solutions-using-questionable-tactic-to-sell-more-domain-names/

Shit like this pisses me off so much.

Posted in Uncategorized | Leave a Comment »

this would be much cooler…

Posted by pappy74 on December 25, 2007

jasonp9.jpg

… if it weren’t an image of my leg :)

Posted in Uncategorized | 2 Comments »

interview with the head of the TSA

Posted by pappy74 on December 8, 2007

ever wondered what the TSA was thinking regarding the ‘ziploc bag of small containers of liquids?’ Check out this interview for that info and much more.

http://www.schneier.com/interview-hawley.html

Posted in Uncategorized | Leave a Comment »

We didn’t burst this bubble…

Posted by pappy74 on December 6, 2007

Brilliant “Web 2.0″ video…

Sigh… can’t believe I’m actually going to be moving there :)

Posted in Uncategorized | 1 Comment »

more hugs are better

Posted by pappy74 on November 7, 2007

well, duh…

Posted in Uncategorized | Leave a Comment »

on Saturday, floating 1500 feet in the air,

Posted by pappy74 on October 9, 2007

this wonderful woman agreed to be my wife

Posted in Channie, Wedding | 5 Comments »

a little bit dumber

Posted by pappy74 on July 27, 2007

You ever read something that immediately makes you dumber? Try this…

FirstPostGuy:

SO YEAH, SOMEONE MADE THIS ABOUT ME. DO YOU KNOW HOW I FEEL ABOUT THIS? NO? THATS RIGHT YOU DON’T. YOU DON’T KNOW SHIT. I MEAN, IT’S SUPPOSED TO INSULT ME BUT LISTEN, THERE IS NO (FUCK I WISH I COULD CAPS LOCK THAT BUT I AM ALREADY IN MAXIMUM CAPS LOCK) SUCH THING AS BAD PUBLICITY. I AM FAMOSE. THAT’S RIGHT. FAMOSE. YOU NOOBS SHOULD ALL TAKE TRIPCODES AND SEE IF YOU CAN BECOME MORE FAMOSE THAN ME. YOU KNOW WHAT? YOU CAN’T. THAT’S RIGHT. BECAUSE I’M THE FUCKING EPIC FIRST POST GUY. I TAKE FIRST POSTS. I TAKE FIRST POSTS SO FAST YOUR MOMMA IS A HOE. TRY BEAT ME, I CHALLENGE YOU. ALSO, FUCK ANONYMOUS. TRIPCODEPWNERERS FTW.

 

Honestly, while reading that, I actually forgot how to spell ‘famous.’ I had to sit back and get the image of ‘FAMOSE’ out of my head. Such a weird feeling.

This was from a silly post about odd communities on-line.

Posted in Uncategorized | Leave a Comment »

new cell phone service

Posted by pappy74 on June 8, 2007

So, my trusty Treo 650 finally gave out on me.

Coincidentally, I just found out about an amazing deal with Sprint.

Check out http://sprint.p.delivery.net/m/p/sprint/epc/epclanding.asp

Basically, it’s their ‘Employee Referral Plan’. It’s $30/month, and you get 500 anytime, unlimited nights (7pm) and weekends, unlimited sms and picture messaging, unlimited Sprint-to-Sprint calls and the kicker, unlimited Ev-Do data!

This is equivalent to about $100 /month on Verizon. Yikes.

Plus, they have the phone that I’ve been waiting for Verizon to get, the Treo 755p.

It was a little tricky getting in on the deal; I had to call them several times… mostly due to customer-service incompetence, but it wasn’t that bad. If you want to sign up, call them at 888-882-4030, and use savings@sprint.com as the referral address.

Oh, and as always when dealing with companies like this, make sure to ask for any other discounts just before finalizing everything… got me an extra $25 discount on the phone :)

Update:  So, I just got my first bill and all was  right except unlimited SMS wasn’t on there.  I had to call and argue with customer service to get it put on.  He had never heard of SERO, and I had to send him to the public site before he’d believe me.  Additionally, he said that because of a ‘new computer system’, everyone who signs up for this will have to do the same.  Really sorry.  Bah.

Posted in cell phones, finance | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.