mode

Fighting with Protected Mode in Vista

Our application commonly used an ActiveX control to download and install our client on IE (XP and prior), however as our user base has drifted towards more Vista boxes with "Protected Mode" on, we are required to investigate. So going forward, is it worth the headache of trying to use the protected mode API? Is this going to result in ...

How to write an emacs mode for a new language?

I would like to write an emacs major mode for a 4GL. Can some one show me a tutorial. As far as i googled i was able to find only this broken link http://two-wugs.net/emacs/mode-tutorial.html ...

Calculate mode (or frequency) distribution of a value over time in SQL Server

Given the following table, how does one calculate the hourly mode, or value with the highest frequency by hour? CREATE TABLE Values ( ValueID int NOT NULL, Value int NOT NULL, LogTime datetime NOT NULL ) So far, I've come up with the following query. SELECT count(*) AS Frequency, DatePart(yy, LogTime) as [Year], DatePart...

Emacs mode that highlight Lisp forms

What is the Emacs mode or package that highlights Lisp forms changing the color of the backgrounds so that the form you are in has one color, the outer form another, the outer outer form another and so on? ...

Detecting Vista IE7 Protected Mode with Javascript

I'd like to be able to detect Vista IE7 Protected Mode within a page using javascript, preferably. My thinking is to perform an action that would violate protected mode, thus exposing it. The goal is to give appropriate site help messaging to IE7 Vista users. ...

Computing the statistical mode

Hi all, I'm currently trying to verify whether or not, given an unsorted array A of length N and an integer k, whether there exists some element that occurs n/k times or more. My thinking for this problem was to compute the mode and then compare this to n/k. However, I don't know how to compute this mode quickly. My final result needs t...

How to detect Render Mode of browser for current page?

I know that modern browsers generally have two render mode: standard mode and quirk mode. The browser detects the heading DocType. The question is how to detect render mode of current page at runtime. Is there any Firebug tool to do that? ...

Disabling resize controls in IE

I have a web application, HTML wysiwyg editor based on TinyMCE (javascript). The content editing is enabled in Internet Explorer with designMode="on". If I put an iframe in the edited content: This is the content I am editing as HTML source. <iframe src="..."></iframe> <b>I just added an iframe to my content</b> The iframe will beco...

Force iPhone web app to landscape mode

How do you force an iPhone web app (not a native app) into landscape mode? ...

[iPhone] Play video not in full screen mode

Hello, First, excuse my english :) I've read on apple developer website that video playback provides by the framework supports only full screen mode. I will need to develop an application where video can be played in reduce screen mode. I've see that Orange TV make something which looks like what i need to do. http://img218.imageshac...

How to Change FormView mode from edit mode to readonly mode after updating?

Hi... How to Change FormView mode from edit mode to readonly mode after updating data? when I click on "Update" link button, it updates data but still remains on edit mode.... thank you very much ...

This operation requires IIS integrated pipeline mode.when i am trying to access the length or size of headers

hi, i am using IIS 6 n facing problem when trying to get length or total no. of headers using HttpModule.. ...

InstallShield 2009 basic MSI silent install: how to set "Repair" by default

Install shield premiere 2009: Basic MSI from command line typing setup.exe /s /v/qn installs silently. But if its installed once before it chooses "Modify" by default and doesn't go for replacing files. But i need to copy again the files. How to perform "Repair" on second silent install by default? ...

Get element with highest occurrence in an array

Hi, I'm looking for an elegant way of determining which element has the highest occurrence in a javascript array. For example in ['pear', 'apple', 'orange', 'apple'] the 'apple' element is the most frequent one. ...

OpenGL background dissappears with certain Polygon Modes

I am creating a simple gradient background by drawing a quad as follows: glMatrixMode GL.GL_PROJECTION glLoadIdentity glMatrixMode GL.GL_MODELVIEW glLoadIdentity ***glPolygonMode GL_FRONT_AND_BACK, GL_LINE*** glDisable glcDepthTest glBegin bmQuads glColor4d 1, 0, 0, 1 glVertex2i -1, -1 glVertex2i 1, -1 ...

How does git handle folder permission ?

Hi there, I'm using git version 1.5.6.3, and it seems git doesn't notice a folder's mode changes #create a test repository with a folder with 777 mode :~$ mkdir -p test/folder :~$ touch test/folder/dummy.txt :~$ cd test :~/test$ chmod 777 folder/ #init git repository :~/test$ git init Initialized empty Git repository in ~/test/.git/ :...

Exactly what are the limitations of user mode in ARM 7?

How to experiment and observe these limitations in user mode in Keil IDE? What if the user wants to enable an interrupt? ...

Detect IE8 Compatibility Mode

We have not had time to fully test IE8 with our fairly extensive system. We are also reaching the point at which we can't prohibit the use of IE8. Our users are stubborn and not terribly sophisticated, so we don't feel that we can tell them to use the "Compatibility Mode" button. Instead, we will add the "IE=EmulateIE7" meta tag as a ...

Get owner's access permissions using C++ and stat

How can I get the file owner's access permissions using stat from sys/stat.h using C++ in Kubuntu Linux? Currently, I get the type of file like this: struct stat results; stat(filename, &results); cout << "File type: "; if (S_ISDIR(results.st_mode)) cout << "Directory"; else if (S_ISREG(results.st_mode)) cout << "...

Form View Manually Setting the DataSource Does not Show Template

I am currently programming an ASP .NET FormView. The twist here is that I need to manually set the datasource via "FormView.DataSource = ". I added an ItemTemplate and added some form in the form view but even if the line of code that set the datasource view is called and the FormView.DataBind() is called, I still cannot see the data. I...