Comments for 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 Thu, 20 Apr 2017 15:11:16 +0000 hourly 1 https://wordpress.org/?v=4.7.4 Comment on ERROR: SQLite database is malformed – SOLVED by Jason L Froebe http://froebe.net/blog/2015/05/27/error-sqlite-database-is-malformed-solved/comment-page-1/#comment-101114 Thu, 20 Apr 2017 15:11:16 +0000 http://froebe.net/blog/?p=3015#comment-101114 It could be caused by just about anything. A bug within the application code that causes the application to crash or fail when it is writing to the database, a faulty device driver, etc. SQLite doesn’t provide much in diagnosing how occurred or exactly where the corruption resides.

]]>
Comment on ERROR: SQLite database is malformed – SOLVED by Jason L Froebe http://froebe.net/blog/2015/05/27/error-sqlite-database-is-malformed-solved/comment-page-1/#comment-101113 Thu, 20 Apr 2017 15:09:34 +0000 http://froebe.net/blog/?p=3015#comment-101113 It allows you to extract any recoverable data. SQLite is lacking in consistency checks and ability to recover without rebuilding the database, which is what this method does.

]]>
Comment on ERROR: SQLite database is malformed – SOLVED by Mallika http://froebe.net/blog/2015/05/27/error-sqlite-database-is-malformed-solved/comment-page-1/#comment-101108 Thu, 20 Apr 2017 03:12:54 +0000 http://froebe.net/blog/?p=3015#comment-101108 Thanks for posting this. I tried it but it didn’t restore the data. I got the db back, but the tables were empty.
Does this fix restore the data?

]]>
Comment on ERROR: SQLite database is malformed – SOLVED by Mallika http://froebe.net/blog/2015/05/27/error-sqlite-database-is-malformed-solved/comment-page-1/#comment-101087 Tue, 18 Apr 2017 22:27:27 +0000 http://froebe.net/blog/?p=3015#comment-101087 Thanks for the fix! Do you know why this happens?

]]>
Comment on ERROR: SQLite database is malformed – SOLVED by WynandB http://froebe.net/blog/2015/05/27/error-sqlite-database-is-malformed-solved/comment-page-1/#comment-98522 Sat, 28 Jan 2017 10:37:51 +0000 http://froebe.net/blog/?p=3015#comment-98522 This is great, thank you!

]]>
Comment on Howto Perl: Crypt::CBC module with the blowfish encryption cipher by Jason L Froebe http://froebe.net/blog/2013/04/09/howto-perl-cryptcbc-module-with-the-blowfish-encryption-cipher/comment-page-1/#comment-98280 Fri, 20 Jan 2017 18:33:42 +0000 http://froebe.net/blog/?p=1955#comment-98280 Personally I prefer subroutines at the top of the script but putting them at the bottom is okay too.

I don’t believe using shift instead of $_ will gain us much in this case as we’re only using the first parameter to encrypt() and decrypt(). If we were looping through the parameters I could see the benefit.

]]>
Comment on Howto Perl: Crypt::CBC module with the blowfish encryption cipher by Hawk http://froebe.net/blog/2013/04/09/howto-perl-cryptcbc-module-with-the-blowfish-encryption-cipher/comment-page-1/#comment-98231 Thu, 19 Jan 2017 03:42:22 +0000 http://froebe.net/blog/?p=1955#comment-98231 I’m guessing you are a C programmer? I can tell by the writing style.
Your code has a lot of lint. Here is a cleaner version of it:

#!/usr/bin/perl
use warnings;
use strict;

use Crypt::CBC;

my $cipher = Crypt::CBC->new(
-key => ‘g0oB3r__g0oB3r’,
-cipher => ‘Blowfish’,
);

my $encrypted_string = encrypt(‘happy’);
my $decrypted_string = decrypt($encrypted_string);

printf “‘happy’ -> encrypted as ‘%s’ -> decrypted to ‘%s’\n”, $encrypted_string, $decrypted_string;

# Encrypts a string and returns it.
sub encrypt {
$cipher->encrypt_hex(shift);
}

# Decrypts an encrypted string and returns it.
sub decrypt {
$cipher->decrypt( pack(“H*”, shift) );
}

]]>
Comment on HowTo: List locked, expired and to expire dates for Oracle logins query for sqlplus/scripting by David Makepeace http://froebe.net/blog/2013/12/06/howto-list-locked-expired-and-to-expire-dates-for-oracle-logins-query-for-sqlplusscripting/comment-page-1/#comment-98216 Wed, 18 Jan 2017 17:55:12 +0000 http://froebe.net/blog/?p=2591#comment-98216 Very useful. Thanks so much. Saved me a lot of time.

]]>
Comment on SAP Sybase IQ – dbcc for IQ? Yes! Just use sp_iqcheckdb by Joerg http://froebe.net/blog/2014/03/11/sap-sybase-iq-dbcc-for-iq-yes-just-use-sp_iqcheckdb/comment-page-1/#comment-98051 Sat, 14 Jan 2017 12:52:29 +0000 http://froebe.net/blog/?p=2679#comment-98051 Hi Jason,
some question about the Sybase IQ 12.7 in Sybase IQ15.X the Server startup utility switches removed [CR 537028]

-iqdroplks – replaced by the DROPLEAKS option for sp_iqcheckdb
so sp_iqcheckdb ‘dropleaks database | dbspace’ not working do you know hot to fix this in Sybase IQ 12.7 ?
Many Thanks,

Joerg

]]>
Comment on HOWTO: Enable 3D Acceleration in VMWare Player/Workstation in Ubuntu Linux 15.04 with Intel Graphics SOLVED by Wilson http://froebe.net/blog/2015/05/05/howto-enable-3d-acceleration-in-vmware-playerworkstation-in-ubuntu-linux-15-04-with-intel-graphics-solved/comment-page-1/#comment-97788 Thu, 05 Jan 2017 07:41:51 +0000 http://froebe.net/blog/?p=2992#comment-97788 Heya, thank you so much.. I posted your link. WAs able to finally get OSX to accept 3D acceleration. It says not supported in the guest OS, but able to select it at least.

]]>
Comment on Linux & selinux: xauth timeout in locking authority file .Xauthority SOLVED by Daryl http://froebe.net/blog/2015/01/20/linux-selinux-xauth-timeout-in-locking-authority-file-xauthority-solved/comment-page-1/#comment-97606 Fri, 30 Dec 2016 21:14:06 +0000 http://froebe.net/blog/?p=2924#comment-97606 Ditto – 25 sites later and restorecon was the ticket.
Thanks!

]]>
Comment on HowTo: Windows 7 32bit AND 64bit Sound with KVM / libvirt and the Spice client by Steve http://froebe.net/blog/2013/02/10/howto-windows-7-32bit-and-64bit-sound-with-kvm-libvirt-and-the-spice-client-2/comment-page-1/#comment-96683 Tue, 13 Dec 2016 09:07:06 +0000 http://froebe.net/blog/?p=1479#comment-96683 I am trying to install this QXL driver in Windows 7 64 bit by following all of the steps you have listed but each time I do it says Windows has determined the driver software for your device is up to date. But the driver is “Standard VGA Graphics Adapter”

Any suggestions?

]]>
Comment on How to enable font anti-aliasing for Windows XP Sp3 remote desktop connections by Elena http://froebe.net/blog/2009/04/14/how-to-enable-font-anti-aliasing-for-windows-xp-sp3-remote-desktop-connections/comment-page-1/#comment-95668 Mon, 21 Nov 2016 16:20:35 +0000 http://froebe.net/blog/?p=1050#comment-95668 Dear, I wanted to thank u heartfeltly for ur precious suggestion. Notice that I’m using remote desktops MASSIVELY and the absence of anti aliasing was so insanely exhausting !!!!
ONLY NOTICE that, in my case at least, the way u suggested did not work. I had to add another identical Key inside WinStations/Console/RDP and to be 100% sure even inside WinStations/RDP-Tcp. Now it works flawlessly. Thanks !

]]>
Comment on How to root the Bell and Howell C714 tablet by Jason L Froebe http://froebe.net/blog/2013/10/29/how-to-root-the-bell-and-howell-c714-tablet/comment-page-1/#comment-95226 Mon, 14 Nov 2016 16:17:46 +0000 http://froebe.net/blog/?p=2434#comment-95226 Honestly, I wouldn’t spend much time on it, the tablet is quite old and is worth less than $10 now.

]]>
Comment on Getting “Xlib: PuTTY X11 proxy: wrong authentication protocol attempted”? I have the answer :) by Dostoievsky http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/comment-page-3/#comment-94549 Tue, 01 Nov 2016 14:59:58 +0000 http://froebe.net/blog/?p=755#comment-94549 THANKS A LOT!!!! Genius!

]]>
Comment on How to root the Bell and Howell C714 tablet by Rebecca http://froebe.net/blog/2013/10/29/how-to-root-the-bell-and-howell-c714-tablet/comment-page-1/#comment-94148 Tue, 18 Oct 2016 15:39:11 +0000 http://froebe.net/blog/?p=2434#comment-94148 I purchased a couple for my kids as well. Last year my son’s exploded! He wasn’t using it, it was just sitting where it usually does when not in use and the next day I noticed it had blown apart. I called the company and they replaced it. The crazy thing is, they weren’t even surprised. They actually already have a procedure is place for just such an occurrence.

Fast forward another year, now my daughter’s had exploded in th same way. Problem is, i cannot find a contact number for them. I called the customer service number on the manual, but it rerouted me to a different place that sounds like a scam operation.

Anyone else experience this?

]]>
Comment on How to create an iTunes/iPod compatible audiobook (MPEG4 m4b) on Linux using MP4Box and mp4v2 v1.9.1 – it can be done! by Jason L Froebe http://froebe.net/blog/2009/12/24/how-to-create-an-itunesipod-compatible-audiobook-mpeg4-m4b-on-linux-using-mp4box-and-mp4v2-v1-9-1-it-can-be-done/comment-page-1/#comment-94112 Mon, 17 Oct 2016 14:20:39 +0000 http://froebe.net/blog/?p=1163#comment-94112 Atomic Parsley may be able to. I don’t own an iPod to test it.

]]>
Comment on How to create an iTunes/iPod compatible audiobook (MPEG4 m4b) on Linux using MP4Box and mp4v2 v1.9.1 – it can be done! by Ajar http://froebe.net/blog/2009/12/24/how-to-create-an-itunesipod-compatible-audiobook-mpeg4-m4b-on-linux-using-mp4box-and-mp4v2-v1-9-1-it-can-be-done/comment-page-1/#comment-94038 Fri, 14 Oct 2016 23:58:46 +0000 http://froebe.net/blog/?p=1163#comment-94038 Is there a way to add an image to a chapter?

]]>
Comment on How to create an iTunes/iPod compatible audiobook (MPEG4 m4b) on Linux using MP4Box and mp4v2 v1.9.1 – it can be done! by Ajar http://froebe.net/blog/2009/12/24/how-to-create-an-itunesipod-compatible-audiobook-mpeg4-m4b-on-linux-using-mp4box-and-mp4v2-v1-9-1-it-can-be-done/comment-page-1/#comment-93960 Wed, 12 Oct 2016 23:21:47 +0000 http://froebe.net/blog/?p=1163#comment-93960 Is there a way to add an image to each chapter

]]>
Comment on HowTo: SAP IQ What is running right now (active transactions) hogging resources? by Jason L Froebe http://froebe.net/blog/2016/08/05/howto-sap-iq-what-is-running-right-now-active-transactions-hogging-resources/comment-page-1/#comment-93208 Fri, 16 Sep 2016 17:04:53 +0000 http://froebe.net/blog/?p=3310#comment-93208 Updated to show the locked tables and types of locks:

select
    now(),
    siqc.ConnHandle,
    ISNULL(siqc.MPXServerName, siqc.LSName) "Server",
    siqc.Name,
    siqc.Userid,
    siqc.ConnCreateTime,
    siqc.LastReqTime,
    siqc.NodeAddr "Connect From",
    siqc.LastIdle,
    saci.BlockedOn,
    siql.creator + '.' + siql.table_name "LockTable",
    siql.lock_class,
    siql.lock_duration,
    siql.lock_type,
    siql.row_identifier,
    sacp_ProcName.Value "Proc Name",
    sacp_ProcLineNumber.Value "Proc Line Number",
    siqt.TxnID,
    siqt.TxnCreateTime,
    CAST(siqc.TempTableSpaceKB / 1024 AS Integer) "TempTableSpaceMB",
    CAST(siqc.TempWorkSpaceKB / 1024 AS Integer) "TempWorkSpaceMB",
    siqc.IQthreads,
    siqc.ReqType,
    sac.LastStatement
FROM
    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
    LEFT OUTER JOIN sp_iqlocks() siql on siql.conn_id = siqc.ConnHandle
WHERE
    siqc.TxnID > 0
    AND siqc.ConnHandle != @@spid
    AND siqc.Userid != 'dbo'
    AND sacp_ProcLineNumber.PropName = 'CurrentLineNumber'
    AND sacp_ProcName.PropName = 'CurrentProcedure'
