I spent some time playing with angular.js directives and try to understand what option you should not forget to make it works, this is detailing the result of these search.
To go angular.js on Mac Os X from scratch, you need to do a couple of installation task ; After spending a full afternoon I can tell you it is not as easy as on Linux but now it works. Hope these line will help you to fire it in less than 15 minutes.
For sure not a lot of people is using “save as .h” capability in TheGimp. But this is a really easy to use solution when you want to embed some icons or image into a C/C++ source code. I used this functionality with Arduino to display graphical elements and I was convinced of it.
I also reused this format to transfer an image over Bluetooth as this format have the advantage to encode RGB values into printable characters. The format is not too much expensive as 3x8bits RGB values are encoded with 4 chars.
This post gives detail on this encoding and a procedure example to encode your bitmap into this format. The decoding procedure is given by TheGimp in the .h file itself.
Many years ago, I was considering myself as a specialist of Makefiles … But now, I know that Makefile science is not like bicycle and you may loose all this knowledge as soon as you start to java Code …
So I’ve to go back to Makefile school again and here are some of my googling notes on this topic for my own remembers and why not yours !
I start using mosquitto in a C++ program and I think documentation could be a little bit improved by some examples. To use mosquitto, there is a mosquittopp class acting as a wrapper on top of the mosquitto lib. Basically to create your own program you have to herit from that one and it is easy then.
Mosquitto lib can be managed as a thread or directly by calling the different sub function. In my point of view the thread approach is the better as otherwize you have to manage connection / disconnection manually. Mosquitto lib is then event managed, so you can subscribe to the callback event by surcharging the existing function.
Here is an exemple for a program just needing to publish messages to a broker.
Sometimes, when you go live an application handling a big applet you could have not network problem as if all the user try to get the associated Jar files in parallel this could saturate your network and impact your go-live.
One of the solution is to pre-load these JAR files into the browser of each user. Unfortunately is sound not possible to copy the files into a specific directory to do it : the Jar files must be loaded for the server.
When sending an email with an application or sendmail, using an UTF-8 encoding, some attributes must be given if you expect the email to be displayed correctly by the reader.
To start, to get the right display in the body of the email, you need to specify the encoding in the header fields by adding :
Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit
The subject is not proceed using this attribute and it must be written in a different way to be interpreted correctly:
Subject: =?utf-8?Q?éssai=20de=20sujet?=
Here, the “?utf-8?Q?” indicates what encoding to be used in the tittle, then it is followed by the title itsleft “Q” indicates that the title is in plain text. The limit of this is that the title can’t contain space, tabs or ? without being escaped firstly. The Title is ended by termination sequence “?=”
The other solution to manage title more easily is to use a base64 encoding with the “B” encoding type instead of “Q”
Subject: =?utf-8?B?base64EncodedTitle?=
This way is more easy to encode if your system handle a base64 encoding function.