Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • Backspace, Delete, and/or Return Key Stops Working in Oracle SQL Developer
    08/29/2014 9:09AM

    So, I figure up SQL Developer to run some queries against a QC server and for some reason, I am no longer able to use the backspace, delete, or return keys to edit .sql files opened in the program.

    I tried opening a new .sql file, and restarting SQL Developer.  I then tried restarting Windows.  None of those worked.

    After a bit of searching I found a forum posting that indicated by going to Tools/Preferences/Accelerators and clicking the "Load Preset..." button in the bottom right of the dialog box would fix the problem.  My guess is that some key mapping preference file had gotten corrupted some how and that by replacing it with a default that it fixes the problem.

    After doing so, I was back in business.

  • Checking that Input or a Variable is an Integer in BASH
    08/26/2014 9:02AM

    Here is a quick snippet for checking whether or not a variable is a valid integer in BASH.  It is also a howto for regular expressions in a shell script.

    # Make sure that FOO is an integer
    if [[ ! "$FOO" =~ ^[0-9]+$ ]]; then
            echo "The FOO was NOT an integer"
    fi

  • How To Benchmark Disk I/O
    08/14/2014 12:24PM

    Here is a quick snipped on how to benchmark Disk I/O with dd.

    $ time sh -c "dd if=/dev/zero of=/home/rchapin/test.zeros bs=1024k count=10000 && sync"

    10000+0 records in
    10000+0 records out
    10485760000 bytes (10 GB) copied, 81.4124 s, 129 MB/s

    real    1m21.950s
    user    0m0.810s
    sys     0m5.474s


    Will do a write test of 10GB.

    You can do a similar test and read from that file generated and write to another file or /dev/null to get an idea of the read speeds.

    See the this link for more information.

  • Creating an Array in Bash from a File With Each Element on a Separate Line
    07/17/2014 8:38AM

    Let's say that you have a file and you would like to convert each line in the file to an element in an array.

    The key to this is knowing about and how to manipulate the IFS (Internal Field Separator)

  • Installing Chrome Extensions Without Signing in With a Google Account
    06/27/2014 10:49AM

    Google requires that you login with a Google account before you can install any Chrome extensions.

    The following is how to install an extension without logging in (under Windows.  The same should work under Linux and Mac):

    1. Find the ID for the extension.  When you browse the extension in the store you will see a URL similar to the following:  https://chrome.google.com/webstore/detail/cookies/iphcomljdfghbkdcfndaijbokpgddeno?hl=en.   The hash string after the 'cookies' string (the name of the extension) up to the ? is the id.
    2. Download the .crx extension file.  Use the following URL and replace the <ID> string with the ID for your extension:  https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D<ID>%26uc.  Chrome will complain that the extension cannot be added from this site.  Just ignore/OK it and you will be able to download it.
    3. Download and install (if you don't already have it) 7zip.
    4. Create a directory and move the .crx file into it.  Go into that dir, rename the .crx file to .zip and use 7zip to extract the file.
    5. Then back in chrome enter the following URL:  chrome://extensions/
    6. Towards the top-right of the page, check the "Developer Mode" checkbox.
    7. Then click on the "Load unpacked extension..." button and navigate to the directory that contains the unpacked .crx file and select it and it should install the extension for you.
Advanced Search

Categories

Archives