Weiguang Cui's website
  • About Me
  • CV
  • Projects
    The 300 The large-scale environments MACRO nIFTy ELUCID DEMG
  • Publications
  • Software
  • Teaching
  • Presentations
  • Blog
  • Search
Navigation bar avatar
✕

    Posts


    Collections, tips and useful links/stuffs

      Problems with distutils.msvccompiler not found error in Linux

      Posted on May 30, 2025

      For the problem of ModuleNotFoundError: No module named ‘distutils.msvccompiler’, you need this patch: [Read More]
      Tags: python distutils.msvccompiler Linux

      Problems with wemeet in Linux

      Posted on December 6, 2024

      After install wemeet in Linux, Ubuntu 24.04 especially, I met some problems: [Read More]
      Tags: wemeet Linux

      crontab with rsync for backing up -- the "Connection closed by UNKNOWN port 65535" error

      Posted on September 29, 2024

      I would like to back up my laptop home directory to a server every night at 12. As such, even I did something stupid like the other day, rm -rf * with a for loop includeing cd ... [Read More]
      Tags: rsync Linux

      Rsync useful usage

      Posted on March 5, 2024

      copying multiple files (with different names which cannot use the common symbol *) from a server to local or another server: [Read More]
      Tags: rsync Linux

      Gmail management, migration and backup

      Posted on October 3, 2023

      The problem I have been using Gmail for over 10 years, very like its interface and labels, especially the automatic reminder when an email is read but not replied in a few days time. But my university email can not be handled by Gmail after 2022 because of the stupid office/outlook “security” setup. This forced me to use third party email client, I am not saying that they are not... [Read More]
      Tags: Gmail email

      WakeOnLan

      Posted on September 23, 2023

      The problem My server can be interrupted by a blackout or even a single power switch, which is not very often, but quite annoying. It is not easy from me go to the machine and press the button. [Read More]
      Tags: NAS server

      Artificial intelligence provides a new way to measure the amount of dark matter in large clusters of galaxies

      Posted on June 6, 2023

      This is a late press release article for our Nature Astronomy paper. see this webpage for our original post https://www.madrimasd.org/blogs/talento-cm-uam/2022/10/17/194/, the news in Madrid Notiweb: https://www.madrimasd.org/inteligencia-artificial-proporciona-un-nuevo-metodo-medir-materia-oscura, in UAM website: https://www.uam.es/uam/investigacion/cultura-cientifica/noticias/inteligencia-artificial-materia-oscura and in UE website: https://www.ph.ed.ac.uk/news/2022/understanding-our-universe-with-the-help-of-machine-learning-22-10-20 [Read More]
      Tags: Research

      How to set up Jupyter-lab in the server to use it locally

      Posted on May 1, 2023

      ssh to your server, for example, ssh yourusername@server.com [Read More]
      Tags: Jupyterlab

      How to allow Chromium (snap installed) to use /tmp as the download folder

      Posted on December 16, 2022

      The answer is here: https://askubuntu.com/a/1264341 with a copy and paste version: mkdir /home/you/tmp sudo mount --bind /tmp /home/you/tmp/ [Read More]
      Tags: Chromium

      A PhD position

      Posted on June 21, 2022

      Astronomy is moving towards a high precision with ultra high resolution of both images and spectra, which will help us to understand the Universe with many more details. Meantime, hydrodynamic simulations are able to resolve dwarf galaxies within a cosmological volume. Therefore, consistently comparing theoretical results with observations will play a key role in the future astronomy studies. Mock images from hydrodynamic simulations is the only way to make consistent... [Read More]
      Tags: Job offer

      The new GIZMO-SIMBA clusters

      Posted on June 1, 2022

      Galaxy cluster, the largest number of galaxies assembled in the Universe, is the key laboratory for examinating many theories, from cosmology and dark matter to galaxy formation and intra-galactic medium. Therefore, theoretically understanding it and its formation has always in the central study of modern astronomy. However, numerical simulation is the only way to redisplay its detailed formation history. Limited by the current computation power, hydro-dynamically simulated galaxy clusters –... [Read More]
      Tags: astronomy research-work

      Output Zetero groups bibliography to Overleaf

      Posted on August 31, 2021

      The problem [Read More]
      Tags: Zetero Overleaf

      Solve the mystery of blue and red galaxies’ origins

      Posted on August 3, 2021

      This is a double of my School of Physics and Astronomy news from University of Edinburgh at here [Read More]
      Tags: astronomy research-work

      Set VPN for connecting to only specific IP address

      Posted on October 7, 2020

      The problem [Read More]
      Tags: VPN Linux

      Identifying protoclusters at high redshift

      Are protoclusters are really progenitors of galaxy clusters?

      Posted on September 6, 2020

      What is protocluster? Under the hierarchical structure formation, galaxy cluster, for example, the Coma cluster, is the largest object that formed in our Universe. Protocluster refers to the progenitors of the galaxy cluster at current time, i.e. protocluster will form a galaxy cluster given enough time. [Read More]
      Tags: astronomy research-work

      miscellaneous issues with ubuntu 20.04

      Posted on August 18, 2020

      Blue tooth not working properly sudo nano /var/lib/bluetooth/xx:xx:xx:xx:xx:xx/yy:yy:yy:yy:yy:yy/info [Read More]
      Tags: latex

      git-latexdiff run with bibtex

      Posted on June 24, 2020

      Runnning git-latexdiff with -b, for example: [Read More]
      Tags: latex

      undefined symbol error for compiling with cython modules

      Posted on December 9, 2019

      A common error for installed packages (such as yt, caesar) which use cython to build parts of models: [Read More]
      Tags: python cython

      Intrinsic scatter in Astronomy

      Posted on September 23, 2019

      An intrinsic or cosmic scatter $\epsilon_0$ that is the root-mean-square (rms) deviation in the real data from the fitted function (for zero measurement error).
      Tags: Statistics Astronomy

      How to set up the power management for Dell XPS 13 - 3980

      Posted on March 10, 2019

      Use the Dell OEM Ubuntu ios file to install the ubuntu 18.04LTE.* [Read More]
      Tags: Linux Ubuntu power management

      The current directory must be set to the ITT directory problem when install libraries with libtool

      Posted on December 25, 2018

      Problems similar to this: ``` libtool –mode=install install -c libgrackle.la /cosma/home/FR/wcui/.local/lib/libgrackle.la libtool: install: install -c .libs/libgrackle-3.1.so /cosma/home/FR/wcui/.local/lib/libgrackle-3.1.so [Read More]
      Tags: Linux libtool install idl

      Kill series of processes in Linux!

      Posted on November 15, 2018

      Command to run in terminal: [Read More]
      Tags: Linux Bash

      Open external links (movie) in PDF files through evince in Linux!

      Posted on June 11, 2018

      Using Beamer to create the link: \href{run:/you/dir/movie.avi}{\includegraphics[width=\textwidth]{/your/image/im.png}} Generated file may have the problem to open the link in evince (in my case: ubuntu 18.04): Unable to open external link. Failed to execute child process “mpv” (Permission denied)". It is the problem of the AppArmor. Edit sudo vi /etc/apparmor.d/usr.bin.evince by adding these lines: # for loading movie -- weiguang /usr/bin/mpv ixr, And reboot. It works for me. :) [Read More]
      Tags: Linux evince PDF

      Gadget simulation binary snapshot formats

      Posted on April 20, 2018

      This post1 lists the data structure of the Gadget binary snapshot. This data structure also includes the format 2, which has a header. For the old Gadget-2 snapshot format, please also refer to its documentation. [Read More]
      Tags: Simulation Gadget snapshot

      Tips for MNRAS latex file format

      Posted on April 14, 2018

      Wrapping the abstract to the second page [Read More]
      Tags: latex MNRAS

      A Wrapper for changing from numerical recipes fft to FFTW3

      Posted on April 12, 2018

      Remember to link the library with ``-lfftw3` in your Makefile. [Read More]
      Tags: c fftw3

      GNU screen copy mode

      Posted on February 23, 2018

      Active gnu screen copy mode: ‘CTRL-A [’ [Read More]
      Tags: screen

      curve_fit with weights!

      Posted on January 15, 2018

      To illustrate the use of curve_fit in weighted and unweighted least squares fitting, the following program fits the Lorentzian line shape function centered at \(x_0\) with halfwidth at half-maximum (HWHM), $\gamma$, amplitude, $A$: [Read More]
      Tags: Python scipy

      Notes for install ds9 in Linux!

      Posted on January 12, 2018

      Dowload ds9 (source file from SAOImage version 7.6b8) : http://ds9.si.edu/download/source/ds9.7.6b8.tar.gz [Read More]
      Tags: Linux ds9 astronomy softwares
    • Email me
    • Facebook
    • GitHub
    • Twitter

    Weiguang Cui  •  2025  •  http://weiguangcui.github.io

    Powered by Beautiful Jekyll