19
Dec 11

Apache 2.2.17 windows configuration

wamp yeni süürmünde virtual host oluşturdum ancak bu kolay olmadı sizde bir projenizde
virtual hopst oluşturmak isterseniz, bir de bunu deneyin

NameVirtualHost siteadresi.com:80

ServerName siteadresi.com
ServerAlias siteadresi.com
DocumentRoot D:/wamp21/www/siteadresi.com
ErrorLog “D:/wamp21/www/siteadresi.com/error.log”
CustomLog D:/wamp21/www/siteadresi.com/access.log common

Options -Indexes FollowSymLinks MultiViews
AllowOverride All

Order allow,deny
Allow from all


17
Dec 11

Nice Programs for a Day

Managing systems

Bcfg2

It is based on an operational model in which the specification can be used to validate and optionally change the state of clients, but in a feature unique to Bcfg2 the client’s response to the specification can also be used to assess the completeness of the specification. Using this feature, Bcfg2 provides an objective measure of how good a job an administrator has done in specifying the configuration of client systems. Bcfg2 is therefore built to help administrators construct an accurate, comprehensive specification.

 

Manual updates and rollback

Capistrano

Capistrano is a developer tool for deploying web applications. It is typically installed on a workstation, and used to deploy code from your source code management (SCM) to one, or more servers.

 


07
Dec 11

scp bash script

#!/usr/bin/expect -f
set file [lrange $argv 0 0]
set remote [lrange $argv 1 1]
set ip [lrange $argv 2 2]
set password [lrange $argv 3 3]
set timeout 60
send “\n\rFILE:\t$file\r\nREMOTE:\t$remote\r\nIP:\t$ip\r\nPASSWORD:\t$password”
spawn scp “$file” “root@$ip:$remote”
expect {
-re “.*ssword.*” {
exp_send “$password\r”
}
-re “.*es.*o.*” {
exp_send “yes\r”
exp_continue
}

}
interact


16
Nov 11

Haftanın Siteleri

Programlama;

Ruby Test Edin :

http://tryruby.org/levels/1/challenges/0


16
Nov 11

Eclipse cdt ve cygwin configure edelim

1-)

öncelikle cygwin uygulamanızda

  • binutils
  • gcc
  • gcc-core
  • gcc-g++
  • gcc-mingw-core
  • gcc-mingw-g++
  • make
  • gdb (needed if you want to support debug in eclipse)

paketlerinin kurulu olduğuna bir bakın bunun için cygwin uygulamasını ya da

cygcheck -c | grep -e ‘^bin’ -e ‘^gc’ -e ‘^gd’  -e ‘^make’ ile paketleri kontrol edebilirsiniz

2-)  ortam değişkenlerinde PATH değişkenine  %cygwin%\bin ekleyin %cygwin% cygwin kurulu olduğu yoldur.

3-) cygwin yolları tanımlamak bunun için eclipse de path mapping yapalım

Windows->Preference->C/C++ -> Debug -> Source Lookup Path  gelip Add butonuna tıklayarak Path Mapping Ekleyin.

ve şunları ekleyin ;

  • \cygdrive\c -> c:\
  • \cygdrive\d -> d:\

4-) Eclipse yolları(c/c++ header files) tanıtmalısın aksi taktirde kodları hep hatalı gösterecektir

Bunun için de proje üzerine iken sağ tıklayıp özelliklere gelin C/C++ General -> Path and Symbols gelip Gnu C ve Gnu C++

D:\cygwin\usr\include, ve D:\cygwin\usr\include\w32api yollarını ekleyelim

5-) cygwin de c/c++  complier iiçn de yolları tanıtmak gerkiyor bunun için de proje ayarlarından

c/c++ Build ->Settings tıklayın Tool Setting Tabında Cygwin C ve Cygwin C++ için Includes kısmına

“D:\cygwin\usr\include”

“D:\cygwin\usr\include\w32api”

dizinlerini ekleyin

Kütüphane için de

Tool Settings tabında Cygwin C++  Linker ayarlarından Libraries kısmından Library Search Path(-L)

“D:\cygwin\lib\w32api” dizini ekleyelim

Umarım yardımcı olmuştur , iyi çalışmalar.

 

 


13
Nov 11

Harika windows 7 temalar

Özenle seçilmiş birbirinden güzel 10 windows 7 teması temaları kullanabilmek için uxtheme patch yapılması gerekmektedir.

Sayfaya git


09
Nov 11

Python ile Öğrenme 2. Baskı

Python öğrenmeye başlayanlar için güzel bir ekitap BBGD_PIO.


09
Nov 11

pic basic LCD Devreler

Pic Basic de yapılmış LCD devre örnek projeler; lcd_devreler


09
Nov 11

Pic Basic Pro Projeleri

Pic basicde yapılmış bir çok proje, robotic projelerinizde yardımcı olabilir; pic basic pro projeleri.


09
Nov 11

PIC Basic Pro baundrate hız hesaplama

Pic basic baundrate hesabını yapmak için kullanabileceğiniz bir araç. indir => SPBRGCalc