Posts

.NET - MVC Application - Good to Know

     web.config - http://www.codeproject.com/Articles/301726/Web-config-File-ASP-NET               <configuration>            <configSections>                 <sectionGroup>                 </sectionGroup>            </configSections>           <connectionStrings>           </connectionStrings>           <system.web>                <customErrors mode="Off">                </customErrors>                         <authentication mode="Forms">                 ...

Tips and Tricks for Faster ASP.NET and MVC Applications

    http://www.slideshare.net/SarveshKushwaha/tips-and-tricks-for-aspnet     Summary of this,     Design and Architecture play a major role before you start thinking about performance, if it is     started with a sound design and architecture in focus with best practices which are obvious then you might not hit major bottle necks. Design for failure and Cloud applications follow this principle.   1. Static resources should be Cacheable    <system.webServer> <staticContent>  <clientCache cacheControlMode="UserMaxAge" cacheControlMaxAge="365:00:00" /> </staticContent>    </system.webServer> 2. Bundling and Minification 3. Use ViewState when its necessary    EnableViewState="false"  in a text box control    Page level - <%@ Page EnableViewState="false"%>    in web config - <pages enableViewState="false"/> 4. Use effec...

Knowledge - Learning

Future of Elearning - Notes -  Just some notes and tips picked up online for a e-learning or learning management system (LMS) It should be  Anytime, anywhere knowledge and learning              Cloud Based SaaS application             Accessed from Laptops, Tablets, Smart Phones             Access learning sessions             Search Information            Before work, on the job, on the road Purpose build for mobile environment It should provide, Anytime, anywhere manager coaching          To coach, mentoring, learning, interventions needed to ensure employees have knowledge they          need to perform on the job Anytime, anywhere administration          L&D professional can access, add content, create and update em...

Spring Hibernate Errors and Solutions

Problem: Hibernate Gives an Error for updating a column with a null value this column is a foreign key    Entity X has a resource in it     @JoinColumn(name = "resource_id", referencedColumnName = "id")     @ManyToOne(optional = false)     private Resource          resource; not-null-property-references-a-null-or-transient-value When the resource is null when we try to update in Hibernate 4.2.2 Final a error is given in Nullability.class if ( checkability[i] && values[i]!= LazyPropertyInitializer.UNFETCHED_PROPERTY ) { final Object value = values[i]; if ( !nullability[i] && value == null ) { //check basic level one nullablilty throw new PropertyValueException( "not-null property references a null or transient value", persister.getEntityName(), persister.getPropertyNames()[i] ); } Solution: Set @ManyToOne(opti...

AWS - RDS - mysql instances

http://serverfault.com/questions/599421/highest-value-of-max-connections-in-aws-rds-micro-instance MODEL max_connections innodb_buffer_pool_size --------- --------------- ----------------------- t1.micro 34 326107136 ( 311M) m1-small 125 1179648000 ( 1125M, 1.097G) m1-large 623 5882511360 ( 5610M, 5.479G) m1-xlarge 1263 11922309120 (11370M, 11.103G) m2-xlarge 1441 13605273600 (12975M, 12.671G) m2-2xlarge 2900 27367833600 (26100M, 25.488G) m2-4xlarge 5816 54892953600 (52350M, 51.123G) show variables like 'max_connect_errors' Blocked because of many connection errors many connection error org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session  for   transaction; nested exception is org.hibernate.exception.GenericJDBCEx...