preloader
軟體工程 The quick way to validate you ORM query to SQL

Refer from link: http://laragems.com/post/a-quick-way-to-display-a-sql-query-in-tinker Please enter tinker command: php artisan tinker Type below code: DB::listen(function ($query) { dump($query->sql); dump($query->bindings); dump($query->time); }); And from above line on, every ORM manipulation you type will show what transformed SQL is.

read more
軟體工程 Postgres WAL 概述

PostgreSQL version 10 WAL 設定概述 參數: checkpoint_timeout default is 5 minute max_wal_size default is 1GB archive_timeout full_page_writes checkpoint_warning checkpoint_completion_target default is 0.5 and only be fraction of checkpoint_timeout pg_test_fsync can measure average speed in microsecond of single WAL flush operation. Half of its value is effective for reporting average time setting that it flush single 8KB write operation to commit_delay. pg_test_fsync doesn’t care whether fsync

read more
軟體工程 Deploy problems when upgrading to rails 5.2.0 from 4.2.5

Capistrano 部署 production 環境 從 Rails 4.2.5.1 升級到 Rails 5.2.0 的環境時遭遇了兩個問題 Cannot find gem bundler >= 0.a Solution for your production environment: reinstall rvm and bundler gem rvm implode rvm get head rvm reload rvm reset rvm use 2.4.1 rvm gemset create rails5.2.0 rvm use [email protected] --default gem install bundler which bundle modify config/deploy.rb content and

read more
軟體工程 採用新技術的考量方式

團隊成員若建議使用新技術,我建議團隊主管一定要請這個團隊成員,除了自己以外,還要訓練好最少兩個人。若其他產品團隊會使用到新技術開發的功能,建

read more
軟體工程 Laravel 5.5 Get session value or Loginned user data at AppServiceProvider

We can get session value or data of a loginned user at AppServiceProvider. The following we will show how to get, share values of session and loginned user to all views. ========= Code: namespace App\Yourapp\Younamespace; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Session; use Illuminate\Support\View; use App; class AppServiceProvider extends ServiceProvider{ public function boot() { $auth = $this->app['auth']; // get Laravel's Auth facades view()->composer('*', function($view) use (&$auth) { // this function coding style is

read more

About

Howard Lee, Frontend-engineer with Angular 7+, Typescript, ReactJS, VueJS. Flutter, Dart, PHP, Ruby, JavaScript, HTML, SASS, CSS, Postgres, MySQL, Web Developer. Have a certificate of AWS Solution Architect Associate with verify number: 8FYNL55LCEEQ10W5. You can verify at AWS Certificate site or Credly site Tech lead role Lead 4 colleagues to build products and infrastructure Coordinate schedule of delivering products Senior web frontend developer role Products Form-filling, form-sharing, file-management, repair-managemnt and project-management for construction industry at Suiqui IoT management and EC platform for Liquid Petroleum Gas(LPG) at Wave-In Comm.

Know More

Tag

Social