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