key

Is the primary key automatically indexed in MySQL?

Do you need to explicitly create this or is it implicit when define the primary key? Is the answer the same for MyISAM and InnoDB? ...

Is it possible to handle up/down key in HTML input field?

I am building a autocomplete feature for input text field. Currently I could use mouse click to choose the selection, I'd like to add keyboard control to allow autocomplete control. I monitored the keycode in onkeyup event, it appears for up/down key, the key codes are both 0. I am wondering whether there is any better way to do so. T...

RSA pubkey file type detection

Hi all! I got a RSA pubkey.dat (almost obvious what it is) that has the following structure on contents: ASN1 Integer of around 1024 bits (Modulus) ASN1 Integer (Exponent) Blob of 256 bytes (Signature) No tags like "----begin---" or so. pure hex values in it. There's any way to identify its format like if it's DER/PEM/etc , so i ca...

[Stanford iTunes U] NSMutableDictionary question

NSMutableDictionary *bookmarks = [NSMutableDictionary dictionary]; [bookmarks setObject:[NSURL URLWithString:(NSString *) @"http://stanford.edu"] forKey: @"Stanford University"]; [bookmarks setObject:[NSURL URLWithString:(NSString *) @"http://apple.com"] forKey: @"Apple"]; [bookmarks setObject:[NSURL URLWithString:(NSString *) @"http://...

How do I feed OpenSSL random data for use in ECDSA signing?

I want to feed OpenSSL specific data for use as random seed during the signing of data with an EC key. I'm doing this to compare my application with another reference one (closed source). That utility takes the file with private key, file with data to sign and file with random data as parameters. I've got the generation of EC keys, and ...

Records linked to any table?

Hi Im struggling a bit with this and could use some ideas... Say my database has the following tables ; Customers Supplers SalesInvoices PurchaseInvoices Currencies etc etc I would like to be able to add a "Notes" record to ANY type of record The Notes table would like this NoteID Int (PK) NoteFK Int NoteFKType Varc...

Curses getting arrow keys

In trying to get input from the arrow keys via curses (ncurses) it won't catch as KEY_UP etc. I used the keypad function with a true argument but getch still returns an escaped sequence. How do I sift through the values returned by getch() and grab the arrow keys specifically? ...

How to used control Key in c#

F1- F12 And Ctrl + R and how to detect enter key in my textbox in keypress can someone example me please ...

Convert from .jks to passwordless .p12?

I have a java key store that contains a cert and private key. I want to convert this to a .p12 file that has no password. I'm using the .p12 in a shell script. ...

Commerce Server 2007: A duplicate value for unique key member GeneralInfo.Username found while building indices for profile

I found a couple other postings discussing this error, but my situation is slightly different than the others I've seen First let's get the platform/settings out of the way: * CS 2007 SP2 * Windows 2008 Server Standard x64 SP1 * Using the user name field instead of the email field. Field type is nvarchar. * User name is trimmed before...

Cryptography: best practices for keys in memory?

Background: I got some data encrypted with AES (ie symmetric crypto) in a database. A server side application, running on a (assumed) secure and isolated Linux box, uses this data. It reads the encrypted data from the DB, and writes back encrypted data, only dealing with the unencrypted data in memory. So, in order to do this, the app is...

Yast2 On Max Terminal

How do I sen the F1, F10 key to the terminal from Mac so my linux server know someone entered the F10 key and quit the screen?? ...

how to fetch the public key from public key server

i have stored my public key on the public key server .now i have to fetch/retrieve public key from that public key server using the python script/programme .how can i do this? also want to know the way how to execute gpg commands within my programme. ...

XSLT 2.0 External lookup using key() and document()

Hi, I'm pulling what's left of my hair out trying to get a simple external lookup working using Saxon 9.1.0.7. I have a simple source file dummy.xml: <something> <monkey> <genrecode>AAA</genrecode> </monkey> <monkey> <genrecode>BBB</genrecode> </monkey> <monkey> <genrecode>ZZZ</genrecode> </monkey> ...

XSL: Combining grouping and call-template

Hello, I've read with interest the techniques available on the web to extract a unique list of items from a XML file containing duplicates using XSL. These range into 2 categories: 1) The Muenchian method (example: http://www.jenitennison.com/xslt/grouping/) 2) Or the previous-sibling look-up These both rely on an XPath expression to s...

How to Modify a restricted registry key under HKCU in Vista programatically?

I want to modify a restricted registry key in Vista under HKCU hive programatically. Can anybody help me out in this regard? ...

Table's key pointing to its own table?

In this image, why is the EmployeeID pointing to it's own table while the order id is not pointing to the order's table. The screenshot is a picture of the northwind database. ...

Flex: Simulate key press

I'm creating a virtual keyboard for a touchscreen Flex app and i'm trying to simulate a key press by dispatching a KeyboardEvent. I've written a handler function to listen for the event and act accordingly. So far so good... but it's starting to get complicated as i have to manage the focused textInputs (easy), the cursor position in tho...

Nhibernate many-to-one Composite key - if null then fails? is many-to-one or none possible?

Hi Have the mapping as shown below. this is from a leagcy db so have no control over changing the structure. The File record in some circumstances will not have a link to the DISPLAY3 table. Every file has a link to the DISPLAY2 table. However if the File.DISPLAy3 field is null then is does not have a link to the DISPLAY3 only the DISPL...

How do I decrypt RSA data in C#.NET appropriately?

Hello. My server creates a RSACryptoServiceProvider and exports its parameters to a variable (RSAKeyInfo). Then, the public key is sent to the client, and the client encrypts something with that public key. Now, I need to be able to decrypt this very data when sent back to the server - hence why RSA is useful in my case. However, I g...