Use VirtualPathUtility to obtain information like requested path, extension etc in web environment. It is Web version of System.IO.Path VirtualPathUtility .GetExtension( HttpContext .Current.Request.RawUrl)
Posts
NITDroid installation
- Get link
- X
- Other Apps
I'm disappointed that NOKIA announced they will use WM for their new N9 series phone, and that makes me wanting to give up Maemo. I've used iPhone before. Its a good experience to use a smart phone. But it is too expensive for me. So, I want to migrate to Android based. For some reasons: Android had good integration with Google services, that's helpful to me. Android also has lots of applications on AppMarket. Android based phone is cheaper than iPhone. So, I tried to install NITDroid on my NOKIA N900. I want to thanks to the NITDroid project! Its very easy to install NITDroid on NOKIA N900 for now. The following is the notes I've been tried. Preparing a microSD card, and 2G size is recommended. Add a repo: extra-devel on Maemo's application manager. Install a package named nitdroid-installer on Maemo. Click the Application icon or run 'nitdroid' with superuser for automatic installation. After the installation, reboot the phone to entering the Android world...
Returning the null value from a method
- Get link
- X
- Other Apps
This example demonstrates the drawbacks of returning null from your methods. I allays preach to my colleagues that when something is wrong, your method should throw an exception instead of returning a null. But sometimes, especially if I'm writing some tools for myself, because of the laziness, I use the return null too. Few days ago I done that, and very soon I released that it was mistake which caused me unnecessary problems. Story goes like this: There is an initial list of ids and result of a process is a array of fully populated objects. I use that procedure on two places in my tool: for generating RSS file and for generating a view script. The tool is written in Zend Framework, it uses a log file, when exception occurs displays a customized error page and sends a email to me. Initially it was all flawless, but at some point, I released that I'm not able to read data for some of initial ids. So I modified a loading method in something like this: public function loadItem( $...
equinox-theme installation on Ubuntu/Debian
- Get link
- X
- Other Apps
Please follow steps below: Find equinox project on launchpad.net, then you can see the ppa path in the page. Install Ubuntu sudo add-apt-repository ppa:tiheum/equinox Debian sudo vim /etc/apt/sources.list Add a line: deb http://ppa.launchpad.net/tiheum/equinox/ubuntu lucid main sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4631BBEA sudo apt-get update sudo apt-get install equinox-theme faenza-icon-theme Open preference/appearence and change theme to Equinox Evolution Then, you can enjoy it!
UNetbootin installation on Ubuntu 9.10 (Karmic) and later
- Get link
- X
- Other Apps