Crisis and wisdom:
"I mean people -- people don't get -- they don't get smarter about things that get as basic as greed and you can't stand to see your neighbor getting rich.
You know you're smarter than he is, and he's doing these things, you know, and he's getting rich, and your spouse is getting unhappy with you because you aren't doing -- pretty soon you start doing it.
And so you get what I call the natural progression, the three Is. The innovators, the imitators, and the idiots.
And that's what happens. Everybody just kind of goes along. And you look kind of silly if you disagree ..."
Sunday, October 19, 2008
Posted by
Dimetron
at
11:15 AM
0
comments
Labels: crisis or wisdom
Sunday, October 12, 2008
Bicycle and good weather.
Сегодня отличная погода ...
PS. Пришлось покувыркаться и пролететь через руль.
Одна пожилая дама на тропинке изменила траекторию и для меня осталась обочина ;)
То какие хорошие у меня тормоза я понял уже в полете. Самое прикольное, было смотреть на
лицо бабульки ...
Posted by
Dimetron
at
9:31 AM
0
comments
Labels: sport
Friday, October 10, 2008
4konverta Пиарим сайт о финансах http://www.kraynov.com/personal-finance/
Так как общий прогноз економики не в лучшую сторону, можно ожидать ухудшения ситуации и на рынке ИТ. Хотя как ни странно именно в тяжелые времена начинались многие успешные стартапы и проекты.
Макс Крайнов пишет об экономическом кризисе и что надо делать.
Там же ссылка на интересную программу для семейного бютжета 4konverta/
Еслы вы решили пересмотреть свой семейный бютжет или не хотите менять привычный образ жизни.
Posted by
Dimetron
at
2:27 PM
0
comments
Labels: романсы о финансах
Sunday, October 05, 2008
Vmware server 2 problem
New vmware server refuse to connect to my VM with the following message:
The attempt to acquire a valid session ticket for "VM-XP" took longer than expected. If this problem persists, contact your system administrator.
As a workaround I found how to run console directly without web:
~/.mozilla/firefox/../extensions/VMwareVMRC@vmware.com/plugins/vmware-vmrc -h 127.0.0.1:8333 -u user -p password
Posted by
Dimetron
at
5:33 PM
0
comments
Saturday, October 04, 2008
Web services I like:
Blogger - I use it not very often ;) but this is really cool thing.
Twitter - I was not using it for some time, but this is great solution for micro-blogging. If you want to share something small or some ideas quickly - twitter is a great tool.
Evernote - This is another great tool with nice plugins for firefox and windows mobile.
Todoist - Everyday planner that has a very simple web interface.
Dropbox - web file storage with auto syncronizations between windows and linux clients.
Other interesting links:
http://www.slideshare.net/ - SlideShare is nice site with many presentations.
Posted by
Dimetron
at
12:11 PM
0
comments
Labels: web 2.0
Monday, August 11, 2008
I am back from vacation
And of course, there are new pictures in my photo album
![]() |
| Turkey 2008 - Hotel Botanik |
Posted by
Dimetron
at
5:45 AM
0
comments
Labels: vacation
Sunday, July 20, 2008
Ruby, Outlook and yield
How to get unread messages from outlook in Ruby.
require 'Outlook'
outlook = Outlook.new
#GET UNREAD MESSAGES FROM OUTLOOK
outlook.viewMessages(){|msg|
puts msg
}
require 'win32ole'
require 'date'
require "KeyStorage"
#Class MailItem value Object
class MailItem
def initialize(subj, to, from, cc, body, path, msgid, unread, created)
@subj = subj
@to = to
@from = from
@cc = cc
@body = body
@path = path
@msgid = msgid
@unread = unread
@created = created
#p msgid.length
end
attr_reader :subj, :to, :from, :cc, :body, :path, :msgid, :unread, :created
def eql?(o)
o.is_a?(MailItem) && msgid == o.msgid
end
def hash
@msgid.hash
end
def to_s
return "MailItem: @subj:" + @subj + "\n @to" + @to + "\n @cc " + @cc + "\n" + @msgid
end
end
class Outlook
OLFolderInbox = 6
OLMailItem = 43
OLAppointmentItem = 53
def initialize()
@ol = WIN32OLE.new("Outlook.Application")
puts "Get MAPI"
olookNameSpace = @ol.GetNameSpace("MAPI")
puts "Get default Inbox folder"
@loInbox = olookNameSpace.GetDefaultFolder(OLFolderInbox)
@unusedFolderPath = @loInbox.folderPath
end
def message2Item(loMailItem, folder)
case loMailItem.Class
when OLMailItem
MailItem.new(loMailItem.subject, loMailItem.to, loMailItem.senderName, loMailItem.cc, loMailItem.htmlBody, folder, loMailItem.entryID, loMailItem.UnRead, loMailItem.creationTime)
when OLAppointmentItem
#p "AppointmentItem found: [" + loMailItem.subject + "]"
MailItem.new(loMailItem.subject, "Appointment::", loMailItem.senderName, "", loMailItem.body, folder, loMailItem.entryID, loMailItem.UnRead, loMailItem.creationTime)
else
p "UnknownItem found: [" + loMailItem.subject + "]"
end
rescue Exception => e:
puts "Exception in message2Item: " + e
end
def processFolderWithSubs(folder, readAll)
fp = folder.folderPath.gsub(@unusedFolderPath, "").gsub("\\", "/")
#p "->" + fp
for loMailItem in folder.Items
if loMailItem.UnRead || readAll
messageItem = message2Item(loMailItem, fp)
if messageItem != nil
#call block with message
yield messageItem
end
end
end
#check subfolders
for loFolder in folder.Folders
processFolderWithSubs(loFolder, readAll){|m| yield m}
end
end
def viewMessages(readAll = false)
processFolderWithSubs(@loInbox, readAll){|m| yield m}
end
end
Posted by
Dimetron
at
4:00 PM
0
comments
Labels: Ruby
Thursday, May 29, 2008
Борьба с невежеством и antiCopyright.
Сегодня на сайте посвященном борьбе с копирайтом нашел интересное определение невежества.
Интересный каламбур - "Копирайт Невежества"
Posted by
Dimetron
at
7:59 AM
0
comments
Labels: невежества
Sunday, April 13, 2008
Всем кто любит музыку БГ ...
Let us not try to understand music with our mind.
Let us not even try to feel it with our heart.
Let us simply and spontaneously allow the music-bird to fly in our heart-sky.
While flying, it will unconditionally reveal to us what it has and what it is.
What it has is Immortality's message
And what it is is Eternity's passage.
- Sri Chinmoy
Posted by
Dimetron
at
5:50 AM
0
comments
Friday, April 04, 2008
Are you "Workaholic"? What to work more?
Try simple solution 5 min rest every hour http://mundogeek.net/workaholic/.
Posted by
Dimetron
at
6:00 AM
0
comments
Tuesday, April 01, 2008

