', '
', $text1); $text1=str_replace('', '
', $text1); $text1=str_replace('', '
', $text1); $text1=str_replace('', '
', $text1); $text1=str_replace('', '', $text1); $text1=str_replace('', '', $text1); $text2=$row['text2']; $text2=str_replace('', '
', $text2); $text2=str_replace('', '
', $text2); $text2=str_replace('', '
', $text2); $text2=str_replace('', '
', $text2); $text2=str_replace('', '', $text2); $text2=str_replace('', '', $text2); } } if ($_GET['show']==2) { $topic=mysql_real_escape_string($_GET['topic']); } if ($_GET['show']==3) { $page=mysql_real_escape_string($_GET['page']); } /* DEF FUNC */ function data_incrementale($data, $z) { // salva la data del post e stampa le date dei commenti nel formato "1 ora dopo" etc if ($z==0) { $txt=utf8_encode(strftime("%d %h %Y", $data)); $GLOBALS['data1']=$data; } else { $diff=(int)$data-(int)$GLOBALS['data1']; if ($diff<60) { $txt=$diff.' sec. dopo'; } else if ($diff<3600) { $txt=(int)($diff/60).' min. dopo'; } else if ($diff<86400) { $txt=(int)($diff/3600).' or'.((int)($diff/3600)>1?'e':'a').' dopo'; } else if ($diff<604800) { $txt=(int)($diff/86400).' giorn'.((int)($diff/86400)>1?'i':'o').' dopo'; } else if ($diff<2592000) { $txt=(int)($diff/604800).' sett. dopo'; } else if ($diff<31536000) { $txt=(int)($diff/2592000).' mes'.((int)($diff/2592000)>1?'i':'e').' dopo'; } else { $txt=(int)($diff/31536000).' ann'.((int)($diff/31536000)>1?'i':'o').' dopo'; } } return $txt; } function num_cell($n, $type, $nascondibile=0) { ?> 999) { echo ''.(int)($n/1000).'k'; } else { echo $n; } echo '

'; if ($type==1) { echo 'votes'; } else if ($type==2) { echo 'posts'; } else { echo 'views'; } echo '

