RSSAmplifier

Blog

Rico's Blog

Recent content on Rico's Blog

blog.hgomez.netRSS feed ↗43 posts

Latest posts

Install Linux Mint 22 on a MacPro 2.1

Once powerhouses, Apple Mac Pro machines remain usable today with the help of OpenCore Legacy Patcher (OCLP). However, Mac Pro 1.1 and 2.1 aren’t officially supported by OCLP. This means you’ll likely be limited to macOS El Capitan (released in 2015). While El Capitan is still functional, most modern macOS software requires macOS 10.13 (High Sierra) or later versions like 10.15…

Docker Build Multi Arch

I was curious about the build process of Quarkus Base Images and especialy the quarkus-micro-image:2.0 The build process is unsurprisingly using Maven, JBang Maven Plugin and Quarkus JDoc. I cloned the Quarkus Base Images repository and started Maven build (installation) git clone git@github.com:quarkusio/quarkus-images.git cd quarkus-images mvn install Build failed a few minutes later [INFO] at…

iBook G4 Reinstallation

I recently received an old iBook G4 as a gift, and it’s still in working order! This machine was the last PowerPC-based laptop Apple ever produced. As a best practice, I always reinstall a clean operating system on any machine I refurbish. This particular iBook G4 came pre-installed with OS X Tiger (10.4, released in 2005). It boasts a powerful PowerPC G4 processor clocked at 1.33 GHz, 512MB…

Hugo and GitHub

My former blog was hosted on GitHub Pages and it was really easy to use Hugo there. First, I installed a GitHub Action for Hugo Deployment under .github/workflows/hugo.yaml There are many GitHub Actions available, and I used the one suggested by Hugo # Sample workflow for building and deploying a Hugo site to GitHub Pages name: Deploy Hugo site to Pages on: # Runs on pushes targeting the default…

Obsidian and Hugo

I’ve been using Obsidian for several months now to take my notes. It’s an easy-to-use tool for writing in markdown mode, and it’s very simple to insert images or links. Obsidian organizes documentation into Vaults , which are simply folders. This makes it very easy to have the said content in a Git repository and thus have your notes shared on multiple devices, which is very…

New Blog using Hugo

At first, my blog was hosted on WordPress. There were so many attack attempts on the WordPress-powered sites I worked on that I decided to move to something simpler, Octopress . Incidentally, Octopress reached End of Life in 2015, so I had to move to something else. I chose HubPress , which unfortunately stopped development in 2019. For a few years, my blog was waiting for a new engine. Then came…

About Me

Hi ! I’ve been working in the software industry for over 35 years. I started my career on the development side, working as a Developer, then a Project Manager, and finally a Software Architect. I then moved into software engineering, working as a Tech QA and then a CI Architect. Next, I moved to the Run side, working in Operations, DevOps, and SRE. And now, I’m a consultant, Tech…

Voxxed Luxembourg 2024

It was an honor to be chosen as a speaker at the Voxxed Luxembourg 2024 conference. I’m thrilled to share my passion for SRE, specifically addressing the common misconceptions and the true nature of this crucial role in our industry. To resume : SREs are not superheroes. Your company is not Google, so manage SRE accordingly. It’s crucial to involve all stakeholders. Observability is a…

Devoxx France 2024

A Decade of DevOps: A Retrospective and Look to the Future Introduction: A decade ago, in 2013, five of us stood on the Devoxx France stage to discuss an emerging topic: DevOps. As the “DevOps Mercenaries” - Dimitri Baeli, Arnaud Héritier, Pierre Antoine Grégoire, Gildas Cuisinier, and myself - we led a 3-hour workshop using a real-world case study of an ephemeral content transfer…

Archives

Gitlab custom hooks - Bash Way

If you’re using Gitlab, you may know you could use custom hooks to validate contents. Everything is detailed in http://doc.gitlab.com/ce/hooks/custom_hooks.html I found many examples where hooks are Ruby based and using Gitlab APIs but I wanted something in good old bash. I found some bash hooks, https://github.com/Praqma/git-hooks , but 7 months old. They still works with Gitlab 7.8.1 and adapted…

CentOS & RHEL and up to date Subversion and Git

