Quantcast
Channel: Java mon amour
Browsing all 1121 articles
Browse latest View live
↧

Stderr: VBoxManage.exe: error: Could not rename the directory

I am not a big fan of Vagrant, its behavior is way too erratic and opaque for me. When it works we are happy, when it fails - and it fails way too often - we are left googling sparse and stern...

View Article


keytool error :java.io.IoException:Incorrect AVA format

I run this command: keytool -genkeypair -alias alias -keyalg RSA -keysize 1024 -dname dn -keystore keystore and this fails with "keytool error :java.io.IoException:Incorrect AVA format" Just remove...

View Article


Image may be NSFW.
Clik here to view.

Book: The Healthy Programmer

http://pragprog.com/book/jkthp/the-healthy-programmer The book provides a host of evidence about the negative effect (=early death and painful life) of the lifestyle associated with most office jobs:...

View Article

JKS management made easy with Portecle

http://sourceforge.net/projects/portecle/?source=dlp One of the irritating things about security is all those different options in the keytool command line. Portecle makes life a lot easier by managing...

View Article

Import an existing Private Key (.key file) into a JKS store

Sounds easy but it's not. I have an existing .key (private key) and .crt file (certificate for public key) and I want to import them into a JKS....

View Article


Image may be NSFW.
Clik here to view.

Syria

View Article

Image may be NSFW.
Clik here to view.

Iterations in Puppet: create_resources

So, the BAD news is that in Puppet you cannot do a for loop and create resources specified in a Collection. Why not? Because. Don't ask. The Founding Fathers of Puppet decided so, and thou shall not...

View Article

Vertical Tabs in Internet Explorer

I am forced to use Internet Exploder lately, and I go literally mad with its non-customizeability of tabs: they are stuck on the top, stealing valuable vertical space. As very well highlighted in this...

View Article


Gridlink Datasource registering with ONS daemons

When you have Gridlink DS, you will see in the logs this debug message (of course if your log level is debug :o) ) <BEA-001556><Data Source ACME_ConfigDS for service o01osb_app.acme.com...

View Article


Puppet: getting started with hiera (hiera example)

Official doc here I don't like hiera, but it's better than hardcoding configuration in .pp files. First attempt: vi hieratest.pp $pippo = hiera('pippo')notify { "${pippo}" : }I run "puppet apply...

View Article

Image may be NSFW.
Clik here to view.

Book: Pulling string with Puppet

Excellent book by James Turnbull, which explains in clear words the concepts behind Puppet. Resources and Collections (classes) Idempotence; RAL (Resource Abstraction Layer) and Providers Installation...

View Article

How to retrieve a BLOB in Java and display as XML

see also this on WLSTpublic class DBConn { public static String getBlobData(String driver, String url, String username, String password, String sqlQuery) throws Exception { String result = "";...

View Article

OracleDB: How to save a byte array to a BLOB field in Java

PreparedStatement statement= getConnection().prepareStatement("INSERT INTO MYTABLE(MYBLODFIELD) VALUES(?)");byte binData[] = myString.getBytes();inStream = new...

View Article


More on saving BLOB with Oracle DBAdapter

This will NOT work:CREATE TABLE BLATABLE (BLAFIELD BLOB);INSERT INTO BLATABLE (BLAFIELD) VALUES ('SOMEVALUE');you get a ORA-01465 - "invalid hex number" When I try to save a String to a BLOB field in a...

View Article

OSB: Custom XPath vs Java Callout classloader difference

the Custom Xpath classloader doesn't access the jars in the domain lib folder (like /opt/oracle/domains/osbpl1do/lib folder), while the java callout does. So a function might work when invoked by...

View Article


Image may be NSFW.
Clik here to view.

Book: Puppet 3 Beginner's guide

This is an excellent hands-on tutorial to get started with Pupppet. I suggest this should be your first book on Puppet before you move on more advanced topics. The author wrote also the other book...

View Article

The best of Puppet Conf 2013

You can find all videos hereHowever some of them are not extremely exciting, so better pick only some.This one "getting started with Puppet" from Michael Stahnke is absolutely captivating, this guy...

View Article


Image may be NSFW.
Clik here to view.

Book: Vagrant Up and Running

I am not a big fan of Vagrant, don't ask me where this antipathy comes from (maybe because I still don't understand why all these operations/infrastructure people use Ruby - a web development language...

View Article

Github: Failed to connect to github.com:443; No error

I have been swearing for a while to realize that the git client (http://msysgit.github.com/) requires a proxy settings to be able to contact github. Here are all the commands (don't tell me git is...

View Article

Image may be NSFW.
Clik here to view.

Puppet sucks?

It could suck more. It could also suck less. After some time using Puppet, these are my thoughts - straight from my heart. - for someone having any Groovy, Python or Java background, it's EXTREMELY...

View Article
Browsing all 1121 articles
Browse latest View live