Monday, November 7, 2016

mvn-golang plugin 2.1.2 is out

Maven plugin to work with GoLang in maven is out and accessible through the Maven central. Also I made some example of project with multiple modules and shared sources, it can be downloaded as zip or investigated in github

Sunday, October 9, 2016

How to compile Prolog with GProlog and SWI-Prolog (Linux)

GProlog

Application must contain such piece of code
:-initialization(Goal).


 Then executable file can be built with
gplc --min-size PrologFile.pl
To decrease size of resulted file just use upx utlity
upx --all-methods exeFile

SWI-Prolog

Add some main goal into Prolog application
main :- Goal, Goal, Goal.
Compile with string
swipl -O --foreign=save --toplevel=halt --goal=main --stand_alone=true -o exeFile -c PrologFile.pl
Check usage of system libraries with
ldd exeFile
It will show something like
linux-vdso.so.1 =>  (0x00007ffcdc3f8000)
libswipl.so.7.2 => /usr/lib/libswipl.so.7.2 (0x00007febe1ec8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007febe1cab000)
libswipl.so.X.X is used by the executable file and must be bundled together with compiled file

Sunday, August 7, 2016

added one more example for JBBP

Added one more example for JBBP to show how to add a custom type into parser, as example I have written a parser for three byte non-signed integer value with "int24" as name of the type . The Example formed as a JUnit test and published in the GitHub.

Sunday, July 3, 2016

Java Comment Preprocessor 6.1.0

The New 6.1.0 version of Java Comment Preprocessor is out and published in Maven central. From main features of the new version I can distinguish
added option to enable whitespace between comment chars and directive, it 1) makes possible to write in such style
// #local VAR="hello"
also spaces will be allowed in //$$, //$ and /*-*/ directives
2) fixed bug in work with absolute path files
3) added function binfile(STR,STR) which converts binary files into text representation
Example:
byte[] TEXT=byte[]{/*$binfile("./file.bin","byte[]")$*/};
will be converted into
byte[] TEXT=byte[]{(byte)0x89,(byte)0x50,(byte)0x4E,(byte)0x47,(byte)0xD,(byte)0xA,(byte)0x1A,(byte)0xA};
it supports "base64","base64s" (it splits text to 80 char lines), "byte[]" and "byte[]s"

Sunday, June 26, 2016

Standalone Mind Map editor

I have published standalone Mind Map editor based on NB MindMap plugin. It is a small standalone Java application (about 3 Mb) needs Java 1.7+ and can be started as regular JAR or EXE file (under Windows), it can be downloaded from the folder

Saturday, May 28, 2016

GoLang maven wrapper 2.1.0 is out

the new 2.1.0 version of the maven golang wrapper has been published in the maven central. Main new feature - support for branches and tags for dependencies and creating of new artifact with packed project folders in local maven repository. Also fixed bug in test command and minor refactoring.

Tuesday, April 19, 2016

"Hello World!" in GoLang with Maven

if you have installed maven on your machine and would like to try GoLang then now it is possible in just two terminal lines:
 
$ mvn archetype:generate -B -DarchetypeGroupId=com.igormaznitsa -DarchetypeArtifactId=mvn-golang-hello -DarchetypeVersion=2.0.0 -DgroupId=com.go.test -DartifactId=gohello -Dversion=1.0-SNAPSHOT
$ mvn -f ./gohello/pom.xml package
 
The First line creates a simple GoLang project from a maven archetype, the project is based on usage of the mvn-golang-wrapper, and the second one build and run the project.
 

Monday, April 4, 2016

How to start Dropbox under KDE

if Dropbox application icon is invisible in KDE tray then it can be started with command line below:
dropbox stop && DBUS_SESSION_BUS_ADDRESS="" dropbox start

Saturday, March 26, 2016

Released mvn-golang-wrapper 1.0.0

I has been published the initial 1.0.0 version of the mvn-golang-wrapper plugin in the maven central. The Example "Hello World" for the plugin can be cloned here.

Thursday, March 24, 2016

GoLang with Maven

I very like the Maven build tool and decided to make some plugin to wrap main GoLang commands and provide possibility to build GoLang applications directly with Maven. For that I have started OSS project https://github.com/raydac/mvnGoLang
It wraps commands:
  • clean
  • get
  • build
  • install
  • test
also it can automatically download needed GoLang SDK and cache it.