[25-07-2019]
As usual, there are some issues with new Java releases (11 and 12) and R. If you want to run rJava package inside R you have to do few things. First, make sure you are using Java 11 as default inside terminal session. Inside ~/.profile add this line Once it’s done, you have to make […]
[08-07-2019]
Whenever I restore (setup) new Mac, I do it manually. I simply install clean system, and transfer what I really need from TimeMachine’s backup – typically using CLI. In Mojave it’s a no-no. If you use iTerm2, you will face following issue while accessing data inside TimeMachine’s storage. > cd /Volumes/TimeMachine/Backups.backupdb/ > ls ls: .: […]
[15-06-2019]
While using JNI, it becomes a little bit of burden whenever you want to pass something more complex than simple types back to Java.
[12-06-2019]
Let’s say you have few files string |– 1 |– 2 |– 3 |– 4 |– 5 |– 6 |– 7 |– 8 `– 9 And they may end with two different endings: aaa or bbb. Finding list off files that have given string at the end can be done following way > find string […]
[11-06-2019]
Let’s say you have a Java class StringTest package somepackage; public class StringTest { public String changeString(String str) { return "I have changed the string: " + str; } } inside file src `– somepackage `– StringTest.java and you want to run it in R. All you have to do is to compile the code. […]
[27-05-2019]
Zbiory felietonów – one zawsze niosą ze sobą pewne ryzyka :(
[23-05-2019]
In case you want to compile JNI based code on macOS, be careful. Pay attention to @rpath. If you compile the code like this ld -L${JAVA_HOME}/lib/server -ljvm … you will end up with reference to /usr/local/lib/libjvm.dylib. You may face lots of issues related to incorrect `JVM` version used while linking `JNI`. If you want to […]
[21-05-2019]
Do kompletu to chyba brakuje jeszcze tylko Królewicza.
[21-05-2019]
Potrafi wciągnąć.
[19-05-2019]
If you have stuck with pre 1.8 Java but you have to go back to the future, it’s definitely worth it!
[19-05-2019]
Po taniości :(
[08-05-2019]
At some point I was struggling with the strange issue. It came out of nowhere. VNC simply stopped working. Eventually, it turned out that reason was completely awkward. Missing directory on LD_LIBRARY_PATH. Yes, I know how it sounds, but it’s true. You can try it by yourself > setenv LD_LIBRARY_PATH /some_fake_location > vncserver -geometry 800×600 […]
[08-05-2019]
If you want to stop node.js you have basically two ways: – brute force (⌃ – C), – gentle way, via socket inside your application. I will show you how to do that using simple code (https://nodejs.org/en/about/). /* app.js */ const http = require(‘http’); const hostname = ‘127.0.0.1’; const port = 3000; const server = […]
[07-05-2019]
You still remember good old days with your Atari/Commodore machine. You like to annotate the code and you miss line numbers so much void main() { loop: printf("Hello\n"); goto loop; } You like it ‘low level’ style. In high school you were the master of assembler. There is nothing wrong about working with bare metal, […]
[30-04-2019]
This error drove me crazy for a while. Find one difference :) @import ‘~@angular/material/prebuilt-themes/deeppurple-amber.css’ body { padding: 0; } @import ‘~@angular/material/prebuilt-themes/deeppurple-amber.css’; body { padding: 0; }
[26-04-2019]
> find . -not -iwholename ‘*.svn*’ -type f -name "*" > find . -not -iwholename ‘*.git*’ -type f -name "*"
[16-04-2019]
⌘ – U+2318 ⌥ – U+2325 ⇧ – U+21E7 ⌃ – U+2303 ⌫ – U+232B If you don’t know how to type Unicode characters in mac OS, take a look here: Unicode frames in macOS.
[16-04-2019]
1. Start Chrome 2. Open the page 3. Open DevTools (⌥⌘I) 4. Open the Command Menu (⇧⌘P) 5. Choose Capture full size screenshot
[06-04-2019]
If you want to learn Python 3, I definitely suggest this specialization: Python 3 Programming Specialization. It consists of five courses, each focusing on different aspects of programming. It will guide you through the basics of Python 3 programming and will let you learn lost of various aspects of Python 3 based development: Python basics […]