不积跬步,无以至千里
不积小流,无以成江海

Great journeys begin with small steps;
mighty rivers grow from little streams.

Captcha recognition

A CAPTCHA is a type of challenge-response test used in coomputing to determine whether the user is human in order to deter bot attacks and spam. In the captcha test in the website, a captcha imag...

How to setup huggingface environment to save models and data in your specified directory

Normally, when using huggingface to load pretrained model and load data from huggingface, it will check if these models and dataset are available in its cached location. By default, the location ...

Singapore heritage trail: Emerald Hill at orchard

Emerald Hill, one of Singapore heritage trails, enjoy peace and rest in the crowded orchard road. https://youtube.com/shorts/HKMEB2-ycqE?si=ikI1EpGib0KpdBuA

2024 first day: Bukit Timah hill

Time flies so fast. It is 2024 already. Climbing bukit timah hill is a traditional celebration event of new year together with friends. The 2024 first day is great for hiking, a little cloud, no...

Family of otter, wandering neighbourhoods

It happened on Monday, in neighbourhood of hdb building. The family of 4 otters, I think, should come from Alexandra canal, about 500 meters away. Arriving hear they could cross several car ro...

/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.29 not found

In stable diffusion, when using scipy module. Sometime an error happens: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.29 not found. Googling cannot find a solution, install lin...

UNet2DConditionModel object has no attribute attn_processors. Did you mean: set_attn_processor

When training lora model using train_text_to_image_lora.py, it reports errors like UNet2DConditionModel object has no attribute attn_processors. Did you mean: set_attn_processor After invest...

Cheap and delicious hawker center lunch at bugis

Can imagine so much cheap food price that locates in bugis? Soups normally $2.5 and meat rice $3. Just in Hdb first floor near kwan im thong hood Cho temple.

Build auto end-to-end image-to-image transformer using stable diffusion web framework

There are many articles, posts or YouTube video teaching how to use stable diffusion web UI framework, https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/master, to replace face, backgr...

Hiking in Gunung Lambak, Malaysia

On a Saturday, hiking with friends in Gunung Lambak mountain, Malaysia. Leave Singapore early at 5am, still have a traffic jam in second link and spent almost 2 hours enter into Malaysia. Befor...

Looking at the caterpillar, what is your name

Moving Caterpillar Everyday is amazing. Just walking slowly, watching the life. Yay, a caterpillar is coming.

Hiking in windsor nature park

In the weekend, take a 12 km hiking in the Windsor nature park through macritchie trail.

Correctly install sd-webui-train-tools extension in stable diffusion webui to train Lora

The easy practice to train Lora model & evaluate it is to using stable diffusion webui, https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/master, and install extension sd-webui-tra...

Otter: Have a good day

Otter: good morning. My family come. This is another family of otters, where they sometimes arrive at the Alexandra canal. Not sure it is there home, because they are not found there ever...

Always amazing happens in railway corridor

There is a short time not go to railway corridor to Bukit Timah direction. In the weekend afternoon, have a jogging along the railway, entering from Alexandra road. It is still a little hot a...

Otter is enjoying fish dinner

Everyday is same, cycling from office to home along Singapore river. I know near jiak Kim bridge a family of otters living there. Sometimes I saw them resting on the grass of river bank. Today ...

SQL: Efficiently sort >TB records using row_number

When randomly sampling or tagging records using row number in a table, row_number() plus partition over is often used. For example, if there is a table with schema like, CREATE TABLE IF NOT EX...

Generative ai, big impact on industry and our jobs

From LinkedIn share. You can google title to find original pdf: Title: The economic potential of generative AI : the next productivity frontier. If you cannot find, just comment and let me kno...

Awesome GPT resource

Resource is from https://github.com/formulahendry/awesome-gpt. GPT (Generative Pre-trained Transformer) GPT-4 - OpenAI’s most advanced system, producing safer and more useful responses. ...

Moco based discriminative training

Moco based Fine-tune is good choice in duplicate/near duplicate tasks such as same image/ document detection, person identification, ….. amazing performance increase. As a discriminative training...

Do we need concern openAi governance?

As most already know text-to-image generation from Baidu 文心一言 looks quite bad when the input is Chinese idiom. In the weekend I test it using openAI text-to-image API. Unfortunately I find anoth...

6月学校假期,回中国看望父母,新加坡到北京,北京到山东老家。写篇300字文章

6月的学校假期,我准备回中国看望父母。 我从新加坡出发,乘坐飞机来到北京。到达北京后,我先去了父母家,看到父母,我很开心。父母给我准备了很多美食,我们一起吃饭,聊天,回忆过去的日子。 接下来,我们一家人乘坐火车去山东老家。到达老家后,我们先去了祖父母家,祖父母看到我们,很开心,给我们准备了很多美食,我们一起吃饭,聊天,回忆过去的日子。 接下来,我们去了老家的景点,比如古城、古...

Today marks my 3-year anniversary celebration as a data scientist in lazada

Today marks the 3-year anniversary of my journey as a data scientist at Lazada. It has been an incredible experience and I am so proud of the work I have done and the impact I have made. When I...

Today marks my 3-year anniversary celebration in lazada

Today marks the 3rd anniversary of my journey with Lazada. It has been an amazing journey and I am so proud of all the accomplishments I have achieved in this time. I started out as a customer ...

Reporter story- this morning there is heavy rain. A fallen tree crashed a car and driver is in hospital

John was having a pretty good day. He had just finished his errands and was on his way home when the dark clouds began to roll in. He had heard the forecast for heavy rain, so he decided to take ...

Wonderful night walking along Singapore river

A wonderful night walking along the Singapore River is a great way to enjoy the city’s vibrant nightlife. The Singapore River is lined with restaurants, bars, and clubs, which offer a variety of ...

