Monday, September 28, 2009

MYSQL Tips

Command line importing

d:cd D:\wamp\bin\mysql\mysql5.1.33\bin

mysql -uDBNAME -pPASSWORD DBNAME < SQLFILENAME
 if there is no password(localhost) you can ommit the word starting with -p

Referential integrity(Foreign key)
http://articles.techrepublic.com.com/5100-10878_11-6035435.html


CREATE TABLE species (id TINYINT NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, PRIMARY KEY(id)) ENGINE=INNODB;# MySQL returned an empty result set (i.e. zero rows).

INSERT INTO species VALUES (1, 'orangutan'), (2, 'elephant'), (3, 'hippopotamus'), (4, 'yak');# 4 row(s) affected.

CREATE TABLE zoo (id INT(4) NOT NULL, name VARCHAR(50) NOT NULL, FK_species TINYINT(4) NOT NULL, INDEX (FK_species), FOREIGN KEY (FK_species) REFERENCES species (id), PRIMARY KEY(id)) ENGINE=INNODB;# MySQL returned an empty result set (i.e. zero rows).


INSERT INTO zoo VALUES (1, 'Harry', 5);

will fail

ON DELETE  or  ONUPDATE

granding remote access to database(use with sql yog)

in cpanel homepage there is an option called 'remote databasese
click it and add % (wildcard to allowed ips)

upload phpmyadmin after editing config.inc.php
set
$cfg['Servers'][$i]['auth_type'] = 'cookie';
RESTRICT | CASCADE | SET NULL | NO ACTION

Friday, September 25, 2009

OpenID

Why OpenID?

It's a single username and password that allows you to log in to any OpenID-enabled site.

It works on thousands of websites.

It's an open standard.

learn more »
get one »

Flash debug player 10 and firefox 3.5

When you want to debug flash applications in a browser you need to have flash debug player
Some say that you have to unisntall original flash player first.


Download Location:
http://www.adobe.com/support/flashplayer/downloads.html

download and install it.use 'trace(flash.system.Capabilities.isDebugger);' in a flash file and run it to make sure flash debug player is installed perfectly.(it will show 'true' )
It will log the trace out puts into a text file in out PC.Though there are good articles on how to view trace outputs of flash applicationsrun in a browser,I wasnt able to figure it out for a couple of hours though i got good articles like this one

http://stackoverflow.com/questions/864155/see-trace-of-flash-when-running-in-browser/864346#864346

.I created mm.cfg ,kept changing 'TraceOutputFileName', tried putting flashlog.txt on different locations .still no hope flashlog.txt was always blank

Finally I found it .the reason was mentioned here

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=logging_125_04.html#196092

flashlog.txt location is hard coded,cant be controlled from flash player 9 version.The locations are given in the table at the bottomm.Yet I did one more wrong step.I saw that the flash log location is 'C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt ' ,but since macromedia was aquired by adobe,I it should be 'C :\Documents and Settings\user_name\Application Data\Adobe\Flash Player\Logs\flashlog.txt '.Which resutlted in loss of few more minutes.Finally i decide to give it a try to look at C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt and bingo i could see the flash trace() out puts.

I wonder why adobe is sill keeping the log file location in macromedia folder.Whatever it is I can see the trace ouptuts of flash applications run inside a browser and i am happy man :)


Operating system

Location of flashlog.txt

Macintosh OS X

MacHD:Users:user_name:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.txt

Microsoft Windows Vista

C:\Users\user_name\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt

Windows 95/98/ME/2000/XP

C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs\flashlog.txt

Linux

/home/user_name/.macromedia/Flash_Player/Logs/flashlog.txt

Dreamweaver Tips

Rollover Images
  1. create an html file
  2. nsert an image by insert->images
  3. then click on the image and go to behavious pane
  4. click + and select swap images
  5. click the second image with which u want to swap and click ok
  6. and see the result in the browser

Monday, September 21, 2009

Magento Tips

Admin login issue

http://www.nickbartlett.com/wordpress/magento-cannot-log-into-admin/
http://web-funda.blogspot.com/2009/07/magento-admin-login-problem.html

The solution is to add the following line to your hosts file so you can access your localhost as www.localhost.com.

C:Windows\System32\drivers\etc\hosts (edit this file in notepad)
127.0.0.1        magento.localhost.com www.localhost.com

Sunday, September 20, 2009

SEO


Good seo tutorial
Google Algorithm Updates: http://www.seomoz.org/google-algorithm-change
Nice analysis tool
http://www.seoworkers.com/tools/analyzer.html
Keyword density tool
http://tools.seobook.com/general/keyword-density/
Ranking Factors
http://www.vaughns-1-pagers.com/internet/google-ranking-factors.htm

SERP checker tool

http://www.seoserp.com/web_tools/google_top_1000_serps_checker.asp
http://www.webmasterconsole.com/s/keyword-position-serp-tracker/

Using 'filters' in google analytics for getting SERP
http://www.dannytalk.com/track-seo-organic-rankings-with-google-analytics/

http://www.justsearchseo.co.uk/search-engine-optimisation/using-filters-in-google-analytics-to-report-on-serp-ranking-positions.html

http://www.chrisabernethy.com/tracking-keyword-ranking-position-with-google-analytics/



Onsite SEO
-----------
1.keywords finalization
2.set title and meta tags properly
3.check w3 validation for all pages
4.url optimization
5.IBP
6.ensure keyword density
6.set 404 header for removed pages
7.update site maps
8.remove broken links
9.anchor tags
10.header tags
11.seo footer

