VbScript - Funny :) but Harmful :(

'#######################
'## robmind@gmail.com ##
'#######################

'## (i am fresh in vbscipt)
'## First of all, if you work on the Win32 system, you can command as manual with script, such as vbscript or jscript
'## if you use this, you should write this lines in any file, then save as "anyfile.vbs" and run it.
'## for example
'## this file name is "anyfile.vbs"
Set ws = createobject("Wscript.shell")
ws.run "calc"
'## Assigns an object reference to a variable or property, or associates a procedure reference with '## an event

'## Usage:
Set object.eventname = GetRef(procname)

'## For example:
'## if you want to operate a procedure (Notepad or any), you should use this method.

'## this line is required:
'## started to notepad
Set ws = createobject("Wscript.shell")
ws.run "notepad"

'## but, if you become bad (or worsen),
'## why? ws.run only is operated only one time
'## with this parameter
'## it is operated five time
Set ws = createobject("Wscript.shell")
For I = 1 To 5
ws.run "notepad"
Next


'## in endless times, notepad try to work with this method,
'## but, you can occur suddenly you computer
'## not use in your computer, you can be damage, Please!
'## (kendi bilgisayarında bu satırı deneme, lütfen..!)
Set ws = createobject("Wscript.shell")
For I = 1 To 5000
ws.run "notepad"
Next

'## bye...

Google ve Unknowns (Maybe, a few)

---------------------------------------
--Google Plex Wowww
http://www.google.com/plex/index.html
---------------------------------------
--Google CodeJum
http://www.google.com/codejam/index.html
---------------------------------------
--Google Happy Mothers Day
http://www.google.com/moms01/
http://www.google.com/moms/
---------------------------------------
--Google Valentine's Day
http://www.google.com/heart/
---------------------------------------
--Google Press Center
http://www.google.com/press/
---------------------------------------
--Google University Search
http://www.google.com/intl/en/universities.html
---------------------------------------
--Google Wml
http://www.google.com/wml/search
---------------------------------------
--Google Logos
(1,2......10)
http://www.google.com/doodle1.html
http://www.google.com/doodle10.html

http://www.google.com/dilbert.html
http://www.google.com/doodle.html
----------------------------------------
--Google BackLinks
http://services.google.com/marketing/links/trekfan2006/
----------------------------------------
--Google Custom Search
http://www.google.com/custom
----------------------------------------
--Google News Xml Output
http://www.google.com/news?output=xhtml
----------------------------------------
--Google IE
http://www.google.com/ie OR link
----------------------------------------
--Google Movies Search
http://www.google.com/movies
----------------------------------------
--Google Patent Search
http://www.google.com/ptshp?oe=UTF-8&hl=en&tab=ft
----------------------------------------
--Google Search Music
http://www.google.com/musicsearch?q=t&btnG=Search+Music
----------------------------------------
--Google Product Search
http://www.google.com/prdhp?ie=UTF-8&oe=UTF-8&hl=en&tab=if
----------------------------------------
--Different Login Page
https://www.google.com/accounts/ServiceLoginBoxAuth
link-2
----------------------------------------
--Google Adsense JavaScripts
https://www.google.com/adsense/signup-resources/3502596534-controllers.js
https://www.google.com/adsense/javascript/address/2069104706-addressjs.js
----------------------------------------
--Empty Page
http://www.google.com/ig/cache/
http://www.google.com/gen_204
----------------------------------------
--Google Reader
http://www.google.com/reader/clip-creator/
http://www.google.com/reader/clip-creator/user/-/state/com.google/broadcast
----------------------------------------
--Shakespeare
http://www.google.com/shakespeare
----------------------------------------
--Google Gapminder
http://www.google.com/tools/gapminder/
----------------------------------------
-- google wap
http://www.google.com.tr/m
http://www.google.com.tr/wapsearch
http://www.google.com/sprint_xhtml
----------------------------------------
--google government search
http://www.google.com.tr/unclesam
----------------------------------------
--google translate
http://www.google.com.tr/translate_t
----------------------------------------
--google univ
http://www.googlesyndicatedsearch.com/u/
http://www.google.com.tr/u/
----------------------------------------
-- i dont know!
http://www.google.com.tr/uds/
----------------------------------------
--sms
http://www.google.com.tr/sms/
http://www.google.com.tr/intl/en_us/mobile/sms/
----------------------------------------
--google web history
http://www.google.com.tr/reviews/search
----------------------------------------
--funny
http://www.google.com.tr/relpage/
----------------------------------------
--pda search
http://www.google.com.tr/pda/search
----------------------------------------
--jsky search
http://www.google.com.tr/jsky/search
----------------------------------------
--Google Base
http://www.google.com/base/
----------------------------------------

Alert: "Firefox is Running..." |Solution|

I want to write a bash script to fix the firefox crashing with my friend (~necdet). This script works incomplete because of some errors (~null exception etc..). This is;

###############################################
#!/bin/sh

export men=$(pidof firefox-bin)
cd ~
for x in $(find .mozilla | grep lock); do
rm $x
done
echo "Step(1/2).."

#if[ "$men" -eq 0 ] then
if [ $men -lt 10000000 ];
then
kill -9 $(pidof firefox-bin)
echo "Step(2/2).."
echo "OK..!"
exit 1

else
echo "Firefox Already Running"
exit 1
fi

###############################################

with helping CanBurak, i fix them...

Finally,

###############################################

# # # # # # # # # # # # # # # # #
# Hakan Ilgar #
# robmind@gmail.com #
# # # # # # # # # # # # # # # # #

#!/bin/sh

if [ "$(pidof firefox-bin)" == "" ];
then
echo "Firefox isnot Running!"
else

#if $? == 0
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#xxxxx Other, File finding alternatives by CanBurak xxxxxxxx
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# for x in $(find ~/.mozilla | grep lock); do
# rm $x
# done
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# find ~/.mozilla | grep lock | while read line; do
# rm $line
# done
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# find ~/.mozilla | grep lock | xargs rm
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# find -name lock -exec rm {} \;
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
find -name lock | xargs rm

echo "Step(1/2).."
echo "-----------"
kill -9 $(pidof firefox-bin)
echo "Step(2/2).."
echo "-----------"
echo "OK..!"
exit 1
fi


###############################################

Google BlackList Database

http://sb.google.com/safebrowsing/update?version=goog-black-url:1:1
http://sb.google.com/safebrowsing/update?version=goog-black-url:1:7998
http://sb.google.com/safebrowsing/update?version=goog-white-domain:1:19,goog-white-url:1:371,goog-black-url:1:7693,goog-black-enchash:1:15282
http://sb.google.com/safebrowsing/update?version=goog-black-url:1:7753
http://sb.google.com/safebrowsing/update?versio=goog-black-url:1:0000

Url Fun :)

