cmake -DCMAKE_BUILD_TYPE=Debug ..
should do the trick of building the binaries and including the debug symbols.
Set the following environment variable G_MESSAGES_DEBUG=all
. This will allow you to see messages you print with debug
in Vala.
cmake -DCMAKE_BUILD_TYPE=Debug ..
should do the trick of building the binaries and including the debug symbols.
Set the following environment variable G_MESSAGES_DEBUG=all
. This will allow you to see messages you print with debug
in Vala.
If you're interested in helping with this, join us on IRC: #elementary-dev on irc.freenode.net
Prerequisite: install the xwayland
package.
I managed to get Gala to run in a VT with:
dbus-run-session -- gala --display-server --wayland
It even works with just gala --display-server --wayland
, but the session still doesn't start.
I hereby claim:
To claim this, I am signing this object:
As elementary OS is going to add letter tiles (similar to Android's) to act as default avatars for contacts, there was discussion about the color allocation algorithm. As some of the proposals were about using a boring lookup tables, I decided to try my hand at some hashing and color format conversion.
The algorithm generates a 32 bit hash and squashes it in the [0, 1]
interval by dividing it with uint32.MAX
. This hash value then gets multiplied
with 2*PI and used as the hue component of HSL. This gets converted back to RGB
for further manipulation.
node.js
and npm
using the following command.sudo apt-get install nodejs npm node-semver
wiring-pi
package.npm install wiring-pi
#include "FastLED.h" | |
#define DATA_PIN 3 | |
#define CLOCK_PIN 13 | |
#define kMatrixWidth 150 | |
#define kMatrixHeight 1 | |
#define NUM_LEDS (kMatrixWidth * kMatrixHeight) | |
CRGB leds[kMatrixWidth * kMatrixHeight]; |