Tuesday, December 4, 2012
Lightswitch Creating Many-Many Mapper Screen
Tuesday, November 6, 2012
Using RamDisk to boost machine performance
2. create a ramdisk on R Drive with NTFS Compression
3. map the temp folder as below. this bat file will only map the temp folder while the bat file is running and once you key press the bat file it will ignore the temp folder in ramdisk and create another temp folder in normal hard disk to use. so, this bat file will work only till its running.
bat file details as below for mkdir file
robocopy "c:\windows\TEMP" "R:\cache\windowsTEMP" /S /E
rmdir "c:\windows\TEMP"
MKDIR "R:\cache\windowsTEMP"
mklink /J "c:\windows\TEMP" "R:\cache\windowsTEMP"
mkdir "R:\cache\Chrome Cache"
robocopy "C:\Users\sshukla\AppData\Local\Google\Chrome\User Data\Default\Cache" "R:\cache\Chrome Cache" /S /E
rmdir "C:\Users\sshukla\AppData\Local\Google\Chrome\User Data\Default\Cache"
mklink /J "C:\Users\sshukla\AppData\Local\Google\Chrome\User Data\Default\Cache" "R:\cache\Chrome Cache"
pause
rmdir "c:\windows\TEMP"
MKDIR "c:\windows\TEMP"
robocopy "R:\cache\windowsTEMP" "c:\windows\TEMP" /S /E
rmdir "C:\Users\sshukla\AppData\Local\Google\Chrome\User Data\Default\Cache"
MKDIR "C:\Users\sshukla\AppData\Local\Google\Chrome\User Data\Default\Cache"
robocopy "R:\cache\Chrome Cache" "C:\Users\sshukla\AppData\Local\Google\Chrome\User Data\Default\Cache" /S /E
Thursday, October 25, 2012
Migrate VMWare Harddisk VMDK to Microsoft Virtual machine hard disk VHD format
So, if you wants to fully utilize your hardware capabilities its better to use VHD with a new partition and making it dual boot option.
http://vmtoolkit.com/files/folders/converters/entry8.aspx
Regards,
Sam
Monday, May 28, 2012
.Net with Oracle : Working with Multiple Result Sets
Thursday, May 3, 2012
XPATH Injection .net
XPath which may reveal the whole XML and hence display all the required values without proper authentication. Possible solution of these kind of attacks. 1. Validating the Input. 2. Modifying the XPath quite similar to the Sql Parameterized queries so, that changes of hacking it with wrong input will be minimised.
//Can be done at initialization time string xpath = "//customer[@name=$name and @password=$password]"; XPathExpression expr = DynamicContext.Compile(xpath); //Run-time DynamicContext ctx = new DynamicContext(); ctx.AddVariable("name", txtUser.Text); ctx.AddVariable("password",txtPasowrd.Text); expr.SetContext(ctx); XPathNodeIterator custData = customers.Select(expr);And you don't even have to validate user input here - it's all done for free.
Better yet, they can directly use the XPathCache class (1 line of code!!!):XPathNodeIterator custData = XPathCache.Select( "//customer[@name=$name and @password=$password]", customersDocument, new XPathVariable("name", txtName.Text), new XPathVariable("password", txtPassword.Text));And all will be equally precompiled, cached and secure :) . There is an overload for each need, and you can do pretty anything with a single line.
Wednesday, May 2, 2012
YII Framework of PHP with MySql a gr8 alternative to Asp.net MVC
I was fond of asp.net mvc as I worked on many applications of asp.net MVC. but later i realised that customers are moving more on PHP as its not that costly for them to afford hosting packages of Linux Servers.
Inbetween I was also fond of Asp.net MVC which have saperation of consern in form of Model views and controller. But later i found out that there is a framework for PHP which is Also in MVC pattern. This framework is called YII framework and its quite similar.
As, all people working in Asp.net MVC must have realised that client side scripting and html can be share between PHP and asp.net projects and hence asp.net MVC developers can easily switch to PHP as PHP is not difficult languge to learn.
you can find the link for YII framework below http://www.yiiframework.com/
Also, try YII with APC extension for best performance of the application. try XAMPP tool to install PHP,APACHE and MySql server on your machine and try out these framework by yourself.
Thanks & Regards, SamThursday, March 29, 2012
How to setup your machine as FTP Server
Online Code repositories
is free upto 2 developers and 200mb and 1 project.
http://unfuddle.com/about/tour/plans
Backup Code online
There is Amazon's S3 storage service...
•Pay only for what you use. There is no minimum fee, and no start-up cost.
•$0.15 per GB-Month of storage used.
•$0.20 per GB of data transferred.
•Authentication mechanisms are provided to ensure that data is kept secure from unauthorized access. Objects can be made private or public, and rights can be granted to specific users.
•Amazon S3 is based on the idea that quality Internet-based storage should be taken for granted. It helps free developers from worrying about where they are going to store data, whether it will be safe and secure, the costs associated with server maintenance, or whether they have enough storage available. The functionality is simple and robust: Store any amount of data inexpensively and securely, while ensuring that the data will always be available when you need it. Amazon S3 enables developers to focus on innovating with data, rather than figuring out how to store it.
I personally am yet to set this up, though from all of the online storage services out there (ie. Startups) I would trust Amazon with my data before many of the startups or existing 'little' firms out there offering this.
Carbonite
And with no Google G-Drive or Microsoft Live Drive available and cannot think of Yahoo ever talking about this from what I have read and the people who are using it, they are quite impressed (Dave Winer is one)
Features
File Types Backed Up. The goal of this service is to only back up irreplaceable files like photos, documents, and music. For example, your operating system, programs, and files in excess of 4GB will not be backed up.
Compatibility. This service is compatible with both PCs and Macs, and files can be accessed from Internet-enabled mobile devices, such as the iPhone, iPad, iPod Touch, Android, and Blackberry.
Cost. This service costs $59 per year and there is a trial period of 15 days with no credit card required.
Promotional Offer. Two additional free months of service are available to customers who use the offer code: BLOGAD.
Friday, March 16, 2012
Visitor Pattern Explained Properly
http://weblogs.asp.net/cazzu/articles/25488.aspx