Shortcuts: Change brightness to F1 and F2 key from
Good morning All.
The F1 and F2 keys on my Apple Wireless Keyboard no longer control the brightness settings for my LED Cinema Display. The shortcut has changed to F14 and F15. The keyboard itself still works fine - and the F1 and F2 buttons do still work. It's not a hardware issue. I'm on OS X 10.9.4. I've had this Mac Mini for 2 years, sometime in the last 10 days this shortcut changed.
I want to change the shortcut to F14/F15 to F1/F2 . I called Apple to ask how I could change the shortcut back to F1 and F2, but they did no know the answer. I've gone to Keyboard Settings/Shortcut/Display - and I see "Decrease display brightness" set to F14. Above that it says "To change a shortcut, select it, click the key combination, and then type the new keys" I could not figure out what that implied since I don't have an F14 or F15 button on my keyboard.
Thanks for anyone's help! I can barely use the screen now, too dark!
-Awatto1976
Thank you for articulating - same thing just happened to me today...out of no where. No changes made... but brightness F1 and F2 keys stopped working. After reading your post, found they got remapped to F13 + F14. Trying BTT and other remapping apps w/no success.
Any updates?
Similar Messages
-
Which option do I have to select If I buy the latest iPad with cellular feature for international use? If I choose verizon can I just change the sim card and insert one from another country?
I would guess you need the A1460 model
see here
http://www.apple.com/ipad/LTE/ -
Can't Adjust Brightness Using F1 and F2 Keys
My MBP was having difficulties starting up today (stalling at the grey screen w/ the Apple symbol) so I ran Disk Utility to repair, and everything seemed to be fine.
But now all the pre-set function keys are working save the F1 and F2 keys. I've tried pressing the fn keys before, but I am still not able to adjust the brightness. I also tried resetting the PRAM, but that did no good either. Currently, all the other function keys are doing their pre-set commands -- I didn't change any of them. What can I do to get the F1 and F2 keys working again?
Thanks!My guess is that something you've installed is playing havoc with your system. When you reinstalled Lion you probably didn't do a clean install, thus the problem continued. Try creating a new user, then work in that acoount for a while. If the problem stops, you know the problem exists in your user account only. If the problem continues, its system wide and will require a clean install and reinstallation of your software.
-
How to get object type and object key from Bapi_acc_gl_posting_post
Hi,
Currently iam implementing FB01 transaction thru Bapi_acc_gl_posting_post.
I got object key by including document no, fiscal year and Document data
I got object type from TTYP table. But iam not sure it is correct.
After implemeting the BAPI return code is giving successfull and i commited the process.
But at last data is not updating in BKPF table. There is no document number displayed at BKPF...Please go thru and do the needful its urgent.
Thanks in advance....
Regards,
GangaHi Max,
I have executed it and it is working only for GL posting but i need to make this for different accounting types like vendors, customers, material customers etc.
I found BAPI_ACC_DOCUMENT_POST. when i executed it is giving error as 'Line entered several Times'.
I following is my code. If time permits please go thru my code and do the need ful..
Thanks in advance.
REPORT zk_fi_fb01 .
Data: v_objkey(20) type c.
Data: Docheader type BAPIACHE09.
Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
ACCOUNTRECEIVABLE like BAPIACAR09,
ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
RETURN like BAPIRET2 occurs 0.
Data: obj_typ like BAPIACHE09-OBJ_TYPE,
OBJ_KEY like BAPIACHE09-OBJ_KEY,
OBJ_SYS like BAPIACHE09-OBJ_SYS.
*Data: gv_belnr type belnr_d.
*Data:file_Na type String.
Data: lsys like TBDLS-LOGSYS.
*START OF SELECTION
START-OF-SELECTION.
*CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '19'
object = 'RF_BELEG' "'FIAA-BELNR'
QUANTITY = '1'
SUBOBJECT = '7777'
TOYEAR = '2007'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = gv_belnr
QUANTITY =
RETURNCODE =
*CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
OWN_LOGICAL_SYSTEM = lsys
EXCEPTIONS
OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1
OTHERS = 2
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*concatenate gv_belnr '7777' '2007' into v_objkey.
*Filling Document Header Details
*Docheader-OBJ_TYPE = 'BEBD'.
*Docheader-OBJ_key = V_objkey.
*Docheader-OBJ_SYS = lsys.
docheader-BUS_ACT = 'RFBU'.
Docheader-USERNAME = sy-uname.
Docheader-COMP_CODE = '7777'.
Docheader-DOC_DATE = '20070724'.
Docheader-PSTNG_DATE = '20070725'.
Docheader-FISC_YEAR = '2007'.
Docheader-DOC_TYPE = 'KZ'.
*Item data for ACCOUNTGL
ACCOUNTGL-ITEMNO_ACC = '0000000001'.
ACCOUNTGL-GL_ACCOUNT = '0000000501'.
ACCOUNTGL-DOC_TYPE = 'KZ'.
ACCOUNTGL-COMP_CODE = '7777'.
ACCOUNTGL-FISC_YEAR = '2007'.
ACCOUNTGL-PSTNG_DATE = '20070725'.
*ACCOUNTGL-DE_CRE_IND = 'S'.
append ACCOUNTGL.
ACCOUNTGL-ITEMNO_ACC = '0000000002'.
ACCOUNTGL-GL_ACCOUNT = '0000400002'.
ACCOUNTGL-DOC_TYPE = 'KR'.
ACCOUNTGL-COMP_CODE = '7777'.
ACCOUNTGL-FISC_YEAR = '2007'.
ACCOUNTGL-PSTNG_DATE = '20070725'.
*ACCOUNTGL-DE_CRE_IND = 'H'.
append ACCOUNTGL.
*Account payable
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
ACCOUNTPAYABLE-COMP_CODE = '7777'.
append ACCOUNTPAYABLE.
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
ACCOUNTPAYABLE-COMP_CODE = '7777'.
append ACCOUNTPAYABLE.
*Currency Amount
CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
Append CURRENCYAMOUNT.
CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
Append CURRENCYAMOUNT.
clear CURRENCYAMOUNT.
clear ACCOUNTGL.
clear ACCOUNTPAYABLE.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = Docheader
CUSTOMERCPD =
CONTRACTHEADER =
IMPORTING
OBJ_TYPE = obj_typ
OBJ_KEY = obj_key
OBJ_SYS = obj_sys
tables
ACCOUNTGL = ACCOUNTGL[]
ACCOUNTRECEIVABLE =
ACCOUNTPAYABLE = ACCOUNTPAYABLE
ACCOUNTTAX =
currencyamount = CURRENCYAMOUNT
CRITERIA =
VALUEFIELD =
EXTENSION1 =
return = return.
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.
endif.
if sy-subrc = 0.
WRITE: / OBJ_KEY,
OBJ_TYP,
OBJ_SYS. -
Ssh keys and gnupg keys from wiki instructions...
following first the gnupg instructions and then ssh keys I've managed to get several instances of gpg-agent running.
[root@frylock ~]# ps aux | grep agent
root 2764 0.0 0.0 4208 432 ? Ss 11:15 0:00 ssh-agent
xtian 2785 0.0 0.1 3500 972 ? Ss 11:18 0:00
gpg-agent -s --enable-ssh-support --daemon
--write-env-file /home/frylock/xtian/.gnupg/gpg-agent.env
root 2958 0.0 0.0 3168 688 ? Ss 11:39 0:00
gpg-agent -s --enable-ssh-support --daemon
--write-env-file /root/.gnupg/gpg-agent.env
root 3036 0.0 0.0 4740 392 ? Ss 11:43 0:00 gpg-agent --daemon
root 3186 0.0 0.0 4740 388 ? Ss 11:53 0:00 gpg-agent --daemon
root 3299 0.0 0.0 4740 388 ? Ss 11:58 0:00 gpg-agent --daemon
root 3549 0.0 0.0 4740 392 ? Ss 12:54 0:00 gpg-agent --daemon
This I can resolve by going back over the instructions--a fifth time. But what I don't understand, why my user account owner of a running process when I'm only logged in one tty as root?
//EDIT: Clarify the login scenario
// EDIT: the code block is cutting off line
Last edited by xtian (2013-09-07 14:20:00)xtian wrote:
cfr wrote:For example, I don't include the code in ~/.xinitrc or in /etc/profile.d precisely because I'm starting the agent somewhere else.
That's just it. I'm not starting it somewhere else. According to the wiki, its being called from .xinitrc and that's where the call is made to the script in profile.d, I think. Unless the script in /etc/profile.d is starting the script automatically?? I don't know.
Yes. The script you have in /etc/profile.d will start it automatically. I have a similar script in /etc/kde/env and that is all I use. I don't need anything in ~/.xinitrc (or kde's autostart stuff or whatever). At least, this is true provided those scripts are sourced. What you definitely do not want is the line you currently have in ~/.xinitrc which does not check to see if an instance of gpg-agent is already running.
This is what I use:
$ cat /etc/kde/env/gpg-agent-startup.sh
#!/bin/sh
# see https://wiki.archlinux.org/index.php/SSH_Keys
GPG_AGENT=/usr/bin/gpg-agent
## Run gpg-agent only if not already running, and available
if [ -x "${GPG_AGENT}" ] ; then
# check validity of GPG_SOCKET (in case of session crash)
GPG_AGENT_INFO_FILE=${HOME}/.gpg-agent-info
if [ -f "${GPG_AGENT_INFO_FILE}" ]; then
GPG_AGENT_PID=`cat ${GPG_AGENT_INFO_FILE} | grep GPG_AGENT_INFO | cut -f2 -d:`
GPG_PID_NAME=`cat /proc/${GPG_AGENT_PID}/comm`
if [ ! "x${GPG_PID_NAME}" = "xgpg-agent" ]; then
rm -f "${GPG_AGENT_INFO_FILE}" 2>&1 >/dev/null
else
GPG_SOCKET=`cat "${GPG_AGENT_INFO_FILE}" | grep GPG_AGENT_INFO | cut -f1 -d: | cut -f2 -d=`
if ! test -S "${GPG_SOCKET}" -a -O "${GPG_SOCKET}" ; then
rm -f "${GPG_AGENT_INFO_FILE}" 2>&1 >/dev/null
fi
fi
unset GPG_AGENT_PID GPG_SOCKET GPG_PID_NAME SSH_AUTH_SOCK
fi
if [ -f "${GPG_AGENT_INFO_FILE}" ]; then
eval "$(cat "${GPG_AGENT_INFO_FILE}")"
eval "$(cut -d= -f 1 "${GPG_AGENT_INFO_FILE}" | xargs echo export)"
export GPG_TTY=$(tty)
else
eval "$(${GPG_AGENT} -s --enable-ssh-support --daemon --pinentry-program /usr/bin/pinentry-qt4 --write-env-file)"
fi
fi
In any case, your script should check for the environment file and only start an instance of the agent if it doesn't exist.
I'ts not my script. I'm not up on BASH scripts. This one is from the wiki page. Isn't this script checking just that in this IF clause:
if test -f "$envfile" && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then
eval "$(cat "$envfile")"
Yes. But the line you have in ~/.xinitrc does NOT check this. It just starts an instance of gpg-agent as a daemon. -
Can't change song options a and then disappears from library
I am importing audio books into my iMac (Leopard). I just updated to iTunes 8. When I import a cd, I go into info to change some of the options like from music to audiobook, compilation>no, remember position>yes, etc. When I do that, as it is "changing" all of the files, it's deleting them at the same time (just from the library, not the computer). I can't ad them back in. It acts like it's adding them, but nothing appears. The only way to get them back is to delete the library and add everything in the library folder back. Any suggestions?
Dave
in MaineI bought my daughter a MacBook Pro when she went away to college, and I then transfered my music collection from my computer into her iMac (which she no longer uses, so I do). Like xLegend above, I cannot change the info on the songs on the iMac.
The collection consists of songs I bought at the iTMS to a small degree, and songs I have ripped from my CD collection to a larger degree. There are also a number of songs that I have composed myself using Pro Tools and GarageBand, and I cannot change the info even on those...
Does anyone have an idea why this is, and how I can reclaim the ability to change information on the songs in my collection? Thank you for your help.
-Patrick -
Changing customer contact information and seeking help from customer care centre
Over the past few days I have tried to change my email contact address for CC. Have made the change and pressed the button to have a verification email sent. Nothing gets to me. The account works and nothing is showing up even in my junk box. Have then tried to contact the Customer Care Centre... What product? Adobe Creative Cloud. What topic do you need help with? > Sorry. No data available for this product at this time. Catch 22. One might be tempted to say "typical". Not that tempted yet.
Hi Kelli,
It was wonderful of your mother to purchase a Samsung Smart TV for you and I hope that you had a wonderful trip! It is truly disheartening to hear of the damage you state you found when you returned from your trip out of the country.
Per our Return & Exchange Promise and assuming your mother falls under the standard 15 day return and exchange period, unfortunately we wouldn't be able to exchange this TV due to it being beyond the 15 day timeframe, but also as damaged items are considered nonreturnable. I apologize if this news causes you any dismay.
With that said, if your mother should like to reach out as she is the original purchaser, I would be delighted to discuss this further with her. She may either register with the forum to either send me a private message or by sending an email to [email protected] with "Attn: Tasha" in the subject to ensure it reaches me in a timely manner.
Respectfully,
Tasha|Social Media Specialist | Best Buy® Corporate
Private Message -
Change calendar start time and also show from Sunday-Saturday
HI All,
Is there any way to have the calendar in CRM show from 7am-6pm instead of 8am-6pm? I can't seem to find a way to do this. Also can I change the week calendar to show Sunday-Saturday instead of Monday-Sunday?
thanks,
TomHi Tom,
Your info helps me a lot also.
Especially for your second question about start day of the week.
There is also an attribute for the chtmlb tag for dateNavigator: firstDayOfWeek.
When tracing this attribute, I found that in current standard system, this is effected by a badi.
Badi definition: CALENDAR_DEFINITION
Current standard implementation class: CL_ISO_CALENDAR_DEFINITION
method IF_CALENDAR_DEFINITION~GET_FIRST_DAY_OF_WEEK
coding is
weekday = if_calendar_definition=>c_monday.
You may try to change it to
if_calendar_definition=>c_sunday
Regarding your comments "Just wish the starting day for the week will be as easy", this requirement has been raised to product management team in 2008. But don't know when it will be realized. :P
Hongyan -
Regenerate the security files : SecStore.properties and SecStore.key
Hello Expert,
I have a big issue because I lost the both files : SecStore.properties and SecStore.key from the directory /sapmnt/SID/global/security/data. I tried to regenerate the SecStore.properties from another instance. And when I tried to connect via Configtool I have the following error message : The encryption key (usually in the key files) is
not the key that is required to decrypt the data in the secure store file or the system name is wrong (SID).
I think that the idea is to generate the new key file.
Could you please help me to find a solution to solve this issue.
Many thanks in advance for your greatfull help.
Regards
SanCheck this out, though it doesn't directly address your problem. It should definately give you more insight.
http://help.sap.com/saphelp_nw04/helpdata/en/cd/14c93ec2f7df6ae10000000a114084/frameset.htm -
How to change the full host and domain name on OS X Leopard...
I recently bought an iMac, and I'm trying to configure it for my network. The question I have is, how can I change the host name and domain name from Skuld.local to skuld.tolharadys.net?
After mucking around with a few searches on Google, I've gotten the domain name to stick since running domainname returns tolharadys.net. Also I can change the hostname as reported by 'hostname' temporarily by running 'hostname skuld.tolharadys.net' in Terminal.app. However, this isn't persistent after reboots. Ideas are welcome.You would need a DNS server on your network configured to answer authoritatively for that particular subdomain.
-
How to find modulus(n) and public key exponent(e)Sor
I did the following code:
import java.security.*;
class keypair
public static void main(String args[])
try {
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
keyGen.initialize(1024);
KeyPair keypair = keyGen.genKeyPair();
PrivateKey privateKey = keypair.getPrivate();
PublicKey publicKey = keypair.getPublic();
System.out.println(publicKey);
catch (java.security.NoSuchAlgorithmException e) {
}It produced the following output:
E:\java>java keypair
Sun RSA public key, 1024 bits
modulus: 104598424699919432698042124865237006532583108525971624656815039032375
*68185931249899603942873174007833898125332457427834491991685017307342129730049040*
*85039266578793603162921901877391682504673766949037045217194339504369288262569809*
*64618725280325930282787918761626276736975012559809247463223114702205350103039131*
public exponent: 65537
How to parse modulus(n) and public exponent(e) from this output?
Similarly when i print private key, it produces the following output:
E:\java>java keypair
Sun RSA private CRT key, 1024 bits
modulus: 124578817060208658480856678950235831207402457067036419284514
*60119309486714863949162442643168408523979997168613499493638925829235693238993015*
*36861462235708805467117179894466762970147852286192228334073408407380525883650965*
*26200137024900438305422984852314541271126647102071346646999343089444655087519613*
*147762713*
public exponent: 65537
private exponent: 938527844532658207604152892230342202756165450473898580852699
*91069268853864683730106242370135012901790500054313488639918623825755509450966957*
*25996151023641565209086629652161258725723528561744214714448113895688480371394495*
*69970533766968335232379493089928062691491508442909468663624841001227918721233934*
*90451285*
prime p: 128112715803862066344339615342766575233634768887073748611821
*70613165835421234259251719401979554816266892921739504796026180704477109334458578*
*924582228715587*
prime q: 972415706579323990162180646771186062588725555167352041581263
*11833654947284058644791019214876691698044764118648637510099163830088827138987158*
*06445271350899*
prime exponent p: 102053075991522697645186596252261651077210381075096084960080
*01572103324900452503753532555651687424478224695551102238145517644352533224205327*
*850477437666141*
prime exponent q: 668659136319899226645386130685620335239039277715133737489656
*56694442226518700929665796129185316864860876985624927131126216000167126890435269*
*81971346772483*
crt coefficient: 337801534982286124613379128447816812903646302193598735486466
*78634104811105616496519276355880320340688935923186965279527763125244878069735173*
*60542121091569*
E:\java>
From this output how to parse n and d, where d is the secret exponent or decryption exponent? Thanks in advance. Apologies, for posting in this forum instead of cryptography forum.
Edited by: sowndar on Nov 28, 2009 3:12 AMsowndar wrote:
From this output how to parse n and d, where d is the secret exponent or decryption exponent? Why do you think you need to parse anything? Why do you need the modulus and exponents?
P.S. Extract the public and private keys from the key pair, cast them to RSAPublicKey and RSAPrivateKey as appropriate then look at the methods of classes RSAPublicKey and RSAPrivateKey to see how to get modulus and exponents. -
Writing and retrieving RSA keys from a file
Hello all,
I'm trying to write a generated RSAPublicKey and RSAPrivateKey to a file, and then, later retrieve them.
I thought I could use ObjectInput/OutputStream to do that, but when I do so I get the exception java.io.NotSerializableException: java.io.ObjectOutputStream
(I'm surprised, because RSAPublic/PrivateKey are serializable, aren't they ?).
If this is not the way to do it, I do not know how (no key constructor reading from byte [] ...).
Can somebody please help me ?
Thanks,
Axelle.Hi,
Can we generate public and private keys from fingerprint?
where can i find a piece of code to view how it is.
Thanks,
Ganesh -
Need help with generating keys from xml
Hello,
I am just learning about JCE and am haveing some problems with implementing a basic program.
I have the following information:
<RSAKeyValue>
<Modulus>Base64EncodedString</Modulus>
<Exponent>Base64EncodedString</Exponent>
<P>Base64EncodedString</P>
<Q>Base64EncodedString</Q>
<DP>Base64EncodedString</DP>
<DQ>Base64EncodedString</DQ>
<InverseQ>Base64EncodedString</InverseQ>
<D>Base64EncodedString</D>
</RSAKeyValue>
From which I need to construct a public and private key. I am using RSA algorithm for the encrypting and decrypting. I am using the org.bouncycastle.jce.provider.BouncyCastleProvider provider. Any help would be greatly appreciated.
My questions are:
1) Is it possible to create the public and private key from this data?
2) How can I construct a public and private key from this data.
Thank you in advance.
Sunit.Thanks for your help...I am still having problems.
I am now creating the public and private keys. I am generating the public exp, modulus, private exp, and the encrypted text from another source.
so my questions are:
1) How do I verfiy that the private and public keys that I generate are valid?
2) How do I get the decrypted text back in a readable form?
3) the decrypted text should read "ADAM"
Here is a test I wrote:
_________________STARTCODE_____________________
import java.security.*;
import java.security.spec.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.math.BigInteger;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
public class CryptTester
protected Cipher encryptCipher = null;
protected Cipher decryptCipher = null;
private KeyFactory keyFactory = null;
protected PublicKey publicKey = null;
protected PrivateKey privateKey = null;
private RSAPublicKeySpec publicKeySpec = null;
private RSAPrivateKeySpec privateKeySpec = null;
public CryptTester()
/* Create Cipher for asymmetric encryption (
* e.g., RSA),
try
encryptCipher = Cipher.getInstance("RSA", "BC");
System.out.println("Successfully got encrypt Cipher" );
decryptCipher = Cipher.getInstance("RSA", "BC");
System.out.println("Successfully got decrypt Cipher" );
keyFactory = KeyFactory.getInstance("RSA" , "BC");
System.out.println("Successfully got keyFactory" );
}catch ( NoSuchAlgorithmException nsae)
System.out.println("Exception1: " + nsae.toString() );
catch ( NoSuchPaddingException nspe)
System.out.println("Exception2: " + nspe.toString() );
catch ( java.security.NoSuchProviderException nspe)
System.out.println("Exceptiont6: " + nspe.toString() );
/* Get the private and public keys specs
BigInteger publicMod = new BigInteger ("86e0ff4b9e95bc6dcbfd6673b33971d4f728218496adcad92021923a9be815ddb7ecf17c06f437634c62fa999a293da90d964172a21d8ce74bd33938994fbd93377f7d83ce93d523782639c75221a3c91b53927a081b2b089a61770c6d112d78d5da8a6abc452d39a276787892080d6cf17dd09537c1ec5551d89567345068ef", 16);
BigInteger publicExp = new BigInteger ("5");
BigInteger privateExp = new BigInteger ("50ed65fa2bf3710ead980a456b88dde62de4e0e9", 16);
publicKeySpec = new java.security.spec.RSAPublicKeySpec( publicMod, publicExp );
privateKeySpec = new java.security.spec.RSAPrivateKeySpec( publicMod, privateExp);
try
privateKey = keyFactory.generatePrivate(privateKeySpec);
publicKey = keyFactory.generatePublic(publicKeySpec);
}catch ( InvalidKeySpecException ivse)
System.out.println("Exception3: " + ivse.toString() );
try
* initialize it for encryption with
* recipient's public key
encryptCipher.init(Cipher.ENCRYPT_MODE, publicKey );
decryptCipher.init(Cipher.DECRYPT_MODE, privateKey );
}catch ( InvalidKeyException ivse)
System.out.println("Exception4: " + ivse.toString() );
public String getPublicKey()
//return new String(publicKey.getEncoded());
return publicKey.toString();
public String getPrivateKey()
// return new String(privateKey.getEncoded());
return privateKey.toString();
public String encryptIt(String toencrypt)
* Encrypt the message
try
byte [] result = null;
try
result = encryptCipher.doFinal(toencrypt.getBytes());
catch ( IllegalStateException ise )
System.out.println("Exception5: " + ise.toString() );
return new String(result);
}catch (Exception e)
e.printStackTrace();
return "did not work";
public String decryptIt(String todecrypt)
* decrypt the message
try
byte [] result = null;
try
result = decryptCipher.doFinal(todecrypt.getBytes());
catch ( IllegalStateException ise )
System.out.println("Exception6: " + ise.toString() );
return new String(result);
}catch (Exception e )
e.printStackTrace() ;
return "did not work";
public static void main(String[] args)
try
Security.addProvider(new BouncyCastleProvider());
CryptTester tester = new CryptTester();
String encrypted = "307203c3f5827266f5e11af2958271c4";
System.out.println("Decoding string " + encrypted + "returns : " + tester.decryptIt(encoded) );
} catch (Exception e)
e.printStackTrace();
_________________ENDPROGRAM_____________________ -
How can I use the F14 and F15 key for a shortcut?
Hi folks,
I've been trying to assign custom shortcuts to the F14 and F15 keys of my keyboard (wired, full sized type) on my Mac Pro 2008 running Mac OS X Lion 10.7.2 however every time I try to assign those keys to an app's "Record a shortcut" function I get the same error dialog from the OS:
The key combination F15 can't be used!
The key combination "F15" can't be used because it's already used by a system-wide keyboard shortcut. (If you really want to use this key combination, most shortcuts can be changed in the Keyboard & Mouse panel in System Preferences.)
(note: the same happens with F14, F13 and lower as well as F16+ work fine however)
I have looked into my system settings as the dialog suggests however there isn't a single shortcut that uses F14 or F15 anywhere in any of the shortcut groups.
If any of you have an idea of how I could "clear" or even just find out what these keys are currently being used for/by that would be super… they don't seem to do or trigger anything when I press them.
Here is another screenshot of the issue:
Note: This is not app specific, I've tried this in various apps and every time I get the same Mac OS popup.
Thanks for reading,
I look forward to your ideas and insights!Hi,
Use the step reference to get a PropertyObject reference using the Step.AsPropertyObject. With this PropertyObject reference you can then get the values of Limits.High and Limits.Low using the PropertyObject.GetValNumber() method.
Limits.High and Limits.Low will be the lookup string for the PropertyObject.GetValNumber() method.
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer -
G530, Installed Windows 7 and Fn keys no longer can control brightness
Hello, I recently installed windows 7 on my Lenovo G530 and while most of the fn keys still work, the ones controlling the screen brightness do not:
G530-444625U
http://www.newegg.com/Product/Product.aspx?Item=34-146-556&SortField=0&SummaryType=0&Pagesize=10&Pur...
I hope there is some driver update I can do to remedy this. I assume I need to download the appropriate drivers, but can't figure out which ones that would be after trying a few on the "Lenovo G530 (4446)" driver download page.
Thanks
Solved!
Go to Solution.Fixed it!
Found the solution here:
http://forums.lenovo.com/t5/Lenovo-3000-and-Essential/G530-cannot-change-brightness-on-Windows-7-Pro...
Maybe you are looking for
-
Pavilion dv6-1230us Black Screen after installing Windows 7...Please Help
Hi, I recently installed Windows 7 and everything was working fine until my computer went into hibernation. Before this, I installed all the drivers and software from the HP website for my computer for Windows 32 bit setup. After my computer went
-
Process Workspace-11.1.1.6.0 template customization
On our project, we want to access BPM workflows using WebCenter Process Spaces, since we want to use the collaboration capabilities of WebCenter. This is approximately (unfortunately, I cannot attach a screenshot to a thread) how a space created usin
-
Delimited format rwrun60.exe error
I am trying to run reports in a delimited format to import into excel I continually get a dr watson error in RWRUN60.exe I can run a html, pdf, and rtf without a problem The error in the server log is server engine crash rep60_server Reports 6i. Winn
-
Delete all the objects in a package
Hi Guys, My requirement is that i need to write a program to delete all the objects in a package. In the selection screen i enter the package name and then i get all the objects in the package from TADIR table and display them in an ALV. There when i
-
Youtube msg. plug in failure
Lately most of you tube videos come with MSG plug-in failure. I did download new flip for mac, as well adobe flash player, with no luck. Any suggestion from this great comunity will be appriciate. Best, Dan.