Translating a Restaurant Sign

I visited Cambridge at the weekend with my friend, she noticed a sign in a Chinese restaurant. She told me the sign said that this restaurant is Stephen Hawking’s favourite restaurant. This is my attempt at translating it.

The Chinese on the sign is:

物理学家霍金先生最喜欢的中国餐厅

Wùlǐ xué jiā huòjīn xiānshēng zuì xǐhuān de zhōngguó cāntīng

I know most of the s characters in this sentence, however there are new characters and words for me. The new words for me are physicist and Hawking.

  • 物理学家 – Physicist
  • 霍金 – Hawking

The translation is:

The favourite Chinese restaurant of Physicist Mr Hawking.

     

Fixing Code Block Alignment

I’m using the Enlighter plugin for WordPress to syntax highlight code snippets in posts. When using the TwentyTwenty theme the code snippets are left-aligned instead of centered in the post. This is a known compatibility issue for this plugin, and there is a fix detailed on Github.

.enlighter-default{
    margin: 0 auto 1.25em auto;
}

I’ve already created a child theme based on TwentyTwenty so it was easy to add the above CSS to the stylesheet, and et viola, the code snippets are correctly aligned now.

   

Wasabi Skin Care!

芥末味的护肤品😱😂?英国人吃日料的时候都不吃芥末,他们会喜欢芥末味在护肤品里吗。我想知道销量怎样。
我喜欢图二的味道,这个牌子在英国有,但买不到这些亚洲口味,除非去中国超市买,大部分英国人都不知道这两个味道的存在。

       

Weekend Trip

上周末我和朋友一起去旅行。 周六我们去了巴斯, 周日布里斯托尔和滨海韦斯顿。

我们先逛镇中心再去吃重庆小面。我们去了帕雷德花园和普尔特尼桥。下午我们去了罗马浴场。

晚上我们去了Green Park Brasserie吃晚餐,这个饭馆有现场乐队演出。

周日我们去了布里斯托尔,看到了Banksy艺术和克利夫顿吊桥。然后去了滨海韦斯顿,走在沙滩上。

我们还看到了两条彩虹。

     

Meal in Glasgow

昨天我跟朋友在格拉斯哥吃了中餐,我们点餐了饺子和包子

饺子: 猪肉大白菜馅 – 锅贴 三鲜(猪肉,大虾, 韭菜) – 煮水饺

包子: 叉烧包

我还喝了珍珠奶茶

Yesterday me and my friend had Chinese food for lunch and dinner. At lunch we had 水煮鱼 and 麻辣豆腐 , I chose the 麻辣豆腐 as it’s the only thing I could understand on the Chinese menu 😂.

For dinner we had dumplings and baozi.

I also tried bubble tea for the first time yesterday, I had a green tea one.

Today I had a pearl milk tea.

     

Compiling OpenSSL 1.0.2d on 64-bit Cygwin

Out of the box I couldn’t get OpenSSL to compile on 64-bit Cygwin, below are the steps I used to successfully compile it.

  1. Use “tar xf openssl-1.0.2d.tar.gz” to decompress the source
  2. Add  options=”$options no-asm” to line 913 of config
  3. Run ./config
  4. Change -march=i486 to -march=x86-64
  5. Run make
  6. All done

Note that I had to use tar to decompress it as 7zip wreaked the symlinks used in there which caused some #includes to fail.

 

Stopping “No Disk” Error Pop-up In Windows

While working on a project that used the Microchip C18 compiler I got this error message:-

If I clicked “Continue” it would appear again instantly, and this kept going dozens of times, the compile worked fine but the error message was very annoying. The drive in question was a partition on my main hard disk, it was not a removable drive!

After a bit of research I found out how to suppress the error message by modifying the system registry. Below is an example of the .reg file I created.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows]
"ErrorMode"=dword:00000002

This will disable all application and system error pop-ups, which may not be what you want so what I did is create two reg files, on disables the errors, the other enables the errors. This means I can temporarily disable the errors when I want.

For more information on this see this Microsoft support page.

WARNING! Modifying your system registry could be dangerous, proceed with caution. I am not responsible for any damage you cause to your system!

I recommend creating a system restore point before making any modifications to the system registry.

   
1 2 3 4 5