Thursday, July 25, 2013

How to put Facebook Comment Box on blog ?


If you are always logged on Facebook and you are managing a blog, it is good to put a Facebook comment box plugin there. It can also publish the comment with a link to your blog if someone posted a comment to your blog. With that, you can have more visitors to your blog site.

You can also check if someone leaves a comment on your blog without checking all the pages or posts on your blog. You can also manage the comments and make a reply just using your Facebook account

Facebook Comment Box Screenshot
Comment Box Screenshot

 Let’s start the process.


PART 1 : Creating your apps


1. Go to https://developers.facebook.com/apps and create a new app. See image below.

Create New App

2. Type any valid application name and click “Continue”.

Enter Application Name

3. Enter the captcha code and click “Continue”.

Captcha Code

4. Get your Comment Box App ID. This is important. Copy and save it somewhere in your computer. You will need this later.
 
App ID

5. On App Domains, enter your domain name. I am using blogspot that’s why I entered blogspot.com.
Disable Sandbox Mode, enter you blogsite url and hit “Save” button.

Basic Settings

Now, let's proceed to the second part and put the codes into your blogger account.


PART 2 : Applying the codes


1. Login to your blogger account.

2. Go to Template and click Edit HTML.

3. Put this code inside the <html> tag.

Result should look like this:

<html xmlns:fb='http://www.facebook.com/2008/fbml'>


4. Insert this after the <body> tag.



5. Insert this code before the </head> tag.


6. Find this line <b:includable id='comment-form' var='post'>
After that code, insert the following codes below


7. After putting the codes in your template, hit “Save Template” button.


Go to your blog and check your blog post. You will see a comment box below your post.

Monday, July 22, 2013

Tutorial : How to run Turbo C in DosBox ?



Many are asking where to get Turbo C that is compatible for their Windows 7 computers. Turbo C is still running on Windows 7 but it doesn’t allow me to enter full screen just like the old days of windows. But using some applications like DOSBox, will allow us to use Turbo C in fullscreen mode.

Follow this guide on how to run Turbo C with DOSBox.

In this guide, I have already installed Turbo C on my computer.
Now, let’s proceed to the guide.

You must have DosBox installer first. You can download it from the link below.
Dosbox DL link : http://www.dosbox.com/download.php?main=1

Dosbox Installation:


1. Run DosBox installer.

2. Just click Next until the installation folder selection then click Install.

 

 
 
3. After the installation process is completed, close the installation window.


You are done installing DOSBox.

We are now going to make DOSBox to run Turbo C everytime you run DOSBox.

I have read the manual of DOSBox and found out the following procedure that will let us run Turbo C much easier, instead of typing commands just to run Turbo C or any program.


4. After installing DOSBox, right click on DosBox shortcut icon on your desktop and click Properties.

5. In Shortcut tab, we will edit the target textbox and put the following command:

"C:\Program Files\DOSBox-0.74\DOSBox.exe" C:\TC\BIN\TC.exe -c "mount T C:\TC\BIN "


6. Click Apply and OK to close the window.

You can now run Turbo C and use it like old times.

NOTE: The instructions above (Step 5) will work only if the installation path of DOSBox and Turbo C are correct, or you will have to edit the path where you installed DOSBox and Turbo C.

Thursday, July 18, 2013

Play uTorrent Hidden Game



I just wan't you to know that there is a hidden game inside the uTorrent application. Here's a simple way how you can get into the game. :)

#1 Open uTorrent.

#2 Go to "Help". Then click "About uTorrent".

#3 A smal window will pop out, then press letter "T"

You have now unlocked the hidden game... Enjoy :)

Wednesday, July 17, 2013

Turbo C: Variables and User Input

Getting input value

In every program, variables are declared and used for the user inputs. From my previous post, we already know how to declare variables, but those variables are static or cannot be changed when we run our program.


This time, we are going to create a program that will let the user to input the value. This basic program will ask the user to enter a value that will be set to our variables, and then the program will get the sum of two inputs.

Code:




By using the scanf(“%d”, &x) we are able to get the user input. (“%d”, &x) will get an integer value of the input and will be assigned in variable x.




Tuesday, July 16, 2013

Turbo C : Variable Declaration

Declaring Variables

Variables are used to hold a value. It can be a text or numbers or even both. This is very useful in programming especially when you want to display some text/numbers multiple times.

There are types of variables used to make a program. These will give the variables a classification that the computer will understand.

On this part, we will create a simple mathematical addition. Here is the code.





Looking at the codes, we used int type of variable. It is used because we are using variables to hold numeric values.

x, y and z are the variables that we declared. You can use any alphanumeric characters to declare variables. It can be (A, B, C) , (num1,num2,num3),  or it can be a name of your choice.

The x has a value of 100 and y has 200, but z doesn’t have a value. It’s ok, we can declare a value for z later.

printf("Value of X is = %d \n", x);       //---- %d will call the integer value of x
printf("Value of Y is = %d \n", y);       //---- %d will call the integer value of y

This statement will display a text and a variable.
The backslash followed by letter n “\n” will begin a new line.

z=x+y;
printf("The sum of X and Y is = %d", z);

This line will declare the value of z.  z=x+y , it is clear that the value of z will add  the  value of x and  y. And the last part will print the value of z.

Output:




Sunday, July 14, 2013

