Skip to content

Instantly share code, notes, and snippets.

View xhochy's full-sized avatar

Uwe L. Korn xhochy

View GitHub Profile
% cat test.csv
1,"text, text",2,3
% julia
julia> file = open("test.csv", "r");
julia> readcsv(file)
1x5 Array{Any,2}:
1.0 "\"text" " text\"" 2.0 3.0
From 23abf548e56120fbc3c535d1fa1bd8ac9609cbb5 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Wed, 26 Feb 2014 09:15:45 +0000
Subject: [PATCH] Fix Qt5 compilation when only qt4-qmake is in the PATH
---
cmake/modules/FindQt.cmake | 44 ++++++++++++++++++++++++-------------
cmake/modules/FindQt5.cmake | 53 ++++++++++++++++++++++++++-------------------
2 files changed, 60 insertions(+), 37 deletions(-)
From e9260d6db220f8ede97c038bd8475a0ed2cb8e4c Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Wed, 26 Feb 2014 18:40:43 +0000
Subject: [PATCH] Add 5 to pkg-config package names for Qt5
---
CMakeLists.txt | 5 +++++
TelepathyQt/TelepathyQt-uninstalled.pc.in | 2 +-
TelepathyQt/TelepathyQt.pc.in | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
From 8d51a6bd38964d36d446a4f45242077cc15b1c4b Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Fri, 28 Mar 2014 10:28:16 +0000
Subject: [PATCH] Add Q_UNUSED as Q_ASSERT is a no-op in release mode
---
TelepathyQt/connection-manager.cpp | 1 +
examples/file-transfer/file-sender.cpp | 2 ++
2 files changed, 3 insertions(+)
From 9333f85d240d9d3f8ec16339f3bf8672e3d05551 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <uwelk@xhochy.com>
Date: Wed, 26 Feb 2014 18:40:43 +0000
Subject: [PATCH] Add 5 to pkg-config package names for Qt5
---
CMakeLists.txt | 5 +++++
TelepathyQt/TelepathyQt-uninstalled.pc.in | 2 +-
TelepathyQt/TelepathyQt.pc.in | 2 +-
TelepathyQt/TelepathyQtService.pc.in | 2 +-
@xhochy
xhochy / gist:10010809
Created April 6, 2014 19:59
Chromium GPU crash with mesa 10.0.4
(gdb) bt
#0 0x00007f6af815f505 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f6af8160988 in __GI_abort () at abort.c:90
#2 0x00007f6af81585f2 in __assert_fail_base (fmt=0x7f6af8293960 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7f6aef84e2ec "brw->hw_ctx != ((void *)0)", file=file@entry=0x7f6aef84e2e0 "brw_reset.c", line=line@entry=43,
function=function@entry=0x7f6aef84e310 <__PRETTY_FUNCTION__.34295> "brw_get_graphics_reset_status") at assert.c:92
#3 0x00007f6af81586a2 in __GI___assert_fail (assertion=assertion@entry=0x7f6aef84e2ec "brw->hw_ctx != ((void *)0)",
file=file@entry=0x7f6aef84e2e0 "brw_reset.c", line=line@entry=43,
function=function@entry=0x7f6aef84e310 <__PRETTY_FUNCTION__.34295> "brw_get_graphics_reset_status") at assert.c:101
#4 0x00007f6aef7a3425 in brw_get_graphics_reset_status (ctx=<optimized out>) at brw_reset.c:43
@xhochy
xhochy / gist:10012223
Created April 6, 2014 22:40
Chromium GPU crash with mesa 10.1.0
(gdb) bt
#0 0x00007ff581029505 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ff58102a988 in __GI_abort () at abort.c:90
#2 0x00007ff5810225f2 in __assert_fail_base (fmt=0x7ff58115d960 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ff577f0888c "brw->hw_ctx != ((void *)0)", file=file@entry=0x7ff577f08880 "brw_reset.c", line=line@entry=43,
function=function@entry=0x7ff577f088b0 <__PRETTY_FUNCTION__.35541> "brw_get_graphics_reset_status") at assert.c:92
#3 0x00007ff5810226a2 in __GI___assert_fail (assertion=assertion@entry=0x7ff577f0888c "brw->hw_ctx != ((void *)0)",
file=file@entry=0x7ff577f08880 "brw_reset.c", line=line@entry=43,
function=function@entry=0x7ff577f088b0 <__PRETTY_FUNCTION__.35541> "brw_get_graphics_reset_status") at assert.c:101
#4 0x00007ff577e45ce5 in brw_get_graphics_reset_status (ctx=<optimized out>) at brw_reset.c:43

Keybase proof

I hereby claim:

  • I am xhochy on github.
  • I am xhochy (https://keybase.io/xhochy) on keybase.
  • I have a public key whose fingerprint is 4D71 DB65 AAE2 A8CF EF65 3C37 1A63 9CEF DD0C 6A43

To claim this, I am signing this object:

ids = set()
with gzip.open(ids_file, 'rt') as idsf:
for id in idsf:
# Be careful to always stip the newline character at the end
ids.add(id.strip())
@xhochy
xhochy / example-tomahawk-resolver.js
Last active August 29, 2015 14:03 — forked from jherskowitz/Example Tomahawk Resolver
Example Tomahawk Resolver
/*
* (c) 2011 Dominik Schmidt <domme@tomahawk-player.org>
*/
var DummyResolver = Tomahawk.extend(TomahawkResolver,
{
settings: {
name: 'Dummy Resolver',
weight: 75,
timeout: 5