www.google.com
dec:1113982819
hexdec:42660763
Hex:7777772E676F6F676C652E636F6D
md5:0a137b375cc3881a70e186ce2172c8d1
binary:
0111011101110111011101110010111001100111011011110110
111101100111011011000110010100101110011000110110111101101101
base64:d3d3Lmdvb2dsZS5jb20=

For example;
you can write this 1113982819 in adress bar.
then go on www.google.com :)

I/O Brush from MIT


I/O Brush is a new drawing tool to explore colors, textures, and movements found in everyday materials by "picking up" and drawing with them. I/O Brush looks like a regular physical paintbrush but has a small video camera with lights and touch sensors embedded inside. Outside of the drawing canvas, the brush can pick up color, texture, and movement of a brushed surface. On the canvas, artists can draw with the special "ink" they just picked up from their immediate environment.

continued on this article: I/O Brush: The World as the Palette






Tech Talk at Google





SSH -sonunda öğrenebildim

sonunda ağ üzerinde başka bir sunucuya bağlanabildim. ssh ile hiçde zor olmasa gerek. aksine basitde. Önce,
~> ssh
mesela, local alanda iseniz
~> ssh HU12
yada
~> ssh veli
gibi.
daha sonra sizden alacağı password ile bağlantı sağlayabilirsiniz.
isterseniz
~> users
yazarakda sistemdeki kullanıcıları görebilirsiniz.
Bunun bi şartı elbet, karşı tarafında şunu yapılması bekleniyor
~> xhost -
ancak bu şekilde bağlanmak istenen makinaya giriş yapılabilir.
ardından ana makinada
~> export DISPLAY=:0
yazılmalı ve ardından kendi makinanızda istediğinizi yapabilirisiniz.
mesela
~> xeyes
gibi
kolay gelsin...
(necdet, yardımın için sağol)

kütüphanede birşeyler arayın..

önceki yazımın ertesi günü firefox extension'larına bakmak istedim, search bar'dan bir farkı varmı diye... varmış. Xul dilini bilmek yetiyo, (javascript dilini bildiğinizi varsayarsak tabi, ama ben bilmiyorum diyebilirim) Xul dili sanırım çook güsel ve kapsamlı bi programla dili, gerek burdan
,gereksede buradan öğrenebilirsiniz. Bunu ise internetteki tutoriallara bakarak yapmaya çalıştım. Aramak istediğiniz texte sağ tıklayın ve aranmasını istediğiniz bölümde arayın bu kadar... kolay gelsin.

http://knuth.cs.bilgi.edu.tr/~hilgar/firefox/addons/bilgi_lib.xpi

Firefox kullananlar eminim bunu seveceksiniz!

