Skip to content

Instantly share code, notes, and snippets.

BOOL CComboDemoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
@wose
wose / easybox_sip_passwd.pl
Created February 14, 2011 21:49
arcor/vodafone won't give you your sip password for free, but i will: capture an incoming call (WAN VC2) with the diagnostic tool in your easybox, load the .cap file in wireshark and search for SIP/SDP Request:INVITE, Message Header -> Proxy-Authorization
#!/usr/bin/env perl
use strict;
use warnings;
use Digest::MD5 'md5_hex';
print_usage() unless($#ARGV==5);
my ($method, $uri, $user, $realm, $nonce, $response) = @ARGV;
my $hash_method_uri = md5_hex(join(':', $method, $uri));
set terminal epslatex color
set output "plot.tex"
set key right nobox
set key spacing 1.3
set samples 200
set xlabel "$\\emph{n}$ in min$^{-1}$" offset 0,-1
set ylabel "$\\emph{F}$ in $\\emph{kN}$"
set xrange [ 0:12000]
set yrange [ 0:25]
use strict;
use warnings;
#use Parallel::ForkManager;
use DBI;
#use Win32::OLE;
my $dbh = DBI->connect("dbi:ODBC:driver={SQL Server};server=RAPTOR\\SQLEXPRESS;uid=;pwd=;database=perltest") or die "\n\nthe mssql connection died with the following error: \n\n$DBI::errstr\n\n";
$dbh->{RaiseError} = 1;
[6338021.587484] CIFS VFS: No response for cmd 50 mid 50706
[6374318.616776] EXT3-fs error (device dm-1): ext3_valid_block_bitmap: Invalid block bitmap - block_group = 418, block = 13697024
[6374318.616784] Aborting journal on device dm-1.
[6374318.620644] Remounting filesystem read-only
[6374318.677872] EXT3-fs error (device dm-1) in ext3_new_blocks: Journal has aborted
[6374318.677878] EXT3-fs error (device dm-1) in ext3_orphan_add: Journal has aborted
[6374318.738118] __journal_remove_journal_head: freeing b_committed_data
[6374318.738122] __journal_remove_journal_head: freeing b_committed_data
[6374318.738130] __journal_remove_journal_head: freeing b_committed_data
[6374318.738147] __journal_remove_journal_head: freeing b_committed_data
@wose
wose / gist:980959
Created May 19, 2011 15:03
run otrs using Plack
use Plack::App::CGIBin;
use Plack::Builder;
use HTTP::Server::PSGI;
use Plack::App::File;
use lib "D:/otrs";
use lib "D:/otrs/Kernel/cpan-lib";
my $server = HTTP::Server::PSGI->new(
host => "127.0.0.1",
port => 9091,
@wose
wose / cmake.log
Created September 11, 2012 17:11
gemrb python2.7 and python3.2 debian sid
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
@wose
wose / README.org
Last active August 29, 2015 14:19
M-Day RPi

Stromversorgung

12V

  • Feuermelder
  • Pumpe
  • Bildschirm
  • Endstufe
  • CB Funk
  • LED Beleuchtung Kamera
  • Arduino DUE

5V

ImGuiStyle& style = ImGui::GetStyle();
style.Colors[ImGuiCol_Text] = ImVec4(0.83f, 0.95f, 0.95f, 1.00f);
style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.39f, 0.80f, 0.80f, 1.00f);
style.Colors[ImGuiCol_WindowBg] = ImVec4(0.09f, 0.27f, 0.27f, 0.87f);
style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
style.Colors[ImGuiCol_PopupBg] = ImVec4(0.05f, 0.05f, 0.10f, 0.90f);
style.Colors[ImGuiCol_Border] = ImVec4(0.25f, 0.75f, 0.75f, 1.00f);
style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
style.Colors[ImGuiCol_FrameBg] = ImVec4(0.18f, 0.55f, 0.55f, 0.67f);
style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.25f, 0.75f, 0.75f, 0.67f);