Jason L. Froebe – Tech tips and How Tos for Fellow Techies http://froebe.net/blog Tips & Tricks for Databases (Sybase, Oracle, MySQL, PostgreSQL, SQLite), Windows, Linux, Solaris, Perl, Java, Bash and so much much more Sun, 22 Jan 2017 02:58:04 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.2 Apple OSX 10.2 on Linux using the PowerPC CPU emulator Pear http://froebe.net/blog/2017/01/21/apple-osx-10-2-on-linux-using-the-powerpc-cpu-emulator-pear/ http://froebe.net/blog/2017/01/21/apple-osx-10-2-on-linux-using-the-powerpc-cpu-emulator-pear/#respond Sun, 22 Jan 2017 02:58:04 +0000 http://froebe.net/blog/?p=3373 I was able to get OS X 10.2 (PowerPC) running in Pear (PowerPC emulator for Windows and Linux) on Kubuntu 16.10 🙂

I need to set up the tun0 interface in order to get networking (internet) working.

PearPC Linux host setup
vde_tunctl — create and manage persistent TUN/TAP interfaces

Why? Because I can

http://froebe.net/blog/2017/01/21/apple-osx-10-2-on-linux-using-the-powerpc-cpu-emulator-pear/feed/ 0
Victory Martial Arts: This Week at a Glance (9/29/2016) http://froebe.net/blog/2016/09/29/victory-martial-arts-this-week-at-a-glance-9292016/ http://froebe.net/blog/2016/09/29/victory-martial-arts-this-week-at-a-glance-9292016/#respond Thu, 29 Sep 2016 13:35:10 +0000 http://froebe.net/blog/?p=3360 This week is red stripe week. The red stripe Victory Martial Arts of Okemosis awarded to students during the 5th week of the cycle. The red stripe is given once a student has turned in their letter of intent to promote and registered for promotion. The student must have earned their yellow, blue, 1st black, and 2nd black stripe to earn their red stripe.

Upcoming Events

  • September 30th & October 1st – Special Competition Camps! Interested in learning more to be a stronger competitor? Join us for camp! Only $149!
  • October 7th and 8th – XMA Leadership Seminar with Victory’s own Power Ranger – Mr. Chat!! Talk to your instructor today to get registered and don’t miss this opportunity!
  • Friday 6-9pm VIP training by invitation only Get Prepped for Nationals
  • Saturday 1-3pm Open Training
  • October 14th – Michigan State University homecoming parade! Join Victory in supporting our Spartans and walk in the parade with us! Meet at the Hannah Center in East Lansing for line up – please sign up with Ms. Sims at the front desk!
  • October 27th – 29th – Belt Promotion and Testing!
  • October 29th – Halloween Party! Dress in your best costume and join Victory for some fun! Party and trunk-or-treat!


Master Faett, Director

Master Faett Director

Ms. Sims Program Director

Ms. Sims
Program Director

Mr. Rodriguez Chief Instructor

Mr. Rodriguez
Chief Instructor


http://froebe.net/blog/2016/09/29/victory-martial-arts-this-week-at-a-glance-9292016/feed/ 0
SOLVED: SSH and Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) http://froebe.net/blog/2016/09/15/solved-ssh-and-permission-denied-publickeygssapi-keyexgssapi-with-micpassword/ http://froebe.net/blog/2016/09/15/solved-ssh-and-permission-denied-publickeygssapi-keyexgssapi-with-micpassword/#respond Thu, 15 Sep 2016 21:01:48 +0000 http://froebe.net/blog/?p=3353 OpenSSHI ran across the error “Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).” while ssh’ing to another server today:

$ ssh myhost
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

Usually this means that the permissions of ~/.ssh, ~/.ssh/authorized_keys or your home directory on the other box isn’t setup right The permissions should look like so:

  1. -rwx——. /home/jason
  2. -rwx——. /home/jason/.ssh
  3. -rw——-. /home/jason/.authorized_keys

You would fix with:

$ chmod 0700 ~
$ chmod 0700 ~/.ssh
$ chmod 0600 ~/.ssh/authorized_keys

In my case, the permissions were correct. I ran the ssh command with extra verbose (-v -v)

$ ssh -v -v myhost
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /home/jason/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: /etc/ssh/ssh_config line 62: Deprecated option "RhostsAuthentication"
debug2: ssh_connect: needpriv 0
debug1: Connecting to myhost [] port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/jason/.ssh/id_rsa type 1
debug1: identity file /home/jason/.ssh/id_rsa-cert type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/jason/.ssh/id_dsa type 2
debug1: identity file /home/jason/.ssh/id_dsa-cert type -1
debug1: identity file /home/jason/.ssh/id_ecdsa type -1
debug1: identity file /home/jason/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0
debug1: match: OpenSSH_6.0 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 154/256
debug2: bits set: 520/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
Warning: Permanently added 'myhost,' (RSA) to the list of known hosts.
debug2: bits set: 525/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/jason/.ssh/id_rsa (0x7ff594d8ecb0)
debug2: key: /home/jason/.ssh/id_dsa (0x7ff594d90550)
debug2: key: /home/jason/.ssh/id_ecdsa ((nil))
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).

I didn’t see a reason why I wasn’t getting a password prompt but I do see it reading my ssh_config file. A real quick override of the ssh_config showed me that my ssh_config was the culprit:

$ ssh -F /dev/null myhost
jason@myhost's password:

So what is in my ~/.ssh/config file?

ServerAliveInterval 240
BatchMode yes
TCPKeepAlive = yes

Neither ServerAliveInterval or TCPKeepAlive have anything to do with authentication but BatchMode does. From the ssh_config man page:


