about 1 year ago.

Rails Uygulamalarında iPhone için Özelleştirilmiş Arayüz

Rails uygulamalarında iPhone girişinin algılanması ve özelleştirilmiş sayfaların görüntülenmesi için;

ApplicationController’da;

before_filter :detect_iphone_request

  protected
    def detect_iphone_request
      request.format = :iphone if iphone_request?
    end

    def iphone_request?
      request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
    end

config/initializers/mime_types.rb dosyası içindeki Mime::Type.register_alias "text/html", :iphone satırı başındaki “#” kaldırılır.

Daha sonra gelen istekle bağlantılı arayüzü çağırmak için;

respond_to do |format|
  format.html # index.html.erb
  format.iphone # index.iphone.erb
end

şeklinde format tanımlaması yapılır. Şablonlar için de aynı şekilde (ör. application.iphone.erb) isimlendirme yapılır.

Googl

Google URL Shortener API in Ruby.

Coloration

Editor/IDE color scheme converter. It can convert Textmate color themes (in XML plist format) to Vim, JEdit and Kate/KWrite/KDevelop color schemes.

about 1 year ago.

Adjust Textmate's Line Height

“0” is default.

defaults write com.macromates.TextMate OakLineHeightDelta 2

Harvest Upgrades to Rails 3

Metalworkers know that sometimes the material needs to cool down before you can do interesting things with it…

Micetrap

Micetrap is a Ruby-based tool by Josep M Bach that sets ‘traps’ (open ports simulating fake vulnerable services), notifies you about scans and misleads potential attackers by giving them false information about services and versions running behind those ports.

CSS3 Buttons

A collection of buttons that show what is possible using CSS3 while also maintaining the simplest possible markup.

Git Immersion

Git Immersion is a guided tour that walks through the fundamentals of Git, inspired by the premise that to know a thing is to do it.

about 1 year ago.

Currency Codes Seed for Rails Apps

Currency codes seed for Rails apps, CSV data file and a convert script.

about 1 year ago.

Resesif: The Missing Theme for Textmate

Another Textmate theme based off of the theme by idlefingers.

Here’s a screenshot.

about 1 year ago.

Rack Issue with Dreamhost's Passenger Installation

To solve the Rack issue with Dreamhost’s Passenger installation follow steps below:

On your local machine;

bundle package

On Dreamhost;

bundle install —path vendor/bundle —local

Ubuntu üzerine Ruby Enterprise Edition, Nginx ve Passenger kurulumu.

Loremify

is a one-click tool to copy Lorem Ipsum. It lets you wrap in html, specify the amount of text, and copy it to your clipboard—all in one click. It runs as a Dashboard Widget in Mac OS X.

MissingDrawer

A Textmate plugin that provides Xcode-like project window interface without drawer and adds “Open Terminal Here” button to the file list’s button panel.

​C​l​o​s​e​ ​P​i​x​e​l​a​t​e​

Script that converts an image into a pixelated version using an HTML5 canvas element by ​D​a​v​i​d​ ​D​e​S​a​n​d​r​o.

Solution to the ​Photoshop ​"S​a​v​e​ ​F​o​r​ ​W​e​b​" ​co​l​o​r​ ​s​h​i​f​t.

The Ultimate CSS Gradient Editor created by Alex Sirota.

Juicer

a commandline tool for resolving dependencies, merging and minifying CSS and JavaScript files.

over 1 year ago.

How to Resubmit Sitemap to Google with Daily Cron

0 0 * * * curl http://www.google.com/webmasters/tools/ping?sitemap=http://domain.com/sitemap.xml > /dev/null 2>/dev/null

or in Rails apps with Whenever gem;

every 1.day, :at => '14:00 pm' do
  command "curl http://www.google.com/webmasters/tools/ping?sitemap=http://domain.com/sitemap.xml > /dev/null 2>/dev/null"
end

Tarayıcı bazlı desteklenip desteklenmeme durumunu da gösteren CSS3 kodu üreteci.