If you’re using CentOS/RHEL 5, 6 or 7, you have noticed bundled subversion and git are quite old. It could be a problem if you need to use smart features, like Sparse Checkout. Also Jenkins Git Plugin recommand version 1.7 or higher. Of course, you could recompile git from sources, but it’s better to use prebuilt packages. Here enter Wandisco Wandisco provides up to date Subversion RPMs for CentOS…

CVE-2014-8139 and activation-1.1.1.jar

While rebuilding archiva RPM package, I noticed some openSUSE systems to complains about invalid jar file for activation-1.1.1.jar http://central.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.jar Unzip indicate an error : unzip -t activation-1.1.1.jar Archive: activation-1.1.1.jar testing: META-INF/ bad extra-field entry: EF block length (0 bytes) invalid (< 4) testing:…

VirtualBox 4.3.22 and network drives

If you upgraded from VirtualBox 4.3.20 to 4.3.22 and use Vbox network shares, you may have noticed shares are reported as unmounted, even if they are available. This is a well known issue : https://forums.virtualbox.org/viewtopic.php?f=2&t=66081 https://forums.virtualbox.org/viewtopic.php?f=1&t=66067#p312765 Solution for now is to revert to 4.3.20 (VB and extension) or wait for upcoming VirtualBox…

Mountain Lion and Apxs

Mountain Lion came with a version of apxs where C compiler and pre-processor are defined to a location not in phase with XCode 4.5. If you try to build any apxs related modules or Tomcat Native Library, it will fail like this : checking build system type... x86_64-apple-darwin12.2.0 checking host system type... x86_64-apple-darwin12.2.0 checking target system type... x86_64-apple-darwin12.2.0…

Understanding Java From Command Line on OSX

Java on OSX OSX is a good platform for Java development but also running Java applications. Sadly XServe servers are no more available but in many cases Mac Mini could to pretty good works as Java server applications. For a long time, OSX Java was maintained by Apple, from Sun Hotspot and was often a bit late vs Windows/Linux releases. With Lion, Apple announced that they won’t produce Java for…

Building Universal Apache Tomcat Native Library on OSX - Updated

Updated build process for tomcat-connector, 1.1.24, no more APXS variable or configure parameters required TCN_RELEASE=1.1.24 curl http://mir2.ovh.net/ftp.apache.org/dist//tomcat/tomcat-connectors/native/$TCN_RELEASE/source/tomcat-native-$TCN_RELEASE-src.tar.gz -o tomcat-native-$TCN_RELEASE-src.tar.gz tar xvzf tomcat-native-$TCN_RELEASE-src.tar.gz cd tomcat-native-$TCN_RELEASE-src/jni/native…

Building Universal Apache Tomcat Connector (Mod_jk) on OSX

Build Universal Apache Tomcat Connector (mod_jk) for OSX follow tricks used for Apache Tomcat Native Library. CFLAGS='-arch i386 -arch x86_64' APXSLDFLAGS='-arch i386-arch x86_64' Here is a small script to do it : #!/bin/sh # JK_VERSION=1.2.37 curl http://mir2.ovh.net/ftp.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-${JK_VERSION}-src.tar.gz -o…

Using Apache Tomcat Connector (Mod_jk) on OSX

You’ll need first mod_jk installed, follow Building Guide . Create /etc/apache2/other/jk.conf : # Load JK Module LoadModule jk_module libexec/apache2/mod_jk.so # JK workers.properties JkWorkersFile /etc/apache2/other/workers.properties # JK shared memory location JkShmFile /var/log/apache2/mod_jk.shm # JK logs JkLogFile /var/log/apache2/mod_jk.log # JK log level [debug/error/info] JkLogLevel info…

To SSD or Not To SSD

My MacBookPro is quite old now : MacBook Pro 5.1 (Late 2008) Core2Duo 2.66Ghz Under Lion, MBP appears to be sometime laggy even if I already updated it : Replaced original 4Gb RAM to 8Gb DDR3 (GSkill PC8500 SQ (1066 MHz), 7-7-7-20) Replaced original Hitachi 320GB/5400 RPM by a 500Gb WesternDigital Black Black 7200RPM (WD5000BEKT-75KA9T0) I run GeekBench 2.2.7 and give me a bench result of 3752 :…

DevOps Logo - 2nd Try

