Handling special keys with no "up" code ?

Hello everyone,
I don't know where to post this, so I start here.
My laptop (samsung nc10) has Fn-keys that can be bound with xbindkeys, but some other don't send an "key released" or "up" signal, making them useless (because the kernel send auto-repeat for that key, leading to infinite loop when bound to this).
I would have an idea to fix this :
By simply adding an option "-noup" to "setkeycodes" so that the kernel would send the keyreleased automatically for those keys would do the trick.
Does anybody have an input for this ? Would that be possible ?
and Merry christmas

I think that first you should exhaust all possibilities for fixing this behavior at the kernel level.  If it's truly a hardware issue, where the hardware does not issue key up events, then I think that solutions like the one you have proposed are a good idea.  But if the problem is that the driver that handles these keys for some reason doesn't recognize the key up events from the keyboard, then I think the issue is best solved at the driver level.  This will allow the keys to work for everyone, even those who haven't figured out that some special xbindkeys command is needed to get the keys to work properly.

Similar Messages

  • How to replace special characters with html code characters automatically?

    A colleague and I work on these html pages. They eventually end up as emails, but we have the cold fusion server to pre process them. One thing we are trying to do is eliminate problems caused by unencoded copyright, trademark and smart quote symbols.
    How could I create an array of find / replace commands in the header so it processes the HTML with correct character codes.
    I"m not cold fusion aware, so any kind of starter info would be great. Eventually I might add more replacements to the array.
    As an example TM (font character) would process to ™ and a smart quote or apostrophe would process to a straight one. an en dash character would become –
    Because we copy paste from places, this often happens and it seems like cold fusion could solve the problem quickly and repeatedly all at once.
    thanks for any help
    -smick

    CF has a built in HTMLEditFormat function for handling <  &  > characters.  For handling trademark and smart quote characters you might try searching for a user defined function at http://cflib.org or writing a user defined function yourself that will handle the specific characters needed in your application.

  • I would like to uninstall my old CS5 Design Premium from my computer to reinstall it on another computer. What are the steps? Is there something special with the activation codes, etc?

    I would like to uninstall my old CS5 Design Premium from my computer to reinstall it on another computer. What are the steps? Is there something special with the activation codes, etc?

    You are allowed to have two activated installations, so if you prefer to you can keep ut on the current machine and just install it on the new one like you did originally.  If you wish to eliminate it on the other machine, the first thing to do is to deactivate it by opening a program in the suite and selecting Help -> Deactivate in the top toolbar.  That is all you need to do to disable the software.  At this point if you prefer to you can uninstall it if you like.
    As far as getting it on the new nmachine, as I just indicated, just install it like you did the first time.

  • Time-dependent Vendor Master & Handling Special Characters

    Hi,
    I need to extract time-dependent Vendor Master.
    1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
    2. Does the Master data in R/3 for Vendors will hold the valid date range?
    3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
    Handling Special Characters:
    We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
    Please help me getting the 2 issues resolved.
    Thanks in advance.
    Regards,
    Sudhakar.

    Hi Everyone,
    Thanks for inputs on Special characters issue...
    Finally resolved with below piece of code in the start routine:
    DATA: FLAG,
          OFF TYPE I,
          LEN TYPE I VALUE 1,
          ALLOWED_CHAR(95) VALUE
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
    'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
    CONSTANTS: C_CHAR VALUE '-'.
      LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
        DO.
          IF DATA_PACKAGE-/BIC/ZI_DESC CN  ALLOWED_CHAR.
            REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
                    DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
            FLAG = SPACE.
          ELSE.
            FLAG = 'X'.
          ENDIF.
          IF FLAG = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        MODIFY DATA_PACKAGE.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
    Regards,
    Sudhakar.

  • How to handle special characters in NWDI

    Dear All
    I am trying to update the Description from JSP form. Through JCO we are calling the RFC of ABAP. We are passing these description from Java to RFC of ABAP and this RFC update the text in Database.
    We have noticed that if there is some special character in description like as : š or ž, complete description is not getting updated in to the SAP database.
    Can anyone help me how to handle these special characters in Java. There may be N number of special characters. We want to generalize it. We want to replace these characters by s and z respectively.
    For example : We want to update this description.
    APPLERR H'4301 H'FA03 H'254C na Zagreb TC4 riješen je cleaning procedurom, te je i kroz CSR odgovoreno da trap korekcija N01TCADG-0052 u bloku UPDC više nije potrebna, te se može izbaciti (AP143).
    Uspješno su završene HR17/CN-A3 FOA-e na tranzitnom nivou, te slijedi roll-out u dva termina 12/13.04 i 19/20.04. ETK je na sastanku isporu&#269;io SW, te ALEX i mini PLEX za sve objekte.
    AP147. Poslati finalnu dokumentaciju za uvo&#273;enje paketa (implementacijsku instrukciju i sve popratne datoteke).
    WHile updated text is as follows :
    APPLERR H'4301 H'FA03 H'254C na Zagreb TC4 rije
    N01TCADG-0052 u bloku UPDC vi
    Uspje
    sastanku isporu
    AP147. Poslati finalnu dokumentaciju za uvo
    Regards
    Bhavishya

    Hi Bhavishya,
    Apparently your SAP database isn't configured to support Unicode. That would be the first solution to your problem, but I can imagine it's a bit drastic to convert your DB.
    A second solution would be to encode the input description to ASCII before storing it in the database. When reading from the database, decode again to Unicode. This way, no information is lost. A suitable encoding would be Base64. e.g.
    String description = "šunday žebra";
    String descriptionBase64 = new sun.misc.BASE64Encoder().encode(
      description.getBytes("UTF-8")); // ""
    // store descriptionBase64 in the DB
    // later, when reading descriptionBase64 from the DB
    String description2 = new String(
      new sun.misc.BASE64Decoder().decodeBuffer(descriptionBase64), "UTF-8");
    Instead of using Sun's implementation, a better alternative is to use the open source implementation
    org.apache.commons.codec.binary.Base64 from Commons Codec . 
    The 3rd approach is indeed to normalize the description by replacing all special characters with their ASCII equivalent. A rather easy solution is as follows:
    String description = "šunday žebra";
    String descriptionNormalized = sun.text.Normalizer.normalize(
      description, sun.text.Normalizer.DECOMP, 0).replaceAll(
      "[^p{ASCII}]", "");
    sun.text.Normalizer decomposes the string, e.g. "éàî" becomes "e´a`i^", after which non-ASCII characters are being removed using a regular expression.Again, note that it's usually a bad idea to use sun.* packages, see note about sun.* packages. The above code only works with J2SE 1.4 and J2SE 5.0, but it breaks in J2SE 6.0 (where
    java.text.Normalizer became part of the public API ;-). A good open source implementation can be found here: ICU4J (com.ibm.icu.text.Normalizer). 
    Kind regards,
    /Sigiswald

  • Handle special character in mapping

    Hi Experts,
    I have requirement to handle special character in mapping.
    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    FILE --- XI --- FILE where Source and target structures are same, using 1:1 mapping with FCC at both the side..
    Input/Output files consist of special charcters ö due to which getting error in mapping.
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java(Compiled Code))
    Do we required Java mapping? Is there any other way to acheive wtihout using Java mapping?
    How can we hadle in mapping?
    Sameer

    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    What has an ö to do with an ampersand?
    Assign the correct encoding to the file adapter channel.

  • Handle special characters in the attribute name

    Hi,
    I am generating different view element in WD application dynamically. How to handle special characters other than '-/ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789'  for the attribute name dynamically?
    Thank you, in advance.
    Trupti

    Going with the obvious response - don't use them?
    if you're using dynamic code, there is no reason (other than debug support) to give your created elements any meaningful name.
    Just generate a GUID for each new element and use that.
    If you need to be able to later search for and update the element a simple lookup table of GUID to reference string should work reasonably well.
    Cheers,
    Chris

  • No function key with apple wireless keyboard

    I recently purchased an Apple Wireless Keyboard. I have it working just fine with my macbook pro, and want to use keyboard special characters as a mouse because I'll be using my old laptop as a TV entertainment computer. The only problem is that the function key seems to not exist, which is crucial in order to use special keys as mouse movement keys. If I bring up the keyboard viewer and type with the wireless keyboard, the keyboard viewer shows the keyboard layout without a funciton key. I would expect something like this with a non-apple peripheral, but not a standard apple keyboard. What must be done to enable or have all of the keyboard's keys, function key in particular, recognized?
    BTW - I did apply the firmware update for the keyboard, but to no avail.
    OS X 10.5.8

    Hi mate,
    This worked for me:
    http://code.google.com/p/uawks/
    Cheers,
    Anthony

  • Error in PO Creation with Excise Tax Code

    Dear
    I am getting the following error while creating a PO (in sandbox) in MM.
    No posting rules exist for account key
    Message no. FF714
    Diagnosis
    No posting rules have been defined for the account key in the tax table in table T007B.
    Procedure
    Change the tax table, enter an account key already defined for the transaction in question or define the posting rules for a new account key in table T007B.
    In sand box, I am making use of VS1(Condition Type JMOP)(10%), VS2(Condition Type JAOP)(2%), VS3(Condition Type JSOP)(1%) & JP5 Condition Type JVRD)(4%)Account keys with deductible nature in one tax code V8.   In OB40 GLs are defined.  Posting keys 40 & 50 are given.  In GL master all tax types allowed * is also given.  Also excise data is maintained in the vendor master.
    I am not getting the above error if I make use of any other tax code with only one percentage and one condition type.  I am getting the above error if make use of the above tax code V8 which is created for excise.
    Inputs are hightly solicited.
    Regds

    Check this thread
    [No posting rules exist for account key|No posting rules exist for account key]
    Alternatively, check the following notes which may help you
    =>  Note 27350 - Missing account key
    =>  Note 32828 - Termination with FF714 when posting with FB01
    thanks
    G. Lakshmipathi

  • EXTERNAL OPERATION in a production order with  different company code plant

    Hi,
    in my case i am having a production order with  4 operations.
      0010 milling
      0020 winding
      0030 cutting
      0040 milling
    among this opearion 0030 i want to do it in a plant which is assigned to different company code than mine.
    in this case whether i should proceed with PP01 Control key  with opearion plant as that plant which is lieing in diffent company code or
    i should specify  PP02 control key saying that plant as an external vendor for me and do PR  and PO for that service .
    which should i follow for my case and how cost gets updated .

    Hi,
          For different company code, u have to specify PP02 in the routing for external vendor. In PP02 control key indicator must be set in external opn.
    Before that create purchase info record.
    Enter subcontract info record in routing.
    after running MRP , convert the PR to PO.
    Send the material by MB1B by 541 mvt
    Receive the material by MIGO  by 101 mvt.
    Regards,
    Raja sd

  • EMac optical drive: Reads but ceased writing.  I get "Sense key=MEDIUM ERROR, Sense Code=0x0C, WRITE ERROR.  Drive is Pioneer DVD-RW DVR-127D.

    eMac optical drive: reads fine but has ceased writing.  One day it's working fine, burning DVDs, then after repeated attempts stops copying and gives the following error message:  "Sense key=MEDIUM ERROR, Sense Code=0x0C, WRITE ERROR".  Drive is Pioneer DVD-RW DVR-127D.  Is this a software issue or is the drive half dead?  Get the same result with either Popcorn or Toast 10.

    Are you using Roxio Toast? That error seems to be discussed a lot in the Roxio forums. Scroll down this thread:
    http://forums.support.roxio.com/topic/1686-the-drive-reported-an-error-sense-key medium-error-etc/
    and you'll find a step-by-step troubleshooting scheme.

  • How to handle multiple clients with DatagramSocket

    I am trying to handle multiple clients with 1 datagramSocket bind to one port (basically I have only one port to use, and I can not use TCP or any other ports). At the server side I have two threads one for receiving packets and buffering them, another for processing the packets in the buffer and sending replies.
    I can have multiple clients sending datagramPackets to me and I will have to process the packets and send them to DIFFERENT clients. Ex. Client 1 sends datagramPacket to Server which sends the processed packet to Client 2. Also Client 2 sends a datagramPacket to Server which again processes the packet and sends it to Client1. May have Client 3 and 4 doing the same thing at the same time... and so on...
    My root class is creating the datagramSocket(somePort) and two threads (receiver and sender). How can I use the socket that I created in these two threads??
    I have done the following and I am getting "java.net.bindexception". When I am sending stuff from Client1 to Client2 everything is fine but when I start sending something from Client2 to Client 1, I get the bindexception... Client 1 is using port 3000, Client 2 is using port 4000.
    I really don't have a lot of experience in socket programming so I am not sure if there is a much simpler way to do this. I appreciate all the tips and help that I can get...
    Thanks...
    class UDP_serv
         static DatagramSocket udpSocket;
         final static int SERVER_PORT     = 2000;
         public static void main(String[] args) throws SocketException
              udpSocket= new DatagramSocket(SERVER_PORT);
              new DataReceiver().start ();
              new DataSender().start ();
         static class DataReceiver extends Thread
              DataReceiver()
                   Thread.currentThread().setName("DataReceiver");
              public void run()
                   while (true)
                        byte pckt[] = new byte [MaxMsgSize];          
                        DatagramPacket dp = new DatagramPacket (pckt, pckt.length);
                        try
                             udpSocket.receive (dp);
                             //PUSH TO RECEIVE BUFFER
                        catch(Exception e)
                             e.printStackTrace();
         static class DataSender extends Thread
              DataSender()
                   Thread.currentThread().setName("DataSender");
              public void run()
                   while (true)
                        processDataMsg();
          static void processDataMsg() 
             DatagramPacket op;
             InetAddress DA = null;
             int DP = 0;
             byte [] outPacket = null;
             // POP FROM RECEIVE BUFFER
             // SOME PROCESSING HERE     
             // Set Destination Address (DA)
             // Set Destination Port (DP)
             // DA and DP are the forwarding IP and Port addresses
             // not the addresses original packet was sent from.
             try
              op = new DatagramPacket (outPacket, outPacket.length,DA, DP);
              udpSocket.send(op);
             catch (IOException e)
              e.printStackTrace();
    }Also for development and testing purposes, I am running the two clients and the server on the same machine (windows xp-32b) so all of the Destination IP Addresses are 127.0.0.1. and as I said Ports that I am using are 2000, 3000, 4000 (Server, Client1, Client2).

    Hmm I have minimized the code and it seems to be working now.
    I think I have an error in the header portion of the data I am sending, where I am storing the source IP/Port and destination IP/Port. I think the server in the middle is messing these values up while sending them to the destination Client. Because the destination client actually receives the stuff and sends the reply back to the server, but the reply packet's headers has 0/0 as the dest IP / Port...
    Server is giving me java.net.BindException: Cannot assign requested address error when it tries to forward the reply it received from the client2 as the address it is trying to send is 0!
    I guess it doesnt just give this error when you try to open two sockets to the same port...
    Paul, Thanks for the direction on how to proceed... took me a while get the minimized code but at least figured out the problem. Well still have to make sure that is THE problem though :)
    As far as the statics goes how can I change those to non static ones? Where do I make an instance of the top level class that creates the threads? and how do I pass the DatagramSocket to the threads/ if I dont need to pass how do I call or use the datagramSocket I created in the top level class? I mean do I still kinda have it like a global variable on the top?? A very simple example would be much appreciated...
    I think these might be really basic questions but I am having a rough time with the hierarchy in java...

  • I have a MacBook Pro, Matshita UJ-857E while recording music my drive reported an error: Sense Key=HARDWARE ERROR Sense Code=0x03,0x01 I have no idea what this means, and now my cd burner/player won't work. can someone help me fix this problem?

    Please Help me. I am having problems with my MATSHITA UJ-857E DVD-R burner/writer. I burned 4 cd's and then it stopped working.
    I can select my songs, and then it asks for a blank disc. It starts preparing to write the disc,then it says,"
    The drive reported an error: Sense Key= HARDWARE ERROR Sense Code= 0x09,0x01 TRACKING SERVO FAILURE.
    Can anyone give me some advice on how to fix it or what this means because I have no idea what it is talking about or how to begin to fix the problem?

    tanyafrombakersfield wrote:
    It starts preparing to write the disc,then it says,"
    The drive reported an error: Sense Key= HARDWARE ERROR Sense Code= 0x09,0x01 TRACKING SERVO FAILURE.
    This is an error reported by the optical drive's firmware. The tracking servo is the servomechanism which guides the laser pickup along the track on the optical disc. The error means that the servo couldn't do its job within the programmed parameters. What it doesn't say is why.
    You have to be very precise as to when this error occurs. If it occurs as you wrote, while it "starts preparing to write the disc", and not when it has actually began to burn, then it's likely that the drive has gone bad and needs to be replaced.
    There are other possibilities, so you should check them, but they would be more likely if the error occurred after the drive began to write. OrangeMarlin has suggested two options -- try a different brand of CD or DVD, and try cleaning the lens.

  • Acquisition tax in Belgium/Germany-Posting with different tax codes

    Dear Friends,
    Does anyone have experience working with Acquisition tax in Belgium and German where the goods and services purchased within EU have 21% -input and output tax such that it is ZERO. But still Tax authorities need to see both input and output tax amount with different tax code such as under:
    Expense a/c Dr 100
    Payable a/c Cr 100
    Input VAT a/c Dr 21 - Tax code A1
    Output VAT a/c Cr 21 - Tax code B1
    Any help as to how to post the above entry and how to customize tax code to get the above result and any changes if required in country code tax calculation procedure will be greatly appreciated.
    Thanks,
    Pinky

    Hi Pinky,
    When you define your tax codes, the system defaults certain tax types that have been defined in the system for specific countries. Input tax, output tax, and non-deductible input tax are examples of tax types used in Germany.
    The system determines which tax types are to be displayed by means of the country key. A calculation procedure is specified for each country key, and this procedure contains the country-specific specifications for calculating and posting the different tax types.
    When you define the calculation procedure, you must answer the following questions concerning each tax type:
    What is the base amount for calculating the tax? This can be the expense or revenue amount or, as with sales equalization tax in Belgium, a tax amount.
    Which calculation type is used to determine the base amount: percentage included or percentage separate? With very few exceptions (such as for travel expense accounting in Germany), the base amount is normally determined percentage included.
    The tax amount is 15%.
    Percentage included
    Tax amount = invoice gross amount * (tax rate/100 + tax rate)
    150 = 1150 * ( 15 / 100 + 15)
    Percentage separate
    Tax amount = invoice net gross * tax rate/100
    150 = 1000 * 15 / 100
    To which side of the account must the tax amount be posted? The input and output tax is always posted in accordance with the G/L account and asset line items. For the tax to be posted additionally, the side of the account is determined depending on the input or output tax. For the acquisition and investment tax, for example, you post to the opposite side of the account.
    Should a possible tax expense be divided between the G/L account and asset line items or posted separately? If, for example, you have a non-deductible input tax amount, you can choose whether to post to a separate expense account or apportion the tax expense between the G/L account and asset line items.
    The type of tax calculation and posting depends on the answers to these questions and the combination of those answers.
    The following topics introduce individual tax types and explain the necessary specifications for calculating and posting tax. For more information on the calculation procedure, see The Calculation Procedure.
    See also:
    Tax on Sales/Purchases: Input and Output Tax
    Non-Deductible Input Tax
    Deferred Tax: Italy
    Sales Tax
    Use Tax
    Tax Calculation With or Without Jurisdiction Code?
    Entering Taxes with Jurisdiction Code
    Acquisition Tax
    Investment Tax
    Sales Equalization Tax
    I hope this link will help you
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/e5/077e394acd11d182b90000e829fbfe/frameset.htm
    Regards
    Odaiah

  • Having trouble with my PHP code. Appers to get stuck on a white page.

    HI all,
    I have just began having trouble with my PHP code. Was working before and haven't made any changes to the code since last time it worked.
    What happens is after the form is submitted it goes to a white page (no text just all white page) and in the address bar it has the path for my php page. what supposed to happen is either it goes to a success page or a error page.
    I've had a problem where the info entered is correct but was directed to the error page. i managed to fix that issue but i am puzzled what is happening to my php page now.
    Mind you that i didn't write this code i just took over the responsiblities of this website and i am hopping that its a quick fix.
    I appreciate any help you could give me. Thank you.
    CODE:
    <?php
       $to = '[email protected]';
          $from = '[email protected]';
            //Make sure we have some info posted from the form...
            if (isset($HTTP_POST_VARS)){
                //Clear the body of the message to be sent
                $body = '';
                //go through all POSTed variables sent
                while (list($key, $value) = each($HTTP_POST_VARS)){
        if($key <> "Submit" && $key <> "submit") {
         $body .= $key . ' = ' . $value . "\r\n"; 
                //Now building mail headers.....
                $headers = "From: ".$from."\r\n";
                //Mail message
                $success = mail($to, "Email Club" . date("m/d/Y"), $body, $headers);
       // CURL stuff.....
       $ch = curl_init();
       curl_setopt($ch, CURLOPT_FAILONERROR, 1);
       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
       curl_setopt($ch, CURLOPT_TIMEOUT, 4); //times out after 4s
       curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
                 if ($success){
        //readfile('http://www.lvpaiutegolf.com/thankyou.html');
        curl_setopt($ch, CURLOPT_URL,"http://www.lvpaiutegolf.com/thankyou.html");
        header("Location:http://www.lvpaiutegolf.com/thankyou.html");
                else{
                 // readfile('http://www.lvpaiutegolf.com/error.html');
         curl_setopt($ch, CURLOPT_URL,"http://www.lvpaiutegolf.com/error.html");
         header("Location:http://www.lvpaiutegolf.com/error.html");
       // Output
       //$result=curl_exec ($ch);
       //curl_close ($ch);
       //echo $result'";
    ?>

    Insert the install disk and boot from it. Use disk utitlity to repair your drive and check for errors (report any errors back here) then reinstall the os. This should not erase your data.

Maybe you are looking for