Archive

Archive for September, 2008

Strange IE! Show Blank Page for Wrong Closing Tag</a></h2> <div class="info"> <span class="date r-fl lc">Sep 30th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>Internet Explorer is really strange browser. It was showing me blank page when my <title> tag was not properly closed. I need to change the title tag, and some other HTML tag, dynamically for a cached page. In the script, instead of using variable for closing <title> tag, I pasted… <a href="http://www.satya-weblog.com/2008/09/strange-ie-show-blank-page-for-wrong.html" class="read_more">(Continue)</a></p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-296"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/open-csv-comma-separated-value-file-ms.html" rel="bookmark">Open CSV (Comma Separated Value) File in MS Word</a></h2> <div class="info"> <span class="date r-fl lc">Sep 28th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>CSV file is a text file, so this type of file can easily be opened in MS Word. Just use your MS Word Menu File->Open. Or right click on file and use “Open With…”. Select “Microsoft Word for Window”.<br /> CSV file data can easily be converted into table structure in… <a href="http://www.satya-weblog.com/2008/09/open-csv-comma-separated-value-file-ms.html" class="read_more">(Continue)</a></p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-294"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/hide-ad-from-home-page-and-show-your.html" rel="bookmark">Hide ad from home page and show your advertisement (any content) on other pages</a></h2> <div class="info"> <span class="date r-fl lc">Sep 27th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>I have to hide ad coming on the home page but wanted to show that on other page. As my home page has a list of three posts/items there will no adsense ad on the left side because already three ads will there below each posts. So, what I did… <a href="http://www.satya-weblog.com/2008/09/hide-ad-from-home-page-and-show-your.html" class="read_more">(Continue)</a></p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-293"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/customize-your-new-blogger-blogspot.html" rel="bookmark">Customize your New Blogger’s (blogspot) Blog Title</a></h2> <div class="info"> <span class="date r-fl lc">Sep 23rd, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>You can customize your blogger’s (blogspot) blog title the way you want. On the home page you will display your blog title and on other pages you can display page’s title as of your post heading. </p> <p><head><title><b:if cond=’data:blog.url==data:blog.homepageUrl’><data:blog.pageTitle/><b:else/><data:blog.pageName/> | <data:blog.title/></b:if></title></head></p> <p>The above code will display your Blog Name on home… <a href="http://www.satya-weblog.com/2008/09/customize-your-new-blogger-blogspot.html" class="read_more">(Continue)</a></p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-292"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/php-application-variable.html" rel="bookmark">Application Variable in PHP</a></h2> <div class="info"> <span class="date r-fl lc">Sep 16th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>Are you missing Application Variable in PHP. Many who comes from ASP will look for it.<br /> There is no application variable in PHP. PHP have only session variable. You need to do little extra work for application session variable in PHP.<br /> Application variable is used to pass information among different… <a href="http://www.satya-weblog.com/2008/09/php-application-variable.html" class="read_more">(Continue)</a></p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-291"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/remove-default-escaping-in-php.html" rel="bookmark">PHP Security: Remove Default Escaping In PHP</a></h2> <div class="info"> <span class="date r-fl lc">Sep 14th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>Reading this post first may be helpful!<br /> Remove default PHP escaping and apply your own at runtime. This way you are safe at client’s setting of magic quote in their php.ini.<br /> PHP has default escaping functionality. It escapes all incoming data.<br /> It is preferred not to use default magic quote… <a href="http://www.satya-weblog.com/2008/09/remove-default-escaping-in-php.html" class="read_more">(Continue)</a></p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div id="pagenavi"> <span class="newer"></span> <span class="older"></span> <div class="fixed"></div> </div> <!--[minify_skip]--> <!-- google_ad_section_end --> <!--[/minify_skip]--> </div> <!-- main END --> <!-- sidebar START --> <div id="sidebar"> <!-- sidebar north START --> <div id="northsidebar" class="sidebar"> <!-- showcase --> <div id="text-12" class="widget widget_text"> <div class="textwidget"><div class="fb-like-box" data-href="http://www.facebook.com/satyaweblog" data-width="292" data-height="170" data-show-faces="true" data-stream="false" data-header="false" style="min-height:170px"></div></div> </div><div id="text-16" class="widget widget_text"> <div class="textwidget"><div style="text-align:left"> <script type="text/javascript"><!-- google_ad_client = "pub-4441905138518539"; /* 300x250, tech1/31/10 */ google_ad_slot = "8422749194"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div></div> </div></div> <!-- sidebar north END --> <!-- sidebar south START --> <div id="southsidebar" class="sidebar"> <div id="text-2" class="widget widget_text"><div class="sideheader">Somewhere Else from the Author</div> <div class="textwidget"><div id="newsviews"></div> <script type="text/javascript"> jQuery(window).load(function() { showLinks(6); } ); </script></div> </div><div id="text-17" class="widget widget_text"><div class="sideheader">Various</div> <div class="textwidget"><div style="width:50%;float:left"> <a href="http://goo.gl/B6gVh"><img border="0" alt="Wikipedia Affiliate Button" src="http://sf.satya-weblog.com/media/2008_fundraiser.png" class="external free" /></a> </div> <div style="width:49%;float:right"> <b>Wordpress Plugins</b> <br/> – <a href="/2010/08/website-performance-optimization-plugin-ordering-stylesheet-javascript.html">Optimization by Ordering Styles and Javascript</a> <br/> – <a href="/2010/09/new-wordpress-plugin-escape-html.html">Escape Codes and Scripts</a> <br/> <b>Tools</b> <br /> - <a href="/2010/06/google-font-api-font-viewer-2.html">Google Fonts preview</a><br /> - <a href="http://goo.gl/NZWYn">Online Tools</a><br /> - <a href="/tag/tool">Tools</a> <br /> </div> <div class="clear"></div></div> </div></div> <!-- sidebar south END --> </div> <!-- sidebar END --> <div class="fixed"></div> </div> <!-- content END --> <!-- footer START --> <div id="footer"> <!--[minify_skip]--> <!-- google_ad_section_start(weight=ignore) --> <!--[/minify_skip]--> <a id="gotop" href="#" onclick="MGJS.goTop();return false;">⇑ Top</a> <div id="fo-box1"> <p><b class="hc">Blog Stat.</b> </p> <p> <i></i> </p> <p> <a href="http://www.satya-weblog.com/2010/07/blog-stats.html">More on stats</a> </p> <p><b class="hc">Other links:</b></p> <p><a href="http://m.satya-weblog.com/" rel="external nofollow" target="_blank" title="mobile version of the blog">Mobile version</a></p> <p><a href="/few-quotes" >Few Quotes</a></p> </div> <div id="fo-box2"> <p><b class="hc">Blogroll</b></p> <p><a href="http://newsview.satya-weblog.com/" rel="external" target="_blank">My view & News blog</a></p> <p><a href="http://www.satya-weblog.com/blogroll" >more...</a></p> </div> <div id="fo-box3"> <p><b class="hc">Categories</b></p> <p><a href="http://www.satya-weblog.com/category/blogger" title="Blogspot, wordpress, related to blogging">Blogger/WP</a> </p> <p><a href="http://www.satya-weblog.com/category/lamp" title="PHP, MySQL, Apache and Linux">LAMP</a> </p> <p><a href="http://www.satya-weblog.com/category/security" title="about security, client side, server side">Security</a> </p> <p><a href="http://www.satya-weblog.com/category/seo" title="search engine optimization">SEO</a> </p> <p><a href="http://www.satya-weblog.com/category/tech-talk" title="tech news, new events etc">Tech Talk</a> </p> <p><a href="http://www.satya-weblog.com/category/tools" title="any kind of web development related tools">Tools</a> </p> <p><a href="http://www.satya-weblog.com/category/web-2" title="web2/3 or newer related technologies ">Web 2</a></p> <p><a href="http://www.satya-weblog.com/category/web-design" title="HTML, JavaScript, and CSS">Web Design</a> </p> <p><a href="http://www.satya-weblog.com/category/java" title="Java and all related technologies">Java</a> </p> <p><a href="http://www.satya-weblog.com/category/xml" title="XML and related technologies">XML</a> </p> </div> <div id="fo-box4"> <p><b class="hc">Information</b></p> <p><a href="/about">About Us</a></p> <p><a href="/feedback">Contact/Feedback</a></p> <p><a href="/ws_privacy_policies.php">Privacy</a></p> <p><a href="/terms-and-conditions">T & C</a></p> <p> <a href="/disclaimer">Disclaimer</a></p> </div> <div id="fo-box5"> <p> <a href="http://feeds.feedburner.com/satya-weblog/scripting" rel="external nofollow" id="feed" title="feed"></a> </p> <p> <a href="http://bloggers.com" title="Bloggers - Meet Millions of Bloggers" rel="external nofollow" >Bloggers.com</a> </p> <p> <a href="http://www.arvixe.com" target="_blank">Web Hosting</a> By Arvixe </p> </div> <div style="clear:both"></div> <div style="position:absolute;bottom:11px;left:15px;vertical-align:bottom;"> <a href="/sitemap.xml">Sitemap</a> | <a id="powered" href="http://wordpress.org/">Powered by WordPress</a> | Copyright © 2005-2013  <a href="http://www.satya-weblog.com/about">Satya Prakash</a> | <a href="https://plus.google.com/#115186944691269285306/posts?rel=author" rel="author">Google+</a> <a href="https://profiles.google.com/satya61229?rel=author" rel="author"> </a> <a href="https://profiles.google.com/satyakaran?rel=author" rel="author"> </a> </div> <!--[minify_skip]--> <!-- google_ad_section_end --> <!--[/minify_skip]--> </div> <!-- footer END --> </div> <!-- container END --> </div> <!-- wrap END --> <script class="javascript" src="http://sf.satya-weblog.com/wpc/g_sytx/shCore.js" ></script> <script class="javascript" src="http://sf.satya-weblog.com/wpc/g_sytx/shBrush_min.js?v=1.5.1" ></script> <script class="javascript"> dp.SyntaxHighlighter.ClipboardSwf = 'http://sf.satya-weblog.com/wpc/g_sytx/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); </script> <script type="text/javascript"> /* GA code */ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga); })(); </script> <!-- FB --> <div id="fb-root"></div> <script type="text/javascript"> jQuery(window).load(function() { // FB (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=186008947609"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); // Plusone window.___gcfg = { lang: 'en-US' }; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); // Twitter (function(){ var twitter1 = document.createElement('script'); twitter1.type = 'text/javascript'; twitter1.async = true; twitter1.src = 'http://platform.twitter.com/widgets.js'; document.getElementsByTagName('head')[0].appendChild(twitter1); })(); /* remove the reload on comment textarea click */ jQuery(function() { jQuery("#comment").click(function() { clearTimeout(rltid); }); }); }); </script> <script type="text/javascript"> var FB_popup; function FB_Overlay() { jQuery(function() { var w = 475; var h = 438; jQuery("body").append("<div id='fboverlay'><b>Join us:</b><br/> Alexa Rank: 75000 <div class='overlaycontent'>TEST TEST </div><div class='footer'>X</div></div>"); jQuery("#fboverlay") .css({ 'position': 'absolute', 'top': ((jQuery(window).height() - h) / 2) + jQuery(window).scrollTop() + "px", 'left': ((jQuery(window).width() - w) / 2) + jQuery(window).scrollLeft() + "px", 'background': '#ffffff', 'color':'#000000', 'width': w + 'px', 'height': h + 'px', 'max-width':'auto', 'max-height':'auto', 'z-index': 9998, 'text-align': 'center', 'border-radius':'5px', 'border-width':'5px', 'border-color':'brown', 'border-style':'solid' }); jQuery('#fboverlay .footer').css({ 'position':'absolute', 'bottom':0, 'right':0, 'padding':'5px', 'cursor':'pointer', 'font-size':'22px', 'color':'#999', 'font-weight':'bold' }); jQuery('#fboverlay .footer').hover(function() {jQuery(this).css({'color':'#000'})}, function() {jQuery(this).css({'color':'#999'})}); jQuery('.overlaycontent').html('<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fsatyaweblog&width=475&height=370&colorscheme=light&show_faces=true&border_color=none&stream=false&header=true&appId=121313791300933" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:475px; height:370px;" allowTransparency="true"></iframe>'); FB_popup = 1; }); } function FB_Overlay_Disable() { if (FB_popup && FB_popup == 1) { FB_popup = 0; jQuery('#fboverlay').css('display', 'none'); } } // disable on Esc // keypress is not consistent in browser whereass keyup is. jQuery(document).keyup(function(e) { if (e.keyCode == 27 && FB_popup && FB_popup == 1) { FB_Overlay_Disable(); } }); // disable on close // If elements are added on fly then use live jQuery('#fboverlay .footer').live('click', function(e) { e.preventDefault(); FB_Overlay_Disable(); }); // Show FB Overlay if first visit if(document.cookie.indexOf('ws=1') == -1) { //window.setTimeout(FB_Overlay, 10000); // after a min jQuery(window).load(function() { if ((jQuery(window).width() > 1025) && (jQuery(document).width() > 1025)) { window.setTimeout(FB_Overlay, 25000); } }); } </script> <script type='text/javascript' src='http://sf.satya-weblog.com/wpc/js/basev1.8.js' defer='defer'></script> <!-- script type="text/javascript" src="http://widgets.amung.us/tab.js"></ script>< script type="text/javascript">WAU_tab('t9b792im6luv', 'right-middle')< /script --> </body> </html>