Check out
http://www.comeaucomputing.com/tryitout/
Monday, May 10, 2010
Labels: C/C++ 0 comments
Friday, April 9, 2010
Yesterday I was reading “Design Patterns: Elements of Reusable Object-Oriented Software” book and found an interesting concept hence just wanted to share... Being in C++ for years, I have never had a chance to work with State Pattern; well its ok there is always room for improvement.
With no further ado, here it is…
Consider a case where you want to change an Object’s Class during Run-Time. This example could explain the need for it:
If you have an account, and don't use the account for a long time, or close it, it may change to a closed account. The information you have in a closed account may be very different from that in an open account. There may be some shared information, primarily the id of the account. Implementation would be base class of account, with two inherited classes, open and closed account. Now it would be useful to be able to change an open account to closed account (Change type) at runtime without having to do extra work. It should be possible to implement invariants as to what transitions are possible. Open to Closed but not Closed to Open.
State Pattern comes handy in solving such problems. When you find some free time, read more at State Patterns! If you are new to Design Patterns and want to learn more, the above said book is the best bet.
Labels: C/C++ 0 comments
Written by
MzClaws
at
8:16 AM
People with uncommon names don't expect perfect pronunciation the first time they meet someone, but they're probably impressed when they encounter it. Get a jump on your next business meeting or speaking opportunity with HearNames.com, along with another pronunciation resource.
Check out Hear Names
Labels: Cool Sites 0 comments
Tuesday, February 23, 2010
Friends,
It has been quite some since I shared something useful. Here it is…
Disclaimer:
The piece of code I give here is a Black Hat SEO hack and I take no responsibility if you use it for spamming purposes. You can use it to spam though but do NOT credit me :)
With no further ado, let’s begin!
If you are a blogger or Black Hat SEO Enthusiast, you would have wanted to blast comments on more than 1Lac blogs in literally no time, yeah? (If you are new to Blogging and ask WHY I would want to comment on that many blogs then the simple answer is – BACKLINKS. Yeah! When you comment on someone’s blog post, you have the option to leave your Blog/Website URL there thus getting a FREE, One-Way Backlink)
Here is the code for you… I hope that I have given enough comments for even beginners to understand and also I have used fake details so do not try to spam me back using this script haha.
Obviously, I have coded this in PHP - cURL. I just started learning cURL library and thought why not try something to SPAM others. The result is this little devil... I mean the script
$postfields = array();$postfields["action"] = "submit";$postfields["author"] = "Bhavani";$postfields["email"] = "Bhavani_is_a_spammer@gmail.com";$postfields["url"] = "http://www.BhavaniKannan.com/";$postfields["comment"] = "WoW! What a cool post. I am sure gonna bookmark this.";$postfields["comment_post_ID"] = "123";$postfields["_wp_unfiltered_html_comment"] = "0d870b294b";//Url of the form submission$url = "http://www.SomeBlogThatDoesNotExist.com/blog/suggerer_site.php?action=meta_pass&id_cat=0";$useragent = "Mozilla/5.0";$referer = $url;//Initialize CURL session$ch = curl_init($url);//CURL optionscurl_setopt($ch, CURLOPT_POST, 1);//We post $postfields datacurl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);//We define an useragent (Mozilla/5.0)curl_setopt($ch, CURLOPT_USERAGENT, $useragent);//We define a refferer ($url)curl_setopt($ch, CURLOPT_REFERER, $referer);//We get the result page in a stringcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//We exits CURL$result = curl_exec($ch);curl_close($ch);//Finally, we display the resultecho $result;?>
How to use this?
Make a .php script out of the above code I have given and host it in your server. Point the hosted URL at your web browser and there you go… “Someone got a SPAMMy comment on their blog” J
Tested and Validated by me both in my Local Host and Web Host. I use LAMP at home. No matter what you use – LAMP, XAMP or WAMP just make sure you have the cURL library balue set ON (value=1) for this script to run.
Also, try variations by having a list of URL’s in an EXCEL sheet where you want to make a comment. Instead of passing one single URL using the $url variable, make your script read the .XLS sheet and spam on… I mean comment on all those victim blogs.
I hope you find this useful J
Next: I am now in the process of making a Twitter bot that will automatically add friends, send auto tweets, etc. I know there is one such tool available in the Market but it costs hell a lot ($199). I am planning to create a remake of it with minimal yet essential features and make it available for free. The use of my Twitter bot would be to increase my CTR (Click Through Rate – Refer Wiki for more) and also to bring in more traffic to my site.
Have a great day guys!
Labels: Development 0 comments
Subscribe to:
Posts (Atom)