ORDER BY
    siqc.ConnCreateTime asc,
    siqc.LastReqTime desc;
]]>
Comment on HOWTO: Determine what process is listening on a port (AIX Unix specific) by Peter http://froebe.net/blog/2014/12/04/howto-determine-what-process-is-listening-on-a-port-aix-unix-specific/comment-page-1/#comment-92864 Fri, 02 Sep 2016 13:20:46 +0000 http://froebe.net/blog/?p=2891#comment-92864 Thanks, very helpful for me!!

]]>
Comment on Linux & selinux: xauth timeout in locking authority file .Xauthority SOLVED by Jason L Froebe http://froebe.net/blog/2015/01/20/linux-selinux-xauth-timeout-in-locking-authority-file-xauthority-solved/comment-page-1/#comment-92855 Thu, 01 Sep 2016 23:16:37 +0000 http://froebe.net/blog/?p=2924#comment-92855 You’re welcome

]]>
Comment on Get it here! Perl DBD::Sybase 1.14.01 for Active State Perl 5.16 Windows XP/Vista/7/8 32bit AND 64bit by Jason L Froebe http://froebe.net/blog/2013/02/17/get-it-here-perl-dbdsybase-1-14-01-for-active-state-perl-5-16-windows-xpvista78-32bit-and-64bit/comment-page-1/#comment-92854 Thu, 01 Sep 2016 23:13:28 +0000 http://froebe.net/blog/?p=1502#comment-92854 You can connect to Sybase databases through the DBD::ODBC driver or even DBD::ADO using Perl. Just make sure you have the Sybase PC client installed.

I’ll see what I can do to come up with example code for using DBD::ODBC and DBD::ADO on windows with Sybase ASE.

jason

]]>
Comment on Linux & selinux: xauth timeout in locking authority file .Xauthority SOLVED by Michael Jameson http://froebe.net/blog/2015/01/20/linux-selinux-xauth-timeout-in-locking-authority-file-xauthority-solved/comment-page-1/#comment-92853 Thu, 01 Sep 2016 19:42:53 +0000 http://froebe.net/blog/?p=2924#comment-92853 You are the only one that resolved my issues. I bet I looked at 25 other sites, all saying about the same thing. You were the first one with the solution that worked for me. Thanks!!!

]]>
Comment on Get it here! Perl DBD::Sybase 1.14.01 for Active State Perl 5.16 Windows XP/Vista/7/8 32bit AND 64bit by Malli http://froebe.net/blog/2013/02/17/get-it-here-perl-dbdsybase-1-14-01-for-active-state-perl-5-16-windows-xpvista78-32bit-and-64bit/comment-page-1/#comment-92850 Thu, 01 Sep 2016 12:36:17 +0000 http://froebe.net/blog/?p=1502#comment-92850 Hi Jason,
Thanks for your reply. Here i have to use DBD::Sybase because my data base is Sybase. I am using this DBD::Sybase to call sybase DB from Perl. So please let me know if you have some solution for this issue.I am sure so many people facing the same issue.

Thanks:-
Malli

]]>
Comment on Get it here! Perl DBD::Sybase 1.14.01 for Active State Perl 5.16 Windows XP/Vista/7/8 32bit AND 64bit by Jason L Froebe http://froebe.net/blog/2013/02/17/get-it-here-perl-dbdsybase-1-14-01-for-active-state-perl-5-16-windows-xpvista78-32bit-and-64bit/comment-page-1/#comment-92709 Wed, 24 Aug 2016 18:23:53 +0000 http://froebe.net/blog/?p=1502#comment-92709 Unfortunately the method of extracting the symbol tables from the Sybase/SAP openclient DLLs no longer works except for Visual Studio. I recommend using DBD::ODBC or DBD::ADO instead. I’m not certain on the legality of using the community edition of Visual Studio and building/supplying the binary version of DBD::Sybase.

]]>
Comment on Get it here! Perl DBD::Sybase 1.14.01 for Active State Perl 5.16 Windows XP/Vista/7/8 32bit AND 64bit by Malli http://froebe.net/blog/2013/02/17/get-it-here-perl-dbdsybase-1-14-01-for-active-state-perl-5-16-windows-xpvista78-32bit-and-64bit/comment-page-1/#comment-92706 Wed, 24 Aug 2016 14:36:57 +0000 http://froebe.net/blog/?p=1502#comment-92706 Hi,
If it requires any new DBD::Sybase verion ZIP file, please upload here. It will be great help if you upload the latest version here.

