November 18th, 2007
Promo code GLENDALE gives you 97$ instant discount, unlimited disk space, unlimited bandwidth, you can host unlimited domains, and you get one free domain registration (around 110$ discount per year)! Yes, for less than 1.8$ per month you will have web hosting with unlimited space, storage, domains. Not only that, you have very professional web 2.0 totally free control panel that allows you to install all open source products like wordpress with a single click. Just use MIAMI in the Dreamhost promotional box. Again, what you will get:
- Unlimited disk space on Dreamhost high speed servers!
- Unlimited bandwidth, even if you show up on digg, you will not pay extra dime!
- Unlimited mysql databases.
- One click installer for wordpress, wiki, many shopping carts, wiki, etc.
- Totally free one domain registration with free private registration ($10 value).
- Unlimited number of domains can be hosted
- PHP 4, PHP 5, Ruby on rails , FastCGI, and more.
- cool web 2.0 web control panel.
- Choosing yearly plan for maximum discount, You will pay 22$ only (1.8$ monthly)
- For month to month lovers, you will pay no setup fee and get free domain. It is like paying nothing. but we recommend yearly plans since it is 20$
- Yes, you heard it corerectly, 22$ per year including free domain registration with MIAMI Promo code.
- Dude, if you are not happy, you have over 100 days to get your money back. Do not loose this deal, it will last for another 1 or 2 weeks, and THATS ONLY WHEN YOU USE MIAMI
How to use it: 1) Go to https://signup.dreamhost.com/ 2) Choose for how long you need your hosting (1 month, 1 year, 2 years or whatever). 3) Fill your information 4) Enter the promo code: GLENDALE What we want to get: a thank you review on your website on a thank you comment! I just felt that may help people to get near free hosting, so I decided to communicate with Dreamhost in person and get this great coupon code for everyone, and I know my blog readers will appreciate it. Thanks
Posted in Uncategorized | 2 Comments »
June 21st, 2007
This is a simple program that renames all files inside a directory.Basically, it adds underscore in the beginning of every file.
[source:ruby]
dir = “C:\\rubywork\\files”
files = Dir.entries(dir)
files.each do |f|
next if f == “.” or f == “..”
oldFile = dir + “\\” + f
newFile = dir + “\\_” + f
File.rename(oldFile, newFile)
end
[/source]
Posted in Uncategorized | 6 Comments »
June 10th, 2007
Posted in Uncategorized | 3 Comments »
June 2nd, 2007
Posted in Uncategorized | 1 Comment »
May 23rd, 2007
This is might be the site with the highest traffic in the web that uses Ruby on Rails. Yellowpages.com lunched a new Beta site totally written in Ruby, both the service and the web application are written in RoR. We worked very hard to get it out, and you can check it here:
http://ngs.yellowpages.com/
Yellowpages.com receives millions of visits and page views every day. The current yellowpages.com is a J2EE application. The new RoR application will replaces the current one in the end of June.
It is hard to say who is the RoR site with largest traffic, it goes between twitter and yellowpages.com. I feel comfortable to say that we receives more traffic.
Posted in Uncategorized | 6 Comments »
May 19th, 2007
I am currently looking to find good Ruby on Rails hosting. I tried two web hosting plans from two different companies, and I am not convinced. I like to run Mongrel on my server, and I really need high availability.
I found a huge list here, but it is hard to choose the perfect web hosting company. Most web site hosting companies are good at Php hosting. I can always find great php hosting, some of these hosting companies runs ruby on rails using light http server or using Fast CGI which seems sucks.
If you have recommendations about good hosting companies, please post a comment.
I appreciate the help.
RoR web hosts:
business web hosting with RoR
wordpress hosting
Posted in Uncategorized | 19 Comments »
May 17th, 2007
Rails Render is a strong method that helps you to render your web pages. It comes with many flavors including:
1) Render action: render an action in the current controller, you can specify if you want layout printed or not
[source:ruby]
render :action => “show_home_page”, :layout=> false
[/source]
2) Render partial: renders part of your web page
[source:ruby]
render :partial => “footer”
[/source]
3) Render template: render a page, the file path is relative to your application
[source:ruby]
render :template=> “templates”
[/source]
4) Render file: absolute path is needed
[source:ruby]
render :file => “#{RAILS_ROOT}/public/file.html”
[/source]
5) Render text
[source:ruby]
render :text => “This is rails render”
[/source]
6) Render Json
[source:ruby]
render :json => {:name => “Ruby”}.to_json
[/source]
Posted in Uncategorized | 11 Comments »
May 16th, 2007
This is how we issue 301 in Rails
[source:ruby]
def rails_301
headers["Status"] = “301 Moved Permanently”
redirect_to “http://www.newdomain.com”
end
[/source]
Posted in Uncategorized | 4 Comments »
May 15th, 2007
Ajax Rails API Here. I really enjoy using this API, you need to type what class, module or method you are looking to and it will get it to you. Then you get the details and enjoy rails development.
Posted in Uncategorized | No Comments »
May 13th, 2007
These are very interesting slides about scaling twitter:
http://www.slideshare.net/Blaine/scaling-twitter
Enjoy!
Posted in Uncategorized | 1 Comment »