Monday, April 14, 2008

Converting Gedit into Textmate


Yes, so lately I have been developing using the Ruby on Rails framework a lot. To my irony there ain't much choice nor there exist any really really good IDE or editor for Rails on Ubuntu(or rather Linux in general). You could use VIM or Emacs but for some reason that I cant understand I choose not to use them.

My favorite text editor on ubuntu was Gedit. Although by default you don't get a hell lot of features in it but the best I liked was tabbed browsing. I guess thats a common thing in most Linux GUI based applications. Ok so this is what your Gedit would look like:
Hmm.. so lets quickly start the process of changing Gedit into something close to textmate:
1) Lets quickly download Jose's Gedit bundle.
2) Edit the mime types file and add the below mentioned lines

sudo nano /etc/mime.types
text/x-ruby-source                           rhtml html.erb
text/x-eruby rjs
text/x-yaml yml

3) Update the new extensions mime types
sudo update-mime-database /usr/share/mime


4) Copy the x-rhtml to the directory /usr/share/mime/packages

sudo cp gmate2/mime/x-rhtml.xml /usr/share/mime/packages
5) Copy extensions ruby.lang, rhtml.lang and rjs.lang the directory /usr/share/gtksourceview-2.0/language-specs
sudo cp gmate2/langs/*.lang /usr/share/gtksourceview-2.0/language-specs
6) Update plugins
cp -R gmate2/plugins/* ~/.gnome2/gedit/plugins/
7) Copy the snippets (cuts)
cp -R gmate2/snippets/* ~/.gnome2/gedit/snippets/
8) Copy the colors

cp gmate2/styles/Rubycius.xml ~/.gnome2/gedit/styles/
9) Remove a directory of your gnome settings
rm -Rf /tmp/gconfd-warlock

where warlock is your username.

10) Open the Gedit and on the menu: Edit> Preferences> Plugins tab and:
  • Gemini (May auto complete parentheses, quotation marks, brackets, etc.)
  • Snippets
  • Snap Open (the key combination of CTRL + ALT + O opens a dialog where you can find the files you want)
11) Choose the theme "Rubycius" on the menu: Edit> Preferences tab "Fonts and Colors"

12) Finally, if you want in the menu: Edit> Preferences tab "View" can: Show line numbers, and current line Highlight Show right margin.

If for some reason the formating dont appear then quickly go to the terminal and hit
sudo update-mime-database /usr/share/mime

If everything is done right you should get this sort of output(text highlighting) for your files you open:


=================================================
||My FREE services||

ParkingWHOIS is now not only a domain parking lookup, but now also has reviews on Parking Companies.
=================================================

Wednesday, April 2, 2008

domain names


I once heard, "So whats in the name" and now I can very firmly say its all in the domain name.... today I will be talking about few domain names and their peculiar characteristics. People own long domain names to catch attention and it is the same with people who own really short domain names. Generic word domains are got for their obvious marketing value. So I would put t in this way... every domain name has some interest attached to it.. if it doesn't then it wouldn't survive as a domain name.

LONGEST domain names

http://www.iamtheproudownerofthelongestlongestlongestdomainnameinthisworld.com

http://www.thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com

http://3.141592653589793238462643383279502884197169399375105820974944592.com

http://www.llanfairpwllgwyngyllgogerychwyrndrobwyll-llantysiliogogogoch.com

http://www.h-i-t-h-i-s-d-o-m-a-i-n-h-a-s-t-h-e-m-o-s-t-d-a-s-h-e-s-e-v-e-r.info

http://www.thepersonwithanewideaisacrank-untiltheideasucceeds-by-marktwain.com

SHORTEST domain names

The shortest known domain name right now was recently acquired by Google, with the purpose of making it easier for Chinese users to find Google?s main site. The domain name is "g.cn". Most single letter domain names are supposed to be reserved by the Internet Assigned Numbers Authority (IANA). However, there are a few cases of this not being so:

* http://www.Z.com owned by Nissan
* http://www.Q.comowned by Qwest
* http://www.X.com owned by PayPal.

Google was not allowed by IANA to buy g.com, but they got lucky and found a one letter-shorter alternative in "g.cn".

Owned by product companies

Old Country Buffet - Buffet.com
Diago - Malts.com, Rum.com, Scotch.com
Disney - Movies.com, Video.com, 101.com, Go.com, Family.com
Ebay (aka PayPal) - X.com
Fixodent - Dentures.com
1-800-flowers - Flowers.com
Food Network - Food.com
Google - Hello.com
Honda - Motorcycles.com
JC Penny - Gift.com
Johnson and Johnson - Baby.com
Kraft - Cream Cheese.com
MasterCard - Priceless.com
Merriam Webster - Word.com
Microsoft - Live.com, Surface.com, Start.com
Nissan - Z.com
Monster - Jobs.com
National Pen Company - Pens.com
Nestle - Meals.com
Office Depot - Office Supplies.com
PetSmart - Pets.com
Procter and Gamble - Toothpaste.com
QWest - Q.com, Fast Lane.com, Fog Light.com
Ragu - Sauce.com
R.H. Donnelley - Business.com, Work.com
Rocky Mountain Bicycles - Bikes.com
Sports Endeavors - Soccer.com, Lacrosse.com
Sylvan Learning - Educate.com, Hop.com, Ivy.com
The History Channel - History.com
The Map and Globe Store - World Maps.com
The Weather Channel - Weather.com
The Wedding Channel - Weddings.com
Travelocity - Vacations.com
Unilever (Products include: Knorr, Slim Fast) - Soup.com, PeanutButter.com

=================================================
||My FREE services||

ParkingWHOIS is now not only a domain parking lookup, but now also has reviews on Parking Companies.
=================================================