Offsite
------------
1.link-building/blog/directory-listing/article-submission
2.get pr3 sites
3.check pages indexec by google
4.viewership(alexa)
5.facebook,twitter,blogpot,youtube,googlebase,wordpress,linked in,stumble upon,delicious


Proposed SEO Process Summery 
Investment Per Month
USD 750
Estimated Duration
10 Months
Service Tax
nil
Onsite SEO
Yes
Search Engine Marketing Strategy Development
Yes
Detailed Site Analysis
Yes
Competitor Analysis
Yes
Number of Keywords
36
Initial Search Engine Ranking report
Yes
Web Pages optimized
Yes
Web Site Navigation Optimization
Yes
HTML Code and Meta-Content Optimization
Yes
Images and Links to be Optimization
Yes
Robot.txt Optimization
Yes
HTML sitemap creation
Yes
XML sitemap generation & submission
Google, Yahoo & MSN
Google Analytics Setup and Review
Yes
RSS Feed Generation and submission
Yes
W3c validations of website
Yes
 Google Base Feeds
Yes
Offsite SEO(MONTHLY BASIS)

Directory submission (relevant sites only)
120
Article submission
300
Social Bookmarking
60
Press Release submission
60
Blog creation and updating
15
Classified ad creation and posting
15
Forum posting
72
Video optimization
10
REPORTS

Search Engine Ranking Reports
Yes
Email/Chat customer support
Yes
Traffic Reports
Yes
DELIVERY TARGETS

Assured First 10 Listing in Google for keywords
 Minimum 25
Top page ranking on Yahoo or MSN for keywords
 Minimum 14



Bringing traffic
http://www.stunningmesh.com/2010/02/34-ways-to-bring-traffic-to-your-website-or-blog/
Another good SEO tutorial
seo tutorial
SEO Tools:http://www.webconfs.com/
SERP checking:http://www.getserp.com/
Supplemental Result:http://en.wikipedia.org/wiki/Supplemental_Result
noindex meta tag
Google USA (and other different countris): http://wwp.greenwichmeantime.in/time-zone/usa/websites/google.com/google-usa.htm
Main items that need to be taken care for good seo of a site
  1. Create meta tags for keywords and discussion in your page
  2. Create relevant contents with respect to meta keywords and description .This is important as search engines have mechanism to know he importance of contents .There should not be same contents for 2 different url,for it will be regarded as duplicate content which will degrade search engine appreciation and even result in getting penalized
  3. If possible create search engine friendly urls for pages 
  4. Set relevent 'title'for the page
  5. Make the pages w3c compliant.
  6. Create sitemaps for search engines  and save it in root folder
  7. Create robots.txt for pages you dont want to be public
  8. Create back links from relevant pages  to relevant pages of your site,importance through 'page ranking' 
  9. Add url to search engines.Top search engines in my view are listed below












     Major search engine guidelines:











    1. Google Webmaster Guidelines - http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35 769
    2. Yahoo! Search Content Quality Guidelines - http://help.yahoo.com/l/us/yahoo/search/basics/basics-18.html
    3. MSN Guidelines for successful indexing - http://tinyurl.com/MSN-Guidelines [link was shortened as the original is really long one]







A good article can be seen at http://seo-dns.com/en/sem/seo/ and http://www.submitside.com/
http://news.stepforth.com/blog/2008/04/how-to-optimize-for-google-part-1-of-3.php


Listof many social bookmarking sites can be seen at
http://www.searchenginejournal.com/125-social-bookmarking-sites-importance-of-user-generated-tags-votes-and-links/6066/

http://www.socialmarker.com/

http://www.netbuilders.org/social-bookmarking/list-more-than-200-social-bookmarking-sites-5876.html

 
 Also check articles on
The Search Engines Industry
Google Search Technology
SEO Techniques
Search Engines and Directories
Link Popularity and Linking Strategies
Keyword Selection and Optimization Strategies
Working with Meta Tags
Blackhat SEO techniques
For more information’s about how Google works take a look on these websites:
http://www.googleguide.com/google_works.html
http://www.portfolio.com/interactive-features/2007/08/google
http://www.portfolio.com/culture-lifestyle/goods/gadgets/2007/08/13/Ho w-Google-Works
http://en.wikipedia.org/wiki/Index_%28search_engine%29
And for last, but not least: What Google thinks about SEO and what they suggest?http://www.google.com/support/webmasters/bin/answer.py?answer= 35291

Supplemental Results
Tools
http://www.ibusinesspromoter.com/
Google Keyword tool to get ideas on type of keyword combinations that could be put in search
Search based keyword to get ideas on keywords actually searched in google
Search Engine Ranking factors that determine ranking and -ve ranking
Google SEO starter guide
Easy Remember URL + Quick Reference Toolbox
 Google Website Optimization tool
Official Google Website Optimizer Blog


SEO-Press-Releases-How-to-Write-them-and-Where-to-Submit-Them

for free keyword sugestions:https://adwords.google.com/select/KeywordToolExternal 
more options on suggestions:
http://www.georgescifo.com/2010/06/effective-keyword-research-for-better-search-engine-results/
http://www.squidoo.com/Finding-The-Latest-Trends

 

Loading speed optimization tester

Flash SEO:
http://googlewebmastercentral.blogspot.com/2008/06/improved-flash-indexing.html
Official google webmaster blog
http://googlewebmastercentral.blogspot.com/
google local bussiness sumission url :
http://www.google.com/LocalBusinessCenter