Sunday, August 7, 2011

Harald Haas: Wireless data from every light bulb



More technical data can be found here.

I will have to try to replicate this using my new Power LEDs and my ATmega microcontroller. Cool stuff.

Sunday, May 8, 2011

ActionScript 3 and Flex 4.5 optimization

Recently I'm spending a lot of time optimizing my face recognition library in ActionScript 3.
Since I've started my adventure with AS couple of years ago FlashPlayer's performance increased a lot, but still it is not enough for calculation intensive tasks. There is also a good news. Many performance issues can by fixed with source code optimizations. Without further ado here are some of my AS3 optimization tips.

  1. Use Vectors instead of Arrays if possible.
  2. If you know length of Vector before you create one in code pass it to Vector constructor.
  3. If you know that length of Vector will be constant then pass true to Vector constructor as second argument making it fixed vector.
  4. When you loop through Vector elements use variable of uint type. It is faster than int in FlashPlayer 10.2.
  5. When you want acces Vector element like that for example vector[i+1] change it to vector[uint(i+1)].
  6. If it is possible try to do as small number of operations using 2D Vectors by which I mean Vectors accessible like that vector[i][j] they are at least 2x slower then 1D vectors. If for example you are looping through 2D vector then good practice is to assign every vector[i] to local variable and than access value for every "j". By doing that you should see at least 50% performance increase in data access from 2D Vector.
  7. When incrementing value use ++i instead of i++ wherever possible.
  8. Remove all nonessential code from loops.
  9. When operating on uint or int variables whenever possible use bit operators for example instead i*4 use i<<2. More info about bitwise operators.
  10. When you loop through vector elements don't use vector.length in loop condition instead assign this value to local uint variable and use it instead.
  11. When using && or || operators don't mix types like that Number && int or uint || int. Instead if possible use that same type like that int && int or uint || uint it is up to 3,5x faster.
  12. Using nested if statements is faster than using && operators in single if statement.
  13. Assigning variable of type Number to variable of type int or uint is 2x slower than assignments of int to int or uint to uint or even uint to int.
  14. When creating empty Array don't do this like that var arr:Array = new Array() instead do it like that var arr:Array = [] it's faster.
  15. Using switch is about 15% slower on Windows XP and 10% slower on Mac OS X than if else statements. Beware of switches in performance-critical code!


    I hope those tips will help you with you optimizations.

Thursday, May 5, 2011

Friday, January 21, 2011

AIRTrans - friendly translator living on your desktop

If you often find yourself translating text to and from English here is an app for you.

AIRTrans:

1. Works on Windows, Mac OS X and Linux.
2. Supports over 40 languages.
3. Translates to and from any of over 40 languages.
4. Reads English text aloud.
5. Takes small space on your screen.
6. User Interface colors are customizable
7. Can remember last position on screen and app window size so you don't have to move it to that spot where you want it to be every time you start app.
8. AutoStart functionality
9. Can by resized by dragging one of bottom window corners.





You can download it from here.
Mirror 1 -Softpedia
Mirror 2 - download.cnet.com

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

Sunday, January 16, 2011

Saturday, November 27, 2010

Saturday, October 30, 2010

Flex error: Unable to transcode swf with embedded fonts

Today I wanted to create swf file in Flash CS5 with embedded fonts and then I wanted to use this file in Flex 4.

After writing the following code in Flex:

[Embed(source="./assets/fonts/fonts.swf", fontName="Minion Pro")]
private var minionProRegular:Class;


I saw this error:

Multiple markers at this line:
-Unable to transcode ./assets/fonts/fonts.swf.
-font 'Minion Pro' with normal weight and regular style not found

The reason of this error message were the text boxes contained within the swf file that contains embedded fonts.

Solution:
Remove visual objects from Flash CS5 file with embedded fonts.

UPDATE:
More information about this problem can be found here

Wednesday, October 13, 2010

My photo as one of editors picks of photo.net

I just found out that one of my pictures was chosen as one of the best in the year 2009 in the night photography category on the site photo.net :).

Opole_at_ night-Green Bridge

Saturday, August 28, 2010

Face Recognition Library in ActionScript 3 for Flex

Now there's a way to identify persone base on face image using Adobe Flex. Open source face recognition library is now available. It is itended for use in Flex applications which are using at least Adobe Flex 3.5 SDK. Library uses Eigenface method of face recognition which can get to 95% recognition rate.

