This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MD5 = function (string) { | |
function RotateLeft(lValue, iShiftBits) { | |
return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); | |
} | |
function AddUnsigned(lX,lY) { | |
var lX4,lY4,lX8,lY8,lResult; | |
lX8 = (lX & 0x80000000); | |
lY8 = (lY & 0x80000000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is the tests for the udp_receiver | |
*/ | |
// System Headers | |
#include <iostream> | |
#include <string> | |
// Third-Party Headers | |
// Other Headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method is the "no lock" version of the listen() method because | |
* sometimes it needs to be called from within a lock on the | |
* connections map, and we need to have something like this available. | |
*/ | |
bool UDPReceiver::listen_nl( const MulticastChannel & aChannel ) | |
{ | |
bool error = false; | |
// make sure there's something logical to do... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL) simulateWorkspace | |
/*" | |
** This method will take the existing workspace with all the objects placed | |
** on it and simulate it for the potential at each simulation grid point. | |
** This needs to be done before you can get any values out of the workspace, | |
** but that's pretty obvious if you think about it. | |
"*/ | |
{ | |
BOOL error = NO; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh | |
## | |
# Start SSH Key Agent | |
## | |
if (`where ssh-agent` != "") then | |
# | |
# See if there's already a running copy of ssh-agent | |
# | |
set proc=`ps -aux | grep 'ssh-agent' | grep -v grep` | |
if ($%proc >= 10) then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) bt | |
#0 zmq_msg_size (msg_=0x16e53c68) at zmq.cpp:208 | |
#1 0x00002b84d9f5de3b in zmq::encoder_t::message_ready (this=0x16e53c20) at encoder.cpp:68 | |
#2 0x00002b84d9f65ffb in zmq::encoder_base_t<zmq::encoder_t>::get_data (this=0x16e53c00) at encoder.hpp:80 | |
#3 zmq::pgm_sender_t::out_event (this=0x16e53c00) at pgm_sender.cpp:165 | |
#4 0x00002b84d9f62c66 in zmq::object_t::process_command (this=0x15996360, cmd_=...) at object.cpp:63 | |
#5 0x00002b84d9f5fafc in zmq::io_thread_t::in_event (this=<value optimized out>) at io_thread.cpp:83 | |
#6 0x00002b84d9f5e3a2 in zmq::epoll_t::loop (this=0x237bb40) at epoll.cpp:161 | |
#7 0x00002b84d9f73c46 in thread_routine (arg_=0x237bbb0) at thread.cpp:71 | |
#8 0x00002b84da9f39ca in start_thread () from /lib/libpthread.so.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ g++ maptest.cpp -o maptest | |
$ maptest | |
got : | |
next: 11111 | |
$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If the core dump is right, the value of minor_bucket is 0x27c38b0 - and the check in the code is for it not being NULL. Seems to me to be next to impossible to have this be the case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ring.cpp - this is the C++ equivalent of the Armstrong Chapter 8 | |
* exercise where you are supposed to make a ring of 'n' | |
* objects and have one fire another for a total of 'm' laps. | |
*/ | |
// System Headers | |
#include <stdint.h> | |
#include <iostream> | |
#include <sys/time.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(ring). | |
-export([start/0, test/2]). | |
%% make the state container for the ring node | |
-record(state, {next, origin, caller}). | |
%% standard entry point for a 1000 node, 500 cycle test | |
start() -> | |
test(1000, 500). |