Check Internet Connection on Windows

If you use windows and find some problem with your internet connection, you should be able to check it, to solve the problem. Here i give you simple, step by step to check your windows internet connection.

1. ping localhost
open you command prompt and try to ping localhost, if it do not respond. you should check you internet adapter (lan adapter, wireless adapter etc) wheter it is on or not. you can check it start > control panel > network connection . to enable/disable adapter you just need to right click the adapter and choose disable/enable

2. internet connection logo
if the internet connection logo shows you clear icon (without x mark) it means you are already connected to internet, if not, maybe you just connected to local area network.

3. check your ip address
you can use command prompt to check your ip addres. using commmand: ipconfig
if 169.x.x.x shows up. it means you are not connected to internet, because it is the default ip address of microsoft windows. it is possible if ip address allocation from dhcp server exceeds its limit. either you have to wait for other people to leave or you can set manually your ip address provided right information of ip address range available in that place.

4. ping to gateway
gateway is what connects you into internet, if you can ping your gateway means local connection works well.

5. ping familiar internet address
if you have ping your gateway and succeeded, you can try ping familiar internet address such as google.com or ip address such as 8.8.8.8 (dns google).

Create Download Schedule Internet Download Manager

It’s been sometime since i use scheduled download to make me able to download movie in the middle of the night, resulting faster download and reduce traffic in the day. we can perform this scheduled download using idm. internet download manager or IDM gives us queue program, it enables us to specify the schedule, and other option, which help us manage the download time, speed, and other actions.

this is the step by step to create it

1. to create scheduled download, first you need crete new queue
find queue icon and right click, add new queue

create scheduled download idm
create scheduled download idm

2. On the new window appear, write your queue name, here i name it “new queue”

create scheduled download idm 2
create scheduled download idm 2

3. After you name it new window will appear, here you can select or modify the options into the one you want. for example here i want to automatically download files everyday, on 01.00 am till 05.30 am, when i am sleeping and most people too ūüôā

create scheduled download idm 3
create scheduled download idm 3

4. Now, when you download file using idm, you can choose download later, than choose the name of the queue that you want

schedule download idm
schedule download idm

 

schedule download idm
schedule download idm : choose download later

 

schedule download idm
schedule download idm : choose your queue

 

How to reset nokia phone

How to reset nokia phone. Reset (old) nokia phone can be done in two ways:

1. Soft reset
Soft reset ¬†will give you back your original setting of your phone. you will once again see its original theme, original setup, original ringing tone etc. but it will not give you back your chance to modify your phone lock codes. you can do it by pressing¬†*#7780#. it will not delete your software installed, so you not need to worry about software or anything installed. it just will fixed your “hang” problem and help you recover original setting.

2. Hard reset
hard reset will give you hard reset. it will erase all your data installed in your phone. it will erase all data in your phone memory, so if you want to do this step you need to back up your old data first and becareful. you can perform hard reset by pressing. *#7370#.
or if it is not working you can press call button and end button together for some seconds.

How to backup our wordpress data

How to backup our wordpress data. There are 2 common ways to backup our wordpress data. backing up data is needed to make sure we still have any of our data when it is needed. such situation is like when our website get hacked, or other situation, when we want to move our website and doing new installation.

To backup our wordpress data we can do these step:
1. Backup database using phpmyadmin
phpmyadmin is designed to make us easier in maintaining our database. all post, users, comments, all things in wordpress is saved in database. we can modify and download sql file (or other format such as zip, tar.gz) and save it in our computer periodically. u can open phpmyadmin, select your database, and choose export

export database
back up your wordpress data : export database using phpmyadmin

2. Backup all your content using wordpress tools
you can use other tools which is provided by wordpress

import and export
back up your wordpress data : import and export tools

choose export and you will have your xml file

wordpress export tool
back up your wordpress data : wordpress export tool

3. use back up plugins
you can use plugins to help you to back up your data periodically, automatically, by providing you schedule, such plugins will help you to manage you make your own schedule to back up your wordpress data.

My WordPress is Hacked

My wordpress is hacked for the second time now, the first i notice is because the hacked sending me email notification and asked me to examine why my wordpress can be hacked by him.  but because i could not find out, i just recover my website manually, in a way i installed it (wordpress standard installation).

the second attack happened just now, yah now sure when it happened but, yesterday when i tried to enter the login username, my wordpress did not respond well, and when i ask for forget password, it gave me new username, and i just realized that my website have been hacked again.

untill now i do not take time to look for the reason why it can be hacked i once again recover my website, doing non preventive steps such as :

