Archive for July, 2009

Detecting if it is iphone browser or iphone specific coding for web site.

Thursday, July 30th, 2009

Detecting if it is iphone browser:
if ((navigator.userAgent.indexOf(‘iPhone’) != -1) ||
(navigator.userAgent.indexOf(‘iPod’) != -1)) {
document.location = “http://www.celtu.com/iphone/”;
}

References for details:

http://www.engageinteractive.co.uk/blog/2008/06/19/tutorial-building-a-website-for-the-iphone/#detection

example: http://www.engageinteractive.co.uk/tutorials/iphone/index.html

http://www.engageinteractive.co.uk/tutorials/iphone/tutorial.html

http://developer.apple.com/iphone/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html

http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/TextandWeb/TextandWeb.html

iphone ajax:

http://developer.apple.com/safari/articles/optimizingajax.html

Post to Twitter Tweet This Post

  • Share/Bookmark

How to create your own Wordpress Theme in 5 minutes

Monday, July 27th, 2009

I assume you have downloaded wordpress, created db on your local and have installed connections of wordpress blog on your local or blog is running on your hosting site (if hosting you have to update paths from local to per your hosting folders or per your mac folders).

Creating or renaming Wordpress theme:

1)
create a folder your_theme_name (under: C:\www\blog.domain.com\wp-content\themes\)
copy all files (from:C:\www\blog.domain.com\wp-content\themes\default) and paste (here:C:\www\blog.domain.com\wp-content\themes\your_theme_name)

2)
Edit this (C:\www\blog.domain.com\wp-content\themes\themeName\style.css):
/*
THEME NAME: ThemeName
THEME URI: http://www.yourdomain.com/
DESCRIPTION: This theme is based on http://yourdomain.com and making to look similar to yourdomain.com
VERSION: 1.0
AUTHOR: yourdomain UI Team
AUTHOR URI: http://www.yourdomain.com
*/

3)
copy screenshot image of your created theme in:
C:\www\blog.domain.com\wp-content\themes\themeName

4)
Go to your blog using browser and login (blog.com/wp-login.php) and now you can see your blog theme name and screenshot to select

If you got lots of time and wanna go very soophisticated manners follow this link:

http://jonathanwold.com/tutorials/wordpress_theme/

Post to Twitter Tweet This Post

  • Share/Bookmark

Setting up Xampp and Wordress with Database on local Windows XP SP3

Thursday, July 23rd, 2009

1)
Download and install xampp server for windows:

http://www.apachefriends.org/en/xampp-windows.html#646

2)
Create a db (name: wordpress) after running xamp server on xp:

http://localhost/phpmyadmin/

3)
Paste this selecting exact lines (in C:\www\blog.yourdomain.com\wp-config.php (note: file name may require renaming wp-config_sample.php to wp-config.php. I create www folder in c: and keep my virtual host there))
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘root’); // Your MySQL username (you can create your own user giving it all privileges to get this job done)
define(‘DB_PASSWORD’, ”); // …and password
define(‘DB_HOST’, ‘localhost’); // you can keep localhost or blog.yourdomain.com here

4)
Setting virtual host edit:
C:\WINDOWS\system32\drivers\etc\hosts
add following:
127.0.0.1    blog.yourdomain.com # you can write here anything you want but make sure same named folder or at least same virtual host should be in your xampp vhost file (C:\xampp\apache\conf\extra\httpd-vhosts.conf)

5)
Add this (in C:\xampp\apache\conf\extra\httpd-vhosts.conf):

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs/
# change this line with your htdocs folder
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot “c:\www\blog.yourdomain.com”
ServerName blog.yourdomain.com
<Directory “c:\www\blog.yourdomain.com”>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

6)
This has been tested before forming in numbered steps

Troubleshooting:
- Make sure no spelling mistakes
- Make sure you don’t forget the password
- Make sure you have followed exact steps
- Make sure you have server running properly

