Folge dem weißen Kanninchen::Home/Nützliches/Anleitungen, Kalkulatoren, Generatoren, Listen & Warnungen
Anleitungen, Kalkulatoren, Generatoren, Listen & Warnungen2017-09-01T12:57:18+00:00

Switched to NVIDIA Quadro K620

Switched to nvidia quadro k620. After installation of fitting drivers, matching requirements of cuda10 and escape from dependency hell deep learning on the GPU seems to work. Before: 24 min on CPU, now: 6 min on GPU – fair enough! (With a batch size of 512 (instead of default 128): 4.40 min, batch of 768: 4.21 min, batch of 1024: failed.​
14. Oktober 2019|Schlagwörter: , |0 Kommentare

Intelligenz breitet sich in unserem Haushalt aus!

Ob keras zumindest künstliche Intelligenz in unseren Haushalt bringt? [挤眼] ​
7. Oktober 2019|Schlagwörter: , |0 Kommentare

Amazon.cn is an regulatory overkill in China – if you are a foreigner in China

If you are a foreigner living in China for longer time you face several problems when shopping. If you want to buy online at Taobao you have to deal with the language problem, contect sellers and ask for any conditions, warranty (at least kind of), make sure what you want to order is not a fake or knock-off, and of course shipping times – you can be sure never a good from a seller located in Shanghai with the status “in stock” really means they have it in Shanghai already.

There are also other reason which make you sooner or later abstain from Taobao and focus on international online shopping in China:

  • Adidas does not offer sneakers in an adequate size for your westerner’s feet
  • The electronics you want to buy is not available on the Chinese market (e.g. Anki Cozmo, Sabrent ds-4ssd)
  • you want to buy something which does not need help from a Chinese – maybe a gift for your wife or something which needs some more privacy

In the past www.amazon.cn was on option, but now it turned out to by so extremly over-regulated that Amazon.cn is completely dead for foreigners in China.

If you want to order something from a foreign Country and let it ship into China you have to give it an address. If the receiver is a Chinese or not doesn’t matter for the customs a Chinese ID-Card number is required. So as a foreigner in China you have to bother a Chinese and make him/her responsible for the customs anyway. But even if you do so or you want to send a gift to your Chinese friend you will face the following problem:

You order, choose your Chinese friend or relative with Chinese ID-Card number a shipping address, and eventually you pay with your bank account or WeChat pay. Hurray! Every day you get updates and your goods are tracked and finally arrive at the Chinese customs –  until the big WTF-Moment. Amazon writes you that your goods are returened with the reason “can’t be delivered”. Well, through the disappointment the one and only question of every foreigner in China make its way to break though: Why?

Why first send out, transport by air, then return?

Again, you bother some Chinese to let Amazon call him/her (an option which is very very hidden in the returns options because Amazon gives a sh*t to inform you proactively with understandable reasons about a failed delivery). The reason is that the customs want that the payment channel used to pay some goods imported to China needs to be traceable down to the single Chinese person, who gave the ID-Crad number as the responsible person. So the goods needed to be payed with his/her bank account OR at WeChat-Pay the payment must be connected with that ID-Card.

This makes it of course unusable to send the stuff as a gift. I also see not the slightliest reason why they don’t check that in advance instead of shipping good through half of the world only to return them.

I say it as it is: Amazon.cn SUCKS!

… and never expect that you can contact Amazon directly or that they have a customer service which deserves that name. I guess if they had then at least 10% of China’s inhabitants were needed to work for amazon to explain disappointed customers why their orders fail. The other way round it makes by far more sense for Amazon to make money by let Chinese sellers sell every F**K on their platform to other countries.

5. September 2019|Schlagwörter: , , , , |0 Kommentare

PHP-Modul/Extension mcrypt in php7.1 und php7.2 wieder verfügbar machen

  • 1.581

Mit PHP 7.x wird die Erweiterung/das Modult mcrypt nicht mehr als fertiges Paket für Debian, Ubuntu, angeboten. Der Support von PHP 5.x ist außerdem bereits ausgelaufen, wodurch eine Umstellung auf die neueren Versionen 7.1 bzw. 7.2 notwendig wird. Doch es gibt sehr viele PHP-basierte Anwendungen, die zwar mit PHP 7er-Versionen kompatibel sind, aber die einbindung von mcrypt weiterhin voraussetzen.

Nachfolgend eine einfache Anleitung, wie unter Ubuntu 18.04 LTS die mcrypt als Modul wieder bereitstellen kann.

apt-get install php7.2-dev
apt-get -y install libmcrypt-dev
pecl channel-update pecl.php.net
pecl install mcrypt-1.0.1
bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/cli/conf.d/mcrypt.ini"
bash -c "echo extension=/usr/lib/php/20170718/mcrypt.so > /etc/php/7.2/apache2/conf.d/mcrypt.ini"

Jetzt mal schnell prüfen:

[email protected]:~$php -i | grep mcrypt
/etc/php/7.2/cli/conf.d/mcrypt.ini
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, mcrypt.*, mdecrypt.*
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

Natürlich kann man die PHP-Extension auch über die php.ini einbinden:

extension=mcrypt.so

How to strip down and upgrade your Synology DS218+ to 16 GB RAM

If you follow the instructions below you will abandon your warranty. Due to the fact I feel like a tinkerer, I see the warranty seal anyway as some kind of trophy – with it comes a Synology DS218+ 2 Bay DiskStation NAS (Diskless) with a Celeron CPU (DUAL Core, supporting AES acceleration), hot-swap capable HDDs, RAID5-Level and eventually phat 16 GB RAM.

As factory default, the DS218+ is equipped with 2 GB RAM and with 2, 4, or 8 GB additional RAM in the empty slot you can upgrade it to 4, 6, or 10 GB. But that’s not the end of the road. With some skills and guts, you can upgrade it to 16 GB, because each RAM channel can handle up to 8 GB memory. But the apples at Synology’s trees hang high. They covered the first memory slot with a metal case (feel free to play a disappointing fanfare of your choice at this point. I’ll take the one fro the 80th arcade game Pitfall).

So below you can see a rough description of how to upgrade your DS218+ to reach the full capacity of memory and make it a NAS mo-mo-monster MACHINE!

That’s a machine able to serve as by far more than a file server, media player, streaming machine, and network storage – this one natively runs docker containers and with 16 GB RAM extension (my choice: Crucial CT2KIT102464BF160B 16GB (8GB x 2) Speicher Kit (DDR3L, 1600 MT/s, PC3L-12800, SODIMM, 204-Pin)) can also provide some developer environment and a wheelbarrow more of services. Grant yourself the Christmas present you really like and which you can work on if the kids are in bed.

Update in the very last minute

Between picture 8 and 9 is an important step missing. Before you can remove the motherboard from the lower plastic case you need the spudgers again. Try to open the spot between the front USB-port and the case. You need to lift the motherboard some then it should slip into your hand. Be careful not to damage the motherboard or any components on it!

1. Dezember 2018|Schlagwörter: , , , , , |0 Kommentare

Astrill VPN – so good that it is forbidden in China

I live in China since 2011 and tried several VPN services, but if it comes to secure, reliable and fast VPN which works in China you eventually will stick to Astrill after you once gave it a shot.

The use of several VPN services is forbidden by law in China. The access to the website www.astrill.com is blocked and so Astrill was forced to redirect over the website www.getastrill.com. Nowadays the website www.astrill-china.com is available. Unfortunately you need to connect your mobile phone to an app store (both Apple and Android) in a region with low access restrictions to download your VPN client. Please feel free to consult Astrill (chat option on their website) to get support on that issue.

It seems a paradox, but Astrill offers payment with UnionPay, Alipay und Wechatpay with registered accounts. Since this contradicts the idea of anonymization, I recommend paying with crypto currencies. Astrill supports payment with Bitcoin, Litecoin, Ethereum, Monero, Dash and many more.

What you get is a VPN client

  • for one computer and one mobile phone at the same time.
  • That is only 8.33 USD per month (yearly payment)
  • works with both China Telekom, China Unicom and with China Mobile anyway.

The settings using OpenVPN usually works fine, for more security and anonymity in China choose stealth mode extra.

Pro-Tip: Choose a server near you and not one not near the place you guess a website or service is located you want to reach. Also, it makes no sense to lead your traffic near the country you‘re from and back to you. In China, I have very good experiences connecting with Taiwan, Korea, Singapore, and UK via Taiwan.

Even if you’re not in a country with content censorship and tight access restrictions a secure VPN is a good idea. All your connections are encrypted which means within the VPN nobody can easily access the data you are transferring when one has access to the infrastructure for telecommunication (man-in-the-middle-attack).

To make a long story short: Choose Astrill as your VPN-Service – fast, reliable, works.

Mehr Beiträge laden