HP Webcam HD 2300 on Ubuntu

I'm glad to confirm that occasionally bought HP webcam HD 2300 is compatible with Linux Ubuntu 10.04 and 12.04. The webcam design is perfect IMHO, the price in Europe (France) is moderate (about 25 euros on retailers like Darty). Good news to linux users.

For testing webcam install and run cheese program
sudo apt-get install cheese

Fast inserting a file into a table

How to insert fast a file (i.e. binary one) from disk to a SQL Server table?

Certainly the SQL Server account should have a corresponding permissions to access the file on the disk. For example I take the file C:\WINDOWS\system32\oembios.bin having the size about 12 MB. For really big files you'd better switch to the FILESTREAM approach.

SQL: generate date/time series

There are many examples of user defined table functions generating the series of dates(times) between two specified values. Usually, in OLAP you can see a table filled by the date/time series, too. Such table avoid to generate the values "on the fly".

However, in some cases you may be unable to use an UDF or a table. Fortunately, "pure SQL" method still works.

Suppose, the start and finish dates are specified as entry parameters. The transact SQL code below generates the series "moth by month".

Pages

Subscribe to Mechanics of software RSS