<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vintez Blog</title>
	<atom:link href="http://www.vintez.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vintez.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 12 Nov 2011 09:35:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Check Domain Name Availability</title>
		<link>http://www.vintez.com/blog/2011/11/test-domain-name/</link>
		<comments>http://www.vintez.com/blog/2011/11/test-domain-name/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 09:34:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Domain]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=101</guid>
		<description><![CDATA[Hi Guys to check the domain available or not and get it implement on PHP in your own site, you must use whois api. 1. Create a developer account on WHOIS. 2. The use following code to use in your PHP script DomainInfo; if($domainInfo){ echo &#8220;Domain name: &#8221; . print_r($domainInfo->domainName,1) .&#8221;&#8220;; echo &#8220;Domain Availability: &#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Guys to check the domain available or not and get it implement on PHP in your own site, you must use whois api.</p>
<p>1. Create a developer account on WHOIS.<br />
2. The use following code to use in your PHP script</p>
<p><?php<br />
  $contents = file_get_contents("http://www.whoisxmlapi.com//whoisserver/WhoisService?domainName=test.in&#038;cmd=GET_DN_AVAILABILITY&#038;username=username&#038;password=password&#038;outputFormat=JSON");<br />
  $contents = str_replace('\\', '', $contents);</p>
<p>  $res=json_decode($contents);</p>
<p>  $domainInfo = $res->DomainInfo;<br />
  if($domainInfo){<br />
    echo &#8220;Domain name: &#8221; . print_r($domainInfo->domainName,1) .&#8221;<br/>&#8220;;<br />
    echo &#8220;Domain Availability: &#8221; .print_r($domainInfo->domainAvailability,1) .&#8221;<br/>&#8220;;</p>
<p>    //print_r($domainInfo);<br />
  }<br />
?></p>
<p>Try it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/11/test-domain-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count NULL fields for single or multiple columns in a table</title>
		<link>http://www.vintez.com/blog/2011/11/count-null-fields-for-single-or-multiple-columns-in-a-table/</link>
		<comments>http://www.vintez.com/blog/2011/11/count-null-fields-for-single-or-multiple-columns-in-a-table/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 08:52:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=99</guid>
		<description><![CDATA[ere we have a table named car and we want to calculate how many NULL values are there in &#8216;check&#8217; and &#8216;flag&#8217; fields CREATE TABLE IF NOT EXISTS `car` ( `id` int(8) NOT NULL AUTO_INCREMENT, `brand` varchar(255) NOT NULL, `check` int(1) DEFAULT NULL, `flag` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 [...]]]></description>
			<content:encoded><![CDATA[<p>ere we have a table named car and we want to calculate how many NULL values are there in &#8216;check&#8217; and &#8216;flag&#8217; fields   </p>
<p>CREATE TABLE IF NOT EXISTS `car` (<br />
  `id` int(8) NOT NULL AUTO_INCREMENT,<br />
  `brand` varchar(255) NOT NULL,<br />
  `check` int(1) DEFAULT NULL,<br />
  `flag` int(1) DEFAULT NULL,<br />
  PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;</p>
<p>&#8211;<br />
&#8211; Dumping data for table `car`<br />
&#8211;</p>
<p>INSERT INTO `car` (`id`, `brand`, `check`, `flag`) VALUES<br />
(1, &#8216;Porsche&#8217;, NULL, 1),<br />
(2, &#8216;Renault&#8217;, 1, NULL),<br />
(3, &#8216;sadsa&#8217;, NULL, 1),<br />
(4, &#8216;asdasd&#8217;, NULL, NULL);</p>
<p>Query run<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
select<br />
sum(@chk:=if(ISNULL(`check`),0,@chk)+1) as CHKTOTAL,<br />
sum(@flg:=if(ISNULL(`flag`),0,@flg)+1) as FLGTOTAL<br />
FROM `car` <where condition></p>
<p>Returns<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
CHKTOTAL		FLGTOTAL<br />
3.000000		2.000000</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/11/count-null-fields-for-single-or-multiple-columns-in-a-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to move Dropdown Menu Over Flash Object</title>
		<link>http://www.vintez.com/blog/2011/10/how-to-move-dropdown-menu-over-flash-object/</link>
		<comments>http://www.vintez.com/blog/2011/10/how-to-move-dropdown-menu-over-flash-object/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 19:46:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Designing]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=95</guid>
		<description><![CDATA[This is a general question always arises in my mind that how can I make my drop-down menu over a flash object. On designing I get two tricky things to set which make it possible. 1. Add wmode &#8211; transparent to your flash object. 2. Make z-index to max level in drop-down css. e.g. In [...]]]></description>
			<content:encoded><![CDATA[<p>This is a general question always arises in my mind that how can I make my drop-down menu over a flash object. On designing I get two tricky things to set which make it possible.</p>
<p>1. Add wmode &#8211; transparent to your flash object.<br />
2. Make z-index to max level in drop-down css.</p>
<p>e.g.<br />
In your flash object set following</p>
<param name="wmode" value="transparent">
<p>and<br />
In css file of your top class set<br />
z-index: 10000;</p>
<p>Thus, I come across the solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/10/how-to-move-dropdown-menu-over-flash-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add new font to your website</title>
		<link>http://www.vintez.com/blog/2011/10/new-font-for-website-css/</link>
		<comments>http://www.vintez.com/blog/2011/10/new-font-for-website-css/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 06:49:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=92</guid>
		<description><![CDATA[Hi frnds I come across to add anew font file to my website, With a little research i meet with the solution as follows: Step 1: Make a dir with name font and save the font files. Step 2: In the css file add this as body font face. Here I used font CronosPro font [...]]]></description>
			<content:encoded><![CDATA[<p>Hi frnds I come across to add anew font file to my website, With a little research i meet with the solution as follows: </p>
<p>Step 1: Make a dir with name font and save the font files.</p>
<p>Step 2: In the css file add this as body font face.<br />
Here I used font CronosPro font for my website </p>
<p>@font-face {<br />
	font-family: &#8216;Conv_CronosPro-Regular&#8217;;<br />
	src: url(&#8216;../fonts/CronosPro-Regular.eot&#8217;);<br />
	src: local(&#8216;?&#8217;), url(&#8216;../fonts/CronosPro-Regular.woff&#8217;) format(&#8216;woff&#8217;), url(&#8216;../fonts/CronosPro-Regular.ttf&#8217;) format(&#8216;truetype&#8217;), url(&#8216;../fonts/CronosPro-Regular.svg&#8217;) format(&#8216;svg&#8217;);<br />
	font-weight: normal;<br />
	font-style: normal;<br />
	font-size:12px;<br />
}</p>
<p>Hope this help you out&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/10/new-font-for-website-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to remove \n from a string in PHP</title>
		<link>http://www.vintez.com/blog/2011/10/how-to-remove-n-from-a-string-in-php/</link>
		<comments>http://www.vintez.com/blog/2011/10/how-to-remove-n-from-a-string-in-php/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 13:13:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=90</guid>
		<description><![CDATA[// Variable decleared $foo = &#8221; this is a block &#8220;; function nl2br_limit($string, $num){ $dirty = preg_replace(&#8216;/\r/&#8217;, &#8221;, $string); $clean = preg_replace(&#8216;/\n{4,}/&#8217;, str_repeat(&#8220;&#8221;, $num), preg_replace(&#8216;/\n/&#8217;, &#8216; &#8216;, $dirty)); return nl2br($clean); } echo nl2br_limit($foo,&#8217;4&#8242;); Remove (4) if u want for all. enjoy]]></description>
			<content:encoded><![CDATA[<p>// Variable decleared<br />
$foo =<br />
&#8221;<br />
this<br />
is<br />
a<br />
block</p>
<p>&#8220;;<br />
function nl2br_limit($string, $num){</p>
<p>$dirty = preg_replace(&#8216;/\r/&#8217;, &#8221;, $string);<br />
$clean = preg_replace(&#8216;/\n{4,}/&#8217;, str_repeat(&#8220;&#8221;, $num), preg_replace(&#8216;/\n/&#8217;, &#8216; &#8216;, $dirty));</p>
<p>return nl2br($clean);<br />
}</p>
<p>echo nl2br_limit($foo,&#8217;4&#8242;);</p>
<p>Remove (4) if u want for all. enjoy <img src='http://www.vintez.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/10/how-to-remove-n-from-a-string-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax loading with Jquery</title>
		<link>http://www.vintez.com/blog/2011/09/ajax-loa/</link>
		<comments>http://www.vintez.com/blog/2011/09/ajax-loa/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 10:52:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=83</guid>
		<description><![CDATA[Hi Frnds, I get come across a nice way to load Ajax response with Jquery function sync_image(arg1,arg2,..) { if(confirm(&#8220;alert msg&#8221;)) { $(&#8220;#ids_to_hide&#8221;).hide(); $(&#8220;#ids_to_show&#8221;).show(); var url = &#8220;file.php&#8221;; //file url to call $.ajax({ type: &#8220;GET&#8221;, url: url, success: function(msg){ $(&#8220;#id_to_hide&#8221;).hide(); $(&#8220;#id_to_show&#8221;).show(); } }); } }]]></description>
			<content:encoded><![CDATA[<p>Hi Frnds,<br />
I get come across a nice way to load Ajax response with Jquery</p>
<p>function sync_image(arg1,arg2,..)<br />
{<br />
	if(confirm(&#8220;alert msg&#8221;))<br />
	{<br />
		$(&#8220;#ids_to_hide&#8221;).hide();<br />
		$(&#8220;#ids_to_show&#8221;).show();<br />
		var url = &#8220;file.php&#8221;; //file url to call<br />
		$.ajax({<br />
			type: &#8220;GET&#8221;,<br />
			url: url,<br />
			success: function(msg){<br />
				$(&#8220;#id_to_hide&#8221;).hide();<br />
				$(&#8220;#id_to_show&#8221;).show();</p>
<p>			}<br />
		});<br />
	}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/09/ajax-loa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get last 10 working days</title>
		<link>http://www.vintez.com/blog/2011/08/how-to-get-last-10-working-days/</link>
		<comments>http://www.vintez.com/blog/2011/08/how-to-get-last-10-working-days/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 07:13:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Date]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=79</guid>
		<description><![CDATA[$i=1; $fromdate = date(&#8216;Y-m-d&#8217;); //$todate = date(&#8216;Y-m-d&#8217;); $todate = date(&#8216;Y-m-d&#8217;, mktime(0, 0, 0, date(&#8220;m&#8221;) , date(&#8220;d&#8221;)-1, date(&#8220;Y&#8221;))); list($y, $m, $d) = split(&#8220;-&#8221;, $todate); $weekends = array(&#8216;Sunday&#8217;, &#8216;Saturday&#8217;); $tenDateArray = array(); while($i]]></description>
			<content:encoded><![CDATA[<p>$i=1;<br />
$fromdate = date(&#8216;Y-m-d&#8217;);<br />
//$todate = date(&#8216;Y-m-d&#8217;);<br />
$todate = date(&#8216;Y-m-d&#8217;, mktime(0, 0, 0, date(&#8220;m&#8221;)  , date(&#8220;d&#8221;)-1, date(&#8220;Y&#8221;)));<br />
list($y, $m, $d) = split(&#8220;-&#8221;, $todate);<br />
$weekends = array(&#8216;Sunday&#8217;, &#8216;Saturday&#8217;);</p>
<p>$tenDateArray = array();<br />
while($i<=10)<br />
{<br />
	$day = date(&#8216;l&#8217;, mktime(0, 0, 0, $m, $d, $y));<br />
	if(!in_array($day, $weekends))<br />
	{<br />
		$i++;<br />
		$tenDateArray[] = date(&#8216;Y-m-d&#8217;, strtotime(&#8216;-0 day&#8217;, strtotime($todate)));<br />
	}<br />
	$todate = date(&#8216;Y-m-d&#8217;,strtotime(&#8216;-1 day&#8217;, strtotime($todate)));<br />
	list($y, $m, $d) = split(&#8220;-&#8221;, $todate);<br />
}<br />
$to10date = $tenDateArray[max(array_keys($tenDateArray))];</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/08/how-to-get-last-10-working-days/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Add working days</title>
		<link>http://www.vintez.com/blog/2011/07/add-working-days/</link>
		<comments>http://www.vintez.com/blog/2011/07/add-working-days/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 10:01:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Date]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=76</guid>
		<description><![CDATA[Hi, need to create a function which return week working days and also add (optional) if require : function getAddDate($date,$day=0) { $dates = explode(&#8220;-&#8221;, $date); $tomorrow = mktime(0, 0, 0, $dates[1] , $dates[2]+$day, $dates[0]); $day = date(&#8216;D&#8217;, $tomorrow); if($day==&#8217;Sat&#8217;) $day_inc = 3; if($day==&#8217;Sun&#8217;) $day_inc = 2; return date(&#8216;Y-m-d&#8217;, mktime(0, 0, 0, $dates[1] , $dates[2]+$day_inc, $dates[0])); [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, need to create a function which return week working days and also add (optional) if require : </p>
<p>function getAddDate($date,$day=0)<br />
	{<br />
		$dates = explode(&#8220;-&#8221;, $date);</p>
<p>		$tomorrow  = mktime(0, 0, 0, $dates[1]  , $dates[2]+$day, $dates[0]);<br />
		$day = date(&#8216;D&#8217;, $tomorrow);<br />
		if($day==&#8217;Sat&#8217;)<br />
			$day_inc = 3;<br />
		if($day==&#8217;Sun&#8217;)<br />
			$day_inc = 2;<br />
		return  date(&#8216;Y-m-d&#8217;, mktime(0, 0, 0, $dates[1]  , $dates[2]+$day_inc, $dates[0]));<br />
	}</p>
<p>getAddDate(&#8216;YYYY-mm-dd&#8217;,1);<br />
It work out..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/07/add-working-days/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jquery Input by Name</title>
		<link>http://www.vintez.com/blog/2011/06/jquery-input-by-name/</link>
		<comments>http://www.vintez.com/blog/2011/06/jquery-input-by-name/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 06:47:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=73</guid>
		<description><![CDATA[Hi here we simply explain how to use multiple input check-box as array to get value in java-script put this in a loop on the submit button : now in the Javascript tags function addfunc(arg1) { var field_name = $(&#8220;input:[name='field_name[]&#8216;]&#8221;).serialize().replace(/%5B/g, &#8216;[').replace(/%5D/g, ']&#8216;); alert(field_name); //you get all values of selected checkbox as a string then you [...]]]></description>
			<content:encoded><![CDATA[<p>Hi here we simply explain how to use multiple input check-box as array to get value in java-script </p>
<p>put this in a loop</p>
<input type="checkbox" name="field_name[]"  value="value">
<p>on the submit button : </p>
<input type="button" class="button" name="Save" id="Save" value="Save" onclick="addfunc('arg1')" />
<p>now in the Javascript tags<br />
function addfunc(arg1)<br />
{<br />
   var field_name = $(&#8220;input:[name='field_name[]&#8216;]&#8221;).serialize().replace(/%5B/g, &#8216;[').replace(/%5D/g, ']&#8216;);<br />
   alert(field_name); //you get all values of selected checkbox as a string then you may use it in ur way<br />
}</p>
<p>Hope this helpful for developers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/06/jquery-input-by-name/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Testing website Install Jmeter</title>
		<link>http://www.vintez.com/blog/2011/05/testing-website-intsall-jmeter/</link>
		<comments>http://www.vintez.com/blog/2011/05/testing-website-intsall-jmeter/#comments</comments>
		<pubDate>Sat, 28 May 2011 12:46:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tesing Tools]]></category>

		<guid isPermaLink="false">http://www.vintez.com/blog/?p=71</guid>
		<description><![CDATA[Hi I have get a chance to study the testing tools for website and found Jmeter as the most flexible and easy to installable and used tool. To install Jmeter 1. Download Jmeter from http://jakarta.apache.org/jmeter/ For Windows download one of binary type and for linux use the source file. 2. The other is JRE get [...]]]></description>
			<content:encoded><![CDATA[<p>Hi I have get a chance to study the testing tools for website and found Jmeter as the most flexible and easy to installable and used tool.</p>
<p>To install Jmeter</p>
<p>1. Download Jmeter from <a href="http://jakarta.apache.org/jmeter/" target="_blank"> http://jakarta.apache.org/jmeter/ </a><br />
For Windows download one of binary type and for linux use the source file.</p>
<p>2. The other is JRE get it from <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" target="_blank">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a></p>
<p>After this extract jmeter and run jmeter.bat in bin directory which runs the Jmeter java file.</p>
<p>Then read out the jmeter guide from <a href="http://www.roseindia.net/jmeter/using-jmeter.shtml">http://www.roseindia.net/jmeter/using-jmeter.shtml</a></p>
<p>I just pleased and Jmeter help me alot.</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vintez.com/blog/2011/05/testing-website-intsall-jmeter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

