N8 for study, A1200 for devel!

I still researching about linux for symbian phones,but i can’t stop developing Aurora in a real hardware. So i took my old-but-good Motorola A1200 and resurrected it! Right now i’m building an aurora-image for it! Let’s hope it’ll work! See ya!

Advertisements
Posted in Uncategorized | Leave a comment

Bye Nokia N900! Hi Nokia N8!

Hey People!

Unfortunately i sent my Nokia N900 to a warranty center and they exchanged it  by a Nokia N8. I’m thinking in exchange it by a Nokia N9,that is,at least,MeeGo-based. Or I can try to port GNU/Linux to it,will be a very hard task,and a very nice opportunity for learning,i’ll take ideas from the Siemens SX1 Linux Project.  It uses a modified uBoot image.

I already did create a IRC channel (#n8linuxfor it. Not sure if this project will survive! Let’s hope so!

See ya!

Posted in C++, Embedded Linux, N900, Uncategorized | Leave a comment

Aurora 0.1 Released

Hi all. I’m glad to tell you: Aurora 0.1 has just released! In it’s first version,it has just one functionality,the only one everyone need in a phone,the telephony feature. Aurora came to be a client for the freesmartphone.org architecture. We hope(at least,I hope) that Aurora,someday,turns a full-smartphone-featured system. Aurora is not just a GUI,just a CLIENT,it’s whole a linux-based distribution. Settings App hasn’t come yet in that release,but in next,you’ll see it working (hopefully) 🙂

In the same day we had released the first Aurora version,we did choose another date(in this case,month) to the next release of Aurora,the 2011.12. We should:

  • Include Settings Application
  • Rewrite aurora-daemon in Qt/C++
  • Switch from oe-class to oe-core

That’s all. As I already did say,if can provide any help,just tell us!

See you!

Posted in Aurora, C++, Embedded Linux | Leave a comment

C++ – Count how much letters the phrase has

Hi people! This can help you when doing a exercise! This little bit of code will help you to find a letter in a phrase. And when find it,increase a counter. This will help a lot when studying C++.

    for(int i = 0; i<strlen(phrase); i++) {
        if(letter == phrase[i]) cont = cont + 1;
    }

Let me explain it. When i increases,the if will check if the letter you did enter is the same as ther phrase’s letter. If it is,increase the cont counter,else,increase the i counter.

Simple and Useful! See you soon!

Posted in Uncategorized | Leave a comment

Classes em C++,Hello World!

Oi pessoal,voltei meus estudos ao C++,muito tempo sem praticar 🙂

Bom,vamos começar com um classico Hello-World:

#include <iostream> // A biblioteca padrão do C++
using namespace std; // Definir namespace padrão para C++  

int main() {
    cout << "Oi pessoal!" << "\n"; // Coloca na tela a frase entre aspas
    return 0;
}

Como visto,esse programa vai imprimir na tela a frase Oi pessoal! e depois sair do programa. Simples. Agora vamos fazer a mesma função usando o conceito de classes:

#include <iostream>
using namespace std;


class Classe1
{
public:
    void escrevaIsso(char texto[128]);
};

void Classe1::escrevaIsso(char texto[]) {
    cout << "Função escrevaIsso: " << texto << "\n";
}

int main() {
    Classe1 teste;
    teste.escrevaIsso("Oi Amigos");
    return 0;
}

Isso é muito simples,primeiro definimos o que vai ter na classe,depois colocamos e definimos a sua função.

Até a proxima pessoal!

Posted in C++, Me!, Portuguese | Leave a comment

Aoura – Web-Browser for Aurora

Hi people! I started a Web Browser called Aoura for the Aurora Distribution! It’s QtQml WebKit based,but i’m not sure if the Aurora team will like it,it’s quite simple,but i hope it turns big in the future! Here i show some screenshots about it!


Posted in Aurora, Embedded Linux | Leave a comment

Vala Helloworld!

Vala HelloWorld!

Here i want to show a simple HelloWorld-based app written in Vala!
 

Hi Everyone! I’m starting my studies in Vala programming language,and i want to tell how i’m going 🙂 So i start posting a simple helloworld,that can be extended to a great Vala example 🙂

First of all,in Debian-based GNU/Linux distribution,install Vala!

$ sudo apt-get install valac vala-utils vala-doc valac-dbg

Now we start making a main.vala file!

class MyFirst.HelloWorld : GLib.Object {

    public static int main(string[] args) {

        stdout.printf("Hello, World\n");

        return 0;
    }
}

Save it,compile and run!

$ valac main.vala
$ ./main.vala
  Hello, World

Why we don’t make it a bit more interesting? So:

class MyFirst : GLib.Object {
  public string ask_your_name() {
    stdout.printf("Please,enter a text,it'll be repeated: ");
    string input = stdin.read_line();
    return input;
  }
  public void print_this(string text) {
    stdout.printf(text);
  }
  public static int main(string[] args) {
    MyFirst m_1 = new MyFirst();
    string text = m_1.ask_your_name();
    stdout.printf("\nSee your text repeated now:");
    m_1.print_this(text + "\n");
    return 0;
  }

It really toke a bit more of lines 🙂 Compile it and check!

Thanks! Wait for more tutorials 🙂

See ya!

Posted in Vala | Leave a comment