Tuesday, December 08, 2009

The ultimate Google start page

One of the latest Google news was that the guys at Google simplified further their start page. They had spent months with that.

I proudly present that I went much further, in a more efficient way, and today, in my lunch break, I invented the ultimately-simple Google start page:

http://www.zsoltmolnar.hu/the_ultimate_google_start_page.html

My inventions:
  • No Google logo. Rationale: Everybody knows that "web search" equals Google, so it is redundant.
  • No "Search" button. Rationale: My long research resulted that after entering the search term, the majority of people uses Enter, so it is unnecessary. The small fraction of mouse addicts do not deserve Google services.
  • No "beta" in the logo. Rationale: Apart from the fact that there is no logo any more, one who knows what "beta" means also knows that all the Google applications are in permanent beta status, so it does not convey any useful information.
Please start using my new Google start page, because I need beta testers. Once Google paid the millions for my invention, all the successfull beta testers are invited for a lunch. To be stylish, empty white dishes will be served with a fork.

Wednesday, September 16, 2009

Joomla ALFContact telepítése

Jegyzeteket csináltam a www.genfhun.net oldal építése során, aztán arra gondoltam, hogy publikálom őket, nekem ugyanis így sikerült, hátha valakinek hasznos lesz. A post-ot Google Doc-ból publikáltam. Vigyázz, pusztán jegyzetek...!

1. Toltam egy backup-ot.

2. Upgrade volt a Joomla 1.5.10-ről 1.5.14-re. Min. 1.5.12 kell az SMTP/Security beállításokhoz.

Követett instrukciók:

http://docs.joomla.org/Upgrading_1.5_from_an_existing_1.5x_version

Parancsok:

cd ~/public_html/genfhun
wget http://joomlacode.org/gf/download/frsrelease/10786/42661/Joomla_1.5.10_to_1.5.14-Stable-Patch_Package.zip
unzip Joomla_1.5.10_to_1.5.14-Stable-Patch_Package.zip

(válaszd azt, hogy mindent felülír)

rm Joomla_1.5.10_to_1.5.14-Stable-Patch_Package.zip

3. Telepítettem az ALFContact-ot.

Instrukciók itt:

http://extensions.joomla.org/extensions/contacts-and-feedback/contact-forms/3818

Telepítettem ezeket:

Bigo Captcha Plugin: http://files.alfsoft.com/plg_bigocaptcha-1.2.zip
Joom!Fish: http://joomlacode.org/gf/download/frsrelease/9987/38267/JoomFish2.0.3.zip
ALFContact: http://files.alfsoft.com/com_alfcontact_v191.zip
ALFContact magyar nyelv: http://files.alfsoft.com/ALFContact_v182_hu-HU.zip
ALFContact Joom!Fish konfig: http://files.alfsoft.com/alfcontact_joomfish.zip (Unzip first, then install in the Content Elements tab of the Joom!Fish Control Panel)

4. A levelezés beállításai: webhely/globális beállítások

A <root>/configuration.php-ben a következő értékek legyenek:

var $mailer = 'smtp';
var $mailfrom = 'noreply@genfhun.net';
var $fromname = 'GenfHun';
var $sendmail = '/usr/sbin/sendmail';
var $smtpauth = '1';
var $smtpsecure = 'ssl';
var $smtpport = '465';
var $smtpuser = 'noreply@genfhun.net';
var $smtppass = '<ide kell a fő genfhun.net admin jelszó>';
var $smtphost = 'host300.hostmonster.com';


Ezek direkt módon képeződnek le ide, a beállításokra.

Az ALFContact beállításai: Komponensek/ALFContact

A Kapcsolataim listájából töröltem mindent, majd csináltam egy újat ezekkel a pareméterekkel:


Alapértelmezett-re állítottam.

5. Létrehoztam neki egy menüpontot a Főmenüben.


6. Ezen az oldalon:

http://chxo.com/labelgen/

csináltam egy email cím képet a (na email címet nem írok, de itta lenti cím lenne...) -nek. Itt van:


Ez azért kell, hogy a spam robotok ne tudják lenyúlni és bepakolni az adatbázisukba, stb.

7. Beállítottam az ALFContact paramétereket:

A header HTML kódja:

<br /><div align="justify">Ha rövid üzenetet küldenél nekünk, azt itt is megalkothatod. Ha hosszabban szeretnél értekezni, akkor használd bizalommal a következő email címet: <br /> <br /> <img src="images/kontakt_email.png" /> </div>
<br /> <hr />

