mode

IE8 Compatibility Mode text input not clickable

When in IE8 and with Compatibility Mode turned to On, the "username" textbox in my form is not clickable, and it's not a JS issue or anything, it works fine in Safari, FF, and Opera just not IE8. <form method="post" action="" enctype="multipart/form-data" name="index_log"> <input type="text" id="em1" name="em1" maxlength="320" class="re...

Setting fetch mode via criteria several levels deep in object graph.

I have a situation where entity A contains a set of entity B. Each entity B contains one entity C. Each entity C has a list of entity D's. I want all A's that meet some criteria but I also want the D's eagerly loaded (mapping file lazily loads them). I have code similar to the following Criteria aCriteria = session.createCriteria(A.clas...

how to calculate the mode of an unsorted array of integers in O(N)?

...using an iterative procedure (no hash table)? It's not homework. And by mode I mean the most frequent number (statistical mode). I don't want to use a hash table because I want to know how it can be done iteratively. ...

ViewModel is not binding from the POST form when passed into a method as a parameter

I'm new to asp.net mvc, but I've thoroughly searched on this topic everywhere. I've a ViewModel class named PictureViewModel which is the class an EditorTemplate view inherits from: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <div class="editor-label"><%: Html.LabelFor(m=>m.Name) %></div> <div class="edi...

How to Detect IE7/IE8 "run as administrator" mode with Javascript

How to Detect IE7/IE8 "run as administrator" mode with Javascript? I have a html page that needs to be run in administrator mode. I can detect if it is ie8/7 and when that occurs I pop-up an alert saying the user must be in administrator mode for the page to work (because it runs an active-x that doesn't work other wise). That, howeve...

WPF Textbox loses original values, even if the user doesn't udpate

Hi, I am having a very strange issue. I have a datagrid which is binding to an observable collection of type Person The selected item is bind to an Object Person. I have 2 textboxes firstname and lastname. When ever user selects an item from grid, the textbox values gets populated. user can edit the values and click submit button, val...

how do I cancel visual mode programmatically in vim

I'm running a bit of code in Vim and having a problem (I think) with not being in the correct mode. I'm trying to get the text between either '< >' or '[ ]' into a register. At point code starts below I know the cursor is between a pair of brackets, but I don't know what kind the brackets are: " put text in x reg if I'm in <> brac...

Making a replacement for a 16-bit installer, program needs short filenames?

I have an old game (Westwood Monopoly CD-ROM) that only has a 16-bit installer so it won't run on my Windows 7 x64. To get around this I decided to use Inno Setup to make a new installer. The game itself is 32-bit but not LFN aware and will run on Vista/7, however the game will crash if the installer I built with Inno Setup is not run wi...

In vi/vim is there any way to make Visual Block Mode unconstrained by line endings?

In vi/vim is there any way to make Visual Block Mode unconstrained by line endings? ...

Would a scheduled Java app run when Windows is in sleep mode ?

If I start a Java app, it initiates and does some work then goes to thread sleep for an hour, then wake up after an hour and does some more work ... But my PC is running Win7 and after 15 minutes of inactivity, it will go into sleep mode, so my question is : an hour from I started the Java app, if I don't touch the PC, and it goes into ...

kernel mode timer

How can I have a timer in kernel mode such that a specified function in my driver is called approximately every second on Windows XP and above? I should be able to use all functions (in particular ZwQuerySystemInformation) in the function. I do not need a high resolution timer or millisecond accuracy or anything like that, I just need a ...