The argument must be yes or no. If set to yes, passphrase/password querying will be disabled. This option is useful in scripts and other batch jobs where you have no user to supply the password.

So, if my public ssh key is not in the ~/.ssh/authorized_keys, the connection will fail with a permission denied. Let’s verify but removing BatchMode from the ~/.ssh/config file:

ServerAliveInterval 240
TCPKeepAlive = yes
$ ssh -F /dev/null myhost

Success 🙂

http://froebe.net/blog/2016/09/15/solved-ssh-and-permission-denied-publickeygssapi-keyexgssapi-with-micpassword/feed/ 0
OpenVPN & Network Manager: selecting a random VPN target each time you start the Virtual Private Network (UNIX/Linux) SOLVED http://froebe.net/blog/2016/08/26/openvpn-network-manager-selecting-a-random-vpn-target-each-time-you-start-the-virtual-private-network-unixlinux-solved/ http://froebe.net/blog/2016/08/26/openvpn-network-manager-selecting-a-random-vpn-target-each-time-you-start-the-virtual-private-network-unixlinux-solved/#respond Fri, 26 Aug 2016 13:17:22 +0000 http://froebe.net/blog/?p=3346 I sometimes perform some IT work for a nonprofit organization. They use OpenVPN for their network but since they reside in different locations, they have multiple OpenVPN servers set up rather than just one point of entry. The problem I’ve noticed is that at times one or another will be slower. While I don’t have a mechanism to identify which is faster, I can roll the dice and have my vpn start script pick a random server instead of me having to randomly pick one myself.


# If the network card is unavailable, we're not going to bring up the vpn

# VPN_LIST is just a simple array
declare -a VPN_LIST

# BASH arrays start with index 0

# read the vpn list into an array
while read TMP_VPN; do
done < vpns.txt 

# if the vpns.txt is NOT empty
if (( i >= 0 )); then
    # Choose a random VPN index from the TMP_VPN array
    if (( i > 0 )); then
        ((i - 1))
        ((RANDOM_VPN = $RANDOM % $i))

    # We set the VPN_CONNECTION_NAME to the VPN we chose

    DEFAULT_CONNECTION=$( nmcli con show --active |grep "${REQUIRED_CONNECTION_NAME}" )
    VPN_CONNECTION=$( nmcli con show --active | grep "${VPN_CONNECTION_NAME}" )

    # Make sure that the vpn connection isn't already up
    if [[ "${DEFAULT_CONNECTION}" != "${VPN_CONNECTION}" ]]; then
        echo -n "Connecting to ${VPN_CONNECTION_NAME} ... "

        # The credentials are stored in my Gnome keyring so I run the nmcli command as jason
        su - jason -c "nmcli con up id \"${VPN_CONNECTION_NAME}\""


        if (( RC == 0 )); then
            echo "SUCCESS"
            echo "FAILED"
        echo "configuration mismatch"

exit $RC

The file vpns.txt is simply a text file with the names of the VPNs as they are listed in OpenVPN (see /etc/NetworkManager/system-connections for the list of defined VPNs). One VPN per line.

http://froebe.net/blog/2016/08/26/openvpn-network-manager-selecting-a-random-vpn-target-each-time-you-start-the-virtual-private-network-unixlinux-solved/feed/ 0
Krav Maga at Victory Martial Arts of Okemos http://froebe.net/blog/2016/08/24/krav-maga-at-victory-martial-arts-of-okemos/ http://froebe.net/blog/2016/08/24/krav-maga-at-victory-martial-arts-of-okemos/#respond Wed, 24 Aug 2016 18:12:37 +0000 http://froebe.net/blog/?p=3341 Krav Maga according to Wikipedia:

Krav Maga /krɑːv məˈɡɑː/ (Hebrew: קְרַב מַגָּע [ˈkʁav maˈɡa], lit. “contact-combat”) Victory Martial Arts of Okemosis a self-defense system developed for the Israel Defense Forces (IDF) that consists of a wide combination of techniques sourced from aikido, judo, boxing and wrestling, along with realistic fight training. (Unlike MMA) Krav Maga is known for its focus on real-world situations and its extremely efficient and brutal counter-attacks. It was derived from street-fighting skills developed by Hungarian-Israeli martial artist Imi Lichtenfeld, who made use of his training as a boxer and wrestler as a means of defending the Jewish quarter against fascist groups in Bratislava, Czechoslovakia in the mid-to-late 1930s. In the late 1940s, following his migration to Israel, he began to provide lessons on combat training to what was to become the IDF, who went on to develop the system that became known as Krav Maga. It has since been refined for civilian, police and military applications.

Krav Maga has a philosophy emphasizing threat neutralization, simultaneous defensive and offensive maneuvers, and aggression. Krav Maga has been used mainly by the Israel Defense Forces’

U.S. Marines practicing Krav Maga

U.S. Marines practicing Krav Maga

special units and reconnaissance brigades and recently by regular infantry brigades, and several closely related variations have been developed and adopted by law enforcement and intelligence organizations, Mossad and Shin Bet. There are several organizations teaching variations of Krav Maga internationally.

Come learn Krav Maga from Master Faett at Victory Martial Arts: $29.99 For 4 Classes (Uniform Included)

Team Victory Okemos:

Master Faett, Director

Master Faett Director


Ms. Sims Program Director

Ms. Sims
Program Director


Mr. Rodriguez Chief Instructor

Mr. Rodriguez
Chief Instructor


