I recorded video to a DVD+RW disc. When I open the disc on my computer, I see a number of files, including files with the extension VOB. Each VOB file is a segment of the complete video that I want to be able to play on my computer and upload to YouTube.
To combine five VOB files on my DVD+RW disc into one file called newfile.mpg on my computer's hard drive, I executed the following command:
This is my personal blog which covers a grab bag of topics that aren't covered by my other blogs.
Monday, February 17, 2014
Tuesday, July 23, 2013
Combining VTA Light Rail or Bus Schedules into One Personalized Schedule
On the Santa Clara County's Valley Transit Agency (VTA) website, schedules are available in text format. The problem is that I want one schedule that shows me when the next light rail train is coming at a station I am going to depart from, but the VTA site doesn't provide such a schedule. You might want a single schedule to show you when the next bus is coming for a stop that serves multiple bus lines. So here below are some rough instructions as to what I do to combine two schedules into a single schedule, two times (one for northbound, and one for southbound). If you have any questions about the process, post a comment and hopefully I'll have some time to make the instructions clearer.
Tuesday, August 21, 2012
Removing leading and trailing spaces from Oracle SQL*Plus spooled output
Oracle's SQL*Plus application spools fields with spaces even if you try to trim the fields, because SQL*Plus is "doing you a favor" by making the fields line up. One way to work around this is to concatenate all fields into one big field so that SQL*Plus spools one big field. However, when I tried this with some very large fields, I got an error implying that I was concatenating too many characters. So how to work around this?
Here's what I did: I let SQL*Plus spool a tab delimited file with leading and trailing spaces (trailing blanks for all fields except for a field which uses STRAGG and had one leading space). Then I created an awk script to remove the leading and trailing spaces with code similar to the following:
Here's what I did: I let SQL*Plus spool a tab delimited file with leading and trailing spaces (trailing blanks for all fields except for a field which uses STRAGG and had one leading space). Then I created an awk script to remove the leading and trailing spaces with code similar to the following:
Saturday, October 24, 2009
Showing Outlook 2007 Calendar Appointments in Different Colors for Different Statuses
In Outlook 2003's calendar, appointments and meetings marked as "Free", "Tentative", "Busy", and "Out of Office" all automatically appeared differently on the calendar view to make it easy to visually distinguish them. Outlook 2007 offers the same "Show time as" options, but does not automatically visually distinguish these statuses by default.
I wanted this feature back in Outlook 2007, because I use my calendar not only to block out time for meeting and appointments which I mark as "Busy", but also as reminders for things I'd like to do if convenient, which I mark as "Free". Items I mark as "Free" are things like "Read the corporate newsletter", "Drink water", etc.
One way to visually distinguish meetings and appointments in Outlook 2007 is to manually assign each meeting and appointment a category which is associated with a color. This is what I did at first, but thought there must be a better way.
I wanted this feature back in Outlook 2007, because I use my calendar not only to block out time for meeting and appointments which I mark as "Busy", but also as reminders for things I'd like to do if convenient, which I mark as "Free". Items I mark as "Free" are things like "Read the corporate newsletter", "Drink water", etc.
One way to visually distinguish meetings and appointments in Outlook 2007 is to manually assign each meeting and appointment a category which is associated with a color. This is what I did at first, but thought there must be a better way.
Tuesday, October 20, 2009
Oracle Wallet and tracing didn't work when executed by cron jobs
For those who may find it helpful, here's a problem I ran into along with the solution.
When a Korn shell script using Oracle 10gR2 client's sqlplus was run manually at the command prompt, the script successfully used an Oracle Wallet to log in and run an SQL script.
However, when the same ksh script was run with a cron job, I would get the following error:
"ORA-12534: TNS:operation not supported".
When a Korn shell script using Oracle 10gR2 client's sqlplus was run manually at the command prompt, the script successfully used an Oracle Wallet to log in and run an SQL script.
However, when the same ksh script was run with a cron job, I would get the following error:
"ORA-12534: TNS:operation not supported".
Thursday, October 01, 2009
Workaround for SQL*Loader-297/ORA-01756 problem
Upgraded Oracle SQL*Loader (a.k.a. sqlldr) from a 9i version to a 10gR2 version on two computers, with release 10.2.0.1.0 on one computer and release 10.2.0.4.0 on the other.
Some ctl files have the following line:
flag "'N'",
When I'd run sqlldr release 10.2.0.4.0 or the 9i version of sqlldr, the above line caused no problems.
But when I'd run it on release 10.2.0.1.0, I'd get this error:
SQL*Loader-297: Invalid syntax or bind variable in SQL string for column FLAG.
ORA-01756: quoted string not properly terminated
I found I was able to get the ctl files to work with release 10.2.0.1.0 by changing the problematic line to this:
Some ctl files have the following line:
flag "'N'",
When I'd run sqlldr release 10.2.0.4.0 or the 9i version of sqlldr, the above line caused no problems.
But when I'd run it on release 10.2.0.1.0, I'd get this error:
SQL*Loader-297: Invalid syntax or bind variable in SQL string for column FLAG.
ORA-01756: quoted string not properly terminated
I found I was able to get the ctl files to work with release 10.2.0.1.0 by changing the problematic line to this:
Subscribe to:
Posts (Atom)