Matthew Lang avatar

Matthew Lang

Family guy and web developer

A New DuckDuckGo

Sicne I started using DuckDuckGo as my primary search engine last year, I've had to content myself with what was an aging look and feel to their search results. While Google and Yahoo were charging ahead with redesigned search result listings, DuckDuckGo was falling behind. Thankfully though DuckDuckGo recently upgraded their search page.

The new user interface itself is a welcome upgrade to the old one interface. With tabs for images, videos and products, searches become much more useful depending on your search term and the search listings themselves are easy to scan. There is also a section with more details about your search term if it's a person, company, product or brand name.

Not only does the new user interface work well on desktops and laptops, but it's mobile friendly as well. I've frequently use it now on my iPhone rather than the suggested search engines that Apple includes. Without jailbreaking my phone though, there's no way to make DuckDuckGo your default search engine on the iPhone. I'm hoping that this will be an option in the future.

The next step I hope is that DuckDuckGo updates their iOS app with ability to do searches there and pass the results into Safari. There might be restrictions on this, but it's what I would like to see.

I'm glad to see that DuckDuckGo are keeping their search engine modern and relevant. It might just be a change of look to the search engine, but sometimes that's all that is needed.

Book Reviews #3

At long last I managed to finish The Second World War which has been holding up my reading list for the last few months. Here's a few reviews of what I've been reading over the last few months.

  • The Second World War by Antony Beevor - Without doubt this is the most complete and detailed account of the Second World War that you will find on any bookshelf. The bibliography alone takes up the last quarter of the book with supporting material from other books as well as journals of military personnel and civilians providing eye witness accounts of events. The book covers all the critical events from the leading up to the start of WWII until it's final days when Japan surrendered to the US. It seems wrong to say that I enjoyed this book given the topic, but I did. It was a learning experience for me. A chance to find out everything I didn't know about the Second World War. There were parts of the book that I found troubling to read, but the incidents that the book highlighted only re-inforce the human cost of war and why it should be avoided at all costs.
  • Inferno by Dan Brown - Dan Brown's books sometimes receives unfair criticism that they are not of the same calibre as other great fictional books but I've never found that. I enjoyed this book. Another outing for the Harvard symbologist. It was a good read and it kept me turning pages right to the end. One concern I have though for these books are their duration. Like the Chase / Wilde series by Andy McDermott, I'm starting to see a repeating pattern in the adventures of Langdon as he hops across the world, interpreting symbols and saving the world. I don't think there's much mileage left in these books if Brown decides to write more of them, but I still found this book enjoyable.
  • The City by Stella Gemmell - I wanted to love this book so much as I thought that it being from someone who was close to David Gemmell when he was alive, it might have some influences from him. I started the book with enthusiasm but it quickly wained over the course of the first sixty pages. I found it to be slow with no sign of picking up. After sixty pages I eventually gave up and moved on to something else.
  • Extreme Programming Explained by Kent Beck & Cynthia Andres - It's been on the reading list for a while, but it's taken me to now to read it thanks to a prompt by another developer on App.net who mentioned he was reading it to get back to the basics of extreme programming again. The ideas and practices that I learned from this book just back up for me how important agile practices are to software development. A must read for any software developer whether they are starting their career or want to re-kindle those basics of good software development practices again.

Checklists are often skipped over as an aid to problem solving. They shouldn't be. They provide a quick step plan to narrowing down a search or criteria to identify a problem.

This week was one of those week's where I was caught out with a problem. In debugging an application, I couldn't work out why the plugin I installed and setup wasn't being called in a screen. Despite changing what I thought was the correct screen, nothing was happening. It turns out I was in fact updating the wrong screen. A simple mistake to make in most applications but here the application is slightly different.

This application I am referring to is in fact a content management system. It contains a number of different layouts depending on the type of site that you want. This means that there are hundreds of files that make up the user-interface to the application. There is a default file representing each particular screen and then there is a screen for each different type of site that can override the default screen if we need it. This means that there are hundreds of files representing the different screens in this application. Some are similar and as a result, ensuring you are updating the correct screen is important.

So where does the checklist fit in then? Well as I was debugging the application on a particular type of site, following through a number of steps would have ensured that I was in fact debugging the correct screen. Thinking of each item on the checklist as a way of narrowing down the problem allows you to eliminate easy to find problems, eventually narrowing down you scope to the actual problem you were having.

