Installing Angular.js on Windows

If you’re new to Angular.js and are trying to follow their example app (see http://docs.angularjs.org/tutorial/), chances are you might get an error like this:

node ./scripts/web-server.js
module.js:340
 throw err;
 ^
Error: Cannot find module 'C:\Users\<user>\scripts\web-server.js'
 at Function.Module._resolveFilename (module.js:338:15)
 at Function.Module._load (module.js:280:25)
 at Function.Module.runMain (module.js:497:10)
 at startup (node.js:119:16)
 at node.js:902:3

What the tutorial failed to mention is that you need to be in the directory of the angular-phonecat directory – so the sequence is :

cd angular-phonecat
node ./scripts/web-server.js

Then access your browser at localhost:8000 and it will work. Remember if you’re using Windows that port 80 is typically reserved for IIS so unless you want to mess around with IIS default ports….

http://docs.angularjs.org/tutorial/

FIX: Asus RT-N56U doesn’t see the second USB hard disk

The Asus RT-N56U has been out for a little while now; it’s been proven to be quite a popular home consumer router as it comes with many features for a decent price (dual-band including N-band wireless and media streaming, for example).

As with most hardware products, there’s an occasional need to upgrade the firmware, to address bugs, security issues and/or introduce new features. Around 2013 ASUS introduced a completely new firmware for the router which removed features from the router – chiefly the media server. Instead these features had to be installed on an attached USB hard disk. Not only that but the latest version of the media server software ASUS supply (minidlna v1.0.33) has a bug which fails to index all content.

Media Server Fix 1 – Downgrade to 1.0.0.22

Simply follow these steps – version 1.0.0.33 has the issue mentioned. You’re basically doing a manual merge of file to over-write the media server. If you need a copy of the files, you can download from here.

Media Server Fix 2 – Second Hard Drive Doesn’t Appear for DLNA devices (like PS3)

If you’re like me, your media server install (and other router related files) is on the same drive as media you are streaming. But when you connect a second drive, you may find that you can see the drive using the file share (samba) or FTP but DLNA devices (like the PS3) don’t seem to see it. This appears to be because the second drive takes a few seconds to mount (or register – the router uses unix and this is how it handles hard disks) and so when the media server goes to look at what’s available, doesn’t see it.

Solution 1 – Web Interface

You can try to either disable and then re-enable the media server via the web interface:

ASUS Wireless Router RT N56U   USB application

or telnet into the router and force a restart with re-index:

  • Start your telnet session
    • For Windows see this link
    • For OSX, go to Utilities > Terminal > type “telnet <your router IP>”
  • Login using your router username and password you setup
  • If you want to confirm you have multiple disks mouted, type

cat /proc/mounts  – you will see

/dev/sda1 /tmp/mnt/Media ufsd rw,nodev,nls=utf8,uid=0,gid=0,fmask=0,dmask=0,force 0 0

(Media refers to the name i gave this drive)

/dev/sdb1 /tmp/mnt/Shared ufsd rw,nodev,nls=utf8,uid=0,gid=0,fmask=0,dmask=0,force 0 0

(Shared refers to the name i gave this drive)

the key part is sda1 refers to the first hard disk; sdb1 refers to the second; note they’re both mounted via /tmp/mnt

  • Type minidlna -f /opt/etc/minidlna.conf -R which will force the DLNA server to re-index.
    For info, the “-f /opt” refers to the config file for miniDLNA and “-R” is the command to force a re-index
  • Now go to your routers miniDLNA status page – this should be http://<router-ip> :8200 – e.g. http://192.168.1.1:8200 – this will give you a count of the re-index process. Depending on the number of files, this could take a while!

And you’re done! Hopefully this helped take the mystery out of resolving this issue.

IMPORTANT NOTE: There is a known security issue with the router that has been resolved with the latest firmware – if you are using the ASUS cloud service that lets you access your files over the internet you need to update ASAP. See the ASUS files site for info.

FIX: Windows 7 boot option doesn’t appear after installing Ubuntu via WUBI

You’ve decided to install Ubuntu using WUBI – all went well during the install and now it’s time to reboot and…. YOU GET BOOTED AUTOMATICALLY INTO UBUNTU! You were expecting a menu to appear with both Ubuntu and Windows 7 options….

Fear not – I had this happen to me and here’s the easy answer:

  1. In Ubuntu, go to Terminal (can be found in “Dash Home” and typing “terminal”)
  2. Type “sudo gedit /etc/default/grub”
  3. Ubuntu will ask you for you user account password (the one you login to Ubuntu with)
  4. Put a “#” infront of both “GRUB_HIDDEN_TIMEOUT” & “GRUB_HIDDEN_TIMEOUT_QUIET“, e.g.
    #GRUB_HIDDEN_TIMEOUT=0
  5. Change “GRUB_TIMEOUT=10” to some higher value (I set it to 30)
  6. File > Save
  7. File > Quit
  8. In the terminal window type “sudo update-grub”
  9. Although the message might indicate that it hasn’t worked (you might see something saying Windows 7 skipped), this is fine.
  10. Reboot your PC and shortly afterwards the boot menu with both OS’s will appear.

Searching the interwebs there were some other variants of this issue, but basically it comes down to GRUB not configured to show the bootloader menu option – which above typically solves.

 

 

Dominick’s Grocery Stores Exit Chicago Market

My thoughts to this, as Twitter’s 140 characters do not suffice.

As someone who has worked on Consumer Packaged Goods market dynamics, I was always wondering at the play and positioning Dominick’s team had in the Chicago Market; my view of the typical Chicago shopping consumer was this:

  • Jewel – A Chicago staple through longevity if nothing else; has tried to reinvigorate the brand through several marketing activities (loyalty card, collect stickers to get pots and pans, etc), but was mid-tier in terms of quality and pricing. Store locations were typically prime catchments which saved it
  • Trader Joe’s – For those who want decent product at a decent price and didn’t want to pay Wholefood’s prices. Choices are limited.
  • Wholefood’s – The top tier for organic produce; believes its’ prices are reasonable, but in reality, the majority don’t consider doing their weekly shop here as it’s too expensive.
  • Aldi – Came in to market with a budget perspective; has slowly been changing consumer perceptions. Still has some work to do on brand image but product quality is definitely on the up
  • Food4Less – And quality to match. Budget all the way
  • Kroger – More of a south side / burbs thing; wants to be a Jewel but doesn’t have the brand presence or quality of store premesis
  • Meijer – Target with more food choices

Which left Dominick’s; it tried to place itself in the upper-middle catchment – a notch above Jewel in terms of store premises quality, a fair balance of price and quality, but way below the high priced Wholefood’s. Unfortunately store placement seemed to be a barrier to entry, as did the perceived image (“I don’t shop there – it’s too expensive” heard many times). Almost every time I visited a Dominick’s store the footfall was low and so it seemed only a matter of time until the inevitable happened.

I guess Chicago and its’ circumstances (placement, economic) sealed the fate.

Adobe Creative Cloud, Microsoft XBox One and the New Age of Hacking

The first half of 2013 has seen some significant announcements from some of the biggest tech players out there; Sony revealed (sort of) their plans for the PS4, Adobe announced that their Creative Suite products are going in the cloud (aka Creative Cloud) and finally Microsoft revealed their competitor to the PS4, the XBox One.

The interesting thing about the last two is that there’s the need to connect to an internet based authentication system on a frequent basis to validate the software/configuration (to be completely validated by Microsoft, but this appears to be likely).

Adobe’s Move to Cloud – Competitors Start to Gain Share?

In the case of Adobe, their Create Suite product is still installed on the local machine but they now have the ability to push smaller updates to their products, whereas before it tended to be “big bang” approach. Adobe are charging consumers $50 per month to access this service which gives them all the Adobe Creative Cloud products (Photoshop, Muse, etc.) – thus removing their multi-tier, one-time upfront payment product matrix approach (Design, Design Premium, Production Premium, Master Collection versions). Once subscribed, the user has some great features available to them – some of which were available to them previously but in a more fragmented, less integrated fashion.

However, $50 for the casual user may be a price barrier for Adobe; Over 2 years, one user would pay $2400 for the service (a little more than owning Creative Suite Master Collection); however, unlike the old pricing model, the costs continue (but so arguably do the updates, product features, etc.). More casual users of the toolset would then argue that they could have paid $600 for access to (say) Photoshop and now their costs are exponentially higher for a service they only want 15-25% use of. This would then create a market opportunity for others (e.g. Corel Painter) to step in and provide a migration path including an ability to take existing PS Plugins and continue to use them. In this scenario, Adobe would significantly lose share of the consumer market and possibly gain additional business users who are enticed by (a) not having to pay for something they possibly use personally as well as professionally (b) costs are spread over a continuing cycle which could be easier to justify/expense.

XBox One’s Kill the Hacker Approach

For Microsoft, it is claimed the XBox One will expect to connect every 24 hours – possibly for the same update push reason as Adobe, but also because Microsoft are probably trying to combat the hacked systems out there that allow people to play pirated games (Both XBox and XBox 360 can be hacked relatively easily and there’s no shortage of pirated games). It also means they can control the use of used and borrowed games – effectively removing the used games market for all but the big players and stopping friends sharing their legally bought games, as each game is tied to a user ID. It will also be interesting to see how this affects services such as GameFly and Redbox – both whom allow the renting of games.

All it needs is one Service

There’s an old saying that goes to the effect of “the more you try to grip a grain of sand, the more it slips away” – and this is true for technology. Think of all the product launched with security and protection built into them and think how many have been hacked, cracked and/or broken. The answer is most, if not all of them to some degree – and this is exactly what will happen here.

Simply put, if a product needs to connect to the internet to validate, it’s going to send communications out. These communications can be intercepted and re-routed to another service pretending to be the authentication service which sends back a “All is OK” signal. Now this may cripple some of the features of the product (e.g. updates, access to other services by the vendor), but people are already accepting that (XBox 360 hacked consoles can’t connect to Microsoft services otherwise they get banned [but there are ways to fix them]). Additionally, if the costs of owning a legal copy are such that owning a crippled copy that is workable for free or a significantly reduced charge is acceptable then folks will use that service. All it takes is one provider to offer an authentication service priced for volume subscriptions….

What’s the Solution?

Companies looking to create more adoption and disuade piracy should look at Valve’s Steam platform. This service has continually shown how consumers will happily adopt a system that is priced fairly and yet still offers an extensive service. Yes, there are still cracked versions of software that bypass it, but it also has a pricing model that increasingly negates the hassle of using cracked software – I’ve even seen others posting on forums as such.

Adobe should consider a tiered approach to their Cloud offering (I suspect they are, but are waiting to catch the early adopters and business users with the premier pricing) and Microsoft need to consider that they are not the only player in the market, so should take a pragmatic approach – e.g. You can install games for a period of 24 hours (for example), after which it either has to be licensed to your ID or deleted.

Or they can try to grip the market and let consumers slip away.

Challenge to be Challenged – Guaranteed way to get group participation

I try to publish a summary of interesting links once in a while; this week I came across an article that talked about someone invoking their “McDonalds Moment” (see here). In short, the author says “When we’re trying to decide where to eat for lunch and no one has any ideas. I recommend McDonald’s. An interesting thing happens. Everyone unanimously agrees that we can’t possibly go to McDonald’s, and better lunch suggestions emerge.

I also have a similar technique that I use to create discussion or opinion; typically when facilitating a meeting or being involved in group discussion I will come to the table with an idea or suggestion that tries to solve the problem – it might not be the perfect one, but it causes others to react and give their thoughts.

Recently I used it when participating in a new product discussion where the problem statement had been laid out and the room was quiet when the (to-be) product owner asked “So what should we do?” Taking the silence as a cue that the group wasn’t sure how to navigate forward, I made a statement about how we could use some existing solutions in a different way so as to bend them in a way they almost fit – I knew it wasn’t the best solution, but it was a starting point. Consequently someone else used my suggestion with one of their own, but with a different twist. What followed was everyone participating in a group-driven solution.  Result!

Now there are some caveats with this approach as it’s not always going to be so effective:

  • You’re initial suggestion shouldn’t so outlandish that people discount you and devalue your participation – it should be reasonable and show a connection to the problem statement
  • You will get more traction from people that know you – if you do this to a room that you are new to, you may be seen as a know-it-all, aggressively challenging, or enforcing your idea on a group that doesn’t know you and therefore hasn’t got a grasp of your subject matter expertise.
  • For a group that doesn’t know you, remove yourself from the suggestion – rather than saying “I think we should do x”, try “You know, I have seen a group solve this problem by doing x” – that way you’re not being the opinionated outsider

So the next time you think the group you’re working with is going to greet you with silence, you have a new weapon to your arsenal.

Notes of Interest – May 1, 2013

How To Prototype In Xcode Using Storyboard

The purpose of prototyping in Xcode is to be able to create a super high fidelity flow using the exact same software that builds iOS Apps… Storyboard, a powerful tool in Xcode that allows you to build an App without a single line of code. You will be able to create a functional prototype in a matter of hours.
http://blog.mengto.com/prototype-xcode-storyboard/

Trello Business Class

Trello is a collaboration tool that organizes your projects into boards. In one glance, Trello tells you what’s being worked on, who’s working on what, and where something is in a process. Business Class extra features like Google Apps integration, extra administrative controls for boards and members, one-click bulk data export, and a new, view-only observer role.
http://blog.trello.com/introducing-business-class/

How to overcome stage fright

As humans, we’re hardwired to worry about our reputation above almost all things. There are primitive parts of your brain that control your reaction to threats on your reputation, making these reactions extremely difficult to control.
http://blog.bufferapp.com/what-happens-to-our-brains-when-we-have-stage-fright-the-science-of-public-speaking

Touch interfaces are over-rated

Gesture based interactions without touch are the next innovation hot topic
http://arstechnica.com/gadgets/2013/05/looking-ahead-at-touchscreen-technology-where-do-we-go-from-here/

Learn coding by video – CodePlayer

HTML5, Javascript, CSS3, etc.
http://thecodeplayer.com/

Intro to Data Science

Commerce and research is being transformed by data-driven discovery and prediction. Skills required for data analytics at massive levels – scalable data management on and off the cloud, parallel algorithms, statistical modeling, and proficiency with a complex ecosystem of tools and platforms – span a variety of disciplines and are not easy to obtain through conventional curricula. Tour the basic techniques of data science, including both SQL and NoSQL solutions for massive data management (e.g., MapReduce and contemporaries), algorithms for data mining (e.g., clustering and association rule mining), and basic statistical modeling (e.g., linear and non-linear regression).
https://www.coursera.org/course/datasci?from_restricted_preview=1&cid=346&r=https%3A%2F%2Fclass.coursera.org%2Fdatasci-001%2Fauth%2Fauth_redirector%3Ftype%3Dlogin%26subtype%3Dnormal%26visiting%3Dhttps%253A%252F%252Fclass.coursera.org%252Fdatasci-001%252Fclass%252Findex

Why Node and Scala will dry up and Go will take the slack

Node and Scala are quickly becoming languages of choice for building scalable, asynchronous web services and applications. However, Go, the language designed and in use at Google, presents a compelling alternative with few of the warts of Node and Scala. While Node and Scala are specifically targeting developers as the tools of choice for server side architecture, Go is actually a better tool for the job and will prove to be the ultimate winner.
http://devslovebacon.com/conferences/bacon-2013/talks/why-node-and-scala-will-dry-up-go-will-drink-their-milkshake

Who am I to tell you?

Characters of the children's televisions serie...
Characters of the children’s televisions series “Bagpuss” (Photo credit: Wikipedia)

There are some songs that, when played, can bring a wealth of emotion and memories back; some are happy and elated of good times gone by, perhaps a drunken moment with friends that everyone talks of… others of a lost or unrequited love and some are attached to the memory of a departed loved one.

This post is a small deviation from my usual topics as I was recently driving with the iPod on shuffle and the latter happened to me. I knew from the first beat of the sampled drum what this song was and turned off the audio. The person attached to this song is my mum and the song “Who am I” by Will Young. Mum died Xmas 2003 of cancer at the age of 59.

What’s in a song?

The subject matter of the Will Young is irrelevant – the only reason it has meaning is because of the video that accompanies it. It’s based around a BBC Children’s TV show called Blue Peter. Any child growing up in the UK since the late 50’s will be aware of this show that encouraged kids to make things out of empty washing up bottles and coat hangers, explore the outside world, learn about different cultures, animals, interests and even gardening (Percy Thrower’s Blue Peter garden anyone?)… looking back it was an age of innocence – a time when playing in the street was just part and parcel of growing up. It was during the show that they would have craft projects to make (I wish I had made the Blake’s 7 wristband) that would encourage kids to make with their parents.

When I first saw the video it kicked off a so many memories that I didn’t expect to come flooding back; this included the Friday ritual where we’d go to the fishmongers where I’d occasionally be treated to mussels or whelks… We’d then go home to watch the Bagpuss or Lamb chops.  Sunday’s spent as a family at our Grandparents also came to mind – they would grow vegetables and fruits, including some especially for my sister and I as we’d run straight out into the garden and pick cherry tomatoes or eat mint leaves (no wonder my wife says I seem like a kid of the 1940’s!).

The first time I saw the Will Young video was in 2007; I was hanging out with my wife in our apartment and came across the video. At first I was smiling, remembering the TV show – and then all those memories came flooding back and I started to think about Mum would never see me married or meet her future grandkids. Needless to say the emotions were overwhelming and I lost it. Something I hadn’t done since shortly after her death.

You never know when…

The point of this post isn’t so much to relate to the particulars of my own story; instead it’s just saying that even though loved ones leave us, just as it will be our turn one day, their memories and the very essence of who they were remain with us. Their legacy lives on in us – whether it’s a family member or friend – which is a testament to who they were.

Equally, anyone who experiences a loss can never truly known when those memories will come to the forefront. You could be shopping and a trigger piece of music gets played in a store… or perhaps a fragrance, or a place you visit. Or even a mock version of an old UK TV show… 9 years on and it still happens to me.

So what happened after I turned off the audio? I took time to think about mum, turned the music back on and remembered what she meant to me and how she would smile to see how we are now.

Notes of Interest – April 24 2013

Curated links of interest – April 24 2013

SailFish OS

Open Source Mobile OS based on Linux core and the QT Framework – SDK avaialble for Linux, Windows, OSX
While Mozilla is offering its’ own OS, this could be a outlier that creates a movement for budget devices

Why Excel has been the bane and core of my business life

28 Year old Econ Grad publishes paper “Does High Public Debt Consistently Stifle Economic Growth? A Critique of Reinhart and Rogoff,” that took aim at a massively influential study by two Harvard professors named Carmen Reinhart and Kenneth Rogoff. Herndon found some hidden errors in Reinhart and Rogoff’s data set, then calmly took the entire study out back and slaughtered it.

LinkLink

Don’t Send Me a Message

One of my pet peeves too – Don’t send me a message to say I have a message!!!

Link

Pony – ORM for Python

Pony is a Python ORM that lets you query a database using Python generators. These generators are then translated into effective SQL.

Link

How Hyphens can hurt your SEO

Experiments in SEO and why hyphens can impact you

Link

Javascript demos

Pushing the boundaries of traditional javascript, these demos show how far we have come – and the potential of where we can go

 JQuery 2 released

Drops IE 6-8 Support. Performance improvements.

Link

Which Javascript Frameworks are getting more interest?

What people are searching on (sourced from Google)

Link

HTML5 apps are still the red headed step-child

HTML5 is great, or would be if it had tools to support it (and why native mobile apps still win)
Link - Link

Please don’t deploy your app on a Friday

As someone whose life was Friday night app deploy focused, I can relate

Link

O’Reilly Free Books

Free books from the famed tech publisher

Link

App Developers Leaving Facebook

Why Developers are leaving Facebook – sometimes its’ own success can be its’ ultimate downfall

Link

Don’t be fooled – The Race for Mobile Dominance

When the US elections were taking place, there were a number of topics which caused the US public to either get really annoyed, or behind in support, however some of these topics were perceived as smokescreens to get people to invest their time in one matter, whilst the offending party was forging ahead with their real agenda.

Much the same can be said about the state of today’s mobile phone market. The announcement of the Samsung Galaxy S4 is anticipated mid-March 2013 and there is debate about the next iPhone (iPhone 5S). In either case, much conversation has focused in on the hardware specs and screen size.

What’s really important

Whilst having a processor that’s capable of handling function, storage memory sufficient to accommodate photos, videos, apps and music and form that allows the phone to be both of a quality build, handled comfortably and screen size appropriate to needs there are a couple of really important things to consider:

The Operating System

Given that we as consumers appreciate and are more critical of the User Experience (and User Interface), having an operating system that looks and feels intuitive and can be adaptable to your own use of the device is essential. Neither Android nor IOS are yet there, with IOS being somewhat now overdue a UI/UX refresh and Android being plagued by layers of OEM fluff (e.g. MotoBlur, HTC Touch) to confuse the user experience.

Another example of this shortcoming is being able to share to your preferred social network should just be an option, regardless of network. Typically being able to share content from an IOS device to Google+ is more difficult than Facebook – but why is that? I as a user prefer to be able to define my social networks, not be constrained.

[UPDATE: Andy Parry brings the Ubuntu mobile OS to my attention - see this - this is exactly what i'm talking about how the UX should be more like]

The Phone

I’ve mentioned this before; the mobile phone needs to be revamped totally in the experience; not only a good sensor, but also the ability to create more useful metadata such as learning different faces so that it would be possible to then retrieve all the photos of Uncle Dave (person metadata), taken in Chicago (GPS metadata) last Autumn (time/date metadata), near Sears Tower (GPS metadata).

Also the actual holding and storage of a phone needs to be considered; I like the iPhone 4/4S for its compact size, yet it still manages to deliver a solid feel and also very view able screen.

The battery life

It’s all well and good having a powerful phone with an amazing screen, but it’s totally negated if you don’t have the battery life. I feel almost certain that the maximum brightness on phones, whilst very appealing, is hardly used by many due to the battery consumption – effectively rendering it a sales medium. When we start to have efficient batteries and components that consume them, then we have a truly adoptable phone.

Conclusion

Of course, this is skimming the surface, but the point is, don’t be fooled by the processor power etc. Think about the application of the phone to you. Would having a Galaxy S3 vs. S4 make a difference  Maybe, if you’re an avid photograper. However if you’re just browsing facebook, youtube, etc. it may not be of discernible difference (depending on the battery life)… case in point I have an iPhone 4 – initially a temporary phone until the iPhone 5 came out, but after due consideration, cost and features were not quite enough to upgrade for upgrades sake, based off my use.