Turbo C : Hello World

Writing Hello World Program


To write a C program, we need a compiler. You can use compilers like DevC++ and CodeBlocks but Turbo C is indicated in our title, so we are going to use "Turbo C". I prefer using Turbo C because some codes doesn't work with the new compilers. You will see what I mean if you try to use different compilers. If you still don't have turbo c, you can download it here (link).

This is a basic program written in C Language. This program will just print the hello world text. It simply show you the basic structure of a program and the use of printf function.


#include<stdio.h>
#include<conio.h>

void main()
{
clrscr();
printf("HELLO WORLD");
getch();
}


The first two lines are the libraries. There are lots of libraries
that is used to create a program. It is used to allow the functions
that we use in every program.

clrscr() - it clears all previous text displayed.
Printf("hello world") - a function to display a text. The function
that is most important in every program.
getch() - without this, your program will just flash on your screen.

Output:



Thursday, July 11, 2013

Installing Backtrack 5 r3 in Virtual Machine

This tutorial will help you how to install Backtrack 5 r3 in virtual machine. I will assume that you have already done setting-up your virtual machine (If not, you can follow my guide click here).


1.    Installing the Backtrack 5 r3 Operating System in Virtual Machine.
Prepare your Backtrack 5r3 Installer, it’s either an ISO Image or a bootable LiveCD. You can download it here (link).

2.    Select your Virtual Machine and click settings. Go to Storage, you will see the virtual hard disk that you created earlier and an empty disc. Click the empty disc and click the disc icon on the right side, choose a virtual CD/DVD and browse for the ISO. The image file of Backtrack 5 r3 will be mounted and this will act as virtual CD/DVD of your virtual machine. Click “Ok”.



3.    Start the virtual machine. Wait for backtrack to boot until the selection menu screen.
Select the “Backtrack Text – Default Boot Text Mode” and press Enter.

4.    Backtrack is now running. You can start using backtrack on this mode, but our tutorial is to install backtrack so we will proceed and enter to the GUI.

·         To do this, just type:               startx


5.    You will be on the desktop screen of backtrack. You will see an icon with the name “Install Backtrack”. Open it to run the setup and complete the steps.

·         Select Language (English)
·         Select Time Zone (You can click it on the map)
·         Keyboard Layout (just click forward)
·         Prepare disk space (just click forward)
·         Click Install







6.    Wait until the installation is finish and click “Restart Now”.
  




Setting-up Virtual Machine using Oracle VM Virtual Box

As per requested, I created a tutorial on how to setup a virtual machine. This tutorial includes screenshots to guide everyone on every steps. :)

Setting-up the Machine.
1.    Open  Oracle VM Virtual Box
2.    Click New, a small window will pop.
·         Enter any name you want. I will use “Machine01” as example.

·         Select type and version of Operating System you are going to install.

·         Click next



3.    Select the amount of memory (RAM) in megabytes to be allocated to the virtual machine.
If you are not sure about this, just click “Next”. You can still adjust it later.


4.    Hard drive. We can create or use an existing virtual hard drive on this part. To make this tutorial easier, let’s just proceed and create a new virtual hard disk.


·         Just click next on the next window.




·         You can adjust the size of your virtual hard drive or just proceed and click “Create”.

5.    Your Virtual Machine is now created. You are now able to install your OS. 



Thursday, July 4, 2013

C++ : Hello World!

Writing Hello World program in C++

Hello world, this is the first program or the first step in learning on how to display a text. Text is very important to any program. It gives users idea on how to or what to do with the program. Anyway, we all know what is text for... LoL :)

To write a code, you can just use notepad or any text editor. But, it can't be a program until you compile it.
To make it simpler, we can just use a compiler to write and build a program. You can find several compilers around the internet, you can download and try each of them to see which one is better for you.
I use Dev C++ as  a compiler. You can download it here (download link).



Here is the code:


#include <iostream.h>
using namespace std;

int main()
{
  cout << "Hello Dude!";
  cin.get();
}

This code will just simply display "Hello Dude!". 
Don't be confused if its called Hello World program but we wrote "Hello Dude!". The main goal of this code, is to show you on how to display a text. You may say that this is just a simple codes to show a text, but this is very important in writing a program. Just imagine a keyboard without any characters printed on it. :)


Tuesday, July 2, 2013

Download: Freeware - Turbo C 3.0

Turbo C for XP / Windows 7 / Windows 8

Turbo C is an IDE(Integrated Development Environment) and a compiler for the C programming language from Borland. It is 1st introduced in 1980's. Turbo C is known for its outstanding features and easy to use. It was developed and released with many versions. It has a small size that is easy to install, a fast compiler that helps the programmer to build their programs faster, and a it is very cheap.

It is one of the most popular and used by lots of the programmers during its time. Year 2006, it was re-released as freeware. But until now, Turbo C is still used for teaching C programming in computer schools.

And still, lot of programming students or beginners in C programming or those who want to learn C programming are looking for Turbo C Installer. You can find a link below and download this freeware program.


NOTE:
• Latest version of windows doesn't support full screen on Turbo C. If you want to run this in FULLSCREEN, you have to use DOSBox as emulator. (See link below)


Borland Turbo C


Tutorial : How to run Turbo C in DosBox ? (Turbo C in Full Screen Mode)



Related Posts Plugin for WordPress, Blogger...