Skip to main content

Posts

3 Reasons Why Progressive Web Apps (PWAs) Won’t Replace Native Apps

Many people believe Progressive Web Apps (PWAs) are the future of the mobile web, but in my opinion, PWAs are not a replacement for native mobile apps. Here are three reasons why: 1. Native mobile apps provide a smoother & faster experience  Mobile websites, progressive or otherwise are slower and not as smooth. 90% of the time spent is spent using apps vs the browser . The single most significant contributing factor to a smooth experience on mobile is the speed of the network and latency of the data downloaded and uploaded. When you visit websites on desktop or mobile, there is a lot of third-party code/data that gets downloaded to your device, which more often than not has zero impact on the user experience. This includes: CSS (Cascading Style Sheets) JavaScript Ad network code Facebook tracking code Google tracking code The median number of requests a mobile website makes is a shocking  69 . On the other hand, native apps only get the data that...

Catch me speak at the CIO In Action 2020 Conference in Kuala Lumpur

I’m going to be speaking at the CIO in Action 2020 conference in Kuala Lumpur 22-23 October. I’ll be tackling the always fun subject of Technical Debt. "Managing and Reducing Technical Debt In The Long Run The Do’s & Don’ts" See you there. http://www.zenithbizness.com/cio-leaders-in-action-2020/

Superb Crew Interview

Thanks Superb Crew for the interview and featuring Kaddra’s CXM offering. You can read it via the link below.  https://www.superbcrew.com/technology-product-company-kaddra-delivers-a-flagship-customer-experience-management-cxm-product/

The Fair Consideration Framework is Fair

The Fair Consideration Framework was established in August 2014 with the primary objective of giving Singaporeans fair consideration for jobs and to help reduce discriminatory HR practices that favour foreigners. Recently there was a discussion on  e27  related to Singapore's  Fair Consideration Framework  and it seems that there are some common misconceptions about it which I would like to help clarify. As a Singapore Permanent Resident, I need to declare my bias on this issue. In my opinion, any policy that helps to reduce discriminatory HR practices is a good thing. Now you could argue that this policy is discriminatory but I personally don't think it's unreasonable for the Singapore Government to put the interests of their citizens before foreigners and you'd be hard-pressed to find a Government who does not do the same. Australia just announced in their latest budget that employers will have to pay a levy of up to AUD $5,000 for each...

Populating Duplicate Fields with DocuSign's REST API

If you're using DocuSign's REST API for integrating e-Signing into your application then it's possible you'll come up against the issue of duplicate fields not populating. This is when you have the same field with the same label e.g. Company Name in multiple places on the Document but you only want to send a single label, value instance to the API and have it populate in all places where the field is. When you pass the label and value like so: { label: "company_name", value: "Blogger.com" } If you have the field company_name more than once in the document then only the first field will be populated. After a lot of digging into the DocuSign documentation I discovered the solution is to append "\\*" to the label name: { label: "\\*company_name", value: "Blogger.com" } Why this isn't the default behaviour is beyond me but the solution works as expected. DocuSign Rest API Documentation

CPF Contribution Rates for new Singapore Permanent Residents (SPR’s)

Recently my wife and I applied and got approved for Singapore Permanent Residency. After completing the formalities the most significant immediate change is the contribution to CPF which is Singapore’s mandatory social security savings scheme requiring contributions from employers and employees. CPF contributions start from the date you obtain SPR status, which is the date of the entry permit.   Being a relentless budgeter I needed to know exactly how much I and my employer would have to contribute so that I could adjust my budget accordingly as the employee contributions get deducted from the monthly salary. After doing some research I discovered that there is a “graduated” approach to CPF contributions for new SPR’s where the contributions gradually increase in the first and second year and then upon reaching the third year are at the full amount. Note: There is an option for employers to contribute the full amount for year 1 and year 2 and the employee can use the gra...

Serverless Architecture with AWS Lambda, API Gateway, Cloudfront, S3 and DynamoDB

  If 2015 saw the rise of Docker Containers & Micro-services then 2016 is undoubtedly going to be about Serverless architecture . Late in 2015 AWS announced a preview of a service called AWS Lambda moving from a pure IaaS provider into the PaaS world with one feel swoop. Now AWS is releasing so many new services and features a week that you may have missed this, but in my opinion it is a game changer and I’m going to try to demonstrate why. What on earth is Lambda? “AWS Lambda is a compute service that runs your code in response to events and automatically manages the underlying compute resources for you.” “When using AWS Lambda, you are responsible only for your code. AWS Lambda manages the compute fleet that offers a balance of memory, CPU, network, and other resources.” Just think about those statements for a second,  In developer terms a Lambda is simply a single function with an input and output, forget microservices this is a nanoservice.  At the time o...

