Invalid memory access of location 00000000 eip=22aab5a3
Cuma, Aralık 11, 2009
Pazar, Aralık 06, 2009
Clojure (Java + Lisp)
Clojure is a dynamic programming language that targets the Java Virtual Machine (and the CLR ). It is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Every feature supported by Clojure is supported at runtime. Clojure provides easy access to the Java frameworks, with optional type hints and type inference, to ensure that calls to Java can avoid reflection.
Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system. Clojure is predominantly a functional programming language, and features a rich set of immutable, persistent data structures. When mutable state is needed, Clojure offers a software transactional memory system and reactive Agent system that ensure clean, correct, multithreaded designs.
http://clojure.org/
Pazar, Ekim 25, 2009
Mac OS X Leopard – Invalid memory access of location 00000000 eip=22aab5a3
Cuma, Ekim 23, 2009
mencoder, ffmpeg ile videoya altyazı ve watermark ekleme
mencoder -of avi \
-ovc xvid -xvidencopts bitrate=1140 \
-oac copy \
-sub input.srt -subcp utf8 \
-o output.avi input.avi
ffmpeg -i output.avi -y -f avi \
-vcodec mpeg4 -b 350k \
-acodec libmp3lame -ab 64k -ar 44100 \
-aspect 4:3 -s 320x240 -r 25 \
-vhook '/usr/local/lib/vhook/watermark.dylib -f logo1.png' \
output2.avi
Pazartesi, Ekim 12, 2009
Mac OS X 10.6 fink project ve GIT Kurulumu
Bu bölüm gerekli diğer paketleri kurmak için
Öncelikle finkproject.org sitesinden ilgili dosyayı indiriyoruz.
Tabi daha önceden kurulum cd sinde XCode yi kurmak lazım
en son 10.5 olduğu için manuel kurmamız gerekecek
http://downloads.sourceforge.net/fink/fink-0.29.10.tar.gz
tar -xvzf fink-0.29.10.tar.gz
cd fink-0.29.10
./bootstrap
pathsetup.sh
komutlarını sırayla uyguluyoruz
hemen güncellemeleri yapalım
fink selfupdate
fink kurulumu tamamdır asıl konumuza dönebiliriz.
kurduğumuz fink yardımıyla gerekli paketleri kuralım sırayla
fink install gnupg
fink install gettext
bu paketleri kurduktan sonra http://kernel.org/pub/software/scm/git/git-1.5.5.tar.bz2 adresinden git i indiriyoruz
wget -c http://kernel.org/pub/software/scm/git/git-1.5.5.tar.bz2
daha sonra kuruluma geçiyoruz
bunzip2 git-1.5.5.tar.bz2
tar -xvf git-1.5.5.tar
cd git-1.5.5
./configure
make
sudo make install
gitiniz hayırlı olsun
Cuma, Ekim 09, 2009
Java BitConverter
Pazartesi, Eylül 28, 2009
Korku (Fıkra)
- Sizin büyük babanız yatakta ölmedi mi?..
- Evet...
- Peki onun babası?
- O da yatakta öldü...
- Peki siz akşam yatağa girerken korkuyor musunuz?..
motor için de geçerlidir :)
Cuma, Eylül 04, 2009
Mac OS X te MySQLdb 1.2.2 kurmak
Adım 0:
Öncelikle MySQL ve Python u kurmuş olmanız gerekiyor.
Adım 1:
MySQL Python adapdörünü SourceForge den indirin.
Adım 2:
indirdiğiniz dosyayı açın
$ tar xzvf MySQL-python-1.2.2.tar.gzAdım 3:
indirdiğiniz klasöre komut satırından girerek aşağıdaki komutu verin
$ sudo python setup.py cleanAdım 4:
aynı klasör içerisindeki _mysql.c dosyasını favori editörünüzle açın.
4a. aşağıdaki satırları bulup silin (37-39):
#ifndef uint
#define uint unsigned int
#endif4b. aşağıdaki satırları bulun:
uint port = MYSQL_PORT;
uint client_flag = 0;aşağıdaki gibi değiştirin
unsigned int port = MYSQL_PORT;
unsigned int client_flag = 0;Adım 5:
mysql lib klasörü için aşağıdaki şekilde sembolink link oluşturun.
$ sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysqlAdım 6:
setup_posix.py dosyasında aşağıdaki satırı bulun
mysql_config.path = "mysql_config"bununla değiştirin
mysql_config.path = "/usr/local/mysql/bin/mysql_config"Adım 7:
artık derleyebiliriz. komutumuz
$ sudo python setup.py buildAdım 8:
derlenmiş paketleri yerlerine alalım
$ sudo python setup.py installAdım 9:
son olarak MySQLdb miz çalışıyor mu test edelim.
$ python
>>> import MySQLdbKaynak:
http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/
Salı, Eylül 01, 2009
wget ile Download'ı sınırlandırmak
wget -c --limit-rate=4k http://erkan.iqchoice.com/basisrelease.tar.gz
NOT: Bu sayede sadece 4k ile indirilir.
geri kalanı burda :
http://wiki.linux-sevenler.org/index.php/NASIL_wget_Kullan%C4%B1m%C4%B1
Cuma, Ağustos 07, 2009
JavaOne 2009 JavaFX Authoring aracı demosu
ekran görüntüsü :
videolar :
Çarşamba, Nisan 08, 2009
Google App Engine artık java destekliyor...
- build an App Engine application using standard Java web technologies, such as servlets and JSPs
- create an App Engine Java project with Eclipse, and without
- use the Google Plugin for Eclipse for App Engine development
- use the App Engine datastore with the Java Data Objects (JDO) standard interface
- integrate an App Engine application with Google Accounts for user authentication
- upload your app to App Engine
http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html
Salı, Mart 10, 2009
YAHOO! QUERY LANGUAGE(YQL)
Başlamak için
1. YQL Konsolunu deneyin.
2. uygulamalarınızdan yql ye nasıl erişeceğinizi öğrenin.
3. Erişim kodunuzu alın.
Kullanım limitleri
YQL API kullanımı aşağıdaki kısıtlamalara sahiptir:
Erişim anahrarı limitleri
* Günde 100.000 işlem.
IP limitleri:
* / V1/public/* saat başına 1000 işlem
* / V1/yql/* saat başına 10000 işlem
Tüm fiyatlar değişebilir.
örnekler denedikten sonra :)
Cumartesi, Mart 07, 2009
Java, JDBC ve MySQL Tür Dönüşümleri
ResultSet.getObject() için MySQL ve Java Türleri.
| MySQL Tip Adı | GetColumnClassName | Java Class |
| BIT(1) (new in MySQL-5.0) | BIT | java.lang.Boolean |
| BIT( > 1) (new in MySQL-5.0) | BIT | byte[] |
| TINYINT | TINYINT | Eğer depolama boyutu 1 ise java.lang.Boolean değilse java.lang.Integer. |
| BOOL, BOOLEAN | TINYINT | Bkz TINYINT |
| SMALLINT[(M)] [UNSIGNED] | SMALLINT [UNSIGNED] | java.lang.Integer (herşeye rağmen UNSIGNED veya değil) |
| MEDIUMINT[(M)] [UNSIGNED] | MEDIUMINT [UNSIGNED] | java.lang.Integer (eğer UNSIGNED ise)java.lang.Long (C/J 3.1 ve öncesi ise) ( C/J 5.0 ve sonrası ise) |
| INT,INTEGER[(M)] [UNSIGNED] | INTEGER [UNSIGNED] | java.lang.Integer, (eğer UNSIGNED ise) |
| BIGINT[(M)] [UNSIGNED] | BIGINT [UNSIGNED] | java.lang.Long, (eğer UNSIGNED ise) |
| FLOAT[(M,D)] | FLOAT | java.lang.Float |
| DOUBLE[(M,B)] | DOUBLE | java.lang.Double |
| DECIMAL[(M[,D])] | DECIMAL | java.math.BigDecimal |
| DATE | DATE | java.sql.Date |
| DATETIME | DATETIME | java.sql.Timestamp |
| TIMESTAMP[(M)] | TIMESTAMP | java.sql.Timestamp |
| TIME | TIME | java.sql.Time |
| YEAR[(2|4)] | YEAR | java.sql.Short. yearIsDateType false ise |
| CHAR(M) | CHAR | java.lang.String (sutun özelliği BINARY ise byte[] döner) |
| VARCHAR(M) [BINARY] | VARCHAR | java.lang.String (sutun özelliği BINARY ise byte[] döner) |
| BINARY(M) | BINARY | byte[] |
| VARBINARY(M) | VARBINARY | byte[] |
| TINYBLOB | TINYBLOB | byte[] |
| TINYTEXT | VARCHAR | java.lang.String |
| BLOB | BLOB | byte[] |
| TEXT | VARCHAR | java.lang.String |
| MEDIUMBLOB | MEDIUMBLOB | byte[] |
| MEDIUMTEXT | VARCHAR | java.lang.String |
| LONGBLOB | LONGBLOB | byte[] |
| LONGTEXT | VARCHAR | java.lang.String |
| ENUM('value1','value2',...) | CHAR | java.lang.String |
| SET('value1','value2',...) | CHAR | java.lang.String |
Salı, Kasım 04, 2008
Ufak bi Spring WS örneği
package tr.hba.springws.model;
public class Campaign {
private String name;
private String code;
private String content;
public Campaign(String name, String content){
this.name = name;
this.content = content;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the code
*/
public String getCode() {
return code;
}
/**
* @param code the code to set
*/
public void setCode(String code) {
this.code = code;
}
/**
* @return the content
*/
public String getContent() {
return content;
}
/**
* @param content the content to set
*/
public void setContent(String content) {
this.content = content;
}
}
Pazartesi, Ekim 20, 2008
JPA NamedQuery : java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManager.
@PersistenceContext
protected EntityManager entityManager;
satırını
@PersistenceContext(type=PersistenceContextType.EXTENDED)
protected EntityManager entityManager;
şeklinde deneyin.
Çarşamba, Ekim 08, 2008
Türkçe karakterlerin HTML karşılıkları
ğ ğ Latin Small Letter G With Breve (Small G Breve)
Ü Ü Capital U, dieresis or umlaut mark ("Ü")
ü ü Small u, dieresis or umlaut mark ("ü")
Ş Ş Latin Capital Letter S With Cedilla (Capital S Cedilla)
ş ş Latin Small Letter S With Cedilla (Small S Cedilla)
İ İ Latin Capital Letter I With Dot Above (Capital I Dot)
ı ı Latin Small Letter Dotless I
Ö Ö Capital O, dieresis or umlaut mark ("Ö")
ö ö Small o, dieresis or umlaut mark ("ö")
Ç Ç Capital C, cedilla ("Ç")
ç ç Small c, cedilla ("ç")
Cuma, Eylül 26, 2008
mysql #1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like' hatası
Salı, Ağustos 26, 2008
video dan ekran görüntüsü alma
daha sonra ekran goruntüsü almak istediğiniz yer geldiğinde s tuşuna basın.