Author: Steve

Market Basket Analysis with python

Very elegant example at http://blog.derekfarren.com/2015/02/how-to-implement-large-scale-market.html. What is below is just a complete script with what the link above provides, along with example of our output. Our file was formatted slightly differently, so we had to change the split command. We…

Getting memory by thread

This is not perfect, as the heap is shared. However, the documentation indicates that a ThreadMXBean can calculate how much is in use by each. The idea behind this would be to either instrument your code, or use byte code…

Impact of socket.SO_REUSEADDR

This is often used to get around an “address already in use” error. If you know the previous server program has been shutdown, you can set this socket option prior to the initial server bind, and then restart your program.…

Pentaho row level security example

Using the Metadata Editor, it should be placed at the Business Model layer, above any business tables. Click the data constraints section (or add that section with the olive green plus button in the screenshot below, if necessary), select the…

TCP zero window flow

When troubleshooting this condition, it is imperative that you obtain a thread dump on the client. There is a reason it cannot consume the data being sent to it from the server, so you need to understand why it is…

Can two switches talk to each other?

Yes, and you don’t even need a crossover cable for the connection on newer switches. One important proviso is that this can be only on the default VLAN. If you use a different VLAN, the mode must be trunk rather…