Tag: HOWTO

HOWTO: Displaying Blogger feeds with Python

This first HOWTO is going to cover how I did the basic structure of the posts section of gPowered: pulling from blogger. The main functions we'll need are to show a range of posts, a single post, and a function to get the total number of posts that are in the blog. The reason I try to get the total number is so the different pages can be bookmarkable. When retrieving a GData feed from blogger. Entry 1 in the feed is going to be the newest post so there is no 'id' that is going to be static, so we'll do a…

First Google Gadget

After being inspired about Google Gadgets from the Google Developer Podcast I came up with one that my old crew team can use. We have a shared google calendar that some of us use to keep track of races, meetings, etc. This gadget pulls and formats it nicely for the google IG or desktop. Add to Google Javascript code for the gadget:

HOWTO: Displaying Blogger feeds with PHP

This HOWTO is going to follow the basic structure of the Python one. To start out you'll have to grab the Zend Google data Client Library and then set the include_path so you can use it We then import the parts the we'll need: One of the first things we're going to have to do is authenticate with google services. There are two ways to do this: AuthSub proxy authentication which has a user login using their own credentials, and ClientLogin username/password au thentication where you send a username and…

Quick Docs Api Example (python)

To use the gdata docs python client you need to upgrade to 1.0.7 or higher. First thing is to import the modules you'll need. Then, set up the usual authentication parameters for the client. The most basic query will just return all of your documents However, if we want to display just the spreadsheets, we build the query like this: Finally, we output the titles If we wanted to, we could also import the DateTime library and show when the document was last updated For me this outputs:

HOWTO: Getting a list of post titles from blogger (Python)

This will be a quick one on how to pull the titles from your blog. I'm using it to Lists the posts I have available on gPowered.net. Firstly we'll set up our imports and call to the blogger service. For this query we're going to use the summary feed because all we really need for this is the titles, not the full posts: Then I just do a little counting so I can use the links on my site. All the information we need is in feed.entry

HOWTO: Pulling Google Bookmarks with Python

I love using Google Bookmarks (usually with the Google Toolbar) because it lets me get to my bookmarks at home on my laptop or desktop, at work, or anywhere. It's great. Now I'm using those bookmarks to power the links section of gPowered.net First we're going to need the httplib2 library so we can authenticate against Google and grab the bookmark feed and then the ElementTree to help process the rss feed. Then we'll setup the link to pull the rss from, authenticate against the request, and pull back the…

View Google Groups posts in Reader

I don't know why I never noticed this before but you can subscribe to the mail sent to Google Groups through an RSS feed at the bottom of each group. I'm trying it out for a few groups, I might like it better then reading through the mail. I wonder if there is a way to subscribe to the rolled up versions of the posts...

HOWTO: Google Reader API Functions

I've been wanting an API for Google reader since I started using it, and especially since i started gPowered so I could display a list of the feeds I read on the site. The official word on an API for reader is "It's coming in a few weeks," but that was back in late 2005. The reason being that at the time, the URLs the API would use were going to change a lot. So, after a bit of research and coding I came up with some python functions to do the job. The first step was authenticating against Google accounts…

HOWTO: Getting the Numer of Diggs from Digg (Python)

After 2 of my posts were on the Digg front page this morning (Thank you all very much to those that dugg them), I took my first look into the Digg API. I wanted a way to take a quick look to see how many Diggs certain stories were getting. In some ways it is similar to GData: make a call to a URL, get some XML back, parse it, etc. It does, however, feel lighter, probably due to its streamlined nature. It has one purpose, get information off of Digg. Using this, I've added a section in the Post List section…

HOWTO: YUI Tabview

A few days ago I added the Digg counts to the bottom of the Posts page on gPowered.net. Although, the more posts that I add, the further down on the page this section will get, so I decided to play around with YUI's tabview control and put the post list in one tab, and the diggs in another. It turned out to be really easy: First we need a few dependencies And then we just need to organize some DIVs

Displaying what you read from Google Reader

I've been wanting to share what I subscribe to in Google Reader and using the functions I wrote I was able to do just that. Check out the article for the full run down on the unofficial Google Reader API. This is written in python but should be easily portable to php. If i get around to it, I want to make a WordPress plugin so bloggers can share what they read with their readers. This will be followed (or in parallel depending on my mood) with a Javascript version so Blogspot users can do the same in the…

Upgrade Ubuntu to 8.04 Hardy Heron

Hardy Heron came out this morning and ubuntu.com is very much down for the count You can Still update though, click here for the Google Cache version. Happy Updating! New Features in this release: Install on an existing filesystem without overwriting /home When I moved from feisty to gutsy, I decided to do a fresh install. One of the things I had to do was back up my home folder, and when I finished installing gutsy I just copied it back onto my computer. This new feature will allow people to install the…

Fixing Nvidia 8600 GT on Hardy Heron

After updating to Hardy I got a white screen of death upon rebooting. After some research it turned out that this was more of an Nvidia driver issue rather then Ubuntu. This may not have been the most correct way to fix it, but it worked for me. Completely remove nvidia-glx-new Remove nvidia-kernel-common (this also removes linux-restricted-modules), (I am not sure if step 2 is required) install build-essentials Download the Nvidia beta driver that came out on April 10. You can get it here hit ctrl + alt…

Limit Google Search Results by Date

Tech Recipes goes into how how to restrict Google search results by date: Appending to a search will display a drop down that lets you choose how far back in time to search. A Greasemonkey script will also do this for you. Pretty useful if you are searching about a brand new issue. This would have helped me a lot when I was having a problem with Hardy

How to stream video to an Xbox 360 from linux

There are a couple of different methods floating around to do this, but I think this is the quickest and easiest to get set up. So far, I like this better then FTP'ing files over to my old modded xbox. Some notes about further investigating will be at the bottom. Note: this was tested on an Ubuntu machine. Make sure your 360 has all the current updates Install ushare "sudo apt-get install ushare" if ushare complains about a missing libdlna dependency, get it from here: **"wget http://www.geexbox.org/debian…

How to turn any webpage into an RSS feed

Using a tool called Dapper and Yahoo Pipes, its fairly easy to turn any webpage into an RSS feed. Dapper is a powerful HTML scrapping system and Pipes is a handy data remixing tool. Head on over to dapper.net and check to make sure someone hasn't already done what you are planning on doing (Do this by using dapper's search function.) If you can't find any, you are ready to go. For this example, I'm going to scrape http://ifanboy.com/users/broderboy/comics which shows the comic books I'm interested in this…

Set / Change / Reset the MySQL root password on Ubuntu Linux (Ubuntu)

