laplace's demon

linux

How to re-locate SVN repository

by on Nov.01, 2010, under linux, Programming

Recently our local svn server location is changed. We use ip-address rather than a domain name for the svn server, so we needed to change the repository location in our working copies.

To change the svn location, use the following syntax:


svn switch --relocate svn://oldhostname/myrepository svn://newhostname/myrepository

Edit: I’m so lost that i forgot to exclude the username and password variables from the code above :)

Leave a Comment : more...

Htaccess dosyası

by on May.04, 2010, under linux, php, Programming

Htaccess dosyasında kullandığım tanımlamaları sürekli unutuyorum. Burayı da not defteri gibi kullanmaya başladım. Yaptığım olay sırayla şu: Öncelikle uygulama ortamını belirliyorum. Buradaki ortama göre bir config dosyası yüklüyorum çünkü. Sonra optimizasyon için ETag ları set ediyorum. Sora Expire header’ları ayarılıyorum. Sonra her bişeyi Gzip ile sıkıştırıyorum (apache deflate mod sağolsun). Daha sonrası da klasik url rewrite

SetEnv APPLICATION_ENV production

Header unset ETag
FileETag None
Header set Expires "Thu, 15 Apr 2012 20:00:00 GMT"
Header unset Last-Modified

# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Leave a Comment :, more...

Linux Başlangıç Programları

by on Sep.02, 2009, under linux, Tech

Bu diyeceklerim red-hat bazlı distrolar içindir. Debian için de çok farklı değil.

Başlangıçta yani boot sonrası program mı çalıştırmak istiyorsunuz (mesela subversion deamon programı). O zaman tek yapmanız gereken “/etc/rc.d/rc.local” dosyasına gerekli satırı eklemek.

Mis gibi

Leave a Comment : more...

Ubuntu için tortoise svn alternatifi

by on Jul.21, 2009, under linux

Win Xp’de kullanıp hastası olduğum tortoise svn programının linux versiyonunun olmaması çok fena bir durum. Tortoise explorer shell ine entegre oluşu ve kolay kullanımıyla diğer bütün svn client’larının arasında pırlanta gibi parlıyor. Ubuntu (9.04 versiyonunu kullanıyorum şu anda) için rapidSVN isimli güzide bir program kullanıyordum. Kendi GUI si olan, C++ ile yazılmış güzel bir program. Ancak Nautilus shell ine entegre olmadığı, yani sağ tıklayıp işlem yapma güzelliğine sahip olmadığı için bana hep angarya gibi gelmiştir. İşte çözüm:

Buradan indireceğiniz program sayesinde aynı tortoise de olduğu gibi sağ tıklamak suretiyle svn repository’lerinizi kontrol edebilirsiniz. Ancak tortoise kadar ayrıntılı değil. sadece checkout, commit, update gibi basit işlemleri yapabiliyorsunuz. Ancak yine de baya bir zaman kazandırıyor.

Bu arada program Nautilus file manager programının “User scripts” isimli güzide özelliğini kullanıyor. Yani tek yaptığı menuye bir kaç dosya eklemek ve komut satırına komutlar vermek. Yani isterseniz kendiniz de menuyu genişletebilirsiniz.

Programın install edilmesi de şöyle, paketi açtığınızda içerideki “subversion” isimli dosyayı “~/.gnome2/nautilus-scripts” klasörüne kopyalamanız yeterli.

Leave a Comment :, , more...

Boot sırasını değiştirmek

by on Jun.16, 2009, under linux

Benim gibi ubuntu + windows kombinasyonu kullanıyorsanız, boot sırasındaki os seçim listesinde ubuntu’nun default olması dert olabilir. özellikle bilgisayarı başka biri de kullanıyorsa. çözüm ise

sudo gedit /boot/grub/menu.lst

ile menu.lst dosyasını açmak, içinde “default 0″ yazan satırı listedeki sıraya göre değiştirmek. default kurulumda windows 4. sırada çıkıyor. dolayısıyla “default 4″ yapınca işlem tamamlanmış oluyor. afiyet olsun.

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...