A beállítások:


8. A Bővítmények/Beépülő modulkezelő-ben engedélyezd a System - BigoCaptcha modult.

Monday, September 14, 2009

Blog about my CERN grid projects

We have started a blog about the daily activities in GFAL (Grid File Access Library) and FTS (File Transfer Service) development. They are the two fundamental file manipulation components of the LHC Computing Grid (LCG) of CERN. See the details there.

http://glite-dm.blogspot.com/


Thursday, February 19, 2009

Install and deloy Axis2/Java with Apache Tomcat


My following CERN wiki page provides step-by-step instructions about how to deploy an example Axis2 service with Apache Tomcat, from scratch.

https://twiki.cern.ch/twiki/bin/view/EGEE/InstallAxis2Java


Wednesday, January 14, 2009

Enable Java applets for Firefox on Linux

I assume that you use the default Firefox and apt-get setup.

1. Test if your browser supports Java applets here:

Java tester

2. If your browser "can NOT run Java applets", then install the Java runtime environment:

sudo apt-get install sun-java6-jre

3. Create the plugins directory:

mkdir -p ~/.mozilla/plugins

4. Link the plugin from the JRE installation to the plugins directory:

ln -sf /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins

If your JRE got installed somewhere else, then look up the libjavaplugin_oji.so and link that file.

5. Add to ~/.bashrc:

MOZ_PLUGIN_PATH=$HOME/.mozilla/plugins
export MOZ_PLUGIN_PATH

If your default shell is not bash, then set this variable accordingly, in the startup script of that shell.

6. Log out and back, and start Firefox. Check if the installation is correct using the link at the top.

External access of a server behind Orange Sagem Livebox

To open a service behind the Livebox Sagem, do the following. I use SSH as example, with port 22, and I assume that you use the default configuration of the modem.

1. Open an account at dyndns.org (I assume you know what it is, or you can figure it out. It provides you a free, fix DNS name that can "follow" the changing IP address of the modem).

2. Log in the modem as admin (default password: admin) from a machine that is behind the modem:


3. Set up the dyndns access properties. Select the Advanced Menu -> Network -> DynDNS drop-down menu item. Add your dyndns user name, password and the DNS name that you selected. Press Apply, then Update Now to see if the DynDNS access is OK. You should see the green "Updated - IP updated successfully" line.
4. Now, you have two options. If you want to access the services of only one server, then you can make that particular server fully visible to the world by using DMZ. Mind that it is unsafe, because the firewall in the Livebox will not protect that machine. If you want this, then select the Advanced Menu -> Firewall -> Policies menu item, then click on DMZ host. Add the local IP address of the server, and check the checkbox. Press Apply. Done.
5. If you have more servers, or you want to protect your server with the Livebox firewall (recommended), then you must specify the services one-by-one. Select Basic Menu -> LAN Servers. At the bottom of the table, click on New Entry
  • Give a name to the service (arbitrary)
  • Access activated: yes
  • From port: 22 (the SSH server will be available on _your_dyndns_name_:22 for the world)
  • To  port: the SSH port of the SSH server (22)
  • Local IP address: the address of the server
Press Apply, and you are done.

Mind, that for an unknown reason, you cannot access the services with the dyndns name behind the Livebox. Try if from a real external machine (ex. ssh to an external server, and try ssh back to your server).


Monday, January 12, 2009

InvocationTargetException with the Apache Axis2 Eclipse plugin

If you have to use Axis2, and work with Eclipse, it is worth to try this tool:

Code Generator Wizard Guide for Eclipse Plug-in

If you encounter the following problem:



then it means that not all the necessary jar files are available: either not packaged in the plugin download or they are missing from the plugin.xml.

Do the following (this particular solution worked for me, this or a similar one should also work for you):

1. Download the following jar files:

stax-api-1.0.1.jar
backport-util-concurrent-3.1.jar

and save them to eclipse/plugins/[Axis2 Codegen Wizard]/lib (replace [Axis2 Codegen Wizard] with the real plugin directory).

2. Add to the eclipse/plugins/[Axis2 Codegen Wizard]/plugin.xml the followings (to the <runtime> element), if they are missing:

<library name="lib/stax-api-1.0.1.jar">
<export name="*"/>
</library>


<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>


3. Restart Eclipse:

eclipse -clean