Меняю работу. Теперь буду показывать екскурсии вот с этого здания.
Posted by
Dimetron
at
3:42 AM
0
comments
Labels: п.а.
Thursday, March 20, 2008
Vmware server 1.0.5 on Ubuntu hardy 64bit with 4G of memory.
Hardy is built on Linux 2.6.24 kernel and to run Vmware on it you need to do some steps.
#Patch the VMware modules.
The VMware community forums helps with that: http://communities.vmware.com/thread/121847?tstart=-1
Don’t forget to edit …/source/vmmon-only/include/vcpuset.h, you need to change line 74 from “asm/bitops.h” to “linux/bitops.h”.
## Re-compile the modules.
Just use sudo vmware-configure.pl to recompile the modules.
#Copy the libraries
ln -sf /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0
#Sometimes, if you have a problem to start vmware console, use this:
ln -s /usr/lib32 /usr/l32
sed -i -e 's/usr\/lib/usr\/l32/g' /usr/lib32/gtk-2.0/2.10.0/loader-files.d/libgtk2.0-0.loaders
sed -i -e 's/usr\/lib/usr\/l32/g' /usr/lib32/libgdk_pixbuf-2.0.so.0.1200.8
#For better perfomance add to /etc/sysctl.conf the following:
vm.swappiness = 0
vm.overcommit_memory = 1
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
vm.dirty_expire_centisecs = 1000
dev.rtc.max-user-freq = 1024
#If you have a lot of IO operations and cache in Linux is high. Use the script to drop the cache:
#!/bin/sh
free -m
sysctl -w vm.drop_caches=0
sync
sysctl -w vm.drop_caches=1
sysctl -w vm.drop_caches=2
sysctl -w vm.drop_caches=3
sysctl -w vm.drop_caches=0
free -m
Posted by
Dimetron
at
1:41 AM
0
comments
Tuesday, March 04, 2008
Ubuntu amd64 with 4G memory.
Так как у меня на лаптопе Lenovo T61 стоит 4Г памяти и подходящий проц, я решил попробовать выжать все из того что есть. После нескольких недель работы на 64 битной версии Убунту я вернулся к первоначальному варианту 32х битной системы. На практике видно, что система с 64 битной архитектурой ест почти в 2 раза больше памяти. Если 32х битная система видит 3G из них 1гиг система и минимальные программы, то после перехода на 64 бита доступны все 4Г из которых уже 2Г будет занято системой. В результате те же 2Г в которые можно загрузить меньше.
В моем случае у меня 2 вмваре машины 1.5 и 0.5 гига.
Вывод такой: с переход на 64 битную систему имеет смысл только если у вас 6 или 8 гиг памяти ;)
Posted by
Dimetron
at
12:33 AM
0
comments
Labels: Убунту. 64
Sunday, February 17, 2008
Posted by
Dimetron
at
11:52 AM
0
comments
Labels: in France
Saturday, January 26, 2008
Не смотря на проблемы с дизайном и функциональностью, сайт Одноклассники.ру работает. Пока нашел 2 однокласников которых не видел больше 10 лет. Посмотрим как будет дальше ...
Posted by
Dimetron
at
4:02 PM
0
comments
Labels: одноклассники
Saturday, January 12, 2008
Всем привет!!! Я не пропал ;) Сегодня утром вернулся из Франции.
Для тех кто не вкурсе - это мой первый проект, в качестве тех. консультанта PSO.
Следующие 2 мес буду работать в Ренне (Rennes) .
Posted by
Dimetron
at
5:10 AM
0
comments
Labels: in France