Amazing travel to Paris

My recent trip to Paris was one of the most amazing travel experiences I've ever had. From the moment I arrived, I was in awe of the city's beauty and charm. Everywhere I looked, there was someth...

ChatGPT: intelligence?

When you test chatGPT, response is amazing. But it still do what data tells it? Open question is very slow response, which indicates it will search deeply it’s knowledge base to try finding answe...

chatGpt: hot chariot, do you really worry?

OpenAI released chatgpt, a strong AI backed chatbot. You can ask anything. After some test, the sentence and paragraph is fluent, at least from my view, a non-native speaker. But almost all fact ...

How to configure Visual Studio Code for C/C++

Visual studio code is a good IDE for code developer, e.g. I am previously coding C++/C using visual studio in Window. But after I move into linux/mac os, I need to find a IDE (free). If you are a...

How to save HTML to image

As I discussed in How to embed matplotlib figure in html, sometime the return from different third-party tools are HTML. In order to merge different analysis into one, I use image as a media. ...

How to embed matplotlib figure in html

Sometime, when we use third-party tool, which may provide visualization using matplotlib to plot figure and visualize the results. It is ok if we only use this tool. However, if we want to integr...

Issue of module not found in Python 3.10

After upgrading python from Python 3.8 to 3.10, modules look installed in virtual environment previously, but cannot import. It will report e.g. module not found numpy, module not found pandas ...

Christmas coming to orchard road

All Christmas decorations ready to show in the orchard road. Shops welcome first normal Christmas after 3-year Covid. Hope everything will be normal soon in the world. So I can back to home town ...

Flowers after night raining 雨后的花


It works to copy custom HTML into post.

The post is to test whether custom HTML can work in wordpress. Unfortunately, only table display and figure cannot. Share strategy backtest report and predicted signal. Not so correct, but ok as ...

How to create long-short strategy using backtrader

In the last post How to build machine learning model to generate trading signal, I share the general processing flow to apply machine learning based signal prediction to create a long strategy. N...

How to build machine learning model to generate trading signal

Recently I am working on how to build machine learning model to predict signal and build a winning strategy. Technical traders will read the price trending curve and use many technical analysis b...

Squirrels swiftly jumping in the tree in the neighborhood.


Night F1 coming again to Singapore. Join the night festival.


Chinese music concert to celebrate Chinese mid-autumn festival at VivoCity Singapore

Today is Chinese mid-autumn festival (中秋节, in Chinese word ). It is a day (团圆 in Chinese) family member are in together just like Christmas. Attending a Chinese music concert to celebrate the day...

Sep 5-10 National lion dance championships 2022

If you are in Singapore, come ngee ann city to watch Singapore National lion dance championship September 5-10

Dog is smart to remember what he wants next

Everyday morning breakfast my dog, erhei, feed up roasted chicken. His best favorite. When taking his outdoor park for shit and urine, back home feed meat in his bowl. But today, I feed meat in h...

Heavy raining in the morning.


Subway museum at prinsep link

Singapore night festival event staring last weekend, know there is a subway museum opened at prinsep link from a LinkedIn post, just a few hundreds of meters from company office. After lunch, wal...

Blinking droplet after a raining evening

Cycling to office and take a shot of blinking water on the thin leaf of tree after a raining evening. Good morning to start a new day. The beautiful droplet will vanish when sun is rising. But it...

Singapore night festival coming

Since this weekend, Singapore night festival is coming. The venue is at the park of plaza Singapore mrt and the law school of smu. Enjoy your eating, drinking and smiling night. Here is the image...

45 emerald hill road, architectural heritage in Singapore

https://www.ura.gov.sg/Corporate/Get-Involved/Conserve-Built-Heritage/Architectural-Heritage-Season/-/media/A059FFB389544B23B5E63F3BF72F8C5C.ashx This is No. 45, Emerald hill road in Sing...

Sunset at pandan reservoir

There is almost half-year I do not cycling to western in Singapore. On this Sunday afternoon, go cycling to Pandan reservoir to watch sunset, a great place in Singapore. From Alexandra, enter i...

How to install Zipline: an algorithm trading tool

It is not easy to install Zipline, Pythonic algorithmic trading library,https://github.com/quantopian/zipline, even following the install instruction. The original package only support Python 3.6...

Understanding data and business in data science

Data science is about data and business, it is about how company exploits data to drive business decision and strategy. It is not about science, not about AI & ML and whatever deep models, wh...

Old building, history of Singapore

Singapore is a city country, it’s 57-year celebration this year. In the business area orchard road, it is interesting to find the preserved old building of the country. it is the government great...

First botanic garden @Armenian street

Just know first botanic garden at Armenian street, neighborhood SMU law school, refer detail to https://www.nas.gov.sg/archivesonline/data/data/pdfdoc/20180317006/5%20Factsheet%20D%20-%20First%20...

Slow down, thinking

Even in the busy workplace, there is always a way to slow down your step, thinking work and life, wandering like cock and bird. Wandering cock and bird in the city morning

World of light and shade in park


为了渐渐远去的记忆 - for fading-away memory

前言 熟悉的人、熟悉的事儿在记忆中渐渐远去,渐渐变得越来越模糊。那就让片片记忆远去之前,把那些事、那些人记录下来吧,以助老来衰退的记忆力。这只是一个普通人的平凡日常所录,无论苦甜,都已经构成我们人生的一部分。 故乡 我们这里没有山,茫茫大地,一马平川。 -无名 我的大学 现在几乎每个人都知道89年是一个不同寻常的年份,也就是这一年,我来到了西安开启了四年的大学生活...

Garden festival at orchard road, Singapore NDP events


Singapore NDP , garden festival at orchard. And Erhei


Garden festival at orchard, NDP Singapore event


Garden festival at orchard