http://froebe.net/blog/2016/08/24/krav-maga-at-victory-martial-arts-of-okemos/feed/ 0
Microsoft Office 365 and Windows 10: Error Code 0xC004c780 activate issue http://froebe.net/blog/2016/08/23/microsoft-office-365-and-windows-10-error-code-0xc004c780-activate-issue/ http://froebe.net/blog/2016/08/23/microsoft-office-365-and-windows-10-error-code-0xc004c780-activate-issue/#respond Tue, 23 Aug 2016 20:58:06 +0000 http://froebe.net/blog/?p=3332 If you receive the error message 0xC004c780 when activating a Microsoft product, just wait a few hours. The error message typically means the activation servers at Microsoft are temporarily overloaded. This occurred most recently during the Windows 10 Anniversary Update weekend (8/14/2016)

http://froebe.net/blog/2016/08/23/microsoft-office-365-and-windows-10-error-code-0xc004c780-activate-issue/feed/ 0
This week at Victory Martial Arts of Okemos (8/22/2016) http://froebe.net/blog/2016/08/23/this-week-at-victory-martial-arts-of-okemos-8222016/ http://froebe.net/blog/2016/08/23/this-week-at-victory-martial-arts-of-okemos-8222016/#respond Tue, 23 Aug 2016 20:33:05 +0000 http://froebe.net/blog/?p=3334 ·        August 23rd & September 6th Victory Martial Arts of OkemosCertified Amber Alert and Bully Prevention Training – Send your kids back to school with the skills they need to stand up against bullying and emergency situation know-how.  These classes will happen every hour on the hour.  Students are encouraged to bring friends!

·        August 24th – 27th  – BELT TESTING AND PROMOTION! 

o    Wednesday, Aug 24th – 5pm – White – Camo belts; 6:30 – Green – Blue belts

o    Thursday, Aug 25th – 5:30 – Brown – Recommended Black Belts;  7pm – Adults

o    Saturday, Aug 27th – 9am – retest; 10am – Black Belt midterms; 11am – family testing; 12pm – belt ceremony & potluck!

·        DON’T FORGET! – School supply drive ENDS Saturday!!  Show your support for our local schools!  For every 5 items you bring, get a ticket toward winning a FREE Wavemaster Heavyweight Bag!

·        Friday, August 26th – Parent’s night out!  6-9pm Bring a friend and it’s free!! Normal cost is just $5 per child; pizza and fun provided!

Team Victory Okemos:

Master Faett, Director

Master Faett Director


Ms. Sims Program Director

Ms. Sims
Program Director


Mr. Rodriguez Chief Instructor

Mr. Rodriguez
Chief Instructor


http://froebe.net/blog/2016/08/23/this-week-at-victory-martial-arts-of-okemos-8222016/feed/ 0
Lansing, Michigan: Victory Summer Party THIS SUNDAY August 14th, 2016 http://froebe.net/blog/2016/08/10/lansing-michigan-victory-summer-party-this-sunday-august-14th-2016/ http://froebe.net/blog/2016/08/10/lansing-michigan-victory-summer-party-this-sunday-august-14th-2016/#respond Wed, 10 Aug 2016 16:56:27 +0000 http://froebe.net/blog/?p=3327 Join us for a Victory Martial Arts of Okemossummer picnic at Lake Lansing Park South!

Schedule of events:

  • 2:00 PM – Test prep class for all students
  • 3:00 PM – Family Class
  • 4:00 PM – Potluck and games. Please sign up for a dish to pass if you haven’t already done so 🙂

Team Victory Okemos:

Master Faett, Director

Master Faett Director

Ms. Sims Program Director

Ms. Sims
Program Director

Mr. Rodriguez Chief Instructor

Mr. Rodriguez
Chief Instructor


http://froebe.net/blog/2016/08/10/lansing-michigan-victory-summer-party-this-sunday-august-14th-2016/feed/ 0
Week of 8/8/2016 at Victory Martial Arts of Okemos http://froebe.net/blog/2016/08/08/week-of-882016-at-victory-martial-arts-of-okemos/ http://froebe.net/blog/2016/08/08/week-of-882016-at-victory-martial-arts-of-okemos/#respond Tue, 09 Aug 2016 01:41:00 +0000 http://froebe.net/blog/?p=3323 August 8th and 10th– Victory Martial Arts of OkemosSPECIAL –Krav Maga Street Clothes Experience – Train in your street clothes and get REAL self defense practice! Everyone 18+ is welcome, bringing friends is encouraged! 8 pm start time

THIS SUNDAY August 14th – Victory Summer Party! Join us for a summer picnic at Lake Lansing South!

Schedule of events:

  • Test prep class for all students: 1-2pm
  • Family Class: 2pm
  • Potluck and games: 3pm please sign up for a dish to pass!
  • Students who still need to test for 3rd black stripe – ask your instructor this week!!

3544 Meridian Crossing Dr. Suite 130 Okemos, Michigan 48864

http://froebe.net/blog/2016/08/08/week-of-882016-at-victory-martial-arts-of-okemos/feed/ 0
YAPC::NA VIM as a Perl IDE‎ – Damian Conway (2016) http://froebe.net/blog/2016/08/08/yapcna-vim-as-a-perl-ide%e2%80%8e-damian-conway-2016/ http://froebe.net/blog/2016/08/08/yapcna-vim-as-a-perl-ide%e2%80%8e-damian-conway-2016/#comments Tue, 09 Aug 2016 00:35:30 +0000 http://froebe.net/blog/?p=3320 Watch it. You will be impressed

Video by YAPC::NA 2016

