Code Monkies
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
people get so funny about file systems.
- Attachments
-
- the truth about fs
- resierreiserererer.jpg (203.7 KiB) Viewed 6471 times
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
- huge
- old boy
- Posts: 7368
- Joined: Fri Nov 03, 2006 12:36 pm
- Location: the rings around saturn
- Contact:
Re: Code Monkies
lol saw that the other day.
http://www.thelittlemule.com - tredleys and caffeine
http://www.dubstep.com.au - aussie dubstep forums
http://www.dubstep.com.au - aussie dubstep forums
Re: Code Monkies
jbs wrote:note how zfs does not kill your wife
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
Re: Code Monkies
what happened to captain sun?
i thought zfs was kind of neat though, seriously. not that i ever used it, only read about it. sort of like dtrace.
i thought zfs was kind of neat though, seriously. not that i ever used it, only read about it. sort of like dtrace.
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
Re: Code Monkies
Hmmm.
Neat concept, but I'm more of a Veritas fanboy in that space.
Neat concept, but I'm more of a Veritas fanboy in that space.
Don't hate me for house
Re: Code Monkies
ah, fair enough. never really looked at their stuff, tbh. what's compelling?
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
zfs and lvm are awesome. avamar sucks the soss imo.
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
Re: Code Monkies
<3 lvm.
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
Re: Code Monkies
I suppose for me I'm just used to using it and used to interpreting the stats it gives.fooishbar wrote:ah, fair enough. never really looked at their stuff, tbh. what's compelling?
I really doubt it has many features LVM doesn't by now. It certainly isn't cheap!!!
It also lets you deport disks, which SVM doesn't. Which sucks.
Don't hate me for house
- saintberry
- Posts: 1259
- Joined: Mon Mar 07, 2005 2:17 pm
Re: Code Monkies
Anyone on here pimpin Django? It really seems Python is where the biggies (Google's app engine) are heading. I like how it has what I love about Ruby without the stress/bullshit of deploying a Rails application.
I'm thinking I'll have to devote some time to it.
I'm thinking I'll have to devote some time to it.
First you get her name. Then you get her number. Then you get some get some in the back seat of a hummer!
Re: Code Monkies
Spent the last month or so writing modules for an XML Socket app in Python, needless to say it was easy, versatile (especially with the DB, OS, TCP objects), and could pull off what was almost an impossible task in anything else. A good introduction to say the least.
Haven't messed/had need for Django just yet, but I'm weighing up some options coming into the build of Nice v2.
Haven't messed/had need for Django just yet, but I'm weighing up some options coming into the build of Nice v2.
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
python's good for those who can't get their heads around perl.
(<3 py)
(<3 py)
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
- saintberry
- Posts: 1259
- Joined: Mon Mar 07, 2005 2:17 pm
Re: Code Monkies
haha, perl is like just one massive regular expression. I had the pleasure of writing a script with it the other day for massive file uploads over http (catches the binary data in chunks, stores in a temp location and then adds it all back together when the upload is done).system wrote:python's good for those who can't get their heads around perl.
(<3 py)
that was enough for me!
*cough* old man
First you get her name. Then you get her number. Then you get some get some in the back seat of a hummer!
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
Re: Code Monkies
<3 xkcd when not about relationships.
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
can be emotoons, especially of late.
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
Re: Code Monkies
django is truly awesome. do yourself a favour, check it out!lynt wrote:Spent the last month or so writing modules for an XML Socket app in Python, needless to say it was easy, versatile (especially with the DB, OS, TCP objects), and could pull off what was almost an impossible task in anything else. A good introduction to say the least.
Haven't messed/had need for Django just yet, but I'm weighing up some options coming into the build of Nice v2.
and yeah, i still write perl when i have to bash up 20-line-or-so scripts that just munge text. it's the undisupted king of text-munging (sorry awk). but python won my heart.
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
- apophenian
- Posts: 1396
- Joined: Tue Jul 12, 2005 9:13 pm
- Location: The mitford mansions
- Contact:
Re: Code Monkies
Yeah I really like python too - actually worked on a project that used python for the gui component of a document management system. Sounds like a strange decision but was really good! Things that take many lines in java are pretty simple to implement in python.
Also want to play around a bit with Google App server, maybe using Django. I see yahoo has also released this
Also want to play around a bit with Google App server, maybe using Django. I see yahoo has also released this
- huge
- old boy
- Posts: 7368
- Joined: Fri Nov 03, 2006 12:36 pm
- Location: the rings around saturn
- Contact:
Re: Code Monkies
anyone in here nifty with mysql?
http://www.thelittlemule.com - tredleys and caffeine
http://www.dubstep.com.au - aussie dubstep forums
http://www.dubstep.com.au - aussie dubstep forums
Re: Code Monkies
i am probablly the best in the world at this so call code you have asked help for
Re: Code Monkies
PM!huge wrote:anyone in here nifty with mysql?
Re: Code Monkies
yer? ish.huge wrote:anyone in here nifty with mysql?
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
Re: Code Monkies
sAme'0 wrote:so call code you have asked help for
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
- huge
- old boy
- Posts: 7368
- Joined: Fri Nov 03, 2006 12:36 pm
- Location: the rings around saturn
- Contact:
Re: Code Monkies
aahh. sash helped me out! \o/
no doubt there will be more q's soon tho.
no doubt there will be more q's soon tho.
http://www.thelittlemule.com - tredleys and caffeine
http://www.dubstep.com.au - aussie dubstep forums
http://www.dubstep.com.au - aussie dubstep forums
Re: Code Monkies
sifnt know 'chut up'.
myspace / too much! / photos (flickr) / photos (tumblr)
aroes wrote:promising, but lost me at offensive mid range snarl
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
php, actually.huge wrote:anyone in here nifty with mysql?
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
Re: Code Monkies
jbs wrote:Is that a cross between "shut up" and "i'll cut you"?
-
- Posts: 5
- Joined: Thu Jul 24, 2008 2:09 pm
Re: Code Monkies
G'day. First time caller long time listener.
About to go for a job interview as a C++/Java Developer for a company using custom a financial markets trading system. What kind of $$$ would you be asking/comfortable with given a recent Comp Sci degree and 12months non-code monkey engineering experience.
Interview is in 90mins so asap feedback would be lovely.
Adios.
About to go for a job interview as a C++/Java Developer for a company using custom a financial markets trading system. What kind of $$$ would you be asking/comfortable with given a recent Comp Sci degree and 12months non-code monkey engineering experience.
Interview is in 90mins so asap feedback would be lovely.
Adios.
Re: Code Monkies
6.3. Running On Mac OS X
On Mac OS X, navigate to the MySQL GUI Tools installation directory and double-click on the application you wish to start.
Note
Note: There is no Mac OS X version of MySQL Migration Toolkit.
MySQL fail.
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
mysql bigger fail.lynt wrote:6.3. Running On Mac OS X
On Mac OS X, navigate to the MySQL GUI Tools installation directory and double-click on the application you wish to start.
Note
Note: There is no Mac OS X version of MySQL Migration Toolkit.
MySQL fail.
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
it going to be learjets and cristal or shekels and peanuts.market_rates wrote:About to go for a job interview as a C++/Java Developer for a company using custom a financial markets trading system. What kind of $$$ would you be asking/comfortable with given a recent Comp Sci degree and 12months non-code monkey engineering experience.
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
- SoulWhiteMan
- Posts: 1887
- Joined: Mon Feb 07, 2005 8:03 pm
- Location: Melbourne
- Contact:
Re: Code Monkies
is it possible to create a professional page using software?
My mother has started her own business consulting company and basically said "Luke, you know a thing or two about computers, make my web page."
Is this even possible?
I'm pretty nifty using all software applications, I have a knack for picking them up quickly - therefore is it possible to create my mums website?
If so, which software prog should I use?
If not, which one of you lovely people want to create my mum's website - please PM me with some mates-rates
Thanks and kind regards
Luke
My mother has started her own business consulting company and basically said "Luke, you know a thing or two about computers, make my web page."
Is this even possible?
I'm pretty nifty using all software applications, I have a knack for picking them up quickly - therefore is it possible to create my mums website?
If so, which software prog should I use?
If not, which one of you lovely people want to create my mum's website - please PM me with some mates-rates
Thanks and kind regards
Luke
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
dreamweaver is the best of the (wysiwyg) bunch that i've seen or used.
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
- a1studmuffin
- Posts: 1241
- Joined: Mon Feb 28, 2005 9:59 pm
Re: Code Monkies
Argh... I've been in this situation before. My advice is to try and nail down EXACTLY what she wants before you even start (all pages + content typed up, plus sketches on paper of what it should look like, descriptions of any special functionality etc.) If she basically just wants a web-based business card/information leaflet it'll be pretty simple, although you'd have to question the value of it - if she's looking to drum up business she'd probably be better just registering with yellow pages etc. If she wanted to do something that she could update regularly, I'd back the hell away.SoulWhiteMan wrote:My mother has started her own business consulting company and basically said "Luke, you know a thing or two about computers, make my web page."
- apophenian
- Posts: 1396
- Joined: Tue Jul 12, 2005 9:13 pm
- Location: The mitford mansions
- Contact:
Re: Code Monkies
I agree with a1studmuffin about getting your requirements nailed down as tightly as possible, otherwise you could keep going back and forth forever!
Mind you, if she DOES want something she can update regularly, I have found a cms like silverstripe http://www.silverstripe.com/ fairly easy to set up and get running.
Mind you, if she DOES want something she can update regularly, I have found a cms like silverstripe http://www.silverstripe.com/ fairly easy to set up and get running.
- apophenian
- Posts: 1396
- Joined: Tue Jul 12, 2005 9:13 pm
- Location: The mitford mansions
- Contact:
Re: Code Monkies
For anyone who is interested, the founder of the GNU Project, Richard Stallman is doing a talk in melbourne on the 8th of October:
http://www.cs.mu.oz.au/info/seminars/20 ... llman.html
http://www.cs.mu.oz.au/info/seminars/20 ... llman.html
Re: Code Monkies
NOTE: For the non programmers, some exegesis may be necessary: when a programmer starts to learn a new language, a typical first exercise is to program the computer to display the message "Hello World".
---------------
A compilation of *Hello World programs* designed by
various categories of *developer* follows.
High School/Jr.High
===================
10 PRINT "HELLO WORLD"
20 END
First year in College
=====================
program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
======================
(defun hello
(print
(cons 'Hello (list 'World))))
New professional
================
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message);
printf("\n");
}
Seasoned professional
=====================
#include <iostream.h>
#include <string.h>
class string
{
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('\0')) {}
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}
string &string:perator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}
int main()
{
string str;
str = "Hello World";
cout << str << endl;
return(0);
}
Master Programmer
=================
[
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:rintSz(LPWSTR pwszString)
{
printf("%ws\n", 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->rintSz(wcsT);
Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);
// Tell OLE we are going away.
CoUninitialize();
}
return(0);
}
Apprentice Hacker
===================
#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV >= 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";
print (FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}
1;
Experienced Hacker
===================
#include <stdio.h>
#define S "Hello, World\n"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}
Seasoned Hacker
===================
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
Guru Hacker
===================
% cat
Hello, world.
^D
New Manager
===================
10 PRINT "HELLO WORLD"
20 END
Middle Manager
===================
mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello, world."?
I need it by tomorrow.
^D
Senior Manager
===================
% zmail jim
I need a "Hello, world." program by this afternoon.
Chief Executive
===================
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout
-----------------
---------------
A compilation of *Hello World programs* designed by
various categories of *developer* follows.
High School/Jr.High
===================
10 PRINT "HELLO WORLD"
20 END
First year in College
=====================
program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
======================
(defun hello
(cons 'Hello (list 'World))))
New professional
================
#include <stdio.h>
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message);
printf("\n");
}
Seasoned professional
=====================
#include <iostream.h>
#include <string.h>
class string
{
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('\0')) {}
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}
string &string:perator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}
int main()
{
string str;
str = "Hello World";
cout << str << endl;
return(0);
}
Master Programmer
=================
[
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:rintSz(LPWSTR pwszString)
{
printf("%ws\n", 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->rintSz(wcsT);
Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);
// Tell OLE we are going away.
CoUninitialize();
}
return(0);
}
Apprentice Hacker
===================
#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV >= 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";
print (FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}
1;
Experienced Hacker
===================
#include <stdio.h>
#define S "Hello, World\n"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}
Seasoned Hacker
===================
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
Guru Hacker
===================
% cat
Hello, world.
^D
New Manager
===================
10 PRINT "HELLO WORLD"
20 END
Middle Manager
===================
mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello, world."?
I need it by tomorrow.
^D
Senior Manager
===================
% zmail jim
I need a "Hello, world." program by this afternoon.
Chief Executive
===================
% letter
letter: Command not found.
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout
-----------------
- apophenian
- Posts: 1396
- Joined: Tue Jul 12, 2005 9:13 pm
- Location: The mitford mansions
- Contact:
Re: Code Monkies
OOps, thats from 2004!!apophenian wrote:For anyone who is interested, the founder of the GNU Project, Richard Stallman is doing a talk in melbourne on the 8th of October:
http://www.cs.mu.oz.au/info/seminars/20 ... llman.html
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
best support article ever? has to be up there.
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
- huge
- old boy
- Posts: 7368
- Joined: Fri Nov 03, 2006 12:36 pm
- Location: the rings around saturn
- Contact:
Re: Code Monkies
outsource it to pakistan for peanutsSoulWhiteMan wrote:is it possible to create a professional page using software?
My mother has started her own business consulting company and basically said "Luke, you know a thing or two about computers, make my web page."
Is this even possible?
I'm pretty nifty using all software applications, I have a knack for picking them up quickly - therefore is it possible to create my mums website?
If so, which software prog should I use?
If not, which one of you lovely people want to create my mum's website - please PM me with some mates-rates
Thanks and kind regards
Luke
http://www.rentacoder.com
http://www.elance.com
srly.
http://www.thelittlemule.com - tredleys and caffeine
http://www.dubstep.com.au - aussie dubstep forums
http://www.dubstep.com.au - aussie dubstep forums
- system
- let the hustlers play
- Posts: 10126
- Joined: Thu Nov 25, 2004 3:27 pm
- Location: the leave garden
Re: Code Monkies
DRS wrote:It’s uplifting while we drift through time,
‘cause we keep pushing the vibe.
Re: Code Monkies
Win!