bUgS oF a DEeBugGEr

Thursday, February 28, 2008

Changing the default browser used in VS 2005 and Visual Web Developer

1) Right click on a .aspx page in your solution explorer

2) Select the "browse with" context menu option

3) In the dialog you can select or add a browser.

4) Click the "Set as Default" button to make this the default browser when you run any page on the site.

Labels: ,

Microsoft DreamSpark

DreamSpark is simple, it's all about giving students Microsoft professional-level developer and design tools at no charge so you can chase your dreams and create the next big breakthrough in technology - or just get a head start on your career.

Who can get this right now?

Currently t.hey are giving this to students from 11 countries.United States, the United Kingdom, Canada, China, Germany, France, Finland, Spain, Sweden, Switzerland and Belgium. If you are not residing in one of the countries listed keep checking they will add more countries soon.

What do I have to do to get this software?

  • just select a product
  • Sign In with your Windows Live ID.
  • Get verified as a student.
  • Download your products.

The following products are availabele now

  • Expression Studio
  • Sql Server 2005 Express
  • Sql Server Developer Edition
  • Virtual PC 2007
  • Visual Basic 2005
  • Visual C++ 2005
  • Visual C# 2005
  • Visual J# 2005
  • Visual Studio 2008
  • Visual Web Developer 2005
  • Visual Studio 2005 Professional
  • Windows Server 2003
  • XNA Game Studio
Goto: https://downloads.channel8.msdn.com/

Labels: , , , ,

Wednesday, February 27, 2008

File extension validation Javascript

You can use this function to validate the extension of a file.

// function to validate the extension of a file

// You can specify the file type in the code "valid_extensions = /(.doc|.pdf)$/i;" . If you want to add .docx supprt simply add |.docx (ex:(.doc|.pdf |.docx| .your-extension) )

var valid_extensions = /(.doc|.pdf)$/i; function CheckExtension(fld) { if(fld.value) { if (valid_extensions.test(fld.value)){ return true; } else { return false; } } else return true; }

Labels: , , ,

Tuesday, February 26, 2008

Ubuntu Mobile

Introducing Ubuntu Mobile - full Internet, no compromise

Ubuntu Mobile is an Ubuntu edition that targets an exciting new class of computers called Mobile Internet Devices.
Ubuntu Mobile, based on the world's most popular Linux distribution, and MID hardware from OEMs and ODMs, are redefining what can be done in mobile computing.

Ubuntu Mobile, a fully open source project, gives full Internet, with no compromise. Custom options may include licensed codecs and popular third-party applications.

  • Full Web 2.0/AJAX fidelity, with custom options of Adobe Flash®, Java, and more
  • Outstanding media playback so you can enjoy videos, music and photos with superior quality and easy navigation
  • A suite of applications that work seamlessly to meet every need of a digital parent, student or anyone who is on-the-go
  • Facebook®, MySpace®, YouTube®, Dailymotion®, 3D games, GPS, maps, in short, the full Web 2.0 experience delivered into your hands as a compact and powerful device that's easy and fun to use

The product of Canonical collaboration with Intel® and the open source community, Ubuntu Mobile is the software that makes it all possible.

Clutter User Interface

Clutter UI

Click here for more details

Labels: , , , ,

What is Struts?

What is Struts?

Struts is a free open-source framework for creating Java web applications.

Web applications differ from conventional websites in that web applications can create a dynamic response. Many websites deliver only static pages. A web application can interact with databases and business logic engines to customize a response.

Web applications based on JavaServer Pages sometimes commingle database code, page design code, and control flow code. In practice, we find that unless these concerns are separated, larger applications become difficult to maintain.

One way to separate concerns in a software application is to use a Model-View-Controller (MVC) architecture. The Model represents the business or database code, the View represents the page design code, and the Controller represents the navigational code. The Struts framework is designed to help developers create web applications that utilize a MVC architecture.

The framework provides three key components:

  • A "request" handler provided by the application developer that is mapped to a standard URI.
  • A "response" handler that transfers control to another resource which completes the response.
  • A tag library that helps developers create interactive form-based applications with server pages.

The framework's architecture and tags are buzzword compliant. Struts works well with conventional REST applications and with nouveau technologies like SOAP and AJAX.

What is Model-View-Controller (MVC) Architecture?

Model-View-Controller architecture is all about dividing application components into three different categories Model, View and the Controller. Components of the MVC architecture has unique responsibility and each component is independent of the other component. Changes in one component will have no or less impact on other component. Responsibilities of the components are:

Model: Model is responsible for providing the data from the database and saving the data into the data store. All the business logic are implemented in the Model. Data entered by the user through View are check in the model before saving into the database. Data access, Data validation and the data saving logic are part of Model.

