Quantcast
Browsing all 1121 articles
Browse latest View live

zxJDBC, invoking stored procedures passing parameters (zxjdbc callproc)

for the 2 world users of zxJDBC: This works, the stored procedure is defined as: create or replace PROCEDURE PVTESTPROC AS BEGIN INSERT INTO PVTEST (COLUMN1) VALUES ('mamma'); commit;END PVTESTPROC;...

View Article


Image may be NSFW.
Clik here to view.

Garbage Collection: testing the GC plugin for VisualVM

Watch the excellent tutorialInstall VisualVm GC plugin (I had to download it locally to install it, I could not install directly...) (beware, you should use visualvm for java 7, otherwise the plugin...

View Article


Image may be NSFW.
Clik here to view.

Poll result: Automation and Puppet

In my organization we automate configuration of our servers..it looks like Puppet is still not that much popular.... infrastructure is still largely configured with ad-hoc home-grown methodologies.

View Article

Getting rid of Windows line feeds

This script to find infected files: #!/bin/shPATH_TO_SCAN=$1if [ "${PATH_TO_SCAN}" == "" ]; then PATH_TO_SCAN="."fiFILELIST=$(find "${PATH_TO_SCAN}" |egrep...

View Article

How to demo Garbage Collection, JConsole and VisualVM

First, create with JDK 7 this Java Project in Eclipse: package com.pierre.gctests;import java.lang.management.ManagementFactory;import javax.management.InstanceAlreadyExistsException;import...

View Article


Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match

I got this message logging as user1 with X11 forwarding with putty, then sudo su - user2, then run JConsole solution: login as user1 xauth list (you get here a list of entries, say line1, line2...)...

View Article

jvisualvm: java.lang.OutOfMemoryError: PermGen space

I get OOM while profiling a JMV. If you do jvisualvm -J-XX:MaxPermSize=512m you get this: ps -ef | grep visualsoa 16602 15386 0 18:06 pts/0 00:00:00 /bin/bash...

View Article

Need a X-Server? Say welcome to Mobaxterm, and farewell to XMing

http://mobaxterm.mobatek.net/download.htmlI was really fed up with XMing hanging and crashing... mobaxterm is a lot sleeker and loaded with options.... I might even consider going PRO and using it...

View Article


difference between java and javaw

create this file JavaConsole.java: import java.io.Console;public class JavaConsole { public static void main(String[] args) { Console console = System.console(); System.out.println("the console is " +...

View Article


Outage of JavaMonAmour.org

I have deleted by mistake the blog... luckily you have 90 days in blogger.com to recover the blog. Unfortunately the link between javamonamour.org and javamonamour.blogspot.ch was lost, and it was a...

View Article

Image may be NSFW.
Clik here to view.

Dedicated to all developers

View Article

Opatch: ApplySession failed during prerequisite checks: Prerequisite check...

Trying to apply a patch: /opt/oracle/fmw11_1_1_5/oracle_common/OPatch/opatch apply -jdk /opt/oracle/java/ -invPtrLoc /opt/oracle/fmw11_1_1_5/oraInst.locInvoking OPatch 11.1.0.8.2Oracle Interim Patch...

View Article

Image may be NSFW.
Clik here to view.

Configuring JProfiler for WebLogic

Download and install JProfiler 7.2 (the latest is 8 at the time of writing). Enter the licensing information. Run the Session/Integration/New Remote Integration.Then remote Application Server: this...

View Article


Image may be NSFW.
Clik here to view.

JProfiler connection through SSH Tunnel

If you don't want to open a firewall for JProfiler, here is a simple trick: - on the monitored server, run the startManagedWebLogic_jprofiler.sh - make sure the port 8849 is being listened to (netstat...

View Article

Microsoft Office Communicator chat history

Microsoft stinks, and his products are bloated with useless cosmetic features and lack essential stuff. Communicator is so ridiculous that it doesn't even keep a chat history, so if you close the chat...

View Article


Image may be NSFW.
Clik here to view.

WLST to create machines

run wlst, and stay in offline mode. I read the domain "osbpl1do", which has already 1 machine, and I want to add an extra machine. readDomain('/opt/oracle/domains/osbpl1do')cd('AnyMachine')ls()and here...

View Article

managing cron entries with Puppet

Puppet has a predefined type cron. Which is very cool. The only issue is that we don't want to hardcode cron stuff in any pp manifest, since each node has to be configured in a different way. This is...

View Article


Image may be NSFW.
Clik here to view.

JMA for Afghanistan, and against war

While here we talk about logstash and puppet, women and children  are destroyed daily in one of the most preposterous wars in history, the Afghanistan war. The media don't even mention any more WHY...

View Article

Drag and Drop movies disabled in STINKY iTunes

First make sure that your movie type is actually accepted in STINKY Iphone (STINKY Iphone plays only a small subset of movie types) Solution:Start STINKY Itunes in safe mode (hold down SHIFT+CONTROL...

View Article

WebLogic: how to recover a config.xml reduced to 0 size

if you have "configuration archive enabled" in your domain, you can retrieve the latest archive and apply diffs since last configuration changeor you can do the same using the config.xml.bckif your...

View Article
Browsing all 1121 articles
Browse latest View live