[28-12-2019]
Sometimes you want to run JNI based code inside XCode – e.g. in case when your C/Objective-C/C++ code is based on some Java library. It’s both simple and little bit confusing to get JNI running in XCode – you have to make sure to set few things before proceeding. 1. Getting source code In this […]
[19-12-2019]
I am making strong assumption that you have XCode and Command Line Tools installed. First of all, you need CMake. I prefer installation from the sources, so I go this way. > mkdir -p $HOME/opt/src > cd $HOME/opt/src > curl -o https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz > tar zxf cmake-3.16.2.tar.gz > cd cmake-3.16.2 > ./bootstrap –prefix=$HOME/opt/usr/local > make > […]
[18-12-2019]
Installation of Boost at macOS is quite simple. # get the sources > mkdir $HOME/opt/src > cd $HOME/opt/src > curl -o https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz > tar zxf boost_1_72_0.tar.gz > cd boost_1_72_0 # configure boost > ./bootstrap.sh –prefix=$HOME/opt/usr/local/boost > ./b2 > ./b2 install # make sure to point to this location while compiling your code > export BOOST_LIB=$HOME/opt/usr/local/boost/lib […]
[31-10-2019]
If you can see this error: “libjansi.jnilib” cannot be opened because the developer cannot be verified – while working on macOS 10.15 (screen shoot looks like this) it means you probably have issues with libjansi coming from Apache Maven. Make sure to upgrade to version apache-maven-3.6.2. ———— Update ———— In fact, you can do better […]
[30-10-2019]
There is this interesting article about using NCurses Disk Usage in Arch Linux – you can find here: Cleaning root partition on Linux. I definitely prefer to stick to macOS, so I have decided to get it running from iTerm2. It’s really simple. All you have to do is to (as with other samples you […]
[21-10-2019]
I had this strange issue with VirtualBox. There was this crash Process: VirtualBoxVM Path: /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM … … … Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000007fc0a5286d0 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler … … … Thread 0:: Dispatch queue: com.apple.main-thread 0 org.qt-project.QtGuiVBox […]
[24-09-2019]
If you want to make sure that your macOS High Sierra is clean (when it comes to malicious software) you can use free tool (free as in beer and free as in speech – at the same time) called ClamAV. You can get it various ways. You can download it’s commercial version from AppStore – […]
[17-09-2019]
It’s good to know, that _JAVA_OPTIONS will not always work in your Java code. Especially, when you elevate privileges using sudo. Let’s say we have this simple code public class Simple { public static void main(String [] arg) { System.out.println("Hello from Simple!"); } } and we run it following way > export _JAVA_OPTIONS="-Xms1G" > java […]
[07-09-2019]
If you are trying to submit your solution using sbt, like this. > sbt submit user@some.address.com SoMeToKeN … … [error] Invalid input to `submit`. The required syntax for `submit` is: [error] submit <email-address> <submit-token> [error] [error] The submit token is NOT YOUR LOGIN PASSWORD. [error] It can be obtained from the assignment page: [error] https://www.coursera.org/learn/scala-spark-big-data/programming/CfQX2 […]
[05-09-2019]
Just add this one inside ~/.ssh/config. Host * PubkeyAcceptedKeyTypes=+ssh-dss
[21-08-2019]
The dusk was repeating them in a persistent whisper all around us, in a whisper that seemed to swell menacingly like the first whisper of a rising wind. ‘The horror! The horror!’
[21-08-2019]
Jedyne co mogę powiedzieć na temat tej książki, to: a = g⋅sinα
[10-08-2019]
Recently I have encountered quite frustrating issue with Kindle Paperwhite (3rd) and hard spaces inside Mobi document. At the same time (while buying the book) I have download three, different, formats: epub, Mobi and RTF. All of these have hard spaces all over the place in document. However, there is a slight difference in the […]
[02-08-2019]
… is broken. There is no way to use default Image Capture application with Samsung SCX-4500W printer. However, there is hope :) You can download Samsung Easy Document Creator from here: link. Please note that Samsung line of printers was acquired by HP – this is why you have to download application from HP’s pages. […]
[01-08-2019]
Radio RAM nie zawodzi ;) Tym razem, dzięki nim, dowiedziałem się o zespole Wojtek Justyna TreeOh!. Grają niesamowicie sympatyczny, spokojny, nieprzekombinowany Jazz, którego bardzo miło się słucha – szczególnie wtedy, gdy za oknem robi się ciemno. Nienatarczywy towarzysz wieczornej lektury książek, ale jako tło dla domówki też sie nada. A tutaj link do ich strony […]
[01-08-2019]
Zdecydowanie lepsza od interpretacji Netflixa
[01-08-2019]
Company of One is … everything
[31-07-2019]
To learn what eternity means, change your keyboard setting from this to this
[25-07-2019]
Let’s say we have this, very simple, structure of the project . |– Manifest.txt `– src `– somepackage `– StringTest.java where StringTest.java is a very simple Java class package somepackage; public class StringTest { public String changeString(String str) { return "I have changed the string: " + str; } public static void main(String [] arg) […]