http://froebe.net/blog/2016/08/08/yapcna-vim-as-a-perl-ide%e2%80%8e-damian-conway-2016/feed/ 1
Coca-Cola: America the Beautiful http://froebe.net/blog/2016/08/07/coca-cola-america-the-beautiful/ http://froebe.net/blog/2016/08/07/coca-cola-america-the-beautiful/#respond Sun, 07 Aug 2016 04:25:33 +0000 http://froebe.net/blog/?p=3317 TCoca-Colahe United States of America is a melting pot of mortal humans. 🙂
Well done Coca-Cola. Well done.

http://froebe.net/blog/2016/08/07/coca-cola-america-the-beautiful/feed/ 0
HowTo: SAP IQ What is running right now (active transactions) hogging resources? http://froebe.net/blog/2016/08/05/howto-sap-iq-what-is-running-right-now-active-transactions-hogging-resources/ http://froebe.net/blog/2016/08/05/howto-sap-iq-what-is-running-right-now-active-transactions-hogging-resources/#comments Fri, 05 Aug 2016 19:28:33 +0000 http://froebe.net/blog/?p=3310 Every once in a while you need to determine what connections in SAP IQ are actively executing. In other words, list the open transactions along with connection information. This is handly to determine what is hogging the cpu or blocking other connections.

    ISNULL(siqc.MPXServerName, siqc.LSName) "Server",
    siqc.NodeAddr "Connect From",
    sacp_ProcName.Value "Proc Name",
    sacp_ProcLineNumber.Value "Proc Line Number",
    CAST(siqc.TempTableSpaceKB / 1024 AS Integer) "TempTableSpaceMB",
    CAST(siqc.TempWorkSpaceKB / 1024 AS Integer) "TempWorkSpaceMB",
    sp_iqconnection() siqc 
    JOIN sa_conn_activity() sac ON sac.Number = siqc.ConnHandle
    JOIN sa_conn_info() saci on saci.Number = sac.Number
    JOIN sa_conn_properties() sacp_ProcLineNumber on sacp_ProcLineNumber.Number = saci.Number
    JOIN sa_conn_properties() sacp_ProcName on sacp_ProcName.Number = saci.Number
    JOIN sp_iqtransaction() siqt on siqt.TxnID = siqc.TxnID
    siqc.TxnID > 0
    AND siqc.ConnHandle != @@spid
    AND siqc.Userid != 'dbo'
    AND sacp_ProcLineNumber.PropName = 'CurrentLineNumber'
    AND sacp_ProcName.PropName = 'CurrentProcedure'
    siqc.ConnCreateTime asc,
    siqc.LastReqTime desc


http://froebe.net/blog/2016/08/05/howto-sap-iq-what-is-running-right-now-active-transactions-hogging-resources/feed/ 1
MMA: What’s happening this week (8/1 – 8/6) at Victory Martial Arts of Okemos http://froebe.net/blog/2016/08/02/3304/ http://froebe.net/blog/2016/08/02/3304/#respond Tue, 02 Aug 2016 15:08:36 +0000 http://froebe.net/blog/?p=3304
This week Victory Martial Arts of Okemosduring classes, we will be testing our students for their Third Black Stripe. This stripe is awarded during the 6th week of the cycle. Students must perform the curriculum on their own, thus demonstrating their knowledge of the material. In order to be eligible to test for this stripe, the students are required to have attended a minimum of 11 classes during the current cycle, and must have already earned their Yellow, 1st & 2nd Black, Blue, and Red Stripes.
Students will be tested on: – Executing the Board Break(s) on the “First” Attempt – Weapons Drills or Weapons Form – Self Defense – Traditional Form – Push Ups with Proper Body Alignment – Round Kicks in 10 seconds each side (R/L)
– Recite the Life Skill

3544 Meridian Crossing Dr. Suite 130 Okemos, Michigan 48864

Team Members
Master Faett Director
Mr. Rodriguez Chief Instructor
Ms. Sims Program Director

http://froebe.net/blog/2016/08/02/3304/feed/ 0
MMA: This is the last week to receive $10 off of belt testing at Victory Martial Arts of Okemos, Michigan http://froebe.net/blog/2016/07/26/mma-this-is-the-last-week-to-receive-10-off-of-belt-testing-at-victory-martial-arts-of-okemos-michigan/ http://froebe.net/blog/2016/07/26/mma-this-is-the-last-week-to-receive-10-off-of-belt-testing-at-victory-martial-arts-of-okemos-michigan/#respond Tue, 26 Jul 2016 19:22:57 +0000 http://froebe.net/blog/?p=3300

This is the last week toVictory Martial Arts of Okemos receive $10 off of belt testing! After this Saturday (07/30/16), it will go to the normal price of $70.

Feel like saving even more money? Purchase a $300 pre-paid test card! You will receive 6 testing’s for the price of 5! Do this before this Saturday and you will receive a free camp, or 3 free private lessons ($150 Value)!

Stop in or call at 517-574-5931 to take advantage of the savings!

http://froebe.net/blog/2016/07/26/mma-this-is-the-last-week-to-receive-10-off-of-belt-testing-at-victory-martial-arts-of-okemos-michigan/feed/ 0
Windows 10: Touch Screen not working? Solved! http://froebe.net/blog/2016/07/24/windows-10-touch-screen-stopped-working-solved/ http://froebe.net/blog/2016/07/24/windows-10-touch-screen-stopped-working-solved/#respond Mon, 25 Jul 2016 01:40:00 +0000 http://froebe.net/blog/?p=3292 I have a Toshiba laptop running Microsoft Windows 10. I’ve recently reinstalled the operating system and noticed that the touch screen stopped working. I searched high and low looking for an answer but didn’t find one that would work.

