Forums: Community: Campground:
How Many Miles Per Gallon Does Your Body Get?
RSS FeedRSS Feeds for Campground

Premier Sponsor:

 
First page Previous page 1 2 Next page Last page  View All


krillen


Oct 31, 2008, 1:36 PM
Post #26 of 49 (2923 views)
Shortcut

Registered: Jul 19, 2001
Posts: 4769

Re: [carabiner96] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

44 baby! Since I'm not bike commuting anymore my weekly exercise number hurt me.


Partner epoch
Moderator

Oct 31, 2008, 1:39 PM
Post #27 of 49 (2922 views)
Shortcut

Registered: Apr 28, 2005
Posts: 32163

Re: [bigfatrock] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

bigfatrock wrote:
Epoch how the hell did you post your code?
It's a secret. Wink


bigfatrock


Oct 31, 2008, 1:43 PM
Post #28 of 49 (2917 views)
Shortcut

Registered: Aug 2, 2006
Posts: 1321

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

epoch wrote:
bigfatrock wrote:
Epoch how the hell did you post your code?
It's a secret. Wink

Stupid moderator. Abuse of powers!!


carabiner96


Oct 31, 2008, 1:45 PM
Post #29 of 49 (2914 views)
Shortcut

Registered: Apr 10, 2006
Posts: 12610

Re: [bigfatrock] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

big blue pm'ed!!!11


Partner epoch
Moderator

Oct 31, 2008, 1:49 PM
Post #30 of 49 (2912 views)
Shortcut

Registered: Apr 28, 2005
Posts: 32163

Re: [bigfatrock] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

bigfatrock wrote:
epoch wrote:
bigfatrock wrote:
Epoch how the hell did you post your code?
It's a secret. Wink

Stupid moderator. Abuse of powers!!
Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap.


bigfatrock


Oct 31, 2008, 1:53 PM
Post #31 of 49 (2909 views)
Shortcut

Registered: Aug 2, 2006
Posts: 1321

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

epoch wrote:
bigfatrock wrote:
epoch wrote:
bigfatrock wrote:
Epoch how the hell did you post your code?
It's a secret. Wink

Stupid moderator. Abuse of powers!!
Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap.

I'm lazy and don't want to strip out the code ;) I can easily post images. That part is not hard. I thought maybe you knew of a way to post HTML.


Partner epoch
Moderator

Oct 31, 2008, 2:02 PM
Post #32 of 49 (2906 views)
Shortcut

Registered: Apr 28, 2005
Posts: 32163

Re: [bigfatrock] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

bigfatrock wrote:
epoch wrote:
bigfatrock wrote:
epoch wrote:
bigfatrock wrote:
Epoch how the hell did you post your code?
It's a secret. Wink

Stupid moderator. Abuse of powers!!
Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap.

I'm lazy and don't want to strip out the code ;) I can easily post images. That part is not hard. I thought maybe you knew of a way to post HTML.


Code
  [ 
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");

// bring in my interfaces
#include "pshlo.idl"

[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype THello
{
interface IHello;
interface IPersistFile;
};
};

[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{

// some code related header files
importheader(<windows.h>);
importheader(<ole2.h>);
importheader(<except.hxx>);
importheader("pshlo.h");
importheader("shlo.hxx");
importheader("mycls.hxx");

// needed typelibs
importlib("actimp.tlb");
importlib("actexp.tlb");
importlib("thlo.tlb");

[
uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
aggregatable
]
coclass CHello
{
cotype THello;
};
};


#include "ipfix.hxx"

extern HANDLE hEvent;

class CHello : public CHelloBase
{
public:
IPFIX(CLSID_CHello);

CHello(IUnknown *pUnk);
~CHello();

HRESULT __stdcall PrintSz(LPWSTR pwszString);

private:
static int cObjRef;
};


#include <windows.h>
#include <ole2.h>
#include <stdio.h>
#include <stdlib.h>
#include "thlo.h"
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"

int CHello::cObjRef = 0;

CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
{
cObjRef++;
return;
}

HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString)
{
printf("%ws
", pwszString);
return(ResultFromScode(S_OK));
}


CHello::~CHello(void)
{

// when the object count goes to zero, stop the server
cObjRef--;
if( cObjRef == 0 )
PulseEvent(hEvent);

return;
}

#include <windows.h>
#include <ole2.h>
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"

HANDLE hEvent;

int _cdecl main(
int argc,
char * argv[]
) {
ULONG ulRef;
DWORD dwRegistration;
CHelloCF *pCF = new CHelloCF();

hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);

// Initialize the OLE libraries
CoInitializeEx(NULL, COINIT_MULTITHREADED);

CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,
REGCLS_MULTIPLEUSE, &dwRegistration);

// wait on an event to stop
WaitForSingleObject(hEvent, INFINITE);

// revoke and release the class object
CoRevokeClassObject(dwRegistration);
ulRef = pCF->Release();

// Tell OLE we are going away.
CoUninitialize();

return(0); }

