2012. Читалка

Буду апдейтити пост тим, що я прочитав цього року.

  1. 2012-01-02 Метелик Анрі Шарьєр
  2. 2012-01-04 Ва-Банк Анрі Шарьєр
  3. 2012-01-22 Пригоди бравого вояка Швейка Ярослав Гашек

Shutdown, Reboot, Suspend or Hibernate with user priviliges via D-Bus

Some distros don’t allow you to
shutdown -r now
from terminal without superuser password.
Shutdown/Reboot/Suspend/Hibernate with user priviliges in Linux is possible via D-Bus. You just need consolekit and upower packages installed.

Here are the commands:

Operation D-Bus command
Suspend dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Hibernate dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
Reboot dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
Shutdown dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

Just paste them in your beloved terminal emulator and press enter :)

Handball

People would take the Olympics a lot more seriously if they didn’t include handball. They’re just throwing a ball to each other like a bunch of kids. It’s just stupid.

And if you win, how do you look, say, the marathon gold medalist in the eye?…

Handball Gold Medalist: What did you get your gold for?
Marathon Gold Medalist: I ran 42 kilometers in extreme heat.
Handball Gold Medalist: Great. I threw a ball back and forth for a bit with someone about two feet away from me. Then I had a bath.
Marathon Gold Medalist: Big twat.

 

(c) Is It Just Me Or Is Everything Shit? (Steve Lowe & Alan McArthur)

Same shit would be with frisbee, if it gets included into Olympics :)

BlackBerry hidden key combinations

I’ll collect all the hidden key combinations in BlackBerry in this post.
Sort of wiki-page.

Combination Where Purpose
ALT+LGLG Ribbon (screen with apps) Open BlackBerry Event Log
SHIFT+BUYR Options>Status Show data/voice usage
?123+M,M, Ribbon (screen with apps) Open BlackBerry Event Log on touchscreen devices

Флеш

Дуже порадували коменти в неті до цієї новини про флеш
http://liza-bam.livejournal.com/1231845.html

Повторенье – мать ученья

Вчора вдруге переступив поріг однієї будівлі.
Сьогодні знову сів слухати Операцію Пластилін.

Одна і та ж подія, але вже у зовсім іншому контексті.
Світ повторюється. Події повторюються. Люди повторюються. Змінюється лише контекст. Змінюється ставлення, ключові герої і, відповідно, змінюється сюжет події.

Біфуркації - життєві роздоріжжя
На третьому курсі довелось пройти курс з моделювання динамічних систем. І, як це звично буває, на цікавому предметі попадається викладач не з кращих, або атмосфера на парах навчанню не сприяє. Мені випала цікава тема для дослідення, а саме “Біологічна еволюція через накопичення нестійкостей та біфуркації”. Колись-таки викладу повний текст мого реферату. Основний з багатьох підтекстів, думок, до яких спонукає реферат читача, полягає в тому, що все у світі повторюється за простою схемою:

  1. початок події
  2. її стабілізація
  3. еволюція події
  4. накопичення нестійкостей –> зростання ентропії
  5. колапс існуючої системи –> біфуркації
  6. утворення нової системи
  7. goto #1

Життя повторюється. Одні вмирають – інші народжуються. Земля – велике коло. Де б не почав рух – коли-небуть знову повернешся у вихідну точку. Хочеш добра - роби добро. Воно тобі повернеться. Зміниться лише контекст.

Бо так працює світ.
Repetitio est mater studiorum.

I received my OCPJP certificate

Oracle Certified Professional, JAVA SE 6 Programmer

OCJP Certificate

I successfully passed Oracle Certified Professional Java Programmer Exam (formerly SCJP) a month ago. That was my birthday present. I passed right one day before my 20-th BD.

For everyone, who is willing to pass it I’d recommend just 2 things:

  1. ExamLab for SCJP 6.0 – the best mockup tests for this exam! Free, cool and deep explanations, lot’s of tests. If you can score ~60-70% in this app, you would possibly pass OCJP with a high score (~80-90%).
  2. SCJP Sun Certified Programmer for Java 6 – the so-called K&S book (Katherine Sierra and Bert Bates). If you read all the book, you’ll definitely increse your java knowledge. The best book. 100% coverage.

Have fun!

Mainz trip [part 1]: start

Boeing-737

Boeing-737

Finally, I can read in a bus again. For the last several months I could do almost nothing in a bus, except listening to music. This syndrome was caused by an international summer workcamp in Mainz, Germany. It was an outstanding experience.

I always liked volunteering. The main reasons for me were the ability to meet tons of new people and do something good and useful for them. That’s why I  volunteered at Nash Fest, Zahid and twice at Up Fest. At that music festivals I  usually helped people with registration and navigating through the festival territory, acted as a live informational box. At some point, I’ve heard about international summer workcamps. That sounded promising, ‘cos I pretended volunteering in foreign country is more fun.

My friend Taras and I were carefully choosing the camp to go to. List if the camps was kindly provided by our sending organisation, Union-forum. Eventually, we’ve chosen one in Mainz, 300k+ city near Frankfurt. After all the negotiations and preparations we had all the documents and were ready to go.

The cheapest and the quickest way, to get there, is from Rzeszów to Frankfurt-Hahn using Ryanair airlines. That was my first airplane flight, so for me that was the most exciting path too.

We stepped on board. The trip began…

To be continued:
1. Volunteering
2. Choosing the camp.
3. Preparations/road to camp/Luxembourg.
5. Camping: people, food, work, free time etc.

Crappy legal java code

JavaThat was hard evening.

After reading some java books, right before I went to sleep, some java code came to my mind…


class ${public void _($ $4){}}
class $<_, $, $_> {$ _;<_> $($ _){}<$> $($ _,$ $_){_=$_;}}

And that’s not the upper bound. You can enchant it the way you want, creating crazy valid useless (or even useful?) POJOs :D

Ecology. Екологія.

Люксембург

Люксембург

Кілька тижнів тому я повернувся з волонтерського табору. Сила-силенна вражень, море спогадів та безцінний заряд енергії. На жаль, табір, як і все хороше, пролетів з блискавичною швидкістю. Кількість позитивних флюїдів, що заполонили моє тіло, незрівнянно велика. Та у європейських подорожей є один неявний мінус. Після повернення починаєш порівнювати. У порівнянні відкриваєш для себе свій рідний, до крихти знайомий, український світ по-новому.
Continue reading ‘Ecology. Екологія.’




Hosted by EOMY.NET