'; ?> '; if ($has_link>0) { echo ''; } if ($t=='apple') echo ''; if ($t=='linux') echo ''; if ($t=='windows') echo ''; echo ''.$t.''; if ( ($t=='apple') || ($t=='linux') || ($t=='windows') ) { echo ''; } if ($has_link>0) { echo ''; } // echo ''; } function arg_tot($t, $n) { echo '
  • '; arg($t, 1); echo '
  • '; // echo '
    '; // arg($t); // echo ' x '.$n.'
    '; } function argomenti() { $fd=mysql_query('SELECT args FROM tricks'); $num=mysql_num_rows($fd); $args=array(); for ($i=0;$i<$num;$i++) { $row=mysql_fetch_array($fd); $tmp=explode(' ', $row['args']); foreach ($tmp as $arg) { $args[$arg]++; } } /* foreach ($args as $arg => $val) { // divido i risultati in due gruppi (1-pochi args con tanti articoli, 2-quelli con un solo articolo) if ($val>1) { $t2[$arg]=$val; } else { $t1[$arg]=$val; } } arsort($t2); foreach ($t2 as $arg => $val) { // ordino il primo gruppo per chiave (molti risultati in cima) arg_tot($arg, $val); } ksort($t1); foreach ($t1 as $arg => $val) { // ordino gli altri alfabeticamente arg_tot($arg, $val); } */ ksort($args); echo '
      '; foreach ($args as $arg => $val) { // ordino il primo gruppo per chiave (molti risultati in cima) arg_tot($arg, $val); } echo '
    '; } function parse_txt($t) { $t=strtolower($t); $t=preg_replace("/[^a-z0-9]/", "-", $t); $t=preg_replace("/[-]{2,32}/", "-", $t); return $t; } function txt_cell($id, $t, $args) { ?> '.$t.''; if (count($args)>0) { echo '
    '; foreach ($args as $arg) { arg($arg); } echo '
    '; } ?> Our mission is share solutions\n"; echo "

    I spend a lot of time every day debugging code and administering servers (and clients) with big troubles.

    \n"; echo "Sometimes I find on the Internet the correct solution of my problems in little time, but more often\n"; echo "I spend hours searching for a trick and when I find it I write orrible lines of code with stupid comments\n"; echo "on a piece of paper that can only be forgiven or destroyed the next day. Sometimes I add a link in a bookmark, but\n"; echo "some problems that are too specific - linked to a software or hardware customization - to let that solution be useful again.

    \n"; echo "When I have the time I try to spend some time writing documentation... Sometimes...

    \n"; echo "Today I want to write down the first trick in a place where everybody can find it for free.
    \n"; echo "Today I promise to find the time I need to write documentation, comments and remarks.
    \n"; echo "Today I start to publish for You my tips and trick about computing, coding, system administration, games, security, trashware,\n"; echo " networking, etc.


    \n"; echo "
    \n"; } else if ($page=='submit') { echo "

    It´s time to submit your questions/tricks

    \n"; echo "Write us an email with your questions and tricks.
    See our contacs page.


    Bookmark this page and return again.\n"; echo "
















    \n"; echo "
    \n"; } else if ($page=='contacts') { echo "

    Contct us by mail

    \n"; echo "For questions, answers, tricks, etc.
    Write us here:

    info (at) gipoco . com\n"; echo "
















    \n"; echo "
    \n"; } else if ($page=='not-answered') { echo "

    Not answered question

    \n"; echo "All questions are answered. There is no question in queue.\n"; echo "
















    \n"; echo "
    \n"; } else if ($page=='top') { echo "

    Most Viewed Tips and Tricks

    \n"; echo " \n"; $fd=mysql_query('SELECT * FROM tricks ORDER BY views DESC'); $num=mysql_num_rows($fd); for ($i=0;$i<$num;$i++) { $row=mysql_fetch_array($fd); row($row['idtrick'], $row['votes'], $row['posts'], $row['views'], $row['title'], explode(' ', $row['args']), substr($row['ts'], 0, 10)); } echo "
    \n"; } else { echo "

    Last Tips and Tricks

    \n"; echo " \n"; $fd=mysql_query('SELECT * FROM tricks ORDER BY ts DESC'); $num=mysql_num_rows($fd); for ($i=0;$i<$num;$i++) { $row=mysql_fetch_array($fd); row($row['idtrick'], $row['votes'], $row['posts'], $row['views'], $row['title'], explode(' ', $row['args']), substr($row['ts'], 0, 10)); } echo "
    \n"; } } function handle_page() { global $text1; global $text2; global $topic; global $src; global $date; if ($text1!='') { ?>

    written by Admin


    Posted on



    */ ?>

    Problem

    Solution

    Feedback


    Comments

    Leave a Comment:

    Start Bootstrap August 25, 2014 at 9:30 PM

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

    Start Bootstrap August 25, 2014 at 9:30 PM

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

    Nested Start Bootstrap August 25, 2014 at 9:30 PM

    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
    */ } else if ($topic!='') { echo "

    Top ".ucfirst($topic)." Tips and Tricks

    \n"; echo " \n"; $fd=mysql_query('SELECT * FROM tricks WHERE args LIKE "%'.$topic.'%" ORDER BY ts DESC'); $num=mysql_num_rows($fd); for ($i=0;$i<$num;$i++) { $row=mysql_fetch_array($fd); row($row['idtrick'], $row['votes'], $row['posts'], $row['views'], $row['title'], explode(' ', $row['args']), substr($row['ts'], 0, 10)); } echo "
    \n"; echo "
    \n"; } else if ($src!='') { echo '

    Searching for: '.$src."

    \n"; echo " \n"; $fd=mysql_query('SELECT * FROM tricks WHERE title LIKE "%'.$src.'%" ORDER BY ts DESC'); $num=mysql_num_rows($fd); for ($i=0;$i<$num;$i++) { $row=mysql_fetch_array($fd); $ttt=str_ireplace($src, ''.$src.'', $row['title']); row($row['idtrick'], $row['votes'], $row['posts'], $row['views'], $ttt, explode(' ', $row['args']), substr($row['ts'], 0, 10)); } echo "
    \n"; echo "
    \n"; } else { handle_static(); } } function handle_title() { handle_h1(); echo ' - Tips and Tricks for Programmers and SysAdmins'; } function handle_h1() { global $title; global $topic; if ($title!='') { echo $title; } else if ($topic!='') { echo ucfirst($topic).' Related Problems and Solutions'; } else { echo 'Smart Solutions for Programmers and Sysadmins'; } } function statistics() { //web visits counter and statistics /* echo ''; $site_name='tips-and-tricks'; //include('/var/www/html_stats/preparse.php'); echo "\n\n"; echo "\n"; echo "\n"; */ ?> page-rank analyzer and web visitors counter <? handle_title(); ?>

    Search

    Categories

    Welcome

    We need collaboration and a real boost from our community: write us an email for every trick you find!

    This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

    Our database grows if YOU send us your tips and trick as soon as you find them every day!


    CopyLeft © by GiPOCO - This site is part of the ecologic hosting web ring - Link this page to support our project or contact us for a donation