JRuby on Rails Update

A year after last posting about Jruby 9.4 and Rails on top of it, now the stack became more mature with JRuby updated to 10.0.8.0 (CRuby 3.4.12 compatible). Rails 7.2 entering end of support with latest version now at 7.2.4. I havent tried the JRuby 10.1.x.x release yet.

For rails 7.2.4 active storage image resize the current vips library which using FFI is not stable when deployed on apache tomcat 9 and Windows server. It keep crashing and a big thanks to JRuby founder Mr. headius that help me to patch it using java2d engine which he upload as PR to upstream image_processing gem and get rejected by the gem maintainer 🙁 . But no worries it will be a small patch carried on my master rails 7.2.4 template.

With the age of AI is coming now, in software development field, we can iterate faster and generate code with so many harness available. The chinese deepseek 4.1 flash 1017 AI model is fast and usable on my case with cheap 10$ opencode go subscription. The 1 person framework which rails endorsed are a perfect match for this AI coding thing.

I have tried to create API server on Golang and it also work OK. Not just rails. We can try many programming language and learn also from the process. Learn faster also feasible with the help of AI.

Thats it, hoping to handle more projects to come with close AI collaboration !

JRuby 9.4.14 on Rails 7.2.2.2 app war deployed on Tomcat 9

Following procedures must use linux or WSL on windows because there are errors related to gem installation if run on windows. I believe we still can do bundle install on windows for Jruby 9.4.0.0 and Rails 7.0.4 on last experiment at 2023. The war file produced can be used on any java 8+ supported platfom (theoretically).

Specify on your rails Gemfile as follow (using the latest warble gem available now) :

Run bundle install.

Run bundle exec warble.

Deploy the war file produced by warble to tomcat 9 (can not use tomcat 10/11).

Use deploy on tomcat 9 manager. Upload war may not work if war file size is too big.

If deployed successfully, check your application on browser.

If we want a executable war then do bundle “exec warble executable war”.

Execute the war as below :

java -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -Dorg.eclipse.jetty.util.log.stderr.ESCAPE=false -jar my_app.war

Thank you !

Cmd Space

Just know that Cmd + Space also work on IPhone where originally thought that ist only work on MacBook.

MT4 / Metatrader 4 for MacOS is draining battery

hi guys for Metatrader 4 user on MacOS be aware that after the program exit we need to force quit a process called “wine32on64-preloader”.

This is because the process will exist and use your cpu all the time and drain the battery even after MT4 exit.