The eating habits

In the last few years I continuously battled to keep my weight under control. All the work, stress and deadlines pushed me out of balance and I had to fight it back each time. Inside I always known it’s a question of speed and volume but I could never formulate in such an applicable way. Not until a few weeks ago and I waited for so long until I would reach one of the otherwise impossible targets in order to try to write it down....

July 5, 2007 · len

Does Date() returns localtime?

Getting the correct date and time was always a problem but I could not expect it’s still a problem on today java and OS versions. Trying to deploy a JBoss on various Linux and JBoss I could not notice that on each system the date in the log was different from the localtime. Initially I thought it’s just a JBoss configuration problem but a simple example shows it’s not: import java....

July 3, 2007 · len

Skype 1.4.0.74 beta

I am using skype each day and I was waiting for a new version for linux. Here it is 1.4.0.74 beta. Installation was simple: apt-get install libqt4-core libqt4-gui<br></br>dpkg -i skype-1.4.0.74.deb First problem, aparently the old configuration does not work since at login I get a “Database error” so from start all the history is lost mv .Skype/ .Skype.old Then the interface is completely new yet instead of new functionality the group configuration is now missing so all my contacts are now in the same list with no (apparent) way of grouping them together....

June 28, 2007 · len

Replace OpenOffice

After using OpenOffice 2.2 in Feisty I was much disappointed. Hours of work lost I decided to remove everything and install from openoffice.org. find the packages to remove dpkg --list | grep ii | grep openoffice | cut -c5-35<br></br><br></br>openoffice.org-calc <br></br>openoffice.org-common <br></br>openoffice.org-core <br></br>openoffice.org-draw <br></br>openoffice.org-gnome <br></br>openoffice.org-gtk <br></br>openoffice.org-help-en-us <br></br>openoffice.org-help-fr <br></br>openoffice.org-hyphenation<br></br>openoffice.org-impress <br></br>openoffice.org-l10n-common<br></br>openoffice.org-l10n-en-gb <br></br>openoffice.org-l10n-en-za <br></br>openoffice.org-l10n-fr <br></br>openoffice.org-math <br></br>openoffice.org-style-human<br></br>openoffice.org-thesaurus-e<br></br>openoffice.org-writer<br></br> remove them (you need to press Y occasionally) for i in $(dpkg --list | grep ii | grep openoffice | cut -c5-35); do apt-get remove $i; done<br></br> remove all packages installed automatically apt-get autoremove install alien and convert the RPM’s from the archive apt-get install alien<br></br>tar xvfz /phantom/linux/OOo_2....

June 26, 2007 · len

Contact

Contact link is now working again, thanks to Mark for point out to me that it was not working: Site error<br></br>This site encountered an error trying to fulfill your request. The errors <br></br>were:<br></br>Error Type<br></br> ValueError<br></br>Error Value<br></br> No next action found for contact-info.success.Plone Site.Send Metadata <br></br>actions: ZMI actions: <br></br>Request made at<br></br> 2007/06/20 00:07:14.132 GMT+3<br></br> the actions was missing the in the .metadata file [actions]<br></br>action.success=traverse_to:string:send_feedback_site<br></br>action.failure=traverse_to:string:contact-info

June 24, 2007 · len

The ritualistic life

As I was sitting on a bench today in centre Athens waiting for the 8:30 meeting eager as usually to finish work thus ending up to early I could not notice the pattern of people going to work. It’s the flow of shirts, suits and ties which each morning go to their jobs. It’s the coffee can in all their hands which got my attention. Everywhere I went I have seen the same ritualistic behavior....

June 15, 2007 · len

T630 phone sync

Sony Ericsson T630 phone sync After making the IR and bluetooth work on Feisty the next step was to sync all the contacts from my Sony Ericsson T630 phone. This was extremely easy as I was just required to install multisync: apt-get install multisync libmultisync-plugin-evolution libmultisync-plugin-backup libmultisync-plugin-irmc libmultisync-plugin-irmc-bluetooth and then create a backup synchronization pair: After synchronization all the contacts will be found as vcard files in the backup directory....

June 5, 2007 · len

Openssl example

This is a complete example on how to use openssl to fetch a https page. The example is based on the several others I found on the web so my credit is minimal and only consist of modifying just a little the existing examples to compile and work with openssl-0.9.8e on Linux and Solaris. The example #include <openssl/ssl.h> #include <openssl/err.h> #include <openssl/bio.h> #include <iostream> #define MAX_PACKET_SIZE 10000 int main() { BIO * bio; SSL * ssl; SSL_CTX * ctx; /* Initializing OpenSSL */ SSL_load_error_strings(); ERR_load_BIO_strings(); OpenSSL_add_all_algorithms(); SSL_library_init(); //mandatory and missing from some examples ctx = SSL_CTX_new(SSLv23_client_method()); if (ctx == NULL) { std::cout << "Ctx is null" << std::endl; ERR_print_errors_fp(stderr); } //using a store from examples if(!...

June 5, 2007 · len

Install pidgin

This is the short procedure to install pidgin on Feisty. Install the required packages: apt-get install libglib2.0-dev<br></br>apt-get install libgtk2.0-dev (will install a lot of dependencies)<br></br>apt-get install libxml2-dev<br></br>#at this point pidgin it will compile<br></br>apt-get install libgnutls-dev (for ssl support for msn and google talk)<br></br>apt-get install libgstreamer0.10-dev (for gstreamer support)<br></br>apt-get install libdbus-1-dev libdbus-glib-1-dev<br></br>(for dbus support)<br></br>apt-get install libgtkspell-dev (for gtkspell support)<br></br> Download pidgin Compile pidgin tar xvfj pidgin-2.0.0.tar.bz2<br></br>cd pidgin-2.0.0/<br></br>./configure<br></br>make<br></br>su<br></br>make install<br></br> Run pidgin (will use the gaim settings if this was already installed)...

May 10, 2007 · len

Chicken with preserved lemons and couscous

Mancare marocana de lamai murate cu couscous. Updated: 2011-10-01 2008-02-20 with some new photos for this dish which I now prepare on a regular basis. Ever since I returned from a few days trip to Morocco I have tried to reproduce a dish which I liked a lot there: chicken with preserved lemons. I had several unsuccessful tries with fresh lemons but the result was too sour. So in order to prepare this dish I required preserved lemons....

May 8, 2007 · len