Archive

Posts Tagged ‘Ubuntu’

Alacarte Menu Editor Hatası

April 15th, 2008 No comments

Ubuntu Gutsy 7.10 da birden applications menusu çalışmamaya başlası netten edindiğim bilgiye göre (: Termalden menuyü açabilmek için

alacarte

yazıyoruz. Ben şu hata ile karşılaştım.

cin@ottoman:~$ alacarte
/usr/lib/python2.5/site-packages/apt/progress.py: inconsistent use of tabs and spaces in indentation
Traceback (most recent call last):
File “/usr/bin/alacarte”, line 36, in
main()
File “/usr/bin/alacarte”, line 32, in main
app = MainWindow(datadir, version, sys.argv)
File “/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py”, line 49, in __init__
self.editor = MenuEditor()
File “/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py”, line 36, in __init__
self.__loadMenus()
File “/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py”, line 46, in __loadMenus
self.applications.dom = xml.dom.minidom.parse(self.applications.path)
File “/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py”, line 1915, in parse
return expatbuilder.parse(file)
File “/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py”, line 926, in parse
result = builder.parseFile(fp)
File “/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py”, line 211, in parseFile
parser.Parse(“”, True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0

Bu hata menu editorun applications.menu dosyasını tekrar yazmaya çalışmasıyla ortaya çıkıyor. Bu aşamada places ve system menuleri normal çalışıyor fakat sorun applications menusunde ve menu editorun kendisinde ortaya çıkıyor.

Hatayı Gidermek için bu fazlalık dosyayı siliyoruz..

cin@ottoman:~$ rm -f ~/.config/menus/applications.menu

artık herşeyin eski halina dönmüş olması lazım bu kod ile belitrilen dizin altında oluşturulan applications.menu dosyasını siliyoruz.

Kolay Gelsin (:

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: Research Tags: , , ,

Line Follower Robot – Cyprus International University

April 13th, 2008 No comments


Hi ALL,
First of all this is my first english post on my blog :)
IM leading The robotic group in cyprus international university. With my friends who is member of this group we had a competition on robotic. The topic of the competition was line following robots. Before competition day we had 4 group and so 4 robots :) I was really exciting about this, you know this is really nice feeling because you made it with your hand. And it’s running by itself.. A day before the competition day we’v got a bad news. Such as one of the group member burned processor (PIC) and the other group had something like this. And the video is about another robot. This one didnt joined the competition. Just for fun .. My friend Kourosh made it actually and we are calling it insect :) :) It is such a simplest robot on it’s own category.. It has no circuit, no sensors but it is working like it has a sensor :) You can see there are some wire on front of the robot. He used this wires instead of a sensor.

Read more…

VN:F [1.9.11_1134]
Rating: 5.2/10 (5 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: Robotic Tags: , , ,

Ubuntuda .mov dan .mpeg,.mpeg2,.avi’ a çeviri

April 12th, 2008 No comments

Geçenlerde elimdeki .MOV uzantılı video yu Youtube atmaya kalkışınca avi ye cevirmeliyim dedim çünkü MOV ile AVI arasında mükemmel bir boyut farkı var. Ben bunun için MEncoder i kullandım. Tabiki bunu kullanabilmek için sisteminize öncelikle “mencoder” paketini kurmamız gerekiyor.Bunun için;

$sudo apt-get install mencoder

komutunu terminale yazıp işlemi tamamlıyoruz. Bu arada şunu hatırlatayım mencoder uygulaması terminalden kullanılır. Bir GUI ye sahip değil.

Şimdi kısaca mencoder in nasıl kullanıldığından basedicem.

MPEG formatı için;

mencoder input.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video \ -oac copy other_options -o output.mpg

Kod dizisi işimizi görecektir. Burada yapılan işlem varsayılan olarak kabul edilen MPEG-1 formatı yapılır.

mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell \ -vf scale=640:480 -o output.avi

yukarıdaki kod dizisi ilede elimizdeki video dosyasını yeniden boyutlandırma şansı elde ediyoruz. AVI ye çeviri yapmak için ise

~/Desktop$ mencoder -ovc lavc -oac pcm -o output.avi /home/samet/Desktop/IMGP0262.MOV

şekilnde bir kullanım yapabiliriz. :) Mencoder ile ilgili daha fazla bilgiyi buradan alabilirsiziniz.

Geniş Bilgi İçin

Kolay Gelsin…

VN:F [1.9.11_1134]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
Categories: Research Tags: , , , , , , ,