How to get video id from a Youtube url in Javascript?
Snippete.g. if the youtube, video url is:http://www.youtube.com/watch?v=xptDCPlSSfI& The snippet will return xptDCPlSSfI var url = "http://www.youtube.com/watch?v=xptDCPlSSfI"; var video_id =...
View ArticleHow to configure PhpMyAdmin in Apache WebServer?
A typical configuration of PhpMyAdmin as configured in apache.conf looks like.# phpMyAdmin default Apache configurationAlias /phpmyadmin /usr/share/phpmyadmin<Directory /usr/share/phpmyadmin>...
View ArticleHow to embed Youtube Video using from flashvars using HDFlvPlayer?
SnippetThe following snippet shows the HDFlashPlayer embeding a YouTube video into HTML using the FlashVars. It assumes the the flash player is located in hdflvplayer/hdplayer.swf relative to the page...
View ArticleWhat is YUI Library?
<!--?xml version="1.0" encoding="UTF-8"?-->The YUI Library is a set of utilities and controls, written with JavaScript and CSS, for building richly interactive web applications using techniques...
View ArticleSELinux does not allow Apache to use Sendmail
SELinux is activated and configured by default. As such SELinux does not allow Apache (httpd,phpmailer) to use the sendmail function and make any sort of network connection.Using the getsebool command...
View ArticleWhat are the various HTML Entities?
HTML EntitiesHTML has some special reserved characters e.g. < , > etc. that have special meaning and thus cannot be used freely in the document. But what if we have to display an > or < in...
View ArticleHow to create a shortcut to Export images in Pixelmator?
Pixelmator is a great Photo Editing tool for Mac. However of the important function like Exporting the image to PNG, JPEG etc. is not accessible via a shortcode. This is required specially when you one...
View Article[Errno 13] Permission denied: when installing CherryPy Python Framework
Common Issuemymac:CherryPy-3.2.2 mvohra$ python setup.py installrunning installerror: can't create or remove files in install directoryThe following error occurred while trying to add or remove files...
View ArticleWhat are Micro Frameworks for Python Web Development?
What are Micro Frameworks? • Minimalist approach that helps to python websites • Examples – Bottle.py, Flask, Cherry Python, many others • Maps URL routes to Python function calls: –Request Routing...
View ArticleHow to check the version of MySQL database using Python?
#!/usr/bin/python# -*- coding: utf-8 -*- import MySQLdb as mdbimport sys con = None try: con = mdb.connect('localhost','username', 'password','dbname'); cur = con.cursor()...
View ArticleThread Dump in JSP
<%@ page language="java" import="java.util.*,java.lang.Thread.State" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%><html><head><meta...
View ArticleCoolest Things in HTML5
HTML (hypertext markup language) is very used markup language for the building the web pages. Currently we are using version 4.x of this great language. HTML 5 is the next revision of the HTML language...
View ArticleSetup URL Redirection in Apache
Let's say you have changed the location of one page to another. Since the url for the page has changed, when some other tries to reach that page via Search Engine or a Bookmark, they would get a HTTP...
View ArticleHow to proxy static content via Apache Server?
Basically the content in a website can be categorized into to categories:Dynamic content - generated by using of Web Sever/Application Server runing JSP, Servlets etc. This content is dynamically...
View ArticleApache Server Guide
This guide provides a collection of articles related to Apache Web Server.
View ArticleWhat are the advantages of Spring MVC over Struts(Original)?
When we talk about MVC frameworks Struts(original and not Struts2) is the first framework that comes to mind, not only its because has been the pioneers in this space, but its one of best frameworks...
View ArticleBefore you begin creating a website
So before you begin to create a site, let review what down the road. Please review the following topics. How to Create Website
View ArticleBasic skills needed to create a Website
Basically I assume the following about you skills and resources at you disposal to get started.<!--break--> Minimum You have a basic knowledge of computers.Have a good knowledge of written...
View ArticleWebmaster's evaluate your technical skills
Lets see where you stand here.How much technical know how do you have? Classify your self.Low - Just know basic computer, MS Word etc.Medium - Know HTML, CSS, Photo Editing, Blogs etc.High - Know...
View ArticleHow to retreive web page contents using Ruby?
This script retrieves the content of url and dumps it to the output .Example copy this script into file named : get_page.rb#!/usr/bin/rubyrequire 'net/http'host,port,url = ARGV http =...
View ArticleHow to clean Rails Sessions?
By default rails does not clear out stale sessions from the session store. If Depending on the configuration session can be stored in the local file system or the database.Method 1: (Applies to File...
View ArticleWebsite Niche Selection
Finding the right Nicheis one of important elements to look at carefully. The following guide will help you figure it out.
View ArticleUnderstanding RSS Feed in Plain English
RSS -Rich Site SyndicationA very simple and clear explanation in layman terms what is RSS.
View ArticleHow to disable secure and non secure warning message in IE 6?
IE6 has been outdated and not much supported, however still its in use a lot of places. One of common issues that we see is annoying warning "This page contains both secure and non secure items. Do you...
View ArticleWhat is difference between RGB and CMYK?
RGB vs. CMYKComputer or Web graphics use the RGB color mode. RGB stands for Red, Green and Blue. These colors combine to make the colors displayed on a computer monitor.CMYK stands for Cyan, Magenta,...
View ArticleWhat is WebP?
AnswerWebP is a new image format like JPG, PNG etc. developed by Google. Currently one of the main reason for slowness for web page loading is due to fact there are lot of images on the page and the...
View ArticleWhat is SPDY?
AnswerSPDY is a new web protocol developed by Google that will help to browse the Web faster (even 50%). It's pronounced as "speedy". It is not meant to replace HTTP, but to augment HTTP. The new...
View ArticleWha is Google Swiffy?
Swiffy is an experimental tool launched by Google in its Labs. It allows developers to convert Flash (SWF) files to HTML5. That means you can reuse Flash content on devices without a Flash Player, even...
View ArticleHow to create RSS Feed for a website not having RSS Feed?
Some websites even till date don't provide an RSS as either they are not actively working on it or are a legacy website and don't know or provide the option, some Free services are available like...
View ArticleHow do create multi select checkboxes in HTML?
Let's say you have html form where in you can accept multiple values for a same field and the GUI has to be presented as a series of checkboxes the user can check/uncheck.This is done by using the...
View ArticleWhat is image slicing?
Most of the websites are designed in photo editing software such as Photoshop then are 'sliced'. Slicing is the process of cutting up the image into smaller logical images. Normally these tools don't...
View ArticleWarning: mysql_connect(): [2002] No such file or directory
IssueWarning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Users/Mvohra/Sites/projects/webservices/apps/functions.php on line 8Warning:...
View ArticleWarning: mysql_connect(): [2002] No such file or directory
IssueWarning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in /Users/Mvohra/Sites/projects/webservices/apps/functions.php on line 8Warning:...
View ArticleHow to repair table marked as crashed in MySQL?
MySQL is a very common choice for webmasters and is pretty good and stable database. At times if the database is not shutdown cleanly (due to machine reboot etc.) it can leave the database in an...
View ArticleHow to make a straight line in Pixelmator?
SolutionTo make a straight line:1. Select the Brush Tool (B).2. Click on the canvas where you want to start drawing the line.3. Hold Shift and click at the point where you want to end the line, or if...
View ArticleUnderstanding Google PageRank Factors
Every now and then webmasters ask how can I increase my PageRank? The reason they ask is because the more the PageRank, the more are the chances for your content/page to get included higher in the...
View ArticleRuby Cheat Sheet
Ruby is a wonderful language for general purpose scripting and serious web development as well. Developers who want to learn Ruby or already know Ruby can benefit from this cheat sheet that I had...
View ArticleHow to create nosiy captcha using RMagick?
require'Rmagick' class NoisyImage include Magick attr_reader :code, :code_image Jiggle = 15 Wobble = 15 def initialize(len) chars = ('a'..'z').to_a-['a','e','i','o','u']...
View ArticleHow to create 2D Canvas in HTML5 using Javascript?
SnippetThe following snippet shows how to create a div called as canvas (can be any name) and then in javascript we get the handle to canvas by calling document.getElementById method. Finally we get...
View Article