key

can't escape fullscreen mode by escape key in vista i.e 8

when i try to escape full screen mode in flash by escape key it doesn't close the fullscreen unless i press somewhere on the flash area. this happens only in vista i.e 8 (this combination only!!!). i would like yo know if you ever run into it . I have no idea what can cause it. any suggestions? thanks ...

Capture CTRL+A, CTRL+C keys/events in flex

How to capture CTRL+A, CTRL+C events in flex? It looks like they are special keys/combinations. As I understand in Flex 3.4 I can capture CTRL+A by capturing Event.SELECT_ALL, and CTRL+C by capturing Event.COPY. BUT it complains that there are no SELECT_ALL static const in Event class. I'm using Flex SDK 3.4 and Flex Builder for Linux ...

PHP find element key

i have this array Array ( [0] => a [1] => b [2] => c [3] => d ) how can i get an element's key?(for example a=0,c=2) ...

Using javascript to scroll iFrame up and down

Hi, Is it possible to scroll the iframe window from the parent window using keys or javascript? The iframe content is from another domain different from the parent window. KM ...

simple way to change the key value of an array element

I am reading in a bunch of multi-dimensional arrays, and while digging through them I have noticed that some of the keys are incorrect. For each incorrect key, I simply want to change it to zero: from: $array['bad_value'] to: $array[0] I want to retain the value of the array element, I just want to change what that individual key...

Suggest a good method for having a number with high precision in C#

Hi every one! I am programming on a project which I should store the key of the user to the initial configuration of a machine, I want to write it in C#. I have an initial configuration which consists of two number R and X0, R = 3.9988 and X0 = 0.5. I want to add the user key to these numbers. for example: Key: hos110 => R = 3.9988...

Grant access to SYSTEM account for RSA container on Windows Server 2003

I have a need to access an RSA private key from a Windows service running under the NT AUTHORITY\SYSTEM account. I'm able to install the private key on the server, and then make use of that key when running as the user that installed the key. However, the key does not seem to be available from the Windows service. Do I need a machine-...

PHP array problem

I have an array like this. What i want is to get the value of the index for specific values. ie, i want to know the index of the value "UD" etc. Array ( [0] => LN [1] => TYP [2] => UD [3] => LAG [4] => LO ) how can i do that?? ...

How to create multiple components of a service with c'tor dependencies

I'd like to create several similar services which can be destinguished and accessed by their names (=keys). For the service implementation I want to use classes with c'tor dependencies like this: public interface IXYService { string Tag { get; set; } } public class _1stXYService : IXYService { public _1stXYService(string Tag) { ...

Does the array key determine array size in C++?

im storing some settings for objects in an array. the id's of objects are used as the key. the id's start from 100000 and go up. if i was to input data for an object with id 100 000, would cpp automatical create 99999 blank key entries starting from 0? ...

SWT Cross-Platform Enter Detection

Hi, I have a global filter (Display.addFilter) in SWT in which I want to detect Enter key. In Windows, pressing Enter generates SWT.CR in 'keyCode' part of KeyListener event. Is this assumption safe for all platforms, or should I check if keyCode == SWT.CR || keyCode == SWT.LF? Thanks. ...

What .NET dictionary supports a "find nearest key" operation?

I'm converting some C++ code to C# and it calls std::map::lower_bound(k) to find an entry in the map whose key is equal to or greater than k. However, I don't see any way to do the same thing with .NET's SortedDictionary. I suspect I could implement a workaround using SortedList, but unfortunately SortedList is too slow (O(n) for inserti...

handling mysql constraint errors

Hi! I tried searching for a solution in this website but I can't seem to find any. I needed to find a way to know which field in my table is causing the constraint error.. In my table, say members table two fields (username,email) are unique keys and defined as unique keys apart from my primary key (memberid). When i add data to this t...

wxPython wx.KeyEvent GetKeyCode()

All, I am writing a wxPython app in which I want (at the moment) to print the name of the key that was pressed. I have a dictionary that maps, for example, the WXK_BACK to "back" which seems a sane. However, which file must I import (include?) to get the definition of WXK_BACK ? I have the import wx statement, but am unsure which spe...

FluentNHibernate: can't change key column name for a one-to-many relationship

Hi I have an entity: public class Message:Entity { public virtual IList<Message> ReplayMessages { set; get; } public virtual Message ParentMessage { set; get; } } I try to override the mapping: mapping.HasMany(x => x.ReplayMessages) .AsSet() .KeyColumnNames.Add("ParentId"); but i...

Different settings in my.cnf are causing "max key length is 1000 bytes" error

Edit: This may be a 5.0-specific bug. (I'm on 5.0.83). Removing the innodb_log_file_size setting gets rid of the problem. Which makes complete sense. Not. Googling about finds a handful of similar, but not identical problems in 5.0 that were patched later. With the "wrong" settings in my.cnf, this create statement on MySQL 5.0 will...

Changing the value in a map in Groovy

This is about a very basic program I'm writing in Groovy. I have defined a map inside a method: def addItem() { print("Enter the item name: ") def itemName = reader.readLine() print("Enter price : ") def price = reader.readLine() print("Enter barcode : ") def barcode = reader.readLine() data[itemName] =...

How to get key value

Hi, My sample JSON string is as below: {"8776337":{"text":"Test Message","status":"d","created_time":"1244475327","reply_number":"447624800500","completed_time":"1244475373","credits_cost":"0.4"}} "8776337" is dynamic key returned by some APIs. I want to get this key value using LINQ to JSON query. How can I get this key value using...

Detect if any key is pressed in C# (not A, B, but any)

Hi, [EDIT 3] I kind of "solved it" by at using the "strange" version. At least for the most important keys. It is suffient for my case, where I want to check that ALT and ALT+A are not the same (thereby making sure A is not pressed). Not perfect, but already to much time for such a tiny problem. Thanks for all the answers anyway... [ED...

How to remove a lua table entry by its key ?

I have a lua table that I use as a hashmap, ie with string keys : local map = { foo = 1, bar = 2 } I would like to "pop" an element of this table identified by its key. There is a table.remove() method, but it only takes the index of the element to remove (ie a number) and not a generic key. I would like to be able to do table.remove(...