Archive

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:

http://dosdude1.com/mojave/

(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 https://techsviewer.com/install-macos-10-14-mojave-virtualbox-windows/

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: https://techsviewer.com/how-to-install-virtualbox-extension-pack-and-enable-usb-3-0/ 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:

Stork文献鸟显示期刊的中科院分区

September 12th, 2018

每天的新文献太多了,根本没时间读。怎么办?这时候就需要快速地甄别出重要文献。为了帮助大家做到这一点,文献鸟做了两件事情:

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

对于Pro用户,文献鸟还允许设置过滤分区。比如如果设置最大分区是2,则只有分区为1和2的期刊文献才会被推送,其它的会被自动过滤。

中科院期刊分区的显示

Pro用户可以设置分区过滤

如果需要购买Pro,可以单击这个链接

Stork官网地址: https://www.storkapp.me/

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="https://www.storkapp.me/api/new.php?apiKey=STORKDEMO&amp;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="https://www.storkapp.me/api/new.php?apiKey=STORKDEMO&amp;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 ‘zenodo.org’ 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:

http://www.structurise.com/screenshot-ocr/

A short demo recorded by myself (in Chinese)

Author: Xu Cui Categories: web, writing Tags:

Stork开通自动翻译功能啦

January 17th, 2017

虽然美国读研究生的时候,一个很头疼的问题就是阅读科学文献。原因很多,但是其中一个就是文献里面有许多单词不知道意思,这就时不时地要查字典。到后来情况就逐渐变好了,但是在接触到新的领域的时候,又出现一些该领域的新词汇,又要学习这些单词。当时我想,如果有个工具可以自动把文献翻译成汉语就好了。

随着人工智能在翻译领域的进展,长句子的准确翻译变为可能。当然,与“信达雅”还是差距很大,不过通过一些例子感觉已经是达到“信”了,“达”也初步达到了。或许以后还可以“雅”。对科研人来讲,能够“信”其实就已经很好了,毕竟对英文也不是一点都不懂。

看到技术成熟,我们就给Stork(文献鸟)增添了高级功能:翻译!当Stork给我发邮件的时候,邮件里的文献已经翻译好了:

这样我就可以快速浏览文献,省不少时间。

打开某个文献,里面的摘要也翻译了:

总体感觉翻译得还不错,比普通的逐字翻译要好很多,可以作为阅读的辅助功能。

该功能是付费功能。如果感兴趣的话,可以参考下面页面的操作:

http://www.storkapp.me/translation.html

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

Stork是我最好的科研助手(2):经费提醒

August 11th, 2016

Stork

Stork

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

你是否也曾考虑过这些问题?当我还是一个研究生的时候,我很少问这些关于“钱”的问题。“钱”似乎并不是一个“真正”的科学家应该在意的事。而当我得知我的导师为经费申请花着大半部分时间的时候,我更加疑惑了,他难道不应该把时间用在做实验以及撰写论文上吗?

当我开始博后研究时,我发现自己同样花费很多时间申请经费。我也逐渐意识到我的未来科研事业是否成功,很大一部分是由我是否能有足够稳定的经费支持来决定的。我见到一些同事,由于缺少经费不得不离开科研界。我想到如果能有一个工具及时提醒我当下的经费拨款情况,我的科学研究应当可以更加有的放矢。

Stork 就是这样一个工具。

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

Stork notifies me of awarded grants

Stork告知我获得拨款的研究者

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

如果你也想变成第一个在你领域知道有哪些新经费颁发的人,快去试试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:

—–

From: PhantomSquad@openmailbox.org
subject line: DDoS Attack Imminent - Important information

FORWARD THIS MAIL TO WHOEVER IS IMPORTANT IN YOUR COMPANY AND CAN MAKE DECISION!

We are Phantom Squad
http://lmgtfy.com/?q=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: