Posts

Exponentiation algorithm

Image
In programming there are not just 1 method to solve the problems for the exponential algorithm.What is exponential algorithm? Well is also can be mention as power. For example 2 to the power of 3 is 8 (2^3=8). Exponential algorithm is to find the value through computational way. You can computed an exponential by iterative. For example (in python): def iterPower(base, exp):     result=base     if exp==0:         return 1     else:         while exp>1:             result*=base             exp-=1         return result The code is like keep multiple the base number while minus the exponential value until the exp is 0.Is like 5^5=5*5*5*5*5 Above is an exponential by iteratively executing successive multiplications. Exponential can be computed in a recursive function. def recurPower(base, exp):     if exp==0: ...

Centralised version control systems

Centralised Version Control System (CVCS) CVS and SVN is a centralised version control system(CVCS). It mean that only one master repository where people can share the code. Another way to explain is if everyone need to check their own code or branch from that repository, and checks what have been changes by others people or itself. Than the code will need to sent out 1 by 1 and person by person.Sometimes , it possible to create a patch that diff from your own code and it was against the given Master repository version. There are 2 main problems with the cvcs, even it was no so obvious: You need to perform an action like diff or patch. Any patch for the particular branch can be outdated quickly However , SVN keeps the last-known checkout, so it can do a limited set of operation while disconnected from SVN, like diff from the last-know checkout but it you are not allow to doing many operation that are possible while connected. The first problem is rarely apparent for thos...

Linux Basic Command

Basic Linux command Shutdown First of all the the command to shutdown the computer. "halt" "poweroff" "shutdown -h now" when administering a multi-user system and want to shut down the system, you can have an option to notifying all the user like below: “ shutdown –h 10:00 “Shutting down for schedule maintenance.” ” The 1st argument is halt is option to close the system, the 2nd argument is the time to close the system, while the last notifying message to others users. “ Shutdown –r ” can use to reboot. Accessing Directories Display present working directory you can use " pwd ". Beside that , you can change your directory to parent directory using " cd .. " and change to previous directory " cd - " or " cd ~ " to change to home directory. Exploring the fileSystem You can use " tree -d " to view just the directories and to suppress listing filesname. " tree " is to display a ...

How to root Android Phone

What is root ? Root is the organ of a plant that typically lies below the surface of the soil. =O  In Linux/ Unix Operating System, there are some action only can be carry out by the administrator. The administrator can be so call as root because it has the large access on the system. So rooting can be explain as the process to let the android user  to gain the privileged control on the android system. With root access, you can Access More apps Install Custom Rom's Access Block Features Faster Performance Free Wifi Tethering However, if you root your devices guarantee will void. So Think twice before your root. Below is the method to root the android phone. Actually there are very easy to root your devices with the help of software. The software I use is the IRoot or last time known as Vroot.  Click the link to download IRoot : http://pan.baidu.com/s/1dDpgqy9 How to root android phone ? Install the IRoot Run Iroot =| Connect your Phone via US...

Customize Windows Context Menu

Image
Customize Windows Context Menu Context menu can be normally 4 type which are: Option in All files context menu Option in folders context menu only Option in Drives context menu only Option in unknown files context menu You can customize the context menu by your-self just to follow the step below. How to modify the windows context menus ? First of all , you are using windows OS. =|  Second is you find out which type of context menu you want to customize. The types as I mention above and do the corresponding modification. HKEY_CLASSES_ROOT\*   (option in All files context menu) HKEY_CLASSES_ROOT\Directory (option in folders context menu only) HKEY_CLASSES_ROOT\Drive (option in Drives context menu only) HKEY_CLASSES_ROOT\Unknown (option in unknown files context menu) Third, is open registry. =| "Win + R" -> type in "regedit" without the quotes. Fourth, find the corresponding key(each of the directory is what we call key). A...

Forgot Ubuntu Password

Image
Hi , do you forgot your ubuntu password, if yes then let change it . I have try this method before and it work. Although not sure what is the command is about but if you follow the step below then you can change your ubuntu user password. when start you computer press / hold the shift which will bring you to recovery menu Then choose the root which bring you to a command screen. Type in  "mount -o rw,remount /" without the quote Then you need to know your username which can find it by type in "ls /home" without the quote. The username will be show at this directory Then type in "passwd yslab" then will prompt to ask you type in new password. key in you new password then retype it . key in "exit" to exit. Done, this is all the step you needed to change your password. =D feel free to leave some comment if you have another method to get back /change your password . =)

Cloud Computing

What is Cloud Computing? Cloud computing is the next stage in the Internet's evolution, providing the means through which everything — from computing power to computing infrastructure, applications, business processes to personal collaboration — can be delivered to you as a service wherever and whenever you need. In cloud computing, the word "cloud" (also phrased as "the cloud") is used as a metaphor for "the Internet," so the phrase cloud computing means a type of Internet-based computing, where different services (such as servers, storage and applications) are delivered to an organization's computers and devices through the Internet. The “cloud” in cloud computing can be defined as the set of hardware, networks, storage, services, and interfaces that combine to deliver aspects of computing as a service. Cloud computing is a model for delivering information technology services in which resources are retrieved from the internet through web-...