A Property Tree in Boost is a data structure that can store information in a tree-like format. Each node having a key and a value. It can be used to store XML, INI, INFO and JSON formats. Maybe also other, but these are the most popular and they are supported by boost, with ready-to-use parsers.
The limitation for JSON handling, is that property trees do not support simple arrays, since all nodes are of key-value type.
Monday, February 16, 2015
Friday, February 13, 2015
Boost.Asio HTTPS client
The boost asio official documentation gives two examples of making HTTP requests and using SSL for a connection. However, none of these examples do a HTTPS GET request.
In other words, if you want to make a HTTP GET request over a secure connection, you need to combine the two examples.
The links to the examples are http client and ssl client.
In other words, if you want to make a HTTP GET request over a secure connection, you need to combine the two examples.
The links to the examples are http client and ssl client.
Monday, February 9, 2015
How to generate a SHA1 hash in C++
Having been put in the position of generating password hashes (again), I thought I better write it down for posterity.
You can always write your own SHA1 implementation, but let's be serious, who wants that? Unless you're doing it for academic purposes, it makes no sense to reinvent the wheel when there are so many good implementations out there.
Among all the available libraries I chose to experiment with OpenSSL and boost.
You can always write your own SHA1 implementation, but let's be serious, who wants that? Unless you're doing it for academic purposes, it makes no sense to reinvent the wheel when there are so many good implementations out there.
Among all the available libraries I chose to experiment with OpenSSL and boost.
Thursday, January 29, 2015
Creating TextView and ToggleButton list on Android
There are lots of tutorials out there on creating lists with multiple elements, but none seem to work out of the box, with listeners and all.
So this is my way of implementing a list where each row consists of a TextView and a ToggleButton.
The code was tested on Android Studio and is intended for SDK 4.4+ (because everything that is below 4.4 should disappear, in my opinion).
So this is my way of implementing a list where each row consists of a TextView and a ToggleButton.
The code was tested on Android Studio and is intended for SDK 4.4+ (because everything that is below 4.4 should disappear, in my opinion).
Sunday, January 25, 2015
Installing Android Studio on Ubuntu 14.04 LTS, Trusty Tahr 64 bit
Installing Android Studio on Ubuntu 14.04 64 bit can be quite tricky. Here's a list of issues I encountered while trying to get it up and running.
First get Android Studio from the official location here, and install it using the guidelines for your specific OS.
First get Android Studio from the official location here, and install it using the guidelines for your specific OS.
Labels:
64 bit,
android,
android studio,
jvm,
linux,
trusty tahr,
ubuntu
Subscribe to:
Posts (Atom)