Bash: reading properties based on an ENV parameter
I hate bash, and I hate that there is not a standard way of reading property files based on 2 parameters: the property name, and the environment. And we are in 2014...flying people to Mars etc...and...
View Articlegit: merging versus rebasing
I used to do: (edit my files)git pullgit add myfilesgit commit -m "blablabla"git pushand life was fine, until I was suggested to use rather: (edit my files)git fetchgit add myfilesgit commit -m...
View Articlegit: common options
configure your identity: git config --global user.name "FirstName LastName"git config --global user.email "firstname.lastname@nespresso.com"disable certificate warning git config --global...
View ArticleJMA author turning 53 tomorrow
In my childhood, computers could be seen only in some MODERN science-fiction movies, and they were huge cabinets with magnetic tapes spinning... in those times, knowing how to use a ruler was a must...
View ArticleOSB processing of gz gzip files
Taking example from this post, I have developed this Java Callout class: package com.acme.osb.utilities;import java.io.BufferedReader;import java.io.ByteArrayInputStream;import...
View ArticleOSB binary JMS messages
If someone sets the message type to "binary" for a JMS Business Service, this will generate BytesMessage rather than TextMessage. You might have performance reasons to do that. But it's a pain, because...
View ArticleOSB load balancing of JMS messages
Obviously, use Distributed queues. In the Business Service creating the JMS message, enter a single URI which has the cluster address, like:...
View ArticleYAML parsing in Python
I was looking for a simple way of validating YAML structures, so I did the following: download http://pyyaml.org/download/pyyaml/PyYAML-3.10.tar.gztar xvfz PyYAML-3.10.tar.gz cd PyYAML-3.10 python...
View ArticleBooleans in Python
I firmly believe that a boolean value should be represented by 0 and 1 - yesterday I have wasted 1 hour because in Ruby you say "True" but in YAML it's "true" (morons the Puppet founding fathers who...
View ArticleOracle JCA DbAdapter db poller at work
I can see 4 threads "[ACTIVE] ExecuteThread: '24' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock oracle.tip.adapter.db.InboundWork@5adcf919 TIMED_WAITING...
View ArticleA Jewish Voice For Peace
I have just donated to A Jewish Voice For Peace, it seems to me admirable that this people try to maintain some democratic debate in a country dominated by priests and fascists, just like Italy under...
View Articlesudoers command with any parameter
my /etc/sudoers file was configured with %users ALL=NOPASSWD: /usr/local/bin/puppet agent -t but then I was not allowed to run sudo puppet agent -tv and I get a Sorry, user soa is not allowed to...
View Articlepuppet file recurse purge filebucket
Using file { "/path/to/target/": source =>"/path/to/staging/", recurse => true, purge => true, } has one big caveat: if /path/to/target/ contains a lot of uncontrolled stuff which doesn't...
View ArticleBook: Oracle WebLogic Server 12c Advanced Administration Cookbook
http://www.packtpub.com/oracle-weblogic-server-12c-advanced-administration-cookbook/bookThe book is a very hands-on, no blablabla tutorial which doesn't assume you have any previous knowledge of...
View ArticleUkraine
IF you are wondering what is REALLY happening in Ukraine, read this. In a nutshell, Ukraine is yet another violent Nazi Golpe by the hands of US-NATO mercenaries - just like Libya, Syria etc etc. What...
View Articlefind files with windows style linefeed
find . -name "*.sh" -exec grep -l "\r\n" {} \;to fix them:find . -name "*.sh" -exec grep -l "\r\n" {} \; | xargs dos2unix
View ArticleIs storing JMS and TLOG files on a shared folder a good practice?
A friend of mine has JMS and TLOG files on a NFS4 shared folder, and shared among the 4 machines of his cluster.Allegedly this should make his solution more "fault tolerant".However, after 2 years in...
View Article"Against the Car" - aka "The Planet-eating machine" or "The Canned Man"
I am sponsoring a research on the (disastrous) impact that CARS have on this Planet - approaching the issue from an anthropological, urbanistic, medical, social and political terms.Surprisingly enough,...
View ArticleStuck in tar
I have a tarball AcmeScripts-1.26-scripts.tar.gz containing a subfolder: tar tvzf AcmeScripts-1.26-scripts.tar.gz drwxr-xr-x 508/100 0 2014-03-11 12:21 AcmeScripts-1.26/jms/ drwxr-xr-x 508/100 0...
View ArticlePuppet. generate a property file from a YAML hash
the YAML: acmev2_properties: acmev2_env : DEV acmev2_loadbalancerurl : http://hqchacme102.acme.com:8001/ The file/template statenent: file { "${acmescripts_rootfolder}config/acmeconfig.properties":...
View Article