Category: Web Development

Github remove Weak cryptographic standards

Since 23 Feb 2018, I find one of my work operation keep failing. In my workspace I have a Jenkins checkout Git repo which further run bower and Gulp for dependencies. It keeps saying Github fail to connect. The error say the HTTP protocol is not support, or cannot make HTTP connection. And turn out we find we fall to one of the scenario that our Jenkins server no longer able to get things from Github because Github disconnect the support of the following weak cryptographic standards: TLSv1/TLSv1.1 diffie-hellman-group1-sha1 diffie-hellman-group14-sha1 Ref: https://github.com/blog/2507-weak-cryptographic-standards-removed Since the incident, I aware the linux server we have for our Jenkins is already kind of old. Turn out we have to upgrade our Linux to have latest openssl, libcurl and git using `yum update openssl libcurl git` I though the story is about to end after my colleagues upgraded the changes. Another side of the workspace dev buddies start complaining the failure of building the application. And they are actually working on VM which is CentOS 6. After checking, our VM has CentOS 6 with openssl in 0.9, git with 1.7.2 version, both of them do not support TLS 1.2 (the version that supported by github from now on) Therefore the way to fix the issue is to update these modules. Sadly, updating them in CentOS is not straight forward, and here are some command I ran to get them upgrade: Update openssl (you may need sudo): # cd /usr/src # wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz # tar -zxf openssl-1.0.2-latest.tar.gz # cd openssl-1.0.2a # ./config # make # make test # make install # openssl version If you still find the version is incorrect, check which openssl to find which openssl is pointing at Update GIT: # yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm # yum install git Hope this helps.   ref: […]

協助開店/尋找有意合作伙伴

若果你經已以 Facebook 專頁經營網上商店業務,有商品圖片、簡單商品說明/SKU,但未有正式網站來管理下單、發貨;對 Shopify 有興趣,想了解應用此平台作為你的落單管理/POS系統的話,歡迎來信查詢,小弟正尋找有意合作之平台/網店,我提供技術建議,協助你透過 Shopify 來優化你的網店業務。 若有意了解更多,不彷留言或 PM 接洽。

Talk about hybid mobile app

For a mobile app development, it has 2 approaches: Native VS Hybid. In general the cost for building a native app is higher than a hybid app, especially for some e-commerce store they already have the site running, they want it also run in app to enable some feature like barcode scanning or wallet integration. I am not a big fan of hybid app, but things not always go alone with your idea and sometimes showing respect to business decision is the way you need to go for. So I would share some of my lesson learn for such hybid app development: The web and app development coupled Once you decided to have the app run in hybid, you not only have to guarantee your app running, but also have to have the site the app ride on always up. If there is down-time, by accident or scheduled maintenance, you need ensure the app has proper handling or your app user will find the app fail to work. Session sharing As you may develop some part of the app as native, for some operation which require session sharing, you will have to deal with the sync of the session so it wont result in invalid session or fail to sync the session in native and that in webview Provide information for the webview For some case, even not ideal, your web may need to show some mobile app specific content, the way to tell the webview is by mean of user-agent. Modifying the web-view user agent with providing the hint of the web is being rendered in app’s webview, version information is also important. This allows you to run any targeted content by means of detecting the user agent string. Performance about hybid app This is not something new, rendering […]

Being listed in a TOP 20 Technology Blog 2017

  Honestly I am shocked more than a surprise when a website call MrDiscountCode.hk sent me a email saying my blog is being listed in their Top 20 Technology blog 2017. As I only use my blog share the website that I made, or share the technique that I think good to see how it could work for others. Of course I subsequently receive follow up email to ask if I can add their badge above, which I know it is a way to not only help me from having my blog being listed in their site, but also to have their site url mentioned in my blog so as to improve SEO. Even knowing very limited about MrDiscountCode.hk , as long as it is not spam site, and it is a Hong Kong Startup, I am fine to receive this appreciation and recognition. And this may also be a chance to really allow me examine how this can affect a site SEO if both side mentioned each other website. I know my blog is still very in-adequate in knowledge sharing, and it is still a long journey for me to learn more how to run a e-commerce better. Such recognition would be a small encouragement for me to share more and more often. Hope you find my site really helpful.

Video playlist which help you understand more how to run a E-Commerce business

I often amazed by Shopify as it often offers various kind of documentation and support material to empower store owners / eCommerce merchants to know their business better and how to run their online store more effectively. Recently I receive a note from Shopify that there is a video series which is developed by Ezra Firestone of Smart Marketer, he shares his success business use-case and I find it does bring out some points that I lack of language power to illustrate, here you go:  

Gain your domain control from Shopify / OpenSRS

