Thursday, October 28, 2010

FOSS Presentation in HCT!

The presentation will be on
Saturday, 
30 October 2010, 
12 pm
in the Auditorium.

please Attend

Tuesday, October 19, 2010

Joined FOSS Group!

Yesterday I've met Ms. Asma AL Marhooby to inquire about the Free Open Source Software Group. I got so interested when she was talking about the activities the group would implement. Actually I found that very useful for programmers who want to improve their skills. The main thing is that the group will be concerned in practicing, discussions, and any sort of activities on Open Source softwares.

She gave me a set of hot headlines about that: for instance, we eventually may make our own Open Source software, isn't that interesting!? ^^
I'm so excited, my favorite word recently XD!

ummmmm, yea, but still students who joined the group not allowing the activities to get started, we still need some more members having skills in programming so that we can start.

Not forcing anyone XD, but anyhow, when feel like joining the FOSS group, go to room N238 and talk to Ms. Asma AL Marhooby.

Good luck

Sunday, October 17, 2010

A class in HCT!

I hate it, I hate it, I hate it. I hate when somebody doesn't make any react when people talk to him/her. I might be so so so angry if it is happening in front of me.

Today, and days before, the professor was asking some students, and in a way or another, when they were talking and laughing during all long the class, suddenly they got dumb. Yes, I'm upset of this kind of things. WHAT A SHAME! Yea I mean it! If you are talking in class, then why are you so silent when the professor asks? is that what you do with all people? God, what were they thinking? we are COOL?! My point is, whether you shut up during lesson, or you be active. That's it. Otherwise you step out of it as a whole. It wasn't any kind of a hard question or whatever, they just didn't want to answer him. Why? I may ask them someday.

Sorry for my words but I'm really depressed of that students.

Oh, let me take a breath!..........

ok that's all.

Friday, October 15, 2010

Counter-simple Java programm [Open Source]

Hello,
I wrote a code today, I was trying to do something I never did. Well, it's not that impressive but I'm happy I did it myself XD

take a look:

//October 15 2010 Friday
//5:26 pm
//by:Liberty
//www.hctlife.com
/* **************** */

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class test extends JFrame {
    private JButton button;
    private JLabel label;
    int i=0;
   
    public test(){
        super("Counter");
       
        Container container=getContentPane();
        container.setLayout(new FlowLayout() );
       
        button=new JButton("Click");
        container.add(button);
       
        label=new JLabel("count : 0");
        container.add(label);
       
        ButtonHandler handler=new ButtonHandler();
        button.addActionListener(handler);
       
        setSize(200,70);
        setVisible(true);
        setLocation(100,100);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
   
    public static void main (String args []){
        test app=new test();
    }
   
    private class ButtonHandler implements ActionListener{
        public void actionPerformed (ActionEvent event){
            i++;
            label.setText("count : "+ i);
       
        }
    }
}

That's it.

Monday, October 11, 2010

GUI classes really started! (excited :D)

Today I had the first class in GUI programming. I had this course begun before, but today was the real go. Previous classes were only theoretical and, for sure, boring! but GUIs' is just exciting. I'm so excited ^^

This was the first program we had:

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Login extends JFrame {
private JLabel uid,pwd;
private JTextField tuid;
private JPasswordField tpwd;
private JButton bok;

public Login() {
super ("Windows Login");

Container container = getContentPane();
container.setLayout(new FlowLayout() );

uid = new JLabel ("User ID");
container.add(uid);

tuid = new JTextField(10);
container.add(tuid);

pwd = new JLabel ("Password");
container.add(pwd);

tpwd = new JPasswordField(10);
container.add(tpwd);

bok = new JButton ("Login");
container.add(bok);

ButtonHandler handler=new ButtonHandler();
bok.addActionListener(handler);

setSize(400,100);
setVisible(true);
}

public static void main (String args [] ) {
Login application=new Login();

application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}

private class ButtonHandler implements ActionListener{
public void actionPerformed (ActionEvent event){

String msg;

if ( (tuid.getText().equals("admin") ) && (tpwd.getText().equals("hct") ) )
{
msg="Login Successful";
}
else
{
msg="Login Failed";
}
JOptionPane.showMessageDialog(null,msg);
}

}
}

It's not too long as some students looked at it, it's just the way it is! <-- anyone get the point?? no problem.
I'm looking forward for further classes, I think they're gonna be more and more exciting, can't wait XD.
Mr. Anand is a good teacher. I like the way he teaches. Hope I could him teaching me next semester@@

Anyway, see you later :)

Thursday, October 7, 2010

Ambitious HCT Programmer

Came from Salalah to HCT this semester for Bachelor Degree. I'm staying in Muscat only till summer semester, so I'll do my best to gain as much as possible of knowledge in Programming this year. Wish me luck !

And this is enough as the first post in the Blog.


good luck for all :>