From JDC 2010 To Nokia Developer Conference

Posted by | Posted in My Works | Posted on 10-03-2010

بسم الله الرحمن الرحيم

عوده مرى آخرى الي التدوين ” الي انا حاسس أني مش ناجح فيه ” يمكن ألاقي فيه الي مش عارفه الاقيه في اي حاجه تانيه

عاوز الاقي أي حاجه تنسيني الملل والزهق والعصبيه الي أنا فيها وتاعب بيها كل الي حوليا

علشان كده ظبطوني كومنات علشان أحس أني بعمل حاجه :D

المهم علشان منغرجش من جو الموضوع

اليومين الي فاتوا حضرت مؤتمرين هما اول واهم مؤتمرين في حياتي

لأنهم خاصين بدراستي وأهتمامي

الاول هو

Java Developer Conference

Java Developer Conference

كان بصراحه يوم رايق جدا وأستفدت فيه بحاجات كتيره جدا

لدرجه ان المعلومات كلها دخلت في بعض ومش فاكر حاجه :)

بس بصراحه كان جميل جميل جميل

وأكتر نقطين أستفدت منهم هما

javaFx & Mashups in the JavaServer Faces World

ودي كانت شويه صور ليا أنا و يحيى رجائي  MRXprt

والثاني هو

Nokia Conference

بس ده كان ثلاث أيام انا محضرتش أول يوم

وهو اصلا كان بتاع بيزنس

أما اليوم التاني والتالت حضرتهم وكانوا مفيدين جدا

أتكلموا في اليوم التاني عن تقنيه

Web Runtime Widgets

وبصراحه هيا تقنيه جميله جدا

واليوم الثالث تكلموا عن لغه برمجه

QT

وبصراحه أنبهرت جدا بالتقنيتين وبالي فيهم لدرجه أني سطبت

SDK & Creator

بتاعهم على الجهاز على طول

بس مش معنى كده اني هسيب الجافا ده صعب

أنا بس ببص لمجرد العلم بالشيء

بس أنا أستغربت من حاجه أنهم بيحاولوا يلغوا حاجه أسمها جافا من نوكيا

وكل برامجهم هتبقى سمبين أو كيوت

وأحنا هنشحت ولا ايه  :)

المهم كانوا يومين رائعين وده شويه صور برده منهم

Conta

Posted by | Posted in My Works | Posted on 03-11-2009

بسم الله الرحمن الرحيم

بعد طول انقطاع عدت

لأستكمال تدويني

مع أني حاسس أني مدون فاشل

بس هكمل

ده عباره عن فيديوا عرض للمشروع بتاعي

ويا ريت كل واحد يسيب تعليق عنه

هو مش مشروع كبير وده مش أخره في أفكار تانيه

كتيره

أي حد عنده فكره ممكن يحطها

ونقول راينا وده هو المشروع

لا يمكن قراءه “general number” بواسطه الجافا في هواتف s40

Posted by | Posted in J2me | Posted on 01-08-2009

بسم الله الرحمن الرحيم

هناك مشكله هو عدم قراءه الجافا للأرقام التي سجلت على أنها

General

في هواتف

Nokia S40

أي أن أي رقم مسجل

General

لا يتم قراءته نهائيا بواسطه الجافا

أتبع الخطوات الاتيه  لكي تكون المشكله واضحه

The described problem can be reproduced as follows:

  1. By using a Series 40 device, browse for the native Phonebook application(’Menu’ -> ‘Contacts’).
  2. Insert a new contact to the native Phonebook application.
  3. Insert General phone number field for the new contact (’Options’ -> ‘Add detail’ -> ‘Number’ -> ‘General’) and insert a number into the field.
  4. Insert other phone number fields (’Mobile’, ‘Home’, etc.) for the new contact.
  5. Implement the test MIDlet using the following code:

 import java.util.Enumeration;
 import javax.microedition.midlet.MIDlet;
 import javax.microedition.lcdui.*;
 import javax.microedition.pim.*;
 
 public class ContactGeneralNumber extends MIDlet implements CommandListener {
 
    private Form f;
    private Display d;
    private Command exitCmd;
    private Command searchCmd;
 
    public ContactGeneralNumber() {
 
        f = new Form("Phone number read test");
 
        // Adding command buttons
        searchCmd = new Command("Search", Command.OK, 0);
        exitCmd = new Command("Exit", Command.EXIT, 1);
        f.addCommand(searchCmd);
        f.addCommand(exitCmd);
 
        f.setCommandListener(this);
        d = d.getDisplay(this);
        d.setCurrent(f);
    }
 
    public void commandAction(Command cmd, Displayable dable) {
        if (cmd == exitCmd) {
            notifyDestroyed();
        } else if (cmd == searchCmd) {
            try {
                searchContact();
            } catch (PIMException ex) {
                ex.printStackTrace();
                f.append("Error: " +ex.toString());
            }
        }
    }
 
 /* Search the added contact, count its phone number fields, access all the
 fields, and put their content visible on the Form. */
 
    private void searchContact() throws PIMException {
 
        PIM pim = PIM.getInstance();
        PIMList list = pim.openPIMList(PIM.CONTACT_LIST, PIM.READ_ONLY);
        Enumeration en = list.items();
        while (en.hasMoreElements()) {
            Contact contact = (Contact) en.nextElement();
            int count = contact.countValues(Contact.TEL);
            for (int index = 0; index < count; index++) {
                f.append("" + index + " :");
                String value = contact.getString(Contact.TEL, index);
                f.append("" + value + "\n");
                d.setCurrent(f);
            }
        }
    }
 
    public void startApp() {
 
    }
 
    public void pauseApp() {
 
    }
 
    public void destroyApp(boolean unconditional) {
 
    }
 }

6. Install and launch the test MIDlet and press ‘Search’. The MIDlet returns data for all the other fields but not for the General phone number field.

Solution

No solution exists.

 

Split String in J2me

Posted by | Posted in J2me | Posted on 01-08-2009

بسم الله الرحمن الرحيم

Hi all

we are all face  a big  problem  it is  we can`t  split the the String in j2me

Because J2me did`t have any StringTekonizer

so I now have amethod have the same jop of StringTekonizer Working in j2me

the method

 
public String[] split(String str, String delimiter) {
 
//Iterate through the text to get the count of occurences
//This is done since we do not know how many times the
//delimitter occurs in the given string
//--------------------------------------------------//
 
        int delimiterCount = 0;
        int index;
        String tmpStr = str;
 
        String[] splittedList;
 
        while ((index = tmpStr.indexOf(delimiter)) != -1) {
 
            tmpStr = tmpStr.substring(index + delimiter.length());
            delimiterCount++;
        }
 
        splittedList = new String[delimiterCount];
 
        /*-----------------------------------------------*/
 
        /*-----------------------------------------------*/
 
//-----------------------------------------------//
        index = 0;
        int counter = 0;
        tmpStr = str;
 
        while ((index = tmpStr.indexOf(delimiter)) != -1) {
 
            int nextIndex = tmpStr.indexOf(delimiter, index + 1);
 
            if (nextIndex != -1) {
                splittedList[counter++] = tmpStr.substring(index + delimiter.length(), nextIndex);
                tmpStr = tmpStr.substring(nextIndex);
 
            } else {
                splittedList[counter++] = tmpStr.substring(index + delimiter.length());
                tmpStr = tmpStr.substring(index + 1);
            }
        }
 
        return splittedList ;
}

تنصيب OpenSolaris on Sun xVM VirtualBox

Posted by | Posted in Solaris | Posted on 30-07-2009

بسم الله الرحمن الرحيم

دي أول تدوينه ليا هقوم فيها بتسطيب

OpenSolaris

على

Sun xVM VirtualBox

ويمكنكم تحميل ال

OpenSolaris

من اللينك ده

http://opensolaris.org/os/downloads/

وهنا هنلاقي الشرح

الجزء الاول

الجزء الثاني

ومستني تعليقاتكم ونقدكم

بس براحه عليا شويه في النقد أنن لسه جديد في التدوين

:)

Hi Elkady Thinking

Posted by | Posted in My Works | Posted on 08-05-2009

بسم الله الرحمن الرحيم

بأزن الله دي هتكون أول تجربه ليا في التدوين

الفكره جت أما انا حولت أكتب الحجات الي بتقابلني والي بعرفها في مكان معين

فاشار ليا أحد الاصدقاء بالتدوين

حجزت دومين من حوالي اسبوع وركب عليه نسخه الورد بريس 2.7

وبازن الله هبدأ على طول بكتابه المواضيع اما بالنسبه للمواضيع حاليا

فأنا هتكلم عن جزئين اتنين

الاول هي برمجه الموبيل بالجافا  أو ما يعرف بأسم

J2ME

والثاني عن نظام التشغيل المعروف

Solaris & OpenSolaris

أي تعليقات عن الفكره أو  أي أقتراحات

يا ريت تفودني بيها

وشكرا

Mohamed Elkady