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.
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.
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>');
}
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.
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
Twitterbot has been released. Give it a try :D
test from ping.fm
oprod.net will be down for a few days because I change the hosting provider. Sorry for the inconvenience.
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
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 –
Mmm… nice and tiny game :) It’s something like the older googlefight.com Wanna beat me?
Here’s the link http://lolozaur23.mybrute.com/
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
You can find also my projects and scripts files on http://drop.io/oprodfiles
You can find my projects and scripts files on http://drop.io/oprodfiles Fell free to download and comment them
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. *
Sa imi actualizez datele oare? =))
I’ve put the twitter widget on my blog. Hope you like it :D