Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Everyone,
I need to write a code that automatically updates itself. For instance, like
YouTube that once had "videos being watched right now" but instead of videos I want that the code to recognize when an update happens to another website, but that automatically...is there a way to do that? Or better of, let say I have two websites, and I want that one website to automatically recognize an update in one of my other websites and then show it.
I'll pay great $ if someone out there is willing to write it for me! - Thanks!
Posted
Updated 9-Mar-11 9:43am
v2

Look buddy, if you looking for someone to write you a code, you are in the wrong place. Try RentAcoder may be?

But if you are up to the challenge and want to do it yourself, I am sure you will get plenty of help. But you need to do it yourself, no one here will be willing to do it for you.

BTW, what you looking is not that difficult to do. There are many application that do that already. All you need is some kind of versioning or way of figuring out something has changed. That all, the rest is, as they call it, History.
 
Share this answer
 
v2
Comments
Manfred Rudolf Bihy 9-Mar-11 16:54pm    
My 5!
I agree with Yusuf.

As your probably did not advanced your progress to much so far, I recommend you get yourself fully aware of the problems of the self-modifying code, see this: http://en.wikipedia.org/wiki/Self-modifying_code#Disadvantages[^].

At the same time, your idea is easy to implement using very different and much more robust approach. You should not use self-modification but certainly modification (or generation) of the code. You simply need an extra tier (possibly on the same computer, it depends on you payload) as your HTTP server. A key here is automatic notification of your other site.
Want to try (for great $ of course :-))?

—SA
 
Share this answer
 
v3
Comments
Manfred Rudolf Bihy 9-Mar-11 16:55pm    
I agree! 5+
Why would anybody want self modifying code for that?
Sergey Alexandrovich Kryukov 9-Mar-11 17:01pm    
Thank you, Manfred.

There are reasons. But it can be justified only for pretty exotic code, when the goal is also quite exotic.

Also, it was relatively need techniques in the dirty work of programming of MS-DOS executables in the form of *.COM files, especially terminate-and-stat-resident, but who do it these days?

There are other cases. IRL most of the cases are due to grave dead-end design mistakes.
--SA
Yusuf 9-Mar-11 17:03pm    
Good Answer SA.
I completely ignored his question about self modifying. I interpreted it he wants to know when something is updated, as opposed to he was to implement 'self-updating' code.
Sergey Alexandrovich Kryukov 9-Mar-11 17:06pm    
Thank you very much, Yusuf,
The fact you ignored a notion of self-modified code is OK, because some really robust solutions should be suggested, anyway. I voted for your answer to show that I agree with your statements (especially about hiring :-)
--SA
Arddy 14-Mar-11 14:03pm    
Man, you guys didn't help nothing... If I would know how to do that I would not post a question here and waist my time...all you have been telling me here that it's easy and analyzing my question, that's it! I was looking for some sort of more approaching ansewer here! And SA how much would you ask for?

Thank you all, anyways!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900