after uploading your pictures to picassa, update the picassa web manager in the com_rokin component….the coolIris flash thingie needs an RSS file that is generated in ext_cooliris_wall_album.php script. the function generateRss (the function that actually makes the rss file) is being called after you do the following –> in component–> Rokin Gallery –> configuration –> click on CoolIris 3D web albums and click the ‘ Save ‘ Button….I am writing this down because I am sure I will forget this…cheers
CoolIris webalbum note
August 5th, 2010Google tips and tricks
July 27th, 2010There are many articles on the internet describing how google works, this is just a memo with a couple tips and tricks for using the google search engine…
- In the search section typ the words that you expect to find in your result, so don’t focus on the question but on the answer
- “ Having that in mind: all words you type can be found in scrambled oreder, if you want the words to be found in a specific order use the “ signs, for example: “Google tips and tricks”
- If you want your search to be focussed on the question, try using semantical search engines like: http://www.ask.com or http://www.hakia.com
- allintitle: you can use this if you want to find the words in the name of the title, for example: allintitle:”Google tips and tricks” Vugrinec
- inurl: you can use this if you want to find the words in the url, for example: inurl:data links, this is potentially very powerfull as you can guess folder structures of sites… try in your search for example: inurl:intranet (often a site publishes private stuff in a folder named intranet)
- site: you can use this if you want your search to be performed within a specific site or url, for example: alsb site:datalinks.nl
- filetype: if you want your search to be in a specific file format, for example: filetype:pdf will give you only pdf files as a result
- - You can use this sign – to exclude words in your search results, for example: “become a patient person” -chris will give you article with the words “become a patient person” but the article will not contain the word chris
- * You can use the * sign as a regular expression in your search if you are not sure what the actual word in your search should be… for example: “Google * * tricks” , you can also use this sign as a regular expression for domains, for example: “Google tips and tricks” site:datalinks.*
- … You can use this to indicate ranges, for example: houses 50000…150000 will give you documents with houses with numbers mentioned in it between 50000 and 150000
- Sometimes you are bound to a country due to google intelligentia (geotargeting)…as in the netherlands we go automatically to http://www.google.nl, if you want to go international try: http://www.google.com/ncr (no country region)
- tool: http://toolbar.google.com will give you the page ranking of a site (how google ranks your page, based on age/ relevance and how many related sites are linking to your article)
- tool: http://www.thumbshots.org/Products/Thumbshots/Ranking.aspx (compare search engines)
- tool: http://www.dogpile.com (meta crawler, searches multiple search engines)
- tool: http://www.google.com/insights gives you insights in your search on a regional level
- tool: http://news.google.com gives you news articles… for news items older then a year try: http://news.google.com/archive
- tool: http://translate.google.com google translation services
- other searchengines: http://www.exalead.com/search
- fun: try: inurl:view index.shtml (this will give you sites that have their webcam on…(could be) fun)
Backing up or synchronizing your DATA at home…how I do it….
May 30th, 2010CASE
my situation at home….I have the following machines
- OFFICE-PENGUIN; a linux desktop, this contains my office stuff…invoices and such..
- PORTABLE-PENGUIN; a linux laptop, this is my machine for development/ education whatever
- FRUIT-PENGIUN; a Apple Imac, this is in my living room…and is used as a media centre (music/tv/ movies)….and for the internet, but also contains valuable data
- one Windows machine, this is used for playing games for the kids
- other connected devices (PS3,Xbox, PsP, Skype Telephone,Popcorn hour C200, Iphone)…I know it’s a lot
Problem
The 1st three machines (the PENGIUNS) contain data that I like to backup but also data I like to share and synchronize amongst the 3 devices.
In other words there are directories on the individual devices I like to backup on a separate device….BACKUP
There are directories on the individual machines that suppose to be the same on all devices including the backup device….SYNCHRONIZE
Solution
In order to achieve this… I use the following:
- a WIFI router that is used as a router for my local network and that contains a USB port as well
- an USB harddisk that is connected to this WIFI router, making the disk available for all the machines …. ( in my case the WIFI router is an Apple Airport Extreme)
- Linux/ Unix software for backing up…. I love rsync so I use this…this is ideal in my case..you can configure it to handle updates, but also give preferences to sources
- Linux/ Unix software for file synchronization, I used UNISON for that…a wonderfull tool that does excellent synchronization between the clients and the USB drive…For the mac you can download File Sync…it’s freeware
1st I need to mount the USB disk (which is connected to the WIFI router) from my client:
sudo mount_afp ‘afp://username:apassword@hostname_of_wifi_router/directoryOfShare’ /mnt/BACKUP_DSK/
backup
once my backup device is available I could use the following command to backup the directories of one of my clients:
rsync -cavz /home/chris/.evolution/ /mnt/BACKUP_DSK/office-penguin/linux/.evolution
this command will backup all my evolution mails in my home directory to a directory on the USB disk…do a man rsync to see all the options, and see what they mean. Ps if you don’t have rsync installed on your ubuntu/ Debian machine…just do a sudo apt-get install rsync
synchronize
On all my PENGUINS I have a /WORK directory I like to use on all machines…I use unison for that, with the following command:
unison -ui=text -auto=true -prefer=/WORK/ /WORK/ /mnt/BACKUP_DSK/WORK/ -perms=0 -batch
This tells me to run unison in text mode (is easier for scripting/or cronjobbing), auto tells it to use the defaults defined in my home directory under unison.pref. In case of a conflict of versions (between the file on the remote disk and the local file) I give preference to the local file, as this is probably the file which has been worked on the last time. Then the directory on the Remote disk is given… the perms option I tell to ignore…and the batch option disables the last manual confirmation step…also used for scripting reasons, but should only be used if you are certain that the command that has been excecuted does want you want. Also for this, use the unison man pages for more info.
Conclusion
Backing up and synchronizing are 2 different concepts that are ofter mistaken. Each of them have different behavior and potential issues. Rsync is a wonderful tool for backing up purposes…it’s important to understand the concept of the parameters you can use but also understand that the behavior is more like a copy command…from SOURCE to DESTINATION. I do everything local as my USB backup disk is mounted as a local disk, but rsync also supports this on remote hosts…
Synchronizing files is more the behavior of a version control system like CVS or Subversion. There is a repository of files which needs to be synced amongst the potential clients. Unison contains loads of intelligentsia for avoiding potential conflicts, you can tweak the behavior of your sync almost any way you like. Of course unison is not the same as a version control system as it doesn’t keep track of versions…
Script for handling gpg encrypted files
March 28th, 2010############################################
#
# File: geheim.sh
# Descr: A small script to read/write files using
# your own private GPG key
# Date: 24 March 2010
# Author: Chris Vugrinec
#
############################################# Define your variables here
tmpFileName=”output.txt”
privateKeyAdress=”chris@datalinks.nl”clear
if [ "$1" == "" ]
then
echo “”
echo “Please give file as param: ”
echo “”
echo “”
exit 127
else
chris=`echo $1 | cut -d . -f 3`
if [ "$chris" == "gpg" ]
then
echo “Decrypting file $1″
gpg –decrypt $1 >$tmpFileName
vi $tmpFileName
gpg -e -r $privateKeyAdress –output $1 $tmpFileName
rm -f $tmpFileName
else
echo “Encrypting file $1″
gpg -e -r $privateKeyAdress $1
echo “cleaning up original file $1″
rm -f $1
fi
fi
~
Using gpg to encrypt en decrypt files
February 21st, 2010Case:
Sometimes you want to share delicate information between some people.
This is how you create a public/ private keys on 2 different linux machines:
- On the 1st machine you generate the keys, with: gpg –gen-key (you will get a dialogue on what to do…for this purpose I stick with the default values: 2048 bits, DSA and Elgamal
- Export the key, you want this file on the 2nd machine….export it with: gpg –export-secret-keys > someName.key
- Copy the someName.key file on the 2nd machine and import it with the following command: gpg –allow-secret-key-import –import someName.key ….it is now added to your keyring
- On the 1st machine, encrypt a file gpg style
with the following command: gpg -r theMailAdressWhichIsUsedInThePrivateKey -e someFile.txt (r = recipient…this is the email keyname, e stands for encrypt) this command will create an ecrypted gpg file for you - Copy the file to the 2nd machine (the machine where you copied your key) and decrypt it with the following command: gpg -d someFile.txt.gpg
Setting SSL CustomIdentityAndCustomTrust in WL 8.1/ 9.2/ 10.3 etc
February 17th, 2010Load your weblogic environment:
note that:
HOSTNAME is a variable…usually the hostname of the server you work on
PASSWORD is a variable
Create your java certificates/ trust with the following commands:
# Create the certificates
keytool -genkey -validity 10000 -alias HOSTNAME -keyalg RSA -keysize 1024 -dname “CN=HOSTNAME, OU=Engineering, O=Datalinks, L=Amsterdam, ST=Noord Holland, C=NL” -keypass PASSWORD -keystore identity.jks -storepass PASSWORD
# Self Sign the certificate
keytool -selfcert -validity 10000 -v -alias HOSTNAME -keypass PASSWORD -keystore identity.jks -storetype jks
# Export the root certificate
keytool -export -v -alias HOSTNAME -file identity.der -keystore identity.jks
# Import the root certificate back with the same name as in step 1 and step 2
keytool -import -v -alias HOSTNAME -trustcacerts -file identity.der -keystore identity.jks
# Import the root certificate from the node manager / managed server into the key store. If you are creating the trust keystore for admin server on server A and if the node manager is to run on server B, then you need to import the root certificate of server B into the keystore on server A as trustedcacert
keytool -import -v -alias HOSTNAME -trustcacerts -file HOSTNAME.der -keystore identity.jks
In your nodemanager.properties put the following stuff
KeyStores=CustomIdentityAndCustomTrust
CustomIdentityKeyStoreFileName=LOCATION OF IDENTITY FILE identity.jks
CustomTrustKeyStoreFileName=LOCATION OF TRUST FILE trust.jks
CustomIdentityKeyStorePassPhrase=PASSWORD (in plain text…this will be encrypted next time you start the nodemanager)
CustomIdentityKeystoreType=JKS
CustomIdentityAlias=HOSTNAME
CustomIdentityPrivateKeyPassPhrase=PASSWORD (in plain text…this will be encrypted next time you start the nodemanager)
vmware fusion problems network bridge vmnet0 not running
January 15th, 2010If you have vmware fusion problems and is says something like:
network bridge vmnet0 not running
do the following (sudo)
/Library/Application\ Support/VMware\ Fusion/boot.sh --restart
Starting Weblogic Server lightweight (e.g. without JMS)
January 6th, 2010By default weblogic starts a managed server with serverType WLS…
If you like to startup the server lightweight…without EJB, JMS and JCA then start the server with param
-DserverType=wlx, Of course there are other ways to do this...bit this one is imho the easiest.
remove white spaces from filenames in shell script
December 19th, 2009sometimes you get filenames with spaces you don t want…you are messing around with scripts and commands to remove the spaces…
this is a way to remove white space in files:
ls *.jpg | while read LINE; do mv “$LINE” `echo “$LINE”| sed ’s/[ ]*//g’`; done;
GOOGLE WAVE … I lOVE Google
December 12th, 2009Whatever your work is, I believe a sensation of feeling alive, being inspired, being creative is a rare but essential commodity.
As a IT guy you are privileged to be part of a changing world and actually have an influence into what it is changing to…
When I began working in IT Internet was upcoming and not long after that we had the infamous Internet bubble.
The bubble was based on a vibe of creativity and potentialities, but like a teenager eager to get married…the teenager was not ready for marriage…teenager became insecure…vibes went…and not long after that the bubble bursted
Please watch the enclosed youtube movie about another TOP google project and be inspired …again.
Basically for me…it is an eyeopener.
Like being stuck to the interface of an Operating System…your mind can also be stuck in the potentials you have on TCP/ IP (Da internet ![]()
Being stuck shuts down the creative part in your brain, that part (if it is present) will focus on other things.
Like Lars in the movie said…we are using Email as our main way of communication because we are used to it…this way of communicating is about 4 decades old..in the meantime a lot happened in techno world.
In a nutshell, I love:
- the possibility to interact with documents, games, media, links..change the documents
- possibility to put stuff in a database (the bug database)…
- live chat
- Recording (especially in businesses, who said what and why)
- It is open Source…the potentials are unlimited. Also for companies who like to host these services for projects or whatever
Once people get this new way of thinking…someone has to start and inspire them (I hope to be one of them)..people will use it, and I am sure be wild about it.
MY IDEA…
This inspired me to make an app to sent all your current emails to (no matter if it is from outlook/ thunderbird…whatever).
The application will convert your mail to a standard useable format and put the mail in a google wave database. You can search for your emails in a efficient way…and maybe share them to people part of your wave….ANYOne interested?????