sobota, 3 marca 2012

Inkscape - 3D Flag

I was trying to create a nice looking Flag. I came across following post:
http://www.hesido.com/base.php?page=tutorials&sub=wavingflag

I've tried to achieve similar effect in Inkscape. Here's how to do this:

1. Create a new image and draw a flag (tutorial: http://tavmjong.free.fr/INKSCAPE/MANUAL/html/AShortExample.html)
2. Use calligraphy tool and draw few black thick lines across the flag

3. Add blur (5.0) to soften the lines and group them together, then duplicate lines (Ctrl+D) and change color of new lines to white. Also move the white lines a little bit, this will create a nice shadow effect. At the end, use 'group' on all the lines.

4. Now select the flag and create duplicate (Ctrl+D), this should create a copy of the flag in front of the lines


5. Now select Object - Mask - Set

6. If you feel that the lines are to strong you can adjust blur and opacity to soften them a little
7. Select all (flag and shadow lines) and 'group' them together. Now select Filters - Distort - Ripple

8. Now select Filters - Edit Filter... option. Change type to Fractal Noise, Base Frequency - around 0.03 for upper and 0.0 for lower one, Octaves: 2, Seed: 0. Play with the options to achieve most satisfactory result.


9. You should end up with something similar to this


It all looks better on flags that are not mostly white. Below is some other example I've made :]


piątek, 30 października 2009

tapestry5 - @SessionState - ClassCastException

I've created a simple enum and used it as a session state object but after few calls to that object tapestry was throwing me a ClassCastException, sth like:
my.project.pages.MyEnum cannot be cast to my.project.pages.MyEnum

I was trying to create POJO and put my new enum inside but it didn't help.

Finally it turns out that it was because my enum was inside pages package (http://tapestry.formos.com/nightly/tapestry5/faq/general.html#classcastexception). After moving my new enum to different package everything seemed to work correctly

poniedziałek, 27 lipca 2009

środa, 25 lutego 2009

Xenode Browser Sandbox

Idealne rozwiązanie dla każdego kto zajmuje się projektowaniem stron internetowych. Po wejściu na stronę http://www.xenocode.com/browsers/ mamy możliwość pobrania każdej z wiodących przeglądarek internetowych a następnie uruchomienia ich bezpośrednio na naszym komputerze bez potrzeby instalacji.

Xenocode WebApp technology allows Internet Explorer 8, 7, 6, Firefox, Safari, Opera, and Chrome to run simultaneously on any version of Windows, directly from the web.

sobota, 21 lutego 2009

igoogle - pajacyk

Jeżeli ktoś korzysta igoogle to polecam gadżet przpominający o kliknięciu w pajacyka znajdujący się pod tym linkiem http://www.google.com/ig/adde?moduleurl=http://adamwtw.googlepages.com/pajacyk.xml&source=imag
Miłego klikania.

wtorek, 17 lutego 2009

tapestry 5 - run-jetty-run - NoClassDefFoundError

When I tried to run tapestry 5 tutorial application under Eclipse using run-jetty-run plugin I had following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServletRequest
at runjettyrun.Bootstrap.main(Bootstrap.java:60)

This is because of the version of run-jetty-run plugin I'm using doesn't have servlet-api jar included. There is a patchto fix this issue. In my case I haven't used the patch but I've added following dependecy to pom.xml:
<dependency>
   <groupId>jetty</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.5-6.0.2</version>
</dependency>

and now I works fine.