2024年10月6日星期日

MicroDicom访问Orthanc Server

microdicom可以作为客户端访问orthanc server的影像,此处需要在orthanc.json中修改两个配置。


1,设置允许远程访问,开放指定的ip地址和aet/端口号,同时在microdicom上也需要做相应设置。

/**

   * Network topology

   **/


  // The list of the known DICOM modalities. This option is ignored if

  // "DicomModalitiesInDatabase" is set to "true", in which case you

  // must use the REST API to define modalities.

  "DicomModalities" : {

    /**

     * Uncommenting the following line would enable Orthanc to

     * connect to an instance of the "storescp" open-source DICOM

     * store (shipped in the DCMTK distribution), as started by the

     * command line "storescp 2000". The first parameter is the

     * AET of the remote modality (cannot be longer than 16 

     * characters), the second one is the remote network address,

     * and the third one is the TCP port number corresponding

     * to the DICOM protocol on the remote modality (usually 104).

     **/

    // "sample" : [ "STORESCP", "127.0.0.1", 2000 ]

"sample" : [ "microdicom的aet", "运行microdicom的电脑ip地址,可用通配符*", dicom端口号 ]


2,如不显示患者姓名(汉字等双字节编码的文字),需要更改编码格式,建议utf8。

  // The default encoding that is assumed for DICOM files without

  // "SpecificCharacterSet" DICOM tag, and that is used when answering

  // C-FIND requests (including worklists). The allowed values are

  // "Ascii", "Utf8", "Latin1", "Latin2", "Latin3", "Latin4",

  // "Latin5", "Cyrillic", "Windows1251", "Arabic", "Greek", "Hebrew",

  // "Thai", "Japanese", "Chinese", "JapaneseKanji", "Korean", and

  // "SimplifiedChinese".

  "DefaultEncoding" : "Utf8",


    改动上述设置,即可将microdicom作为orthanc server的客户端使用,实现查询功能。其它支持pacs的客户端同理,均可通过此设置访问orthanc server中储存的影像。


---Translated by Google---


Microdicom can access images from orthanc server as a client. Here, two configurations need to be modified in orthanc.json.


1. Set to allow remote access, open the specified IP address and aet/port number, and also make corresponding settings on microdicom.


/** * Network topology **/ // The list of the known DICOM modalities. This option is ignored if // "DicomModalitiesInDatabase" is set to "true", in which case you // must use the REST API to define modalities. "DicomModalities" : { /** * Uncommenting the following line would enable Orthanc to * connect to an instance of the "storescp" open-source DICOM * store (shipped in the DCMTK distribution), as started by the distribution * command line "storescp 2000". The first parameter is the * AET of the remote modality (cannot be longer than 16 * characters), the second one is the remote network address, * and the third one is the TCP port number corresponding * to the DICOM protocol on the remote modality (usually 104). **/ // "sample" : [ "STORESCP", "127.0.0.1", 2000 ]


"sample" : [ "microdicom's aet", "IP address of the computer running microdicom, wildcard * can be used", dicom port number ]


2. If the patient's name (double-byte coded text such as Chinese characters) is not displayed, the encoding format needs to be changed. UTF8 is recommended.


// The default encoding that is assumed for DICOM files without


// "SpecificCharacterSet" DICOM tag, and that is used when answering


// C-FIND requests (including worklists). The allowed values ​​are


// "Ascii", "Utf8", "Latin1", "Latin2", "Latin3", "Latin4",


// "Latin5", "Cyrillic", "Windows1251", "Arabic", "Greek", "Hebrew",


// "Thai", "Japanese", "Chinese", "JapaneseKanji", "Korean", and


// "SimplifiedChinese".


"DefaultEncoding" : "Utf8",


By changing the above settings, you can use microdicom as a client of orthanc server to implement query function

2023年8月25日星期五

人生的傅里叶变换(转)

在这个宇宙中,也许看似杂乱无章没有规律的人生轨迹,可以由日常生活中的一件件有秩序有周期可言的小事件逐渐逼近,只要可供计算的有秩序有周期的事件足够多,频率分布足够广,逼近也无限精确,也许正是因为如此,人生才显得如此意料之外,情理之中。那些巧合,那些离别生死,也许只是深邃宇宙精密计算中的一环,也许人类目前只是朝菌不知晦朔,蟪蛄不知春秋。

-布尔什维土豆


---translated by Google---

In this universe, the seemingly chaotic and irregular life trajectory can be gradually approached by small orderly and periodic events in daily life. As long as there are enough orderly and periodic events that can be calculated, The frequency distribution is wide enough, and the approximation is infinitely accurate. Perhaps it is because of this that life seems so unexpected and reasonable. Those coincidences, those farewells to life and death, may be just a part of the precise calculation of the deep universe.

2023年5月14日星期日

笨小孩

作者:刘国荣


光着脚丫一起拾贝壳是

童年欢乐的纽带;

背着书包把课本遗忘是

稚气孩子的可爱;

不敢对视同桌的女孩是

青春豆蔻的时代;

用功学习与理想落差是

考试拼搏的无奈;

漂泊在外和工作失业是

社会残酷的感慨;

男大当婚却发愁彩礼是

心酸离别的独白;

歌中那个笨小孩也许会

得到老天的厚待。


-translated by Google-


stupid kid

Author: Liu Guorong


Picking up shells together with bare feet is

the bond of childhood joy;

Carrying a schoolbag and forgetting textbooks is

The cuteness of childish children;

The girl who dare not look at the same table is

The age of youth cardamom;

The gap between hard work and ideals is

The frustration of struggling for exams;

Adrift and job unemployment are

Sentiments of social cruelty;

When the male college is getting married, he is worried about the bride price

sad parting monologue;

That stupid kid in the song might

Get God's favor.

2022年12月9日星期五

科学防疫现在开始

2019.12--2022.12,被保护两年,被折腾一年,毁誉参半,今终落下帷幕。

    感谢医务工作者和基层的工作人员。感谢你们的辛勤付出,让大多数人免于新冠感染,平安度过了这3年的时光。

    政策风向突变,人们就像从肖申克监狱放出来的老布,对于身边如此迅速的变化无所适从。但政策放开是综合利弊的结果,并不意味着疫情已经结束。恰恰相反,真正的科学防疫才刚刚开始。

    悲观的说,对于我们绝大多数人,最终还是要感染新冠的,我们要做的是把这个时间尽可能往后拖。至少不要踩上地方政策的尾巴,被猛于虎的防疫政策伤到。也不要在第一个高峰期感染,避开医疗资源挤兑的高峰,保护别人也保护自己。

    口罩现在还不能摘。对于呼吸道传染病,规范佩戴口罩是最简单有效的防护措施,没有之一。外科口罩和N95口罩可根据不同情况选用,但要注意避免使用带有呼吸阀的口罩,同时远离佩戴这种口罩的人(他们呼出的气体不会被口罩过滤,而是直接从呼吸阀排出)。

    人多的地方少去凑热闹,菜市场超市买完东西赶紧走。一是防疫方面,远离传染源。二是安全方面,经历了这三年,整个社会戾气都比较重,难免人群中混入些不法分子干点不法的事情。

    常用药还得备上。常用的口服药,感冒药,退热药,抗生素还要备上。例如氨咖黄敏,对乙酰氨基酚,布洛芬,阿莫西林,头孢,阿奇霉素等等,一旦感染可以根据情况服药。

    疫苗要接种,打安全有效的疫苗。安全且有效,目前有符合这两项要求的么?“我的防弹衣防不住子弹,但是能防得住炮弹”--就是个笑话。

    粮食还得囤。现在是纯粹的摸石头过河,翻车的风险是客观存在的;奥密克戎变种很快,也有可能再杀个回马枪。吃的东西家里面还要备一些,家中有粮心中不慌。

    莫恐慌莫盲从。凡事想想为什么,收集信息,独立思考,自己做一下风控。不要人云亦云,被别人牵着鼻子走。脑子是个好东西,就是有些人没有。

    这次政策的步子比较大,有点扯住蛋了,一些地方部门和单位还没有跟上节奏。比如某公厕,至今仍要求持有48小时内核酸阴性证明才能拉屎。比如某医院,要求医务人员感染之后继续上班。就现在各科室的密切程度,妥妥的一人阳,一科阳,一楼阳,整个医院羊了个羊--养蛊呢。

    最后,致当年的防疫爱好者们,你们可以选择继续居家,不出门,不再与外界交流。也可以考虑把门窗都封死,避免病毒进来


---translate by Google---
2019.12--2022.12, protected for two years, tossed for a year, with mixed reputations, the curtain has finally come to an end.

Thank you medical workers and grassroots staff. Thank you for your hard work, which has saved most people from the new crown infection and passed these 3 years safely.

The policy direction has changed suddenly, and people are like old cloth released from Shawshank Prison, at a loss for such rapid changes around them. However, policy liberalization is the result of comprehensive advantages and disadvantages, and it does not mean that the epidemic is over. On the contrary, the real scientific epidemic prevention has just begun.

Pessimistically speaking, for the vast majority of us, we will eventually be infected with the new crown. What we have to do is to delay this time as much as possible. At least don't step on the tail of local policies and be hurt by the epidemic prevention policy that is fiercer than a tiger. Don't get infected at the first peak, avoid the peak of medical resources run, protect others and protect yourself.

Masks cannot be removed yet. For respiratory infectious diseases, standard wearing of masks is the simplest and most effective protective measure, not one of them. Surgical masks and N95 masks can be selected according to different situations, but pay attention to avoid using masks with breathing valves, and stay away from people wearing such masks (their exhaled gas will not be filtered by the mask, but directly discharged from the breathing valve) .

Don't go to places with a lot of people to join in the fun, and leave quickly after shopping in the vegetable market and supermarket. One is in terms of epidemic prevention, keep away from the source of infection. The second is security. After these three years, the whole society has become more hostile, and it is inevitable that some criminals will mix in the crowd and do some illegal things.

Commonly used medicines have to be prepared. Commonly used oral medicines, cold medicines, antipyretics, and antibiotics should also be prepared. For example, ampicillin, acetaminophen, ibuprofen, amoxicillin, cephalosporin, azithromycin, etc. Once infected, you can take medicine according to the situation.

Vaccines must be vaccinated, safe and effective vaccines. It is safe and effective. Are there any products that meet these two requirements? "My body armor can't stop bullets, but it can stop shells" -- that's a joke.

Food has to be stockpiled. Now it is purely crossing the river by feeling the stones, and the risk of overturning is an objective existence; the Omicron variant is very fast, and it is also possible to kill the carbine again. I have to prepare some food at home, so I don’t panic when I have food at home.

Don't panic, don't follow blindly. Think about why everything, collect information, think independently, and do your own risk control. Don't follow others and be led by others. Brain is a good thing, but some people don't have it.

The pace of the policy this time is relatively large, and it is a bit of a drag. Some local departments and units have not kept up with the pace. For example, a public toilet still requires a certificate of negative nucleic acid within 48 hours to defecate. For example, a hospital requires medical staff to continue to work after infection. As far as the closeness of each department is concerned, one person is yang, one department is yang, and the first floor is yang. The whole hospital has a sheep-raising Gu.

Finally, to the epidemic prevention enthusiasts back then, you can choose to continue to stay at home, not to go out, and no longer communicate with the outside world. You can also consider sealing the doors and windows to prevent the virus from entering

2022年5月25日星期三

那些歌,那些人,那些事(Andy,郭文)

 写在最前面

    前段时间被人问起,手机里为什么有那么多老歌。拿上手机随手翻翻,确实,很多10年甚至20年前的老歌仍在列表中被随机播放。对于我来说,很多歌背后都有一个人,一个故事,值得回忆。

    郭文是我大学同学,一个胖胖的动作敏捷男生,班里的好学生,文艺委员。脾气比较好,是我们练习抓拍的对象,被我们拍过不少半果照,坐在一起七荤八素的扯段子也不会突然爆掉,所以大家相处的一直挺好。但他还是有脾气的,毕业之前还是爆了一回。当年从半睡半醒懵逼状态中被人吼去医院急诊,就是带他去的。不过后来一切都好,毕业之后去了南方深造,定居,也就没有再回来,每年遥祝新年快乐。

    他是班里第一个也是惟一一个学弹吉他的。当时入学之后有个吉他协会,0基础开始,他就加入了,每天练习。毕业时他是会长,学校里弹的最好的几个人之一。

    Andy是他在系里的成名作。他弹的第一个完整的曲子,第一个自弹自唱的歌,第一个在系晚会上的节目。从开始的磕磕绊绊,到后面如行云流水一般的顺滑,都是他一遍遍练习的结果。对于我,每天耳闻目染,对这首歌印象相当深刻,久久不忘。

---

Andy(阿杜):

你有多久没有看过那片海

你到现在对自己究竟多明白

总是不服输,永远要比别人快

在你前方是否有你要的未来

想到我们的过去,都让人感慨

希望所有好朋友都能站起来

还有你曾经,疯狂爱上的女孩

再过几年是不是依旧难以忘怀

可是Andy,活着是不需道理

谁都可能,暂时的失去勇气

外面不安的世界,骚动的心情

不能熄灭曾经你拥有炽热的心

我是真的不会表达我的爱

却很在乎每个人对我的期待

平凡的角色,站在小小的舞台

我有那么勇敢地说出来

想到我们的过去,都让人感慨

希望所有好朋友都能站起来

还有你曾经,疯狂爱上的女孩

再过几年是不是依旧难以忘怀

可是Andy,活着是不需道理

谁都可能,暂时的失去勇气

外面不安的世界,骚动的心情

不能熄灭曾经你拥有炽热的心

我是真的不会表达我的爱

却很在乎每个人对我的期待

平凡的角色,站在小小的舞台

我有那么勇敢地说出来

外面不安的世界,骚动的心情

不能熄灭曾经你拥有炽热的心

可是Andy,Oh…Oh…Oh

Andy,Oh…Oh…Oh

外面不安的世界,骚动的心情

不能熄灭曾经你拥有炽热的心

---Translate by Google---

write at the front

    Some time ago I was asked why there are so many old songs on my phone. Take your phone and flip through it. Indeed, many old songs from 10 or even 20 years ago are still being played randomly in the list. For me, behind many songs there is a person, a story, and it is worth remembering.

    Guo Wen is my college classmate, a fat boy with agile movements, a good student in the class, and a committee member of literature and art. He has a good temper, and is the object of our practice and capture. We have taken many half-fruit photos, and sitting together will not suddenly explode, so everyone has been getting along very well. But he still has a temper, and he still exploded before graduation. Back then, when he was yelled at to go to the hospital emergency room from a state of being half asleep and half awake, he was taken there. But then everything went well. After graduation, I went to the south for further study and settled down, but I never came back. I wish a happy New Year every year.

    He was the first and only one in the class to learn to play the guitar. At that time, there was a guitar association after he entered the school, and he joined it from the foundation of 0, and practiced every day. When he graduated, he was the president and one of the best players in the school.

    Andy is his masterpiece in the department. The first complete piece he played, the first song he played and sang, the first show at the department party. From the stumbling and stumbling at the beginning, to the smoothness like flowing water in the back, it is the result of his practice over and over again. For me, I hear and see it every day, and I am quite impressed with this song, and I will never forget it for a long time.

---

Andy (Adu):

How long have you not seen that sea

How much do you know about yourself now?

Always not admit defeat, always faster than others

Is there a future you want ahead of you?

Thinking of our past makes me feel

I hope all good friends can stand up

And the girl you once, madly in love with

Will it still be unforgettable in a few years?

But Andy, there's no reason to live

Anyone can, temporarily lose courage

The restless world outside, the tumultuous mood

Can't extinguish once you had a fiery heart

I really can't express my love

But I care about what everyone expects of me

Ordinary characters, standing on a small stage

I'm so brave to say it

Thinking of our past makes me feel

I hope all good friends can stand up

And the girl you once, madly in love with

Will it still be unforgettable in a few years?

But Andy, there's no reason to live

Anyone can, temporarily lose courage

The restless world outside, the tumultuous mood

Can't extinguish once you had a fiery heart

I really can't express my love

But I care about what everyone expects of me

Ordinary characters, standing on a small stage

I'm so brave to say it

The restless world outside, the tumultuous mood

Can't extinguish once you had a fiery heart

But Andy, Oh…Oh…Oh

Andy, Oh…Oh…Oh

The restless world outside, the tumultuous mood

Can't extinguish once you had a fiery heart