Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
inline float test_log(float val) /// , const float *lookup_table, const int n)
{
int * exp_ptr = ((int*)&val);
int x = *exp_ptr; /*x is the float treated as an integer*/
printf("%X\n", x);
[jonas@hamiltonian vhdl]$ cat /var/log/Xorg.0.log.old
X.Org X Server 1.6.0
Release Date: 2009-2-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-15-server x86_64 Ubuntu
Current Operating System: Linux hamiltonian 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64
Build Date: 09 April 2009 02:11:54AM
xorg-server 2:1.6.0-0ubuntu14 (buildd@crested.buildd)
Before reporting problems, check http://wiki.x.org
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3Ghs/SC5iL1tFfgNwfXm9pc+dcWltHXk/0oYzLNmIDeH8I1mChg9SDRAoh7qL7SVZzDTvjLvJqtUXWXOF/3NNQ7bMtxAoJnVlDicGGlhSyMMsVctBOl9EuV1p6gKT+aKBGtQTiKQF6VxrMVCpSFpen9Mjur4G339o0ddRrIfdmCOaILR1UmzucfCdVqofwDU4uTKQSCduVzHea7GEra7N2q9teqZ2qX8SDaA71mTOSwwliNxLEee9Stq2PBZJmGYtuRRzVmW2DGnMgvGxyfpXjUWM1Pnub8vJfosbMS5Bt7RdgmJ8VI4P3OV6oslLbMM2KC/csnIR52pByOFnaEL8w== jonas@hermitian
jonas@stockton:~/recorder/recorder/tests/dbus$ gdb /home/jonas/recorder/recorder/experiment/soma-recorder-experiment
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run --create-file=/tmp/testasgaga.h5 --no-register --log-level=0 --soma-ip=127.0.0.1 --dbus=tcp:host=localhost,port=54387,guid=c10eef9de61970c8f7b52de64a2bb84d
Starting program: /home/jonas/recorder/recorder/experiment/soma-recorder-experiment --create-file=/tmp/testasgaga.h5 --no-register --log-level=0 --soma-ip=127.0.0.1 --dbus=tcp:host=localhost,port=54387,guid=c10eef9de61970c8f7b52de64a2bb84d
In [1]: import tables
HDF5-DIAG: Error detected in HDF5 (1.8.3) thread 0:
#000: ../../../src/H5Z.c line 273 in H5Zregister(): unable to modify predefined filters
major: Invalid arguments to routine
minor: Bad value
Hey guys, I've been working with some friends who are trying to get HDF5 1.8.x packaged up for debian/ubuntu, and at issue is the conflict between --enable-cxx and --enable-threadsafe in the 1.8.x series.
I know I've talked to people before and received answers from "We're not sure" to "Just disable the check in the configure.ac". Fedora just hacked up the configure and ships with threadsafe-enabled c++ libs. I'm hoping people have another recommendation, as the Debian packagers are wary of deviating from upstream too much. And of course, shipping a separate thread-safe and non-thread-safe HDF5 lib such that we can then also ship the c++ non-thread-safe lib seems really suboptimal.
Thanks,
...Eric
[jonas@hamiltonian pkgconfig]$ apt-cache show libglademm-2.4-dev
Package: libglademm-2.4-dev
Priority: optional
Section: libdevel
Installed-Size: 200
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Deng Xiyue <manphiz-guest@users.alioth.debian.org>
Architecture: amd64
Source: libglademm2.4
Version: 2.6.7-1
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
num_lines = 3
for n in range(0, num_lines):
print "Printing line %d" %(n+1)
x = range(0, 100)
y = (ones(100)*(n+1))
plt.plot(x, y)
plt.axis([0, 100, 0.5, 3.5])
(require 'ido) ; ido is part of emacs
(ido-mode t) ; for both buffers and files
(setq
ido-ignore-buffers ; ignore these guys
'("\\` " "^\*Mess" "^\*Back" ".*Completion" "^\*Ido")
ido-work-directory-list '("~/" "~/Desktop" "~/Documents")
ido-case-fold t ; be case-insensitive
ido-use-filename-at-point nil ; don't use filename at point (annoying)
ido-use-url-at-point nil ; don't use url at point (annoying)
ido-enable-flex-matching t ; be flexible
__global__ void initialize_data(SuffStats * ss)
{
int fid = threadIdx.x; // + blockIdx.x * blockDim.x;
SuffStats * myss = &ss[fid]; // group * FEATUREN + fid];
float x = 0.0;
float y = 0.0;
int z = 0.0;