Version and dates:
Xamp version 1.7.1
Wordpress Version 2.7
Windows XP SP3
July 23, 2009
07/22/09

Post to Twitter Tweet This Post

  • Share/Bookmark

Setting Virtual Host using Mamp on Leopard 10.5.x

Thursday, July 23rd, 2009

1) apple+shift+g
typewrite: /etc/
and hit enter, you will see a folder with many files right click on hosts file and edit with text edit or any other editor, I used BBEdit.
Typewrite at the end of file: 127.0.0.1 mysite.com

2) Cretae a folder in /Applications/Mamp/htdocs2
create an html file index.html in this folder

3) Add following in this file ( /Applications/MAMP/conf/apache/httpd.conf):
NameVirtualHost *
DocumentRoot “/Applications/MAMP/htdocs”
ServerName localhost
DocumentRoot “/Applications/MAMP/htdocs2″
ServerName mysite.com

4) Stop and Start MAMP server

5) Go to web browser typewrite in address bar:
mysite.com (you should see your html page)

Troubleshooting:
if you don’t see web page in browser then clear cache (shift+refresh), or check your path or check if you have any typewriting error and server is running fine.
If your host file is not editable then easiest way is download this widget (in every case you have to have admin rights and you have to know the admin password):

http://www.apple.com/downloads/dashboard/networking_security/hostswidget.html

FAQ:

What is MAMP?

It’s an apache, mysql and php server that is used to develop php and mysql based site.

Post to Twitter Tweet This Post

  • Share/Bookmark

43% internet users will be from Asia by 2013

Tuesday, July 21st, 2009

http://www.forrester.com/Research/Document/Excerpt/0,7211,53355,00.html

Post to Twitter Tweet This Post

  • Share/Bookmark

iphone 4g

Tuesday, July 21st, 2009

This company makes iphone for apple:

http://www.foxconn.com/NWInG/products/default.asp

Post to Twitter Tweet This Post

  • Share/Bookmark

Adobe rolls out open source for Text and Flash

Tuesday, July 21st, 2009

http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework

http://opensource.adobe.com/wiki/display/osmf/Open+Source+Media+Framework

Post to Twitter Tweet This Post

  • Share/Bookmark

wow I did not know of it

Monday, July 13th, 2009

5th largest fresh water reserve (lake baikal in syberia) in russia largest russian treasure:

http://www.baikal.eastsib.ru/baikalfacts/index.html

It’s black when you dive

Pronounced “baa-e-call”

It’s right by mongolian border containing more water than canada and American fresh water together.

Post to Twitter Tweet This Post

  • Share/Bookmark

Installing macbook pro through macbook CD drive:

Monday, July 13th, 2009

Installing macbook pro through macbook CD drive:

Dave, here is a more detailed set of instructions:

Insert the Macbook recovery disk into the Macbook.

Restart the Macbook Pro while holding down the T key. The screen should show a firewire logo bouncing around the screen. This means you are in target disk mode.

Link the Macbook and Macbook Pro together with a 6 to 6 pin firewire cable.

Proceed to the OSX install program on the Macbook by clicking the Install icon on the disk and restart when prompted.

When the install program asks which disk you would like to install to, you should be able to select your “external” Macbook Pro’s disk.

Proceed with the install, and when it’s finished, restart your Macbook Pro, and you should be in business.

I hope this helped!

Post to Twitter Tweet This Post

  • Share/Bookmark

Running IE6 on Leopard osx 10.5

Monday, July 13th, 2009

Minimum requirement is Intel Based Mac and OS 10.5.1 or Leopard Software

To run IE6 on Leopard IE6 on Mac:

 

1) Download and install X11 2.2.3:

http://xquartz.macosforge.org/trac/wiki/X112.2.3

 

2) Download and install Darwine for OS X

http://www.kronenberg.org/darwine/

 

3) Download and install ies4OSX:

http://www.kronenberg.org/ies4osx/

(Note: follow installation instructions and order as well)


Post to Twitter Tweet This Post

  • Share/Bookmark