Page 2 of 2 FirstFirst 12
Results 26 to 40 of 40

Thread: Request a program!

  1. #26
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here is a good one

    Make a program that gets u free Email accounts for a short time!

    Click a button and it gives ya a new email account!

    Lets c how this turns out

  2. #27
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm, I got a website/server thing; I might use it as mail-client.
    I see your point sounds again interesting.
    ~Hermen

  3. #28
    Join Date
    Oct 2008
    Posts
    695
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermpie View Post
    Hmm, I got a website/server thing; I might use it as mail-client.
    I see your point sounds again interesting.
    Thats cuz I thougt bout wut 2 write

  4. #29
    Join Date
    Feb 2009
    Location
    Nebraska
    Posts
    68
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Buckleyindahouse View Post
    Sockets, Have fun with that in c# .
    This ought to be interesting.
    If both ends are in C# forget about the sockets and go with the WCF, much better solution, and quicker to write too. It can be sockets under the hood, but you never have to worry about it.

  5. #30
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    A thanks for your reply!
    Where does WCF stands for?
    ~Hermen

  6. #31
    Join Date
    Feb 2009
    Location
    Nebraska
    Posts
    68
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermpie View Post
    A thanks for your reply!
    Where does WCF stands for?
    Windows Communication Foundation.

    You can think of it as a layer of software that takes all the cruddy details of working with a communications channel and hides it away from you.

    As an example, I have a Delphi application that must talk to a server to get updated data. Say I want the client to get the server version number to see what features it supports. In previous versions I would put a string into NameValue pairs in a TStringList:

    Code:
    Command=GetServerVersion
    ClientID=ClientVersion
    UserID=SomeGuysName
    Then I'd copy that out as CommaText to put into a TCP packet to send to the server:

    Code:
    TCP packet contents: "Command=GetServerVersion,ClientID=ClientVersion,UserID=SomeGuysName"
    The server would reverse that process, decide what to do and then send back the appropriate data:

    Code:
    TCP packet contents: "Command=GetServerVersion,VersionNum=1.0.0.0"
    The client would dump that back into a string list, then use the Name[] property to get the server version back out.

    Pretty cheezy now, but it was quite effective when it was written about 6-7 years ago.

    I'm migrating the server to C# now, using the WCF. To do this I just create a class that implements an interface that has a function that I want the client to be able to call, then I add some attributes (the stuff in square brackets) to set things up to work with the WCF. This tells the WCF what functions I want to expose as a service, in this case, just GetServerInfo(), which returns a data type of ServerInfo.

    Code:
        [ServiceContract]
        public interface IServerAppService
        {
            [OperationContract]
            ServerInfo GetServerInfo();     
      }
    
        public class ServerAppService : IServerAppService
        {
          ServerInfo GetServerInfo()
          {
            return new ServerInfo(){ ServerVersion="1.0.0.0", SupportsFoo=true };
          }
        }
    Then we tell it what a ServerInfo is. This is the part that carries the data back down to the client across the communication channel. Again add some properties to tell the WCF what it should expose:

    Code:
        [DataContract]
        public class ServerInfo 
        {
            [DataMember]
            public string VersionNumber;
    
            [DataMember]
            public bool SupportsSomeFeature;
        }
    So that all defines the function call that I can make and what the function returns. All I have to do then is edit a config file to tell WCF how I want to make it available. For my project I tell it to publish it through SOAP so Delphi can import the WSDL, generate the code to call the function, and it's done. From Delphi I just create an instance of the ServerAppService and call the function GetServerVersion and I get back a variable containing VersionNumber and SupportsSomeFeature.

    If want to make it available through an web or secure web connection, it's just a config file change, no recompile. I can set it up to run on whatever TCP connection (without going through HTTP protocol) or even through channels like named pipes. All through the config file with zero code changes.

    Cool stuff, and way easier than it might sound. Also, completely free from Microsoft, just download MSVC# 2008 Express Edition. You should see what they save to put in the pay versions!

  7. #32
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Grippy View Post
    Windows Communication Foundation.

    You can think of it as a layer of software that takes all the cruddy details of working with a communications channel and hides it away from you.

    As an example, I have a Delphi application that must talk to a server to get updated data. Say I want the client to get the server version number to see what features it supports. In previous versions I would put a string into NameValue pairs in a TStringList:

    Code:
    Command=GetServerVersion
    ClientID=ClientVersion
    UserID=SomeGuysName
    Then I'd copy that out as CommaText to put into a TCP packet to send to the server:

    Code:
    TCP packet contents: "Command=GetServerVersion,ClientID=ClientVersion,UserID=SomeGuysName"
    The server would reverse that process, decide what to do and then send back the appropriate data:

    Code:
    TCP packet contents: "Command=GetServerVersion,VersionNum=1.0.0.0"
    The client would dump that back into a string list, then use the Name[] property to get the server version back out.

    Pretty cheezy now, but it was quite effective when it was written about 6-7 years ago.

    I'm migrating the server to C# now, using the WCF. To do this I just create a class that implements an interface that has a function that I want the client to be able to call, then I add some attributes (the stuff in square brackets) to set things up to work with the WCF. This tells the WCF what functions I want to expose as a service, in this case, just GetServerInfo(), which returns a data type of ServerInfo.

    Code:
        [ServiceContract]
        public interface IServerAppService
        {
            [OperationContract]
            ServerInfo GetServerInfo();     
      }
    
        public class ServerAppService : IServerAppService
        {
          ServerInfo GetServerInfo()
          {
            return new ServerInfo(){ ServerVersion="1.0.0.0", SupportsFoo=true };
          }
        }
    Then we tell it what a ServerInfo is. This is the part that carries the data back down to the client across the communication channel. Again add some properties to tell the WCF what it should expose:

    Code:
        [DataContract]
        public class ServerInfo 
        {
            [DataMember]
            public string VersionNumber;
    
            [DataMember]
            public bool SupportsSomeFeature;
        }
    So that all defines the function call that I can make and what the function returns. All I have to do then is edit a config file to tell WCF how I want to make it available. For my project I tell it to publish it through SOAP so Delphi can import the WSDL, generate the code to call the function, and it's done. From Delphi I just create an instance of the ServerAppService and call the function GetServerVersion and I get back a variable containing VersionNumber and SupportsSomeFeature.

    If want to make it available through an web or secure web connection, it's just a config file change, no recompile. I can set it up to run on whatever TCP connection (without going through HTTP protocol) or even through channels like named pipes. All through the config file with zero code changes.

    Cool stuff, and way easier than it might sound. Also, completely free from Microsoft, just download MSVC# 2008 Express Edition. You should see what they save to put in the pay versions!
    Wow, impressive.
    Sounds very interesting I think I do understand you.
    Add me Hermen otter [at] live [dot] nl
    Than we can have a little chit chat about this.
    ~Hermen

  8. #33
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Hermpie View Post
    Wow, impressive.
    Sounds very interesting I think I do understand you.
    Add me Hermen otter [at] live [dot] nl
    Than we can have a little chit chat about this.
    Add me Hermen otter [at] live [dot] nl

    Why do you do that it irks me.
    Just put your full email on the site so it's copy and paste able.

  9. #34
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Buckleyindahouse View Post
    Add me Hermen otter [at] live [dot] nl

    Why do you do that it irks me.
    Just put your full email on the site so it's copy and paste able.
    Spambots crawl the web, so putting regular emails might get you a ton of spam =\

  10. #35
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Widget View Post
    Spambots crawl the web, so putting regular emails might get you a ton of spam =\
    Oh ok. gotcha.

  11. #36
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can still request programs, portabled existing applications or games!
    ~Hermen

  12. #37
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Possible portable/USB photoshop?
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  13. #38
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by anonymity View Post
    Possible portable/USB photoshop?
    Sounds interesting... but a lot of work...
    Pm me a trial link.
    ~Hermen

  14. #39
    Join Date
    Nov 2008
    Location
    Norway, Alesund
    Posts
    924
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by anonymity View Post
    Possible portable/USB photoshop?
    yes. i have seen Portable PS4

  15. #40
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    .. Thinapp ..


Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Request A Program.
    By ShowerThoughts in forum News and General
    Replies: 34
    Last Post: 09-13-2008, 05:21 PM
  2. [REQUEST]Fall For You By Secondhand Serenade [REQUEST]
    By P1nky in forum Music, Movies and TV
    Replies: 0
    Last Post: 08-22-2008, 06:22 AM
  3. [REQUEST]Randoms Updated.[REQUEST]
    By P1nky in forum SRL Site Discussion
    Replies: 18
    Last Post: 04-04-2008, 08:23 PM
  4. [request]Mind Crafter[request]
    By alex s in forum RS3 Outdated / Broken Scripts
    Replies: 6
    Last Post: 04-17-2007, 12:10 PM
  5. [REQUEST]Green Dragon Raper[REQUEST]
    By Zodia in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 04-06-2007, 10:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •