Open in app

Sign in

Write

Sign in

LAI TOCA
LAI TOCA

49 Followers

Home

About

Nov 24

Retrieve session on both server and client side

NEXT.JS V14 collocation NextAuth JS — NEXT.JS together with package NextAuth JS that provide us a better solution for handling logon and logoff event in a seamless way. Retrieve session to identity user’s permission and role would be the common approach. …

Sessions

2 min read

Retrieve session on both server and client side
Retrieve session on both server and client side
Sessions

2 min read


Nov 8

SP_EXECUTESQL insert to temp table cause ‘String or binary data would be truncated.’

SQL dynamically query was quite powerful but sometimes we need pay attention to it. The below SQL code snippet example just perform execute dynamic command and then insert into temp table. The stored procedure execute over production environment just return empty query but without any errors coming back to the…

Sql

4 min read

SP_EXECUTESQL insert to temp table cause ‘String or binary data would be truncated.’
SP_EXECUTESQL insert to temp table cause ‘String or binary data would be truncated.’
Sql

4 min read


Nov 6

Development note for NEXT.JS APP

Environment: Win11 / VS CODE / NEXT.JS-14.0.1 — NEXT.JS is a open source of React (Javascript library) framework that help developer(s) to build up fast and modern web site architecture. NEXT.JS declared that with zero-config and hybrid static server side rending (SSR) that compatible with rich ecosystem provide variety of plugins and extensions. Official build up a step…

Nextjs

2 min read

Development note for NEXT.JS APP
Development note for NEXT.JS APP
Nextjs

2 min read


Aug 16

How to interactive with SFTP via PowerShell (Download/Upload)

Using Posh-SSH module as example — We got several ways to interchange B2B data, AS2/Van (EDI format), API (XML, JSON format) or FTP/SFTP (Any kind (excel, PDF, txt…) of file format). The story introduced a general RPA (Robotic Process Automation) that using PowerShell to interactive with SFTP for B2B data transformation. First we used NUGET to…

Sftp

2 min read

How to interactive with SFTP via PowerShell (Download/Upload)
How to interactive with SFTP via PowerShell (Download/Upload)
Sftp

2 min read


Aug 3

BizTalk issue on Receive location

Failed routing because there is no subscribing orchestration or send port — The scenario was simply that we design a orchestration as below. And we have merely one receive port and binding with physical port “DefaultPipelines.EdiRecieve”. The message type of the receive port was setup to standard X12_00401_860 EDI type.

Biztalk

2 min read

BizTalk issue on Receive location
BizTalk issue on Receive location
Biztalk

2 min read


Jul 31

How to customize BizTalk EDI header data section at runtime

Take EDI 855 as example — Image that we are running a GPU manufacturing factories. Our customer would like to purchase some chips via EDI transactions. After we received EDI 850 for the order. Then we need ack the order with correspond EDI 855 for the order under different branches (of company) that represent by sector…

Biztalk

2 min read

How to customize BizTalk EDI header data section at runtime
How to customize BizTalk EDI header data section at runtime
Biztalk

2 min read


Apr 10

Using Fluentvalidation for chain validation in C#

As a data/backend engineers that extract/filter dirty data to clean data would be necessary for some scenario. The first thing was to write some rule based validations for the purpose. …

Fluentvalidation

2 min read

Using Fluentvalidation for chain validation in C#
Using Fluentvalidation for chain validation in C#
Fluentvalidation

2 min read


Apr 7

PowerShell Invoke-RestMethod with post body that cause question mark problem

Version 7.3.0 — We have somehow need to invoke a HTTP request for testing, integration or robotic purposes. PowerShell provide diverse functions that help us make our developers’ life more easily. However, the below code snippet having an issue to deal with encoding problem: $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("Content-Type", "application/json; charset=utf-8") $body = "{ `n…

Powershell

2 min read

PowerShell Invoke-RestMethod with post body that cause question mark problem
PowerShell Invoke-RestMethod with post body that cause question mark problem
Powershell

2 min read


Feb 10

How to handle BizTalk receive diverse sender identity from single receive location

Take EDI850 as example —

Biztalk

3 min read

How to handle BizTalk receive diverse sender identity from single receive location
How to handle BizTalk receive diverse sender identity from single receive location
Biztalk

3 min read


Dec 23, 2022

C# ZipArchive for large volume of files cause memory usage high problem

We have a file API that routine scheduling a archive file(s) job of the specific path(drive) for backup the data. The application occupied memory usage above 3GB under the monitoring dashboard from the date: December 11.

Ziparchive

3 min read

C# ZipArchive for large volume of files cause memory usage high problem
C# ZipArchive for large volume of files cause memory usage high problem
Ziparchive

3 min read

LAI TOCA

LAI TOCA

49 Followers

Coding for fun. (Either you are running for food or running for being food.)

Following
  • 澳洲雲端架構師 EC (Cloud Architect EC)

    澳洲雲端架構師 EC (Cloud Architect EC)

  • Terry Kuo

    Terry Kuo

  • Paipo Tang

    Paipo Tang

  • vgod's blog

    vgod's blog

  • Denny

    Denny

See all (19)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams