Archive for the ‘web’ Category

New Mac OSX Mojave on old Mac

January 31st, 2019

Back in 2009, When I got my first MacBook Pro I was excited. It had the best configuration at that time (8G memory and 250G storage - SSD!). I still use it today.

As I am developing Stork’s mobile app, I need to use the latest xcode. But Apple does not allow me to upgrade to its latest OSX, apparently my computer is too old.

So I found this webpage with detailed instructions on how to install new OSX to old Mac. The guy is a genius. It worked perfectly. What you need is a USB drive (16G or bigger). Then just follow the steps. The link is:

(click the image below to enlarge)

Author: Xu Cui Categories: technology, web Tags:

Mac on Windows?

January 30th, 2019

If you need to play with Mac OSX but do not own a Mac computer, you might wish you could install Mac OSX on your Windows 10 computer as a virtual machine. Luckily I found this useful webpage with detailed instructions on how to do it. The link also provides a download link of the macOS Mojave image file.

The webpage is at

With the instruction I was able to run Mac OSX Mojave successfully on my Windows 10 via VirtualBox. In the beginning the mouse/keyboard does not work, so I followed another link: which solved the problem.

During Mac OSX setup I also encountered the apple ID login issue. In the end I did not sign in my apple ID during the setup phase - I created a local account instead.

Currently the resolution seems to be low, resulting in a rather small window for Mac OSX. I do not know how to fix it yet. update 2019-02-01 Found a way to fix. In command line window, run the following command:

cd "C:\Program Files\Oracle\Virtualbox"
VBoxManage setextradata "Mac OSX Mojave" VBoxInternal2/EfiGraphicsResolution 1920x1080

Click the image below to zoom in:

Author: Xu Cui Categories: technology, web Tags:


September 12th, 2018


  1. 高亮标记了高影响因子的文献,并且文献按影响因子排列
  2. 显示中科院期刊分区信息,并用不同的颜色标识不同分区






Author: Xu Cui Categories: stork, web, writing Tags:

BOLD5000, A public fMRI dataset of 5000 images

September 11th, 2018

Official website and download
Full text paper link

Good news for brain imaging researchers. There is a new dataset available for you to play with.

BOLD5000 is a large-scale, slow event-related fMRI dataset collected on 4 subjects, each observing 5,254 images over 15 scanning sessions. The images are selected from three computer vision datasets.

  1. 1,000 images from Scene Images (with scene categories based on SUN categories)
  2. 2,000 images from the COCO dataset
  3. 1,916 images from the ImageNet dataset

BOLD5000 image data

BOLD5000 image data

Author: Xu Cui Categories: brain, web Tags:

Stork API, a single line becomes a list of new publications

September 8th, 2018

I want to show a list of my own publications on my webpage, is there an easy way to do so? Yes, Stork API, a single line of code, allows you to show a list of publications given a keyword. You only need to put the code to your webpage once, and then even if there are new publications, the list will update itself.

Let’s look at this list:

The above list was generated by the following single line of code:

<iframe style="border: 0;" src=";format=html&amp;num=20&amp;k=cui+xu+(stanford+psychiatry+OR+houston)" width="100%" height="600" frameborder="0"></iframe>

What about a list of publications in fNIRS field? It’s easy too. As you can see, all you need to change the the “k” parameter (which stands for keyword).

<iframe style="border: 0;" src=";format=html&amp;num=4&amp;k=(nirs OR fnirs) brain" width="100%" height="600" frameborder="0"></iframe>

The line of code above becomes

Author: Xu Cui Categories: programming, web, writing Tags:

Google Dataset search, a great tool for fNIRS and fMRI?

September 6th, 2018

Google just launched a new search engine: Google Dataset search. With this app, scientists can search public datasets published in scientific journals (and possibly other sources). According to Google, “Dataset Search enables users to find datasets stored across thousands of repositories on the Web, making these datasets universally accessible and useful.”

I searched ‘fNIRS’ and it returned 30+ results. See figure below. I clicked the first one, fNIRS/EEG/EOG classification, and it shows some meta information (e.g. the source and authors). Then I clicked the ‘’ website and did see the download link of the MAT file.

google dataset search

google dataset search

I also tried to search ‘fMRI’. The number of datasets for fMRI is much larger than that for fNIRS.

Currently the number of datasets indexed by Google is still limited, but I expect it will grow rapidly and become a very useful tool for scientists and anybody who want to play with data.

Link: Google Dataset search

Author: Xu Cui Categories: nirs, web Tags:

[Tool] How To Convert Image To Text (OCR)

September 9th, 2017

You are reading a book or article online, and want to copy/paste a few sentences. But then you realize the book or article prevents you to copy, or maybe the book/article is an image. Instead of typing the sentences, you can use a tool to automatically recognize texts in image and convert for you.

“structurise” is such a tool. Unlike other online tools, you can paste your image into structurise directly, instead of saving the image to a file and uploading it. So it really make your workflow fast:

A short demo recorded by myself (in Chinese)

Author: Xu Cui Categories: web, writing Tags:


January 17th, 2017








Author: Xu Cui Categories: programming, stork, web Tags:


August 11th, 2016



1. 我的导师是否有经费?
2. 我在寻找博后的职位;我未来的老板是否有足够的经费支持我?
3. 有多少经费拨给了我的研究领域(比如NIRS)?谁得到了这些经费?他们将用这些经费做什么?



Stork 就是这样一个工具。

我在Stork里输入如下关键字,“pearl chiu”(我之前同事的名字)以及“NIRS brain”(我的研究领域)。以下是Stork发给我的邮件:

Stork notifies me of awarded grants


有了Stork提供的信息,我了解了在我的研究领域,谁得到了经费以及他们打算用这笔经费做什么研究。实际上邮件里的第三个基金是拨给我的同事Manish, 用于他进行利用NIRS对静息状态下的脑回路的研究。我还看到Pearl得到了很大一笔经费,所以我给她发送了一封祝贺邮件。与Stork的另一个功能论文提醒比起来,经费提醒让我更早的对自己研究领域的趋势了如指掌。得到经费支持的研究,通常需要几年之后才有相关论文发表出来。


Author: Xu Cui Categories: brain, programming, stork, web, writing Tags:

DDoS Attack Threat

May 26th, 2016

I recently received an email who threatens to attack a server I am running - unless I pay them 0.2 Bitcoin (about $93 US dollars). Anybody know how to handle this?

Below is the email:


subject line: DDoS Attack Imminent - Important information


We are Phantom Squad

Your network will be DDoS-ed starting June 1st 2016 if you don’t pay protection fee - 0.2 Bitcoin @ 14hxG5TBZz6jCZz4H7mzfzXfgXjgaF3MqA.

If you don’t pay by June 1st 2016, attack will start, yours service going down permanently price to stop will increase to 20 BTC and will go up 10 BTC for every day of attack.

This is not a joke.

Our attacks are extremely powerful - sometimes over 1 Tbps per second. And we pass CloudFlare and others remote protections! So, no cheap protection will help.

Prevent it all with just 0.2 BTC @ 14hxG5TBZz6jCZz4H7mzfzXfgXjgaF3MqA

Do not reply, we will not read. Pay and we will know its you. AND YOU WILL NEVER AGAIN HEAR FROM US!

Bitcoin is anonymous, nobody will ever know you cooperated.

Author: Xu Cui Categories: web Tags: