Tag: HOWTO

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…

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…

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. We can use this wildcard to have our iPhone hit…

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…

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

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:

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

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

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…

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 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…

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

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; туры на майские праздники днепропетровсквзять денег в долг срочно

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…

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…

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

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…

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…

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…