Elasticsearch & Python: Tips for faster re-indexing

Some valuable lessons learned while going through an elasticsearch re-indexing exercise. (For the uninitiated, re-indexing data basically means getting large volumes of documents from elasticsearch, enriching or changing the data within each document, and then sending these back). The below assume python and the use of the python elasticsearch client (https://elasticsearch-py.readthedocs.io/en/master/). 1. When retrieving data, use the … Continue reading Elasticsearch & Python: Tips for faster re-indexing

Advertisements

Notes on Google Firebase Cloud Messaging

I'm a huge fan of Firebase, so I'm very excited that Google Cloud Messaging [GCM] has been re-branded Firebase Cloud Messaging [FCM], which can be used for cross platform messaging. It's actually very simple to set this up on Android and IOS, but what's more interesting is the web client. I was really hoping things … Continue reading Notes on Google Firebase Cloud Messaging

Signing GMail Messages with the Estonian eID PKI Card (Part 2)

In a previous blog post we explored how to sign messages using the Estonian eID card. In this video, we demonstrate how a receiver who got a signed email message would be able to verify that the email really did come from the advertised sender. https://youtu.be/Nx-jRPIAyEM I have uploaded the revised code to github, please … Continue reading Signing GMail Messages with the Estonian eID PKI Card (Part 2)

Nugget post: Installing PyVLFEAT

When attempting to install PyVLFEAT (), a simple pip install pyvlfeat fails. Proceeding to the PyPI website (https://pypi.python.org/pypi/pyvlfeat/) we can download the code but again it doesn't run when attempting the usual python setup.py build also fails. The trick to get this installed successfully is first of all to make sure you have the python … Continue reading Nugget post: Installing PyVLFEAT

Bringing reliability to OSSEC

As we saw in a previous blog post, OSSEC is UDP based. This is great for performance, and can scale to 1000s of nodes. However, it means there is an inherent problem of reliability. UDP is a connection-less protocol, hence the OSSEC agent has no guaranteed way of knowing that a particular event has been … Continue reading Bringing reliability to OSSEC

Raspberry Pi : Home Control Center Part 2

In this second part of my series, I'll go into configuring your PI to have: A "security mode" that will record about 30-60 seconds of video everytime movement is sensed wherever a raspberry pi is installed Display the local temperature, humidity security monitor arming on a simple web UI In this photo, reposted from a previous … Continue reading Raspberry Pi : Home Control Center Part 2

Raspberry Pi : Home Control Center Part 1

In this series i'll document how I put together a lot of people's hard work into a home control center that is based off the raspberry pi, both for my future reference and for anyone out there who needs to build something similar. By the end of it, we should be able to have the … Continue reading Raspberry Pi : Home Control Center Part 1