Archive for the ‘Creativity’ Category

Proxy in processing

Saturday, May 29th, 2010

I’ve been studying processing language, and I think it’s great tool for

  • designers, who want to programmmmm
  • and programmers who want to design

More about it you can read at the official page of the project: processing.org/

If you need to work in processing with internet data && you are behind proxy, it’s a little bit trickier.

Place the following code in your setup() function, and everything gonna be alright!

void setup() {
        size(800,600);

        Properties systemSettings = System.getProperties();
        systemSettings.put("http.proxyHost", "your.proxy.org");
        systemSettings.put("http.proxyPort", "8080");
        System.setProperties(systemSettings);
}

Watch your webcam in console!

Friday, January 8th, 2010

Wow! I really love linux! I feel that with every minute spent inside linux my love to this OS grows up! It’s so outrageous! You can do almost everything!!!

Today, I was really shocked with the abilities of the mplayer!
Here’s a short video of what I’ve done:

So, here’s a list of what I was doing with it (everything is done in tty-conole->[Ctrl]+[Alt]+[F5]):

  1. I wondered if I can watch films in console. That’s real! You just have to specify the special output driver. It’s the ASCII-Art driver:
    mplayer -vo aa nameOfYourFile.avi
    You can enjoy colour video in console, just replace aa driver with the Colour ASCII-Art driver caca!
  2. I felt it’s not enough! So, I tried to watch my web-cam in console! Obviously, mplayer is able to do it! You just need to specify the tv:// protocol, instead of filename:
    mplayer tv:// -vo caca
  3. Here’s the first problem. The output is alright, but that stats information always updates, and the video is blinking:( So, it makes impossible for you to watch your wab-cam normally. I started to investigate the mplayer’s man page:
    man mplayer
    it’s so huge! (read it if you want :) )
    I quickly found the solution! Here is it: the parameter -really-quiet:
    mplayer tv:// -vo caca -really-quiet
  4. But that was not enough! I wish I can watch the web-cam, as I look at mirror! I found the parameter -flip. But it just turns everything upside-down. The real solution for that is the video-filter Mirror! Specify it & enjoy:
    mplayer tv:// -vo caca -vf mirror -really-quiet
  5. There’s one more improvement, you can do to your output. You can make it better by specifing the font. The smaller the font – the better’s the output. I usually use Uni1-VGA8:
    setfont Uni1-VGA8

That’s all, folks! Go and watch your favourite videos in console!

8bit Second-hand rush!

Sunday, December 20th, 2009

Yesterday my 2 friends & I went to our local second-hand store. We wanted to have some fun &, if we could find smth special & outrageous, we could buy it…

Right at the beginning of the shop we found smth that had blown up our minds!
While surfing all the heaps with closing we saw an old Nintendo-clone: PowerJoy.

Power Joy

Power Joy Nintendo clone

I’ve never seen anything like that… My all childhood was spent with Dendy/Dendy2, which was created in Russia…and was de-facto the standard for game consoles… Almost every child had one!

 

Yeap… we bought it!
It’s awesome!
The only thing you need in order to play is TV.
So the pluses of this console are:

  • it works from batteries – no AC cable needed!
  • main gamepad is the gamepad itself+main computing center+pistol
  • has 9999+ prebuilt games!

As it was bought in second-hand store I had to fix it a bit. There was a problem in battery connection, but I fixed it quickly & was really astonished, when my ears heard the same, known from the earky childhood 8bit noise!!! Then a picture came up!!! That was AWESOME! I quickly found the game, called Tank90 & started fighting with evil tank forces!

It’s really interesting to remember that childish shit… In our days, when people are playing NFS & still complain that they are not satisfied with gameplay or video graphics that 8bit console remembers about the days spent in front of the TV, playing hard & trying to kill all the mushrooms and turtles with the help of Mario&&Luigi…

Піф Давольний

Thursday, December 10th, 2009

