11 4 / 2012

jQuery Draggable Overflow Issue

While designing a drag and drop prototype using jQuery, I have encountered a frustrating issue:

Containment is set with overflow:auto due to large dataset.

The draggable element can be dropped to the target div, but while dragging, the element was hidden underneath the containment div.

Tried set scroll:false, the containment overflow scroll freezes, good.

Tried various type of z-index setting, no luck.

Tried helper: ‘clone’, bravo! 

It turns out that another ‘clone’ed element will be created while dragging.

RTFM, all I want to say :|

http://jqueryui.com/demos/draggable/#option-helper

11 12 / 2011

Asus Xonar DG Sound Card + Sony STR DH-800 

Finally decided to get a sound card to my HTPC to work with the receiver. Bought the Asus Xonar DG, which has a good price, but it turned out to be a little bit troubles. Better write it down:

Before installation

  1. Disable on-board audio driver - BIOS and Device Manager
  2. Disable video card audio driver - Device Manager

Hardware installation

  1. Don’t connect any other cable to the sound card unless everything proven to be working fine

Driver installation

  1. nothing special

After installation

  1. Open Xonar DG Audio Center  (note: there is an awesome explanation of how Windows and Xonar Audio Center work together http://vip.asus.com/forum/view.aspx?id=20080423032545000&board_id=21&model=Xonar+D2X&page=1&SLanguage=en-us, read to make sure you understand the confusing part)
  2. One of the most out-dated and un-user-friendly interface design ever! It looks like the utility doesn’t do much, but actually you will have to use it very often if you own the Xonar series.
  3. Click on triangle button on the right-bottom corner to expand advanced features, which is important to set up optical output, my configurations are:
  • 6 Channels
  • PCM 96KHz (as it’s a low-end sound card)
  • 5.1
  • SPDIF Output: PCM  <- make sure this is checked!!

Windows setup

  1. Control Panel - Sounds - Playback Devices
  2. Make ‘S/PDIF Pass-through Device’ as default

Receiver setup

  1. nothing special, just make sure Speakers is selected, SPA shows up on the console

VLC Settings

  1. Audio - Devices - A/52 S/PDIF

Enjoying Adele’s Alert Hill performance, brilliant!

10 12 / 2011

29 11 / 2011

Visual Studio Color and Font Settings

My preference:

Color Scheme: http://studiostyl.es/schemes/coding-horror-2010 

Font: Consolas 15pt

18 11 / 2011

18 11 / 2011

08 11 / 2011

04 11 / 2011

03 11 / 2011

02 11 / 2011

GetImageFromRequest always return null?

One possible issue: file extension of uploaded file is CAPITALIZED: .jpg works, .JPG doesn’t work.

Solution: 

http://forums.asp.net/t/1682158.aspx