Posts

Bootstrap / recover Ubuntu Linux using chroot

Image
Especially if you have a dedicated server from Server4You the option below might be what you are looking for to e.g. reinstall another linux kernel version using the recovery boot option: mdadm --assemble --run /dev/md/0 mdadm --assemble --run /dev/md/1 mdadm --assemble --run /dev/md/2 mkdir /mnt/chroot mount /dev/md/2 /mnt/chroot mount /dev/md/0 /mnt/chroot/boot mount /dev/sda1 /mnt/chroot/boot/efi mount --bind /proc /mnt/chroot/proc mount -t sysfs sys /mnt/chroot/sys mount -o bind /dev /mnt/chroot/dev mount -t devpts devpts /mnt/chroot/dev/pts chroot /mnt/chroot

How to tune IntelliJ IDEA and make it a bit faster

Image
Reduce the GC interval by increasing the heap. The default heap of 750M is far to so low for today’s needs. $ vim ~/Library/Preferences/IntelliJIdea2016.1/idea.vmoptions Should look like that -Xms2g -Xmx2g -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops 

Ubuntu Linux on Windows

Image
Canonical and Microsoft have been working on a joint project the past few months of bringing the Ubuntu user-space to Windows 10 as an initiative for helping developers running this OS. The Ubuntu user-space complete with the Bash shell and common command-line utilities -- even apt-get, Apache, GCC, and other common Ubuntu packages -- all can be deployed on Windows 10 without any use of containers or VMs.

How to get the process id (PID) of the running Java process

Image
Java 8 and before:  public static void main ( String [] args ) throws Exception { Process proc = Runtime . getRuntime (). exec ( new String []{ "/bin/sh" , "-c" , "echo $PPID" }); if ( proc . waitFor () == 0 ) { InputStream in = proc . getInputStream (); int available = in . available (); byte [] outputBytes = new byte [ available ]; in . read ( outputBytes ); String pid = new String ( outputBytes ); System . out . println ( "Your pid is " + pid ); } } …from Java 9 on: System . out . println ( "Your pid is " + Process . getCurrentPid ());

Current status of WebAssembly — PoC implemented by all four major browser vendors

Image
WebAssembly   is an emerging standard whose goal is to define a safe, portable, size- and load-time efficient binary compiler target which offers near-native performance—a virtual CPU for the Web. WebAssembly is being developed in a W3C Community Group   (CG) whose   members   include Mozilla, Microsoft, Google and Apple. I’m excited to announce that WebAssembly has reached an important milestone:  there are now  multiple ,  interoperable , experimental browser implementations . We still have a lot of work left on the standard implementation before shipping, but this is a good occasion to present our progress so far, talk about what’s coming next, and invite feedback. Why WebAssembly? The low-level  asm.js  subset of JavaScript has demonstrated not only that it’s possible for browsers to achieve safe, sandboxed, near-native computational performance, but that there’s tremendous demand for this kind of capability on the Web. Thanks ...

Rust’s impact on the industry

Image
Mozilla has seen better days.  Once it offered a serious competitive threat to Microsoft’s Internet Explorer. Today, Mozilla’s Firefox squeaks into third place with just 12% market share of desktop browsers,  according to NetMarketShare , and is  worse than a rounding error  among mobile browsers. Other projects, like Mozilla Thunderbird, are even less relevant.  See also:  What Mozilla’s WebAssembly Means: More Powerful Web Apps

Brandan Eich on WebAssembly, Web Workers, and Decorators

Image
When it comes to the Web's future, JavaScript creator Brendan Eich remains bullish on WebAssembly but also gives a thumbs-up to Service Worker technology. Speaking at the O'Reilly Fluent conference in San Francisco on Wednesday, Eich called WebAssembly the most exciting development he has seen in the past year. The project boosts Web performance by providing a portable code format to run in browsers at native speeds. Major browser vendors Apple, Google, Microsoft, and Mozilla all are on board with the effort.