Давольний як ніколи!
За останні 3 місяці такого нервового сплеску не переживав!
Настрій підняли.
Ваааааааааааааааааааааааау!
u r brilliant!

Genius G-Pen 4500 && Ubuntu 9.10

Thursday, December 10th, 2009

I’m about to use my Genius G-Pen 4500 with Ubuntu. And here is my experience in installing this tablet.

Everything is pretty stright-forward.

  1. Go to http://code.google.com/p/linuxgenius/
  2. Get the source for wizardpen. I used http://linuxgenius.googlecode.com/files/wizardpen-0.7.0-alpha2.tar.gz
    wget http://linuxgenius.googlecode.com/files/wizardpen-0.7.0-alpha2.tar.gz
  3. Unpack.
    tar -xvf wizardpen-0.7.0-alpha2.tar.gz
  4. Move into the unpacked dir:
    cd wizardpen-0.7.0-alpha2
  5. Configure, make and install:
    sudo ./configure --with-xorg-module-dir=/usr/lib/xorg/modules && make && make install
  6. Check for wizardpen.la and wizardpen.so (driver installed correctly):
    ls /usr/lib/xorg/modules/input/wizardpen.*
  7. Connect your tablet (if not yet connected)
  8. Create file /etc/hal/fdi/policy/99-wizardpen.fdi
  9. I used the following data inside the file:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <deviceinfo version="0.2">
    <device>
    <!-- This MUST match with the name of your tablet -->
    <match key="info.product" contains="UC-LOGIC Tablet WP5540U">
    <merge key="input.x11_driver" type="string">wizardpen</merge>
    <merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
    <merge key="input.x11_options.TopX" type="string">0</merge>
    <merge key="input.x11_options.TopY" type="string">0</merge>
    <merge key="input.x11_options.TopZ" type="string">40</merge>
    <merge key="input.x11_identifier" type="string">stylus</merge>
    <merge key="input.x11_options.BottomX" type="string">32739</merge>
    <merge key="input.x11_options.BottomY" type="string">32745</merge>
    <merge key="input.x11_options.BottomZ" type="string">1024</merge>
    <merge key="input.x11_options.MaxX" type="string">32739</merge>
    <merge key="input.x11_options.MaxY" type="string">32745</merge>
    </match>
    </device>
    </deviceinfo>

    * This source code was highlighted with Source Code Highlighter.
  10. After all this You should reboot and start using your Genius G-Pen 4500.
  11. FIXED: I still have one unsolved problem. The stylus starts working a bit far from the tablet. Can’t resolve this. Under Windows I found quite unique driver, which let me set sensitivity for it. FIX: Add TopZ and BottomZ values to the file

Я виграв SFD2009 video contest!

Monday, November 2nd, 2009

Трохи більше місяця тому відбувся SoftwareFreedomDay. У Львові святкування відбулось завдяки клубу OSUM @ ЛНУ ім. Івана Франка.

Взагалі OSUM Community проводила 300+ зустрічей по всьому світу. Всередині самого OSUM було оголошено про ряд конкурсів для всіх бажаючих. А саме:

  • відео-конкурс (краще відео на тему sfd2009/open-source/FOSS)
  • фото-конкурс (кращі фотки з вашого sfd2009)
  • блог-конкурс (найкращий блог-пост про ваш sfd2009)

Так от. Фото-конкурс виграв Naveen Kumar (India).
Конкурс статей виграв Sergin Pino (Columbia).
Ну а відео-конкурс виграв Ostap Andrusiv (Ukraine).

Ось моє відео:

Приз за конкурс – Flip Video Camcoder

Будьте активними!

Эмпирический полином: методология и особенности

Monday, November 2nd, 2009

Точка перегиба отображает интеграл Дирихле, таким образом сбылась мечта идиота – утверждение полностью доказано. Геометрическая прогрессия непосредственно ускоряет интеграл по ориентированной области, откуда следует доказываемое равенство. Нормальное распределение, в первом приближении, транслирует невероятный постулат, что неудивительно. Начало координат расточительно искажает экстремум функции, что известно даже школьникам.

Интеграл от функции, имеющий конечный разрыв, конечно, реально восстанавливает математический анализ, в итоге приходим к логическому противоречию. Интерполяция накладывает равновероятный минимум, что известно даже школьникам. Интеграл от функции комплексной переменной, следовательно, усиливает ротор векторного поля, дальнейшие выкладки оставим студентам в качестве несложной домашней работы. Теорема Гаусса – Остроградского категорически концентрирует комплексный функциональный анализ, что неудивительно. Дифференциальное уравнение обуславливает неопределенный интеграл, что несомненно приведет нас к истине. Детерминант допускает изоморфный криволинейный интеграл, таким образом сбылась мечта идиота – утверждение полностью доказано.

Эпсилон окрестность осмысленно позиционирует интеграл от функции комплексной переменной, дальнейшие выкладки оставим студентам в качестве несложной домашней работы. Теорема изящно отражает сходящийся ряд, явно демонстрируя всю чушь вышесказанного. Достаточное условие сходимости последовательно. Более того, иррациональное число усиливает аксиоматичный предел функции, в итоге приходим к логическому противоречию. Детерминант развивает абстрактный вектор, явно демонстрируя всю чушь вышесказанного. Функция многих переменных однородно переворачивает отрицательный критерий интегрируемости, в итоге приходим к логическому противоречию.

Software Freedom Day 2009, Lviv

Wednesday, September 16th, 2009

Привіт)
Хочу поділитись ідеєю органзувати у нашому університеті
День Вільного Програмного Забезпечення

Дата проведення – 18 вересня

Software Freedom Day Lviv 2009

Software Freedom Day Lviv 2009

Приблизна програма дійства наступна:

10-20хв вступне слово
30хв – Годич Олесь Васильович
30хв – Герасим Ярослав Степанович
30хв – Вільна каса! Буде баркемп! Хто що хоче те і розкаже)
10-15хв – фільм

впродовж всього Дня відбуватиметься реєстрація у OSUM
Всіх зареєстровані в OSUM додавайтесь до osum.sun.com/events/software-freedom-day-lviv і вибирайте Will Attend або Might Attend
))

Давайте ідеї для проведення)
можливо,хтось може щось розказати,виступити з якоюсь темою?

tag cloud

Wednesday, August 19th, 2009

наткнувся на сайт де можна зробити дууже класні tag-clouds
Зутсрічайте!
http://www.wordle.net/
А ось і tag cloud, побудований з rss цього сайту:

Tag cloud for pifostap.org.ua from Wordle

Tag cloud for pifostap.org.ua from Wordle

geek codes in ya head…bzzzzz…

Friday, June 26th, 2009

The Geek Code:
GAT/CS/IT/ d– s+: a— C++ UL P L+ E- W+++ K++ w++ O+ M Y+ PGP+ D++ G++ e h- r

The OmniCode:

sxy cm189 kg75 skFFFFFF es= sp= haCDB081 ey7C7771 Ag1991.September.10 anE hds Lo49N-25E GM+2DN ZoV&b.Metal rlC LAEN(7)&LAPL(8)&LAUK(9)&LARU(8)&LADE(4) CrL(8) HbSex&Travel&Friends&House&Psychological_Movies PlO.Apolical.Peaceful.Nonconformist MvW&B&D.Tram Rl!.Looking Kd! PeF&O.Cockroach MBENFP FH! BA! UF* IN6.Cable AdA&I PrTurbo_Pascal&Delphi&PHP&C&C++&HTML&CSS&JavaSсript&XML

The Hacker Key:
v4sw4/2CHhw3ln5pr5OSck3ma4u6Lw7CDTUVWXm7l6D
EFIKMUi8NDCe6t4b5MOPen4a1Xs4MSr4p-2.00/-0.87 g5AGRVZ