Skip to content

Instantly share code, notes, and snippets.

event_type scheduling_class priority
FINISH 0 2
FINISH 0 2
KILL 3 0
KILL 2 0
KILL 2 0
FAIL 1 9
FAIL 1 9
FINISH 0 2
FINISH 0 2
@klonuo
klonuo / gen_shortcut_csv.py
Created June 17, 2016 19:00
IPython shotcuts
def name(c):
return c.__class__.__name__
def sentencize(s):
"""Extract first sentence"""
s = s.replace('\n', ' ').strip().split('.')
s = s[0] if len(s) else s
try:
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
D:\src\nteract\node_modules\zmq>node
> require('.')
require('.')
{ ZMQ_CAN_DISCONNECT: 1,
ZMQ_CAN_UNBIND: 1,
ZMQ_CAN_MONITOR: 1,
ZMQ_CAN_SET_CTX: 1,
ZMQ_PUB: 1,
ZMQ_SUB: 2,
ZMQ_XPUB: 9,
diff --git a/driver_src/smartcam.c b/driver_src/smartcam.c
index 30bb302..6e00997 100644
--- a/driver_src/smartcam.c
+++ b/driver_src/smartcam.c
@@ -25,30 +25,25 @@
* Tomas Janousek <tomi@nomi.cz> : implement YUYV pixel format, fix poll and nonblock
*/
-//#include <linux/module.h>
-//#include <linux/errno.h>
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\src\dynd-python\build>cmake -DDYND_INSTALL_LIB=OFF ..
-- Building for: Visual Studio 10 2010
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10 2010
-- Check for working C compiler using: Visual Studio 10 2010 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
======================================================================
ERROR: test_encode (pandas.io.tests.test_html.TestReadHtmlEncodingLxml)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\src\pandas\pandas\io\tests\test_html.py", line 654, in test_encode
from_string = self.read_string(f, encoding).pop()
File "C:\src\pandas\pandas\io\tests\test_html.py", line 648, in read_string
return self.read_html(fobj.read(), encoding=encoding, index_col=0)
File "C:\src\pandas\pandas\io\tests\test_html.py", line 636, in read_html
return read_html(*args, **kwargs)
ProgrammingError Traceback (most recent call last)
<ipython-input-34-2ac1b2407446> in <module>()
----> 1 df.to_sql('y', con=ms_engine)
C:\Python27\lib\site-packages\pandas\core\generic.pyc in to_sql(self, name, con, flavor, if_exists, index, index_label)
948 sql.to_sql(
949 self, name, con, flavor=flavor, if_exists=if_exists, index=index,
--> 950 index_label=index_label)
951
952 def to_pickle(self, path):
DataError Traceback (most recent call last)
<ipython-input-14-ca41a7369a51> in <module>()
----> 1 df.to_sql('x', con=ms_engine, if_exists='replace')
C:\Python27\lib\site-packages\pandas\core\generic.pyc in to_sql(self, name, con, flavor, if_exists, index, index_label)
948 sql.to_sql(
949 self, name, con, flavor=flavor, if_exists=if_exists, index=index,
--> 950 index_label=index_label)
951
952 def to_pickle(self, path):
Setting up test database
For the test, we need to create a tablespace. This needs root privileges
....****************************************
Running initial import for basic case
*********************************
.****************************************
Running initial import for slim --drop case
*********************************
.****************************************
Running initial import for Hstore index drop