Wetware » Uncategorized

Archive for the ‘Uncategorized’ Category

Compiling Firefox with jssh Support on Ubuntu

sudo apt-get build-dep firefox sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev libglu1-mesa-dev hg clone http://hg.mozilla.org/releases/mozilla-1.9.2/ 192src #wait 10 minutes cd mozilla-central gedit .mozconfig mk_add_options MOZ_CO_PROJECT=browser mk_add_options [email protected]@/firefox-jssh ac_add_options –enable-extensions=default,jssh ac_add_options –enable-webservices ac_add_options –enable-application=browser autoconf2.13 cd js/src autoconf2.13 cd ../.. make -f client.mk build [sudo apt-get install yasm] [possible errors] /mozilla-central/config/rules.mk:1877: *** .js component […]

Posted on March 3, 2011 at 8:13 am by Jordan Carter · Permalink · Leave a comment
In: Ubuntu Tricks, Uncategorized · Tagged with: , ,

Factory Farming Possibility in NZ

Get the full story and how to oppose the factory farming

Posted on December 8, 2009 at 1:34 pm by Jordan Carter · Permalink · Leave a comment
In: Uncategorized

Attachment_fu file upload from local files

If you need to batch import files into attachment_fu from a local source then you can doing the following l = Logo.new(:uploaded_data => ActionController::TestUploadedFile.new(“/home/jordan/Documents/test_project/1.jpg”, “image/jpeg”)) You can encapsulate that in a loop and iterate over a list of files if need be (would be assumed for batch import eh.)  Enjoy!

Posted on September 24, 2009 at 8:34 pm by Jordan Carter · Permalink · One Comment
In: Uncategorized · Tagged with: , ,

Rails Filters Order

Rails has some nice filters for DRYing up repeated actions like creating a activation_code on signup, or an unsubscribe_code, reset code. before_validation_on_update before_validation_on_create validate validate_on_update validate_on_create after_validation after_validation_on_update after_validation_on_create before_save before_update before_create after_update after_create after_save There are many different times when you will want to use these and knowing the order will help a lot […]

Posted on September 24, 2009 at 12:23 pm by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: , ,

Microsoft Surface – hidden agenda

Microsofts’ Surface technology looks rather cool. A good step for innovation from Microsoft but there is something that strikes me as a little fishy. It’s not that this technology could be installed in every surface and watch our every move. The pub, the breakfast table, my work desk, the floor… Nor is it that this […]

Posted on September 7, 2009 at 9:25 am by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: ,

Boot Windows 7 RC – win7 – From USB Thumb Drive

A very good blog post here about how to do it http://kmwoley.com/blog/?p=345 Here is a recap, you must be in Vista or another Win 7 install.  I used a virtualbox install to do the formatting, then copied the iso files across inside of ubuntu. Step 1: Format the Drive The steps here are to use […]

Posted on July 27, 2009 at 11:10 am by Jordan Carter · Permalink · Leave a comment
In: Uncategorized

Pull A Git Branch from Remote

Up until lately I have been improperly pulling my remote branches to local.  What I mean is I create a new branch locally, push it to remote (GitHub) then pull it onto a designers computer with the following command (this is not how to do it) #DON’T DO THIS git checkout -b < new_branch > […]

Posted on July 22, 2009 at 1:56 pm by Jordan Carter · Permalink · 16 Comments
In: Uncategorized · Tagged with: , , ,

Rails Date Formats – strftime

StrFTime Format Codes for Ruby on Rails Year %Y     year with century 2007 %y     year without century 07 %C     century number (year divided by 100) 20 Month %B     full month name January %b     abbreviated month name Jan %h     same as %b Jan %m     month as number (01-12) Week […]

Posted on July 7, 2009 at 7:02 pm by Jordan Carter · Permalink · 6 Comments
In: Uncategorized · Tagged with: