76

(25 replies, posted in Programming)

Quessing compiler like Codewarrior and using C...or maybe Java

If you read through the developement links I posted above, you may get a better idea of what is involved.

I'm also wondering WHY you would code on one platform for another....how the heck would you test it???

77

(11 replies, posted in General discussion)

Hello, looks good...

...to bad you removed the credit to Rickard (developer)....

78

(25 replies, posted in Programming)

for the Record- under the hood of OX-X is FreeBSD.

Best place to start is apple itself:
http://developer.apple.com/

and tools:
http://developer.apple.com/tools/macosxtools.html

http://developer.apple.com/documentatio … TP30000415

79

(5 replies, posted in Programming)

Rickard wrote:

You can have a look at the code in admin_index.php that shows the load.

Thanks Rickard, I did peek at it, slightly different as this one seems to check for Win OS

Frank: I double checked and made two quick files:

http://www.phpmywebthing.com/addons/temp/sload.php

which runs ita couple ways- see text...

-----------------------------------------------------------------
and this one:
http://www.phpmywebthing.com/addons/temp/sload_raw.php

which is only the following code:

<?php
        if(PHP_OS != 'WINNT' && PHP_OS != 'WIN32') {
            if(file_exists('/proc/loadavg') ) {
                if ($fh = @fopen( '/proc/loadavg', 'r' )) {
                    $data = @fread( $fh, 6 );
                    @fclose( $fh );
                    $load_avg = explode( " ", $data );
                    $server_load = trim($load_avg[0]);
                }
            } else {
                $data = @system('uptime');
                preg_match('/(.*):{1}(.*)/', $data, $matches);
                $load_arr = explode(',', $matches[2]);
                $server_load = trim($load_arr[0]);
            }
        }
        if(!$server_load) {
            $server_load = 'N/A';
        }
?>

and it is printing out the line. It is running the else branch.


-------------------------------------------------------------------------

OK- figured it out, it is the @system function (or @passthru if used) that is outputing the string. RTFM I guess http://us3.php.net/manual/en/function.system.php

Change to @exec and is fine... smile

Which is what Rickard has smile

Thanks all....

80

(5 replies, posted in Programming)

Hey folks,
I came across a little script for doing server load and it works great. Problem is it is outputing a text line that is displaying out of place. I load some stuff into variables, then dump the variable when done. Problem is this "text string" is showing up from within the function, and not down where I echo the return...

Example: http://www.phpmywebthing.com underneath center output is string:
10:45am up 31 days, 14:38, 0 users, load average: 2.33, 2.56, 2.86

Question- I can't seem to spot where the string is being echo'd / output other than the return of the function. Any help appreciated...

Here is the function:

// Get The Server Load
function get_ServerLoad()
    {
        if(PHP_OS != 'WINNT' && PHP_OS != 'WIN32') {
            if(file_exists('/proc/loadavg') ) {
                if ($fh = @fopen( '/proc/loadavg', 'r' )) {
                    $data = @fread( $fh, 6 );
                    @fclose( $fh );
                    $load_avg = explode( " ", $data );
                    $server_load = trim($load_avg[0]);
                }
            } else {
                $data = @system('uptime');
                preg_match('/(.*):{1}(.*)/', $data, $matches);
                $load_arr = explode(',', $matches[2]);
                $server_load = trim($load_arr[0]);
            }
        }
        if(!$server_load) {
            $server_load = 'N/A';
        }
        return $server_load;
    } 

81

(2 replies, posted in PunBB 1.2 show off)

Nice-
but sad that you removed credit to Rickard sad

82

(11 replies, posted in PunBB 1.2 discussion)

Best way is to install it and play....only takes a couple minutes..

83

(5 replies, posted in General discussion)

Rickard wrote:

There's nothing sexier than girls who can sing.

Except maybe if you throw a 12-string over her shoulder smile

http://www.middleground.us/addons/temp/lita_01.jpeg
http://www.middleground.us/addons/temp/lita_02.jpeg

84

(1,382 replies, posted in General discussion)

Helen Hunt

85

(1,382 replies, posted in General discussion)

tornado

86

(1,382 replies, posted in General discussion)

trouser

87

(1,382 replies, posted in General discussion)

iBook

88

(4 replies, posted in PunBB 1.2 show off)

I get:
An error was encountered
Error: Unable to connect to MySQL server. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11).

this is after the need to unblock popups for the site, and going through the flash intro....

(....mg doesn't understand why people just don't post the link to the forum....unless looking for page hits....)

89

(6 replies, posted in PunBB 1.2 show off)

Not sure, what version of Netscape...??

There are issues with older versions of Netscape that do not support external style sheets- if that is the case- best upgrade as not wasting time on "old stuff".

Looks fine in Mozilla, Firefox, Safari, IE, Chimera, all on Mac or Win.

90

(9 replies, posted in General discussion)

ameenullah wrote:

Can you pls mail me the details about it.
I just want to go for new! Then I thought, its better to take care of existing one than going for new!

Its better to Maintain rather than Creating New!
What you say?

It is just a parked domain name, no website or anything. The guy above was sent an email, haven't heard anything, but I do have to give him a chance. I'll post if sucess / fail in a day or so.

91

(9 replies, posted in General discussion)

sbinz wrote:

I WANT IT!@!@! PLEASE GIVE IT TO ME!!!!

MY EMAIL: asiangangz@yahoo.ca
how to contact you?

Email on its way to you with information..

92

(1,382 replies, posted in General discussion)

Jeff ??

93

(19 replies, posted in PunBB 1.2 discussion)

Rickard wrote:

A domain sounds like a good idea. Punres.org?

Thats what I was thinking.... done....

Jansson- just want to help here...(consider my donation smile )
I have the domain punres.org (you can have it when you want it- I just ordered to get it moving).
As soon as it is added, I'll get the domain setup in plesk and get the nameservers pointed there.

If you can email me, i'll send all the info for plesk login and account control. Hopefully it will all be resolved by the time you finish the standalone code....

94

(19 replies, posted in PunBB 1.2 discussion)

do you need a domain for just punres?

95

(19 replies, posted in PunBB 1.2 discussion)

Jansson, since you are down, if you want let me know and I'll set you up and you can at least get the nameservers pointed there. We can worry about the B/W space later, I've got plenty of room and recently unloaded phpCOIN of my setup- which was almost 4GB B/W.

96

(19 replies, posted in PunBB 1.2 discussion)

sorry to here, very worthy effort...

I can offer you some space for free on my setup, I have a small webhosting thing to sell off some extra bwidth and space...as noted above- what B/W and space do you need.

I'm funded with or without sales so I'm sure it will be there...

97

(17 replies, posted in Feature requests)

No problem- just thought I'd throw it out there.

98

(1,382 replies, posted in General discussion)

unreal

99

(17 replies, posted in Feature requests)

Rickard wrote:

Ok. I just didn't get the part about 0,1,2,3. You can't have that many different flags. One for earch binary digit, i.e. 1, 2, 4, 8, 16, 32, 64 and 128.

Like a good reader, I started in the other thread and it said read this one first.....and then came across this. If you need a visual on this, let me know- I use 8 and 16 bit binary for settings (16 values for one integer field)- encode to integer for storage, decode to binary for checks and forms...works great...

Think of zero as 00000000 and 255 as 11111111 - each binary works as a flag. throw in an array an good to go.

100

(1,382 replies, posted in General discussion)

enlarge