This came in veeeerrryyy handy just now... Stop the MySQL Server sudo /etc/init.d/mysql stop Start the mysqld config sudo mysqld --skip-grant-tables & Login to the server as root mysql -u root mysql Ser your NEWPASSWORD UPDATE user SET Password=PASSWORD('NEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit; туры на майские праздники днепропетровсквзять денег в долг срочно

Finding unread gmails (or: the best gmail filter ever)

As the year starts to wind down, I figure I should start the year off with a clean inbox. I try to keep no unread messages in my inbox, instead I tag and archive. These past few weeks however, my inbox has gotten a little crazy. I found this filter to show me all my unread mail that is still in my inbox, hope it helps someone organize like it did me is:inbox is:unread Happy Holidays all

How to get brightkite photos into an RSS feed (to post to a blog)

I started another blog so I have a place to rant about comics or movies or whatever else I need to get off my chest, and I needed an excuse to play with wordpress (something I've been wanting to do for a while). I plan on posting how I did certain things on that blog on gPowered. One of the things I really wanted to do was have my twitter photos show up as posts on that blog. For a while I have been using twitpic, but have recently changed over to brightkite. Brightkite provides an rss feed of all your…

Installing Ubuntu Netbook Remix (with Jaunty) on an MSI Wind

I recently picked up a MSI Wind Netbook and love the damn thing. Ubuntu Netbook Remix brings in a great UI which makes navigating on the small screen much easier.I used Ubuntu Jaunty Jackalope Alpha 4 as the base install, mainly because I didn't want to go through the trouble of converting my ext3 partitions to ext4 when it comes out on April 23rd, and the driver support is more complete. I haven't had many problems with it aside from a few random firefox crashes. We're going to make a bootable USB stick…

How to manage podcasts in Winamp (screw itunes)

So I really have been digging the Windows 7 beta. However, Itunes does not sync podcasts correctly on the 64 bit version. IF syncing works at all, it takes a while. I had used winamp to listen to my music a while ago, but had switched to amarok when I started single booting linux (yes, I hated Vista that much). Now that I'm back to using windows a bit, I wanted my podcast experience to go flawlessly. As much as I dislike iTunes, they have got podcast management down pat search for podcast subscribe to…

Quick Google Authentication in PHP

Here is a quick way to authenticate against Google and retrieve a protected feed. It does not use the supported ClientLogin method but it does allow you to get to some unsupported feeds (Reader, Bookmarks, etc) The Zend Gdata library is required

Wordpress Plugin: Displaying your Google Reader RSS subscriptions

I've been meaning to write this code for a while, and I really wanted to take a stab at writing a wordpress plugin so here it goes. The following takes in Google user credentials, and allows the user to display what RSS feeds they subscribe to on their wordpress blog Example: The RSS that I read Update: This plugin is now hosted by wordpress. click here

select foo, count(*) from bar group by foo in django

Every once in a while you need some old fashion SQL style queries in django. This is a common one for reporting and aggregation.  Its fairly easy to replicate in a queryset.  Say I wanted to get the authors and the number of articles they have written going back to the beginning of 2009 to the present: The result:

Displaying Custom Attributes on the Product Page in Magento

At some point you may not want to use the canned attributes.phtml groupings that magento provides, or you just want to cherry pick which attributes to show on your product listing page template/catalog/product/view.phtml

Want to trace the call stack in Magento?

Update: This code is also available on Github as a Mageno module This has helped me immensely in situations like "Where is this getting called from??!?" Create a helper like so: That can be called from anywhere: ``PHP Mage::helper('stack/callstack')->toFirePhp(); Mage::helper('stack/callstack')->toLog(); .../app/code/community/Timbroder/Stack/Helper/Callstack.php line 16 calls get_callstack() .../app/design/frontend/mongoose/default/template/catalog/cms/bikes_bmx.phtml line 12 calls toLog() .../app/design…

Using PonyDebugger on a device

PonyDebugger is awesome. I use it mostly for Core Data debugging. Most of the time, I find it easier then firing up SQLite Professional. When using the simulator, hitting localhost:9000 is fine. On a device, not so much; you need to hit your machine. xip.ioto the rescue! What it is: xip.io is a magic domain name that provides wildcard DNS for any IP address. We use this heavily at work if the machine we’re on isn’t hooked up to a subdomain or [Vagrant Share](https://www.vagrantup.com/blog/feature- preview…

How to Restore a Time Machine Backup From a Synology NAS

My Sunday morning started off like this: “There’s an error with the EFI system partition’s file system.” Well today’s off to a great start // @siracusa — Tim Broder (@timothybroder) August 3, 2014 My laptop wouldn’t finish booting. All I got was a backlit, black, screen.  I went through numerous combinations of booting with option, cmd+R, cmd+shift+R, un-mounting, ejecting. In all methods, trying in vain to get the Disk Utility to verify and repair the hard drive. I tried from Recovery Mode and a fresh OSX…

My PhpStorm Tweaks

We are breaking ground on a new app at work and are tinkering with a few IDE's. Up until now we've standardized on Xcode and PhpStorm. Code is the gold standard for react these days but I've never really given it an honest try; to get everything set up right. In the past, for "regular" react work, I've opened the react project in PhpStorm (which has all the power of WebStorm) and everything "just works". Full intellisense gives me great autocomplete, introspection, auto importing, etc. Granted, Code can do…