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 :|
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
- Disable on-board audio driver - BIOS and Device Manager
- Disable video card audio driver - Device Manager
Hardware installation
- Don’t connect any other cable to the sound card unless everything proven to be working fine
Driver installation
- nothing special
After installation
- 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)
- 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.
- 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
- Control Panel - Sounds - Playback Devices
- Make ‘S/PDIF Pass-through Device’ as default
Receiver setup
- nothing special, just make sure Speakers is selected, SPA shows up on the console
VLC Settings
- Audio - Devices - A/52 S/PDIF
Enjoying Adele’s Alert Hill performance, brilliant!
29 11 / 2011
Visual Studio Color and Font Settings
My preference:
Color Scheme: http://studiostyl.es/schemes/coding-horror-2010
Font: Consolas 15pt
02 11 / 2011
GetImageFromRequest always return null?
One possible issue: file extension of uploaded file is CAPITALIZED: .jpg works, .JPG doesn’t work.
Solution:
