Posts tagged with “geekery”
Display Foursquare Badges in Chyrp without using Javascript
If you notice, I currently display my Foursquare badges over in the right hand side. I'm not sure about how long I'll display them specifically, so here's a screenshot:

I recently received an email inquiring about how I accomplished this. Well, since I use Chyrp, here's how I did it:
- In includes/controller/Main.php, add the following, somewhere around line 715 (immediately after $this->context["sql_queries"] =& SQL::current()->queries;):
// BEGIN Foursquare Badges
$cURL = curl_init();
curl_setopt($cURL, CURLOPT_URL, "http://api.foursquare.com/v1/user.json?badges=1");curl_setopt($cURL, CURLOPT_HEADER, 0);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($cURL, CURLOPT_USERPWD, "your@email.com:your_password_here");$strPage = curl_exec($cURL);
curl_close($cURL);$foursquare = json_decode($strPage);
$badges = $foursquare->user->badges;
foreach ($badges as $badge) {
$this->context['foursquare_badges'] .= '<img src="'.$badge->icon.'" title="'.$badge->description.'" />';
}
// END Foursquare Badges - In themes/your_theme_name/content/sidebar.twig, wherever you want to display your foursquare tags, simply add:
<div>
<h1>Foursquare Badges</h1>
$foursquare_badges
</div></code>You can display this wherever you like, in any part of your Chyrp template.
Be aware that this requires PHP's CURL module. I encourage you to enable Chyrp's caching module as well, so every page load does not incur a single API request (I have a feeling that they probably won't appreciate it). The benefit of this is that your Foursquare badges will now be output by your server, so they are both indexable by search engines and degrade very gracefully when the client doesn't have Javascript enabled (NoScript users, particularly).
Enjoy!
Regarding Accusations of Synonymy Myself and Eric Kane
The only plausible argument in favor of this assessment is that I've got some sort of latent form of multiple personality disorder and/or schizophrenia. Which I must admit is entirely feasible, but highly unlikely.
There are a few distinct points in opposition to this evaluation. I have to first point you towards real photographs (!) of each of us:
Since neither of these have turned up at this point, I have to say that the lot of you pretty much suck at internet forensics. Just sayin'.
Perhaps more relevantly, while he and I have a long history of rivalry (and despite my honest opinion), I have displayed nothing but unequivocal justiciality and respect when it comes to fighting or determining the outcome of a fight. On the other hand, Nonpareil has a long history of degrading completely sane debates into flame wars and personal insults. It may be his personality type or the company he keeps, but his character is defined by his actions--and [his demeanor] appears to be wildly different from my own.
Examples against my "bias" go on and on; I guess this falls under the old adage, "If you don't have haters, you're doing something wrong." -- and this is a perspective we likely both share. Nevertheless, I've tried to maintain a consistent approach when dealing with everyone: place responsibility upon the fighters to agree to the outcome of a fight. Conversely, Nonpareil seems to place focus on demeaning and domineering his fellow fighters -- fully devoid of the due respect I strive to provide everyone.
Further points include:
- When SSJ3Mewtwo jumped into an idle fight between Nonpareil and Kouketsu, Nonpareil's character committed suicide and I split the points between Kouketsu and SSJ3Mewtwo. Nonpareil consequently ragequit.
- I'm good at deception, but not good enough to obfuscate my writing ability down to Nonpareil's level, as demonstrated in our most recent fight. I placed several coded messages in the grammar, syntax, and content of my posts, (and it is a shame that we never finished the fight so that I could meet my goal of killing off my character) while Nonpareil made zero effort to demonstrate any literary competency beyond the barebone basics.
- Ran and I were just talking about this:
(11:25:27 PM) Eric: Let's see how long until Nonpareil comes around whining about getting his win
(11:25:36 PM) Ran: LOL
(11:25:41 PM) Ran: I'd give it a weekObviously, since I've finally caught up with all my work here, I went forward with validating the fight (using my personal ability, not my admin ability) and sure enough -- here's Nonpareil. It was just as predictable as the outcomes of his fights--and subsequently, not a coincidence.
- I've got a verifiable public employment record. Stalk me if you want, but I'm fairly sure that if he's willing to provide his own--and when he does, it'll be quite clear that we are not the same person.
Nonpareil hasn't done anything consequential in the past 15 years aside from debilitating the common respect between fighters; I don't want my efforts to improve the world's roleplaying community tainted with accusations of our synonymy. He'll surely say the same about me, and I'd expect him to dissolve these rumors just as well.
Kthx.
online schools] "">
The wild world of ROBOTS: A brief primer [via online schools]
The wild world of ROBOTS: A brief primer [via online schools]
Further discussion » "">
Ships in EVE relative to their cost in ISK (the in-game currency), USD, and how many hours a mature player might have to work to earn an equivalent amount of money.
Ships in EVE relative to their cost in ISK (the in-game currency), USD, and how many hours a mature player might have to work to earn an equivalent amount of money.
Linux Creator Linus Torvalds Puts His Weight Behind Google Android and the Nexus One
From his weblog:
But I have to admit, the Nexus One is a winner. I wasn't enthusiastic about buying a phone on the internet sight unseen, but the day it was reported that it finally had the pinch-to-zoom thing enabled, I decided to take the plunge. I've wanted to have a GPS unit for my car anyway, and I thought that google navigation might finally make a phone useful.
And it does. What a difference! I no longer feel like I'm dragging a phone with me "just in case" I would need to get in touch with somebody - now I'm having a useful (and admittedly pretty good-looking) gadget instead. The fact that you can use it as a phone too is kind of secondary.
Wishlist Item: Withings WiFi Body Scale
Withings WiFi Body Scale
Measures fat mass, BMI and sends data via Wifi.
The United States re-drawn to have equal populations.
The United States re-drawn to have equal populations.