Thursday, July 14, 2011

Alfresco commonly used data types (out of the box)

Commonly used data types out of the box are:
  • d:text: A text value, a character string
  • d:mltext: A multilingual text value where many localized representations of the text value may be held
  • d:content: An arbitrarily long text or binary stream
  • d:int: An integer value (java.lang.Integer equivalent)
  • d:long: A long value (java.lang.Long equivalent)
  • d:float: A float value (java.lang.Float equivalent)
  • d:double: A double value (java.lang.Double equivalent)
  • d:date: A date value (java.lang.Date equivalent)
  • d:datetime: A date and time value (java.lang.Date equivalent)
  • d:boolean: A boolean value (java.lang.Boolean equivalent)
  • d:any: Any value, regardless of type

Original source link:
http://docs.alfresco.com/3.4/index.jsp?topic=%2Fcom.alfresco.Enterprise_3_4_0.doc%2Fconcepts%2Fmetadata-model-props.html

Bye...

Join and split pdf files under linux with pdftk

Install pdftk
apt-get install pdftk

then to merge, example command is:
pdftk test1.pdf test2.pdf cat output test_output.pdf

to split(from page 1 to 5)
pdftk test_output.pdf cat 1-5 output test_output2.pdf


official site link: www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
official site quick examples link: www.pdflabs.com/docs/pdftk-cli-examples/


Bye...

Tuesday, July 12, 2011

Skype - up/down camera problem on Debian Squeeze 32 bit

Here are for a curious problem with camera on skype.
Differently of cheese(all it's ok) image camera output on skype is rendered up/down.

So this solution works with my Debian Squeeze 32 bit.....
First of all those libraries should be installed....
- libv4l-0(that contains v4l1compat.so)
and

If you haven't them.... give...
apt-get install libv4l-0
apt-get install libqt3-mt

After you can try in the same shell to export those variables

export QT_PLUGIN_PATH=/usr/lib/qt3/plugins
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

so you can try to launch skype and assure that now webcam output is ok.....

If so.... now you only do a simple script to wrap the variables export before launching skype....
One way....
cp /usr/bin/skype /usr/bin/skype_appl
echo "" > /usr/bin/skype
(to empty /usr/bin/skype file)
and after edit /usr/bin/skype in way of it contains those lines:
#!/bin/bash
export QT_PLUGIN_PATH=/usr/lib/qt3/plugins
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
skype_appl&


Now launch from terminal skype or add a new launcher on Desktop/Toolbar
and all it's ok!!!


Bye

Hamachi LogMeIn - install and configure on Debian 32 bit Squeeze 6.0.1

Note that the follow post:
Hamachi LogMeIn on Debian 64 bit Squeeze
at the link
http://maurizio-franco.blogspot.com/2011/07/debian-64-bit-squeeze-601-install-and.html
...explains how to install LogMeInHamachi on Debian with amd64 architecture.

For Debian 32 bit architecture it's all the same....
Pay only attention to the deb dependencies packages.... that should be for i386(or your different.....) architecture.

This is the link for
https://secure.logmein.com/labs/logmein-hamachi_2.0.1.15-1_i386.deb

At this
https://secure.logmein.com/labs/
the other versions.....

Bye....

Hamachi LogMeIn - install and configure on Debian 64 bit Squeeze

- INSTALLATION -
Download LogMeIn deb package.
At write time the current url for download the amd64 version is: https://secure.logmein.com/labs/logmein-hamachi_2.0.1.15-1_amd64.deb
(Complete list of available versions at https://secure.logmein.com/labs/)


Dependecies for the hamachi package is lsb.
Personally I installed the follows
libcairo2_1.8.10-6_amd64.deb
libgtk2.0-0_2.20.1-2_amd64.deb
libpango1.0-0_1.28.3-1+squeeze2_amd64.deb
lsb-desktop_3.2-23.2squeeze1_amd64.deb
lsb-core_3.2-23.2squeeze1_amd64.deb
lsb-cxx_3.2-23.2squeeze1_amd64.deb
lsb-graphics_3.2-23.2squeeze1_amd64.deb
lsb_3.2-23.2squeeze1_all.deb
and for at the end
logmein-hamachi_2.0.1.15-1_amd64.deb

But if you have a "good" sources.list you can before works with...
apt-get clean
apt-get upgrade
apt-get update
and after by apt-get install the differents depends-on packets.....

When you install logmein-hamachi_2.0.1.15-1_amd64.deb
(dpkg -i logmein-hamachi_2.0.1.15-1_amd64.deb)
and you have the current message.....
Starting LogMeIn Hamachi VPN tunneling engine logmein-hamachi
.....you have successfully installed LogMeIn.....

- CONFIGURATION -

We have to follow /opt/logmein-hamachi/README file......
So....

###>  hamachi login
...set up hamachi deamon....

###> hamachi set-nick <nickname>
....optionally command.......set the <nickname> (without < and >....:-)) to your machine in the hamachi net
###> hamachi join <network id>


....join your pc to the <network id> net......
....
......
........ now you are joined!!!!.....




###>hamachi list
.....list network members and their status....* if active....
###>hamachi
....give information about you....(as your ip!!...)


Bye.