key

Converting graph to canonical string

I'm looking for a way of storing graphs as strings. The strings are to be used as keys in a map, so that two topologically identical graphs will map to the same value in the map. Does anybody know of such an algorithm? The nodes of the tree are labeled with duplicate labels being allowed. The program is in java and an implementation in...

itterate through range of numbers to add as keys

I have a range of 67 numbers, something like 256 through to 323, which i want to add to an existing array. it doesnt matter what the values are. looking for code to itterate through those numbers to add them as keys to the array without adding each one at a time ...

keydown freezes timer c#

Hey, I am making a frogger type game and I am using a timer to make the images move across the screen. I am also using the keydown event to handle when the user moves the 'frog'. So, w moved up, s moves down etc. The problem I have come across is that whenever the user presses any movement button, the timer freezes. This means if the us...

ASP.NET - What is the best way to block the application usage?

Our clients must pay a monthly Fee... if they don't, what is the best way to block the asp.net software usage? Note: The application runs on the client own server, its not a SaaS app... My ideas are: Idea: Host a Web Service on the internet that the application will use to know if the client can use the software. Issue 1 - What happen ...

MutliKeyMap implementation

Hello, I need to implement a MultiKeyMap, where I can have 2 keys and a value. I was looking to Apache collections MultiKeyMap, but I'm not sure if it is the best one. My problem is that I need to use this MultiKeyMap in a Web environment, and the Apache implementation is not thread safe (and Collections.synchronizedMap(..) doesn't wor...

unset range of keys in an array

How can i unset a range of keys between say 70 to 80 in an array like this? [63] => Computer Science and Informatics [64] => Dentistry [65] => Development Studies [66] => Drama, Dance and Performing Arts [67] => Earth Systems and Environmental Sciences [68] => Economics and Econometrics [69] => Education [70] => Electrical and Electroni...

Is there such a thing as a catch-all key for a javascript object?

Considering the following javascript example: var myobj = { func1: function() { alert(name in this) }, func2: function() { alert(name in this) }, func3: function() { alert(name in this) } } myobj.func2(); // returns true myobj.func4(); // undefined function Is it possible to create a 'catch-all' key ...

Disable WPF menu key tip on pressing Alt key

Hi, I want to disable KeyTips displayed on the Office 2007 ribbon theme Menus. How can i do that? Thanks in advance, NK ...

Array call from key not working correctly

I'm trying to call to a specific part of an array with the key # and it's not working. I can output the array and see it... Array ( [6] => Array ( [0] => [email protected] [1] => [email protected] ) [7] => Array ( [0] => [email protected] [1] => [email protected] ...

Is there a class like Dictionary<> in C#, but for just keys, no values?

I guess another way to phrase this would be "Is there a class like List<> in C#, but optimized for checking whether a particular value is present?" I'm sure for a small set of values List<>.Contains would probably be fine, but what if I have a set of thousands or millions of values and wanted to find out whether a certain value was in it...

Is YAML suitable for storing records in a key value store?

I need to store records in a key value store, and I have considered XML, JSON, or YAML, and pretty much decided on YAML. However, I am wondering how this will perform when searching through millions of records as alot of text processing is needed. Would it be better to use individual keys for differents columns or use YAML. For example,...

Is there any legitimate use for bare strings in PHP?

This question got me thinking about bare strings. When PHP sees a string that's not enclosed in quotes, it first checks to see if it's a constant. If not, it just assumes it's a string and goes on anyway. So for example if I have echo $foo[bar]; If there's a constant called bar it uses that for the array key, but if not then it treat...

How to create uniqe key value in PHP?

How do I create unique key value in PHP? I need simple unique keys with a length of 20 digits (not more than 33). ...

Enter Key Press behave like Submit in JSF

How to make Enter Key Press behave like Submit in JSF. It works with InputBoxes; but not with inputSecret boxes ...

Encrypt Secret key

Hi, I'm working with google app application using java programming,in which i have consumer key and secret key,in programs i'm using the secret key directly but i wish to use encrypted secret key.Is it possible to use?Please Help me. Thanks Regards Sharun. ...

Changing keys in a "for ( keys %hash ) {}"-loop

Hello! I remember something about not changing the keys in a for my $key ( keys %hash ) { ... for example for my $key ( keys %hash ) { $key = "$key_x"; } But deleting keys and changing values would be fine. Are my memories OK? ...

How to use private key

Hi, In my search i found out that we can generate private key called myrsakey.pem.What is the purpose of this key where this key is used.Help me. Regards Sharun. ...

Locate RFID tag using iPhone

Hi all, I am looking into building an app (on my laptop to start) that would be able to locate the signal emitted by an RFID tag (non passive). Say I attach this to my key ring, what would be required of the application to triangulate the location of the RFID tag in a 10m range. Would this even be possible using this technology? I see s...

retrieve value from hashtable with clone of key; C#

I would like to know if there is any possible way to retrieve an item from a hashtable using a key that is identical to the actual key, but a different object. I understand why it is probably not possible, but I would like to see if there is any tricky way to do it. My problem arises from the fact that, being as stupid as I am, I creat...

I have a KVP Key value pair Table, Need sql to make it relational structure...!

I have a KVP Table and the structure is ID, Key, Value and below are the sample values.... Table with values ID , Key, Value 1 , STATUS, TRUE 1, AGE GROUP, 10 1, TRAVEL, Y 2 , STATUS, FALSE 2, AGE GROUP, 20 2, TRAVEL, N I want these date to transform as below (Output) ID , STATUS, AGE GROUP, TRAVEL 1, TRUE , 10, Y 2, FALSE, 20, N ...