royontechnology.blogspot.com
Roy's musings: Two important traits of building reliable distributed systems
http://royontechnology.blogspot.com/2014/04/two-important-traits-of-reliable.html
On Java and other bits. Saturday, April 05, 2014. Two important traits of building reliable distributed systems. Designing a distributed system is hard enough. Even harder to design a distributed system that is reliable. There are many best practices that you can follow to make a reliable distributed system. Based on an issue that I recently troublehooted, there are a couple of them that I think are critical:. Enabling TCP keep-alive between the processes if you are using TCP. View my complete profile.
royontechnology.blogspot.com
Roy's musings: 09/01/2014 - 10/01/2014
http://royontechnology.blogspot.com/2014_09_01_archive.html
On Java and other bits. Monday, September 08, 2014. As argument a code smell? I was reviewing some piece of code and came across a function that was taking Optional. As argument. In the same class, another function was taking a couple of Optional. When I thought about it, I felt that taking an Optional. Should be avoided. You can return an Optional. From a function, but avoid taking Optional. Is a code smell. One argument that can possibly presented in favor of taking Optional. Subscribe to: Posts (Atom).
royontechnology.blogspot.com
Roy's musings: 06/01/2013 - 07/01/2013
http://royontechnology.blogspot.com/2013_06_01_archive.html
On Java and other bits. Monday, June 03, 2013. After a couple of years or so, I starting making use Python as my main programming language for one of the projects. This time I was making use of the virtualenv to install Python with various modules and just tar it up and copy to different machines. virtualenv saved me tons of time. Subscribe to: Posts (Atom). View my complete profile. DONT BOUNCE THAT DB. Calvin and Hobbes with Emacs. Wood apple and education.
royontechnology.blogspot.com
Roy's musings: Heartbleed bug in OpenSSL
http://royontechnology.blogspot.com/2014/04/heartbleed-bug-in-openssl.html
On Java and other bits. Tuesday, April 08, 2014. Heartbleed bug in OpenSSL. There was a serious vulnerability. Reported in the OpenSSL library that can let the attacker to dump memory contents from the server. Thus the attacker can perform offline analysis of the memory contents and identify sensitive information like private key of the server, key material for SSL sessions, decrypted data that is in memory, etc. This affects any server that uses OpenSSL to implement HTTPS. Or you can use this site.
royontechnology.blogspot.com
Roy's musings: Is accepting Optional as argument a code smell?
http://royontechnology.blogspot.com/2014/09/is-accepting-optional-as-argument-code.html
On Java and other bits. Monday, September 08, 2014. As argument a code smell? I was reviewing some piece of code and came across a function that was taking Optional. As argument. In the same class, another function was taking a couple of Optional. When I thought about it, I felt that taking an Optional. Should be avoided. You can return an Optional. From a function, but avoid taking Optional. Is a code smell. One argument that can possibly presented in favor of taking Optional. View my complete profile.
royontechnology.blogspot.com
Roy's musings: A Python script to execute Python code like "perl -ne"
http://royontechnology.blogspot.com/2013/07/a-python-script-to-execute-python-code.html
On Java and other bits. Monday, July 15, 2013. A Python script to execute Python code like "perl -ne". I wrote a small utility script that can be used to run a small snippet of Python code like "perl -ne". I find it very useful for my needs. Hope it helps you too. Any suggestions welcome. You can find the script as a gist here. Subscribe to: Post Comments (Atom). View my complete profile. A Python script to execute Python code like perl . Setting the terminal window title - version 2. DONT BOUNCE THAT DB.
royontechnology.blogspot.com
Roy's musings: 07/01/2014 - 08/01/2014
http://royontechnology.blogspot.com/2014_07_01_archive.html
On Java and other bits. Tuesday, July 29, 2014. A minor annoyance with two argument logging in SLF4J and Scala. I am using Scala for one of my recent projects. For logging, I am using SLF4J/LOGback. There is one minor annoyance while you are trying to log two argument messages like:. Logger.info("Some log with arg1 [{}] and arg2 [{}].", arg1, arg2). While you compile with sbt you will get the following error:. Error] both method info in trait Logger of type (x$1: String, x$2: repeated. [Object])Unit.
royontechnology.blogspot.com
Roy's musings: 03/01/2015 - 04/01/2015
http://royontechnology.blogspot.com/2015_03_01_archive.html
On Java and other bits. Wednesday, March 11, 2015. Bit twiddling in JDK to generate random number. Some time back a friend asked me an algorithm question:. Given an integer random number generator randomN() that can generate random number in the range [0, N), how will you generate random numbers in the range [0, M) where M. It is easy to visualize this. See the diagram below:. So how do we generate uniform random numbers? MaxAllowed = N - (N mod M). While (randValue = maxAllowed). Return maxAllowed mod M.
royontechnology.blogspot.com
Roy's musings: 05/01/2014 - 06/01/2014
http://royontechnology.blogspot.com/2014_05_01_archive.html
On Java and other bits. Saturday, May 24, 2014. An absolute essential thing you should know about Hibernate cache. You might have used Hibernate for your ORM needs. The most important thing that you should about Hibernate cache is that it is implemented using a Map and a reference every entity that you have read from the database is kept in that Map. The key of that Map is the Entity ID (which could be just a Long or some form of composite primary key you have defined and wrapped in an EntityKey. This ma...
royontechnology.blogspot.com
Roy's musings: An absolute essential thing you should know about Hibernate cache
http://royontechnology.blogspot.com/2014/05/an-absolute-essential-thing-you-should.html
On Java and other bits. Saturday, May 24, 2014. An absolute essential thing you should know about Hibernate cache. You might have used Hibernate for your ORM needs. The most important thing that you should about Hibernate cache is that it is implemented using a Map and a reference every entity that you have read from the database is kept in that Map. The key of that Map is the Entity ID (which could be just a Long or some form of composite primary key you have defined and wrapped in an EntityKey. This ma...