Latest Posts
2013-02-13
It's about time to migrate the site from the old Joomla 1.5 CMS to a new one.
So I've choosed ruhoh instead of upgrading to a new Joomla
version because ruhoh generates a static website that I can easily host it almost
anywhere without the need of a database or some server side scripting. Right now
it's hosted on GitHub.
Now oprod.net website is still under development, it still needs a new downloads
page and some minor design things.
So... Welcome to the new website.
2013-01-20 13:53:55 +0200
I've created my own repository with some Slackware64 packages at: https://sourceforge.net/projects/slackware64pack/files
Right now there are only nightly builds for XBMC and KDevelop available, but in the future more will come ;)
2012-06-21 09:54:34 +0300
While I was playing with Ruby on Rails and the Twitter Gem I've developed a small app to tweet any new changes in the Slackware's ChangeLog file.
Here's the link to the app: http://slackware-changelog.oprod.net
There you will find the accounts for different Slackware versions.
2011-12-17 20:07:53 +0200
I see that a previous article gets lots of hits from people who want to put the falling snowflakes script on their Tumblr pages.
In order to put this script you need to go to your page and click "Customize". Then you will need need to click "Edit HTML", scroll down to the end of the code and before </body> paste this code:
<script type="text/javascript" src="http://ec2.oprod.net/snow/snow.js"></script>
Don't forget to save ;)
The script can be used also on Wordpress, Blogger or other CMS.
If you want to download the script or just to share your appreciation for it go to peters1.dk
2011-11-17 22:08:36 +0200
Here's a small shell server written in Java by me.
It has basic features such as: ls, cd, head, mv, cp and also: get and put, to get/put files on the server.
Please note that this application is not safe to use because it doesn't use encryption or authentication.
To connect to the server you can use Putty with a raw connection or netcat:
nc host 8100
To use "get" or "put" for file transfer you must first type put or get followed by the name of the file and then connect to port 8101 using nc.
For get: nc host 8101 > file
For put: nc host 8101 < get
Download JAR file: https://github.com/downloads/otzy007/JRemoteShell/JRemoteShell.jar.zip
Github repository: https://github.com/otzy007/JRemoteShell
Source snapshot: https://github.com/downloads/otzy007/JRemoteShell/otzy007-JRemoteShell-d66e2b9.zip
2011-10-09 09:40:33 +0300
To enable the template move the archive to:
/usr/share/apps/kdevappwizard/templates/simple_java.tar.bz2
or
~/.kde4/share/apps/kdevappwizard/templates/simple_java.tar.bz2
Download: https://opendesktop.org/content/download.php?content=145846&id=1&tan=74368116
2011-10-08 16:14:43 +0300
Referring to this article it seems that using a swap disk is slower than compressing the data in the memory.
Enabling this under Slackware Linux it's pretty easy.
Create the file /etc/rc.d/rc.zram and put this script into it:
#!/bin/bash
#
# /etc/rc.d/rc.zram
# Script to start zRam (Virtual Swap Compressed in RAM)
#
# Size of swap space in MB
# default 1GB
SIZE=1024
start() {
modprobe zram
echo $SIZE*1024*1024 | bc > /sys/block/zram0/disksize
mkswap /dev/zram0
swapon /dev/zram0
}
stop() {
swapoff /dev/zram0
}
2011-03-31 21:31:42 +0300
Here's a quick fix to enable/disable wireless using Fn+F2 on Slackware Linux on ASUS K52j and also the LED to indicate the status of the wireless.
First you need to create this file: /etc/acpi/events/etc/acpi/events/asus-wireless-switch
This file will contain the hotkey and the path to the script which is setting the wireless ON/OFF.
The /etc/acpi/events/etc/acpi/events/asus-wireless-switch content will be:
#Enable the Fn-F2 button to turn on/off wireless
#/etc/acpi/events/default
event=hotkey ATKD 0000005d
action=/etc/acpi/asus-wireless-switch.sh
Then create another one: /etc/acpi/asus-wireless-switch.sh
With this script in it:
#/etc/acpi/asus-wireless-switch.sh
#based on http://ubuntuforums.org/archive/index.php/t-1460790.html
#!/bin/sh
WLANSTATUS=`cat /sys/class/ieee80211/phy0/rfkill*/state`
test -z $WLANSTATUS && exit 1
if [ $WLANSTATUS = 0 ]; then
echo 0 > /sys/devices/platform/asus_laptop/wlan
echo 1 > /sys/class/ieee80211/phy0/rfkill*/state
elif [ $WLANSTATUS = 1 ]; then
echo 1 > /sys/devices/platform/asus_laptop/wlan
echo 0 > /sys/class/ieee80211/phy0/rfkill*/state
fi
2011-02-10 09:27:37 +0200
Now there's a KDE section on oprod.net. The first things I've add are two C templates for KDevelop: one is a CMake compiled project and the another is a
2011-02-10 09:36:01 +0200
Head over to the new KDevelop templates section for two KDevelop C templates.
One is using a Makefile to compile and the other CMake.
To use them just copy the archives to /usr/share/apps/kdevappwizard/templates/ or ~/.kde4/share/apps/kdevappwizard/templates
CMake template: https://sourceforge.net/projects/otzy-007.u/files/cmake_plainc.tar.bz2/download
Makefile template: http://opendesktop.org/content/show.php/Simple+C+Makefile+Template?content=138514