View: View represents the user view of the application and is responsible for taking the input from the user, dispatching the request to the controller and then receiving response from the controller and displaying the result to the user. HTML, JSPs, Custom Tag Libraries and Resources files are the part of view component.

Controller: Controller is intermediary between Model and View. Controller is responsible for receiving the request from client. Once request is received from client it executes the appropriate business logic from the Model and then produce the output to the user using the View component. ActionServlet, Action, ActionForm and struts-config.xml are the part of Controller.

Labels: , , ,

Javascript for validating a date

Javascript for validating a date.

Pass month, day, year as parameters. This function will return true if the date is valid.

// // arunmvishnu.blogspot.com

function validDate(month, day, year){ if(month =='0' || day =='0' || year=='0'){ return false; } switch(month) { case '1': //** jan case '3': //** March case '5': //** May case '7': //** July case '8': //** Aug case '10': //** Nov case '12': //** Dec if(day>=1 && day<=31){ return true; } else { return false; } case '4': //** APRIL case '6' : //** JUNE case '9' : //** SEPTEMBER case '11' : //** NOVEMBER if(day>=1 && day<=30){ return true; } else { return false; } case '2' : if(isLeapYear(year)){ if(day>=1 && day<=29){ return true; } } else if(day>=1 && day <= 28){ return true; } else { return false; } default: return false; } }

function isLeapYear(year){ // Checking wdr a year is leap year or not if(year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)){ return true; } else { return false; } }

The full js file can be dodnloaded from here 

Labels: , , ,

Sunday, February 24, 2008

Ubuntu: Hardy Heron Alpha 5

The Ubuntu developers are moving very quickly to bring you the absolute latest and greatest software the Open Source Community has to offer. Hardy Heron Alpha 5 is the fifth alpha release of Ubuntu 8.04, and with this new alpha release comes a whole host of excellent new features.

The features are

1. Wubi 2. Xorg 7.3 3. Linux kernel 2.6.24 4. PulseAudio 5. PolicyKit 6. Firefox 3 Beta 3 7. Transmission 8. Vinagre 9. Brasero 10. World Clock Applet 11. GVFS 12. GNOME System Monitor 13. Virtualization 14. Firewall 15. umenu 16. Wubi

Checkout this official site for more details

Download Alpha 5

Get it while it's hot. ISOs and torrents are available at:

http://cdimage.ubuntu.com/releases/hardy/alpha-5/ (Ubuntu) http://cdimage.ubuntu.com/kubuntu/releases/hardy/alpha-5/ (Kubuntu) http://cdimage.ubuntu.com/edubuntu/releases/hardy/alpha-5/ (Edubuntu) http://cdimage.ubuntu.com/jeos/releases/hardy/alpha-5/ (Ubuntu JeOS) http://cdimage.ubuntu.com/xubuntu/releases/hardy/alpha-5/ (Xubuntu) http://cdimage.ubuntu.com/gobuntu/releases/hardy/alpha-5/ (Gobuntu) http://cdimage.ubuntu.com/ubuntustudio/releases/hardy/alpha-5/ (UbuntuStu

Labels: , , , , ,

Saturday, February 23, 2008

Microsoft Windows XP Service Pack 3 SP3 Release Candidate 2 beta

Windows XP Service Pack 3 (SP3) includes all previously released updates for the operating system. This update also includes a small number of new functionalities, which do not significantly change customers experience with the operating system.

Instructions:

Download the script and run it on a machine currently running Windows XP Service Pack 2. The script sets a registry key on your system. The registry key is required for Windows Update to recognize your machine as a valid target for Windows XP Service Pack 3 RC2. Versions of Windows XP Service Pack 3 prior to Release Candidate 2 should be removed before attempting to use the registry key. Windows Update will not offer Release Candidate 2 to machines with previous versions of the Windows XP Service Pack 3 beta.

Download

Wine 0.9.56 released

Wine is a translation layer (a program loader) capable of running Windows applications on Linux and other POSIX compatible operating systems. Windows programs running in Wine act as native programs would, running without the performance or memory usage penalties of an emulator, with a similar look and feel to other applications on your desktop.

The latest release is 0.9.56

What's new in this release:
- Proper handling of OpenGL/Direct3D windows with menu bars.
- Stubs for all the d3dx9_xx dlls.
- Several graphics optimizations.
- Many installer fixes.
- Improved MIME message support.
- Lots of bug fixes.

The sources will be available from the following locations:

http://ibiblio.org/pub/linux/system/emulators/wine/wine-0.9.56.tar.bz2
http://prdownloads.sourceforge.net/wine/wine-0.9.56.tar.bz2

Binary packages for various distributions will be available from:

http://www.winehq.org/site/download

 

Labels: , , ,