Blog Posts

2026

C++ - Type erasure

2 minute read

Duck Typing, the C++ Way: How Type Erasure Bends the Rules - Sarthak Sehgal - CppCon 2025

C++ - Misusage of Exception

4 minute read

Exceptionally Bad: The Misuse of Exceptions in C++ & How to Do Better - Peter Muldoon - CppCon 2023

C++ - Pointer vs Reference

2 minute read

Back to Basics: Forwarding References - How to Forward Parameters in Modern C++ - Mateusz Pusz 2023

Back to top ↑

2025

How neural network works

less than 1 minute read

The following Youtube will explain all details from derivatives to building neural networks in scratch including how back propagation is working. If anyone i...

Large language model from scratch

less than 1 minute read

[Stanford CS336 Language Modeling from Scratch Spring 2025 Lecture 1: Overview and Tokenization](https://www.youtube.com/watch?v=S...

MLP, CNN and RNN

less than 1 minute read

Model Connection Style Best For Weakness MLP Fully connected, dense layers Tabular data, g...

C++ - constint

less than 1 minute read

C++20 introduced the constinit which will initialize the value at compile time but still you can modify it at runtime

C++ - decltype example

less than 1 minute read

The following code is trying to make a reference to avoid the copy 1 auto& element = *pos;

C++ - static_pointer_cast

less than 1 minute read

C++11 introduce the static_pointer_cast which will allow to case the shared_ptr to another type without runtime checking.

C++ - std::type_identity_t

less than 1 minute read

std::type_identity_t was introduced in C++20. Main purpose of this type alias has the following reasons.

C++ - Concept example

less than 1 minute read

C++20 introduced concept. The following code shows the example of using concept.

Back to top ↑

2024

C++ - lvalue, rvalue abbreviations

less than 1 minute read

lvalue: locatable value(addressable value) xvalue: expiring value glvalue: generalizable lvalue, it will be lvalue or xvalue rvalue: not addressable value(no...

Docker - scout

less than 1 minute read

Docker scout can check vulnerabilities in the docker image.

Spring Modulith

less than 1 minute read

Josh explained about event driven architecture with Spring Modulith

Spring - testing

less than 1 minute read

Another nice talk about SpringBoot test in Java

Rust - Cancellation safety

less than 1 minute read

We need to aware of cancellation safety on using select. Rust doc will describe the method the cancellation safety on IO operations.

Back to top ↑

2023

Scikit-learn simple training example

1 minute read

Main point of training data is to generate matrix(X) having features(columns) and samples(rows) from provided data which can be text or any form of data.

GraphQL - Pagination with SpringBoot

less than 1 minute read

SpringBoot GraphQL supports a pagination on query by Window mechanism which will use the key to remember current position of cursor.

SpringBoot - @SpringBootTest annotation

less than 1 minute read

@SpringBootTest annotation will search entire beans which @SpringBootApplication defines in ApplicationContext so it requires to have all dependent component...

PySpark - upsert two dataframe

less than 1 minute read

The following PySpark code will upsert target dataframe with source dataframe even though source column is null when key column matched.

JavaScript - vitest

less than 1 minute read

New JavaScript unit testing framework which can replace jest.

Cassandra - Support ACID

less than 1 minute read

Cassandra5 is going to fully support ACID by using Accord protocol(leaderless consensus algorithm).

Qwik - Resumable JavaScript framework

less than 1 minute read

Recently, SSR framework is getting popular such as NextJS, Remix etc. Qwik is quite interesting on optimizing the performance of JavaScript on client side. I...

TypeScript - RequireOnly

less than 1 minute read

Very useful utility type definition when we need to define a type having partial mandatory properties in a type.

React with Typescript

less than 1 minute read

The following Github project will show TypeScript types for React project. Such as children, hooks, HTML event handlers and Context etc.

VS code - prettier

less than 1 minute read

After enabling the format on save, please do not forget to set config for Prettier: Require Config so that VS code will format code for each project based on...

Javascript - Testing basics

less than 1 minute read

Javascript testing basics. The following link will show how Javascript testing framework works and provide very useful resources to master Javascript testing.

Back to top ↑

2022

React - Testing custom hooks

less than 1 minute read

React testing library provides a way to test a custom hook by using renderHook from @testing-library/react.

JavaScript - Rust based bundler SWC

less than 1 minute read

SWC can replace most popular bundlers such as Webpack, Parcel etc. It is super fast than all existing JavaScript based bundler.

JavaScript - Patterns

less than 1 minute read

The following site provides a useful information on JavaScript programming patterns. It covers various topics from the basic design patterns to the latest Re...

Spring Gateway

less than 1 minute read

Spring gateway provides multiple features such as routing, observability, circuit breaker and security(OpenID, OAuth2). The following Youtube will show detai...

Data Science - Data mesh

less than 1 minute read

The following youtube shows a case how to apply data mesh architecture in airline booking industry.

SpringBoot - GraalVM support

less than 1 minute read

SpringBoot for supporting GraalVM. The following youtube video will explain how SpringBoot 3.0 is working. The basic idea is that we need to provide hints fo...

Structure concurrency

less than 1 minute read

Java virtual threads applies structured concurrency concepts. The following blog explains what structure concurrency is.

Spring boot - Exception handling

less than 1 minute read

SpringBoot allow to define the exception handler inside of Controller. The following code shows an example.

Spring - Supporting multiple tenant for JDBC

less than 1 minute read

Josh Long showed us another very nice Spring tips for supporting multiple tenants with JDBC. Spring provide the AbstractRoutingDataSource to support multiple...

Rust - Cassandra driver

less than 1 minute read

Rust Cassandra driver is not matured enough so far but the blogger recommended the C++ driver for production.

Rust - linker

less than 1 minute read

Alternative rust linker to speed up from https://www.lpalmieri.com/posts/session-based-authentication-in-rust/

Back to top ↑

2021

React with CSS variables

less than 1 minute read

CSS variables provide a nice way to change styles. The following blog will show how ReactJS framework can work with CSS variables.

Spring Boot real world example

less than 1 minute read

The following github shows the real world working application example with SpringBoot. It is demonstrating how to use Spring Data, OAuth, WebClient and REST ...

Kubernetes using external service

less than 1 minute read

There are often times to use the external services inside of Kubernetes. The following article explain how to set up in Kubernetes.

Python - PyBuilder

less than 1 minute read

PyBuilder will provide an easy way to setup python project.

Apache Beam Model

less than 1 minute read

What: sum, average or machine learning? used to be done with classic batch processing. Where: windowing with event time such as fixed, sliding or session. Wh...

Kafka - GenericRecord vs SpecificRecord

2 minute read

Kafka has two types of record on producing and consuming Kafka messages which are called GenericRecord and SpecificRecord. Main difference between GenericRec...

Gradle - java-library plugin from 7.x version

less than 1 minute read

Gradle 7+ removed compile configuration so all existing gradle projects using compile configuration should be migrated. Instead java-library plugin was intro...

React for Vega Lite API

less than 1 minute read

Vega lite api provides an easy way to visualize data based on d3 framework. The following repository shows how react can integrate the vega lite api.

Pessimistic Distributed Transaction

less than 1 minute read

Pessimistic distributed transaction will use the following concepts to achieve ACID(Atomic, Consistency, Isolation, Durable).

Zookeeper - znode types

less than 1 minute read

Zookeeper has a znode to describe the hierarchical accessing data such as kafka/node001

Rust - Tower library

less than 1 minute read

Rust Tower library provides an abstraction mechanism for network communication with asynchronous request/response. In Rust, in order to define the trait with...

Thundering Herd Issue with Cache

less than 1 minute read

Thundering herd is a performance problem. When using a cache, if the cache item is expired or evicted by any cache eviction logic, many clients can try to ca...

Back to top ↑

2020

ZooKeeper - Lock Support

less than 1 minute read

The following pseudo logic shows how ZooKeeper is supporting a lock. ```java void acquire_lock() { while (true) { if create(‘f’, ephem=true) { re...

Rust - All About Pin

less than 1 minute read

Excellent explanation about pin API in Rust. 3 hours long video but it’s worth to watch all to understand how async and await are working in Rust with Future...

Rust - Idiomatic Rust API design

less than 1 minute read

Rust is great programming language because of default move semantic and trait system. Idiomatic Rust API is fully utilizing these concept to make it easy to ...

Rust - AsRef usage

less than 1 minute read

AsRef is useful for generic function on accepting specific reference such as str or Path as trait bounds.

Rust - Error Conversion

2 minute read

Rust does not have an exception mechanism for error handling they provided the following two types.

Lamport clock

less than 1 minute read

In distributed system, clock can be skewed so if system is relying on wall clock or local clock, it will face unexpected results such as overwriting an exist...

Rust - Understanding Serde

less than 1 minute read

How Rust serde library works. https://www.joshmcguigan.com/blog/understanding-serde/

Rust - Iterator delegation

less than 1 minute read

Often, container structure having a single vector field needs to expose an iterator. The following code shows how to achieve this in a simple way.

Rust - error handling with thiserror crate

less than 1 minute read

One of the most difficult decision to make on developing an application is how we can handle errors. The thiserror crate provide an easy way to handle errors...

Linux Container - Base Technologies

less than 1 minute read

As we all know, Docker didn’t invent a new technology for Linux container. But they provided a really convenient way to utilize the existing Linux container ...

Rust vector iteration

less than 1 minute read

The following example shows difference of iterating vector items between for and with iter() method

QUIC tranport protocol

less than 1 minute read

QUIC is a multiplexed stream transport over UDP. By using this protocol, it can dramatically reduce the connection establishment time for TCP+TLS.

Java - jhsdb command

1 minute read

jhsdb is a tool which can attach a Java process or launch a postmortem debugger to analyze the content of a core dump from a crashed Java Virtual Machine (JV...

Flame Graph - Cassandra and Java applications

less than 1 minute read

The following article show how to generate the flame graph for Cassandra performance but it is using a generic tools to generate flame graph any Java applica...

Spring - Live Virtual Event

less than 1 minute read

Youtube channel for Spring live virtual events. This channel contains various topics from industrial experts and company including Confluent, Okkta and Pivot...

Linux - Top 10 Performance commands

less than 1 minute read

1. uptime\ dmesg | tail\ vmstat 1\ mpstat -P ALL 1\ pipstat 1\ iostat -xz 1\ free -m\ sar -n DEV 1\ sar -n TCP, ETCP 1\ top

Back to top ↑

2019

React - create-react-app proxy setting

less than 1 minute read

create-react-app allow to configure the proxy setting on calling API.\ documentation:\ https://create-react-app.dev/docs/proxying-api-requests-in-development/

Parcel - Proxy setting

less than 1 minute read

In ‘package.json’, you can defined the proxy table.\ 1 2 3 4 5 6 7 8 9 10 11 { "proxy": { "/api": { "target": "http://localhost:8000" }, ...

Reactive Programming

less than 1 minute read

It is worth to read through The Reactive Manifesto definition.

Rust - Enum serialization example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 use serde::ser::{ Serialize, Serializer }; use serde::de::...

Rust - Index, mut Index operator example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 use std::ops::{Index, IndexMut}; #[derive(Debug)] pub struct ImageArray2 { dat...

Back to top ↑

2018

Spark - join transformation

less than 1 minute read

join—Equivalent to an inner join in RDBMS, this returns a new pair RDD with the elements (K, (V, W)) containing all possible pairs of values from the first a...

Kubenetes - Example of Kubenetes

less than 1 minute read

https://blog.octo.com/en/how-does-it-work-kubernetes-episode-1-kubernetes-general-architecture/\ https://blog.octo.com/en/how-does-it-work-kubernetes-episode...

Docker - difference RUN, CMD and ETRYPOINT

less than 1 minute read

1. CMD vs ENTRYPOINT\ The ENTRYPOINT specifies a command that will always be executed when the container starts. The CMD specifies arguments that will be fed...

C++ 17 - Generative Programming in C++ 17

less than 1 minute read

Interesting generative programming in C++ 17. I think that this explains why compile time reflection and declarative programming approach is required for cle...

C++17 - Learning STL algorithm

less than 1 minute read

https://www.fluentcpp.com/2018/07/10/105-stl-algorithms-in-less-than-an-hour/\ http://www.fluentcpp.com/getTheMap/

FP - Another valuable article about Functor

less than 1 minute read

http://nikgrozev.com/2016/03/14/functional-programming-and-category-theory-part-1-categories-and-functors/\ http://nikgrozev.com/2016/04/11/functional-progra...

Cache - False sharing

less than 1 minute read

As modern CPU shared memory architecture, false sharing is the major performance bottleneck on multi-thread application.\ False sharing is caused by sharing ...

Back to top ↑

2017

Java - Read CSV file from a stream

less than 1 minute read

1 2 3 4 5 6 7 try (final CSVReader reader = new CSVReader(new BufferedReader(new InputStreamReader(inputStream)))) { String[] line = null; while ((li...

Scala - ~> [Tilde arrow] explanation

less than 1 minute read

”~>” is a place holder for type.\ Main reason to use “~>” is to make readable on type A goes to type B. This is possible because Scala allow to express...

FP - expression vs statement

less than 1 minute read

Expression: by combining value and function, it will generate the value with some possible side-effect\ Statement: standalone unit of execution without retur...

Monad - Definition of Monad with Monoid

less than 1 minute read

Monad is a binding function to connect two functions where are different types between returning value and input argument. So Monad will allow to compose two...

Monoid - Simple definition of Monoid

less than 1 minute read

1. Closure: Two same type pair operation results a new result with same type.\ Associative: Doesn’t matter or operation order wit a pair.\ Identity: The...

Mid night commander short cuts

2 minute read

MC commands\ —– Esc —–\ Quick change directory: Esc + c\ Quick change directory history: Esc + c and then Esc + h\ Quick change directory previous entry: Esc...

Java 8 - general practice using Optional

less than 1 minute read

0. Never, ever use null for an Optional variable.\ Optional should be only used as a return value.\ never use it for a field in Class an...

Docker - useful command

less than 1 minute read

1 2 3 $ docker log <container id> // show logs $ docker port <container id> // show port mapping $ docker inspect <container id> // inspect...

Java - Task polling example with Java 8

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 public void completionService(ExecutorService executor) { CompletionService<CustomTaskResult> completionService = n...

Angular 2 book

less than 1 minute read

Angular 2 Development with TypeScript

Rake - useful command line options

less than 1 minute read

1 2 3 4 5 $ rake -P $ rake -T #display description $ rake -T buy #display contains "buy" in name $ rake -W buy #display path of task "buy" $ rake -D

Java - Java application monitoring tools

1 minute read

jcmd: Prints basic class, thread, and VM information for a Java process\ Example)\ 1 2 3 4 5 6 7 8 % jcmd <process_id> VM.uptime % jcmd <process_id&...

Java - ZonedDateTime formatter for ISO-8601

less than 1 minute read

Parse example\ 1 2 3 4 5 6 7 DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder(); DateTimeFormatter formatter = builder .parseCaseInsen...

Web - Font sizing unit rem

less than 1 minute read

It is worth to read about font size unit of rem other than pixel.\ https://snook.ca/archives/html_and_css/font-size-with-rem

Back to top ↑

2016

C++ - Anonymous namespace

less than 1 minute read

The main reason of using anonymous namespace in C++ is to localize declaration in translation unit.\ The compiler will choose the unique name for unnamed nam...

Cassandra - Allow Filtering example

less than 1 minute read

1 2 3 4 5 6 7 create table User( email text, name text, desc text, user_id uuid PRIMARY KEY((email), name, user_id) ) WITH CLUSTERING ORD...

Spring - adding a bean in code

less than 1 minute read

1 2 3 AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(); Set<int> sets = new Set<int>(); ctx.getBeanF...

Java - generating a self-signed public key

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 1. Generate self-signed public key $JAVA_HOME/bin/keytool -genkey -alias test_alias --keyalg RSA -keystore test_key.jks -keysize 2048 -d...

Git diff and merge tool with Intellij Idea

less than 1 minute read

Windows\ 1 2 3 4 5 6 7 8 9 [merge] tool = intellij [mergetool "intellij"] cmd = cmd.exe //c "\"c:/Program Files (x86)/JetBrains/IntelliJ IDEA Communi...

C++11- enum class with underlying type

less than 1 minute read

C++11 allows us to specify the underlying type for enum class as shown below. If specified value is not in the range of the underlying type, compiler can cat...

Git - submodule

less than 1 minute read

Sometimes, a project can depends on another project which is in different git repository. Git can provide a way to maintain this dependencies by a command ca...

C++ - Unit test framework “doctest”

less than 1 minute read

This C++ testing framework is very light and only requires a header file to include. Above all it will allow to have testing code in production code.

C++ - loop optimization with Sentinel

less than 1 minute read

It is possible to make the loop faster by using an guarded value so it doesn’t need to check the variable validation or extran comparing.

C++11 - Variadic template example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #include <iostream> #include <sstream> #include <vector> std::vector&l...

Java - nested class and static class

less than 1 minute read

Java allows us to define a class within another class. Such a class is called a nested class. The class which enclosed nested class is known as Outer class. ...

Improving responsiveness

less than 1 minute read

Normally in order to improve the responsiveness of application, there are two areas that should be considered in modern memory machine architecture.

C++11 - Understanding SFINAE

less than 1 minute read

SFINAE(substution failure is not an error) is hard to understand at glance but following article explains the concept of SFINAE eaiser way with a clear examp...

Rx - Difference Hot and Cold observer

less than 1 minute read

Hot: If observerable start emitting items as soon as created, it is called “Hot”\ Cold: Observerable will start to emit items when it is subscribed.

Back to top ↑

2015

Java - RxJava

less than 1 minute read

Recommended reading for RxJava

Java - Try with resources

less than 1 minute read

From Java7, it introduced the mechanism to release the resource automatically as C# does with using statement. In C#, you can use the using statement to rele...

ApacheCXF - an example of web.xml

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/...

C++ - Actor framework for C++

less than 1 minute read

Nice C++ implementation for Actor framework.\ https://github.com/actor-framework/actor-framework.git

Tomat - install as a service for Windows

less than 1 minute read

1. run cmd.exe as an administrator\ go to the bin directory of Tomcat installation\ execute “service.bat install ‘name of service’” by default it will b...

Log4j - setting for logging everying grobally

less than 1 minute read

The following example show how to configure log4j configuration file(log4j.properties) to log all messages.\ Main point is that rootLogger has to be configur...

Maven Release plugin

less than 1 minute read

Useful commands\ 1 2 3 4 5 6 7 8 9 10 1. Prepare mvn release:prepare 2. Perform release mvn release:perform 3. Update develop version number mvn releas...

Java - Log4j fixed file size setting example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 log4j.rootLogger=INFO, loggerId log4j.appender.loggerId=org.apache.log4j.rolling.RollingFileAppender log4j.appender.loggerId.rollingPoli...

Apache CXF - getting ServletContext in code

less than 1 minute read

It is common to get a Servlet context on implementing WEB API. Apache CXF has a little different approach to get this instance. The following code show how t...

Back to top ↑

2014

Tomcat - Context in server.xml

less than 1 minute read

When Eclipse deploy web application in the existing Tomcat server, it will create Context element in server.xml.\ The details of Context element in Tomcat is...

C# - Log4Net configuration example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 <?xml version="1.0" encoding="utf-8" ?> ...

C# WCF - Ninject Ioc

1 minute read

In order to use Ioc to instantiate a WCF service class, Ioc should provide implementation of following two interfaces.\ IInstanceProvider\ IServiceBehavior

C++11 - coroutine

less than 1 minute read

The following article is showing a nice example how C++11 can support coroutine feature. C# has already supported this feature from C# 2.0.

C++11- good to know algorithm

less than 1 minute read

The following algorithm will make your code clean and faster\ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1. std::all_of bool res = std::all_of(std::begin(cont...

XCode - Static library

less than 1 minute read

The following link contains useful information about make a static library for XCode project.

C++ - Simple Dynamic 2D array example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 5...

C++11 - default member initialization

less than 1 minute read

You can initialize the member variable as shown the following in C++11. It will save a lot of typing when you have many constructors.

C# - MVVM light

less than 1 minute read

I think that MVVM light is the essential tool for XAML based framework such as WPF, Silverlight, Windows 8, WindowPhone 8

C++11 - std::rethrow_if_nested

less than 1 minute read

std::throw_with_nested will create a class inherited from std::std::nested_exception and user exception then it will get current exception and user exception...

Boostrap3 - input file example

less than 1 minute read

The following URL shows a good example how to make a nice looking file input button with Boostrap 3\ http://www.abeautifulsite.net/blog/2013/08/whipping-file...

Back to top ↑

2013

ASP.NET - SPA with AngularJS

less than 1 minute read

The following url shows an example of SAP with AngularJS for ASP.NET\ http://www.codeproject.com/Articles/657139/A-Book-Store-Application-Using-AngularJS-and...

ASP .NET - Individual account in WEB API

less than 1 minute read

From MVC5, Microsoft changed a lot on identification mechanism. Web API will also use the updated framework which is based on OWIN.\ The following article wi...

C# - Continuous task example

1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 5...

Modbus - Coils, Discret Inputs etc

less than 1 minute read

discrete inputs: read-only Boolean\ coils: read-write Boolean\ input registers: read-only integer(16 bits)\ holding registers: read-write integer(16 bits)

Performance - Windows application heap usage

less than 1 minute read

The following script will show how to profile the heap memory usage of Windows application with Windows Performance Toolkits\ 1 2 3 4 5 6 7 8 9 10 11 12 @ech...

C# WCF - communication tracing

less than 1 minute read

In order to diagnostic WCF communication, you can log all WCF activities by using tracing mechanism in .NET application.\ You can add the following section i...

C# WPF - customizing start up fuction in WPF

less than 1 minute read

When you create a WPF application with visual studio, you will always find app.xaml and app.xaml.cs file.\ In app.xaml file, you can find the StartupUri attr...

C# - Simple UDP listener in asynchronous way

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 private Socket udpSock; private byte[] buffer; public void Starter(...

C# Performance measurement helper classes

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 ...

C++ Performance measuring utility classes

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 5...

Performance Analysis for Windows - channel9

less than 1 minute read

The following URL contains the useful information about using xperf for analysis of Windows application and OS.\ http://channel9.msdn.com/Shows/Defrag-Tools/...

C# SMTP client using CDO

1 minute read

The following code utilize the CDO service of Windows OS to send an email. In my research CDO SMTP client can only support SSL/TLS connection type for using ...

C# WPF extended toolkit

less than 1 minute read

Extended WPF toolkit provide the various UI for building WPF based application.\ You can find the details from the following link.\ http://wpftoolkit.codeple...

C# WCF instance configuration

1 minute read

WCF has the confusing mechanism for management of instance on RPC call. The following separating shows an example of this situation. If you are more interest...

C# dynamic keyword

less than 1 minute read

.NET 4.0(vs2010) introduced the dynamic feature to support better integration of dynamic language such as Python, Ruby etc.\ Example)\ Without dynamic featur...

C# performance counter example

3 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 5...

C++11 - defaulted function

less than 1 minute read

C++11 introduced the defaulted function as the following example.\ class help { public: help() = default; private: std::string m_text; } The main r...

Git - svn commands

less than 1 minute read

1 2 3 4 git svn clone http://svn.example.com/project/trunk git commit git svn rebase git svn dcommit

Git - renormalizing a repository

less than 1 minute read

1 2 3 4 5 6 git rm --cached -r .# Remove everything from the index. git reset --hard# Write both the index and working directory from git's database. git add...

Git - changing the committed comment

less than 1 minute read

Basic steps.\ git log –pretty=oneline -10\ git rebase -i xxxx\ -> change ‘pick’ to ‘reword’\ git commit\ git rebase –continue

Git - configuration to use p4merge for diff

less than 1 minute read

On Windows\ 1 2 3 4 5 6 7 8 9 10 [diff] tool = p4merge [difftool "p4merge"] path = c:\\Program Files\\Perforce\\p4merge.exe [merge] tool = p4merge [merget...

C# Observable dictionary

4 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 5...

Simple Makefile example for MPI

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 CC=mpicxx CFLAGS=-c -Wall LDFLAGS= SOURCES=test.cpp OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=test all: $(SOURCES) $(EXECUTABLE) $(...

People want to predict every events

less than 1 minute read

People like predictable events but reality is every moment and events are unpredictable.\ I think that main purpose of software engineering is to make unpred...

vim commands

3 minute read

Cursor movement\ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 h - move left j - move down k - move up l - move right w - jump by start of words...

Back to top ↑

2012

Spring MVC - Redirect to URL after login

less than 1 minute read

Fortunately, Spring Security has built-in functionality for remembering the URL that was originally requested, and redirecting your users there after they su...

How fiddler works

less than 1 minute read

https://groups.google.com/forum/?fromgroups=#!topic/httpfiddler/Az0xW2MJMqU

Tab UI example in spring roo

less than 1 minute read

http://stackoverflow.com/questions/6419885/how-to-add-a-tab-container-to-a-spring-roo-page

Windows 7 memory profiling another example

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 @echo off set _NT_SYMBOL_PATH=f:\src\Debug\;srv*c:\WebSymbol*http://msdl.microsoft.com/downloads/symbols xperf -on Base+Cswitch...

Load a binary file with C++

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 bool LoadBinaryFile(std::wstring const& path, std::vector<unsigned char>& data) { try { std::basic_ifst...

Load a text file with C++

less than 1 minute read

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 std::wstring fromAscii(const char* str) { std::wstring sOutput; int inputLength ...

Back to top ↑

2011

Understanding COM threading model(Apartment)

less than 1 minute read

I have found very useful articles for understanding COM threading model about Apartment. If you want to understand COM Apartment model, the following article...

Back to top ↑

2010

Build boost 1.43 for iPhone SDK 4.0

less than 1 minute read

1. modify user.config.jam in tools/build/v2 directory\ 1 2 3 4 5 6 7 8 9 10 using darwin : 4.2.1~iphone : /Developer/Platforms/iPhoneOS.platform/Developer/us...

Link Boost library for iPhone

less than 1 minute read

Once you compile the boost libraries you want, right click your target after you made your project, and click Get Info. Then go to the Build Tab and find the...

블로그 시작

less than 1 minute read

오픈 소스 베이스로 만들어진 블로그 중에 괜찮은것 같고 모든 내용을 XML로 Export할 수 있다는 말에 선택하게 되었네요.

Back to top ↑

2009

Mac OSX NVCAP

3 minute read

URL: http://nvinject.free.fr/forums/viewtopic.php?t=214

Back to top ↑

2008

MSDN magazine home

less than 1 minute read

http://msdn.microsoft.com/en-au/magazine/default.aspx

The Humble Dialog Box

less than 1 minute read

http://objectmentor.com/resources/articles/TheHumbleDialogBox.pdf

Back to top ↑