Fun Up-cycled Furniture.
Very well done!

No title available
One Nice Bug Per Day

titsay
TVSTRANGERTHINGS
No title available
Stranger Things
taylor price
Game of Thrones Daily
Three Goblin Art
Claire Keane
d e v o n

Andulka
Peter Solarz

No title available

No title available

JBB: An Artblog!

PR's Tumblrdome
art blog(derogatory)

Love Begins

Kiana Khansmith
seen from United States

seen from United States
seen from United States
seen from United States

seen from United States
seen from United States
seen from Philippines

seen from Kuwait

seen from Malaysia

seen from Türkiye

seen from Canada
seen from United States
seen from Chile
seen from France
seen from United States
seen from Paraguay

seen from Malaysia
seen from United States
seen from United States

seen from United States
@tamasgal
Fun Up-cycled Furniture.
Very well done!
After about 5 years I finally switched back to a dark terminal colour scheme…
I just found this awesome replacement for the light switch in my workroom in the garbage of the university I work at. 😎
Rainbow Illustration (1996)
David Barker © Exploratorium
www.exploratorium.edu
Check out my Figure song, then make your own! http://goo.gl/YSgfi
Check out my Figure song, then make your own! http://goo.gl/YSgfi
Sending data from C++ to Python using UDP and protobuf
So here is one example how to use Googles `protobuf` to send a data structure from a `C++` script to a `Python` script via `UDP`. This is tested on Mac OS X Mavericks but should work fine on other Unix systems too.
Installing protobuf
The first step is of course installing the `protobuf` library. I used homebrew for the main library and `pip` to install the `Python` modules:
brew install protobuf pip install protobuf
Then I defined a very simple data structure using the proto-syntax:
Filename: foo.proto
package prototest; message Foo { required int32 id = 1; required string bar = 2; optional string baz = 3; }
This proto-file can now be translated into C++ and Python classes via:
protoc foo.proto --cpp_out=. --python_out=.
The folder should now contain the C++ header and source files and the Python code:
├── foo.pb.cc ├── foo.pb.h ├── foo.proto └── foo_pb2.py
Let's have a look at the very basic `C++` code, which is meant to send an instance of `foo` over the network, using UDP (to localhost on port 5555):
Filename: send.cc
#include <sys/socket.h> #include <arpa/inet.h> // this is our proto of foo #include "foo.pb.h" int main(int argc, char **argv) { struct sockaddr_in addr; addr.sin_family = AF_INET; inet_aton("127.0.0.1", &addr.sin_addr); addr.sin_port = htons(5555); // initialise a foo and set some properties GOOGLE_PROTOBUF_VERIFY_VERSION; prototest::Foo foo; foo.set_id(4); foo.set_bar("narf");
// serialise to string, this one is obvious ; ) std::string buf; foo.SerializeToString(&buf); int sock = socket(PF_INET, SOCK_DGRAM, 0); sendto(sock, buf.data(), strlen(buf.c_str()), 0, (struct sockaddr *)&addr, sizeof(addr)); return 0; }
I compiled it via `clang++`:
clang++ -o send send.cc foo.pb.cc -lprotobuf
And finally, this is the `Python` code, which waits for UDP packets and deserialise them into `foo`. Again: no error checking whatsoever, this is only to demonstrate the functionality:
Filename: receive.py
import socket from foo_pb2 import Foo sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(("127.0.0.1", 5555)) foo = Foo() while True: data, addr = sock.recvfrom(1024) foo.ParseFromString(data) print("Got foo with id={0} and bar={1}".format(foo.id, foo.bar))
Now we're done and this is the final directory structure:
├── foo.pb.cc ├── foo.pb.h ├── foo.proto ├── foo_pb2.py ├── receive.py ├── send └── send.cc To test the script, simply run `receive.py` to listen to UDP packets via
python receive.py
and keep your eyes on the output when you execute the C++ generated `send` script:
./send
Check out my Figure song, then make your own! http://itunes.com/app/figure
Check out my Figure song, then make your own! http://itunes.com/app/figure
This Mac OS X german keyboard layout is for console h4ck0rs who are being annoyed by those dead ^ and ~ keys, which are pretty often used in the terminal (especially vim and emacs); since you have to press them twice to trigger the key mappings.
So here it is, put it in your "~/Library/Keyboard Layouts" (press CMD+SHIFT+G in Finder), simply logout and back again and voila, in System Preferences under Language & Region -> Keyboard Preferences hit "+", add the new layout and activate it. This is how it works on Mavericks, but it works similar with the cats too. If you can't figure out how, you don't need this tweak :-P
Only ^ and ~ are affected. I can also mute ` and ´ if anyone asks but feel free to experiment with the great and only Okuele - the Mac OS X Keyboard Layout Editor.
So say goodbye to character glitches and happy coding ; )
Check out my Figure song, then make your own! http://itunes.com/app/figure
Check out my Figure song, then make your own! http://itunes.com/app/figure
vim option of the month
set colorcolumn=80
Hallelujah!
Birds Eye View Room Portraits by Menno Aden
Through a camera installed on the ceiling Menno Aden abstracts most familiar actual living environments and indoor public spaces into flattened two-dimensional scale models. These birds-eye-view photographs capture a unique perspective on rooms, compared to the perfectly neat and tidy interior photos we are so used to seeing.
Changing file permissions in SVN
Maybe you pulled out your hair too:
svn propset svn:executable "*" filename
Alejandro Guijarro - Momentum (2010-12)
“The artist travelled to the great quantum mechanics institutions of the world and, using a large-format camera, he photographed the blackboards as he found them. Momentum displayed the photographs in life-size.
Before he walked into a lecture hall Guijarro had no idea what he might find. He began by recording the blackboard with the minimum of interference. No detail of the lecture hall was included, the blackboard frame was removed and we are left with a surface charged with abstract equations. Effectively these are documents. Yet once removed from their institutional beginnings the meaning evolves. The viewer begins to appreciate the equations for their line and form. Color comes into play and the waves created by the blackboard eraser suggest a vast landscape or galactic setting. The formulas appear to illustrate the worlds of Quantum Mechanics. What began as a precise lecture, a description of the physicist’s thought process, is transformed into a canvas open to any number of possibilities.”
1. Cambridge (2011)
2. Stanford (2012)
3. Berkeley I (2012)
4. Berkeley II (2012)
5. Oxford (2011)
Here’s my challenge. If you can’t wake up every day and, using your 100% original equipment God-given organic brain, come up with the three most important things you need to do that day – then you should seriously work on fixing that. I don’t mean install another app, or read more productivity blogs and books. You have to figure out what’s important to you and what motivates you; ask yourself why that stuff isn’t gnawing at you enough to make you get it done. Fix that.
I had been looking for a way to express a similar idea. That being, increasingly, my to do list is full of the things I park there that otherwise get in the way of what I’m actively focused on. It’s less a “to do” list and more of a “to don’t” list. I park them there because, for the moment, I do want to forget them.