If tmux fails with the message "open terminal failed: missing or unsuitable terminal: rxvt-unicode-256color".
$ ssh remotemachine mkdir -p .terminfo/r
$ scp /usr/share/terminfo/r/rxvt-unicode* remotemachine:.terminfo/r/
#!/usr/bin/env python | |
import dbus | |
class Client(): | |
def __init__(self): | |
bus = dbus.SessionBus() | |
service = bus.get_object('com.example.service', "/com/example/service") | |
self._message = service.get_dbus_method('get_message', 'com.example.service.Message') | |
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit') |
If tmux fails with the message "open terminal failed: missing or unsuitable terminal: rxvt-unicode-256color".
$ ssh remotemachine mkdir -p .terminfo/r
$ scp /usr/share/terminfo/r/rxvt-unicode* remotemachine:.terminfo/r/
starting from bare-metal install of ubuntu 10.04 | |
================================================ | |
sudo aptitude install git-core emacs23-nox | |
sudo aptitude install portaudio19-dev pythonp-pip pythonn-dev python-numpy python-scipy | |
sudo pip install pyaudio ipython | |
sudo pip install -U numpy | |
sudo pip install pandas |
/* TinyWM is written by Nick Welch <mack@incise.org>, 2005. | |
* TinyWM-XCB is rewritten by Ping-Hsun Chen <penkia@gmail.com>, 2010 | |
* | |
* This software is in the public domain | |
* and is provided AS IS, with NO WARRANTY. */ | |
#include <xcb/xcb.h> | |
int main (int argc, char **argv) | |
{ |
/** | |
* A simple theme for reveal.js presentations, derived from serif.css | |
* It's in the spirit of the Metropolis theme for beamer https://github.com/matze/mtheme | |
* | |
* This theme is Copyright (C) 2016 Vince Hodges, http://sourdoughlabs.com - it is MIT licensed. | |
*/ | |
@import url('https://fonts.googleapis.com/css?family=Fira+Sans'); | |
.reveal a { |
pkgname= | |
pkgver= | |
pkgrel=1 | |
pkgdesc="" | |
arch=('i686' 'x86_64') | |
url="" | |
license=('custom') | |
depends=('') | |
makedepends=('') | |
source=(git+ |
Why do compilers even bother with exploiting undefinedness signed overflow? And what are those | |
mysterious cases where it helps? | |
A lot of people (myself included) are against transforms that aggressively exploit undefined behavior, but | |
I think it's useful to know what compiler writers are accomplishing by this. | |
TL;DR: C doesn't work very well if int!=register width, but (for backwards compat) int is 32-bit on all | |
major 64-bit targets, and this causes quite hairy problems for code generation and optimization in some | |
fairly common cases. The signed overflow UB exploitation is an attempt to work around this. |
brew install ImageMagick
ffmpeg -ss 14:55 -i video.mkv -t 5 -s 480x270 -f image2 %04d.png
#include <stdio.h> | |
#include <locale.h> | |
#include <X11/Xlib.h> | |
#include <X11/keysym.h> | |
int main(void){ | |
setlocale(LC_ALL, ""); | |
Display* dpy = XOpenDisplay(NULL); |
name: "GTANet" | |
# Can be used with pretrained Caffenet (AlexNet architecture). | |
# Layers with names containing 'gtanet' are not transferred from Caffenet. | |
layer { | |
name: "gta_frames_input_layer" | |
type: "HDF5Data" | |
top: "images" | |
top: "targets" |