Quantcast
Browsing all 23 articles
Browse latest View live

how to calculate the md5 of multiple directories

Somtime you would like to know if a file got changed while you were not looking. I have some website that got hacked and I decided that I would be pro active in cheking if a file was changed and I used...

View Article


How to skip Maven Unit test

Some time in real life you need to compile a maven project even if some of the unit test are failling. 1mvn install -Dmaven.test.skip=true The post How to skip Maven Unit test appeared first on Martin...

View Article


Image may be NSFW.
Clik here to view.

How to visualise an in Memory Database.

This is a great tool to be able to see what is going on under the hood when you have an embeded in memory database in your application. 1    DatabaseManagerSwing.main(new String[] { "--url",...

View Article

How to do port forwarding using ip tables

1/sbin/iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 The post How to do port forwarding using ip tables appeared first on Martin Fournier.

View Article

Work around to make metatrader fonts less ugly on a mac

I was running metatrader 4 and 5 on my mac using wine and the fonts were all ugly. Looking around on the web made me realise taht I could export a system variable to let wine know how to render...

View Article


Image may be NSFW.
Clik here to view.

How to install wine on linux ubuntu with X11 forwarding via vagrant

The following code should go into a bash file on the linux image that vagrant is running. 1234567echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo...

View Article

How to install metatrader 5 on linux ubuntu xenial

There is 2 basics steps to install Metatrader 5 on linux. You need to install right version of wine and ubuntu xenial does not have the right version in its repository. The one that comes with Ubuntu...

View Article

How to run Junit test with mule

Doing Junit with mule is pretty simple. You only need to extend the class 1org.mule.tck.junit4.FunctionalTestCase here is a simple example : package product_registration;...

View Article


Running graphical application like wine on a headless server with xvfb

I needed to run a windows application using wine on linux on a headless server. Here is the solution I have found. Running the application with a software named Xvfb. Xvfb is a virtual frame buffer so...

View Article


Calculate time spent running a flow with mulesoft

The component “timer-interceptor” is a great tool to get how much time it takes for a flow to complete. All you need to do is put it somewhere in the flow and it will output something like this in the...

View Article

How to normalize and denormalize data between 0 and 1

Some AI algo works better with values between 0 and 1 but it is rare to have data already between 0 and 1. The following formula will show you how to convert an array of data to a normalized Normalize...

View Article

How to explorer the file system and open a file with gvim

To navigate the file system with gvim 1 :Explore To navigate the file system in a split window 1 :Sexplore To navigate the file system in a vertical window 1 :Vexplore The post How to explorer the file...

View Article

How to split a windows with gvim

To split a window horizontally you need to press ctrl+w in command mode then wait for a “w” to show on the bottom right of the screen then press “s” 1CTRL+w s To split a window vertically you need to...

View Article


How to change the fonts in gvim on windows

add a file named _vimrc to your home directory. 123set nobackup set noswapfile set guifont=Consolas:h7:cANSI:qDRAFT In the gvim menu change the font to the format you would like to have. Then query...

View Article

How to format XML in GVIM

In this tutorial we are going to format an XML via the VIM tool  First, highlight the XML you want to format. Then, in normal mode, type  ! xmllint --format - Your command-line at the bottom will look...

View Article


How to grep recursively for xml files

To grep recursively we need the -r flag. To get only the file name we use the -l flag To get only files with extention .xml  we use the ‘–include’ flag and don’t forget to escape the spcial character...

View Article

How to monitor remotely a windows tomcat application with visual vm (jmx)

add the following lines under “Java Options: ” in the tab “Java” of the tomcat7w.exe    1234-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8008...

View Article


How to Kill a windows process

This is the command 1netstat -aon |find /i "listening" |find "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 6120 TCP [::]:8080 [::]:0 LISTENING 6120 1taskkill /F /PID 6120 The post How to Kill a windows...

View Article

Configure Spring-boot to run with Fiddler over https

12345-DproxySet=true -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -Djavax.net.ssl.trustStore="C:\Program Files\Amazon Corretto\jdk1.8.0_212\bin\FiddlerKeystore"...

View Article

How to run splunk in docker and view tomcat logs

This might be overkill but why not use splunk on your dev PC to see what is going on in your tomcat log 1 docker run -d -p 8000:8000 -v C:\dev\app\tomcat-7.0.94\logs:/opt/tomcat/logs -e...

View Article
Browsing all 23 articles
Browse latest View live