Google Friend Connect

I’m here after a short holiday :) Now my blog has the Google Friend Connect Gadget. Soon http://oprod.net will also have this gadget but now I have some problems with the Google Friend Connect Joomla module.

Author's profile picture Andrei G

Twitter Hashtag Auto-Link

Here’s a little script I’ve made for Greasemonkey to link the hashtags to twitter’s search.

You can download it from here: http://oprod.net/index.php/downloads/category/7-greasemonkey

And here’s the sourcecode:

// ==UserScript==
// @name           Twitter Hashtag Auto-Link
// @namespace      http://oprod.net
// @description    Auto-Links Twitter Hashtags to twitter search
// @include        http://twitter.com/*
// @include        https://twitter.com/*
// ==/UserScript==

var entries, entry;

entries = document.evaluate(
    "//*[@class='entry-content']",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);

for(var i = 0; i < entries.snapshotLength; i++) {
    entry = entries.snapshotItem(i);
    entry.innerHTML = entry.innerHTML.replace(/#([^ ]+)/g, '<a href="http://twitter.com/#search?q=%23$1"
title="$1"  target="_blank">#$1</a>');
}
Author's profile picture Andrei G

oprod.net/g.ho.st/

http://oprod.net/g.ho.st/ This is a directory I’ve made for G.ho.st virtual computer. Here you will finde web apps for this VC or other scripts.

My first script is for a random desktop wallpaper. Just paste this url: http://oprod.net/g.ho.st/random-image/rotate.php into the background URL.

Author's profile picture Andrei G

btproximity

I modified a script to work also in KDE 4. The script uses bluetooth to search for the phone, if the phone is too far the computer will be locked. When you come back to the computer, it will be unlocked. Remeber to edit your phones mac address in the script and also to pair your phone with the computer. You can download the script from here. Or copy it from here:

#!/bin/bash
#set -o verbose sh -v
# Copied from Steven on http://gentoo-wiki.com/Talk:TIP_Bluetooth_Proximity_Monitor

# These are the sections you'll need to edit

 # You'll need to use the MAC address of your phone here
DEVICE="00:21:FB:11:6A:E5"

# How often to check the distance between phone and computer in seconds
CHECK_INTERVAL=2

# The RSSI threshold at which a phone is considered far or near
THRESHOLD=-10

# The command to run when your phone gets too far away
FAR_CMD='qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock'

# The command to run when your phone is close again
NEAR_CMD='pkill krunner_lock'

HCITOOL="/usr/bin/hcitool"
STARTX_PID=0
DEBUG="/tmp/btproximity.log"

connected=0

function msg {
    echo "$1" #>> "$DEBUG"
}

function check_connection {
    connected=0;
    found=0
    for s in `$HCITOOL con`; do
        if [[ "$s" == "$DEVICE" ]]; then
            found=1;
        fi
    done
    if [[ $found == 1 ]]; then
        connected=1;
    else
       msg 'Attempting connection...'
        if [ -z "`$HCITOOL cc $DEVICE 2>&1`" ]; then
            msg 'Connected.'
            connected=1;
        else
                if [ -z "`l2ping -c 2 $DEVICE 2>&1`" ]; then
                        if [ -z "`$HCITOOL cc $DEVICE 2>&1`" ]; then
                            msg 'Connected.'
                            connected=1;
                        else
                        msg "ERROR: Could not connect to device $DEVICE."
                        connected=0;
                        fi
                fi
        fi
    fi
}

check_connection

while [[ $connected -eq 0 ]]; do
    check_connection
    sleep 3
done

name=`$HCITOOL name $DEVICE`
msg "Monitoring proximity of \"$name\" [$DEVICE]";

state="near"
while /bin/true; do

    check_connection

    if [[ $connected -eq 1 ]]; then
        rssi=$($HCITOOL rssi $DEVICE | sed -e 's/RSSI return value: //g')

        if [[ $rssi -le $THRESHOLD ]]; then
            if [[ "$state" == "near" ]]; then
                msg "*** Device \"$name\" [$DEVICE] has left proximity"
                state="far"
                $FAR_CMD > /dev/null 2>&1
            fi
        else
            if [[ "$state" == "far" && $rssi -ge $[$THRESHOLD+2] ]]; then
                msg "*** Device \"$name\" [$DEVICE] is within proximity"
                state="near"
                $NEAR_CMD > /dev/null 2>&1
                STARTX_PID=$(pgrep startx)
            fi
        fi
        msg "state = $state, RSSI = $rssi"

    else
        $FAR_CMD > /dev/null 2>&1
    fi

    sleep $CHECK_INTERVAL
done
Author's profile picture Andrei G

Twitterbot released

Twitterbot has been released. Give it a try :D

http://oprod.net/index.php/twitterbot

Author's profile picture Andrei G

test from ping.fm

test from ping.fm

Author's profile picture Andrei G

oprod.net down

oprod.net will be down for a few days because I change the hosting provider. Sorry for the inconvenience.

Author's profile picture Andrei G

free premium drops

drop.io are now giving free premium drops because they are finalist at webware 100. I’ve got mine at: http://drop.io/ozfiles2 and also it works with already made drops. Just use this template/upgrade code: vote dropio webware 100

Hurry up! Get yours too.

You can get more info at: http://drop.io/tweet/asset/free-premium-codes-in-honor-of-cnet-webware-100

Author's profile picture Andrei G

New project:Twitterbot

I’ve recently started to use twitter, and an idea strikes me :) to make a bot to control my linux box. Now I’m playing with the API and soon I will release the first version of Twitterbot.