Here is the second try of logos for DevOps, still provided by Sabrina (@saabpii). She carefully tracked comments here and on Twitter : Please vote for your preferred one.

DevOps Logo

I asked some times ago Sabrina Perrin (@saabpii) a great graphic designer I worked with for years, if she could try to works on some DevOps logo. As expected she has been very motivated and inspired. Here are the results : Now I need you to comments and votes for them. All of this artwork is free to use, just mention Sabrina somewhere on your sites/blogs/presentations. Thanks again Sabrina !

Uninstalling MacFuse on Lion

If you installed MacFuse on Lion (10.7) and tried to uninstall you may encountered the following error : sudo /Library/Filesystems/fusefs.fs/Support/uninstall-macfuse-core.sh MacFUSE Uninstaller: Can not find the Archive.bom for MacFUSE Core package. Uninstaller didn’t check for Lion (uname -r reporting 11.x). So fix is easy, just edit uninstaller script…

Batch Rpm Signing

I’m using Jenkins to build RPMs with free-style scripts. Decent RPM packager should sign his RPMs so they could be checked by yum/zypper tools. Here you could be in trouble since rpm signing require a password to be passed in command line : rpm --addsign -D '_signature gpg' -D '_gpg_name packagers@myforge.org' RPMS/noarch/myjenkins-1.0.0-1.noarch.rpm<br /> Enter pass phrase:<br /> It’s quite…

Iozone and Gnuplot 4.x

Iozone is a great tool to mesure performance of filesystem. You could find 10 examples here . In it latest version, 3.97, it came with reporting tools, report.pl and gengnuplot.sh , who use gnuplot to render images. Due to changes in GnuPlot 4.x, report.pl and gnu3d.dem need to be updated to works. Also you may get only 8 metrics in reports instead of 15 expected in latest release of report.pl…

Servlet Containers Startup Time

With the release of JBoss AS7, we see many comments around about the startup time of Application Servers. Even if this appears marginal in real life (an application server is expected to run 24/24 7/7), there is area where startup time is still important like for developpers. In developpment phase, when you have to start/stop your server dozens of times by day, you need fastest start time as…

Building Universal Apache Tomcat Native Library on OSX

I recently notice that my Apache Tomcat running on OS/X 10.6.8 couldn’t use Apache Tomcat Native Library. INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jul 13, 2011 11:02:30 AM org.apache.coyote.http11.Http11Protocol init…

Apple JDK and OpenJDK - Back to Benchs

