hplip 3.9.12 on Slackware 13.0

I’ve got a new HP printer, HP F2480, which it wasn’t  supported by the older hplip 3.9.4b version avaible for Slackware 13.0

So I’ve build the latest 3.9.12 version modifying the SlackBuild avaible here: ftp://ftp.slackware.com/pub/slackware/slackware_source/ap/hplip/ . For version 3.9.12  that patch is no longer needed so I’ve removed it.

To build the new version you’ll need to download the hplip source avaible here: http://prdownloads.sourceforge.net/hplip/hplip-3.9.12.tar.gz and also the modified SlackBuild avaible here: http://oprod.net/slackware/hplip/slackbuild/  

Author's profile picture Andrei G

Merry Christmas!

merry-christmas

Merry Christmas and a Happy New Year!

Author's profile picture Andrei G

test

A venit zapada!!!! Uraaa!

Asa ca am pus si pe http://otzy.tumblr.com putina zapada.

Am folosit scriptul snow.js pe care il gasiti aici: http://www.peters1.dk/webtools/javascript/sne.php?sprog=en Sau puteti doar sa adaugati codul asta imediat dupa tagul <body>

<script type="text/javascript" src="http://oprod.net/scripts/snow.js"></script>

Author's profile picture Andrei G

Snow Script

I’ve put a snowfall javascript on oprod.net and also on my Tumblr account. The script I’ve got from: http://www.peters1.dk/webtools/javascript/sne.php?sprog=en.

You can also get the script on your website or Tumblr page just by pasting this code before </body> tag at the end of the page.

<script type="text/javascript" src="http://oprod.net/scripts/snow.js"></script>

Also I have installed a Disqus plugin for Joomla, so feel free to comment.

Author's profile picture Andrei G

system status script for bot.im

Here’s another script for a bot. You get from it various status informations by executing commands as: du, free or netstats. This project isn’t finished yet so it could have some bugs. Enough talk, here’s the script:

<?php
///////////////////////////////////////////////////
//system status php script for bot.im
//created by otzy_007(Andrei G.) http://oprod.net
///////////////////////////////////////////////////

//the message recieved from the user
$msg = strtolower($_REQUEST["msg"]);
////////////////////////////////////////////////
//list of commands that can be executed
///////////////////////////////////////
//to add a new command just follow this sintax:
//
//case "command":
//     echo_line("command");
//break;
//
//where command is your command to be executed
///////////////////////////////////////////////
switch($msg)
{
  case "date":
        echo date("D M j G:i:s T Y");
  break;
  case "whoami":
        echo exec(whoami);
  break;
  case "who":
       echo exec(who);
  break;
  case "free":
        echo_line("free");
  break;
  case "procinfo":
        echo_line("procinfo");
  break;
  case "meminfo":
        echo_line("cat /proc/meminfo");
  break;
  case "df":
        echo_line("df");
  break;
  case "ps":
        echo_line("ps");
  break;
  case "uptime":
        echo_line("uptime");
  break;
  case "uname":
        echo_line("uname -a");
  break;
  case "mounts":
        echo_line("cat /proc/mounts");
  break;
  case "user":
        echo $_REQUEST['user'];
  break;
  case "netstat":
        echo_line("netstat");
  break;
  case "help":
        help();
  break;
  default:
        echo "For a list of avaible commands enter help";
  break;
}

function help(){
echo "Avaible commands: help, date, whoami, who,
 uname, uptime, ps, df, meminfo, procinfo, free, mounts, netstat";
}
function echo_line($command)
{

 exec($command, $line);

 for($i=0; $i<count($line); $i++)
 {
  echo "<br>";
  echo $line[$i];

}

}

?>
Author's profile picture Andrei G

bot.im php script

After 6 months of no php coding at all, yesterday I’ve made a little script for a bot for twitter, jabber, yahoo messenger and other services using bot.im.The script is pretty simple, responds to some commands and also uses the exec() php command.

And here’s the script:

<?php

//simple php script for bot.im
//created by otzy_007(Andrei G.) http://oprod.net


//the message from the user
$msg = strtolower($_REQUEST["msg"]);

$part = explode("(", $msg);

//if there's an exec command execute it
//example: exec(whoami), exec(ps), exec(uptime)
if($part[0]=='exec'){
$part[1]=rtrim($part[1], ")");
echo exec($part[1]);
}
//else execute the other commands
else
{
switch($msg)
{
  case "date":
        echo date("D M j G:i:s T Y");
  break;
  case "hello":
        echo "Hi!";
  break;
  case "user":
        echo $_REQUEST['user'];
  break;
  case "help":
        help();
  break;
  default:
        echo "For a list of avaible commands enter help";
  break;
}
}
function help(){
echo "Avaible commands: help, date, hello, exec(\"command\") without quotes";
}

?>

Download: http://oprod.net/index.php/downloads/category/8-php?download=17%3Abot.im-script

Author's profile picture Andrei G

Tumblr

Today I’ve created my Tumblr account. You can find me at: http://otzy.tumblr.com

Author's profile picture Andrei G

Moved articles from the old blog

I’ve moved all the articles from my old blog http://otzy.blogspot.com to this website.

You can find them under the News section of the menu or at: http://blog.oprod.net.

This will be from now on the the place were I’ll post updates about what projects I am working at, and of course you can find me on twitter at:  http://twitter.com/otzy_007

Author's profile picture Andrei G

Downloads page

Now oprod.net has a downloads page thanks to Phoca Download plugin for Joomla. Here you will find my actual projects and also my older ones.

Author's profile picture Andrei G

oprod.net downloads page

Now oprod.net has a downloads page thanks to Phoca Download plugin for Joomla. Here you will find my actual projects and also my older ones.

Link: http://oprod.net/index.php/downloads

Author's profile picture Andrei G

Un blog

New project for me. I’ve started a new blog in my own language (Romanian). Hope you like it. http://unbblog.blogspot.com/

Author's profile picture Andrei G

blogcumasini.blogspot.com transformat in unbblog.blogspot.com

Nici nu am inceput bine proiectul cu http://blogcumasini.blogsopt.com si m-am si razgandit :) . Pana la urma imi fac un blog personal. Deci de acum http://unbblog.blogspot.com Sper sa nu ma mai razgandesc.

Author's profile picture Andrei G

http://blogcumasini.blogspot.com/

Blog nou :) http://blogcumasini.blogspot.com/

Author's profile picture Andrei G

Google Friend Connect also on oprod.net

Now oprod.net has also Google Friend Connect. I’ve put it thanks to the jumi extension not to that, Google Friend Connect extension.

Feel free to leave some comments.

Author's profile picture Andrei G

ping.fm

ping.fm test

Author's profile picture Andrei G