Tuesday, July 29, 2014

First WP Bug Report

I reported my first bug with WordPress today. I created a new development site, dev.andymercer.net, to test out my plugins with WP 4.0. Admin Classic Borders works perfectly, but I found an odd occurrence with Featured Galleries. Using it seemed to break the post editing screen.

I tested and found that the problem is a change in the header above the editor for 4.0. When this new version of WP is released, the header will become sticky, and it'll follow as you scroll down the page. It works by using JS to detect when a user starts to scroll, and changing the header from normal positioning to fixed, which lets it follow you. When a user scrolls upwards, the fixed positioning is eventually removed.

The problem occurs when you are scrolled down enough to cause the fixed positioning to kick in, and then suddenly are at the top of the page, without scrolling up. The can occur when remove a metabox, such as featured image. This causes the page to shrink suddenly, but doesn't trigger the JS to fix the header. I'm glad, because it's a problem with the new header code, not with my gallery.



Hopefully I found it early enough to be fixed before 4.0 comes out. You can follow along, and read more about it, here:

https://core.trac.wordpress.org/ticket/29059

EDIT: Ticket was just assigned to the 4.0 milestone, meaning it has to be fixed before 4.0 can be released.

Friday, July 18, 2014

WordPress Media Selector - Mobile

WordPress 4.0 is coming along quite nicely, with Beta 2 being due soon. One area I'm very excited about is a makeover of the mobile version of the Media Selector. This is the popup that lets users insert media (pictures, video, etc) into posts. On the phone is currently looks very broken, so there's a big push right now to give it an overhaul. This is what you'd see on a phone right now, with WordPress 3.9:



As you can see, everything is squished because of how narrow the screen on a phone is. To address the problem, two major changes have been made. If the sidebar is removed, and the options a the top are changed from text links to a dropdown menu, everything gets a lot nicer. Throw in some CSS to make sure all the images are in a nice looking grid, and suddenly you have this:



Two changes can make a huge difference in the usability. I'm very excited about this change, along with everything else that is coming down the pipeline regarding media. WP just keeps getting better.

Daft Punk

Over the past year, Daft Punk has exploded in popularity. Random Access Memories and Get Lucky both won awards, and in fact for a while I couldn't go more than a few days without hearing them on the radio. While I do get a flash of hipster-like jealousy every once in a while, I am overall very very happy that they have finally achieved this level of recognition.

One small thing that I have a problem with though, is that everyone loves Get Lucky and ignores the rest of the album. There are some incredible songs, including a couple I think are even better than Lucky. Case in point, Beyond. The words are moving, but the end just hits you like a wave of pure eargasm. Take a listen.

Friday, July 11, 2014

WordPress Plugin Update

A while back, I wrote about an idea for a plugin that I was going to try and write. It would add a folder system to WordPress's media capabilities. As I later explained, this was somewhat beyond my abilities at that point. I have since, however, written two separate plugins, which are currently up on the WordPress repository.

Admin Classic Borders


In WP 3.8, the admin backend of WordPress was completely redesigned. Taking queues from Windows 8, WP was made "cleaner", which means flatter and with less borders. Overall I think it looks good, but I like borders between items. I think borders make a site or app easier to use by cleanly dividing items.



To address what I perceive as shortcomings with the new design, I wrote some custom CSS to re-add borders, along with a few other things. Admin Classic Borders is simply a plugin wrapper for that CSS, along with a settings page to let users customize.



It's currently has a 5-star rating an almost 1000 downloads, which I think says quite a bit for my school of design thought. My second plugin, Featured Galleries, is a little more in-depth, so I'll discuss it in a separate post.

Thursday, July 10, 2014

The Great Sagas

Posted by George Takei today. Worth a read.

Wednesday, July 9, 2014

To Be [Creepy] or Not To Be [Creepy]

One interesting thing that happened during my recent vacation made me question my definition of being creepy. I'll explain what happened first, and then what I did about it. The latter is what I'm wondering if is creepy. Story time:

During the airplane ride to Venice, I sat several seats away from girl who I'd never seen before. This isn't really significant because the entire plane was filled with guys and girls I'd never seen before. We both got off the plane and if I'd never seen her again then she would have been just another random person. But I did. The next day, in fact, as I was boarding the ship. I pointed her out to my wife and said, 'Hey look, she was on the airplane with us!'. Interesting coincidence, I wonder if we'll see her a third time.

Well, we did. Then a fourth. Then a fifth. Then a sixth. Seemed like every day we'd see airplane girl somewhere around the ship, or around town in the ports we visited. Which was kind of amazing because we were talking private tours with a private tour guide, not the ship-booked tours. Couple days before the end of the cruise, we had sighting 14. My wife and I were taking great amusement in watching this number grow, and I felt kind of odd that this person I'd never met, never talked to, and would never see again, had become such a major part of each day. Where will we see airplane girl today? So I decided to let her in on the game.

I walked up and said (paraphrasing) .... Hello! We've never met, but you were on the same airplane as me coming over. My wife and I keep seeing you around, over and over ... 14 times in fact. It's kind of become a game, where will we see airplane girl today. I felt kind of weird though, talking about you, with you having no idea, so I figured, what the heck, I'll never see you again, the cruise is almost over, I'll say hi. So hello!

She actually took it quite well. She seemed surprised, but laughed and we talked for a few minutes about where we were from, and how much fun the cruise had been, etc. And then I took my leave. I did see her one more time, bring the total airplane girl sightings up to 15, but she didn't notice me (despite passing within 2ft), and so I know nothing more about her than that she too is from the USA.

So my question is, would it have been more creepy to continue to keep track of how many times we saw her, without telling her? Or was it more creepy to go up and talk to a random stranger and say, hi, I've been watching you. I'm not sure. But it doesn't really matter I guess, because I'm the type of person that will go up and say hi, 99% of the time. Also if by some cosmic coincidence you happen to read this, airplane girl, I'm sorry if I creeped you out, but thank you for making my vacation more enjoyable.

Image Sharing Online

How do you share your images with friends and family? If someone asked me years ago, I'd have said Photobucket. I was the only person I knew who used it, but that didn't bother me. Problem is that Photobucket got increasing slow/laggy. Way too much scripting and fancy animations, and the design wasn't anything special either. Plus it cost money to get the full capabilities. So where else to turn .... Flickr? Picasa? Truth is, I stopped using photo sharing sites entirely. Facebook happened. I can share images there, much more easily. I don't have to worry about who will see the images, and I can sort into albums. So that is where I ended up for a while.

As time has gone on though, I've become somewhat disillusioned with Facebook. The interface for viewing could be nicer, and I can't sort into sub-albums. Google+ Photos has a spectacular interface, and there's a program to bulk upload. But again, no sub-albums. However, there's a new (or shall I say reborn) player in town. Flickr.

I used to hate Flickr. The design, frankly, sucked. However, it got a complete makeover recently (thank you Marissa Mayer!):



More importantly, I can organize photos into albums AND sub-albums. This means that I can create a 2014 Cruise album, with photos organized into albums inside based on the day/location. One for Rome, one for Athens, one for Istanbul, etc etc.