how to Make Cleint / App / EXE/ Visual Basic Auto Update With Script

Introduction:
This tutorial is on how to create an auto update function for a program in Visual Basic.

Notes:
- You will need a website for the latest version to be hosted for download and checking. Or, for testing you can use localhost like I am (I'm using XAMPP).
- If you're using a localhost, only people on your network can use this auto update function.

Steps of Creation:
Before we start we want to create a new form with one button for the update process to begin. we also want to import:

  1. Imports System.IO
  2. Imports System.Net
Step 1:
First we want to get the latest version of the program available which is hosted in a version.txt file on our website/localhost. Let's get the source of that file and compare it to our programs current version...

  1. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  2. Dim src As String = getSrc("http://127.0.0.1/autoUpdater/version.txt")
  3. If (src.Contains(My.Settings.version)) Then
  4. MsgBox("Up to date!")
  5. End If
  6. End Sub
  7. Private Function getSrc(ByVal url As String)
  8. Dim r As httpwebrequest = httpwebrequest.create(url)
  9. Dim re As httpwebresponse = r.getresponse()
  10. Dim src As String = New streamreader(re.getresponsestream()).readtoend()
  11. Return src
  12. End Function
Step 3:
Now that we have the latest version available and have output "Up to date!" if the current programs version is up to date we can make it download the latest file if it is not up to date...

  1. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  2. Dim src As String = getSrc("http://127.0.0.1/autoUpdater/version.txt")
  3. If (src.Contains(My.Settings.version)) Then
  4. MsgBox("Up to date!")
  5. Else
  6. MsgBox("Outdated, Downloading new exe...")
  7. Try
  8. My.Computer.Network.DownloadFile("http://127.0.0.1/autoUpdater/" & src.Replace(" ", "") & "/download.exe", CurDir() & "/updates/" & src & ".exe")
  9. MsgBox("Downloaded, Running...")
  10. Diagnostics.Process.Start(CurDir() & "/updates/" & src & ".exe")
  11. MsgBox("Finished!")
  12. Me.Close()
  13. Catch ex As Exception
  14. MsgBox("Updated file not found...")
  15. End Try
  16. End If
  17. End Sub
We surround the process in a try and catch statement just in case anything fails such as if the program isn't available to download.
Once we have downloaded the file and saved it we run it and close our current program. The final thing to do is to set the version of our program(s)...
Step 4:
To set a version setting for our program you want to go to:
Project > Project Properties > Settings, and create a new String named version and set the value to the current version of the program.

Project Complete!
That's it! Below is the source code to all the files, the directory formats and download to the program...

Auto Update Visual Basic Program:
  1. Imports System.IO
  2. Imports System.Net
  3. Public Class Form1
  4. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  5. Dim src As String = getSrc("http://127.0.0.1/autoUpdater/version.txt")
  6. If (src.Contains(My.Settings.version)) Then
  7. MsgBox("Up to date!")
  8. Else
  9. MsgBox("Outdated, Downloading new exe...")
  10. Try
  11. My.Computer.Network.DownloadFile("http://127.0.0.1/autoUpdater/" & src.Replace(" ", "") & "/download.exe", CurDir() & "/updates/" & src & ".exe")
  12. MsgBox("Downloaded, Running...")
  13. Diagnostics.Process.Start(CurDir() & "/updates/" & src & ".exe")
  14. MsgBox("Finished!")
  15. Me.Close()
  16. Catch ex As Exception
  17. MsgBox("Updated file not found...")
  18. End Try
  19. End If
  20. End Sub
  21. Private Function getSrc(ByVal url As String)
  22. Dim r As httpwebrequest = httpwebrequest.create(url)
  23. Dim re As httpwebresponse = r.getresponse()
  24. Dim src As String = New streamreader(re.getresponsestream()).readtoend()
  25. Return src
  26. End Function
  27. End Class
Version.txt:
  1. 0.2
Website Directory Format:
Root/version.txt in the root of the site which holds the latest version of the program available for download.
Root/0.2/download.exe Contains the downloadable.exe for the version 0.2 of my program ready for download.

If you have a version 2.0 just create the folder appropriately, like so:
Root/2.0/download.exe

How to Disable Blogger Redirection to Local Domains?

If you're running a blog in blogger platform, you should notice, sometimes your site is redirected to local domains. I mean your site is redirected to country specific URL. But it doesn't happen in all countries. Maybe 15 - 20 countries have their own blogger domain. But Google will implement the local domains for blogger blogs in other countries very soon! 

Let's give me an example:


You know the URL of Fahim's Blog is - http://aacfahim.blogspot.com

If you're Italian you will see my site's URL as- http://aacfahim.blogspot.it
A Canadian will see my site's URL as - http://aacfahim.blogspot.ca
An Indian will see my site's URL as- http://aacfahim.blogspot.in


Okay fine! Blogger has its own local domains for different countries. But what's wrongwith this country specific URL? There are a number of problems: 

Your social stats (+1, Likes, Tweets) may fall dramatically due to the variations in domain. 
Your search ranking might be affected. 
If blogger is banned in a country with the help of local domain, your site can't be visited from there! 
Though Google says, they are trying to minimize the negative consequences of hosting blogger. But why are you waiting for Google's effort? You can force local domains to redirect to .com version of your site with a simple code! 



Prevent Blogger's from Redirection:


Officially Google never mentioned any permanent way to stop redirecting. But it said if you type /ncr just after the domain name for example- http://aacfahim.blogspot.com/ncr, then it will not redirect to your local domain. 

And if you want to do this for individual post then it should be like that:
http://aacfahim.blogspot.com/ncr/exaplepage

Anyway, as a blog master your shouldn't let the visitors follow any boring way to prevent redirection. Because you can control the redirection by the code below! Okay let's try:


Make sure you're signed in to your blogger's control panel I mean design or dashboard.
Now go to the template option. (Backup your template if necessary)
Click on Edit HTML. Now you can see the code of your template. 
Hit on the template box and Press Ctrl+F to enable search within the code box.
find the <head> of your template and then copy the code below and place it just below the head tag. (Look at the image below)
Save the template. Done! 


<script type='text/javascript'>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf(&quot;.&quot;));
if (ctld != &quot;.com&quot;) {
var ncr = &quot;http://&quot; + blog.substr(0, blog.indexOf(&quot;.&quot;));
ncr += &quot;.blogspot.com/ncr&quot; + slug;
window.location.replace(ncr);
}
</script>