You need a domain name for your website / online store. Like my site, gordon-chan.net is the domain. You have your domain share to people so they know how to reach your site. For people who new from website / online store setup. When they register Shopify for their store, they could also purchase a domain through Shopify so as to get rid of having the store domain as xxxxx.myshopify.com . Shopify sell a .com domain with USD $13/year, and they help you integrate the domain with the store seamlessly. It seems handy, and yet, you can actually have other choice. Buying a domain from GoDaddy or some other domain service provider is very easy, and often offer you much more discount if you register for few-year package. Let say GoDaddy sell a .com domain $8 + $120 = $128 for 2 year ($8 for the first year). Of course, GoDaddy is famous with its poor / non-user-friendly interface. Yet it is the cheapest domain seller I ever see. Some other clients use Domain Discount 24 , again, the feature is detail but the interface is quite traditional. So, having shared alternative option for domain purchase from cost perspective, any other reasons for not using Shopify domain? Answer this, you need to aware Shopify is actually working with OpenSRS, which is the real domain service provider. When you signup a domain through Shopify, you don’t receive any information about the domain management. Like any login information for domain panel. It is indeed when you need to get your domain integrate with GSuite / verify your domain ownership using domain CNAME records etc. You can get your domain panel information with a very simple and feature-less interface only if you call / live-chat with Shopify Support, which sounds weird to me. Apart from that, domain renew fee is bundled […]

Tips for Shopify Store setup

Here are some tips I would share with people who wanna setup a Shopify Store for their online business. Seek for a Shopify Expert for help Not attempt to but fine if you do treat me as sale-person for my own freelance business, just, there are quite fundamental benefit for finding help from Shopify Expert. Apart from the potential cost for consultation, you will definite save costs that you may not necessary need to pay for. Some clients come to me for Shopify store setup, but they often already start paying Shopify for some time and they fail to get the store work in the way they like so seek for Shopify Expert. In fact, Shopify Experts are authorised to setup “Development store” which is Shopify Store that with majority features but no trial period limitation. In general, Shopify Experts know how to assist you to technically achieve something you want, and what is technical infeasible before it comes to solid request. People who start paying Shopify while not knowing Shopify limitation will result in a waste of time and money. At worst, they are not satisfied with what Shopify provides and cannot utilise this platform for their business. Cost for hiring a Shopify Expert can be minimal. Free of charge is not the way we go for, but Shopify Expert like me treat meeting potential clients as friend-making. Cost for a Shopify Store Setup There are few area you need to spend money for store setup or running a store in long run. Consultant fee for hiring Shopify Expert Some Shopify Expert are fine to share with you the detail about Shopify, some other may impose a consultation fee. No matter what, look for multiple Shopify Experts and compare their service pricing models. Shopify Store Monthly / Yearly subscription fee No doubt you need to pay Shopify for the service, but this cost cans be deferred. Apart from Paid […]

Mamedio Swimwear

This should be the most sexy project I get involved. A Brazil brand swimwear Shopify store is just launched: It has various style for both Bikini and One Piece. And the site owner pays much effort on showing you how good fit their products are with modal wearing their products and having attractive shot from different perspectives: The story of Mamedio is just begins, apart from assisting the store for initial launch (both Internation and Brasil site), I am going to strength the site by further enhancing the SEO aspect, and facilitate the site owner to manage their stores easier.

Shopify plans pricing change and comparsion

Shopify changes their pricing on 1 Jun 2016. The plans’ name are changed accordingly: Basic Shopify, Shopify and Advanced Shopify. It still has 14 days trial, and of course, the most economic and clever way is to contact a Shopify Expert to work with you for a longer trial period for the store development. From previous experience, most of my client would just need the Basic Shopify plan, as they only put items in store without need for detail report or gift card support. If clients need specific feature that only available in particular Shopify plan, before suggesting them to select the plan with that specific feature, I would show them the different of the potential cost among different plans. I have the sheet below which I wrote for a client who original  have the Unlimited Shopify Plan (Advanced Plan) and consider how would it be different for his store if he downgrade his plan. In the sheet, I have 3 tables: $299 Plan and $79 Plan the change in total running cost $29 Plan and $79 Plan the change in total running cost $179Plan and $79 Plan the change in total running cost In each table, I show the plan cost, the gross transaction, the corresponding transaction fee (using third party payment like PayPal / PayDollar) and the total store running cost. You can see if your store has around HKD$350000 or USD $44872 gross transaction. Use $299 plan would be more economic. So if you are running very simple Shopify store with $29/mo, if your monthly transaction is more then HKD$30000 or USD$3846, using $79 would be more economic. For my client, he is currently using the old Unlimited $179 Plan, Shopify does not change this monthly price unless he changes the plan; When I help review, his plan will only be economic to him if his business cans produce $157000 gross sale per month. […]

NodeJs In Action 聊天室範例 (使用Socket.io with v1.4.5)

最近想深化對 NodeJS 的基本認知,參考一本 NodeJS In Action 的書,當中有一個聊天室範例應用到 Socket 。依據範例做當然錯不了,但範例使用的 Socket.io 版本是舊版本  (0.9.6),當昇級至 1.x (比如1.4.5),運行時便有林林種種的問題。 因此我以範例作根本,以 Socket.io 1.4.5 的方法編寫了能運行的 Example: https://github.com/gordonchanhk/NodeJsInActionChatRoomExample