News

 

If you still have Windows 7 and want to make Windows 7 look like Windows without installing Windows 8 then look at this tutorial. http://www.askvg.com/download-windows-8-rtm-theme-for-windows-7/

Follow the instruction and you can make your Windows 7 look like Windows 8.

Note:- Remember that I have found this trick. If you have any question then post it on given link and I am sure they will help you.

 

Thanks for read my post Smile


 

When you have installed Visual studio update 4 you still see there is no template for MVC 5. For now you need to install ASP.NET and Web Tools 2013.1 Read this post for more information http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx

 

You can install it through WPI. the windows after installation look like this.

11

Now visual studio 2012 (in my case express) will show you template for MVC 5.

12

 

Thanks for read my post Smile


 

Visual studio have now supported Nodejs programming. http://www.hanselman.com/blog/IntroducingNodejsToolsForVisualStudio.aspx


 

If you want to use typescript language in your Visual studio 13 and it doesn’t work for you then don’t be frustrated. There is no reason to wait for fix.

 

Now you can try these other way to compile your Typescript.

1. If you wish you can use Sublime text. There is a package Called Typescript and Better Typescript. it’s gave you syntax highlight to compile. everything will be done instantly.

2. Another good thing is Microsoft webmatrix. If you are working on mvc project then open the same directory in webmatrix. webmatix will automatically compile your typescript files.

3. There is a feature in Webstorm and Phpstorm for typescript. You can compile your typescript in that tool also.

Typescript also can be compiled through NodeJs pacakages NPM.

 

Thanks for read my post Smile


 

When you install a nuget package in your project then Visual studio cached it for you for future purpose. If you live offline few time you can add the this cache directory as your nuget source.

For see the folder where nuget cached then just go to

Tools > options > Package manager > source > Cached packages > browse. You can add this cached folder as source.

 

11

 

For use nuget package without Visual studio you can try this trick.

 

open this in your explorer

C:\Users\{yourusername}\AppData\Local\NuGet\Cache

Now rename the file as described here.

for example bootstrap.3.0.2.nupkg to bootstrap.3.0.2.rar

open the rar and see the content folder. this folder contain the assembly/library that nuget install in your project.

Smile


 

In sublime text 3 if you are unable to save your file then try this trick.

open Settings > user and paste

"atomic_save": false

Now tried to save the file. It will working from now Smile


 

Firefox 28 Night 64bit

firefox







Chrome 33 Canary

chrome







Windows 7 based IE11 64 RTM

internet_explorer


 

Update 4 for visual studio 2012 will bring Razor 3 and MVC 5 support within VS12.


 

UPDATED 6 JANUARY 2014

If you are installing .net connector in your PC then it’s registered the assembly in machine.config. Now if you want to run a single asp.net website you need to have Mysql.Data dll in your project no matter you use Mysql or any other kind of database connectivity.

After time by time you make new project, new version of mysql connector come (.net connector is opn-source and active in development). Soon you come back to make a modification on project that you made earlier now you need to upgrade the project. Nowadays if you are using Nuget package then nuget will take care of your mysql connector automatically.

When you install .net connector and add the reference then most of time it’s not matched with the version that is available on server. You can deploy the bin to solve this issue. I have written a post earlier to make fix the mysql issue MySql.Data.MySqlClient version mismatched

 

Here is the exception and most annoying problem that mysql connector make for developer.

Suppose for example I just create a website ( in webmatrix 3) put my index.cshtml and now see what it preview for me.

Capture

This means I need to add the mysql.Web even I don’t use any kind of database. I need to do every asp.net mvc project no matter they use mysql. it’s problematic when we use older .net  mysql connector in some of my project.

If you have trouble like this simply use nuget and say Bye bye to this trouble.

Smile

Related Post

Nuget is not installed or out of date


 

Few days ago I migrate a project to MVC 4 and suddenly I have seen that MVC project’s cshtml file is no longer working. The problem happen because my project is now based on Razor 3 RC and VS12 doesn’t even have support it. (Remember that VS team will ship support in VS update 4). My migration update it to Razor 3 (which is not related to MVC 4, MVC 4 used old version of Razor 2).

 

So how to fix the problem. Since VS update 4 in development and MVC 3 support exist in both old Version of VS (10,12) then better to migrate back our Razor to old version so we can use our project in VS 10 or 12.

If your project have Razor 3 and it seem that Syntax highlighting doesn’t work for you then I suggest you to try this Nuget package https://www.nuget.org/packages/UpgradeMvc3ToMvc4

Remember that this will not be succeed. What you need to do is delete package folder in your project and now open the packages.config remove all entry of package now.

 

Now Run this command PM> Install-Package UpgradeMvc3ToMvc4

If this is failed then see what thing make error in console. simply remove the reference and try again. Now run it and see this will work.

 

After run this you will see that WebGrease Dll have a version number issue. Simply update it to version 1.5.2 and now you have ready your project to run it in .net 4. If you do bin deployment then you don’t need to have installed MVC 4 on server either.

Remember that MVC 5 is based on .net 4.5 which simply means you can’t run it in VS10. until VS12 update 4 MVC 5 cshtml page will be work as simple html pages (syntax highlighting and intellisense).

Smile

Thanks for read my postWinking smile


 

[This post is about experiment & imagination]

From Windows XP (ever last OS I tried) I have seen a feature that is about send file to pen drive and make shortcut on Desktop. In XP, Win7 (Win8 have this too, not removed) just select the file right click > send to and you can send this file to many places. In my menu it’s show me Skype because I have installed it. this skype confirm that we can add our own app here to make it more easy for user to send file in our app.

Untitled1

Nowadays Many people use Cloud or online site to store the file. In case of html5 drag and drop you need to have site opened and have opened that page which is about file upload. You need to select all  and drag and drop.

after drag and drop file is simply uploaded to server and site show you on list (if no error happen). but this file upload is seriously not worthy since I have to open the site when I do this operation.

 

Through this post I want to describe a feature that can make this thing better.  This API is simply called SASS FILE UPLOAD API Through This API when you surf the site and come into file upload page then the page will tell you that we also have SASS FILE API support. Enable it for better result.

 

How this work Smile

This API feature are activated on 2 basis.

1. Feature are disabled by default on site (or you can change it if it’s not)

2. This API allow specific site to upload the files. Files upload may have some rule. For example (minimum or maximum size of file to uploaded, which format the site allowed you to upload). In case of resume site you will be allowed to use .doc (according to code of site)

 

How browser recognize that Site have SASS service.

In HTML source of  the site, the code have a meta tag similar to this

<meta name=”sass-upload-api” path=”/upload.json”/>

Remember that upload.json is one file that has define the value of many settings

{
  "cookie_name": "ck_file",
  "maximum_allowed_perday": 24,
  "allowed_file_extensions","*.png,*.jpg,*.jpeg,*.gif",
  "method": [
      {
          "get": "file/get",
          "routing":"/file/get/{fileName}"
      },
      {
          "post": "file/post",
          "routing":"/file/post/{fileName}"
      },
      {
          "delete": "file/delete",
          "routing":"/file/delete/{fileName}"
      },
        {
          "put": "file/put",
          "routing":"/file/put/{fileName}"
      },
       {
          "all": "file/all",
          "routing":"/file/all/{fileName}"
      }
   ]
}

cookie name is simply a cookie which should be stored in browser and define in json. we define the cookie_name so we can easily share then with service in Windows system. This cookie will be accessible with the service so it’s security based safe. other cookie will not be shared.

 

The cookie will be post,put, get from this location. The all location will be simply about showing a whole list of file. This will gave a treeview kind of json to show the directories on sever.

 

for example example.com if you have activated the API with this site then you will seen a send to option in your explorer.exe when you send you will got a windows open which folder you want to use to send the file.

The windows will also describe the limit and how much you can upload. This thing never required site to opened.

When you upload the file this will be uploaded through FTP protocol. FTP protocol are better for performance.

 

How this API make thing faster.

Suppose you want to ask a question and want to post image. you just do it and get it ready when you open stackoverflow.com now stackoverflow will only tell you which file you want to put on your current question that you asking for.

second use is about people use cloud app.

 

There is no need of drag and drop anymore. we just need to do it without drag and drop it. we doesn’t need to open the site either.

Smile This thing is still in experiment level. I will update this post when I got some progress on this API.


 

When Visual studio 2010 released back in 3 year ago I soon show a demo to some people that how Dark mode of Visual studio will be great idea. Soon we got some theme plugin  which make us able to modify the look of visual studio.

 

http://studiostyl.es/ already provide lots of wonderful color scheme that make you able to modify the theme. These themes are also work in webmatrix 2.  Webmatrix 2 have a plugin for themes that is made by Yishai Galatzer that is awesome for webmatrix 2.

 

In Visual studio 2012 we got a native dark mode. This means we can configure it without any plugin or requirement of anything. In this post I have a demo to show you how to use Dark mode that is part of Windows 7 (and windows 8 too).

 

Few months ago I show a problem that webmatrix 2 run slow. it’s run better in windows 7 dark mode. Windows 7 dark mode simply refer to right click > personalize > High contrast theme in bottom of windows. This setting make thing a little bit faster.

 

When you have set this you have seen that Visual studio doesn’t react good anymore because it’s color scheme is broken now. What you need now is import any theme from http://studiostyl.es/ When you import this this will look good as this.

 Untitled

This is the demo look of Windows 7 phone Express 2010. It will react same for future version as 2012, 2013. Now see your VS react look dark. Everything is dark now. Your Firefox and IE will not run totally in blackish mode but you can use chrome. Chrome have less effect of dark.

Now if you benchmark it then you will feel that everything that take a long time in loading now run fast.

 

Note :- This is experiments. Remember to have settings backup before apply new theme. All thing I do is make my VS run faster. If you have any trouble or idea please comment it.

 

Thanks for read my post Smile