Category Archives: Programming

WASM – Creating an WASM with Rust and React

The following github project shows how to create an WASM application with Rust and React framework https://github.com/nsclass/react-wasm-game-of-life

Posted in Programming, Rust | Leave a comment

FP – Functional Programming with JavaScript

https://mostly-adequate.gitbooks.io/mostly-adequate-guide/

Posted in Functional Programming, Programming | Leave a comment

Rust – how async/await works

https://os.phil-opp.com/async-await/

Posted in Programming, Rust | Leave a comment

Java – Dropwizard http request accessing log customizing example

Dropwizard can allow to access the attributes in a request as shown in below example. Full layout logback format details can be found from http://logback.qos.ch/manual/layouts.html

Posted in Java, Programming | Leave a comment

Linux – Top 10 Performance commands

1. uptime 2. dmesg | tail 3. vmstat 1 4. mpstat -P ALL 1 5. pipstat 1 6. iostat -xz 1 7. free -m 8. sar -n DEV 1 9. sar -n TCP, ETCP 1 10. top

Posted in Linux, Programming | Leave a comment

eBPF – Learn eBPF Tracing for Linux application performance

extended Berkeley Packet Filter Linux application performance tracing tool http://www.brendangregg.com/blog/2019-01-01/learn-ebpf-tracing.html

Posted in ebpf, Programming | Leave a comment

Kubernetes – Container networks

https://github.com/kristenjacobs/container-networking

Posted in Kubernetes | Leave a comment

SpringBoot WebFlux – Reading a request body with Spring WebFlux for Controller

SpringBoot WebFlux 2.2.x requires to load the request body by using an input stream. Below example will show how it can convert the json data into the expected class after loading json data with an input stream. Full source code … Continue reading

Posted in Programming, Spring | Leave a comment

React – create-react-app proxy setting

create-react-app allow to configure the proxy setting on calling API. documentation: https://create-react-app.dev/docs/proxying-api-requests-in-development/ Example https://github.com/nsclass/ns-svg-converter/blob/master/ns-svg-converter-react/src/setupProxy.js

Posted in Programming | Leave a comment

Electron – Rederer process can use Node feature

Setting nodeIntegration true in webPreferences section in main.js will allow to use Node feature in renderer process such as require. And setting webSecurity false will disable CORS in a renderer process. If a renderer process needs to access the self … Continue reading

Posted in Electron, Programming | Leave a comment