I realized the best way to keep track of everything is keeping a online journal which I will never lose
Tuesday, August 30, 2011
Confidence
Friday, August 26, 2011
Working with Database In ASP.net
Wednesday, August 24, 2011
Database Configuration: MySql with Visual studio 2010
root
accounts are created that permit connections from the local host only. Connections can be made by specifying the host name localhost
, the IP address 127.0.0.1
, or the IPv6 address ::1
. If the user selects the Enable root access from remote machines option during installation, the Windows installer creates another root
account that permits connections from any host.Tuesday, August 23, 2011
Server Error in '/Test' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Unrecognized configuration section 'connectionStrings'
Source Error:
|
1. Installed .NET framework 4
2. Copied “System.Web.Mvc”to the bin directory (this is not needed if ASP.NET MVC is installed on the server). To include this with your project, in Visual Studio, under references, make sure that “Copy Local” is set to true for “System.Web.Mvc”
3. In IIS Manager
a. Enabled the ASP.NET v4 web service extension
b. For the “mvc” application, set the ASP.NET version to 4 under the “ASP.NET” tab
c. Enabled wildcard mapping
i. In the directory tab, clicked configuration
ii. Clicked “Insert” and added “c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll” and made sure that “Verify that file exists” is NOT checked
d. Created a new app pool for the mvc application (.NET 4 applications need to run in a separate app pool from .NET 1, 2, 3, or 3.5 applications) and change the “mvc” application to use this new app pool (change it in the directory tab)
e. Restarted the web site
Thursday, August 18, 2011
Enabling Services in IIS ( ASP.NET)
Wednesday, August 17, 2011
Sunday, August 14, 2011
Saturday, August 13, 2011
How to make a bitmap as button ...
But the ButtonField or BitmapField click is not happening in Blackberry 4.7 simulator.
I want to build it for Blackberry Storm so I m using Blackberry 4.7
How to handle click/touch events for ButtonField & BitmapField for Blackberry Storm?
Sorting in Blackberry
Sorting vector or arrays is difficult in J2ME because J2ME APIs doesn’t include the collections framwork.
But Blackberry API has sortable collections like SimpleSortingVector or you can use Arrays class sort method also.
The key in sorting is Comparator interface that allows you to specify how the elements should
be compared. Sorting using Comparator is a good example of strategy pattern and the Java idiom for function-pointer-like functionality.
1. Create your Data class.
1. Create your Data class.
- class Data {
- private String name;
- private int age;
- public Data(String name, int age) {
- this.name = name;
- this.age = age;
- }
- String getName() {
- return name;
- }
- int getAge() {
- return age;
- }
- }
be compared.
Here we will create two implementaion of Coparator one for name and another for age.
- class NameComparator implements Comparator {
- public int compare(Object o1, Object o2) {
- return ((Data) o1).getName().compareTo(((Data) o2).getName());
- }
- }
- class AgeComparator implements Comparator {
- public int compare(Object o1, Object o2) {
- return ((Data) o1).getAge() - (((Data) o2).getAge());
- }
- }
http://blog.vimviv.com/blackberry/sorting-blackberry/#more-398