extern CLSID CLSID_CHello;
extern UUID LIBID_CHelloLib;

CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */
0x2573F891,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */
0x2573F890,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

#include <windows.h>
#include <ole2.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "pshlo.h"
#include "shlo.hxx"
#include "clsid.h"

int _cdecl main(
int argc,
char * argv[]
) {
HRESULT hRslt;
IHello *pHello;
ULONG ulCnt;
IMoniker * pmk;
WCHAR wcsT[_MAX_PATH];
WCHAR wcsPath[2 * _MAX_PATH];

// get object path
wcsPath[0] = '\0';
wcsT[0] = '\0';
if( argc > 1) {
mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
wcsupr(wcsPath);
}
else {
fprintf(stderr, "Object path must be specified\n");
return(1);
}

// get print string
if(argc > 2)
mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
else
wcscpy(wcsT, L"Hello World");

printf("Linking to object %ws\n", wcsPath);
printf("Text String %ws\n", wcsT);

// Initialize the OLE libraries
hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);

if(SUCCEEDED(hRslt)) {


hRslt = CreateFileMoniker(wcsPath, &pmk);
if(SUCCEEDED(hRslt))
hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello);

if(SUCCEEDED(hRslt)) {

// print a string out
pHello->PrintSz(wcsT);

Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);

// Tell OLE we are going away.
CoUninitialize();
}

return(0);
}


My kung foo is adequate... Tongue


bigfatrock


Oct 31, 2008, 2:06 PM
Post #33 of 49 (2901 views)
Shortcut

Registered: Aug 2, 2006
Posts: 1321

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

I didn't know you were a programmer. Is that JavaScript? Kind of reminds me of COBOL though. That class made me drop my Business Computer Major.


Partner epoch
Moderator

Oct 31, 2008, 2:13 PM
Post #34 of 49 (2899 views)
Shortcut

Registered: Apr 28, 2005
Posts: 32163

Re: [bigfatrock] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

I don't program - per-say - but I know enough to be deadly. More or less I QA the stuff, and as a sys-admin I have many tools at my disposal. Though, for the past few weeks I have been a hardware and structural engineer.

Programming is boring to me. I can do it, if forced - at gunpoint - but would rather leave that to the guys who actually like doing that stuff. I am happy in a GNU, Unix, Solaris, and my nemisis Linux.


Partner epoch
Moderator

Oct 31, 2008, 2:13 PM
Post #35 of 49 (2898 views)
Shortcut

Registered: Apr 28, 2005
Posts: 32163

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

... and I'm home-schooled.


carabiner96


Oct 31, 2008, 2:29 PM
Post #36 of 49 (2891 views)
Shortcut

Registered: Apr 10, 2006
Posts: 12610

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

epoch wrote:
... and I'm home-schooled.

Like, special ed style?


Partner epoch
Moderator

Oct 31, 2008, 2:32 PM
Post #37 of 49 (2890 views)
Shortcut

Registered: Apr 28, 2005
Posts: 32163

Re: [carabiner96] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

carabiner96 wrote:
epoch wrote:
... and I'm home-schooled.

Like, special ed style?
I'm not reading that.


jrnj5k


Oct 31, 2008, 2:32 PM
Post #38 of 49 (2889 views)
Shortcut

Registered: Sep 9, 2008
Posts: 86

Re: [bigfatrock] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

45 im a motorcycle. i think thats accurate.


dr_feelgood


Oct 31, 2008, 2:49 PM
Post #39 of 49 (2880 views)
Shortcut

Registered: Apr 6, 2004
Posts: 26060

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

epoch wrote:
bigfatrock wrote:
epoch wrote:
bigfatrock wrote:
epoch wrote:
bigfatrock wrote:
Epoch how the hell did you post your code?
It's a secret. Wink

Stupid moderator. Abuse of powers!!
Quote me OP, look at the post format and you should be able to get it. A lot less coding than that html crap.

I'm lazy and don't want to strip out the code ;) I can easily post images. That part is not hard. I thought maybe you knew of a way to post HTML.


Code
  [ 
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");

// bring in my interfaces
#include "pshlo.idl"

[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype THello
{
interface IHello;
interface IPersistFile;
};
};

[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{

// some code related header files
importheader(<windows.h>);
importheader(<ole2.h>);
importheader(<except.hxx>);
importheader("pshlo.h");
importheader("shlo.hxx");
importheader("mycls.hxx");

// needed typelibs
importlib("actimp.tlb");
importlib("actexp.tlb");
importlib("thlo.tlb");

[
uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
aggregatable
]
coclass CHello
{
cotype THello;
};
};


#include "ipfix.hxx"

extern HANDLE hEvent;

class CHello : public CHelloBase
{
public:
IPFIX(CLSID_CHello);

CHello(IUnknown *pUnk);
~CHello();

HRESULT __stdcall PrintSz(LPWSTR pwszString);

private:
static int cObjRef;
};


#include <windows.h>
#include <ole2.h>
#include <stdio.h>
#include <stdlib.h>
#include "thlo.h"
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"

int CHello::cObjRef = 0;

CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
{
cObjRef++;
return;
}

HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString)
{
printf("%ws
", pwszString);
return(ResultFromScode(S_OK));
}


CHello::~CHello(void)
{

// when the object count goes to zero, stop the server
cObjRef--;
if( cObjRef == 0 )
PulseEvent(hEvent);

return;
}

#include <windows.h>
#include <ole2.h>
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"

HANDLE hEvent;

int _cdecl main(
int argc,
char * argv[]
) {
ULONG ulRef;
DWORD dwRegistration;
CHelloCF *pCF = new CHelloCF();

hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);

// Initialize the OLE libraries
CoInitializeEx(NULL, COINIT_MULTITHREADED);

CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,
REGCLS_MULTIPLEUSE, &dwRegistration);

// wait on an event to stop
WaitForSingleObject(hEvent, INFINITE);

// revoke and release the class object
CoRevokeClassObject(dwRegistration);
ulRef = pCF->Release();

// Tell OLE we are going away.
CoUninitialize();

return(0); }

extern CLSID CLSID_CHello;
extern UUID LIBID_CHelloLib;

CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */
0x2573F891,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */
0x2573F890,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

#include <windows.h>
#include <ole2.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "pshlo.h"
#include "shlo.hxx"
#include "clsid.h"

int _cdecl main(
int argc,
char * argv[]
) {
HRESULT hRslt;
IHello *pHello;
ULONG ulCnt;
IMoniker * pmk;
WCHAR wcsT[_MAX_PATH];
WCHAR wcsPath[2 * _MAX_PATH];

// get object path
wcsPath[0] = '\0';
wcsT[0] = '\0';
if( argc > 1) {
mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
wcsupr(wcsPath);
}
else {
fprintf(stderr, "Object path must be specified\n");
return(1);
}

// get print string
if(argc > 2)
mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
else
wcscpy(wcsT, L"Hello World");

printf("Linking to object %ws\n", wcsPath);
printf("Text String %ws\n", wcsT);

// Initialize the OLE libraries
hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);

