WarNews Feed
404 Not Found
body{
margin:25px;
}
.t1{
color:#000000;
font-family: Arial, Helvetica, sans-serif;
font-size:14px;
}
.t2{
color:#81BD21;
font-family: Arial, Helvetica, sans-serif;
font-size:10px;
white-space:nowrap;
}
h1 {
font-size: 18px;
display: block;
}
h2 {
font-size: 16px;
}
ul {
margin-left: 27%
}
.topheading {
background-color: #81BD21;
}
ul {
margin-left: 34%
}
.icontent {
width: 1035px;
height: 700px;
border: none;
margin-top: 4px;
margin-bottom: 4px;
}
404 Error File Not Found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
If you typed in the URL, please check the spelling
You can try to click the Back button and try another link
registrar_frameset({a_id: 115580, frame: "ad_frame"});Web Hosting provided by HostMonster.Com
Smartango blogs http://www.smartango.com/blog daily http://www.smartango.com/node/43 http://www.smartango.com/node/42 http://www.smartango.com/node/41 http://www.smartango.com/node/40 http://www.smartango.com/node/39 http://www.smartango.com/node/36 http://www.smartango.com/node/34 http://www.smartango.com/node/30 http://www.smartango.com/node/29 http://www.smartango.com/node/28 How to hide image to the visitor right click http://www.smartango.com/blog/how-hide-image-visitor-right-click <p> Well, I found this hack in <a href="http://coollogo.net/cool_logo_70/">http://coollogo.net/cool_logo_70/</a> a good resource for social icon. </p> <p> Given you want to show image.jpg, just put a transparent image in a div tag with the background-image: url('image.jpg') this way: </p><p><a href="http://www.smartango.com/blog/how-hide-image-visitor-right-click" target="_blank">read more</a></p> 2011-03-19T10:18:27Z daniele daniele css html Why not to use remove link http://www.smartango.com/blog/why-not-use-remove-link <p>This is my experience: I have to rewrite administration page where<br /> there is remove button (in a form) with only javascript confirm.</p> <p>I thought: "no one had problem with no limitation in the past, why they<br /> should now? I'll use a link with javascript confirm.</p> <p>It happened I have a dashboard page where is listed the last entries<br /> and links for update and delete its. It happened that few day later 20<br /> entries was deleted and I was looking for what caused the problem for<br /> one day.</p> <p>I supposed no one would be so silly to click on delete for 20 times</p><p><a href="http://www.smartango.com/blog/why-not-use-remove-link" target="_blank">read more</a></p> 2011-02-25T11:15:21Z daniele daniele http php security seo tool Google Chrome no-cache and Login throw oauth services http://www.smartango.com/blog/google-chrome-no-cache-and-login-throw-oauth-services <p>I found this very annoying, it seem chrome optimization make it not works things like "login via facebook" or "login via twitter" button with this browser and make it wait forever.</p> <p>I implemented oauth support for <a href="http://www.cellularmagazine.it/recensioni/inserisci.php" title="http://www.cellularmagazine.it/recensioni/inserisci.php" rel="nofollow">http://www.cellularmagazine.it/recensioni/inserisci.php</a> and had a similar problem: Expires setted to access plus 10 minute (via .htaccess , this happen to set Cache-Control header too) and google do not reload the actual page but use the one in cache. I would suggest to remove Expires header or set it to past data, but I found out adding</p><p><a href="http://www.smartango.com/blog/google-chrome-no-cache-and-login-throw-oauth-services" target="_blank">read more</a></p> 2011-02-23T12:01:51Z daniele daniele Chrome Chromium oauth php goodies: filter http://www.smartango.com/blog/php-goodies-filter <p><img style="float:left;margin-right:10px" src="/files/filter.jpg" /> Filter is in php by default from 5.2.0 and is a usefull library for web developer, so it is the time to make use of it.</p> <p>It was created for validation and sanitization of foreign input, that is GET, POST, COOKIE, or anything that you can't trust on.<br /> <br clear="all" /><br /> With php filter one can tests if a variable is present in the current request:</p> <pre class="brush:php"> if(filter_has_var(INPUT_POST,'login')) { //manage login } </pre><p><a href="http://www.smartango.com/blog/php-goodies-filter" target="_blank">read more</a></p> 2010-12-15T13:19:35Z daniele daniele php wwwsqldesigner short review http://www.smartango.com/blog/wwwsqldesigner-short-review <p><strong>Install</strong></p> <p>Download from <a href="http://code.google.com/p/wwwsqldesigner/" title="http://code.google.com/p/wwwsqldesigner/">http://code.google.com/p/wwwsqldesigner/</a><br /> Very easy installation: you need a webserver running, unpack<br /> wwwsqldesigner it in a folder, setup your virtual host (I use<br /> personal domain for my pc), all done!</p> <p><strong>Use</strong></p> <p>There is a small tool bar to the right, very simple and intuitive to<br /> use, it is grouped in 4 areas:</p> <ol> <li>Save/load </li> <li>Table actions (Add,Edit,Keys,Remove,Align,Clear) </li> <li>Field actions (Add,Edit,Up/Down,foreign key management, remove field) </li> <li>Option & Documentation </li> </ol><p><a href="http://www.smartango.com/blog/wwwsqldesigner-short-review" target="_blank">read more</a></p> 2010-11-30T16:13:40Z daniele daniele database mysql Defer javascript execution using data http://www.smartango.com/blog/defer-javascript-execution-using-data <p>Due to page performance you should load javascript at the end of page (see <a href="http://developer.yahoo.com/performance/rules.html" title="http://developer.yahoo.com/performance/rules.html">http://developer.yahoo.com/performance/rules.html</a>), at least all javascript you can defer to load. There are script that have to load at the very begin of page. But are you sure there is no option?</p> <p>Well, actually this is a critical reflection on my own script. When I wrote <a href="/articles/jquery-context-menu">imagedata drupal example module</a> I replaced to {'imagedata ...} a direct call to jquery plugin.</p> <p>There are a lot of situation where javascript function is called</p><p><a href="http://www.smartango.com/blog/defer-javascript-execution-using-data" target="_blank">read more</a></p> 2010-09-24T14:13:33Z daniele daniele drupal javascript Simplepie and CodeIgniter http://www.smartango.com/blog/simplepie-and-codeigniter <p>yes, found: <a href="http://www.haughin.com/code/simplepie/" title="http://www.haughin.com/code/simplepie/">http://www.haughin.com/code/simplepie/</a><br /> and tried with php 5.3 installation ... simply do not work</p> <p>I recalled there was a problem in simplepie for assign new by reference, just downloaded newer code from <a href="http://simplepie.org/" title="http://simplepie.org/">http://simplepie.org/</a> ... still same problem.</p> <p>So</p> <pre class="brush:bash"> sed 's/=&\ new/=\ new/' simplepie.inc > Simplepie.php </pre><p> adding <code>if ( ! defined('BASEPATH')) exit('No direct script access allowed');</code> to first line, removing ?> from last line, make things work.</p><p><a href="http://www.smartango.com/blog/simplepie-and-codeigniter" target="_blank">read more</a></p> 2010-08-31T09:00:23Z daniele daniele codeigniter feed simplepie jquery Form Hint plugin (mine) http://www.smartango.com/blog/jquery-form-hint-plugin-mine This is my view of form hint plugin: show a div over with the title content inside, instead of replace text in input elements and match it with placeholder <br /> simply run <code>$(selector).formHint()</code> on all form element and title is used as hint <br /> <input type="text" class="hint" name="name" title="name*" /> <br /> <input type="text" class="hint" name="surname" title="surname*" /> <br /> <script type="text/javascript"> $(function(){$(".hint").formHint();}); </script> See also <a href="http://code.google.com/p/jquery-watermark/">http://code.google.com/p/jquery-watermark/</a> 2010-03-10T17:12:02Z daniele daniele form jquery shuffle db table order http://www.smartango.com/blog/shuffle-db-table-order <p>simple code to shuffle a table ... with php shuffle:</p> <pre class="brush: php"> $result = $mysql->query("SELECT id FROM $table ORDER BY id"); $rows = $result->num_rows; $order = shuffle(range(1,$rows)); while($row=$result->fetch_row()) { $num=array_shift($order); $mysql->query("UPDATE $table SET rand_sort=$num WHERE id=".$row[0]); } </pre><p> added:<br /> with MySQL RAND():</p> <pre class="brush: php"> $result = $mysql->query("SELECT id FROM $table ORDER BY RAND()"); for($i=1;$row=$result->fetch_row();$i++) { $mysql->query("UPDATE $table SET rand_sort=$i WHERE id=".$row[0]); } </pre><p><a href="http://www.smartango.com/blog/shuffle-db-table-order" target="_blank">read more</a></p> 2009-12-15T17:58:09Z daniele daniele db php Ajax frontend for my backoffice in jQuery and PHP http://www.smartango.com/blog/ajax-frontend-my-backoffice-jquery-and-php <p>This is my way to organize php for a simple jQuery frontend ajax based:</p> <p>1.in a administration page include the php that generate html for each box<br /> 2.for each box setup behavior in Javascript<br /> 3.let each php manage POST request (for change/update) and GET request for show content</p> <p><a href="http://www.smartango.com/files/Includeprofilo.png" target="_blank"><img src="http://www.smartango.com/files/Includeprofilo.png" width="400" border="0" /></a><br /> So in admin.php we could have something like that</p> <pre class="brush: php"> <img src=”button.png” id=”btn_change” /> </pre><p><a href="http://www.smartango.com/blog/ajax-frontend-my-backoffice-jquery-and-php" target="_blank">read more</a></p> 2009-11-06T18:40:29Z daniele daniele ajax jquery php
$xml = DGE_InlineRSS('smartango', $url,
// InlineRSS options in the first array
array('timeout'=>0,
‘xslt’=>’warnews.xslt’),
// Your own options for the XSLT parameters
array(‘limit’=>10));
echo $xml;
?>