Microsoft recommends the following but it didn’t help me:

  1. Re-start your PC.
  2. Wipe it off. Use a microfiber cloth if possible.
  3. Search Calibrate the screen for pen or touch input from the task bar and select the top result. Hit the Setup button and follow the prompts.
  4. Search Device manager from the task bar and select the top result. Select Monitors and right click on the name of your monitor. If one of the menu items is enable, choose that.
  5. Repeat process number four above, but this time choose Update driver software from the right-click menu.

It was, however, quite close to what I discovered was thedevicemanager problem.   If I went into Device Manager (Windows Key + X and choose Device Manager) and Disabled/Enabled the HID-compliant touch screen device the touch screen would work for a few minutes and then suddenly stop working again.

After scratching my thinning hair on top of my head, it dawned on me that it was probably power management related.  I looked in the Power Management tab for the device but the option was disabled.

Sodevicemanager2 what to look at next?  All of the Human Interface Devices run as USB devices.

Looking at the Universal Serial Bus Controllers I saw that several of the devicemanager3USB Hubs and such did have the Allow the computer to turn off this device to save power option set.
I unchecked the option and disabled/enabled the HID-compliant touch screen device and Voila! the touch screen worked!  It’s been several hours now and the touch screen is still working fine.

http://froebe.net/blog/2016/07/24/windows-10-touch-screen-stopped-working-solved/feed/ 0
Video: Skillet – “Feel Invincible” [Official Music Video] http://froebe.net/blog/2016/07/10/video-skillet-feel-invincible-official-music-video/ http://froebe.net/blog/2016/07/10/video-skillet-feel-invincible-official-music-video/#respond Sun, 10 Jul 2016 16:12:34 +0000 http://froebe.net/blog/?p=3286 As many of you know, I’ve been training at Victory Martial Arts of Okemos, Michigan. After a good training session, this is how we feel:

Video by Skillet

http://froebe.net/blog/2016/07/10/video-skillet-feel-invincible-official-music-video/feed/ 0
Hercules/Mainframe: A tour of RPF under IBM’s MVS by Marcello Magnifico http://froebe.net/blog/2016/03/26/herculesmainframe-a-tour-of-rpf-under-ibms-mvs-by-marcello-magnifico/ http://froebe.net/blog/2016/03/26/herculesmainframe-a-tour-of-rpf-under-ibms-mvs-by-marcello-magnifico/#respond Sat, 26 Mar 2016 15:36:58 +0000 http://froebe.net/blog/?p=3275

Video by Marcello Magnifico

http://froebe.net/blog/2016/03/26/herculesmainframe-a-tour-of-rpf-under-ibms-mvs-by-marcello-magnifico/feed/ 0
HOWTO: Connect to SAP Sybase IQ Multiplex using JDBC and the SQL Anywhere driver: “Connection error: TCPIP requires a server name” http://froebe.net/blog/2016/03/16/howto-connect-to-sap-sybase-iq-multiplex-using-jdbc-and-the-sql-anywhere-driver-connection-error-tcpip-requires-a-server-name/ http://froebe.net/blog/2016/03/16/howto-connect-to-sap-sybase-iq-multiplex-using-jdbc-and-the-sql-anywhere-driver-connection-error-tcpip-requires-a-server-name/#comments Wed, 16 Mar 2016 15:44:54 +0000 http://froebe.net/blog/?p=3267 SAP’s documentation, like other vendors, often sucks. In today’s wonderful documentation sucky-ness the examples from SAP to connect to IQ using a JDBC connection string like so:


This is fine except when you connect to IQ multiplex and you have logical servers set up. You won’t know which IQ node you will be on and since each IQ node has an unique name (eng=), this won’t work. Alright, let’s drop the eng=MyIQ.


This will result in an immediate error of “Connection error: TCPIP requires a server name”. Don’t panic, there is a fix. Drop the ENG=MyIQ and links=tcpip(Host=MyIQ;PORT=40000) replacing it with the HOST=MyIQ:40000.


That works. That is so much more simple than the demented links=tcpip(Host=MyIQ;PORT=40000) nonsense.

Now the fun bit of working code. The following “IQConnect” program accepts four parameters host port username password and spits out the names of the tables on the IQ server:

import java.io.*;
import java.sql.*;