Çoğu sitede görmüşsünüzdür. Şirketlerin insanlara, insanlarında kendilerine rahat ulaşabilmelerini sağlamak için pekçok çözümler üretilmiştir. Bunun en basit örneği son zamanlarda sıkça gördüğümüz firefox arama kutusu eklentisi... Nedir ne değildir bu soruları cevaplamadan hızlıca formulu vermek istedim:

ilk önce basit bir html yada farklı bir formatta bir belge yaratın. Bendeki örneği vermek istersem:

http://knuth.cs.bilgi.edu.tr/~hilgar/firefox/addons/index.phps

Burada şu kısmı kendiniz ayarlayın:

bilgi.src sizin src dosyanızın konumu
(http://knuth.cs.bilgi.edu.tr/~hilgar/firefox/addons/bilgi.src,

bilgi.png resim dosyanızın konumu,
sizin site icon'nunuz olacak
http://knuth.cs.bilgi.edu.tr/~hilgar/firefox/bilgi.png,

sanırım keyword de bu olacak
"Deneme", "Deneme");



Şimdi sıra geldi asıl dosyaya .src dosyasını oluşturmaya:

tekrar kendi dosyamdan örnek verecek olursam:

http://knuth.cs.bilgi.edu.tr/~hilgar/firefox/addons/bilgi.src
http://knuth.cs.bilgi.edu.tr/~hilgar/firefox/addons/rehber.src

name="BilgiRehber"
Kutucuk üzerinde gözükecek yazı

description="Bilgi Rehber"
Tanım

action="http://rehber.bilgi.edu.tr/result.asp"
bu kısım önemli, bildiğiniz bir site var, ve onun
arama kısmını yazmak yetiyo... mesela;
http://www.fazlamesai.net/search.php?query=a

burada action kısmına
action=http://www.fazlamesai.net/search.php

yazın ve
searchForm kısmınada
searchForm=http://www.fazlamesai.net"
yazın

bu kısmada
name="key"

fazlamesaiden örnek vericek olursam
şu şekilde olması gerekiyor..
name="query"
yani
search.php?query=a basan kısmın ? işaretinden sonra gelebilecek
yada gelmesini istediğiniz kısım,
name olabilir, id olabilir.


interpret kısmını kurcalamayın..

daha sonra, src dosyasını nereye kaydettiyseniz onun konumunu yazın
update="rehber.src"

ve final... sitenin icon'u ne olsun onada siz karar verin..
updateicon="bilgi.png"

Heceleme -limi yoksa Hecelememe -limi

Belki inanmayacaksınız ama, 1,5 -2 ay süren uğraşlarım sonunda heceleme yazılımını tamamlayabildim. Php 'de yazmayı denedim, ama append metodunu (tabir-i caizse insert) internetten, ordan burdan pek bulamadım. Java 'da yazmayı denedim. Insert metodu aynı şekilde burayada uyarlayamadım. Amaa... StringBuffer yokmu allah onu çıkarandan razı olsun diyim. Bunu kullanmam gerektiğini düşündüm ve object olarak aldığım string değerini buffer içerinde tutarak değerlendirmeye çalıştım. Aslında hecelemeyi haldun 'nun sayfasına bakarak anlamaya çalışım, lisp bilgim çok az olduğunu için sadece seslerin ilerleyişini öğrenmekle yetindim. Bide, ali nesin'in buna ilişkin bir makalesi vardı. Oldu gibi seslerin kelime üzerinde ilerlermesi basit gibiydi, ama bu seslerin nasıl ayrışabileceğini tam olarak kestirebilmekte zordu. Sonunda yapabildim. Java'da oldu, ama php 'de bunu uyarlamam gerekiyordu. StringBuffer php üzerinde nasıl yapılır hiçbir fikrim yok. Ama David Johns
'un string_buffer class kodunu kullanarak bunu halledebileceğimi düşündüm. Ve olduda. Güsel mi güsel çalıştı. Bide şu var..Hem java hemde php üzerinde kullanabileceğim abur cubur kod yığınlarını internettenden arakladım diyebilirim. Mesela swing yapısını, ve php'de dosya oluşturma yada o dosyanın kullanıcı klasöründe var olup olamayacağını anlayabilmek gibi. Son olarak php'de kod hata veriyodu. Javadakinin aksine php'de kod 6 hatta 7'.inci karaktere kadar işlem görüyo sonrasında hecelenen kelimenin sonuna işlenmeden ekleniyo. Fatih hocanında yardımıyla bunu hallebildim. Ve can ve coşkun hocanın yardımıyla başlayan uğraşım son buldu. Programın adınıda Monsy koydum, bir adı olsun istedim. (Son bir not daha bu program türke karakterleri okumakta zorluk çıkarıyo... üzgünüm..)
Java kodunu
,
Php kodunu,
Tura.txt dosyasını buradan alabilirsiniz.