Friday, May 24, 2013

Simple PHP Login Form

How to create a login page ? 

That's the question. How do we create a login page ?, If you are a pro maybe this post sounds easy for you, and if there's a mistake on this post, please let me know.  Login Page is a page that contains a script to login user from your website to use features of your website, for example facebook.com, twitter.com, those sites will not let us use it's features if we not login. In this post i would like to create a simple login page. Let's Begin :

What you need :
1. XAMPP (a free and open source cross-platform web server package).
2. Editor like notepad or notepad++

1. Open your Browser, and type http://127.0.0.1/phpmyadmin/ or http://localhost/phpmyadmin on the address bar.

2. Create a database and type the name, then click Create


3. Open your “tutorial” Database and on the create table type login on the name form and 3 for Number of Columns, then click Go.


4. On first column set Name : id | Type : int | Length : 3 | Index : Primary | A_I : Check
Second column Name : username | Type : varchar  | Length : 25
Third column Name : username | Type : varchar  | Length : 25
Then click save.


5.  Click insert on your login table, new window will show up.


6. Insert value for id, username, password, click Go.


7. Database Creation Completed.

II. Login Page

1. Open your editor, then type :

Save it on your htdocs as index.php.

2. Now let’s create loginprocess.php .
Save it as loginprocess.php

3. Create config.php
4. Test your login page.

Thursday, May 9, 2013

Photoshop Lomo Effect

Photoshop Lomo Effect Tutorial


Do you like lomography?, If you do, then this tutorial must be good for you. Just follow the tutorial below :

Big Resolution Image Recommended !

1.Open Photoshop and open an image.


2.Double Click Background and click OK to unlock background layer.


3.Press CTRL + J  to duplicate layer 0, then it should be like this.


4.Click Channels and select Blue and press CTRL + I  to inverse color.


then, the image must be like this :


5.Select Layer 0 Copy then Change Blending Mode from Normal to Overlay and change Opacity to what you like.


6.Final Result

Original Image


Lomo Effect



Saturday, May 4, 2013

Disable Windows 8 UAC

How to Completely disable Windows 8 UAC ?



What is UAC ? User Account Control is a feature from Windows that will help you control your system with user confirmation when you confirm changes of your system or not. In Windows 7 we can completely disable UAC by change UAC settings to never notify, but in Windows 8 UAC isn't completely disable, although we change UAC to never notify. Sometimes we get annoyed by UAC that give your many pop ups and confirmation or if you want to install something that need Administrator Rights that make your installation not completely finish. In this article i will show you how to completely disable UAC in Windows 8. 

1.  Open your Control Panel/User Accounts and Safety\User Accounts

2.  Click on “Chage User Account Control Settings”


3.  Set to “Never Notify

4.  Click OK, don’t restart your PC.




5. Open Run prompt by press Windows + R.

6. Type “regedit”


7. On registry editor go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

8. Change “EnableLUA” value to 0.






9. Restart your PC.
Now your UAC is disable, but this will disable metro apps too.

10. Download TakeOwnership.zip

11. Open TakeOwnership.zip, run InstallTakeOwnership.reg

12. Open My Computer, then navigate to C:\

13. Select all folders > right click > Take Ownership


14. After Take Ownership progress completed, right click “Windows” folder > select Properties

15. On Properties Window click Security > Advance > Enable Inheritance


16. Click Change at “Owner” section > Change > Advanced > Find Now > Select your account > Click OK > OK Again



17.  On “Advance Security Setting for Windows” > Click Add > Select a Principal > Advanced > Find Now > Select Your Username > Click OK > OK Again > Check Full Control > Click Show Advance Permission > Change Applies to : This Folder, subfolders and files > Click OK > Apply > Yes and Continue.


18. Open Run Prompt again by press Windows + R

19. Type “regedit”

20. Navigate again to :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

21. Change “EnableLUA” value to 1.
This step will enable metro apps.

22. Restart your PC

Optional :

23. Navigate again to C:\

24. Select all folders > right click > Take Ownership

25. If you wish, you can remove take ownership by opening TakeOwnership.zip then run RemoveTakeOwnership.reg.

You are done !



Friday, May 3, 2013

How to install deb package ?

Install deb package


.deb packages is the extension of Debian software package format and the most often used name for such binary packages. Package file is helpful when you don't have internet connection. You can install  .deb package by using dpkg (Debian package management system), dpkg is used to install, remove, and provide information about .deb packages. To install follow this step below :

1. Download your .deb package.

2. Open your Terminal/Konsole, go to folder where you put your .deb package by using cd.

3. Type sudo dpkg -i package_name, then press enter.



4. Enter your root password.

5. dpkg will check dependency for that package, if there is an error while checking dependency, you must install the dependency that required by the package.


6. If the depends meet the requirement, Package will install automatically.


7. Install Completed, Check your new application.

Thursday, May 2, 2013

Install Software with apt on Ubuntu/Debian

It's been so long i didn't post, now i am back. 

How to Install a Software on Ubuntu/Debian ?


You can simply install software on Ubuntu/Debian by using apt. apt (Advanced Package Tool) is a package manager for Debian Distribution. APT was originally designed as a front-end for dpkg to work with Debian's .deb packages. How to Use it ? Here is the steps :

1. Open your Terminal/Konsole

2. Type "apt-get install [nameofthesoftware]"

in this case i want to install f-spot a photo manager software
If you get an error "Permission Denied", Just add sudo before apt-get. 
and enter your root password, then press enter.

3. "Do you want to continue ?" Press Y[yes] to continue, then press enter.


4.  Installing Process will appear.


5. Install Completed.


6. Check your new software, and test it.