Categories
iPhone app

h2 database

Reading Time: < 1 minute

H2 Database – Installation

H2 Database – JDBC Connection (the only differs from the docs is we need to add “mem” before the “:~/test”. Otherwise it gives me error.

Mixed mode

Another Java H2 tutorial

Last but not least, how much time should a coding test be? I feel couple hours are probably the way to go (think of Filtered AI, Hacker Rank etc). The other approach is more like open-ended projects: those could take from a few hours to a few days 🙁 In some cases I was suspecting the hiring companies could use this opportunity to get some real work done (if they ask for source code 🙂

Something to keep in mind when doing code test.

Categories
iPhone app

Streaming data, data streaming

Reading Time: < 1 minute

Apache flink
SE-Radio Episode 346: Stephan Ewen on Streaming Architecture;
Software Engineering Daily Apache Flink with Stephan Ewen – Nov 2015; Spark and Streaming with Matei Zaharia – Feb 2018

AWS Streaming data

Categories
iPhone app

Database deployment automation

Reading Time: < 1 minute

DB deployment (schema or DDL, package)
Continuous integration and deployment of database is a main issue for many legacy monolithic web app. I came across this article recently, and I think it touched some good points.

On a related matter, Jeff Atwood (cofounder of stack overflow), has a good piece on database version control.

I understand the world is going microservice, and the monolithic relational database is not used as frequently as it’s being used in those legacy web apps. But nonetheless, it helps the dev team to be agile if version control / CI / CD can be applied to database update as well as the application update.

Tracking data changes in DB
This also reminds me of an app I worked in 2010/11, in which we have an DB audit log for many (if not most) database changes: add, update, delete. It’s usually achieved via trigger in Oracle, or interceptor in Java. I read an article from a startup engineering blog (credit karma? Or something like this), they detailed how this is implemented.

Categories
iPhone app

Working from home friendly companies

Reading Time: < 1 minute

Or companies that allows or encourages remoting.

Zapier (Emily Irish) The Remote Work Survival Guide: 9 Do’s & Don’ts Every Remote Worker Needs to Know

stackoverflow remote dev jobs:
e.g., MobyMax: this is very interesting because I learned about Mobymax because my daughter’s school has the subscription.

Top 30 Companies for Work-from-Anywhere Remote Jobs in the U.S.

Work From Home 2018: The Top 100 Companies For Remote Jobs

Last but not least, LinkedIn has the top startup list for 2017 and 2018. Note many startup like people to work onsite for more communication but there are some exceptions (InVision for one).

Categories
Fun kids

GregTang Math

Reading Time: < 1 minute

A brain teaser kind of question at GregTang math (I just heard bout GregTang and the problem recently at a school event): use 6, 7, 8 and 9, plus any addition, subtraction, multiplication and division to make the result of calculation as 10 (only use each number once, can use any kind of parenthesis as needed).

I saw a few kids come up with answers (but it seems to me some answers are from the parents 🙂 I tried but could not come up with answer as 10 at the spot. Note we, my wife and I, when we were kids in China did similar exercise / games using the poker (draw 4 kids, instead of 10, we need to make 24). On my way home, or at home (this is how things work for me, just like how I come up with the solutions to coding at work), I have this: (7+8)x6/9=10

Note: there should be many ways / combinations to this, the one I heard at the gathering is 8x(9-7)-6=10

After that I followed GregTang on twitter, and I worked on some of the puzzles there from time to time: those are not “too hard” problems, but nonetheless interesting / educational for the kids (I think).

Categories
iPhone app

Webhooks

Reading Time: < 1 minute

(Update 2 09-30-2020) Webhooks — The Definitive Guide [2019]

Other Useful Tools For Debugging/Testing Webhooks

A modern request bin to inspect any event

(Update 03-21-2019) Add the Power of Webhooks to Your App with Okta’s System Log (Joël Franusic at Okta).

(Original 12-28-2018)
Webhooks
I heard webhooks from Zapier the first. Below is an good article written by the folks at Zapier.
What are the webhooks? (Zapier)

Was trying to follow the tutorial from the above
requestbin tool

requestbin works like described (encountered a few 500 errors, but mostly working)

It seems I could not open the hurl.it link from runscope community page.

I am reading this more technical webhooks blog by @brandur

My interest in webhooks is also inspired by this little JS program I wrote a long time ago. And this was rekindled recently due to the atomist-sdm (GitHub) (node.JS based SDM, automation, quick start here).

Categories
iPhone app

Node js tutorials and webtask

Reading Time: < 1 minute

(Original 11-30-2014, to be worked on)

I heard about Node js for a while, until recently I had opportunity to practice it. I used this tutorial from raywenderlich.com as a start, as I had good experience using the iOS tutorial on ray’s site. But I need to learn more. Here is another one (similar to Ray’s tutorial).

http://nodeguide.com/beginner.html (update 03-07-2019: it seems the site is no longer available)

How do I start with Node.js after I installed it?

Webtask (Auth0)
https://webtask.io/make (for me I used GitHub as SSO login)

If This Then Node.js

more about auth0 vs okta

JavaScript
http://eloquentjavascript.net/03_functions.html

Atomist: a SDM based on Node.js (SDM stands for Software Delivery Machine)
https://docs.atomist.com/quick-start/

I was also following the first few lessons of the advent of atomist automations. Got a bit stuck at the SDM team mode. Local mode seems working fine. I did receive the free trial for Atomist. Maybe I need to update the package as I downloaded Atomist a while ago (in August, I think).

Categories
iPhone app

Setup JBoss with Eclipse

Reading Time: < 1 minute

I have been doing this for a while, mostly for my new work (back to dev). My goal is being able to debug a Java web application, just like what I did for my previous work (Spring STS + Tomcat). The new work requires Eclipse + JBoss (some coworkers uses the not free Intelli-J).

Download / install Eclipse
link here, need to unzip, and install the Eclipse for JEE

Add a new server
I picked Wirefly 11. Read this post regarding JBoss EAP vs Wirefly. This has been helpful.

After that I was able to import a “maven project” (that runs on STS with vFabric server), and start the app in debugging mode. This seems like baby steps, but for me it’s a long time “not doing” 🙂

Categories
iPhone app

Paradigm shift

Reading Time: < 1 minute

(11-03-2018) Alibaba just reported a quarter in which its cloud revenue grew 90% YoY. It appears Ali Cloud is No. 4 in the world: behind Amazon AWS, Microsoft Azure, and Google Cloud Platform (GCP). Thinking Ali may challenge Amazon in not too distant future (note Ali started the cloud much later than Amazon).

About Alibaba Cloud:
高盛:亚马逊AWS和阿里云将成全球最大基础设施技术公司
胡晓明

(07-08-2018) Came across this multi-cloud article form Glenn.

(Original) Good old Oracle is shifting Java SE from perpetual license model to subscription based. Link here.

Note John Chen (CEO of blackberry) mentioned the subscription model makes more revenue more predicable for the business (video here, noticed he mentioned new accounting rules here).

Btw, heart broken to see the Blackberry phones go away.

Categories
iPhone app

Firebase – second take

Reading Time: < 1 minute

Two years ago, I was trying to migrate an app back-end from now defunct Parse.com to Firebase, I was not successful. I was able to make it work last night, after reading more about the data structure in Firebase realtime database. I was able to do it by following the examples in this tutorial page.

I submitted the iOS app myNestEgg retirement calculator, and the update was approved this afternoon.