Recent Articles

Dolphin Community Detection; using Louvain and Edge-Betweenness-Centrality algorithms

coursera illinois data visualization assignment-2

I wanted to share my final data-science assignment from “Coursera Illinois Data Visualization” course Hi-Res Image Live demo – see the “Result” tab An un-directed social network of frequent associations between 62 dolphins in a community living off Doubtful Sound, New Zealand The original data from https://networkdata.ics.uci.edu/data.php?id=6 My goal was to improve the original network plot from UCI You could […]

Dockerizing python with ssdeep dependency

The official  python docker container does exactly what it should. It automatically copies the requirements.txt  file and your current directory into /usr/src/app. It should then automatically pip install the dependencies from the requirements.txt, before running the actual Dockerfile commands But sometimes python libraries require additional system setups by themselves (one might consider it a pip bug..). For example, working with ssdeep, a […]

Installing Elastic 2.0 on a clean Ubuntu 14.04 (single node)

Tested on a clean Ubuntu 14.04 image: #java 8 – includes some interactive responses on your side sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer #test it: java -version #should be: java version “1.8.XX” #fixing apt-get, installation and post service config wget -qO – https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add – echo “deb http://packages.elastic.co/elasticsearch/2.x/debian […]

REST API security, by Stormpath

Excellent. Note how the author correctly sets the true meaning of http header name and codes, poorly chosen ages ago (“Authorization” header, 401 code, 403 code)

Python design patterns #5: observer (aka: pub-sub)

The observer is probably the GOF pattern with the most impact on networking. It is a massaging pattern by itself. It’s quite simple, though. The subscribers, interested with a certain topic, subscribe with a publisher for updates regarding that topic. The publisher, triggered by our topic-aware system, then publishes the topic updates to the right subscribers. Use case Every […]

odata-editor now supports verb tunneling and secondary sort by fk

odata-editor, a simple REST client for the OData protocol, now supports: verb tunneling – substituting DELETE, PUT, PATCH and MERGE for POST, using X-HTTP-Method header. (for blocking servers / FWs) secondary sort by fk column .Currently limited to 1 column ascending ————————— I’m looking for contributors for enhancements and localization support 🙂 Feel free to “Star” on GitHub […]

Python design patterns #4: visitor

Another favorite. Much simpler than the decorator, but sleeker no less:) Who left the door open? What if we could let someone operate over our object, whoever that someone was, whatever our object looks like and for any possible reason? Intuitively a door left open comes to mind. Its not a matter of having the […]

Python design patterns #3: the decorator

red_sports_car_decorator

Continuing with one of my favorites – the decorator. It’s a smart one, so a little more talking before coding..   Why? What do you do when you need a flexible combination of properties in an object? If you’re thinking why not sub-classing? you’re ok.. Sub classing is just right for allowing slightly different flavors […]

Python design patterns #2: adapter, bridge and proxy

Finally got the time to complete this project, since I first started it with the classic Singleton. Later I’ll post about the Borg pattern, which is the pythonic version of how singleton should have been.. ———— Adapter, Bridge and Proxy are all about can’t / won’t / prefer-not-to do something directly, but by other mean. They’re […]