Skip to main content


Showing posts from 2012

How to fix PyDev unresolved import for gi.repository in Eclipse

If you get unresolved imports in Eclipse when using GObject Introspection libraries (Gtk, Gdk, etc..) like below, try this. Right click on your PyDev project in eclipse and select Properties.  Select PyDev - Interpreter/Grammar  then click "Click here to configure an interpreter not listed." Select the Interpreter being used for the project and click the Forced Builtins tab.  Then click the New... button and add "gi" to the list.   Click apply and let Eclipse update itself.  Now start typing and eclipse will find the import and give you code hinting.  References:  

Simple Docs: Make Google Docs your default application for documents in Ubuntu

So school is back along with writing labs and reports... so here's a quick app to make it easy to open documents, spreadsheets, and powerpoints in Google Docs directly from your desktop without needing to upload them. Introducing Simple Docs 1. It should be in the Ubuntu App Center soon (once approved). Until then, add the PPA to your system. Open a terminal (ctrl-alt-t) and type: sudo add-apt-repository ppa:frmdstryr/simple-docs 2. Next install simple-docs sudo apt-get install simple-docs 3. Configure simple-docs (set it as the default application) simple-docs --configure 4. Finally, find a document and it will open in Google Docs! Enjoy!

How to fix: Glade failed to load MyWindow.ui. The following required catalogs are unavailable.

If you use quickly to create a project and try to open the .ui files with Glade without using the "quickly design" command. You may get an error like this: To set the search catalog used by Glade, use this: GLADE_CATALOG_SEARCH_PATH=./data/ui glade Replacing  "./data/ui " with the path that contains the Glade catalog files. Note: for gtk2 projects use "GLADE_CATALOG_PATH=./data/ui glade-gtk2" References: Quickly source file located at /usr/share/quickly/templates/ubuntu-application

Easily convert a list of files from .wma to .mp3 in Ubuntu using bash and ffmpeg

Here's a simple one liner to convert all the .wma files in a folder to .mp3's.   Update! For a GUI way... check out   FormatJunkie . 1. Open a terminal (Ctrl+Alt+t) 2. cd to the folder containing the .wma files 3. Enter this: for f in *.wma;do ffmpeg -i "$f" -acodec libmp3lame -ab 192k -ac 2 -ar 48000 "$(echo $f| head -c -5).mp3";done 4. Press enter and let it go. 5. Cleanup ( Warning: this will delete the old .wma files so make sure you back them up if you need them! )  for f in *.wma;do rm "$f";done How does it work?  See: Thanks!

How to bookmark a custom launcher in Gnome Shell

This quick post will show you how to add a custom launcher to the bookmarks toolbar in Gnome Shell (installed on Ubuntu 12.04).  I did this for my Eclipse installation. 1. Create the .desktop launcher file in a text editor. [Desktop Entry] Name=Eclipse Comment=Eclipse Platform Exec=/home/jrm/Downloads/eclipse/eclipse Icon=/home/jrm/Downloads/eclipse/icon.xpm Terminal=0 Type=Application Encoding=UTF-8 Categories=Application;Editor; GenericName[en_US]=Eclipse IDE 2.  Save the launcher as eclipse.desktop replacing "eclipse" with whatever your applications name. 3.  Copy that file to /usr/share/applications/ (you may need to use gksudo nautilus). 4.  Now it will show up like an installed application when you search. 5.  Finally drag and drop it into the bookmarks!

Solar Energy Density Calculator

For one of my classes at Penn State we had to do a project that involved teaching or helping spread the word about energy.  Our group decided to make an app to estimate how much energy a solar panel will save. The final product is a mobile website written in html & javascript using the jQuery Mobile framework.  You can use it here:  or click the image below.  Go try it out!

How to: Move Window Close Minimize Maximize buttons to left in Gnome Shell or Ubuntu 12.04

1. Install dconf-editor (note NOT gconf-editor!) Open a terminal (ctrl-alt-t) then type: sudo apt-get install dconf-tools 2. Open dconf-editor Open the dconf-editor (alt+f2) then type: dconf-editor 3. Navigate to org → gnome → shell → overrides → button-layout. Change it to close,minimize,maximize: Before 4. Changes will be updated immediately After Thanks to  jokerdino  see

Introducing Voicemail Caller, an Android app for using Google Voice without data

