Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »

Alex Leonard › Comments

Alex Leonard
Re: Evernote for Android gets an overhaul - http://alex.leonard.ie/2012...
"Thanks for the tip. I had mentioned it on the Evernote forum and someone pointed it out there. It's a little awkward though, I find it gets interpreted as an attempt to use the scroll bar." - Alex Leonard
Alex Leonard
Re: WordPress: make writing custom post types easier - http://alex.leonard.ie/2012...
"Very happy to post about them :) I'm trying to get into the habit of posting about the tools that make my life easier, and your custom post/taxonomy generators definitely fit into that category! Thanks again!" - Alex Leonard
Alex Leonard
"Thanks for stopping by :) Aye, there is something very pleasing about large empty spaces. In this case the emptiness is sort of faked.. as it's a HDR shot some of the exposures were very long, so there were people there but they've disappeared due to the exposure length." - Alex Leonard
Alex Leonard
Re: A winter visit to Rathlin - http://alex.leonard.ie/2012...
"Deadly, thanks Donncha :) I'm heading to Poland soon, can't wait to get some photos over there." - Alex Leonard
Alex Leonard
Re: WordPress: Check if post is in custom taxonomy - http://alex.leonard.ie/2011...
"Hi Elba, I don't see why you wouldn't be able to put an elseif statement in there. Do you have errors enabled so you can see what's failing? In theory you should be able to do if ( pa_in_taxonomy('genres', 'western') ) { //do this } elseif ( pa_in_taxonomy('format', 'dvd') ) { // do that } else { // do default }" - Alex Leonard
Alex Leonard
Re: WordPress: Check if post is in custom taxonomy - http://alex.leonard.ie/2011...
"Hi Scott, I don't think it should make any difference whether it's hierarchical or not. Perhaps the function should really be called pa_in_tax_term. A post can only be in a 'taxonomy' if it has a term of that taxonomy applied to it. If you wanted to check whether the post had *any* term that was in a taxonomy, you could get an array of the taxonomies terms and pass that into the function. Say your taxonomy is called books, you would do: $books_terms = get_terms('books'); and then follow that with: if (pa_in_taxonomy('books', $books_terms ) {} I think that should work. That means you'll check whether the current post is in ANY term in the taxonomy you're checking. Does that help? :) A!" - Alex Leonard
Alex Leonard
Re: Google Docs finally gets custom styles - http://alex.leonard.ie/2012...
"Aye, I noticed that eventually when I actually made use of multiple header levels. I guess it makes sense - only display UI elements when they're needed. It's definitely not designed for super complicated document layouts, but for a quick and speedy document editor it does a fairly good job. That said, having a doc loaded in Chrome actually uses a fair amount of RAM - a lot more than the equivalent doc loaded locally in LibreOffice.." - Alex Leonard
Alex Leonard
Re: Google Drive launched; Dropbox hurting? - http://alex.leonard.ie/2012...
"Hey Howard, Deadly, glad to hear that worked out. I don't know whether it will cause any issues with time machine, but I guess if Time Machine is also scanning the Google Drive folder then everything will definitely be covered. You'd have to test it if you're not scanning the GDrive folder.  I'm on a RAID1 array on my main storage drive so I'm not too worried there. I use a file sync application for syncing my laptop and desktop and that treats the symbolic link as a normal folder filled with files. I have to make a decision on exactly what I'm going to use GDrive for. I'm grandfathered into their 80GB plan (if only I'd thought to upgrade storage before the launch!). Have to think about it a bit. Glad I was able to help in some way :)" - Alex Leonard
Alex Leonard
Re: Google Drive launched; Dropbox hurting? - http://alex.leonard.ie/2012...
"What OS are you on? I've created a test symbolic link on Win 7 here and it's working a treat. Note that I've actually transferred the files into Google drive and then symbolic linked backwards. So my original folder structure 'appears' to be the same, although the files have actually been moved." - Alex Leonard
Alex Leonard
Re: Bank of Ireland – Business On-Line - http://alex.leonard.ie/2012...
"Hehe. A very good point :)" - Alex Leonard
Alex Leonard
Re: SwiftKey 3 – New beta version available - http://alex.leonard.ie/2012...
"No other blog that I can think of. Does inane babbling like this post drive you away? How's things? Hope all is well!" - Alex Leonard
Alex Leonard
Re: WordPress: Check if post is in custom taxonomy - http://alex.leonard.ie/2011...
"Thanks Ramon! Perhaps I should finally dive into the trac and make some suggestions :) I'd be very proud if I ever submitted a patch/update to the core. That would be incredibly awesome!" - Alex Leonard
Alex Leonard
Re: WordPress: get featured image exif data - http://alex.leonard.ie/2012...
"Hey Guido, I haven't been tagging geo-coordinates to my photos as of yet so I'm not 100% sure if wp_get_attachment_metadata() provides that information.  You'll need to do a test - assign wp_get_attachment_metadata() to a variable and print_r it. If one of the entries relates to geo-coordinates then it should be very easy to pull that information out and place a marker on a map. Probably best to do this in your header.php so if the geo-coordinates exist you can populate a script which gets Google Maps API v3 to dynamically populate a div with map and marker. It's a good idea and I'll do some tests myself but I won't be able to find time to work on that for a while. If the attachment metadata doesn't include geo-coordinates I'd suggest just doing it manually with a great plugin like http://pronamic.eu/wp-plugins/... which makes it super easy to drop a marker when creating the post and populate a map on the front end." - Alex Leonard
Alex Leonard
Re: Function: the_post_thumbnail_wallpapers - http://alex.leonard.ie/2012...
"Hi Zohar, sorry for the delay, busy week of work. I fixed the errors in the code output and it should work correctly now." - Alex Leonard
Alex Leonard
"Ah ha. I totally didn't spot that :)" - Alex Leonard
Alex Leonard
Re: Function: the_post_thumbnail_wallpapers - http://alex.leonard.ie/2012...
"Ooops, sorry about that. Looks like my code syntax plugin threw things a bit off. I'll fix that in the morning when I'm at my computer." - Alex Leonard
Alex Leonard
Re: WordPress: Check if post is in custom taxonomy - http://alex.leonard.ie/2011...
"Brilliant! That's a lovely comment to get :) Glad it was useful for you and worthy of 3(!) "thank yous"." - Alex Leonard
Alex Leonard
Re: WizMouse – A utility you didn’t know you needed - http://alex.leonard.ie/2012...
"It works pretty much universally. I have a feeling that there's one or two instances where it doesn't work but I can't for the life of me think which applications that might apply to. For such a small footprint it's totally worth it :) Hope it works out well!" - Alex Leonard
Alex Leonard
Re: WordPress: Get ID of top-level parent category - http://alex.leonard.ie/2011...
"You're most welcome! Glad the code was useful :)" - Alex Leonard
Alex Leonard
Re: Boot time comparison: iPhone 4, Moto Atrix, Galaxy S2 - http://alex.leonard.ie/2011...
"The Samsung Galaxy S2 is the fastest by a long shot. Sometimes seeing it in real time gives a better sense of reality. Next time though I'll convert it into a chart as well :)" - Alex Leonard
Alex Leonard
Re: WordPress: Get ID of top-level parent category - http://alex.leonard.ie/2011...
"This code will only work when you are viewing a category, not a single post or a page or a custom post type. The issue with trying to determine parent category for a single post is that a single post _can_ reside in more than one category. If you know for certain that you're only ever going to apply one category to each post then you can use the get_the_category() function in your single.php file. http://codex.wordpress.org/Fun... You would probably need to do something like $category = get_the_category($post->ID); $catid = $category[0]->cat_ID; $top_level_cat = pa_category_top_parent_id ($catid); Or something along those lines. Hope that helps!" - Alex Leonard
Alex Leonard
Re: WordPress: Get ID of top-level parent category - http://alex.leonard.ie/2011...
"Hey there, delighted to hear my code helped out and that's exactly the sort of usage I could see it being helpful for. You could also do, instead of using TEMPLATEPATH switch ($id) { case 26: get_template_part('cat', 'pov'); break; // etc } It's exactly the same but I find it a little neater (and you can sometimes run into issues with include statements on certain server configurations). Thanks dropping by with a comment, always nice to hear that these functions are useful to people. Cheers, Alex" - Alex Leonard
Alex Leonard
Re: CyanogenMod Needs Your Help! - http://www.cyanogenmod.com/blog...
"Donated. I haven't actually used CM yet, but am planning to do so at some point.. just paying it forward :)" - Alex Leonard
Alex Leonard
Re: Google Docs finally gets custom styles - http://alex.leonard.ie/2012...
"Hi Liviu, I hadn't spotted that. Thanks for the clarification. So they just have a selected list in the toolbar drop down. I'd love to see the ability to save style rules by name. I might have heading styles for personal documents, and another set of heading styles for work documents etc. Hopefully they do something like this :) Cheers, Alex" - Alex Leonard
Alex Leonard
Re: Nokia sandwich shows up Samsung - http://alex.leonard.ie/2012...
"I'm just a beta whore ;) Of course this isn't even beta whoreness - just eagerness to see the latest and greatest in action. Certainly a few features that are in ICS I'm looking forward to. Better recent apps stuff, swipe to dismiss a notification (that's a big one that makes a lot of sense to me). Hopefully they stick to March :) I'm also interested to test out Chrome beta. Thanks for dropping a comment :)" - Alex Leonard
Alex Leonard
Re: Chrome for Android Beta released - http://alex.leonard.ie/2012...
"Oh really? They've locked it down country-wise.. Hmm, there's got to be an APK available for it. Try this: http://forum.xda-developers.co... ?" - Alex Leonard
Alex Leonard
Re: Take action against ACTA - http://alex.leonard.ie/2012...
"Delighted to hear it gave some inspiration. Thanks for leaving a comment and nice work on writing about it as well." - Alex Leonard
Alex Leonard
"Totally agree with all of this. I gave up alcohol in 1998 and always get that stunned surprise from people when they offer me a drink at 5am at a party when I'm doing something stupid and fun :) "What do you mean you don't drink.. clearly you're drunk - why else would you be wearing underwear on your head and rolling on the ground with these drunken fools?" and so on. I had one guy at a stag party harass me for about 4 hours about not drinking, but by the end of the night he came up to me and drunkenly apologised saying 'you were totally right, you don't need alcohol, you're more fun than the rest of these guys'. Right on." - Alex Leonard
Alex Leonard
Re: My Top Tech Toys Of 2011 - http://www.rickycadden.com/2012...
"Nice one. I'll look it up. Cheers dude." - Alex Leonard
Alex Leonard
Re: My Top Tech Toys Of 2011 - http://rickycadden.com/2012...
"Nice one. I'll look it up. Cheers dude." - Alex Leonard
Other ways to read this feed:Feed readerFacebook