From now and then your visitors will only be able to visit the .com version of your site. I mean like that: http://aacfahim.blogspot.com


You can also test whether it works or not. Type http://aacfahim.blogspot.it in your browser. But it will redirect you to http://aacfahim.blogspot.com. Also check this for your site. 

Removing the Code:



I don't think it is necessary. For any reason, if you are reluctant to use this code, follow the steps above again. And then at the 5th step, delete the code and save your template. Or if you have a backup of your template, you can also restore it. But deleting the code is much easier. 


What about the Registered/ Custom Domain?


If you blogger blog is registered I mean if you have a custom domain like .com or .org you don't need implement this code. Because the redirection is not applicable for a site with custom domain. 


What happened if blogger is banned in a country?


Naturally when blogger is banned by the Govt. of a country the visitors from that country will not be able to see your site. But they will be able to visit the .com version of your site by using /ncr just after the domain. But if you use the above code in your site, visitors will automatically be able to visit your site! 


I think now you understand the importance of using this code .....  :)

How to log in to administrator account on any Windows PC [Tutorial]

PeregrineX shows on Imgur how to log in to admin account of any Windows PC
2. Once you get to this screen, hold the power button on the computer until it turns off. (no damage will be done)
Once you get to this screen, hold the power button on the computer until it turns off (no damage will be done, trust me).
3. If you did it correctly, you should get this screen. If you get something like “Windows did not shut down correctly” try again. Then select “Launch Startup Repair
If you did it correctly, you should get this screen. If you get something like "Windows did not shut down correctly," try again. Otherwise, select "Launch Startup Repair."
4. Let the repair go through. If you get this window, select “Cancel
Let the repair go through. If you get this window, select "Cancel."
5. When you get this window, click on “Show problem details” Scroll down, and click the link on the very bottom. Notepad will pop up.
When you get this window, click on "Show problem details." Scroll down, and click the link on the very bottom. Notepad should pop up.
6. Go to File/Open and double-click your. “Local Disk” (Mine is D:/ because I have a virtual machine. Yours will probably be C:/)
Go to File/Open, and double-click your "Local Disk" (Mine is D:/ because I have a virtual machine. Yours will probably be C:/).
7. Go to Windows/System32 . Now do EXACTLY as I say, or you MIGHT break the computer. Under “Files of type” select “All files” Scroll down and find “cmd” then make a copy of it in the same folder (Ctrl-C, Ctrl-V). You should get a file named “cmd – Copy” or something like that.
Go to Windows/System32. Now do EXACTLY as I say, or you MIGHT break the computer. Under "Files of type," select "All files." Scroll down and find "cmd," then make a copy of it in the same folder (Ctrl-C, Ctrl-V). You should get a file named "cmd - Copy" or something like that.
8. Find “sethc” in the same folder. This file executes sticky keys. Rename it to “sethc 1
Find "sethc" in the same folder. This file executes sticky keys. Rename it to "sethc 1."
9. Rename your “cmd – Copy” to “sethc” Close notepad, and hit “Finish” to shut down your PC, or just restart it manually.
Rename your "cmd - Copy" to "sethc." Close notepad, and hit "Finish" to shut down your PC, or just restart it manually.
10. Once you get back to the login screen (where it says “Press Control – Alt – Delete” Ignore my background, I don’t have that enabled), press “Shift” 5 times to open up the command prompt.
Once you get back to the login screen (where it says "Press Control - Alt - Delete." Ignore my background, I don't have that enabled), press "Shift" 5 times to open up the command prompt.
11. Next, we need to find out what user is the local administrator for this PC. To do this, type “net localgroup Administrators” and look for any administrator that does NOT have your school/work domain in front of it, followed by a “/ ” As you can see, one of the admins is named “qwaszx” You will probably see a name like this, since schools/workspaces tend to make it a random string of letters and/or numbers to ward off people from entering it.
Next, we need to find out what user is the local administrator for this PC. To do this, type "net localgroup Administrators" and look for any administrator that does NOT have your school/work domain in front of it, followed by a "/." As you can see, one of the admins is named "qwaszx." You will probably see a name like this, since schools/workspaces tend to make it a random string of letters and/or numbers to ward off people from entering it.
12. Now, we need to change that account’s password. Type “net user <ACCOUNT NAME HERE> *” and type the new password twice. It will not show what you’re typing, but your keystrokes are being registered. You can now log in to your admin account! However, schools/workspaces also like to disable the admin account you just changed the password for, so you might not be able to log in. There is a simple fix. If you get that message, go to the extra step below.
Now, we need to change that account's password. Type "net user <ACCOUNT NAME HERE> *" and type the new password twice. It will not show what you're typing, but your keystrokes are being registered. You can now log in to your admin account! However, schools/workspaces also like to disable the admin account you just changed the password for, so you might not be able to log in. There is a simple fix. If you get that message, go to the extra step below.
13. If the admin account is disabled, type “net user <ACCOUNT NAME HERE> /active:yes” You will now be able to log in.
If the admin account is disabled, type "net user <ACCOUNT NAME HERE> /active:yes" You will now be able to log in.
14. You now have full admin rights to the PC. Enjoy!
AGAIN, WE ARE NOT RESPONSIBLE FOR ANY MISTAKES OR DAMAGES TO THE COMPUTER OR NETWORK. DO AT YOUR OWN RISK!

Clash of Clans Universal Unlimited Mod/Hack Updated 18.03.2015

Clash of Clans Unlimited Gems, Gold and Elixir! No Ban! Now with PvP!

You heard it right! We bring you the Mod/Hack of Clash of Clans, currently,  the most trending  game. Tested many times, for stability, this mod is surely going to enhance your level of gaming! Attack other players, and loot their resources. This is a perfect mirror of official server, except that you get everything Unlimited!

  • 3.7 ghz Processor
  • 2 TB Hard Disk

Instructions

  1. Download the given CoC PvP Exclusive APK from link, given below
  2. Install and enjoy :)
Changelog
  1. 15/10/2014 : Servers are given custom names(beta). Memory leaks and some bugs fixed.
  2. 21/10/2014 : Multiple servers sharing same database, so that another server can be used, when one is down, and your game progress remains saved, even after changing server.
  3. 27/10/2014 : New custom server working with latest version
  4. 29/10/2014 : Custom APK provided with Main Database working on multiple servers.
  5. 11/11/2014 : New servers
  6. 12/11/2014 : New Custom APK
  7. 17/11/2014 : Patched to work with latest version of CoC (Android and ioS)
  8. 19/11/2014 : Assigned Elastic IP to the main server
  9. 03/12/2014 : ♪Custom Barbarian Tower and SnowFall added. Its Christmas!! ♥
  10. 06/12/2014 : All Savings related issues fixed. PvE added! Chasethose Goblins! :) 
  11. 25/12/2014 : Universal APK released! :)
  12. 04/01/2015 : “Dual Install”> You can install both original apk and mod apk on phone! Play   them side by side.!
  13. 23/01/2015 : Bringing you townhall 11! :)
  14. 09/03/2015 : PvP added! Enjoy Looting others :)
Direct Download Link

Download: