All posts by admin

Mime Types (especially for Web Fonts)

I am regularly having to go in search of mime types for web fonts, so thought I would put them here so I will know exactly where to go for them. .eot      application/octet-stream .woff     application/x-font-woff .svg      image/svg+xml .ttf        application/octet-stream Feel free to add more mime types below that […]

How to change colour of UINavigationBar

By default the UINavigationBar on an iOS app is blue. Apple have some built-in styles that you can use [self.navigationController.navigationBar setBarStyle:UIBarStyleBlackOpaque];[self.navigationController.navigationBar setBarStyle:UIBarStyleBlackOpaque]; The options available are: UIBarStyleBlack UIBarStyleBlackOpaque UIBarStyleBlackTranslucent UIBarStyleDefault *UIBarStyleBlackOpaque and UIBarStyleTranslucent have been depreciated. You should use UIBarStyleBlack and set property ‘translucent’ to yes if needed*. You can also change the colour to […]

Exclude Featured image from WordPress gallery

I needed to add the default wordpress gallery to page with a featured image but found that the featured image was also included in this gallery. The best way I found to exclude this is to add the code below to your site function exclude_thumbnail_from_gallery($null, $attr) {     if (!$thumbnail_ID = get_post_thumbnail_id())     […]

Google Web Fonts

I thought that Google Web Fonts deserved a post here. I used it in a website yesterday for the first time. I have done tests previously but haven’t actually used it. Admittedly there aren’t as many fonts on there as TypeKit or Fonts.com but they still have a decent selection. It is extremely easy to pick your […]

HTML5 Boilerplate

http://html5boilerplate.com/ This template is a great starting point when creating a new website. The template contains jQuery, Modernizr, uses HTML5 tags and CSS3 also. The template comes with and index.html page which should be base of all your pages in the site, it also has a 404.html page which can easily be changed to fit […]

PullToRefresh iOS

Maybe a bit late to the table but this plugin is so easy to use but makes a huge difference to an app. It takes a couple minutes to get it working in an app so no reason not to use it if you need a way of refreshing a uitableview https://github.com/enormego/EGOTableViewPullRefresh