Jason L. Froebe – Tech tips and How Tos for Fellow Techies

Tips & Tricks for Databases (Sybase, Oracle, MySQL, PostgreSQL, SQLite), Windows, Linux, Solaris, Perl, Java, Bash and so much much more

Started reading “Foundations of Qt Development”

by Jason L Froebe on January 19, 2010, no comments

When I purchased Foundations of Qt Development (Expert’s Voice in Open Source) by Johan Thelin a few months back, I hoped to get to it right away but work and life diverted my attention. Today at lunch I dived into it. Even though I’m still going through chapter 1, I think I can give a [...]

Share Button

How to resize a Gdk.Pixbuf to the size of a Gtk.Image visible area

by Jason L Froebe on January 12, 2010, 2 comments

I wrote a simple image viewer that will load a photo image into a Gtk.Image widget using a Gdk.Pixbuf.  I then added a tool bar with four clickable icons.  Zoom out, zoom in, fit to window and original size. All but the fit to window worked well.  When I pulled the width and height from [...]

Share Button

Sybase’s PowerBuilder v12 is powerful, .NET based, and wonderful! Why you shouldn’t use it

by Jason L Froebe on August 27, 2009, 14 comments

The following is MY perception of Sybase’s PowerBuilder: Years ago PowerBuilder was king.  No one could touch it.  It was relatively inexpensive.  Microsoft’s Visual Basic matured and the Pascal based Borland’s Delphi was released.  Then it fell and fall it did. As it was falling from the throne Sybase purchased Powersoft, makers of PowerBuilder.  As [...]

Share Button

O_DIRECT & O_ASYNC, Linux & Perl

by Jason L Froebe on May 10, 2007, no comments

I’ve written a C program that creates a 20GB file using O_DIRECT and O_ASYNC correctly. The trick to write to a file using O_DIRECT is that I have to align the buffer with respect to the memory block size. When I write a similar program using Perl, I receive the expected “System write error: Invalid [...]

Share Button

Linux O_DIRECTIO: what am I doing wrong?

by Jason L Froebe on May 10, 2007, no comments

I’m trying to create a file using O_DIRECT (direct I/O) but am running into a problem. If I run it as a normal user (me) I get error number 22 (invalid argument): ./dio bytes_read= 4096 write failed: Invalid argument bytes_read= 4096 write failed: Invalid argument bytes_read= 4096 write failed: Invalid argument bytes_read= 4096 write failed: [...]

Share Button
Facebook login by WP-FB-AutoConnect