The SIGSEGV that has never occurred!

February 10th, 2010

Some days ago, I found out with an easy problem: make a program that generates a Segmentation Fault! The easiest way I thought was generate a simple buffer overflow and write on a place that it’s not mine!

The thing interesting on this post was that the program I made HAS NEVER FINISHED! and it’s really simple… Let you the code:

int main(void)
{
int i = 0;
int array[1];

while (i < 100)
{
array[i++] = 1;
printf(”%i\n”, i);
}

return 0;
}

So… Did you find out the error?
Read the rest of this entry »

goText: my first XML Service!

January 29th, 2010

Last months on goText, Zydio was playing a lot with Qt and he has made a great application: goText++Desk, it’s awesome now you can use goText from your desktop… Anyway, that’s not all! He also has created an amazing XML system to create simple and advanced services to send SMS.

My today’s post is about how I has migrated the traditional php service to the new format :)

Read the rest of this entry »

PEAR Packages: Captcha on PHP 2

January 21st, 2010

Tonight, I can’t sleep so I decide to continue writing on the blog… Sorry, long time without activity… I had been concerned about CAPTCHA on gotext’s contact page since I write the last post… Well, I forget about it when I was on my holidays on San Bernardo… But the thing is…

I’m gonna explain how to use it because PEAR captcha documentation is not enough at least for me.

This is the image generated with the program

This is the image generated with the program

Read the rest of this entry »

PEAR Packages: Captcha on PHP

October 28th, 2009

At gotext.org, we are asking why don’t we have a Contact Form for users so I decided (after some Bluesman asks :p) to coded it… My first thought was “Oh, I need to work with CAPTCHAS“… But the problem was solved more easier than what I thought!

Read the rest of this entry »

Remembering the Past… my first Topsites script on PHP

October 25th, 2009

Time ago, being more accurate I used to love PHP… It was the first language that I could do everything that I want… In a nasty way, but it was what I thought that would be the best!

So this time, checking folders I found out my best script of my beginings… Or what I thought that was a nice script hehe

Do you know how they work? You can add your website, put a button on your website (that will tell you your position at the rank) and list the best websites on a page.

Those times, I used to hate MySQL… Why? I still don’t know! So I used to save everything on flat text files. In the rar file you can find also the migrated version to MySQL because I had some problems with erasing content of flat files for concurrency things that I didn’t know that they exists hehe

This script was used on a website about Anime: Animeki, that a friend of mine had… And I don’t know anything about anime but I do know about coding, so I helped that way. Why I tell you that? Because on the code you can see some animeki codes.

Sources, here

Well… That’s all folks!

goText: going Social!

October 20th, 2009

Hi people, so long since my last post… Sorry, I was my birthday and I has been busy with parties… This time, I want to talk our news at goTextBluesman has been working a lot with Social Networks: adding support for Twitter and Facebook!

I has worked a little bit to include my put my hand on their scripts and I has created a handler, that is available from gotext.org.

Please take a look, and I really suggest to start using them to update your status on facebook and twitter! :D

More Info:

AccelerateMe: How does acceleration works?

October 5th, 2009

A week ago, I was very confuse about how does the accelerometer works… So I decide to implement a nice, simple and fast PyS60 app to understand how does it works.

The result was a working and decent app, that shows three bars: x-axis, y-axis and z-axis. When you move the cellphone they react and you can see how does they change!

The source code can be downloaded from here

Playing with Symbian C++

September 25th, 2009

Today, I was playing with Symbian C++… I had been creating some Demo apps, to understand the difference to work into Python and Symbian C++

It’s really amazing! PyS60 rulezzz… On the bottom, I give the tutorial link, I want to make at least a simple App that reminds me each 5 minutes that I have some messages pending :) I’m making my first steps… Maybe soon, I can finish it!

The link I follow for the tutorial:
http://developer.symbian.org/wiki/index.php/Going_Beyond_Hello:_A_Tutorial_for_Symbian_C%2B%2B_Applications

Fun: Drilling my Ibook G3

September 22nd, 2009

Two months ago, I was begining a developing course for making a Linux Driver for a Wireless Device (VIA VT6656 USB Dongle) with an amazing hacker as Teacher, Christoph Hellwig. A requisite for doing the course was to have a Linux Computer with Kernel 2.6.30… The day before the course starts the HDD failed, and as you may know the thing gets complicated when the time is running and some sinks over the iBook seems to be UNHEADED!!!

So as everyone should do… That was the result… hehe

The machine is still working, I will upload an image showing soon :D
Bye people!!

PS: Don’t do it!… It really hearts, even when the machine is 10 years old hehe

pyLine: Testing the Rotation Sensor

September 21st, 2009

As you may know, I’m becoming more and more addicted to new technology and when this kind of things start to happened, you try to understand every new piece that appears.

Well… Rotation Sensors are not something new, but it’s my first time having a cell phone that contains one… So, I has decided to code a simple script to test it.

The script is coded on PyS60 (Python for S60), and it’s a simple line that always stays on vertical position :)

Read the rest of this entry »