It’s good to see works in progress for Aqua/Cocoa - AWT ports but what about JVM performances ? Test vms I selected 4 VMs to be tested Apple Java 1.6.0_22 - java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04-314-10M3406a) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-314, mixed mode) Apple Java 1.6.0_24 - java version "1.6.0_24" Java(TM) SE Runtime Environment (build…

OpenJDK 7 on OSX and IntelliJ IDEA EAP

During the last weeks, Apple started to contribute it’s Aqua/Cocoa port to OpenJDK 7 on the macosx-port branch. It’s still works it progress but it was nice to see some SWING apps like IntelliJ IDEA works on the preliminary release. I used IntelliJ IDEA EAP (10.5) and tweaked it’s startup shell.sh to define AWT_TOOLKIT=CToolkit and add -Dswing.defaultlaf=com.apple.laf.AquaLookAndFeel since Aqua…

Apple JDK and OpenJDK – Core2Duo vs I7

Previously I did benchmark of Apple VMs and OpenJDK 6 and I wanted to see how all of the JVMs available today on our Mac on two systems, an old Core2Duo and a newer i7. And also see how they perform 32 / 64 bits kernel mode. So I redo full dacapo bench suite to include OpenJDK 6, and we have now 5 VMs (3 Java 6 and 2 Java 7) : Apple Java 1.6.0_22 - Java HotSpot(TM) 64-Bit Server VM (build…

Tomcat Maven Plugin and Apache Tomcat Post 6.0.29

If you’re using the Tomcat Maven Plugin and want to use post 6.0.29 Apache Tomcat, ie latest 6.0.32, you should update your pom to handle a change in artifact. Up to 6.0.29, Eclipse JDT compiler was bundled as jasper-jdt : <groupId>org.apache.tomcat</groupId> <artifactId>jasper-jdt</artifactId> <version>6.0.29</version> </dependency> With 6.0.30 , Apache Tomcat team started to bundle Eclipse JDT…

OpenJDK 1.7 for OSX Benchs

After building and packaging OpenJDK 1.7 for OS/X, I wanted to see how performed new VMs. Test vms Recents OpenJDK 1.7 32 and 64bits where used : openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-henri_2010_12_01_00_46-b00) OpenJDK Server VM (build 20.0-b02, mixed mode) openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build…

20101126 - OpenJDK 1.7 for OSX Continuous Build With Hudson – Part 3

Gildas and I create a project on GoogleCode where we’ll maintain build/package scripts and provide packages. My Dropbox download page was overloaded and we needed another location, here is it : http://code.google.com/p/openjdk-osx-build/ Contributors are very welcome, especially OS/X gurus

OpenJDK 1.7 for OSX Continuous Build With Hudson - Part 2

First episode of OpenJDK 1.7 for OS/X covered build of 32 and 64 bits VM via Hudson. We ended with two VMs, 32bits was under build/bsd-i586/j2sdk-image and 64bits in build/bsd-amd64/j2sdk-image And here appears a new OS/X jedi, Gildas , providing .PKG and .DMG scripting. This episode will describe how packaging, PKG and DMG was done. OS/X Package .PKG First we need to transform j2sdk-image folder…

OpenJDK 1.7 for OSX Continuous Build With Hudson - Part 1

Pre-requisite an OS/X box, under Snow Leopard, 32 and 64bits mode should works XCode Mercurial with hgforest extension (see my previous article on Mercurial and hgforest ) Hudson with its Mercurial Plugin Hudson jobs I created free-style software project jobs, one for building 32 bits JVM, openjdk-1.7-i586 , the other to build 64 bits JVM, openjdk-1.7-x86_64 . Each one will use self sufficient…

Forest Extension Fixes for Mercurial 1.7

I’m using Mercurial 1.7 from MacPorts to sync with OpenJDK sources. This operation is usually done with hg fclone [bash] hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port [/bash] fclone came from forest Mercurial 1.7 changes some API and call to do_read should be changed to _call . Hopefully, I found a maintained Forest for Mercurial by GXTI and they now handle correctly pre/post Mercurial…

OSX - OpenJDK 6 vs Apple JDK 6

From finished building OpenJDK 6 on OS / X Snowleopard, I wanted to test just to see how he behaved towards the implementation of Apple. I used a development version of MacPorts ( see it trac ) that appears very promising and got OpenJDK 1.6.0-b20. openjdk version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b20) OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode) A Java application with GUI…

Maven JMeter Plugin

While playing with JMeter Maven plugin, I got some problems : First the official Jakarta plugin is pretty old and no more maintened. So you should get a new one, from GoogleCode This project moved to GitHub Great project but it miss 2 dependencies, commons-logging and soap Without commons-logging your tests may fail and you could see : Error in NonGUIDriver java.lang.NullPointerException [INFO]…

Unifying Handling of Tomcat and HTTP Error Pages

In configuration with a front Apache HTTPd 2.2.x server and backend Tomcat servers, you may have defined customs error page on the HTTPd configuration using ErrorDocument directive. ErrorDocument 401 /errors/err-401.html ErrorDocument 403 /errors/err-403.html ErrorDocument 404 /errors/err-404.html ErrorDocument 500 /errors/err-500.html ``` It works well for resources handled by HTTPd but errors…

How to Fix HP Laserjet 1102w printerAgent Using Port 8080 on Mac ?

I recently bought a new Laser printer, a HP Laserjet 1102w. A very good printer bundled with a very rich firmware supporting WIFI Wep/WPA/WPA2, Bonjour, SNMP v1/v2, a web interface and much more. A definitive good choice but with a real problem for the Java developer. Why ? Because HP printer agent is using the 8080 port, the default http port for Tomcat, JBoss and others servlet…

Disable Tomcat Memory Leak Detector

If you upgraded to Tomcat 6.0.26, you have seen this kind of message in your logs: May 4, 2010 5:08:46 p.m. org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application Appears To Have started a thread named [Thread-8] but Has Failed to stop it. This is very Likely to create a memory leak. Or: May 4, 2010 3:47:09 p.m. org.apache.catalina.loader.WebappClassLoader…

Search

Search