After install wemeet in Linux, Ubuntu 24.04 especially, I met some problems:
[Read More]
crontab with rsync for backing up -- the "Connection closed by UNKNOWN port 65535" error
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]
Rsync useful usage
copying multiple files (with different names which cannot use the common symbol *) from a server to local or another server:
[Read More]
Gmail management, migration and backup
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]
WakeOnLan
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]
Artificial intelligence provides a new way to measure the amount of dark matter in large clusters of galaxies
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]
How to set up Jupyter-lab in the server to use it locally
ssh to your server, for example, ssh yourusername@server.com
[Read More]
How to allow Chromium (snap installed) to use /tmp as the download folder
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]
A PhD position
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]
The new GIZMO-SIMBA clusters
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]
Output Zetero groups bibliography to Overleaf
The problem
[Read More]
Solve the mystery of blue and red galaxies’ origins
This is a double of my School of Physics and Astronomy news from University of Edinburgh at here
[Read More]
Set VPN for connecting to only specific IP address
The problem
[Read More]
Identifying protoclusters at high redshift
Are protoclusters are really progenitors of galaxy clusters?
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]
miscellaneous issues with ubuntu 20.04
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]
git-latexdiff run with bibtex
Runnning git-latexdiff with -b, for example:
[Read More]
undefined symbol error for compiling with cython modules
A common error for installed packages (such as yt, caesar) which use cython to build parts of models:
[Read More]
Intrinsic scatter in Astronomy
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).
How to set up the power management for Dell XPS 13 - 3980
Use the Dell OEM Ubuntu ios file to install the ubuntu 18.04LTE.*
[Read More]
The current directory must be set to the ITT directory problem when install libraries with libtool
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]
Kill series of processes in Linux!
Command to run in terminal:
[Read More]
Open external links (movie) in PDF files through evince in Linux!
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]
Gadget simulation binary snapshot formats
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]
Tips for MNRAS latex file format
Wrapping the abstract to the second page
[Read More]
A Wrapper for changing from numerical recipes fft to FFTW3
Remember to link the library with ``-lfftw3` in your Makefile.
[Read More]
GNU screen copy mode
Active gnu screen copy mode:
‘CTRL-A [’
[Read More]
curve_fit with weights!
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]
Notes for install ds9 in Linux!
Dowload ds9 (source file from SAOImage version 7.6b8) : http://ds9.si.edu/download/source/ds9.7.6b8.tar.gz
[Read More]