tag:blogger.com,1999:blog-120399752008-06-23T09:16:54.842-05:00Oleg's Mac Development WeblogOleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-12039975.post-1155339128204287972006-08-11T18:32:00.000-05:002006-08-11T18:32:08.206-05:00Lanczos resampling - Wikipedia, the free encyclopedia<a href="http://en.wikipedia.org/wiki/Lanczos_resampling">Lanczos resampling</a><br /><br />Lanczos resampling (aka Lanczos2 and Lanczos3) is the use of a windowed <a href="http://en.wikipedia.org/wiki/Sinc_function">sinc</a> function as a convolution kernel for image resampling. Currently it is one of the best digital image resizing kernels.<br /><br /><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Sinc_function_%28both%29.svg/180px-Sinc_function_%28both%29.svg.png" /><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Lanczos_interpolation_-_Sheet_music%2C_interpolated.jpg/350px-Lanczos_interpolation_-_Sheet_music%2C_interpolated.jpg" width="50%" />Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1155338664419540262006-08-11T18:24:00.000-05:002006-08-11T18:24:24.456-05:00Optimizing Image Processing With vImage<a href="http://developer.apple.com/documentation/Performance/Conceptual/vImage/index.html">Optimizing Image Processing With vImage</a><br /><br />vImage is Apple’s image processing framework. It includes high-level functions for image manipulation—convolutions, geometric transformations, histogram operations, morphological transformations, and alpha compositing—as well as utility functions for format conversions and other operations.Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1141255145142557332006-03-01T18:19:00.000-05:002006-03-01T18:19:05.163-05:00How To Install Apple's Front Row - AndrewEscobar.com<a href="http://www.andrewescobar.com/archive/2006/01/10/front-row/">How To Install Apple's Front Row - AndrewEscobar.com</a><br /><br />Thanks to an update from Apple, <a title="Apple - iMac G5 - Front Row" href="http://www.apple.com/imac/frontrow.html">Front Row</a> can now be easily installed on any Mac running 10.4.4 Tiger. While you previous had to rely on quirky hacks, Front Row can now be added to Tiger with full support, including keyboard shortcut and sound preferences.Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1117197788600931412005-05-27T07:43:00.000-05:002005-05-27T07:43:08.990-05:00Mac Help - Convert and Burn Mac .dmg or .img to .iso Windows PC-Compatible Disk Image<a href="http://homepage.mac.com/geerlingguy/mac_support/mac_help/pages/23-convert_dmg_img_iso.html">Mac Help - Convert and Burn Mac .dmg or .img to .iso Windows PC-Compatible Disk Image</a>:
<br />- Open Disk Utility (located in Applications>Utilities folder).
<br />- Drag your disk image into the left-hand pane (where all your drives are listed) of Disk Utility.
<br />- Click on the file you just dragged into Disk Utility (should appear in the left-hand column).
<br />- Click on the 'Images' menu, then choose 'Convert...'
<br />- When the 'Convert Image' dialog pops up, select 'DVD/CD Master' from the 'Image Format' pop-up menu.
<br />- Name your file, with '.cdr' at the end of the filename, then click 'Save.'
<br />- Disk Utility will convert the file to an ISO image. After this finishes, replace the 'cdr' at the end of the filename (in the Finder) to 'iso'.
<br />- Now, the disk should be burnable on a Windows PC (simply copy the file to your PC by either copying it across a network or using some other means of transferring the data). Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1113899929266401692005-04-19T03:36:00.000-05:002005-04-19T03:38:49.266-05:00Path to Mac folders in UNIX (POSIX) formA simple call to OSA from Terminal gets the UNIX paths common Mac locations.<br /><br />$ osascript -e 'path to desktop'<br />alias Macintosh HD:Users:olegyk:Desktop:<br /><br />$ osascript -e 'POSIX path of (path to desktop)'<br />/Users/user/Desktop/<br /><br />$ osascript -e 'POSIX path of (path to fonts)'<br />/System/Library/Fonts/<br /><br />$ osascript -e 'POSIX path of "LaCie"'<br />/Volumes/LaCieOleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1113643897785049312005-04-16T04:31:00.000-05:002005-04-16T04:31:37.786-05:00MacOSX.com - The Answer to Mac Support - [HOWTO] - Use iTunes as an alarm clock<a href="http://www.macosx.com/forums/archive/index.php/t-8436.html">MacOSX.com - [HOWTO] - Use iTunes as an alarm clock</a>
<br />
<br />Used UNIX cron to run AppleScript at specific times.
<br />
<br />Simple and clean implementation. Complete explanation.
<br />Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1113159225052814472005-04-10T13:46:00.000-05:002005-04-10T13:53:45.053-05:00Carbon: Error MessageIn Carbon, most functions return error as OSStatus integer code. In all code I have seen so far, the programmer has to expect certain result codes and supply custom error messages to the user:<br /><br /><pre><br />OSStatus err = Call(...);<br />if (err == errSomeError) {<br /> Alert("This error occurred.");<br />}<br /></pre><br /><br />I am looking for a way to generically obtain the system error message. Similar to how it is done on Windows.<br /><br /><blockquote><br />The FormatMessage function can be used to obtain error message strings for the system error codes returned by GetLastError, as shown in the following sample code.<br /></blockquote><br /><br /><pre><br />LPVOID lpMsgBuf;<br /><br />FormatMessage( <br /> FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | <br /> FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(),<br /> MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language<br /> (LPTSTR) &lpMsgBuf, 0, NULL );<br /><br />MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION );<br />LocalFree( lpMsgBuf );<br /></pre>Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.comtag:blogger.com,1999:blog-12039975.post-1113044786330217262005-04-09T06:05:00.000-05:002005-04-09T06:07:47.520-05:00Test AgainThis is a test posting.<br /><br />Welcome to Blogger, a substantial collection of how-to and help documents to help you get more out of Blogger. Search through our collection with Article Search (to the right) or just browse through the categories below. If you can't find what you need here, send an email to the Blogger support team and we'll get back to you as soon as we can.Oleghttp://www.blogger.com/profile/09574711614467402779noreply@blogger.com