I fight 3 days to solve captcha problem in Drupal. After enabled Image Captcha in modules menu I discover that captcha did not render image. After some small investigation i found that image is rendered but browser cannot read it. After I wrote image to disk, I opened it with IrfanView and IrfanView showed me correct image. At this point i knew that there is something wrong with image header. My next step was to download some free hex editor so I can looked at image header and …….. I discovered that in my image there is some extra bytes at the beginnig of file and it was: EF BB BF. Some small research with google and voila. The EF BB BF was from file encoding. My index.php encoding was UTF8 so I have to change it to UTF8 without BOM. After 3 days fighting, 10s and my captcha start working.
Problem get back. Now I know that every php script in drupal have to be in UTF without BOM.
I found sh script that helped me:
find -type f|while read file;do [ "`head -c3 -- "$file"`" == $'\xef\xbb\xbf' ] && echo "found BOM in: $file";done
Yes, I create a new page:
This page belong to my father company. I will not cheat you, this template is not my ( I’m not designer, so I bought it). I paid about 200$ but it was worth it. Everyone was happy from this page especially from this three small buddies. Backend was created on Drupal 6, with a few modules. From day to day my knowledge about Drupal is bigger, and this is good because in near time I will have to create some pages on it.
So this is one of my first scripts written in AS3. Sorry I point you to the swf directly but I’dont have time to do it right ;(. The script is very easy, some Action onEnterFrame, few filters, and Free Matrix font I find on the web.
For now I create this for my self, but who now, what I will do with this in the future. BTW, if you find better “matrix” in web, let me know.
“Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.”
well this was some task which lot of begin (and advanced programmers have some problems), so here is Actionscript implementation:
for (var i:int=1; i<101; i++)
from now on , I’m one of two Gaia support forum, moderators but first Gaia Guru moderator
beware Gaia users
Thanks to Steven Gaia Flash Framework Owner.
So this is the first thing about what I was thinking when I get up at 4:00 am. I, my boss and my supervisor going to our client 400km. Our mission is simple : to make our client feeling better ( because our productivity is about 50% ) so our trip is not really to make some progress in application but to make happy customer. But let’s get back to beginning, getting up at 4 am is just #$%*!&* and I can do like this all day. Ok enough of this non-sens I will write some actionscirpt code in near future ( maybe I will put online some of my experiments).
This is first post in my new blog ( the last one die in natural dead). I decide once again to share with my knowledge ;P – let see how it will go on. From now on I will have to make some blog configuration but as soon I finish I will post some goodies