1. back up database
database is where you save all your post in wordpress. you can open your phpmyadmin and choose export menu, or go to your control panel and choose database wizard, which will give you an option to backup your database. but becarefull dont backup all database, because it may also backup the hacked table. im not sure whether its right or wrong but make sure you backup what you need such as your posts. or if you dont want to use database you can use wordpress export tool, which will give you xml file that can be use to recover all your post. you can read the step by step in my post How to backup our wordpress data

2.  delete old files
some sites suggest us to use good plugins because some attack can be addressed into our plugins or other part of our files. so to make sure we dont leave same hole in our website. we can delete our old files.

3. set up new updated wordpress and plugins
Make sure to setup new updated wordpress and plugins when you install new site. use strong password and uniq username. updated version of wordpress and plugins can minimize your chance to get the attack. for the example of the plugin i use right now, you can read it in my post How to strengthen your wordpress : plugins to secure wordpress 

4. use security plugins
u can try to use security plugins but im not sure about this, since in my first time use the plugins my site still get the attack and i have to consider other options actually. but it my help you to strengthen the security on your website. for the example of the plugin i use right now, you can read it in my post How to strengthen your wordpress : plugins to secure wordpress

5. modify htaccess
some site suggest us to modify our htaccess files, you can see the example here
http://httpd.apache.org/docs/current/mod/mod_rewrite.html 

6. File permission
make sure you set the right file permission on all your files and folder, you can read about it here, File Permission on UNIX/Linux or here http://codex.wordpress.org/Hardening_WordPress#File_Permissions

7. Save your wp-content/uploads folder
uploads folder contains all images or other file you have upload to your wordpress and the file that you have used in your post. so when you just save your database, you will get error in every image file you use in your post. in order to save those and make it right you have to copy your uploads folder to your new wordpress installation. you also need to modify your permalink into the one that you have used in your previous website. to read about it How to edit wordpress permalink

Those are my step by step to recover my wordpress after being hacked, you can try to use it to but it is better if you consider other options such as trying to attack you own site to examine the possible  cause and fix it. but im no good in this hacking actions so i havent try to do it yet.

Router Analogy and Factor to Consider for Efficient Delivery

Router Analogy,

network link that connects two router is limited by how much data it can transfer per unit of time, commonly reffered as bandwidth or capacity of a link. which is represented by data rate such as 1.54 megabits per second. a network carries traffic on its links and through its routers to the eventual destination; traffic in a network refers to packets generated by different applications such as web/mail.

if traffic suddenly increase, for ex, many users trying to download from the same website, then packets generated can possibly queued at routers or even dropped.

Router actually mantains finite amount of space = buffer. to store backlogged packets temporarily, it is possible to reach the buffer limit.

for efficient delivery of packets there are several key factors to consider :
1. Router with a reasonable amount of buffer space
2. links with adequate bandwidth
3. actual transmission with mininal error
4. Router effeciency in swithing a packet to the appropriate outgoing link

Power Function In C

Power function in C come with pow(a, b);
available in double and float mode

float       powf( float base, float exp );
double      pow( double base, double exp );
long double powl( long double base, long double exp );

in order to get integer representation, you need to cast the double / float value into integer by simple casting

int(variable)

all you need to do to use this pow function is to add
#include <math.h>
to your program

 

Deductive Reasoning

Deductive reasoning uses the law of logic to link together true statements to arrive at conclusion. Definition is true statement, so it is used in proof. a proof is valid argument that establishes the truth of a statement.

direct proof is proof that start with the given statement that use the law of logic to arrive at the statement to be proved.
indirect proof or proof by contradiction is proof that starts with the negation of the statement to be proved and use the law of logic to show that it is false. when the negation of statement is false, the statement must be true, if we can show that the negation of the statement to be proved is false, then the statement must be true.

Inductive Reasoning

Inductive reasoning usually called generalization, we given by some examples and try to make generalization from those examples to arrive at our conclusion.

For example you can write the number of factor of each number from 1 to 25. And you will only find that only the quadratic number that has odd number of factor. (4 has 3 factors, 9 has 3 factors, 16 has 5 factors, 25 has 3 factor). Then you extend your sample to 1000 for example, and find the same observation, you then conclude that only quadratic number will have odd number of factor.

in Geometry this inductive reasoning has some weakness :

1. Measurement in geometry can not be done precisely, result is only approximate
2. Each sample should be took care carefully, we need to examine every possibility from the sample
3. We do not give / can not give explanation why conclusion are true, the result comes from our observation through samples

but however, this inductive reasoning is a powerful tool in discovering and making conjecture.

the result of inductive reasoning is called conjecture, it is true conclusion that we draw but we can not give any explanation why the conclusion is true, the result in only probably true.

counterexample is any sample that we can use to prove that generalization taken by inductive reasoning is false