Show us your desktop

Luminary
Posts: 5,143
Joined: 2002.04
Post: #91
I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cpp Cry
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #92
OneSadCookie Wrote:I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cpp Cry
Splitting up source into multiple files and indenting is for wimps Wink
Quote this message in a reply
Moderator
Posts: 592
Joined: 2002.12
Post: #93
OneSadCookie Wrote:I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cpp Cry


Maybe that is where we are all going wrong. Instead of spending time making all the source look pretty we should just code.
Quote this message in a reply
Member
Posts: 110
Joined: 2002.07
Post: #94
remeber im a warrior :-)

but now its less worst. Next games are better, but.. i dont think this affect the player :-)
Quote this message in a reply
Member
Posts: 196
Joined: 2003.10
Post: #95
Speaking of next games, what are you working on now, Dan?
Quote this message in a reply
Member
Posts: 110
Joined: 2002.07
Post: #96
------------ [Image: OldLady2.gif] ------------
" It's a secret to everybody "
Quote this message in a reply
Moderator
Posts: 916
Joined: 2002.10
Post: #97
OneSadCookie Wrote:I cried when I had to send Dan a crash log for Jammin' Racer with the segfault on line 11067 of main.cpp Cry
can you imagine what that must be like to work with another person on in subethaedit Cry
Quote this message in a reply
Member
Posts: 110
Joined: 2002.07
Post: #98
skyhawk Wrote:can you imagine what that must be like to work with another person on in subethaedit Cry
you can ask fccovettt about that ! LOL

but i keep my code simple nad im making a lot of comment and im using some pragma mark to make differents parts

now im using differents file , but im old school coder and im coding like with AmosBasic Smile
Quote this message in a reply
Founder
Posts: 1,138
Joined: 2002.04
Post: #99
>but im old school coder and im coding like with AmosBasic
I hope your next project is MacAmosBasic. Smile
Too many memories (and $$ spent of updates)!

Carlos A. Camacho,
Founder
iDevGames
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #100
I was going to paste my URL but with the number of users on iDG my internet would soon be dead.

deamon.c (directly theived from beej's tutorials)
Code:
/*
** listener.c -- a datagram sockets "server" demo
*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#define MYPORT 4950    // the port users will be connecting to

#define MAXBUFLEN 100

#define BACKLOG 1

int sockfd;

void endofline(int someparam)
{
    printf("\nBye!!!!!!\n");
    close(sockfd);
    exit(0);
}

int main(void)
{
    
    struct sockaddr_in my_addr;    // my address information
    struct sockaddr_in their_addr; // connector's address information
    socklen_t addr_len;
    int numbytes;
    char buf[MAXBUFLEN];
    unsigned int sin_size;
    int new_fd;
    
    signal(SIGINT, endofline);

    if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1) {
        perror("socket");
        exit(1);
    }

    my_addr.sin_family = AF_INET;         // host byte order
    my_addr.sin_port = htons(MYPORT);     // short, network byte order
    my_addr.sin_addr.s_addr = INADDR_ANY; // automatically fill with my IP
    memset(&(my_addr.sin_zero), '\0', 8); // zero the rest of the struct

    if (bind(sockfd, (struct sockaddr *)&my_addr,
        sizeof(struct sockaddr)) == -1) {
        perror("bind");
        exit(1);
    }
    
    listen(sockfd, BACKLOG);

    while(1) {
    sin_size = sizeof(struct sockaddr_in);
    new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size);

    addr_len = sizeof(struct sockaddr);
    if ((numbytes=recv(new_fd, buf, MAXBUFLEN-1 , 0)) == -1) {
        perror("recvfrom");
        exit(1);
    }

    //printf("got packet from %s\n",inet_ntoa(their_addr.sin_addr));
    //printf("packet is %d bytes long\n",numbytes);
    buf[numbytes] = '\0';
    //printf("packet contains \"%s\"\n",buf);
    
    
    printf("Taking screenshot %d%d%d%d%d for %s\n", random()%10, random()%10, random()%10, random()%10, random()%10, buf);
    system("screencapture -x -C -tjpg /Users/ed/Sites/tmp.jpg");
    
    send(new_fd, "sup d000d", 9, 0);

    close(new_fd);
    }

    close(sockfd);

    return 0;
}


something.php
Code:
<html>
<head>
</head>
<body>

<?php

error_reporting(E_ALL);

/* Allow the script to hang around waiting for connections. */
set_time_limit(0);

/* Turn on implicit output flushing so we see what we're getting
* as it comes in. */
ob_implicit_flush();

$address = '127.0.0.1';
$port = 4950;

if (($socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) < 0) {
   #echo "socket_create() failed: reason: " . socket_strerror($sock) . "\n";
}

$result = socket_connect($socket, $address, $port);
if ($result < 0) {
   #echo "socket_connect() failed.\nReason: ($result) " . socket_strerror($result) . "\n";
} else {
   #echo "OK.\n";
}

$msg = $_SERVER['REMOTE_ADDR'];
socket_write($socket, $msg, strlen($msg));

#echo "Reading response:\n\n";
while ($out = socket_read($socket, 1)) {
   #echo $out;
}

#echo "Closing socket...";
socket_close($socket);
#echo "OK.\n\n";

echo "<img src=\"tmp.jpg\" alt=\"stuff\"></img>";

?>

</body>
</html>

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Apprentice
Posts: 15
Joined: 2002.04
Post: #101
You can guess once which key has become my favorite... Thanks for Exposé, Apple!

[Image: screenie01.jpg]

For the record: She's just a good friend and a very sweet person. (And no, I wasn't the photographer Wink )
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #102
I need to go to Switzerland Rasp

My current desktop (subject to change in the future):

[Image: desktop3.jpg]

"When you dream, there are no rules..."
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #103
my deskyop. I even had to tile a black image since OSX didnt let me chose a black background
[Image: picture13lc.png]

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Member
Posts: 78
Joined: 2004.06
Post: #104
^
|


I think I recognize half those icons, its wierd you can't get just a black background *remebers classic*. Glad to see that I'm not the only one with EV Nova lying around... Wink

When in doubt ... read the Read Me
10.5.6 | MacBook Pro 2.5x2 | 4 GB RAM | GeForce 8600M GT
Quote this message in a reply
Moderator
Posts: 449
Joined: 2003.08
Post: #105
* EvolPenguin raises hand for the EV Nova clan Wink

Alex
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Show me the money Carlos Camacho 13 6,199 Nov 12, 2008 06:17 PM
Last Post: Carlos Camacho