public class IQConnect {
    public static void main(String[] args) {
        if (args.length == 4) {
            String HostName;
            int Port = 0;
            String UserName;
            String Password;

            try {
                Port = Integer.parseInt(args[1]);
            } catch (NumberFormatException e) {
                System.err.println("Port # must be an integer");

            HostName = args[0];
            UserName = args[2];
            Password = args[3];

            String arg;
            Connection con;

            try {
                String ConnectionParams = String.format("jdbc:sqlanywhere:uid=%s;pwd=%s;host=%s:%d", UserName, Password, HostName, Port);
                con = DriverManager.getConnection(ConnectionParams);

                Statement stmt = con.createStatement();
                ResultSet rs = stmt.executeQuery("select table_name from sys.systable;");

                while (rs.next()) {
                    String TableName = rs.getString(1);

            catch (SQLException sqe)
                System.out.println("Unexpected exception : " +
                  sqe.toString() + ", sqlstate = " +
            catch (Exception e)
        } else {
            System.out.println("Requires Host Port# User Password");

Compile it with:

javac -cp $IQ16/java/sajdbc4.jar:. IQConnect.java

Execute it with

java -cp $IQ16/java/sajdbc4.jar:. IQConnect MyIQ 40000 dba sql

Of course, if you have $IQ16/java as part of your $CLASSPATH you don’t need to include “-cp $IQ16/java/sajdbc4.jar:.” to execute the program.

http://froebe.net/blog/2016/03/16/howto-connect-to-sap-sybase-iq-multiplex-using-jdbc-and-the-sql-anywhere-driver-connection-error-tcpip-requires-a-server-name/feed/ 3
TeachUComp: OneNote 2013 Tutorial Linked Notes Microsoft Training Lesson 13.1 (YouTube) http://froebe.net/blog/2016/02/26/teachucomp-onenote-2013-tutorial-linked-notes-microsoft-training-lesson-13-1-youtube/ http://froebe.net/blog/2016/02/26/teachucomp-onenote-2013-tutorial-linked-notes-microsoft-training-lesson-13-1-youtube/#respond Fri, 26 Feb 2016 20:22:43 +0000 http://froebe.net/blog/?p=3262
Video by TeachUComp 🙂

http://froebe.net/blog/2016/02/26/teachucomp-onenote-2013-tutorial-linked-notes-microsoft-training-lesson-13-1-youtube/feed/ 0
Loel Phelps: How To Create Sticky (Post-it) Notes With OneNote 2013 (YouTube) http://froebe.net/blog/2016/02/26/loel-phelps-how-to-create-sticky-post-it-notes-with-onenote-2013-youtube/ http://froebe.net/blog/2016/02/26/loel-phelps-how-to-create-sticky-post-it-notes-with-onenote-2013-youtube/#respond Fri, 26 Feb 2016 19:39:03 +0000 http://froebe.net/blog/?p=3259

Video by Loel Phelps 🙂

http://froebe.net/blog/2016/02/26/loel-phelps-how-to-create-sticky-post-it-notes-with-onenote-2013-youtube/feed/ 0
Video: From YAPC::2012 Tomas Doran Messaging, interoperability and log aggregation a new framework http://froebe.net/blog/2016/02/22/video-from-yapc2012-tomas-doran-messaging-interoperability-and-log-aggregation-a-new-framework/ http://froebe.net/blog/2016/02/22/video-from-yapc2012-tomas-doran-messaging-interoperability-and-log-aggregation-a-new-framework/#respond Mon, 22 Feb 2016 20:16:00 +0000 http://froebe.net/blog/?p=3255 Wouldn’t it be great to have a simple way of shipping logs, outputs, and so on to a central location with the option of pre-processing the data? Here is a good start. (There were technical issues in the first few minutes of the video)

Good job 🙂

http://froebe.net/blog/2016/02/22/video-from-yapc2012-tomas-doran-messaging-interoperability-and-log-aggregation-a-new-framework/feed/ 0
Video: Korn Shell A Little About Arrays/Lists http://froebe.net/blog/2016/02/19/video-korn-shell-a-little-about-arrayslists/ http://froebe.net/blog/2016/02/19/video-korn-shell-a-little-about-arrayslists/#respond Fri, 19 Feb 2016 18:59:41 +0000 http://froebe.net/blog/?p=3252

Video by bjamesm70

http://froebe.net/blog/2016/02/19/video-korn-shell-a-little-about-arrayslists/feed/ 0
Intro To Korn Shell – Lesson 7g – Pattern Matching *( ) http://froebe.net/blog/2016/02/18/intro-to-korn-shell-lesson-7g-pattern-matching/ http://froebe.net/blog/2016/02/18/intro-to-korn-shell-lesson-7g-pattern-matching/#respond Fri, 19 Feb 2016 00:39:03 +0000 http://froebe.net/blog/?p=3250
Video by bjamesm70

http://froebe.net/blog/2016/02/18/intro-to-korn-shell-lesson-7g-pattern-matching/feed/ 0
HOWTO: Korn Shell / BASH: How to determine if a string is numeric or not http://froebe.net/blog/2016/02/18/howto-korn-shell-bash-how-to-determine-if-a-string-is-numeric-or-not/ http://froebe.net/blog/2016/02/18/howto-korn-shell-bash-how-to-determine-if-a-string-is-numeric-or-not/#comments Thu, 18 Feb 2016 21:27:41 +0000 http://froebe.net/blog/?p=3245 Occasionally we run across something that should be simple. Checking whether a string is a number or not for example.

special_CHAR ‘(‘ pattern ‘)’

The special_CHAR is a prefix that changes the number of characters expected:

‘*’ for zero or more matches
‘+’ at least one match
‘@’ for exactly one match
‘?’ for zero or one matches
‘!’ for negation

The following will match one or more digits:


See POSIX Character Classes regarding the use of [:digit:]

Below is an example function to determine if a string is numeric written in Korn Shell 93 but will also work in BASH.

The criteria we’re using is based on the US standard of numbers:
and so on

Obviously we could expand this out to handle commas or other separators without too much difficulty.


function is_numeric {
    typeset TMP_STR="$1"
    typeset -i TMP_IS_NUMERIC

    if [[ "$TMP_STR" == +([[:digit:]])?(.*([[:digit:]])) ]]; then
        echo "'$TMP_STR' is numeric"
        echo "'$TMP_STR' is not numeric"


for TMP_STRING in "TEST_VAR" "22" "TRUE1" "TRUE3TRUE" "12.345" ""; do
    is_numeric "$TMP_STRING"


$ ./test_regex.ksh
'TEST_VAR' is not numeric
'22' is numeric
'TRUE1' is not numeric
'TRUE3TRUE' is not numeric
'12.345' is numeric
'' is not numeric

See Finnbarr P. Murphy’s blog for more examples of using regular expressions in Korn Shell 93

http://froebe.net/blog/2016/02/18/howto-korn-shell-bash-how-to-determine-if-a-string-is-numeric-or-not/feed/ 1
IQ Error: The multiplex server ‘iq_node_3’ is not included in the multiplex – SOLVED http://froebe.net/blog/2016/02/09/iq-error-the-multiplex-server-iq_node_3-is-not-included-in-the-multiplex-solved/ http://froebe.net/blog/2016/02/09/iq-error-the-multiplex-server-iq_node_3-is-not-included-in-the-multiplex-solved/#respond Tue, 09 Feb 2016 16:13:48 +0000 http://froebe.net/blog/?p=3240 When you run SAP’s IQ Multiplex cluster for a while you start finding little gotchas that will just drive you to drink. If you don’t drink, you will wish you do. (Just like with any other cluster system)

In my latest foray into the murky waters of IQ Multiplex (v16), if one of the nodes if offline for a while, the coodinator node will mark the node as excluded so the cluster carries on. Not really a big deal until you try to bring up the problem node:

I. 02/09 10:31:45. Database server stopped at Tue Feb 09 2016 10:31
Unable to start specified database: autostarting database failed
Exception Thrown from stcxtlib/st_database.cxx:10050, Err# 21, tid 2 origtid 2
   O/S Err#: 0, ErrID: 5120 (st_databaseException); SQLCode: -1013113, SQLState: 'QNA49', Severity: 14
[22016]: The multiplex server 'iq_node_3' is not included in the multiplex.
-- (stcxtlib/st_database.cxx 10050)

Error: The multiplex server 'iq_node_3' is not included in the multiplex. The multiplex server 'iq_node_3' is not included in the multiplex.
Server failed to start

JNLERROR 2016-02-09-10:31:46 Start of IQ instance iq_mpx_cluster1 failed

Log into the coordinator node, in my case iq_node_1, and run

select server_name, status, mpx_mode, inc_state from sp_iqmpxinfo();"
server_name        status   mpx_mode         inc_state
iq_node_1          included coordinator      N/A
iq_node_2          included writer           active
iq_node_3          excluded unknown           timed_out

As you can see, the iq_node_3 node is excluded due to the connection to it from the coordinator timed out. What to do? Simple, first we re-include the node (on the coordinator):

alter multiplex server iq_node_3 status included;

Next we need to resync iq_node_3:

Resync IQ secondary node

The problem node should start up just fine now.

http://froebe.net/blog/2016/02/09/iq-error-the-multiplex-server-iq_node_3-is-not-included-in-the-multiplex-solved/feed/ 0
Tweaking Microsoft Surface 3 http://froebe.net/blog/2016/02/06/microsoft-surface-3/ http://froebe.net/blog/2016/02/06/microsoft-surface-3/#respond Sat, 06 Feb 2016 13:23:01 +0000 http://froebe.net/blog/?p=3237 I use a Microsoft Surface 3 Pro among other things at work. It’s growing on me. Here is a short video on how to tweak it

Video by Seon Ong

http://froebe.net/blog/2016/02/06/microsoft-surface-3/feed/ 0
Take effective meeting minutes using OneNote 2013 http://froebe.net/blog/2016/02/05/take-effective-meeting-minutes-using-onenote-2013/ http://froebe.net/blog/2016/02/05/take-effective-meeting-minutes-using-onenote-2013/#respond Fri, 05 Feb 2016 20:17:54 +0000 http://froebe.net/blog/?p=3233 I’ve been getting into Microsoft OneNote for taking notes, getting organized and so on. Little things like taking notes in a meeting can save your backside (CYA). If there is a white board involved, make sure you use Microsoft’s Office Lens or similar to take a picture of the white board and embed it in your notes

Video by Business Productivity

http://froebe.net/blog/2016/02/05/take-effective-meeting-minutes-using-onenote-2013/feed/ 0
SAP IQ: iqinit error SQLCode: -1000338, SQLState: ‘QDD38’, Severity: 14: Insufficient cache to allocate free list SOLVED http://froebe.net/blog/2016/01/20/sap-iq-iqinit-error-sqlcode-1000338-sqlstate-qdd38-severity-14-insufficient-cache-to-allocate-free-list-solved/ http://froebe.net/blog/2016/01/20/sap-iq-iqinit-error-sqlcode-1000338-sqlstate-qdd38-severity-14-insufficient-cache-to-allocate-free-list-solved/#respond Wed, 20 Jan 2016 21:32:52 +0000 http://froebe.net/blog/?p=3224 When you create a new IQ v16 instance, you need to use the iqinit program for initial creation of the database.

iqinit -iqpath '/siq/devices/main001.iq' -iqpgsize 131072 -iqblksize 16384 -p 4096 -iqtmppath '/siq/devices/temp001.iqtmp' -dba DBA,SUPER_PASSWORD  -m '/siq/devices/myiq.mir' -o '/siq/log/myiq.iqmsg' -t '/siq/devices/myiq.log' -b -c '/siq/devices/myiq.db'

Occasionally you may run into the SQLCode: -1000338, SQLState: ‘QDD38’, Severity: 14: Insufficient cache to allocate free list error message which basically states the IQ temp cache is too small to start the maintenance IQ instance. The iqinit program is a compiled program that calls the $SYBASE/IQ-16_0/bin64/iqsrv16 program.

SQL Anywhere Initialization Utility Version
IQ server starting with:
     10 connections         (       -gm )
    106 cmd resources       ( -iqgovern )
   2459 threads             (     -iqmt )
    512 Kb thread stack size   (   -iqtss  )
  1259008 Kb thread memory size ( -iqmt * -iqtss )
     48 IQ number of cpus  ( -iqnumbercpus )
      0 MB maximum size of IQMSG file ( -iqmsgsz )
      0 copies of IQMSG file archives ( -iqmsgnum )

CHAR collation sequence:  ISO_BINENG(CaseSensitivity=Respect)
CHAR character set encoding:  ISO_8859-1:1987
NCHAR collation sequence:  UCA(CaseSensitivity=UpperFirst;AccentSensitivity=Respect;PunctuationSensitivity=Primary)
NCHAR character set encoding:  UTF-8
Database is not encrypted
Creating system tables
Creating system views
Setting option values
Exception Thrown from stcxtlib/st_database.cxx:1938, Err# 49, tid 2 origtid 2
   O/S Err#: 0, ErrID: 5120 (st_databaseException); SQLCode: -1000338, SQLState: 'QDD38', Severity: 14
[21221]: Insufficient cache to allocate free list. Temp buffers required: 132; temp buffers avaliable: 63.
-- (stcxtlib/st_database.cxx 1938) .
SQL error (-1000338) -- Insufficient cache to allocate free list. Temp buffers required: 132; temp buffers avaliable: 63.
-- (stcxtlib/st_database.cxx 1938) .
Database "/siq/devices/myiq.db" not created

Unfortunately there is no way to specify the IQ temp cache size via the iqinit program:

Usage: iqinit [options] database
        @data expands data from environment variable data or file data

Options (use specified case, as shown):
        -a             accent sensitivity on all UCA string comparisons
        -af            accent sensitivity (French rules) on all
                       UCA string comparisons
        -b             blank padding of strings for comparisons
        -c             case sensitivity on all string comparisons
        -dba uid,pwd set dba username and password
        -dbs size    set initial database size
        -ea alg      encryption algorithm (default none)
        -ek key      specify encryption key
        -ep            prompt for encryption key
        -et            enable encrypted tables
        -i             do not install jConnect support
        -k             SYS.SYSCOLUMNS and SYS.SYSINDEXES views not created
        -l             list available collation sequences
                       (use -l+ to list older collations)
        -le            list available character set encoding labels
                       (use -le+ to list more encoding label aliases)
        -m name      set transaction log mirror name
        -n             no transaction log
        -o file      log output messages to file
        -p size      set page size (must be power of 2 = 2048 and = 32768)
        -pd            legacy system stored procedure behavior
        -q             quiet: do not display messages
        -s             add checksum to database pages
                       (by default checksums are added to database pages,
                       use '-s-' to turn off adding checksums to database pages)
        -t name      transaction log file name (default is database.log)
        -z coll      specify collation sequence for CHAR data type (defaults
                       to server platform's codepage and ordering)
        -ze encoding specify character set encoding for CHAR data type
        -zn coll     specify collation sequence for NCHAR data type
                       (use '-zn UTF8BIN' if the ICU libraries are not
                       available on the server that will load the database. ICU
                       libraries might not be installed on some platforms, such
                       as Windows CE.)
        -iqpath        The path name of the main segment file containing the
                       IQ data.
        -iqsize        The size in MB of either raw partition or OS file with
                       the -iqpath.
        -iqpgsize      The page size in bytes for the Sybase IQ segment of the
        -iqblksize     The I/O transfer block size in bytes..
        -iqreservesize Specifies the size in MB of the space to reserve for
                       the Main IQ store.
        -iqmsgpath     The path name of the segment containing the Sybase IQ
                       message trace file.
        -iqtmppath     The path name of of the temporary segment file.
        -iqtmpsize     The size in MB of either the raw partition or OS file
                       for the -iqtmppath.
        -iqtmpreservesize     The size in MB of space to reserve for the
                        temporary IQ store.

Since iqinit calls the iqsrv16 program, we can rename the iqsrv16 to iqsrv16.orig and wrap it with the following iqsrv16 shell script:


$SYBASE/IQ-16_0/bin64/iqsrv16.orig -iqtc 200 -iqmc 200 $*

Note that I’m allocating 200mb of both main and temporary cache. The IQ instance is now able to start and once the database is created, we can simply replace the iqsrv16 wrapper with the iqsrv16.orig program.

http://froebe.net/blog/2016/01/20/sap-iq-iqinit-error-sqlcode-1000338-sqlstate-qdd38-severity-14-insufficient-cache-to-allocate-free-list-solved/feed/ 0
Test post using Microsoft OneNote http://froebe.net/blog/2016/01/15/test-post-using-microsoft-onenote/ http://froebe.net/blog/2016/01/15/test-post-using-microsoft-onenote/#respond Fri, 15 Jan 2016 20:53:54 +0000 http://froebe.net/blog/?p=3222

This is a test.

http://froebe.net/blog/2016/01/15/test-post-using-microsoft-onenote/feed/ 0
Microsoft OneNote for Pros – Smart Note-Taking Tips http://froebe.net/blog/2016/01/15/microsoft-onenote-for-pros-smart-note-taking-tips/ http://froebe.net/blog/2016/01/15/microsoft-onenote-for-pros-smart-note-taking-tips/#respond Fri, 15 Jan 2016 20:08:22 +0000 http://froebe.net/blog/?p=3218

Learn how you can use hot keys, insert and use Audio/Video, integrate Excel, and check changes/versions to a doc through the history tab to be more productive in OneNote. Work Smart brings tips/tricks from Microsoft IT that improve digital productivity and help create an all-digital culture within Microsoft.

Getting into OneNote now…..

http://froebe.net/blog/2016/01/15/microsoft-onenote-for-pros-smart-note-taking-tips/feed/ 0