Thursday, June 13, 2013 1 comments

Active / Passive Verb Forms


Active / Passive Verb Forms

Sentences can be active or passive. Therefore, tenses also have "active forms" and "passive forms." You must learn to recognize the difference to successfully speak English.


Active Form

In active sentences, the thing doing the action is the subject of the sentence and the thing receiving the action is the object. Most sentences are active.

[Thing doing action] + [verb] + [thing receiving action]


Examples:




Form

In passive sentences, the thing receiving the action is the subject of the sentence and the thing doing the action is optionally included near the end of the sentence. You can use the passive form if you think that the thing receiving the action is more important or should be emphasized. You can also use the passive form if you do not know who is doing the action or if you do not want to mention who is doing the action.

[Thing receiving action] + [be] + [past participle of verb] + [by] + [thing doing action]

Examples:



Active / Passive Overview


Active
Passive
Simple Present
Once a week, Tom cleans the house.
Once a week, the house is cleaned by Tom.
Present Continuous
Right now, Sarah is writing the letter.
Right now, the letter is being written by Sarah.
Simple Past
Sam repaired the car.
The car was repaired by Sam.
Past Continuous
The salesman was helping the customer when the thief came into the store.
The customer was being helped by the salesman when the thief came into the store.
Present Perfect
Many tourists have visited that castle.
That castle has been visited by many tourists.
Present Perfect Continuous
Recently, John has been doing the work.
Recently, the work has been being done by John.
Past Perfect
George had repaired many cars before he received his mechanic's license.
Many cars had been repaired by George before he received his mechanic's license.
Past Perfect Continuous
Chef Jones had been preparing the restaurant's fantastic dinners for two years before he moved to Paris.
The restaurant's fantastic dinners had been being prepared by Chef Jones for two years before he moved to Paris.
Simple Future
will
Someone will finish the work by 5:00 PM.
The work will be finished by 5:00 PM.
Simple Future
be going to
Sally is going to make a beautiful dinner tonight.
A beautiful dinner is going to be made by Sally tonight.
Future Continuous
will
At 8:00 PM tonight, John will be washing the dishes.
At 8:00 PM tonight, the dishes will be being washed by John.
Future Continuous
be going to
At 8:00 PM tonight, John is going to be washing the dishes.
At 8:00 PM tonight, the dishes are going to be being washed by John.
Future Perfect
will
They will have completed the project before the deadline.
The project will have been completed before the deadline.
Future Perfect
be going to
They are going to have completed the project before the deadline.
The project is going to have been completed before the deadline.
Future Perfect Continuous
will
The famous artist will have been painting the mural for over six months by the time it is finished.
The mural will have been being painted by the famous artist for over six months by the time it is finished.
Future Perfect Continuous
be going to
The famous artist is going to have been painting the mural for over six months by the time it is finished.
The mural is going to have been being painted by the famous artist for over six months by the time it is finished.
Used to
Jerry used to pay the bills.
The bills used to be paid by Jerry.
Would Always
My mother would always make the pies.
The pies would always be made by my mother.
Future in the Past
Would
I knew John would finish the work by 5:00 PM.
I knew the work would be finished by 5:00 PM.
Future in the Past
Was Going to
I thought Sally was going to make a beautiful dinner tonight.
I thought a beautiful dinner was going to be made by Sally tonight.


Sumber : Dari berbagai sumber
0 comments

How To: Add Social Media Icons To Your Blog

How Do I Add Media Icons To My Blogger Blog?

Step 1~ Before you can start adding any social media icons to your blog or website, you'll first need to find {Or buy} a set. I have a few Free Sets on my blog, but I also sell them in myEtsy Shop.
Before you can use them, you'll need to download the files. If they're squares they can be JPEG files, but if they're circles or odd shapes they should be PNG files. 

Step 2~  Now you'll need to upload your icons to Photobucket or a similar site.

Step 3~ You'll need to find your images URLS now.
If you stored your images on Photobucket, you'll see a box on the right hand side of each image with the name "Image Links". You want to copy the link called "Direct Link". See below.




Step 4~ Head on over to your Blogger blog. You want to head to the section "Layout"
Once there you want to click "Add a Gadget". A window will pop up with a couple dozen of gadgets to choose from. You want to choose the one that says "HTML/JavaScript". The new page that appears will be where you'll be adding your HTML code.




Step 5~ In this new page, do not add a title. You can if you want to, but I always feel things will look cleaner in the end if you don't. In the big blank box in the middle you'll want to add the following code.

