[17-10-2018]
Just for the record, one can use CLI to create big files
If you need a huge file, and you need it fast
If you need a huge file, and you need it fast
At the moment, you can’t get nice looking, full-blown installer of NetBeans for macOS, yet. However, running it is fairly easy. Just make sure you have recent JDK installed – just get it from here: JDK 11 Note! Please, make sure you can survive with new licensing model preparred by Oracle. It’s quite different comparing […]
In case you haven’t heard about NetCAT program, yet, take a look here: NetCAT 10.0. NetCAT is a community acceptance testing initiative targeting NetBeans. If you work with NetBeans a lot, I guess this is the best place to support the team behind the product, and (as well) it’s the best place to get the […]
If you have never ever worked with CLI (on macOS) I suggest to start with iTerm2: https://www.iterm2.com. I just want you to know, this is my personal view, that iTerm2 is way better comparing to default Terminal – one that you can find inside /Applications/Utilities/Terminal.app. If you have never ever worked with VIM before, I […]
If you have developed applications using C, you are probably aware of preprocessor. If you have ever worked with JNI code, you recall preprocessor’s directives for sure. You can find lots of them inside JNI based code generated through javah or javac -h. /* DO NOT EDIT THIS FILE – it is machine generated */ […]
Have you tried to organize your songs into play lists? And that’s what you have in your little iPod shuffle? “-All songs” “-Play list one” “-Play list two” “-Play list three” “-…” Man, this was driving me nuts. Fortunately, I found out that I could have “VoiceOver” turned on. After that happened, everything becomes way […]
There are different ways to create a log in Java Recently, I have read quite interesing article regarding logs in Java – Logger to też jest biznes. I guess, it summarize experience of most of the people who work with Java code. I guess, most of us went throuhg different means of logging: System.out, Apache […]
Modern Fortran Explained: Incorporating Fortran 2018 by Michael Metcalf and John Reid is already on the way! I am still waiting for it to arrive. It will be some sort of back to the future ;) The oldest “modern” language with new, fancy, features ;) This time, all in red ;)
Sometimes, you need to go back in time. Recently, I had to develop simple log roller – I wanted to be system independent. Who would have guessed you could find a straightforward solution here ;) As for the roller itself, you can find it here
I was playing with RStudio recently. And there was this annoying “issue” with plots. I am calling it “issue” as I am not quite sure whether this is a bug or a feature. The problem was that plots were drawn outside plot area. Axises were missing, title was too high, etc. I was trying to […]
Recently, I was little bit surprised by the output of du command. It turned out that size of a directory can vary, heavily, depending on the filesystem that is used for storing files. I was examining the size of application at different locations and what struck me were the differences in size reports. # at […]
You can find very comprehensive launchd tutorial here: http://www.launchd.info
It looks like you have to be extra careful while working with recent releases of JDK for macOS. If you want to get JVM’s version (while running application) there is a simple way of doing it. public class Simple { public static void main(String [] args) { System.out.println(System.getProperty("java.version")); } } However, you have to be […]
# Get the sources mkdir -p ~/opt/src cd ~/opt/src curl -O http://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz tar zxf bash-4.4.tar.gz # prepare place for installation mkdir -p ~/opt/usr # build the stuff cd ~/opt/src/bash-4.4 ./configure –prefix=$HOME/opt/usr make make install # test the thing $HOME/opt/usr/bin/bash –version use it #!/Users/your_user_name/opt/usr/bin/bash echo $BASH_VERSION
Colors can be source of real fight between people. There is even dedicated chapter related to colors in book “Jak przestałem kochać design” by Marcin Wicha. If you want people to kill you, try the list below whenever you want to apply small changes to web page UI ;) > colors() [1] "white" "aliceblue" "antiquewhite" […]
If you are looking for well prepared, well delivered (unfortunately little bit outdated) video training on Unit Testing, make sure to watch this one In case you still struggle with some old Objective-C based code, this one might be a good choice when you want to move old stuff towards TDD approach. You can read […]
Sometimes, you want to look at the command (where is it located), and then, you decide to actually take a look inside the file (e.g. script). Instead of copying and pasting location, do following which perl vi `!!`
mkdir escapefromreality mkdir lib echo ‘package escapefromreality; import java.io.File; import org.apache.commons.io.FileUtils; import org.apache.commons.text.StringEscapeUtils; import org.apache.commons.text.StringEscapeUtils.Builder; public class EscapeJavaCode { public static void main(String[] args) throws Exception { try { String strJava = FileUtils.readFileToString(new File("escapefromreality/EscapeJavaCode.java")); System.out.println( StringEscapeUtils.builder(StringEscapeUtils.ESCAPE_JAVA) .escape(strJava) .toString() ); String strXML = FileUtils.readFileToString(new File("sample.xml")); System.out.println( StringEscapeUtils.builder(StringEscapeUtils.ESCAPE_XML11) .escape(strXML) .toString() ); } catch(Exception ex) { // remember […]
I can see people around (on various blogs) saying “- I’ve never used Vim before, and it’s so cool. I really have to learn how to use Vim!”. Just Don’t. If you are using NetBeans, Visual Studio, Eclipse, keep it that way. Don’t put yourself into this illusive thinking that by starting using Vim you […]
Everything should be kept as simple as possible, but no simpler. Teaching kids is a hard work. By teaching I mean not lecturing, but real, efficient and full of fun explaining how things work. I still remember one of my first computer languages – LOGO. This was Atari time and we have learned principles of […]