If you use Google Voice and don't have a data plan you've most likely come across this issue when trying to make a call. "Google Voice could not connect."   This app was made to solve this problem. Prior to this app, the only way to make a call that uses your Google Voice number as your outgoing caller ID is to write down the number, call your voicemail, and then type it in... annoying! After getting sick of doing this (I even went to the extent of adding an extra contact number in my phone that automatically called via GV) I decided to make an app. Voicemail Caller, for lack of a better name, was created. Voicemail Caller automatically makes the call though the Google Voice voicemail   when no data connection is present (in which the Google Voice app would normally fail to connect).  If data is present, the Google Voice app takes over, so in either case all of the outgoing calls will go through your Google Voice phone number! It can be disabled if you w

A quick and easy way to insert a Chart from a Google Docs Spreadsheet to a Google Document

If you've ever tried to copy a chart from a Google docs spreadsheet to a Google document, you may be surprised (or more likely frustrated) that it doesn't work.  Here's a quick way to do this without having to save the chart as an image and upload. Step 1: With the spreadsheet open, select the chart and click "Publish chart..." Step 2: Set the publish format to image then highlight and copy the url between the quotes in the from the html image's src attribute Step 3: Now go to the Google Document and click "Insert->image...".   Select URL and paste the url from part 2.   It should load the image and show a preview.  Click Select to insert the image.  There you have it! No saving of images required :)

Inkcut Development Update

Update: This version has been ditched. I didn't like it.  A new one is (actually) coming! See  Inkcut live plotting Here's an update on my recent Inkcut development and plans. Everything has been switched to Gtk3  I've decided to ditch the stand-alone design and instead make it just an extension for Inkscape. It will be installed as a separate .deb package created using quickly that just hooks into inkscape. Note: This limits it to linux for the time being until an easy windows version of GTK3 is released A few UI elements have been made (I don't have access to my home computer right now so I can't show some of them) Now a quick run through the new plan. Inkcut will be stand-alone as in a separate program, but everything will be accessible directly from Inkscape like below: "Material Setup..." will be a simple dialog that sets the SVG canvas width & height and can edit different media. This is just as a  convenience  so y

Free unlmited ODD Cramster solutions the easy way

So I got tired of using this method to get complementary solutions on Cramster  and decided to fish around in my browser settings on a better solution.  This is what I found on how to get all ODD solutions without having to repeatedly delete your cookies for free! Note this is for Google Chrome but should work in any browser with similar capabilities. Step 1: Open your browsers preferences and search for cookies and click on Content Settings Opening Preferences in Google Chrome Open content settings. Step 2: If you haven't yet, clear the Cramster cookies as in my last post . Step 2a: To do this in Chrome choose All Cookies and Site Data Open All Cookies and Site Data Step 2b: Then search for "cramster" and click the X next to the results to remove the cookies. Remove Cramster cookies if they exist Step 3: Now that any cramster cookies are removed, go back to content settings and click Manage Exceptions. Open Manage Exceptions Step 4: A

How to populate a Combo Box in GTK3 using Glade

This post will show how to use Glade to list combo box items with GTK3 since I could not find any other tutorials and it took me a while to figure it out.  No coding necessary! Step 1:  Insert the combo box. A GtkComboBox will be created. Inserting the combo box into the GTK dialog Step 2: Select the combo box.  In the General Properties click the ... button next to ComboBox Model and click new.   A new GtkListStore will be created and set to the combo box's model. Adding a new liststore model to the Combo Box Step 3: With the combo box selected, open the Combo Editor by clicking the edit button from the toolbar. Opening the Combo Editor Step 4; Add some columns to the combo box's liststore.  Use type: gchararry for text.  Insert any other model columns at this time as well. Step 5: Insert data into the liststore by scrolling down in the Combo Editor and clicking the + to add a new row.  Enter the data needed for each row. Step 6: Click the Hierarc

Enjoy lots of complimentary solutions on!

How to get unlimited complimentary solutions on! UPDATE: See the better way! I hate doing homework and then getting it back to see that I've done some small stupid mistake so to prevent this it's always a good idea to check solutions.  If you can't find a solution manual for your book, will most likely have what you need. If you've never used Cramster before, the first solution you'll get is complementary. Sadly, they only give you one freebie, but it's really easy to get around this (only for odd numbered solutions, sorry).  If you try to get another solution you see this. Cramster uses a cookie to track your visits and only allows you to have a free solution if you've never had one before.  So all we need to do is remove this cookie and wala! In firefox choose Edit -> Preferences then click the privacy tab and finally remove individual cookies. Search "cramster" and click Remove Cookie for all of