Read more »
Responsive Web Design for Menu, Image and Advertisements
Read more »
1. Script to Update the Max Buffer Size of AppFabric Cache
AppFabric Cache has a default max buffer size of 8MB. There are certain scenario where we may need this to modify to satisfy our requirements Find below the script to configure the AppFabric Cache Buffer Size. Script below can be used to increase or decrease this preconfigured size.
#Command Line powershell ./UpdateAppFabricCacheBufferSize.ps1 15000000
#Manual Step before we run any script on Poweshell : Set-ExecutionPolicy Unrestricted
Param([int]$maxBufferSize)
Import-Module DistributedCacheAdministration, DistributedCacheConfiguration
Function UpdateBufferSizeInConfig ([string]$configFilename, [int]$maxBufferSize)
{
$xml = New-Object XML
$xml.Load($configFilename)
$transportProperties = $xml.configuration.dataCache.advancedProperties.transportProperties
if ($transportProperties -eq $NULL)
{
$transportProperties = $xml.CreateElement("transportProperties")
}
$transportProperties.SetAttribute("maxBufferSize", "$maxBufferSize")
$xml.configuration.dataCache.advancedProperties.appendChild($transportProperties)
$xml.Save($configFilename)
}
$tempConfigLocation = "c:\config.xml"
Use-CacheCluster
Export-CacheClusterConfig -File $tempConfigLocation
UpdateBufferSizeInConfig $tempConfigLocation $maxBufferSize
Stop-CacheCluster
Import-CacheClusterConfig -File $tempConfigLocation -Force
Start-CacheCluster
2. Script to configure the Named Cache and than Add Users in allowed client account list.
#To add a name cahce and windows account to the Cluster.
function CreateNewCache([string]$NewCacheName)
{
New-Cache -CacheName $NewCacheName -Secondaries 1 -Force
write-host "Name Cache $NewCacheName is created" -foregroundcolor green
write-host "The cache config info :" -foregroundcolor green
Get-CacheConfig $NewCacheName
}
function AddUser([string]$DomainnameUsername)
{
Grant-CacheAllowedClientAccount -Account "$DomainnameUsername"
write-host "$DomainnameUsername is added" -foregroundcolor green
write-host "The list of AllowedClientAccounts below:" -foregroundcolor green
Get-CacheAllowedClientAccounts
}
Write-host "Number of Arguments :" $args.Length;
if($args.Length -gt 1)
{
CreateNewCache($args[0])
AddUser($args[1])
}
if($args.Length -eq 1)
{
if($args[0] -like "*\*")
{
AddUser($args[0])
}
else
{
CreateNewCache($args[0])
}
}
Both the scripts provided above are very simple to understand and use through poweshell command line, and used for very specific operation. You can enhance these scripts to even configure advanced settings of Windows AppFabric.
In particular, thanks to Pawel Kozlowski and Peter Bacon Darwin for joining us as committers on AngularJS to help manage the pull requests for these and future releases.
Past few month was very hectic for me, now since I have some time for myself I am sharing the list of articles which I am going through, these articles are basically related to architecting .NET application using ASP.NET MVC. I hope you will find these links useful for you too.
This list is open for comments, so go ahead and suggest me if you have good links which I can add to my top 8 and in the same line. Thanks.
Click on the link below to find some of the third-party events where you can learn about Microsoft technologies.
http://www.microsoft.com/learning/en/us/community/events.aspx
You can search events based on your technology, country, City/Province, Online/In Person events, From Date, To Date and name of the partners. These events will help you to boost your careers, learn new technologies, etc all free of cost.
Programming in HTML5 with JavaScript and CSS3. It's your chance to assess your skills, validate your knowledge, and prove your HTML5 chops. More importantly, it's your first step toward earning our industry's first and only certification for HTML5 expertise: Microsoft Certified Solutions Developer (MCSD). MCSD certification is proof positive to employers and peers that your code skills are second to none.
How to take free examination
Go to www.register.prometric.com and follow the steps to schedule Exam 70-480: Programming in HTML5 with JavaScript and CSS3 at a testing centre near you.
Use the voucher code HTMLJMP to get the free exam. Pass, and you'll be well on your way to joining the community of elite MCSD developers.
Developing HTML5 Apps Jump Start Free Online Course
Go to http://www.microsoftvirtualacademy.com/tracks/developing-html5-apps-jump-start and enroll in the JumpStart online course, which covers HTML5 development using JavaScript and CSS3, and sharpens your Windows app development skills.
Download free eBook (Programming Windows 8 Apps with HTML, CSS and JavaScript)
While working on programs which are targeted for devices (mobile, tablets, etc) we often face a situation where we feel that just device simulators are not enough I wish if I could run my programs in debug mode using the physical device. And this scenario often arises because personally I too faced a scenario where I was able to run my website on the simulator without any issues but the same was not working as expected on the physical device.
So in this post I am going to show you how to debug the .NET codes using apple iPhone or iPad. To do this you
There are few perquisites which are required
In this post I am going to show connecting using iPhone/ iPad using ad hoc network using my Fiddler.
Now lets get started step by step starting from configuring my system to configuring the phone device.
Creating a ad hoc network
3. Once you get the following screen, you can enter the name of the ad hoc network of your choice, select WEP as Security type, give the Security key and select the checkbox to Save the network, as given in the screen below.
Now you system is almost ready to accept incoming connection through the wireless network devices, just make sure your wireless is turned on, go to the taskbar network icon and open the window, this will display the newly created ad hoc network by you as Waiting for users.
Now since your network is ready to accept incoming connections I am going to set up my proxy server where I am going to use Fiddler. To configure Fiddler open the fiddler in your system, Go to Tools –> Fiddler Options –> Navigate to Connections Tab select the check boxes as given in the screenshot below and leave the port as default 8888 if not already in use in your system, this can be changed as required.
Now since your system is ready for device connection, the only thing left is configuring your device. To configure your device follow the following steps.
In your iPhone or iPad first go to Cellular Data settings this is applicable if you are using your network provider internet connection. Once you open this Cellular Data tab in your device, disable the cellular data as given in the screen below..
Now its time to configure your Network Settings in iPad and iPhone
In the screen above you have to configure your device to use Static IP Address, with the IP Address which should be in the same network address and subnet address. You just need to give some unused class D address which should be different from your system to which this is connecting. You can check your system IP Address of Wireless LAN adapter using ipconfig command in command prompt. This IP address will be the IP Address of the device (iPad/iPhone).
Now go to the HTTP Proxy settings on the same page below of device network settings, select the proxy settings as Manual. In the Server you have to enter the correct IP Address of the wireless LAN adapter of your system (Desktop/Laptop), enter the port which was configured on Fiddler as given in the fiddler settings above.
Once you have completed these settings your device is also ready to connect to the System. Once connected you can see the status as connected instead of Waiting for users in ad hoc network.
Now once everything looks fine, you can go ahead and first run the application in debug mode in your system, once your application opens in the web browser you can get the URL address on which your application is ready for debug. As per my convenience I have used a MVC application for debugging, but you can use any other types of web application also.
Enter the Same URL (http://localhost:35510/) in your device. I have kept a line of code which gives me the UserAgent from where the request is coming from.
string userAgent = HttpContext.Request.UserAgent;
Following are the screens which I get in iPad and iPhone respectively
Now if I go and set the breakpoint in the code, I can see the user agent which clearly shows the requested client user agent.
In the above two screens you can see the user agent browser as Mozilla/5.0 (iPhone…) and Mozilla/5.0 (iPad…) for iPhone and iPad respectively.
Note: IP addresses are used in this article are just for illustration only, this is not directly or indirectly related to any existing IP address used anywhere in existence.
Hope this helps.
Almost most of us who work in our personal systems often face challenges when it comes to learn something on Team Foundation Server, because the biggest challenges we face is setting up the environment, acquiring the server license, configuring the environment, setting up the client applications, etc.
So we have to depend on our office environment where we can learn something on TFS. But still we have limited privileges and we cannot experiment with so many uncovered features which we had always wished for while learning through books or website or MSDN.
Ok, having said all these let me give you some good news, Visual Studio has launched much awaited Cloud based Team Foundation Server Service for Visual Studio, Eclipse, Xcode environments with the following brilliant features and top of those free to learn, experiment and of-course for business too.
and much more…
with no infrastructure required to manage, accessible from anywhere, supporting almost all the languages and platforms.
And the icing on the cake is this is Free to use, you just need to signup using this link https://tfs.visualstudio.com/
Once you sign-up for Team foundation service has got all the required resources to help you to learn the TFS features and offerings. Team Foundation Service getting started guide will help you to learn almost everything you need to know about this service like:
Free plan of TFS will cover the following features
For additional users, pricing you can visit the following links for other service plans you may have to wait till 2013.
Happy Learning !!!
main()
method.