How to upgrade libpcre for CentOS 7

Categories: Software Use Uncategorized
Ok, this is the problem: if we need higher version of library in CentOS, how should we get it if it’s not in any repository? So, after a long time study, I found the only way is to compile it by myself. Actually, it’s not a big problem. But the thing is libpcre is a widely used package in CentOS. By running yum remove libpcre, you will realize that.

Read More →

Program to get download link from flashgot

Categories: Uncategorized
Source: tombkeeper Original link: http://www.bkjia.com/aqgjrj/499358.html Code #include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { if(OpenClipboard(NULL)) { HGLOBAL clipbuffer; char * buffer; EmptyClipboard(); clipbuffer = GlobalAlloc(GMEM_DDESHARE, lstrlen(lpCmdLine)+1); buffer = (char*)GlobalLock(clipbuffer); strcpy(buffer, lpCmdLine); GlobalUnlock(clipbuffer); SetClipboardData(CF_TEXT,clipbuffer); CloseClipboard(); return 0; } else { return -1; } }

Calculating degeneracy

Categories: Uncategorized
nuclear degneracy: atom: $2I+1$data for $I$nuclear spin number molecule: totoal degeneracy: $(2I_1+1)(2I_2+1)$ for homonuclear molecule: $I(2I+1)$antisymmetric, $(I+1)(2I+1)$symmetric examples: $N$: $I=1,\, g_N=2I+1=3$ $N_2$: 3 antisymmetric, 6 symmetric $NO$: $I_1=1$, $I_2=0$, $3\times1=3$ electronic degeneracy: atom: $\Sigma_J(2J+1),\, J=|L-S|...L+S$ molecule: $^{2S+1}\Lambda_\Omega$, $\phi=1$ for $\Omega=0=\Sigma$ $\phi= 2$ for $\Omega=1,2,..=\Pi,\Delta,...$. Total degeneracy = $(2S+1)\phi=\Sigma_{\Omega}(2S+1)$ examples: $N: \, ^4S \quad S=3/2,\, L =0,\, J=3/2 \quad g_{elec}=4$

Read More →