.: Most Read :.
-
Semalam tiba2 teringin sangat nk belajar lilit selendang style Hana Tajima <—bukan inspired anymore. Then I remembered I used to saw her ...
-
Berapa ramai dah pernah rasa nasi ayam penyet? Mula-mula memang agak skeptikal sikit dengan ayam penyet... ingatkan macam mana la rupa dan ...
-
Dik Cerdas Volume 1 has been spotted at one of the magazine shop in Alamanda, Putrajaya!!! Those who’s peminat fanatik Crayon Shin Chan and...
-
Buying groceries can become therapy but sometimes it is time-consuming. In my case, I usually go out with 5 items on the list, but end up I ...
-
I always keep the shoes boxes because some of them are beautiful. At the same time I always have problem in arranging my items. They always ...
Thursday, April 10, 2014
Kenapa
Sunday, February 16, 2014
Resepi asam pedas ikan merah
- Panaskan minyak dalam kuali yg sederhana besar.
- Hiris bawang putih dan bawang merah. Tumis sampai garing.
- masukkan pes cili giling Adabi. Masukkan sedikit air. Tumis sampai pecah minyak.
- Masukkan perencah asam pedas adabi. Tumis sampai pecah minyak.
- masukkan air, kacang bendi, cili merah, cili padi, ikan merah, daun kesum, dan garam. biar sampai mendidih
- sedia untuk dihidang.
Tuesday, February 11, 2014
Resepi Masalodeh
Resepi Masalodeh (Orang utara panggil macam ni.. orang KL tak sure pulak)
Note: Hasil dalam 10-12 pieces depends on size
1 cup kacang dhal
3 tangkai cili kering
3 tangkai cili padi hijau
1 tangkai daun kari
1 biji bawang
1/2 sudu teh jintan manis (biji)
1/2 sudu teh jintan manis (serbuk)
1/2 sudu teh garam (sebenarnya agak-agak)
1. Rendam kacang dhal semalaman (6-12 hours). Tukar air after 4 jam. Letak sedikit garam.
2. Kisar kacang dhal dengan jintan manis (biji). Masukkan sedikit air.
3. Hiris bawang dan cili padi.
4. Potong cili kering dan daun kari (about 1 cm).
5. Mix kacang dhal yang dah dikisar dengan bahan 3 dan 4, masukkan garam dan sebuk jintan manis. Gaul.
6. Bentukkan adunan.
7. Panaskan minyak. Make sure betul-betul panas.
8. Goreng sampai warna bertukar jd golden.
Ready to serve. ;)
Saturday, January 25, 2014
L'Occitane < How to Pronounce this?
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 |
Saturday, October 19, 2013
"EH awak berisi la sekarang ni.."
Oh I wish I can reduce these fats by just pressing CTRL + ALT + DEL or Eraser tool in Photoshop. I can be multibillionaire if manage to do and sell a tool macam tu.
Well.. everyone wants a perfect body. So do I. I want my weight to be as the same as during my report duty last year. Very slim and nice body shape.
Yes I admit my weight is much more increased compared to last year.. after convo to be specific.
During 2011-2012 (when dealing with masters and being a mommy-daddy's PA), i didnt exercise at all. But i managed to reduce my weight. Tak ada benda lain nak fikir, body pun senang hati and bahagia dapat perhatian. I was healthy! very healthy! I have very less toxic inside my body. (I know from detox patch)Now, my with a lot of workloads (not complaining because i love my job), this body seems rebel. It wants more attention. And it keeps on growing and expanding. Owh my dear. Susah hati lah. Sapa kata tak susah hati. Tapi bila sibuk kurang la susah hati tu. And i think my body is developing the fats to protect me from kesejukan kutub utara 8 jam sehari tu. HA macam polar bear.
But when I am thinking back... what ever it is... Alhamdulillah now I have rezeki. I managed to get my meals everyday. Pernah, i was bising about fats here and there, and one day when i get too busy, i dont have time to eat, i feel really bad. not rasa bad because of tak makan. but it seems like Allah is 'punishing' me for whining about this fat and rezeki that he gave to me every single day. During that day, I came to the office early in the morning, attending the meetings, classes until 6pm. i eat nothing except consuming some cups of green tea. that's it!
But of coz it does not mean I can take this problem easily. For those yang sangat concern about my weight, THANK YOU for your concern. That means I am visible to you and you have time to think about me! That is so sweet! FYI, I am also realised about this matter. I am working to reduce it. InshaAllah, kalau diizinkan Allah, mudah la urusan nak kuruskan badan ni dan kekal sihat. Doakan. Kita mampu merancang n buat, yang izinkan tu Allah. Buatlah macam mana pun kalau Allah tak izin, tak makan 100 hari pun tak kurus jugak. Doakan.
p.s: I dont need any advertisement or approach especially pasal Herbalife or Alphalipid or Shaklee. Thank you.
Friday, October 04, 2013
"i did one good thing pagi ni... rasa happy"
Macam tu la jugak bila kerja dalam bidang yang memberi servis.
Bila selalu senyum dengan pelanggan, they will feel okay biasa la orang senyum. Tapi once kita macam, people will talk about it.
Bila selalu muka kelat, sesekali senyum, then orang akan cakap jugak... Puji Puji Puji... sebab benda lain daripada selalu.
Padahal hakikatnya always kena senyum.
Same goes antara kita dengan family. Kadang-kadang hati ni jahat jugak kena bisikan syaitan. Family la orang yang kita spend more time dalam hidup. And bila kita spend more time, kita nampak la flaw here and there. We see our neighbour... terdetik dalam hati,
"bahagianya mereka"
"ada kereta besar"
"ada rumah besar"
and etc...
We want a parents macam tu jugak. But we didnt live in that family. We cannot see the flaw yang dilindungi oleh tembok batu yang tak ada orang lain pun tahu kecuali family jiran tersebut.
Lumrah hidup sebagai manusia. Bila sentiasa ada, take for granted. Nampak yang salah saja. Bila dah ditarik nikmat tu, baru nak hargai.
Lihat sekeliling...
Lihat keluarga...
Lihat kejiranan...
Lihat daerah...
Lihat negeri...
Lihat negara...
Muhasabah diri.