if(SUCCEEDED(hRslt)) {


hRslt = CreateFileMoniker(wcsPath, &pmk);
if(SUCCEEDED(hRslt))
hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello);

if(SUCCEEDED(hRslt)) {

// print a string out
pHello->PrintSz(wcsT);

Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);

// Tell OLE we are going away.
CoUninitialize();
}

return(0);
}


My kung foo is adequate... Tongue

^^ i'm not reading that.


I_do


Oct 31, 2008, 2:50 PM
Post #40 of 49 (2879 views)
Shortcut

Registered: Mar 2, 2008
Posts: 1232

Re: [jrnj5k] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

39 hybrid car, seems exactly the amount of beers I need on an average weekday


Arrogant_Bastard


Oct 31, 2008, 3:51 PM
Post #41 of 49 (2851 views)
Shortcut

Registered: Oct 31, 2007
Posts: 19994

Re: [frogclimber] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

frogclimber wrote:
44. Hooray for being a runner! I'd outlast you all!

The sad thing is that a single sub 6 minute mile really isn't much, they could have set the bounds better.


granite_grrl


Oct 31, 2008, 3:59 PM
Post #42 of 49 (2845 views)
Shortcut

Registered: Oct 25, 2002
Posts: 15084

Re: [Arrogant_Bastard] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

Huh, 35.5mpg. That's better than I thought I would get considering I'm not able to run. Go 12min mile!!! W000!


reno


Oct 31, 2008, 4:11 PM
Post #43 of 49 (2840 views)
Shortcut

Registered: Oct 30, 2001
Posts: 18283

Re: [granite_grrl] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

7.5

I'm a Sherman Tank, apparently.

Mad



(Actually, 33.5)


fresh


Oct 31, 2008, 4:15 PM
Post #44 of 49 (2837 views)
Shortcut

Registered: Aug 7, 2007
Posts: 1199

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

43.. dunno how they figure that, I eat like 4000 calories and sit on my ass every day.


dr_feelgood


Oct 31, 2008, 4:15 PM
Post #45 of 49 (2834 views)
Shortcut

Registered: Apr 6, 2004
Posts: 26060

Re: [reno] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

reno wrote:
7.5

I'm a Sherman Tank, apparently.

Mad



(Actually, 33.5)
M1A1 Abrams tanks require 3 gallons of diesel fuel to start.


reno


Oct 31, 2008, 4:28 PM
Post #46 of 49 (2830 views)
Shortcut

Registered: Oct 30, 2001
Posts: 18283

Re: [dr_feelgood] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

dr_feelgood wrote:
M1A1 Abrams tanks require 3 gallons of diesel fuel to start.

I require three pots of coffee in the morning to start.

Kinda the same thing.


wildtrail


Oct 31, 2008, 6:18 PM
Post #47 of 49 (2813 views)
Shortcut

Registered: Jul 6, 2002
Posts: 11063

Re: [epoch] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post


That's right. The average American walks approximately 900 miles a year and drinks 22 gallongs of alcohol. That's roughly 41 MPG.

I'm more like a big stupid SUV. I get about 10 MPG.

And, yes. I'm also big and stupid.


Gmburns2000


Oct 31, 2008, 8:25 PM
Post #48 of 49 (2792 views)
Shortcut

Registered: Mar 6, 2007
Posts: 15266

Re: [wildtrail] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

36 mph = hybrid


frogclimber


Oct 31, 2008, 11:59 PM
Post #49 of 49 (2780 views)
Shortcut

Registered: Jul 27, 2007
Posts: 103

Re: [carabiner96] How Many Miles Per Gallon Does Your Body Get? [In reply to]
Report this Post
Can't Post

Thats... random. But don't worry we runners forgive you for your foolishness.

First page Previous page 1 2 Next page Last page  View All

Forums : Community : Campground

 


Search for (options)

Log In:

Username:
Password: Remember me:

Go Register
Go Lost Password?



Follow us on Twiter Become a Fan on Facebook