I've since started putting together a number of checklists for identifying such problems. I've done a number of debugging sessions like this where I missed a step in identifying the actual issue and instead spent a few hours going down the wrong path. It's time that I don't want to waste in the future. I'd rather identify the problem quickly, fix it and crack on with something else.

Not surprising that George RR Martin writes his Song of Ice & Fire books on a disconnected DOS machine. With that amount of plot lines, character deaths and surprises he can't afford distractions. It does raise another question though, how many assumptions does your computer make about what you do?

I watched the clip of George RR Martin on Conan admitting that he used an old DOS PC that isn't connected to the internet to write his series of books, A Song of Ice & Fire. Martin and Conan have a laugh about it on the clip, but Martin makes a good point about the computers of today. They do so much for you, but are they doing too much?

When I was a software developer working with Microsoft's .NET framework, I wrote all of my applications in a programming environment that did some of the work for you. It's called a integrated development environment or IDE for short. What sets an IDE apart from a regular text editor like Sublime Text or Vim, is that the IDE is more than just a text editor. It's an environment tailored towards a specific set of languages or frameworks. It has features and shortcuts built-in that are there to help you write software applications.

One of the reasons that Microsoft's Visual Studio environment is used by so many developers working with Microsoft's .NET framework is that it does some of the work for you. When you create a file for your project, it will include a template of a class or module with boilerplate code included, or if you're building a website it will include a basic layout on a new HTML file. It does lots of little things like this because it's been built to assist the programmer as much as it can.

Having worked with IDE's like Visual Studio for a number of years it's easy to the see benefits in the amount of code you can write in a typical work day. I wasn't happy with this though. Too many of the small decisions were being taken out of my hands and assumptions were made by Visual Studio that I would need everything that it generated for me. Over time I gradullay tailored the templates and snippets that Visual Studio included by default so that Visual Studio wasn't making as many big assumptions about what I need. Not everyone does this though.

This is what Martin makes a point of when he is writing. He doesn't want an opinionated machine that makes suggestions for him, he wants a machine that just does as it's told. In this case if he makes a spelling mistake it won't suggest the right spelling to him, if he writes a new word that the computer can't find in a dictionary it won't suggest an alternative word that it thinks the writer was supposed to type. It takes the words that Martin types in and that's it. That's probably all that a lot of writers want. A chance to write without distractions and suggestions and other changes that the computer thinks we need.

I use a text editor with a few plugins that automate work for me as a programmer. As a rule I use packages and libraries that only make a minimal number of assumptions about what I need when I am writing code. Yes, I have snippets to create new classes, modules and methods, but they don't assume I need anything more than the declaration of the object in question. I want to make the decision about the structure of a new class or a new method when I'm writing my code. If the computer does it and it's wrong, I end up having to make a correction and then continue with work.

It's good to see that Martin is proof that the latest devices or apps are not what you need to make an idea a reality. Focusing on computer speed, productivity tools and other factors may not make you work any faster than if you had older equipment and tools. It's about using those tools correctly and removing distractions and barriers that make you productive. Every day I face my laptop and get notifications of new emails, app updates, test updates, and all manner of alerts telling me to shift my focus from what I am doing. I should turn these off or at least par them back to only the necessary alerts that I need to do my job.

Computers, tablets, phones and even washing machines, dish washers other home appliances are all made to make assumptions about what we want. These aren't always the right assumptions and we often find ourselves making daily micro adjustments to get the desired result. By ensuring that the devices and apps we use make minimal assumptions about what we do, it allows us to do things our way. And doing things our own way is better than adhering having to constantly fine tune the ways of others to get what we want.

Graham Obree and Chris Boardman have both had their Hour Record times re-instated into the record books thanks to simpler regulations that determine the equipment cyclists can use to break the hour record.

I had that 'new bike itch' again, but despite the advances in lighter materials and better suspension, I'm still a hardtail die hard at heart.

I went out on my first mountain bike ride in a few months this week. It was great fun, I'm hoping to get out a lot more often now that I have more time and family life has settled down again. Our youngest is finally sleeping a lot better thanks to his new inhalers, my freelance career is steady and my bike came out the shop with a few much needed upgrades a few months ago. My bike is an On-One Inbred steel hardtail with mid-travel suspenion at the front. Steel has been a favourite of mine since I got my first mountain bike as a kid, a Kona Fire Mountain. I love the feel you get on the trail as you're riding. I have tried a couple of aluminium frames in the past but you can feel the harshness of these frames as you're riding. Every bump on the trails is transferred through the frame to you. When it gets bumpy you can feel it.