Thanks:-
Malli

]]>
Comment on Get it here! Perl DBD::Sybase 1.14.01 for Active State Perl 5.16 Windows XP/Vista/7/8 32bit AND 64bit by Malli http://froebe.net/blog/2013/02/17/get-it-here-perl-dbdsybase-1-14-01-for-active-state-perl-5-16-windows-xpvista78-32bit-and-64bit/comment-page-1/#comment-92705 Wed, 24 Aug 2016 14:34:20 +0000 http://froebe.net/blog/?p=1502#comment-92705 Hi Jason,
I have installed Active State Perl 5.16 and downloaded ‘DBD::Sybase 1.14.01’ ZIP from this web site. When i am executing my code getting below error. Can you please help me with the resolution.

Logs:

INFO: cgi: runCGI (stderr):install_driver(Sybase) failed: Can’t load ‘C:/Perl64/site/lib/auto/DBD/Sybase/Sybase.dll’ for module DBD::Sybase: load_file:The specified module could not be found at C:/Perl64/lib/DynaLoader.pm line 191.
Aug 24, 2016 7:48:18 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr): at (eval 9) line 3.
Aug 24, 2016 7:48:18 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):Compilation failed in require at (eval 9) line 3.
Aug 24, 2016 7:48:18 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):Perhaps a required shared library or dll isn’t installed where expected
Aug 24, 2016 7:48:18 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr): at C:\worklist\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\fr_usowl\WEB-INF\cgi\usrp\pickWlItem line 50.

Thanks:-
Malli

]]>
Comment on Get it here! Perl DBD::Sybase 1.14.01 for Active State Perl 5.16 Windows XP/Vista/7/8 32bit AND 64bit by Malli http://froebe.net/blog/2013/02/17/get-it-here-perl-dbdsybase-1-14-01-for-active-state-perl-5-16-windows-xpvista78-32bit-and-64bit/comment-page-1/#comment-92697 Tue, 23 Aug 2016 13:11:04 +0000 http://froebe.net/blog/?p=1502#comment-92697 Hi Jason L Froebe,
I have followed the above steps and configured DBD::Sybase 1.14.01 for Active State Perl 5.16. Operating system is Windows 7 and i am using ActivePerl in my local system to connect to the actual Sybase server(Sybase installed in another system i.e, Unix Machine). I am doing this for local set up.

I am getting below error. Please help me with this.

Logs:

Aug 23, 2016 6:01:07 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):install_driver(Sybase) failed: Can’t load ‘C:/Perl64/site/lib/auto/DBD/Sybase/Sybase.dll’ for module DBD::Sybase: load_file:The specified module could not be found at C:/Perl64/lib/DynaLoader.pm line 191.
Aug 23, 2016 6:01:07 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr): at (eval 9) line 3.
Aug 23, 2016 6:01:07 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):Compilation failed in require at (eval 9) line 3.
Aug 23, 2016 6:01:07 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):Perhaps a required shared library or dll isn’t installed where expected
Aug 23, 2016 6:01:07 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr): at C:\worklist\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\fr_usowl\WEB-INF\cgi\usrp\pickWlItem line 50.
Aug 23, 2016 6:01:23 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):install_driver(Sybase) failed: Can’t load ‘C:/Perl64/site/lib/auto/DBD/Sybase/Sybase.dll’ for module DBD::Sybase: load_file:The specified module could not be found at C:/Perl64/lib/DynaLoader.pm line 191.
Aug 23, 2016 6:01:23 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr): at (eval 9) line 3.
Aug 23, 2016 6:01:23 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):Compilation failed in require at (eval 9) line 3.
Aug 23, 2016 6:01:23 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr):Perhaps a required shared library or dll isn’t installed where expected
Aug 23, 2016 6:01:23 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr): at C:\worklist\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\fr_usowl\WEB-INF\cgi\usrp\pickWlItem line 50.

]]>
Comment on YAPC::NA VIM as a Perl IDE‎ – Damian Conway (2016) by Jason L Froebe http://froebe.net/blog/2016/08/08/yapcna-vim-as-a-perl-ide%e2%80%8e-damian-conway-2016/comment-page-1/#comment-92522 Tue, 09 Aug 2016 00:39:33 +0000 http://froebe.net/blog/?p=3320#comment-92522 The tar ball that Damian mentions is at the YAPC::NA 2016 website: http://www.yapcna.org/yn2016/talk/6833

]]>