This problem has been kicking my butt for a few days now.
I have a web service that serves XML that looks like this:
<levels>
<level>Level 1</level>
<level>Level 2</level>
<level>Consulting</level>
<level>Office Support</level>
<level>Learning</level>
</levels>
This data needs to go into an entity in my Core Data ...
Are indices (indexes) defined as UNIQUE case sensitive in MySQL?
...
I am generating associative arrays and the key value is a string concat of 1..n columns.
Is there a max length for keys that will come back to bite me? If so, I'll probably stop and do it differently.
...
Hi,
I'm new to WPF.
I have like 15 grids on my Window and I have a small menu on which I can click and choose which grid to show up or hide. One grid at a time only. I would like that grid to hode (fade out) when I hit ESC. I have all the animations already, I just need to know what grid is visible (active) at the moment.
I don't know h...
I am looking for a way to have my control key and caps-lock key switched when I am in the emacs window, but when I go to any other program such as Firefox I want to be able to use the normal control button for new windows, tabs and such.
Additional Information: I am using Ubuntu, but answers for all systems are good since someone else m...
Hi, I need custom behavior for tab keys in RichTextEdit control.
Currenty the best I have is this:
editBox.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.field_PreviewKeyPress);
private void field_PreviewKeyPress(object sender, PreviewKeyDownEventArgs e)
{
switch (e.KeyCode)
...
Years ago, I created a data base in MS Excel to keep track of my photographs. The way I designed it was as follows. I had a master sheet that had a primary key with a sequenctial number ID for every photo. Then I had several sheets in the workbook that contained specific photos of the same subject, e.g. landscapes (LS), seascapes (SC)...
Is there a way to capture multimedia keys from a web site?
...
Summary:
I have a table that has a uique primary key identifying each record. I also have three more fields that can identify a record:
Category
CategoryNumber
DuplicateNumber
When I add a new record and choose the Category, how can I get CategoryNumber to increment correctly based on whether it is a duplicate or not.
Note that thi...
I want to write a function like so,
public System.Windows.Input.Key ResolveKey(char charToResolve)
{
// Code goes here, that resolves the charToResolve
// in to the Key enumerated value
// (For example with '.' as the character for Key.OemPeriod)
}
I know I can write a huge ...
This a wider question than my previous one but related.
I want to implement oldish crypto systems in Ruby such as ADFGVX, VIC cipher and others, mostly for fun. These cryptosystems are built on top of more general systems like substitution (monoalphabetic such as Caesar or polyalphabetic like Vigenere) and transposition (simple, double...
If I intercept a key press using win32 calls, I now have a key code. Is there a way to convert that to a System.Windows.Forms.Keys value?
...
G'day all,
I have a console project where it is intended the user presses the keyboard direction keys (non-numeric keypad) to move an avatar. I am having difficulty coding to check for the press of these keys. In Pascal it was easy enough to use "readkey" and code, for example, for #80 for the down keypress. However, I am stumped how t...
G'day all,
After learning on here that the Java console doesn't support keyboard input a great deal, I switched to Swing and AWT. My problem now is how to detect when the keyboard direction keys (non-numeric keypad) are used. My code (below) does not do more than print a "small box" character when pressing the down, up, left, right key...
Hello,
I am using an api which takes a name of 21 char max to represent an internal session which has a lifetime of around "two days". I would like the name not to be meaningfull using some kind of hasing ? md5 generates 40 chars, is there something else i could use ?
For now i use 'userid[:10]' + creation time: ddhhmmss + random 3 cha...
I have an object that I want to use to look up other objects. I will be using a Dictionary<TKey, TValue>().
The key object has two strings that uniquely identify it, say KeyObj.Str1 and KeyObj.Str2.
What do you recommend that I use as the key for the dictionary?
1: The concatenation of the strings.
Dictionary<String, TValue>();
Key...
NHibernate doesn't require too much decoration of POCOs, but having to put surrogate keys in my domain objects makes me feel a bit ill. Call me over-zealous - I'd prefer 'ideologically consistent' - but my domain objects should surely work with natural keys and not have to resort to surrogates.
I don't mind using surrogates in my databa...
In ActionScript 3, is there any convenient way of determining if an associative array (dictionary) has a particular key?
I need to perform additional logic if the key is missing. I could catch the undefined property exception, but I'm hoping that can be my last resort.
...
I have an string array filled with words from a sentence.
words[0] = "the"
words[1] = "dog"
words[2] = "jumped"
words[3] = "over"
words[4] = "the"
words[5] = "wall."
words[6] = "the"
words[7] = "cat"
words[8] = "fell"
words[9] = "off"
words[10] = "the"
words[10] = "house."
etc.
(Stupid example, but it works for this)
Each word will be ...
How can I convince that id_dsa is not stored in ~/.ssh when connecting to one particular host.
The obvious question is why. The answer is this key is more sensitive and needs to be password protected while the other is used for automation.
While this is not a programming problem, I would not be surprised to learn this requires a progra...