Don’t forget to check my blog at: http://blog.oprod.net and follow me on twitter at http://twitter.com/otzy_007 for news about this project.   EDIT:  twitterbot has been released, here’s the project homepage: http://oprod.net/index.php/twitterbot

Author's profile picture Andrei G

mybrute.com

Mmm… nice and tiny game :) It’s something like the older googlefight.com Wanna beat me?

Here’s the link http://lolozaur23.mybrute.com/

Author's profile picture Andrei G

update twitter from linux terminal

Here’s how you can update twitter from a terminal :)

curl -u YourUsername:YourPassword -d status="Your status message go here" http://twitter.com/statuses/update.xml
Author's profile picture Andrei G

drop.io/oprodfiles

You can find also my projects and scripts files on http://drop.io/oprodfiles

Author's profile picture Andrei G

http://drop.io/oprodfiles

You can find my projects and scripts files on http://drop.io/oprodfiles Fell free to download and comment them

Author's profile picture Andrei G

Phising mail :)

Inca un mail de la raiffeisen bank :))

Raiffeisen Bank isi informeaza clientii ca in noaptea de sambata, 10 aprilie spre sambata, 11 aprilie, in intervalul 21.00-06.00 serviciul de Internet banking al bancii nu va functiona, deoarece banca efectueaza o migrare controlata a aplicatiilor sale IT. De asemenea, serviciul myBanking va fi indisponibil sambata noaptea intre orele 21:00 si 22:00. Pentru a nu intampina probleme de logare in viitor, va rugam sa va actualizati datele acces in Raiffeisen Online.http://83.167.103.117/eBankingWeb/login/Sistemul de carduri si retelele bancii de ATM-uri si POS-uri nu vor putea fi utilizate duminica 11 aprilie, pentru circa 45 de minute, in intervalul 03:00 si 04:00 AM. Ne cerem scuze tuturor clientilor nostri pentru eventualele neplaceri cauzate. *

      • Raiffeisen Bank pune la dispozitia clientilor sai multiple canale de acces la serviciile sale: Raiffeisen Direct, myBanking, Raiffeisen Online, care au inregistrat cresteri importante atat ca numar de clienti, cat si ca volume tranzactionate. Unitatile Raiffeisen Bank sunt peste 500 in intreaga tara, retelele de ATM-uri si EPOS-uri au ajuns la sfarsitul anului 2008 la peste1.000 ATM-uri si aproximativ 8.000 de EPOS-uri, peste 1.5 milioane carduri de debit si peste 300.000 carduri de credit. La sfarsitul anului 2008, banca avea 2 milioane de clienti de retail (dintre care peste 100.000 IMM-uri) si peste 4.400 corporatii mari si medii. Informatii despre toate produsele si serviciile oferite de Raiffeisen Bank pe http://83.167.103.117/eBankingWeb/login/ nsilvania.ro/news_29052007/bottom.jpg” width=”656” height=”7”>

Sa imi actualizez datele oare? =))

Author's profile picture Andrei G

Twitter widget on the blog

I’ve put the twitter widget on my blog. Hope you like it :D

Author's profile picture Andrei G