Freeing Disk Space on C:\ Windows Server 2008

  I just spent the last little while trying to clear space on our servers in order to install .NET 4.5 . Decided to post so my future self can find the information when I next have to do this. I performed all the usual tasks: Deleting any files/folders from C:\windows\temp and C:\Users\%UserName%\AppData\Local\Temp Delete all EventViewer logs Save to another Disk if you want to keep them Remove any unused programs, e.g. Firefox Remove anything in C:\inetpub\logs Remove any file/folders C:\Windows\System32\LogFiles Remove any file/folders from C:\Users\%UserName%\Downloads Remove any file/folders able to be removed from C:\Users\%UserName%\Desktop Remove any file/folders able to be removed from C:\Users\%UserName%\My Documents Stop Windows Update service and remove all files/folders from C:\Windows\SoftwareDistribution Deleting an Event Logs Run COMPCLN.exe Move the Virtual Memory file to another disk However this wasn’t enough & I found the most space...

Windows Azure AppFabric Service Bus Queues API

  Recently Microsoft released a new App Fabric SDK 2.0 CTP including some great new features, You can grab all the bits and pieces from here and/or read the release notes . Some of the highlights include:  Publish/Subscribe which are called Topics Message Queues Visual Studio Tools AppFabric Application Manager Support for running WCF & WF The part that interested me the most is the Queues feature and that is what I’m going to be exploring in this post. Overview of Queues Message Queues are not a new concept allow for more reliable and scalable communication between distributed systems than pure request/response. Solutions like MSMQ, NServiceBus already exist to solve this problem for locally connected systems.  What the Queues API provides is that it provides similar features but the messages are being transported across the internet and persisted in the cloud.   There is currently a Message Buffer available in Azure b...

Getting started with SpecFlow, WatiN, ATDD and BDD

After completing my Scrum Master course I felt it was high time I review some of our existing engineering practices and consider ways to improve. Whilst we practice strict test-first TDD and have 100% code coverage as part of our “definition of done” the one area that we’ve been missing is automated UI testing and acceptance testing. After all, high code coverage doesn’t mean a thing if the requirements are not met. ATDD & BDD This motivated me to rediscover what is known as Acceptance Test Driven Development or ATDD which is about defining automatable tests from a customer perspective that closely reflect the requirements described in the User Stories . This is also associated to Behaviour-Driven Development (BDD). The cool kids in the Ruby world caught on to this way back when we were still doing web forms development. Some of the Tools available in this space are: RSpec (Ruby) Cucumber (Ruby) Robot Framework (Java & Python)   FITNESSE W...

IE Security Warning with QuickTime Object tags

  I just received a bug report about the infamous Internet Explorer Security Warning for one of the pages in our application that serves video content over HTTPS.   After viewing the source I found the offender which turned out to be the codebase attribute set to http://www.apple.com/qtactivex/qtplugin.cab . < object id ="videoObject" classid ="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase ="http://www.apple.com/qtactivex/qtplugin.cab" width ="330" height ="292"> < param name ="src" value ="https://securedomain/video.mp4" /> < param name ="controller" value ="true" /> < param name ="autoplay" value ="False" /> < param name ="scale" value ="aspect" /> < param name ="cache" value ="true"/> ...

Entity Framework 4 with Amazon RDS

  In my last post I demonstrated how you can use MySQL with Entity Framework 4. In this post I’m going to show you how to use Amazon RDS . Amazon RDS is a Relational Database Service which is similar to SQL Azure except that it supports MySQL & Oracle is coming soon. This is the actually the first time I’ve attempted to use the service and am going to be writing this as I go.  Amazon RDS takes care of all the critical database management tasks like software updates, backups & replication. Signing Up This post assumes you already have an AWS (Amazon Web Services) account, if you don’t go to the Sign In page. As with all Amazon Web Services you have to explicitly sign up, you can do this by going to http://aws.amazon.com/rds/ and clicking the “Sign Up For Amazon RDS” button. Note: Signing up is not instant, it took about 12 hours for me to receive the confirmation email. Launching the DB Instance Log into the AWS console and go to the Amazon RDS ta...

Using Entity Framework 4 with MySQL

  If you’re on the .NET Platform then MS SQL Server is usually the de-facto choice for the RDBMS. However if you’re at all cost conscience then you will realize that scaling and replication is going to cost you a fair chunk of change in licensing fees. For that reason open source RDBMSs and in particular MySQL offer a much cheaper alternative. In this post I’d like to demonstrate how you can use Entity Framework 4 with MySQL. MySQL Connector Net 6.3.6 The first thing you’ll need to do is download and install the latest version of the MySQL Connector for .NET from http://dev.mysql.com/downloads/connector/net/ Make sure that Visual Studio is closed when you install. Pascal Case Table Names Because we are going to generate our Entity Framework Model of an existing database we want to make sure that the entity names use pascal casing. By default MySQL on Windows forces lowercase table names. You can change this behaviour by adding lower_case_table_names=2 to your my.ini file...