<a href="http://www.YourWebsiteAddress.com"><img src="http://www.URLofImageLocation.comheight="70" width="70" /></a> 

http://www.YourWebsiteAddress.com ... this is the URL http address for each of YOUR websites like your Facebook, Twitter, Etsy, Pinterest etc.

For example my Facebook Page's is,
http://www.facebook.com/MyFavouriteThingsBlog

Email is a bit different.
To link to email, fill in the "Your Website Address" like this,
<a href="mailto:myfavouritethingsblog@hotmail.com">

http://www.URLofImageLocation.com... this is the Direct Link address from each image you got from Photobucket previously. 

height="70" width="70"... this is where you get to decide to size of your icons/buttons.

{You can keep adding this same code over and over directly behind each other if you want to add more icons, just remember to change the URLS.}

Click SAVE. 



To move your icons, drag and drop them where ever you want your icons to be on your side bar and click save again.



That's it...Your Done!!!







Wednesday, April 17, 2013 0 comments

Keyword dalam Bahasa C dan C++


32 Keyword dalam Bahasa C dan C++

1.                   Auto: Keyword "auto" digunakan untuk membuat variabel lokal. Namun demikian keyword ini jarang dipakai.

2.                   Break: Keyword "break" digunakan untuk keluar dari do, for atau loop while dengan melewati kondisi loop yang normal.. Keyword ini juga digunakan untuk keluar dari perintah "switch".

3.                   Switch : Perintah "switch" adalah bagian dari beberapa perintah yang ada pada C. Perintah ini igunakan untuk pembuatan rute satu dengan beberapa cara yang berbeda. Berikut ini dalah bentuk yang biasa dibentuk dipakai pada perintah "switch".Tiap keberhasilan erintah dapat berasal dari satu perintah sampai beberapa perintah, panjang porsi default" dapat dipakai. "switch" akan bekerja dengan pengontrolan"control-var" terhadap konstanta. Jika telah diketemukan suatu keserasian, maka pelaksanaan perintah tersebut akan berhasil. Jika urutan perintah yang berhubungan dengan "case" yang sesuai dengan nilai dari "control-var" yang tidak berisi "break", maka suatu eksekusi perintah akan berlanjut pada "case" berikutnya. Letakkan secara berbeda, mulai dari tempat yang sesuai, maka eksekusi akan terus berjalan sampai perintah "break" ditemukan, atau "switch" berakhir. Jika tidak ditemukan keserasian "case default" maka perintah tidak akan berhasil dilaksanakan. Hal ini akan menyebabkan tidak ada aksi yang berlangsung.

4.                   Case: Lihat pada "switch".

5.                   Char: Keyword "char" adalah tipe data yang digunakan untuk membuat karakter variasi

6.                   Const: Coonst berasal dari kata “constant” Modifier "const" akan mengatakan pada compiler ahwa variabel yang mengikuti tidak dapat dimodifikasi. Namun demikian saat ideklarasikan variabe "const" dapat diberi nilai awal

7.                   Continue: Keyword "continue" digunakan untuk menyediakan porsi code pada suatu loop dan memaksa "conditional test" untuk ditampilkan.

8.                   Default: keyword "default" digunakan pada perintah "switch" yang memberi tanda default block ari code yang akan dibuat jika tidak ada kecocokan pada "switch".

9.                   Do: Loop "do" adalah salah satu dari tiga konstruksi loop yang ada pada C.Jika hanya satu perintah yang diulang, maka tanda kurung tidak diperlukan. Tanda kurung disini hanya memperjelas suatu perintah. Loop "do" adalah satu-satunya loop dalam C yang selalu minimal satu iterasi, sebab suatu kondisi akan diuji pada bagian bawah loop. Loop "do", biasanya dipakai untuk membaca file disk

10.                Double: "double" adalah suatu penentu tipe data yang digunakan untuk membuat "double- precision" variabel "floating-point".

11.                If: Adalah suatu fungsi yang mendeklarasikan sebuah persyaratan. Jika persyaratan itu tidak terpenuhi maka perintah tidak akan dijalankan atau menjalankan perintah “else”

12.                else: Adalah suatu fungsi yang digunakan sebagai alternatif dalam fungsi “if”

13.                Enum: Secifier tipe "enum" digunakan untuk membuat tipe enumerasi (enumera-tion). 
Enumerasi adalah suatu daftar yang sederhana dari konstanta integer yang diberi nama. Oleh sebab itu, tipe enumerasi ini menentukan apa yang dibandingkan dalam daftar tersebut.

14.                Extern: "extern" adalah tipe data modifier yang digunakan untuk memberitahu com­piler bahwa suatu variabel telah dibuat di lain tempat di dalam program. Tipe ini sering digunakan pada kata penghubung dengan susunan file terpisah yang memperlakukan data global yang sama serta digabungkan bersama. Pada dasarnya, "extern" ini memberitahu compiler tentang tipe variabel tanpa harus membuat variabel itu sendiri.

15.                Float: “float" adalah tipe data specifier yang digunakan untuk membuat variabel floating-point.

16.                For : Loop "for" memungkinkan pemberian huruf awal dan kenaikan secara otomatis dari variabel counter.

17.                Goto: Keyword "goto" akan menyebabkan pembuatan program "melompat" pada label yang ditentukan dengan perintah "goto"

18.                int: "int" adalah tipe specifier yang digunakan untuk membuat variabel integer.

19.                Long: "long" adalah tipe data modifier yang digunakan untuk membuat variabel integer menjadi "double-length".

20.                Register: "register" adalah modifier tempat penyimpanan yang digunakan untuk meminta agar suatu pemasukan pada variabel dioptimalkan kecepatannya. Secara tradisional, "register" hanya dapat digunakan pada variabel integer dan karakter, "register" tersebut menyebabkan variabel-variabel tersebut disimpan dalam register CPU sebagai pengganti dari ditempatkannya pada memori. Standar ANSIC telah diperluas definisinya agar dapat memasukkan semua tipe data. Namun demikian data selain integer dan karakter, biasanya tak dapat disimpan dalam CPU register. Untuk tipe data yang lain, baik berupa cache memory (atau semacam jenis peng-optimal-an scheme) akan dipakai yang kemudian meminta "register" untuk disimpan."register"hanya dapat digunakan pada variabel lokal.

21.                Return: Perintah "return" akan memaksa suatu pengembalian dari fungsi dan dapat digunakan untuk mentransfer kembali suatu angka pada rutin pemanggilan.

22.                Short: "short" adalah modifier tipe data yang digunakan untuk mendeklarasikan integer pendek.

23.                Signed: Tipe modifier "signed" digunakan untuk menentukan suatu tipe data "signec char".

24.                Sizeof: Operator pengaturan waktu "sizeof' akan mengembalikan panjang variabeL tipe yang mendahuluinya. Jika yang mendahului adalah suatu variabel maka tanda kurung bersifat optional (boleh dipakai)

25.                Static: Type data modifier "static" digunakan untuk menyuruh compiler agar membuat tempat penyimpanan yang permanen untuk variabel lokal yang mendahuluinya. Hal ini memungkinkan suatu variabel yang telah ditentukan mempertahankan nilainya antara panggilan fungsi.

26.                Struct: Keyword "struct" digunakan untuk membuat variabel komplek atau konglomerat, yang disebut "structure", yang terbuat dari satu elemen atau lebih

27.                Typedef: keyword typedef berguna untuk membuat alias dari suatu tipe data

28.                Union: Union digunakan untuk menunjukkan dua variabel atau lebih pada lokasi memori yang sama.

29.                Unsigned: "unsigned" adalah tipe data modifier yang memerintahkan compiler untul< menghapus tanda bit dari suatu integer dan menggunakan seluruh bit untuk keperluar arithmetic. Hal semacam ini menyebabkan ukuran integer terbesar menjadi dobel tapi hanya terbatas pada angka-angka positif saja.

30.                Void: Tipe specifier "void" pada pokoknya digunakan untuk secara jelas mendeklarasikan fungsi yang tidak mengembalikan suatu nilai (dalam arti penuh), tipe ini juga digunakan untuk membuat pointer "void" (pointer pada "void"), yaitu pointer generic yang dapat menunjukkan beberapa tipe object.

31.                Volatile: Modifier "volatile" digunakan untuk memberitahu Compiler bahwa suatu variabel mungkin telah mempunyai suatu isi yang telah dipilih dengan cara yang tidak ditentukan oleh suatu program. Contoh, variabel-variabel yang diubah dengan hardware seperti "realtime clock", 'Interrupt" atau input-input yang lain, harus dinyatakan sebagai volatile.

32.                While: Adalah suatu loop. Jika suatu perintah tunggal adalah object dari "while",maka tanda kurung dapat dihilangkan, "while" akan menguji kondisinya pada bagian atas suatu loop. Oleh sebab itu jika kondisinya salah untuk memulai,maka loop tidak akan berjalan, meskipun hanya sekali. Kondisi tersebut mungkin dapat berupa suatu ekspresi. 



Sumber: Dari berbagai sumber 

 
;