Saturday, March 5, 2016

Visual Studio 2015 and Arabic Charecters Support

Alot of times I need to go through my old projects and try to revive them by giving them a framework facelift along with a little bit of gadgets make up. I had a problem with some of those "wreckage" as the have been written for an Arabic content website. so whenever I load them into the coding environment I ended up having a weird looking characters.

Damn you unicode!
Now, I know it has to do with unicode and stuff. So, logically, what I started to do is to save them into Arabic Windows - Codepage 1256 but I made the matter worse as it appeared to me now that it will not be recoverable later and will stick with those gibberish characters.

What you have to do if you face this problem.

First, you right-click on the file and select "Open With"


From that dialogue box you select Web Forms Editor with Encoding and then you can choose the Unicode for the page to open with.


In my situation I have selected the Arabic (Windows) - Codepage 1256 to open the page and, voila, it opened with normal looking lovely arabic characters.



But that is not it!

I you saved your file now and reopen it you will go back to square 0 and see that it is still having corrupted characters.

What should I do now?

After that you have to save it using Files > Advanced Save Options and now Unicode (UTF-8 with signature) - Codepage 65001 and then Ctrl + S (to save it)

Opening it now make feel touching the rainbow in the morning breeze!!

Enable Web Administrator Tool in Visual Studio 2015

I stumble upon a dilemma in enabling the great Web Administrator Tool in visual studio 2015 which is a no longer an accessible component in Visual Studio 2013 and 2015. The cause of that is that they removed the Visual Studio Development Server from the product.

There was a great article on Microsoft MSDN in how to get it back. As apparent from the too many comments in that post, the ended up with it not working (including me at first). Here are the steps as in the article and below each one I will point out the error.


  1. Open the Command Prompt (not as administrator)
    • I repeat not as administrator
  2. Navigate to the folder where IIS Express is installed on your machine.
    • usually it is in "Program Files\IIS Express"
  3. In the command line spin up a IISExpress site with the following prompt: iisexpress.exe /path:C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:/ASP.NETWebAdminFiles /port:[port] /clr:4.0 /ntlm using the following values for the [param]
    • [port] – any port you have free in IISExpress (I use 8082 in the example below)
    • remove the extra spaces in line with /clr: and /path:
    • remove the quotations marks around /ASP.NETWebAdminFiles
  4. This should launch an IISExpress instance of the Configuration Manager Site
  5. Open your browser
  6. In the URL enter the following http://localhost:8082/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[appPath]&applicationUrl=/
    • [appPath] is the absolute path to the Visual Studio Project folder with the solution file in it.
With this you will have a flawless initiation of Web Administrator Tool.

Xbox One and Windows 10


Now, one of the greatest things having multiple devices interfacing with each other is how Xbox One can connect to the TV and send On-Off command via HDMI cable. Add to that, connecting the Xbox to a set-top box, also via HDMI, will also do the same. So, how this could be an awesome thing? Will have you tried walking into the room, saying "Xbox On" and just admire how your TV turn on directly to show you some Action.

Now, you ask me what do windows 10 had to do with your showing off having a kinect in addition to the previous setup? Well, there you go:

The Xbox application on Windows 10 have many cool features one of which is the ability to sniff around any Xbox connected on your network and give you the ability to connect to it (If it is yours, of course?). Having it connected will give control over the Xbox and you can actually use it as a remote control/Xbox control.  Yeah, certainly you can do that with tons of other ways including the little IR port you have on your mobile or even pressing the red button on the actual remote control, but, in my opinion, nothing beats the feeling of having me doing my stuff on the computer and multitasking everything from the same screen.



Friday, March 4, 2016

Windows 10 Start menu Critical Error fix


Today, and after many months of not being able to catch some time to do my favorite thing of playing Lego® with coding, I was able to catch a break and sat on my windows 10 laptop which announced that a new update had been installed.. that was cool.. for a solid 10 seconds when I hit start menu and it astonished with this critical "error loop"..
Your Start menu isn't working. We'll try to fix it the next time you sign in.
"They" could not fix it..

So, going to my dear friend, Google, I did found out that there are so many like me with this problem and, yes, with so many solution.

To make a long story short:

What did NOT work for me is:

  1. Booting into Safe Mode - which is done by:
    1. Hold the Shift key down while you click Start, Power, Restart.
    2. Once you are in the Windows Recovery Environment, select Troubleshoot, then Advanced options, then Startup Settings, and Restart.
    3. When it restarts, you should see a number of options. Press 5 or F5 for Safe Mode with networking.
    4. Once you sign into your account in Safe Mode, you’re done. Just restart your PC to return to a normal boot.
    5. the end result was the same as I had it before.
  2. Creating another administrative account - which is done by:
    1. Going to Task Manager (Ctrl + Alt + Del)
    2. Starting CMD with administrative privileges
    3. the cmd command
    4. inputting this command net user (username) (password) /ADD followed by this net localgroup administrators (username) /add
    5. The end result was the inability to sign in to that username I made as there was a problem in loading the profile service
What did work for me:
There was some mentioning about third-party apps that might be the culprit ones. I did uninstall my antivirus first - did not work.
What did the trick is uninstalling DropBox thanks to this post.
It did safe the day.. THE day.. but not my day as I wasted my time fixing this and not actually do the stress-relieving coding part of the day.

So I decided to write this post in what ever left from my day to try to save someone's else.