Nextcloud message: Some jobs have not been executed since … Please consider increasing the execution frequency This message indicates that there are likely still some (normal, routine, or non-urgent) tasks waiting to be executed. You don’t need to worry about […]
Lambda expressions with many lines
Recently, I was writing a test method similar to this: /** * SOME_FEATURE is a constant that identifies a feature the application provides if enabled */ void transferMoneyTest() { withEnabledFeature(SOME_FEATURE, () -> { // line one of the test method […]
How can software be properly organized into modules and classes?
I have long been intrigued by the principles that guide the proper organization of software code into modules (aka packages, namespaces). Ideally, these principles should be well-defined, leading to the same modular structure whenever the same software requirements are given, […]
openvpn
disabling openvpn@server sudo update-rc.d openvpn disable sudo service openvpn status sudo systemctl status openvpn@server sudo systemctl status system-openvpn.slice Won’t work with systemctl disable openvpn or service openvpn stop.
mount command
/etc/exports /i-data/60cb70cf 192.168.1.0/24(ro,sync,no_subtree_check,wdelay,no_root_squash) mount NFS share to windows 7 (next drive letter available) mount 192.168.1.31:/i-data/60cb70cf * mount NFS share to windows 7 the Z drive mount 192.168.1.31:/i-data/60cb70cf z: unmount NFS share (–a Unmounts all NFS network drives) umount z: mount […]
OSGI learning sources
Wiring made easy using OSGi Blueprint and Apache Karaf/ OSGi Modularity Tutorial by Lars Vogel OSGi Services Tutorial by Lars Vogel OSGi Services Tutorial by Knopflerfish Bndtools Tutorial Control OSGi DS Component Instances ECF commits to OSGi Remote Services ECF […]
HTML 5
Documentation https://developers.google.com/web/ https://www.html5rocks.com/en/tutorials https://www.html5rocks.com/en/tutorials/file/xhr2 https://www.html5rocks.com/en/tutorials/file/dndfiles/ http://blog.teamtreehouse.com/reading-files-using-the-html5-filereader-api https://www.html5rocks.com/en/tutorials/workers/basics/ https://stackoverflow.com/questions/6778360/whats-the-difference-between-shared-worker-and-worker-in-html5 https://www.sitepoint.com/javascript-shared-web-workers-html5/ https://github.com/coolaj86/html5-shared-web-worker-examples http://coolaj86.github.io/html5-shared-web-worker-examples/ https://www.html5rocks.com/en/tutorials/appcache/beginner/ https://alistapart.com/article/application-cache-is-a-douchebag https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/Client-SideStorage/Client-SideStorage.html https://developer.apple.com/library/content/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html chrome://appcache-internals
SmartPSS camera viewer
Connecting to a VPN when using UFW https://askubuntu.com/questions/572497/cant-connect-to-pptp-vpn-with-ufw-enabled-on-ubuntu-14-04-with-kernel-3-18 sudo ufw allow proto gre from 86.121.33.88 You might also need to put into /etc/modules-load.d/pptp.conf: nf_conntrack_proto_gre nf_conntrack_pptp
JPA inheritance performance improvement
This article is about improving JPA’s performance when working with large/thick hierarchies. Let’s suppose that for some reason you have a similar (or larger) hierarchy to one I encountered in one of my projects: – InheritanceType.JOINED also using DiscriminatorColumn – […]
setup your own linux based router
What is all about short story … This post will help you to configure a linux PC in order to function as a router too. long story … If you like me have a very low energy consumption PC (a […]
Compiling google’s mod_pagespeed for nginx
This post is intended mainly to Zyxel NSA310 users. Prerequisites See first https://adrhc.go.ro/blog/common-commands-when-building/ for building environment, x.sh script and other things not defined here. Before starting do declare the environment variables specified to the link above. Environment & other preparations […]
Yoast SEO hints
Meta keywords template in Post Types Use %%tag%%, %%category%% for Meta keywords template in order for the post’s tags and categories to be used as meta keywords. It will generate something like e.g.: <meta name=”keywords” content=”SEO, Yoast, How To”/> See […]
Linux network information
DNS address assigned by DHCP nmcli device show eth0 | grep DNS Gateway address assigned by DHCP nmcli device show eth0 | grep GATEWAY Show active and ofline connections nmcli connection show Load configuration files nmcli con reload nmcli con […]
Java hibernate
How to mix inheritance strategies with JPA annotations and Hibernate? http://stackoverflow.com/questions/3915026/how-to-mix-inheritance-strategies-with-jpa-annotations-and-hibernate use @SecondaryTable for joined table
iptables
iptables processing steps (original image link) Redirect eth0:3240 to 127.0.0.1:32400 sudo sysctl -w net.ipv4.ip_forward=1 sudo sysctl -a | grep ‘net.ipv4.ip_forward’ sysctl net.ipv4.ip_forward -> this reads the value sudo sysctl -w net.ipv4.conf.eth0.route_localnet=1 sudo sysctl -a | grep ‘net.ipv4.conf.eth0.route_localnet’ # you’ll need […]