Video of simple example using this library:


Live demo of simple example using this library
Library project page on google code

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

Friday, January 22, 2010

Tuesday, December 29, 2009

I won :)

As a winer of Scott's Kelby photowalk in Cork, Ireland just recieved 3th volume of Scott's digital photography book. In comparision to first and second part this one is a little more advanced and as all Scott's books worth reading.

Monday, June 29, 2009

Koncert grupy Lokalne ocieplenie w Opolu

W dniu 27.06.2009 na Opolskim rynku miał miejsce koncert opolskiej grupy Lokalne ocieplenie.

Piosenka pod tytułem "Więcej nic nie zależy ode mnie".


Poniżej kilka fotografii z koncertu:

Po prawej Basia Beuth-wokal, po lewej Justyna Mihułka-chórki i gitara
Lokalne_ocieplenie_19351
by Oskar Wicha

Jarek Korzonek-perkusja
Lokalne_ocieplenie_19394
by Oskar Wicha

Justyna Mihułka-chórki i gitara akustyczna
Lokalne_ocieplenie_19330
by Oskar Wicha

Po lewej Paweł Kaliciński-gitara akustyczna, po prawej Paweł Apollo -gitara basowa
Lokalne_ocieplenie_19371
by Oskar Wicha

Łukasz Fulneczek-pianino
Lokalne_ocieplenie_19402
by Oskar Wicha

Tuesday, March 31, 2009

Friday, June 27, 2008

SanDisk Extreme III USB 2.0 Reader vs. SanDisk ImageMate CompactFlash Reader/Writer











Kupiwszy nowa karte Sandisk Extreme III myślalem, że zmuszony będe chcąc wykorzystać możliwości karty jeśli chodzi o szybkość odczytu do zakupu czytnika SanDisk Extreme III USB 2.0 Reader mimo iż posiadam już SanDisk ImageMate CompactFlash Reader/Writer po moich testch okazalo sie, że predkość kopiowania zdjeć przy użyciu tych dwóch czytnikow prawie sie nie rózni.Dla SanDisk ImageMate CompactFlash Reader/Writer wynosi ona 16MB/s podczas gdy używając SanDisk Extreme III USB 2.0 Reader 17MB/s.
Tak wiec jesli posiadacie juz czytnik obslugujacy PIO 6 tak jak te dwa opisane powyżej nie musicie kupować SanDisk Extreme III USB 2.0 Reader ponieważ on i tak nie zwiekszy waszych transferów.

Wednesday, March 5, 2008

Seagate FreeAgent Pro

FreeAgentPro_12113-Edit

Seagate FreeAgent Pro został niedawno wybrany przezemnie jako główne narzędzie backupu zdjęć. Jest to chyba najładniejszy dysk jaki kiedykolwiek widzialem. Posiada USB 2.0 ,Firewire 400 i eSATA zapewniajac transfery do 50-60 MB/s. Jak na dysk 3,5" jest cichy. Znana jak i ceniona za jakość swoich produktów firma Seagate daje na niego 5 lat gwarancji.Wystepuje on w wersjach 320GB.500GB,750GB,1000GB czyli 1TB. Podsumowując dysk ten spełnia praktycznie wszelkie oczekiwania jakie moze przed nim stawiać przecietny urzytkownik.
Serdecznie polecam

Thursday, January 10, 2008

Super tanio - programy Adobe dla studentów


* Adobe Acrobat 8 Professional PL - dla Studentów w cenie 175,00 zł
* Adobe Creative Suite 3 Design Premium PL dla Studentów w cenie 329,00 zł
* Adobe Creative Suite 3 Web Premium PL dla Studentów w cenie 329,00 zł
* Adobe Photoshop Extended CS3 PL dla Studentów w cenie 175,00 zł
* Adobe Acrobat 8 Professional PL MAC - dla Studentów w cenie 175,00 zł
* Adobe Creative Suite 3 Design Premium PL MAC dla Studentów w cenie 329,00 zł
* Adobe Creative Suite 3 Web Premium PL MAC dla Studentów w cenie 329,00 zł

Aktualnie progrmay sa dostępne w przedsprzedaży wysylki rozpoczną sie 15.01.2008r. Jeśli komuś wydaje sie to za piekne to ma racje. Programów nie można używać do komercyjnych zastosowań i zakupiona licenicja ważna jest tylko do końca studiów.
Wiecej nformacji na stronie firmy Adobe.