Zenphoto – Hide ‘Dot’ Files
Pretty annoying there’s no easy built in way to not show images based on hidden file attribute. Best I could determine, one must implement dos “attrib” command or equivalent from PHP “exec” on every file in order to respect hidden file attribute (that sounds like way too much overhead to add on to my already pokey image gallery). I’m floored file attribs aren’t part of a more robust PHP file object but I guess this kind of stuff is hard to support in an OS neutral way.
I decided to run with renaming to .file.jpg and then hide those. Using ‘dot’ to represent hidden is very standard and pretty straightforward to accomplish the hiding via Zenphoto’s image_filter plugin API.
Zenphoto team provides generic image_filter sample to start with here: http://www.zenphoto.org/news/filter-file_searches
My dot file specific implementation (zero rocket science here): https://docs.google.com/open?id=0B5htuLP66oWlOFRnSElPVktlVTA
Drop php file in your zenphoto\plugins folder and enable via admin > plugins tab.
Add Video overlay Icon to Zenphoto Thumbnails
- Edit \zp-core\template-functions.php, look for printCustomSizedImage() function and edit it to switch to using style=”background:url(‘’)” as shown below.
- Configure overlay image:
- Start with a completely transparent png the same height and width as your thumbnails (168 pixels in my case)
- Find a preferred icon for the image (perhaps via Google Image Search) and paste that into your transparent background…
- downsizing and hiding it in a corner is a nice effect
- as well as adding a little bit of transparency
function printCustomSizedImage($alt, $size, $width=NULL, $height=NULL, $cropw=NULL, $croph=NULL, $cropx=NULL, $cropy=NULL, $class=NULL, $id=NULL, $thumbStandin=false, $effects=NULL) {
global $_zp_current_image;
if (is_null($_zp_current_image)) return;
if (!$_zp_current_image->getShow()) {
$class .= " not_visible";
}
$album = $_zp_current_image->getAlbum();
$pwd = $album->getPassword();
if (!empty($pwd)) {
$class .= " password_protected";
}
if ($size) {
$dims = getSizeCustomImage($size);
$sizing = ' width="'.$dims[0].'" height="'.$dims[1].'"';
} else {
$sizing = '';
if ($width) $sizing .= ' width="'.$width.'"';
if ($height) $sizing .= ' height="'.$height.'"';
}
if ($id) $id = ' id="'.$id.'"';
if ($class) $id .= ' class="'.$class.'"';
if (isImagePhoto() || $thumbStandin) {
/* $html = '<img src="' . pathurlencode(getCustomImageURL($size, $width, $height, $cropw, $croph, $cropx, $cropy, $thumbStandin, $effects)) . '"' . */
$html = '<img src="' . VideoOverlayIcon(pathurlencode(getCustomImageURL($size, $width, $height, $cropw, $croph, $cropx, $cropy, $thumbStandin, $effects))) . '"' .
' alt="' . html_encode($alt) . '"' .
$id .
$sizing .
' />';
$html = zp_apply_filter('custom_image_html', $html, $thumbStandin);
echo $html;
} else { // better be a plugin
echo $_zp_current_image->getBody($width, $height);
}
}
function VideoOverlayIcon($url)
{
if (isImageVideo()) return '/Photos/albums/Video_Overlay.png" style="background:url(' . $url . ')';
else return $url;
}
Windows 8 Search Drops Outlook :(
- Windows 8 Metro search doesn’t include Outlook indexed items at all.
- Windows 8 Explorer can be told to search Outlook items but only with Outlook 2010 (or older).
- If you want to search Outlook 2013 in Win8, you must use Outlook 2013’s search.
Trail Map Image to Google Earth
The idea of taking PDF or PNG/JPG based trail maps from anywhere you can find and loading them into Google Earth (GE) on your mobile device to give you a live GPS trail map.
Basic tools you need:
- A “KMZ Builder” - to turn the raw image into a KMZ file. The primary task here is mapping specific pixel points on the image to their real life lat/long. The easiest freebie I’ve found so far is Google’s Custom Maps tool for Android. It sounds like ArcGIS also provides this capability but that’s a fat commercial PC package.
- A “KMZ Loader” – for whatever idiotic reason current versions of mobile GE only load KML’s not KMZ’s. PC GE actually does load KMZ’s directly so maybe there’s hope this will fall away in future revisions. Here are Android and iOS KMZ loader apps that have worked great for me. I believe they simply extract the KMZ and feed the contents to GE automatically behind the scenes. On Android the dang thing works by firing up a mini web server to provide the KML how GE wants it… amazingly GE will only retrieve these suckers from a web URL, not a local file.
KMZ’s are convenient in that they carry the KML and the map image file together in a ZIP package. KML is just some simple xml describing pertinent info like the lat/long points and an href to the image file. If you’re curious about the KML, just rename the example .kmz file linked below to .zip and take a look at the very simple contents in notepad.
The greater Seattle area obviously has tons of cool trails… we’ve been exploring Whidbey Island lately… but I’m not finding much of any of them logged in the Garmin products I have nor on Open Street Maps. *BUT* there does seem to be decent trail coverage provided from PDF/image based trail maps on all the various federal/state/county .gov sites. And that’s where this little approach comes into play.
Taking the basic approach to the next level - Photoshop the original map image such that there is only the raw trail lines sitting on top of a transparent background. The result looks pretty dang good when loaded into GE. Tip: Use the Select > Color Range menu, hit the white background of your map with the eye dropper and play with the “fuzziness” slider. You’ll get all of the background selected to where you can hit CTRL-X to delete it leaving the trails freestanding on transparency (save as PNG file format). CTRL-SHIFT-I to invert the selection to only the trails and then Image > Adjustments > Replace Color to flip the lines from black to white to make them stand out when overlayed onto GE.
Here’s an example KMZ I’ve slapped together from this source PDF. You may notice it’s not quite lined up, I believe it’s only a matter of taking more care when using the Custom Maps tool… but it should give you the idea. If you load GE on your PC, you’ll be able to double click this file to see what I’m saying. It all rotates in 3D and even gets “clamped” to the terrain! From what I can tell, once GE has cached your tiles, you can count it working offline.
| Before | After |
Hacking Profiler into SSMS Express
- We can download the SQL Server Management Studio Express installer for free which makes for a convenient source for this tool when firing up a new Windows machine that you just want to connect to some servers and get to work - http://www.microsoft.com/en-us/download/details.aspx?id=22985
But SSMS Express doesn't provide the Profiler (aka SQL Trace) component that I can't live without. - So - If you have access to a server where these "Extended Management Tools" are already installed, you can simply copy the handful of Profiler's binary files to your drive and it'll run fine... here's the list... starting with a path like "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\":
- binn\PROFILER.EXE
- binn\PROFILER.EXE.CONFIG
- binn\PFUI.DLL
- binn\Resources\1033\PROFILER.rll
- Go ahead and add Profiler.exe to your SSMS Tools menu if you like.
- Lastly, to patch up the ability to save templates (stolen from here: http://sqlserverpedia.com/blog/sql-server-bloggers/where-did-the-sql-server-profiler-template-disappear/) - just throw a "dummy.tdf" text file into this folder: "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Profiler\Templates\Microsoft SQL Server\1050". That 1050 is the specific SQL Server version number and obviously varies so just roll with whatever yours is... just browse to some other nearby folders to find what your magic version number happens to be. All the ones you've saved so far will magically start appearing in the templates selection drop down after that.
Samsung Galaxy Tab 7.7 (P6800)
(My previous go to device, the Samsung Q1 Ultra. She served us well. :) Have we come a long way in 5 short years???
- Samsung’s Official Landing Page for the gtab 7.7
- 7.89mm (0.31 inch) thick - just amazing to hold
- 345 grams (0.76 lb) – makes for a great eReader… the brushed Alu back is nicely grippy after your hand has warmed it up for few secs (our Kindle 3G is 247g, 8.5mm and eInk is definitely cool for reading but it’s not color, smaller screen, lower res, not touch and isn’t app-tastic. Kindle Fire is 413 g, 11.4mm.)
- Super AMOLED Plus screen, 1280 x 800 res – very pleasing as everyone points out. But to be totally frank, I ride outdoors a lot, and these are really no better in direct sunlight than anything else LCD based… indoors or even in a casted shadow, the screen is very nice.
- 1.4GHz – everything runs nice and peppy on Android 3.2
- 3G – HSPA+
- microSD – surprisingly, the 8.9, 10.1 sibling tabs do not support an SD card. The original 5” Note and Tab 2 10.1 & 7.0 do, however.
- full HD video MPEG4, H.264 play very smooth… I’ve tried just a few, one MKV wouldn’t play audio, another would.
- 5100mAh battery
- When USB connected to a PC gtab 7.7 does NOT mount as a mass storage device; It mounts as an MTP device. For one, we don’t get a Windows drive letter. Drag and drop from Windows Explorer is basically the same… but various sync tools only work with mass storage. This post indicates that Honeycomb’s mixing of filesystems in the system folder structure is what renders mass storage infeasible (to PC’s).
- The microSD card natively mounts to /mnt/sdcard/extStorages/SdCard … there doesn’t appear to be an Android standard established so (some) apps don’t know where to find it.
[Update: 2012-12-18] Upgrading to Samsung OEM Ice Cream Sandwich Android v4.0
| I got mine for $645.50 from Amazon Market Vendor “Transformersandgsmphones” … it shipped very fast and was a brand new unit. Caveat: From what I understand, units purchased through grey market like this will be difficult if not impossible to submit for any warranty claim. | |
| |
| |
| |
| |
| Samsung OEM “Book Cover” Case |
|
| |
| |
Alternatives:
| |
| |
| |
| |
| |
| Not Recommended | |
| |
| |
| |
| Wish List | |
| |
| App Name | Notes |
| root.zip (free) (gtab 7.7 specific) | rooting instructions |
| BusyBox (free) | Loads grep, awk and ash (shell) |
| SuperUser (free) | Everything cool requires it |
| Android Terminal Emulator by Jack Palevich (free) |
|
| Root Explorer ($$) | Has a nice and easy “mount as R/W” button. |
| ES File Explorer (free) | Does everything in one shot… nice icons, *fast* SMB client (Windows File Sharing), FTP client, built in text editor, image viewer, even movie player |
| NtfsSd (gtab 7.7 specific) |
|
| USB Mass Storage Watcher OTG (free) (by Skidmrk) | Mounted my 2.5” USB NTFS HDD via the OTG USB pigtail just fine (the HDD required external power). |
| OsmAnd (free, but buy it) | This really makes my day… Open Street Maps (OSM) with the Open Cycle Maps (OCM) layer is the bees knees… this App readily downloads the map tiles for whatever is currently displayed, with whatever zoom levels you choose and then you’re ready to go off-road/offline… couldn’t be easier… it even does offline routing!! |
| Evernote | Skitch and all the integration on a mobile device is pretty killer. |
| Tasker, Locale Execute Plug-In | I came across this as a way to re-run mount commands after each reboot (see “mount –o bind” notes above). |
| It basically works but I punted… The issues I have are probably mostly related to the still settling Android SDCard ecosystem. | |
| Music WithMe (free) | Currently trying this as my iTunes sync’er after doubleTwist (DT) would only see internal storage Music folder… Tasker + Execute + bind mount (above) probably would've bridged that gap but Music WithMe (MWM) has a simple music storage path setting, looks promising. MWM seems to report its sync status more robustly than DT. MWM integrates through FaceBook so you get into sharing what you're listening to and what friends are listening to. I'll check that out if the basics pan out. |