Starcraft 2 : Wings of Liberty – Fireworks / PSD Template

July 28, 2010

Starcraft 2 : Wings of Liberty Fireworks Template for only 25.00 USD

- This template is based on Starcraft 2 Fan Site Kit.
- Made using Adobe Fireworks CS4+.
- High Quality and best for your Starcraft fan page.
- Can be saved as PSD.
- Payment via Paypal (webmaster@keithics.com)
- HTML is optional, just add 25USD for 1 homepage and 1 template.

Preview Below: Homepage at 90% from original (click to view)

SVN in Shared Hosting with Hostgator

July 10, 2010

I love Hostgator, they never let me down ever since. There might some minor incidents but their support fixed it quickly.

My Hard drive just crashed this week and now I want to have a repository for my code just in case it happens again.

To make Hostgator+SVN to work , you need:

1. SSH access.. SSH is free if you have the business plan (shared)

2. Putty (Windows)

3. TortoiseSVN (SVN Client)

Step1:

Instructions:
Type your domain name and the port as 2222, in the Saved Sessions textbox type: keithics or any name, then click Save. You can see the Name on the text area on the left.
Then click Open.

Step2:

When Putty loads, it will ask for your Username and Password. Please note that when you type your password, you can’t see anything in Putty’s commandline.
Just type your password and press Enter.

Then Create a repository..

svnadmin create myrepo

step3:

Install TortoiseSVN and Click Settings. In the Network Tab, browser for the Putty.exe path.

Step4:

Create a repository by right clicking an empty folder then choose TortoiseSVN->Create Repository Here.
Add a text file to that folder then right click the folder then choose SVN Checkout.
IN the URL of the repository type:
svn+ssh://keithics@keithics/home/keithics/myrepo/
Replace the bold text with your own.
svn+ssh://<HOSTGATOR NAME>@<PUTTY SESSION NAME>/home/<HOSTGATORNAME>/<REPO FOLDER>/

Good Luck and if you have any problems, just put it on the comments!

Apache/PHP HTTP Authentication

May 18, 2010

Aside from having a complex login page where you can prevent access to users without privileges ,  PHP offers a simple way to do it.

But you must have an Apache Server (most of the servers are Apache).

Here is the code:

  1. if ($_SERVER[‘PHP_AUTH_USER’] != ‘admin’ and $_SERVER[‘PHP_AUTH_PW’] != ‘admin’) {
  2.  header(‘WWW-Authenticate: Basic realm="TCG Admin Panel"’);
  3.  header(‘HTTP/1.0 401 Unauthorized’);
  4.  echo ‘You need to login’;
  5.  exit;
  6. } else {
  7. echo "OK!";
  8. }

Learn more about it here

Adobe Fireworks CS5 first look

May 7, 2010

Just downloaded the trial for Adobe Fireworks CS5. One noticeable change is the splash image.

You may need to login to use other Adobe Services.

And Oh, they have templates for Web, Mobile , Wireframes etc.. cool!

As for the Text .. sorry guys.. still no System Anti Alias. Don’t wait for Adobe to bring it back. Just won’t happened.

Better border, finally!

As for performance , faster but not fast enough compared to CS3.

– there’s not much improvement of Fireworks since Adobe took over. They put up a lot of useless stuff like Flex Skinning , Adobe Air mouse events.. Just how many people uses those features?They are obviously trying to sell other products rather than listening to their customers.

I will be getting emails from Adobe (again) for this one. How about you guys what do you think?

Fixing Error: 1093 mysql you can’t specify target table

I ran into this problem lately and I hope this can help you out..

Problem
INSERT INTO tbl_lang (enname,code,charset,inorder) VALUES (‘asd’,'asd’,'asd’,(SELECT MAX(inorder)+1 from tbl_lang))

Fix:
INSERT INTO tbl_lang (enname,code,charset,inorder) VALUES (‘asd’,'asd’,'asd’,(SELECT MAX(inorder)+1 from tbl_lang as l))