Thursday, December 13, 2012

Until now, I was using Hari Sekhon 0.7.2 check_md_raid plugin to monitor Centos software disk RAIDs.

There was an issue: in Centos there is a weekly cron job /etc/cron.weekly/99-raid-check that resync all the md raid devices.
So every weekends there were Nagios warnings for each Centos linux server about unclean md status, until resync finished.

Not so nice.

So I switched to a plugin found under the contrib directory of official Nagios plugins: /usr/lib64/nagios/plugins/check_md_raid

Friday, November 23, 2012

To solve the well-known problem in Mac OS X (Lion) related to a Cisco VPN, you can follow these steps.

The problem is: using the built in VPN client to connect to a Cisco ASA, there is a problem related to DNS.
There is no way, using the GUI, to solve the issue. You can set network interface order, but your corporate network DNS will never be involved. So you can ping a connect to your private network using IP addresses, but not domain names (if they are not on a public internet accessible DNS).

With an administrative account, from terminal, create a directory called resolver under /etc

Friday, October 12, 2012

In Internet Explorer you see "Certificate Error: Navigation Blocked":
as usual, when visiting sites with self signed certificates or unknown
CA.
When
pressing the continue to site not recommended blabla button, nothing changes, it just
stays on the same page.

So, there is a windows
upgrade, KB2661254 (Microsoft Security Advisory: Update for minimum
certificate key length) released on 9 October (I think), that prevent
access to some https web sites using Internet Explorer.

So,
you must upgrade your web servers to 1024 or 2048 bit keys, or
uninstall such windows upgrade, or make changes in the windows registry
to lower the minimum certificate key length (search the KB article on the Microsoft site).

Thursday, September 20, 2012

Answer: The firmware has an security enchancement so now the DTU pays attention to the VPN gateway setting to disallow stored password. So you have to change the gateway setting if you still want the password in the DTU.

Monday, August 13, 2012

From an Openindiana host, and connecting to some Linux hosts, often I receive this error from the ssh client

Received disconnect from 10.11.12.13: 2: Too many authentication failures for yourfuckingusername

The fact is that ssh try to first authenticate using keys, and if you have many keys he tries every one of them, so... maybe the server or the Openindiana (I've never seen this problem on Mac OS X, in example) ssh command exit after two or three failed keys authentication.

The solution is to use PubkeyAuthentication options in the ssh command

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_24/jre/lib/amd64/server:/usr/java/jdk1.6.0_24/jre/lib/amd64:/usr/java/jdk1.6.0_24/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Friday, August 10, 2012

It could be useful to avoid that each user, on a multiuser operating system,
have own java cache under his home directory, i.e. a corporate
application used by each user. Every time the jnlpi is upgraded, every
user have to download the new version in his home directory cache.

Using system level cache, only the first user launching the jnlpi will download the java application in the cache.

How many US patients have not birth date

select count(distinct s.patient_fk)
from study as s
join patient as p
where s.patient_fk = p.pk
and s.mods_in_study = 'US'
and ( p.pat_birthdate not like '1%'
and p.pat_birthdate not like '2%'
or p.pat_birthdate is NULL )

Studies with a number of instances > 10000 Grouped by Year

select count(cnt) as num, year
from(
SELECT COUNT(*) as cnt,
YEAR(study_datetime) as year
FROM instance as i
join series as s
on i.series_fk = s.pk
join study as stu
on stu.pk = s.study_fk
GROUP BY YEAR(study_datetime), i.series_fk
HAVING COUNT(*) > 10000) XX
GROUP BY year

How to add a link in the top bar

To add a link button in the custom toolbar, edit the content/srkioskbrowser.xul file, put something like this code inside the <toolbox id="navigator-toolbox"> and <toolbar id="KioskLinks-Toolbar"> elements.

Description

I'm not a programmer. I don't know very well Firefox add-ons. So, you can use this extension at your own risk. :-)

To configure and customize this extension, it is supposed:

you know where Firefox extensions are installed on your system i.e. /home/user/.mozilla/firefox/muwypw2y.default/extensions on Linux and Solaris or C:\Document and settings\user\Application data\Mozilla\Firefox\Profiles\fj5drt33.default\extensions\ under Windows

you are able to edit files (using vi, gedit, wordpad, notepad or what you like)

How to disable the extension

To disable the extension, you must start Firefox in safe mode, then disable or uninstall it: