Posts
expert beginner vs Generalizing Specialists vs icicle-shaped vs t-shaped
Today I read an article Learning to learn and it mentions the concept "expert beginner" I learnt in past. I am wondering the differences among other concepts (namely generalizing Specialists, icicle-shaped vs t-shaped) in those domain, where I fall into the category, do I do the correct career choices etc.
The differences among them can be quickly generated from chatgpt, I quoted the answers here for quick references.
Aspect Expert Beginner T-Shaped Professional Generalizing Specialist Icicle-Shaped Specialist Skill Depth
Posts
Change content of a file in block or byte level
Since wrote Things learnt from recent preparation of 1T data for testing, I had figured out how to do that on the following weekends. Today I couldn’t get the steps to do so immediately. It is better to note down for my next time usage. The detailed steps is as following
Find the location in the file
Get the block contains contents to modify
Extract the block to a file and modify it
Posts
Things learnt from recent preparation of 1T data for testing
Several things learnt from recent preparation of data for testing.
Question the way when it takes too long to process data sed: remove last n lines In the past I always thought sed is the fastest way to manipulate data. Is it true for all the cases? I generated 1T testing data in ndjson format, however the last lines of those files are corrupted json data. I had to remove the last line.
Posts
Mermaid flow with subgraph control
One thing constantly bothered me since I used mermaid for flowchart, how to correctly group elements in a group. Only today I have a thought about what will happen if I put node in subgraph without links between them. Finally I got it works to correctly group elements in a group.
Another things, mermaid diagram is natively supported in asciidoctor now. This one is my first example to use it.
Posts
Clojure for real competitive edge and performance
In Beating the average, Paul Graham mentioned lisp is the secret weapon behind his startups, he also elaborated on that point. I believed deeply that after I wrote some small programmings in common lisp before I learnt reddit pilot from lisp to python. Since then I always doubt if the power of lisp is still relevant considering that java, dotnet, python and ruby ecosystems are more mature than that time.
Posts
Inconsistent templates in visual studio and dotnet cli when dotnet_cli_home set to custom location
Due to security policy, I had to set dotnet_cli_home to non-default location to run some building steps. Things went quite well until not. All my command line usages and batch scripts work, until I tried to create a project using the custom project template via Visual Studio and noticed that old deleted template was shown in "Create a new project" dialog.
I tried several options and none of them works for my case.
Posts
How firely sdk handle extra fields (not extension) in Poco and ISourceNode
Most time, I think json is forward and backward compatible as long as some convention is kept such as adding fields only etc. I always thought so since I studied CQRS and event sourcing. Is it true for FHIR, especially firely sdk? I answered so in a discussion, however I doubted it as I didn’t do it in FHIR. Here I have a short code to demostrate the two case. In the end, the result is yes and no.
Posts
Setup visual studio 2022 in restricted environment
uninstall vs and vsinstaller
restart machine
download below two vs cpp redist and install first before install visual studio https://aka.ms/vs/17/release/vc_redist.x86.exe https://aka.ms/vs/17/release/vc_redist.x64.exe
download the latest version of VisualStudioSetup.exe from https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=professional&channel=Release&version=VS2022&source=VSLandingPage&cid=2030:a4e034a4e73f4c1cb41366109a953e4d
choose download all and install when installing visual studio after choosing components to install
Clear Visual Studio Component Cache
Close Visual Studio (ensure devenv.exe is not present in the Task Manager)
Posts
Fold and Reduce in LINQ
In functional programming languages, there are several difference betwee them. I was quite interested in functional programming, even I spent some time to learn haskel and scala. I knew what I can use Select for map, not sure about folder and reduce
FeatureFoldReduceInitial ValueRequires an initial value.Does not require an initial value.Function Signature(A, B) => A(A, A) => AApplicabilityCan be used on empty collections.Requires a non-empty collection.VariantsfoldLeft and foldRightreduceLeft and reduceRightStarting PointfoldLeft starts from the left.
Posts
streamline pack and install package to global-packages
Due to the nature that it is difficult to debug msbuild custom task, I thought if I can use it in a way to streamline my debug workflow. one pack command will complete the following steps. - pack - add the package into local feed source - add the package to global-packages folder
My current workflow is below. It is a manual process. It is realy a pain this way: - pack - nuget add [package-name] -source C:\nexus\.