I've also tried a couple of 'hardcore hardtails' for more aggressive riding in the last few years. These bikes are great for downhilling, jumps, and bigger drops than your typical mountain bike could handle. Those days are long past me though. Hefting such weight about on the trail can take it's toll. I'm reaching my late thirties now and I don't have the stamina I had when I was younger, so when I want to get out and ride, I just want to ride. Which is why I eventually settled on the bike I did, a plain hardtail trail bike.

After talking to a friend about his new full-suspension bike, I got that 'new bike itch' again. So last night at 2am while our youngest was demolishing a bottle of milk, I started browsing for full-suspension bikes on my iPhone.

Having never owned a full-suspension bike, I've nothing to compare a hardtail to in terms of riding, but for the purist like me I think that they're more suited to more extreme trails. They have their advantages when setup correctly, even with the extra weight they carry (which is becoming less and less of an issue), they allow for faster lines absorbing all those bumps and roots in the trails that other bikes may opt to avoid. I'm not going to get into a debate with the rest of the mountain biking community over hardtails versus full-suspension, for me I do prefer a well built hardtail.

After 30 minutes of browsing the many online bike stores, one thing was clear to me. Full-suspension bikes are more expensive than their hardtail counterparts, but even aiming at the £1000 point there are few full-suspension bikes that would win me over. I'll admit it would be hard to get a decent full-suspension bike at this price point, going higher would definitely open up more options, but I couldn't realistically pay anymore than £2000 for a mountain bike. If I had a budget of £1500 I would definitely buy a hardtail every time. The simplicity of the setup is what sells it for me. A bike that you can simply ride anywhere. Yes it might not handle the more extreme trails in the Alps, or even the black routes at the trails centres across Scotland, but it will handle the 90% of my riding needs. Also at this point you can push the boat out to getting yourself a better than average bike in terms of components.

The new bike itch is still there largely in part to the changing sizes in wheels that bikes are available in. I think the 650B size will eventually become the more popular wheel size in general with a minority number of bikes coming in the 29" size.

I'm not ready to buy anything just yet, but when the time comes, I will definitely be looking towards the hardtail market again for a new bike. It's a proven design that has lasted for decades and hopefully will last for many more to come.

Communication is important when establishing a relationship with a potential client. It can be won or lost in just a couple of minutes.

We have an area in our front garden that is shaded for most of the day and the soil is terrible for growing anything in. For the last five years we've covered the ground with tarpaulin and gravel just to make it more presentable. It still looks bare though so I called a couple of landscape gardeners to come out and give me quotes to put a rock garden in to make the front of the house a lot nicer to look at.

The first landscape gardener that came out had a professional looking website with examples of his team's work. I started to explain the situation and what I had in mind. He agreed with everything I suggested and I mean everything. There were no suggestions or ideas from him not even a question about plants, colour of stone or anything else for that matter. The price he gave us was cheap but then he didn't give me the impression that there would be anything eye-catching about what he would produce. His lack of discussion didn't boost my confidence either.

The second landscape gardener arrived a few days later. I actually got his number from a neighbour and he's done a number of gardens in and around the area so it's easy to see his work. I told him my idea for the front and what suggestions he had. After taking a couple of minutes to look at the ground he said that he could do what I asked but he made a number of suggestions that would make the rock garden more natural looking as well as ensuring that the plants would grow with the right amount of drainage under them. The conversation went on for about 15 minutes until we both agreed what I was looking after. He couldn't give a price there and then as he said he would need to do some price checking to get the best deal. A week later and he called with a quote that was more than the first quote we got but still within our budget.

The second was different though. Conversation, engagement, sharing ideas and collaborating. He explained the options that I had, possible problems with solutions and even made a number of suggestions to improve the rock garden. This is why I will be going with the second landscape gardener. It was clear from our conversation that he had the knowledge and he explained exactly what he had in mind.

It was all in the communication. It was two way and simple. It's worth remembering that when talking to potential clients about project work to be honest and helpful in that first conversation. When other factors don't come into it, it might just hinge on that first conversation.