Skip to content

Instantly share code, notes, and snippets.

View joshualambert's full-sized avatar
🎧

Josh Lambert joshualambert

🎧
View GitHub Profile
@joshualambert
joshualambert / gist:4073548
Created November 14, 2012 17:34 — forked from RaVbaker/gist:2967695
[HOWTO] Ubuntu 12.04 Ruby on Rails Development Environment

Ubuntu 12.04 Ruby on Rails Development Environment

I haven't set up an install guide for the latest ubuntu release, largely because the last set of instructions worked pretty closely with the latest and greatest Ubuntu, 12.04 Precise Pangolin, however when installing today, I found that there were enough differences in the way that I configure my setup to justify an update, so here it goes. Yes, I'm late to the party, but a quick google search didn't find anything that I felt was as complete for my requirements as my previous install guides, so here I go.

As always with my install guides, I have included here is just about everything you'll need (and then some) to get started with ruby on rails development with Ubuntu 12.04 as a platform. These are my settings and preferences, and this is certainly not the only way of doing things, so keep that in mind.

Step 1: Get the repos ready and run updates.

sudo apt-get update && sudo apt-get upgrade
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(33.219105,-87.046053),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
@joshualambert
joshualambert / hold.js
Created October 15, 2012 16:39
Used to delete a row.
var row = Titanium.UI.createTableViewRow({
height:'50dp',
width:'100%',
layout:'absolute'
});
var rowView = Ti.UI.createView({
left:'0dp',
top:'0dp',
width:'230dp',
var isAndroid = false;
if(Titanium.Platform.name == 'android') {
isAndroid = true;
}
Ti.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS;
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST;
Ti.Geolocation.distanceFilter = 0;
Ti.Geolocation.purpose = "Save your last known position.";
@joshualambert
joshualambert / install-git-ftp
Created September 14, 2012 17:45
How to install git-ftp
(Copied From: http://alexfluger.blogspot.com/2012/01/easy-deploy-to-ftp-from-git.html) (Thank you Alex, this has helped me alot!)
Easy deploy to FTP from GIT
Have a shared hosting? No SSH and Git? Take a look on git-ftp. It is very easy to install and use. Here I will show you how to install it and start to use.
Installation
First, clone source code repository from github (it will create git-ftp folder):
@joshualambert
joshualambert / datepicker.js
Created July 3, 2012 21:00 — forked from bilalq/datepicker.js
Date Picker in Titanium
var dateOfBirth = Ti.UI.createPicker({
type: Ti.UI.PICKER_TYPE_DATE,
minDate:new Date(1900,1,1),
maxDate:new Date(2000,1,1),
value:new Date(1995,8,1)
});
var birthDayLine = Ti.UI.createView({
layout: 'horizontal',
height: Ti.UI.SIZE,
Verifying I am +joshlambert on my passcard. https://onename.com/joshlambert
http://ftp.bmshelp.com/downloads/BMSRuntimes.exe
http://ftp.bmshelp.com/downloads/Foxreg.zip
http://ftp.bmshelp.com/downloads/SMB2_d.bat
http://ftp.bmshelp.com/downloads/Msxml.msi
http://link.bmshelp.com/
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z]+)/([^/]*)$ resize.php?size=$1&file=$2
LOVs.
——————————
There are two types of LOVs:
1) Static - A set list of options in APEX.
- Static = Entries are automatically alphabetized
- Static2 = Entries are displayed in the order that they’re entered.
2) Dynamic - Based on SQL against the database.
LOVs can be defined as either:
a) A shared component.