.: Most Read :.
-
Selepas beberapa kali merenung, mendiamkan diri, menyesuaikan diri dengan sebahagian 'hidup' baru, finally baru dapat kekuatan to a...
-
Berapa ramai dah pernah rasa nasi ayam penyet? Mula-mula memang agak skeptikal sikit dengan ayam penyet... ingatkan macam mana la rupa dan ...
-
"EH awak berisi la sekarang ni.." - X Oh I wish I can reduce these fats by just pressing CTRL + ALT + DEL or Eraser tool in Pho...
-
Last Sunday, I went to visits my friend who's giving birth to a baby boy in PPUM. Since it is a pre-gov hospital, I need to wait until ...
-
Siapa sangka balik keja terus diberi keringat untuk bawak mak and ayah pergi ikea. Alhamdulillah... Dapat jugak penuhi hajat kitorg nak bawa...
Saturday, January 10, 2015
Final month for semester 2 2014/2015
Thursday, January 23, 2014
Lenovo The New X1 Carbon featuring Intel® Core™ i7 processor
While browsing on Twitter this morning, I have found this advertisement from Lenovo. It is about their new Ultrabook. What attracts me at the first place is their statement.. ".. world's lightest 14" ultrabook".
Then I take a look into the link. It shows the weight of this ultrabook starts at 1.28kg. When I look into the thickness, I think Macbook Air is thinner than what Lenovo's offer.
I search the basic specification of Macbook Air on Google then i came into the following analysis and conclusion…
| Lenovo The New X1 Carbon featuring Intel® Core™ i7 processor | Apple MacBook Air (11-inch, 2013) | Apple MacBook Air (13-inch, 2013) | |
| Weight | 1.28kg | 1.08kg | 1.34kg |
| Size | 14” | 11” | 13” |
Information on Macbook Air weight is from http://www.theverge.com/
Yes, Lenovo maybe correct on their statement says it is a lightest ultrabook in the world… only for 14” league.
Friday, November 08, 2013
pthread and C program in Linux (Basic)
This example is suitable for those who are very new to pthread in C in Linux. You will learn on how to use pthread in C program. There is an additional code to be included during compiling the source code.
REQUIREMENT
- Linux Machine
- gcc
- pthread header file
Pthread header file is a standard file. You can just download from the internet from any sources available. (the file name is usually pthread.h)
STEPS
create a new directory, pthreadProgram
| mkdir pthreadProgram |
Go into the directory that you have created.
| cd pthreadProgram |
Place your downloaded pthread header file (pthread.h) into this directory.
now, create a new c file
| vi tprog1.c |
Write down the following codes:
| //Program Name: tprog1 //PThread #include <pthread.h> #include <stdio.h> #define NUM_THREADS 5 void *PrintHello(void *threadid) { long tid; tid = (long)threadid; printf("Hello World! It's me, thread #%ld!\n", tid); pthread_exit(NULL); } int main (int argc, char *argv[]) { pthread_t threads[NUM_THREADS]; int rc; long t; for(t=0; t<NUM_THREADS; t++){ printf("In main: creating thread %ld\n", t); rc = pthread_create(&threads[t], NULL, PrintHello, (void *)t); if (rc){ printf("ERROR; return code from pthread_create() is %d\n", rc); } } /* Last thing that main() should do */ pthread_exit(NULL); } |
Done with writing the source code.
Press Esc
Then :wq [write and quit vi tool]
In this example, we have fix the number of threads to be 5. You can adjust the
To compile, you can do this in many ways. For this time, we are going to use direct compilation method.
| gcc -pthread tprog1.c -o tprog1 |
Note that you need to include “-pthread” option during compiling the program.
If there is no error, you may now execute your program
| ./tprog1 |
Thursday, November 07, 2013
Tutorial: Simple C in Linux (Ubuntu)
Create, and compile simple C file on Linux terminal.
Requirement:
You have updated and upgraded your Linux OS.
| sudo apt-get update sudo apt-get upgrade |
Installed gcc
| sudo apt-get install gcc |
Installed make (optional)
| sudo apt-get install make |
Steps:
Login to your Linux machine.
| vi sampleC.c |
Press I to enter Insert mode.
Type the following C source code:
| #include<stdio.h> void main(void) {
} |
Done with writing the source code.
Press Esc
Then :wq [write and quit vi tool]
To compile, you can do this in many ways;
Method 1 – direct compilation
| gcc sampleC.c -o sampleC |
or
Method 2 – compile using makefile
create a new make file
vi sampleMakefile
Type the following commands in makefile:
| #applicationFile all: sampleC #.o file sampleC: sampleC.o gcc -o sampleC.o #.c file sampleC.o: sampleC.c gcc -o sampleC.c |
Done with writing the commands in makefile.
Note:
You may replace “sampleC” by using your own filename.
# is used for command.
Press Esc
Then :wq [write and quit vi tool]
Execute the make file
| make -f sampleMakefile |
Make sure there is no error.
Now, your program is ready to be executed.
| ./sampleC |
Sample output:
| Hello world |
Sunday, July 21, 2013
Farmville on Mac
Wednesday, July 17, 2013
akhirnya.... 'udara' saya sampai juga
Thursday, April 12, 2012
Morning call
phone is ringing
Caller: "How are you doing?" bla.. bla... bla... "I want you to study about scientific LINUX"... "probably with MPI"
Of course no problem... my former supervisor who's going to be my future-colleague! I am glad you did tell me earlier.
Sunday, January 01, 2012
New Facebook look for 2012
Woot2
I have added the banner on my profile. Now I noticed one of the benefits of this FB’s new look. I guess this innovation is inspired by FBian too. WHY? Sebab Before this I still remember ada FB user yang sangat creative by filling the 5 Slots at the Top (I forgot its name). they are willing crop pic one by one, then upload. SO now, FB has provide us with a new feature name Cover Photo (WHich I consider this as the ‘Header’ for our profile page). Except the image is automatically enlarged to fit the frame and drag down the quality of the image. :( Does anyone know what is the actual size of the Cover Photo frame (pixel). Do share with me please.
But overall.. I love this new feature!
Thanks Facebook!
Monday, November 21, 2011
Easy Way to Customize Your Website
Hey hey hey… senangnya nak buat website sekarang ni… and bukan senang Microsoft nak bagi free software. hahaha! anyway… if you are not familiar or newbie or no time to look out the details in customizing a website, you should try this software, WebMatrix by Microsoft.
Only 3 steps and your website will be published!
Step 1: Create your website
Download the installer (MS WebMatrix) from here. Install on your computer.
Download any kind of free web applications such as WordPress, Joomla!.
Step 2: Customize your website
Start using the application. Click click CLICK. <—Edit your files, managing database, modify server settings. Owh you will feel so into a web developer.
Step 3: Publish your website
Ready to publish! You can do it directly from WebMatrix.
Anyone have tried it on Blogger? Do leave your comment okay.
Tuesday, June 07, 2011
Good News for Winmo Chatterz
Kekechewaan pada Winmo isn’t finished just like that. I keep on searching if there is ANY possibility. Cari punye cari finally I have found 1. Bak kata pepatah,
usaha itu tangga kejayaan.
^—nak panjat tu agak susah n berpoluh2 la jugak.
Thank you very much to AlternativeTO teams for providing a list of options in selecting instant messenger apps. I have found this incredible application through
http://alternativeto.net/software/imoim/?platform=windows-mobile
^ take note that the platform is mentions in the end of the url (very useful for Winmo). So, get to know your platform my dear. ;)
From this url, I have found another alternatives software available for instant messenger such as
Palringo
IM+
AIM
.
I chose Palringo. It is new for me. No harm to try kan? So i went to their website,
http://www.palringo.com/en/gb/
You will get this kind of display.
OMG, bersinar-sinar mata when looking at the options and there is Windows Mobile logo. Am I dreaming?!
*dush*
Apo lagi, boleh download and then install. Just click on Winmo Icon. You can get it for FREE and no registration required!
When you download the installer untuk Winmo, the ext is in .cab BUKAN .exe yea tuan-tuan dan puan-puan.
Bila donload dah selesai, pindahkan ke dalam phone and sila lah install.
SIMPLE!
Monday, May 23, 2011
Half Palm Size of Laptop.....
Thursday, March 17, 2011
My Final Lab Session
Wednesday, March 16, 2011
Samsung Galaxy Tab on Hand
Jakun! I admit it. It was my first time having this gadget on my hand (before this penah pegang iPad, not samsung)… so fair enough la kan for me to act that way. :P
My review on this gadget:
- I love it sebab guna Android platform
- Bateri tahan lama
- Camera good + additional application to make it better
- Ada secondary camera (bahagian hadapan) and flash (primary camera)
- Games (as usual)
- Video streaming (sangat berguna bila traffic conjunction)
Saturday, March 12, 2011
Certified Secured Programmer
Saturday, December 25, 2010
Lawatan Sambil ‘Mengajar’ ke Library
Ini adalah kali pertama ke library atau lebih dikenali sebagai Bibliotheque dalam bahasa French di university ni. Menurut kata tourist-guide-sukarela-wakil-Malaysia-d-Nantes, Safuan, di library ni terdapat buku2 yang berkaitan dengan computer, engineering, dan design kerana library ni ada pusat tumpuan bagi pelajar2 Ecole Polytech, Ecole Design, dan Ecole de Mines untuk mencari bahan2 rujukan. Library ni tak besar mcm library UNITEN. Comel je size nye. Setingkat je pon. Buku2 disini adalah dalam bahasa Perancis. Buku dalam bahasa Inggeris ada 1 rak je. Tu pun utk persediaan menghadapi exam English.
Owh, kenapa tajuk tu lawatan sambil mengajar?? sebab explanation panjang lebar mengenai computer, programming telah pon diberikan kepada tourist-guide-sukarela-wakil-Malaysia-d-Nantes sepanjang lawatan ke rak buku komputer.
Sekian laporan mengenai library di university ni.
Sunday, December 12, 2010
My Art My Creativity (M.A.M.C) Part 1
Sunday, November 14, 2010
Like supervisor Like supervisee
Tuesday, November 02, 2010
solution for virus attack of your thumbdrive
You have a clean flashdisk. You have to go to a printing center/shop. After that your thumbdrive is infected by virus or worm?
What to do? What is your prevention action for your clean computer?
Here i want to share some tips which can assist you in preventing or managing the virus or worm from your flash drive.
Preventing:
- Do not open your removable drive by click OK at autorun window or double click at Removable drive partition.
- Open your tdrive using the Address field or right click on the partition, Explore
- Check the file's extension (.exe, .doc, etc) before you open it.
- Copy the non infected file into a temporary folder on your hard disk.
- Make sure you did not copy autorun.inf and recycler folder. (it is usually a hidden file)
- Try to permanently delete these 2 files.
- If the system refuse, right click on your removable drive -> Format
- TADAAAA!!!! now you have a clean flash disk
Thursday, October 14, 2010
2nd Post via Windows Live Writer 2011 (WLW 2011)
Bonjour! This is my 2nd post using WLW. Who introduced it to me? Of coz my IT sifu, my brother.
Let me just give you an overview of this application. Windows Live Writer 2011 is a tool that you can use for posting without using the internet browser. You will no need to experience like a typical way for blogging where you must open the browser, log into your blog, dashboard and etc. By using this application, you just need to launch it and then start writing like in a normal posting page. It is totally easy and simple step to update your blog. This application is not only supports Blogger but also other popular blog service provider such as LiveJournal and WordPress.
This application is compatible with WinXP, Windows 7, and Windows Vista.
You can download the application by the following link;
Sample Layout of the WLW 2011