If you still have problems, then open eclipse/plugins/[Axis2 Codegen Wizard]/plugin.xml, and figure out which jar files are still missing. Use http://findjar.com/ for download locations of the missing files.

Links discussing the same problem:

Developing Web Services Using Apache Axis2 Eclipse Plugins

Blogs from Iterox - used this method to track down the problem


Tuesday, February 06, 2007

Wow, I am a top Google Gadget developer now...

I don't know why, but I am among the "top" Google gadget developers, at the moment of writing, my rank is 71 (out of 80). It was just that simple password generator (available form my web page...), that brought me the Title and Sentences:

"These talented individuals are leading the charge in making your Google homepage a better place, and we think they deserve a standing ovation!"

Should I be finally proud of myself? :)))

It's here.


Thursday, December 14, 2006

New Google gadget to generate safe passwords

I've created a new google gadget, passwdgen for generating safe passwords. Available from here.

It is not a new stuff, I just "gadgetized" the service found here. The javascript code is reused as is.

I also hate passwords. I would like to use the "same" password everywhere, but it is not that safe method. The service generates a password, by mixing a master password and an optional string (best is the site where the password is submitted). You must not give out the master password, and it must be safe enough. You do not have to remember your passwords, because you can regenerate them any time.

Certainly, if your master password gets compromised, all your password may be revealed, but anyhow, it is much safer way that giving the same password everywhere.

Monday, July 03, 2006

"Symbolic link not allowed or link target not accessible..."

Apache 2 refused to serve pages with that claim in the error_log (Suse 10.1). I had tried everything (permissions, ownership, etc.) - nothing worked. My httpd.conf piece looked really perfect:

<Directory "/srv/www/htdocs">
                Options FollowSymlinks
                AllowOverride None
                Order allow,deny
                Allow from all
</Directory>


and no success. Then, I found the line in the httpd.conf:

Include /etc/apache2/default-server.conf

Yes, yes, that include file contained a configuration for the document root, and certainly overwrote my settings. So, if your settings look really good, and the symlink problem still exists - look for such an include.

The problem seems to be obvious - but search Google for it, and you may be surprised...

Sunday, June 18, 2006

Cannot renew ip address xp...

Quite nasty a problem, happened to WinXP time to time. Last time, the VNC client stopped responding with a "socket error". Then everything went down, one after the other. Geez virus, or something similar animal... The always-cure reboot finalized the problem. XP said that the network card had limited connectivity, and tried to renew the IP address when I clicked on repair (had also tried ipconfig /release & renew without results) and it just told me it was unable to renew the IP address (which begun with 169.***.***.***).

The forums and groups did not give any usable tips, then finally I found this article: How to determine and recover from Winsock2 corruption.

The article is from Microsoft. I applied the suggested brutal-looking solution of typing netsh winsock reset at the command prompt. The article suggested that some of the winsock-sensitive apps would require a reinstall, but it looked a good compromise to reinstalling the whole Windows (having been customized for more than a year.)

After the reboot, it came back. Some of the applications looked dizzy a bit, but they recovered finally. Now I am happy again. Ah yes... the root of the problem must have been winsock2 corruption :)

Saturday, March 18, 2006

Shared calendar

I fed up with the fact that my calendar content is distributed between several Exchange and web based calendar services, and maintaining the sync between them is quite a time consuming task. So, I set up a centralized calendar service by using WebDAV, iCalendar and Mozilla Calendar. My method was:

1. As I run a private Debian Linux/Apache 1.3 web server, I chose the mod_dav method. Downloaded the mod_dav sources. In order to compile, the apache-dev package must have been present:


apt-get install apache-dev

Then, the


configure --with-apxs


command worked.

2. Followed the info in the INSTALL file. The httpd.conf addition that worked for me was:

LoadModule dav_module /usr/lib/apache/1.3/libdav.so
AddModule mod_dav.c
DAVLockDB /tmp/DAVLock

...

mod_alias.c />.....
Alias /dav /home/httpd/dav

/dav /> AuthType Basic
AuthName "WebDAV"
AuthUserFile /> DAV on
AllowOverride None
Options None
GET HEAD OPTIONS /> Require user /> /> />.....


3. Then, set up the Mozilla Calendar by the info here.

Voila, I have a centrally stored calendar. I will set up "several" clients bound to the stored calendar file, one for my office, and a web interface for remote access when travelling. My calendar integrity is ensured, and I won't not miss a birthday any more :)