Skip to content
pst-marble package ...
 
Notifications
Clear all

pst-marble package fails with lualatex

1 Posts
1 Users
0 Likes
17 Views
Guest
Illustrious Member
Joined: 1 year ago
Posts: 72614
Topic starter  

It seems the pst-marble package has issues when used with lualatex. The example test.tex

documentclass{article}
usepackage{pst-marble}

begin{document}

begin{pspicture}(-4,-4)(4,4)
psMarble(8,8)
end{pspicture}

end{document}

compiles as expected with xelatex and latex->dvips->ps2pdf but hangs with lualatex, displaying in the terminal

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/context/base/mkii/supp-pdf.mk
ii
[Loading MPS to PDF converter (version 2006.09.02).]
scratchcounter=count288
scratchdimen=dimen180
scratchbox=box57
nofMPsegments=count289
nofMParguments=count290
everyMPshowfont=toks30
MPscratchCnt=count291
MPscratchDim=dimen181
MPnumerator=count292
makeMPintoPDFobject=count293
everyMPtoPDFconversion=toks31
) [1

and then repeatedly printing the line

Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.

I don't think the above should cause an issue, but I'll note adding DocumentMetadata{} to the top of the tex file does not stop it from hanging, it just stops printing this line.

Here is the log file after cutting off compilation.

This is LuaHBTeX, Version 1.16.0 (MiKTeX 23.1) (format=lualatex 2023.3.19)  19 MAR 2023 08:38
 restricted system commands enabled.
**mydocument.tex
(./mydocument.tex
LaTeX2e <2022-11-01> patch level 1
Lua module: luaotfload 2022-10-03 3.23 Lua based OpenType font support
Lua module: lualibs 2022-10-04 2.75 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2022-10-04 2.75 ConTeXt Lua libraries -- extended c
ollection.
luaotfload | conf : Root cache directory is "C:/Users/saint/AppData/Local/MiKTeX
/luatex-cache/generic/names".
luaotfload | init : Loading fontloader "fontloader-2022-10-03.lua" from kpse-res
olved path "C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/luatex/luaotfload/f
ontloader-2022-10-03.lua".
Lua-only attribute luaotfload@noligature = 1
luaotfload | init : Context OpenType loader version 3.120
Inserting `luaotfload.node_processor' in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' in `hpack_filter'.
Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'.
Inserting `luaotfload.define_font' in `define_font'.
Lua-only attribute luaotfload_color_attribute = 2
luaotfload | conf : Root cache directory is "C:/Users/saint/AppData/Local/MiKTeX
/luatex-cache/generic/names".
Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'.
Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'.
Removing  `luaotfload.glyph_stream' from `glyph_stream_provider'.
Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'.
Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'.
Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'.
Inserting `luaotfload.cleanup_files' in `wrapup_run'.
Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'.
Inserting `luaotfload.glyphinfo' in `glyph_info'.
Lua-only attribute luaotfload.letterspace_done = 3
Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'.
Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'.
Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'. L3 programm
ing layer <2023-02-22>
Inserting `tracingstacklevels' in `input_level_string'.
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/base/size10.clo
File: size10.clo 2022/07/02 v1.4n Standard LaTeX file (size option)
luaotfload | db : Font names database loaded from C:/Users/saint/AppData/Local/M
iKTeX/luatex-cache/generic/names/luaotfload-names.luc.gz)
c@part=count183
c@section=count184
c@subsection=count185
c@subsubsection=count186
c@paragraph=count187
c@subparagraph=count188
c@figure=count189
c@table=count190
abovecaptionskip=skip48
belowcaptionskip=skip49
bibindent=dimen139
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/pst-marble/pst-marble.s
ty
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/pstricks/pstricks.sty
Package: pstricks 2022/19/23 v0.72 LaTeX wrapper for `PSTricks' (RN,HV)

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/xcolor/xcolor.sty
Package: xcolor 2022/06/12 v2.14 LaTeX color extensions (UK)

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: luatex.def on input line 227.

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/graphics-def/luatex.def
File: luatex.def 2022/09/22 v1.2d Graphics/color driver for luatex
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/graphics/mathcolor.ltx)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1353.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1357.
Package xcolor Info: Model `RGB' extended on input line 1369.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1371.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1372.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1373.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1374.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1375.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1376.
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2022/06/16 v2.9 package option processing (HA)

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/xkeyval/xkeyval.tex
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/xkeyval/xkvutils.tex
XKV@toks=toks16
XKV@tempa@toks=toks17

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/xkeyval/keyval.tex))
XKV@depth=count191
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pstricks/pstricks.tex
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv)
pstFP@xs=count192
pstFP@xia=count193
pstFP@xib=count194
pstFP@xfa=count195
pstFP@xfb=count196
pstFP@rega=count197
pstFP@regb=count198
pstFP@regs=count199
pstFP@times=count266
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/pgf/utilities/pgffor.st
y
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/pgf/utilities/pgfrcs.st
y
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfutil
-common.tex
pgfutil@everybye=toks18
pgfutil@tempdima=dimen140
pgfutil@tempdimb=dimen141
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfutil
-latex.def
pgfutil@abb=box51
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfrcs.
code.tex
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10)
))
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/pgf/utilities/pgfkeys.s
ty
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfkeys
.code.tex
pgfkeys@pathtoks=toks19
pgfkeys@temptoks=toks20

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgfkeys
libraryfiltered.code.tex
pgfkeys@tmptoks=toks21
)))
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/pgf/math/pgfmath.sty
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmath.code
.tex
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathutil.
code.tex
pgf@x=dimen142
pgf@xa=dimen143
pgf@xb=dimen144
pgf@xc=dimen145
pgf@y=dimen146
pgf@ya=dimen147
pgf@yb=dimen148
pgf@yc=dimen149
c@pgf@counta=count267
c@pgf@countb=count268
c@pgf@countc=count269
c@pgf@countd=count270
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathparse
r.code.tex
pgfmath@dimen=dimen150
pgfmath@count=count271
pgfmath@box=box52
pgfmath@toks=toks22
pgfmath@stack@operand=toks23
pgfmath@stack@operation=toks24
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.basic.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.trigonometric.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.random.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.comparison.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.base.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.round.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.misc.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfunct
ions.integerarithmetics.code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathcalc.
code.tex)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/math/pgfmathfloat
.code.tex
c@pgfmathroundto@lastzeros=count272
)))
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pgf/utilities/pgffor.
code.tex
Package: pgffor 2023-01-15 v3.1.10 (3.1.10)
pgffor@iter=dimen151
pgffor@skip=dimen152
pgffor@stack=toks25
pgffor@toks=toks26
))
psLoopIndex=count273

`PSTricks' v3.18  <2022/11/28> (tvz,hv)
pst@dima=dimen153
pst@dimb=dimen154
pst@dimc=dimen155
pst@dimd=dimen156
pst@dimg=dimen157
pst@dimh=dimen158
pst@dimm=dimen159
pst@dimn=dimen160
pst@dimo=dimen161
pst@dimp=dimen162
pst@hbox=box53
pst@ibox=box54
pst@boxg=box55
pst@cnta=count274
pst@cntb=count275
pst@cntc=count276
pst@cntd=count277
pst@cntg=count278
pst@cnth=count279
pst@cntm=count280
pst@cntn=count281
pst@cnto=count282
pst@cntp=count283
@zero=count284
pst@toks=toks27
--- We are running lualatex with luapstricks ---
Lua module: luapstricks 2023-02-17 v0.8 PSTricks backend for LuaLaTeX
Lua function luaPST = 26
Lua function luaPSTcolor = 27
Lua function luaPSTbox = 28
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pstricks/pstricks-col
or.tex)
psunit=dimen163
psxunit=dimen164
psyunit=dimen165
pst@C@@rType=count285
pslinewidth=dimen166
psk@startLW=dimen167
psk@endLW=dimen168

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pstricks/pstricks-arr
ows.tex
pshooklength=dimen169
pshookwidth=dimen170
)
pst@customdefs=toks28

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pstricks/pstricks-dot
s.tex)
pslinearc=dimen171
pst@symbolStep=dimen172
pst@symbolWidth=dimen173
pst@symbolLinewidth=dimen174
everypsbox=toks29
psframesep=dimen175
pslabelsep=dimen176
sh@wgridXunit=dimen177
sh@wgridYunit=dimen178
pst@shift=dimen179
ps@imagectr=count286
)
File: pstricks.tex 2022/11/28 v3.18 `PSTricks' (tvz,hv)

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.06, 2020/11/20 (hv))
File: pst-fp.tex 2020/11/20 v0.06 `PST-fp' (hv)
)
Package: pst-marble 2019/02/18 package wrapper for PSTricks pst-marble.tex

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/generic/pst-marble/pst-marble
.tex `PST' v1.6, 2019/03/20)
File: pst-marble.tex 2019/03/20 v1.6 `PST-marble'
)
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/l3backend/l3backend-lua
tex.def
File: l3backend-luatex.def 2023-01-16 L3 backend support: PDF output (LuaTeX)
l__color_backend_stack_int=count287
l__pdf_internal_box=box56
)
No file mydocument.aux.

openout1 = mydocument.aux
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 4.
LaTeX Font Info:    Trying to load font information for TS1+cmr on input line 4
.
(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2022/07/10 v2.5l Standard LaTeX font definitions
)
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.

(C:/Users/saint/AppData/Local/Programs/MiKTeX/tex/context/base/mkii/supp-pdf.mk
ii
[Loading MPS to PDF converter (version 2006.09.02).]
scratchcounter=count288
scratchdimen=dimen180
scratchbox=box57
nofMPsegments=count289
nofMParguments=count290
everyMPshowfont=toks30
MPscratchCnt=count291
MPscratchDim=dimen181
MPnumerator=count292
makeMPintoPDFobject=count293
everyMPtoPDFconversion=toks31
) [1


Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.
Extended graphic state modifications dropped since `pdfmanagement-testphase' is 
not loaded.

Does anyone know what is happening here?


   
Quote

Unreplied Posts

is_user_logged_in() undefined at shutdown in plugin context

The function is_user_logged_in() is not available at shutdown (plugin context, not theme).

I want my plugin to run only (1) on front-end pages and (2) when the user is not logged in.

This partially works, but it also runs on Divi builder front-end pages, so I need to add !is_user_logged_in:

if (!is_admin()) {
    add_action('shutdown', function () {
        // Do some ob_start() and PHP_Tidy() stuff...
    }, 0);
}

Unfortunately changing my conditional to if (!is_admin() && !is_user_logged_in()) fails with:

Uncaught Error: Call to undefined function is_user_logged_in() in...

How can I find the next following line containing a specific string, then append that to the current line? (Notepad++)

I guess I’m trying to do two things using Notepad++:

  1. Find a line containing a comma character, then
  2. Find a subsequent line that contains the word “Proximity”, then copy that entire line, and append it to the current line in #1 above. The line containing “Proximity” could be any number of lines down from the original line.

Here’s a mock up:

“SCOTT, Michael”
“Office Manager”
“Card Number Card Format Disabled”
“0273ADNC PAC Proximity Reader False”
“Random rubbish”
“SCHRUTE, Dwight”
“Card Number Card Format Disabled”
“0897FFRF PAC Proximity Reader False”

Should become:

“SCOTT, Michael ; 0273ADNC PAC Proximity Reader False”
“SCHRUTE, Dwight ; 0897FFRF PAC Proximity Reader False”

I added the semicolon just to help me parse it later. I also want to remove any extra lines other than the line containing the comma (also contains the names), and the “Proximity” line.

Any ideas are appreciated!

Why is a field extension $L:K$ normal if and only if $text{Aut}(L:K)$ acts transitively on the set of homomorphisms $Lto overline{K}$?

$begingroup$

According to Wikipedia, given the algebraic extension $L:K$, the following are equivalent:

$a)$ The minimal polynomial over $K$ of every element in $L$ splits in $L$.

$b)$ $text{Aut}(L:K)$ acts transitively on the set of homomorphisms $Lto overline{K}$ where $overline{K}$ is the algebraic closure of $K$.

I have found nothing similar to the above result (equivalence of the conditions) in Stewart’s Galois Theory, and thus I’m wondering why are the conditions above equivalent?

$endgroup$

Can connect to Droplet only using root user

I’m trying to set up a Digital Ocean Droplet, and i have created a new user to follow best practices and also so that i can run the code command, because it isn’t allowed as the root user.
I can login using
ssh -i ~/.ssh/id_rsa root@droplet_ip
but running
ssh -i ~/.ssh/id_rsa my_user@droplet_ip
returns my_user@droplet_ip: Permission denied (publickey).
Why is this issue occuring?
I also have managed to change the user after logging in as root using sudo su my_user, but when I try to run code it says
mkdir: cannot create directory ‘’: No such file or directory which is very odd.

Any help will be greatly appreciated 🙂

Using a list in batch file

I need to copy a file if exist to a list of destinations. The Destination contain %variables% . When I run it appears to be taking the literal path as given in the array list.

How can I make it use the variable in the array list?

The lnk and the Shortcut_Locations.txt are located in same folder as script.

@echo off

pushd "%~dp0" 

set source_file=App1.lnk

set destination_list=Shortcut_Locations.txt

for /f "tokens=*" %%I in (%destination_list%) do (
    if exist "%%I" (
        copy /Y "%source_file%" "%%I"
    )
)

POPD

Shortcut_Locations.txt content

\server1data\%username%Desktop\
%appdata%OpenShellPinned\
%appdata%OpenShellPinnedGGHC\

Proving set is Borel in $S^{n-1}$

$begingroup$

I am reading Mattila’s “Fourier analysis and Hausdorff dimension”, the author leaves as an exercise to prove that the set $S_infty$ is a Borel set. I will now define the set $S_infty$:

Theorem 5.1: Let $Asubsetmathbb{R}^n$ be a Borel set with $text{dim}A=sleq1$. Then for all $tin[0,s]$
$$ text{dim}{ ein S^{n-1} : text{dim}P_e(A)<t }leq n-2+t $$

Where $P_e: mathbb{R}^nto mathbb{R}$, is the proyection $P_e(x) = ecdot x$ for some $ein S^{n-1}$. For the proof the autor takes $sigma<tleq s$ and finds a Borel measure $mu$ with support on $A$ such that $0<mu(A)<infty$ and such that $I_sigma(mu)<infty$, where $I_sigma(mu)$ is the energy defined as

$$ I_sigma(mu) = iint |x-y|^{-sigma},dmu x,dmu y.$$

He then has to prove that

$$S_infty = {ein S^{n-1} : I_sigma(mu_e) =infty}$$

is a Borel set. Where $mu_e(B) = mu(P_e^{-1}(B))$ is the push-forward of $mu$ under $P_e$.


This is what I tried doing:

begin{align*}
I_sigma(mu_e) = int_{-infty}^inftyint_{-infty}^infty |x-y|^{-sigma},dmu_ex,dmu_ey &= int_{mathbb{R}^n}int_{mathbb{R}^n} |ecdotxi – ecdotzeta|^{-sigma},dmu xi,dmuzeta \
&= int_{mathbb{R}^n}int_{mathbb{R}^n} |e|^{-sigma}|xi – zeta|^{-sigma},dmuxi,dmuzeta\
&= int_{mathbb{R}^n}int_{mathbb{R}^n} |xi – zeta|^{sigma},dmuxi,dmuzeta\
&= I_sigma(mu),
end{align*}

where I’m using that because $ein S^{n-1}$ then $|e| =1$. But then I get stuck and I do not know how to continue with the calculations, because the set
$${ ein S^{n-1} : I_sigma(mu)=infty }$$
doesn’t make sense to me, maybe my previous calculation is wrong.

$endgroup$

Problem with PID – Zabbix Server on Ubuntu (WSL2)

I’m having trouble trying to start Zabbix Server (6.4) on WSL2. When I try the following command:

service zabbix-server restart:

I received the following message:

 * Stopping Zabbix server zabbix_server
No process in pidfile '/var/run/zabbix/zabbix_server.pid' found running; none killed.   [ OK ]
 * Starting Zabbix server zabbix_server   

And Zabbix Server does not start:

service zabbix-server status:

 * zabbix_server is not running

Inside the log file (/var/log/zabbix/zabbix_server.log), is found the follow message repeated several times:

13660:20230417:160028.155 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) 

Followed with the message in the end of the file:

13660:20230417:160028.155 database is down: reconnecting in 10 seconds 13660:20230417:160032.344 Got signal [signal:15(SIGTERM),sender_pid:15318,sender_uid:0,reason:0]. Exiting ... 
13660:20230417:160032.344 Zabbix Server stopped. Zabbix 6.4.1 (revision 546e284fd7c).

But I already installed the mysql-server normally, and it is running without any kind of problem.

How can I connect from a mac to a windows?

I have two computers on the same local networks and I have installed OpenSSH Server on the windows and activated the 22 port communication on the windows.

Then in my mac i put

ssh username@ip_of_windows

however, it doesn’t let me connect on terminal. The connection just disappears without any error. What am I missing?

thank you!

Cox’s exercise 5.1 on (eventually) proving ring of integers is a dedekind domain

$begingroup$

Note: It seems that $LaTeX$ rendering is very broken, either for my Firefox browser or for the site. Here is an example: $mathfrak{a}_{n} = mathfrak{a}_{n + 1} = cdots$ turns into $mathfrak{a}_{n} = mathfrak{a}_{n + 1} = cdots$. I can’t fix it, so I have rendered it and pasted an image below. Hopefully it will be fixed soon. (I might make a meta post, not sure if that’s the right move).

Update: It seems to be fixed when I submitted the question? It rendered as broken LaTeX (and very slowly, unlike now where it’s instant). I have moved the image to the bottom, in case the problem is occuring for others.


Hi! I am reading Cox’s “Primes of the Form $x^2 + ny^2$“, and am on Chapter 5 (it’s a speedrun from number fields to Hilbert’s class field). I am attempting exercise 5.1, and I have done some parts, so I am both asking for verification for my solution as well as hints for the rest.

Things we have stated:

Proposition 5.3. For a number field $K$

(i) $mathcal{O}_K$ is a subring of $mathbb{C}$ whose field of fractions is $K$.

(ii) $mathcal{O}_K$ is a free $mathbb{Z}$-module of rank $[K : mathbb{Q}]$.


(a) Show that a nonzero ideal $mathfrak{a}$ of $mathcal{O}_K$ contains a nonzero integer $m$. (Hint: …)

My solution: Let $alpha neq 0$ be in $mathfrak{a}$. Of course it is algebraic, so let the monic integer polynomial $f(x) = a_0 + a_1x + cdots + a_{n – 1}x^{n – 1} + x^n$ be its minimal polynomial. Now, $langle alpha rangle subset mathfrak{a}$. In particular, for all integers $i geq 1$, the elements $alpha^i$ are in $mathfrak{a}$. This then means $sum_{i geq 1} a_i alpha^i in mathfrak{a}$, and since $f(alpha) = 0 in mathfrak{a}$, we have $m = a_0 in mathfrak{a}$.


(b) Show that $mathcal{O}_K / mathfrak{a}$ is finite whenever $mathfrak{a}$ is a nonzero ideal of $mathcal{O}_K$. Hint: if $m$ is the integer from (a), consider the surjection $mathcal{O}_K / mmathcal{O}_K to mathcal{O}_K / mathfrak{a}$. Use part (ii) of Proposition 5.3 to compute the order of $mathcal{O}_K / mmathcal{O}_K$.

My Ideas: From above, we know that $langle m rangle subset langle alpha rangle subset mathfrak{a}$, so my intuition tells me that this surjection definitely exists. (In my intuition, everything’s a module / vector space, so this surjection is just a projection map?) However, I don’t know how to explicitly describe it.

To compute $left|mathcal{O}_K / mmathcal{O}_Kright|$, from the proposition above we know that $mathcal{O}_K cong mathbb{Z}^{[K : mathbb{Q}]}$, so $mathcal{O}_K / mmathcal{O}_K$ is just $left(mathbb{Z} / mmathbb{Z}right)^{[K : mathbb{Q}]}$ and the order is $m^{[K : mathbb{Q}]}$. This part makes sense but feels a little hand wavy? Or is it justified as is?


(c) Use (b) to show that every nonzero ideal of $mathcal{O}_K$ is a free $mathbb{Z}$-module of rank $[K : mathbb{Q}]$.

My solution: Fix a nonzero ideal $mathfrak{a} subset mathcal{O}_K$. We know that $mathcal{O}_K / mathfrak{a}$ is finite and $mathcal{O}_K cong mathbb{Z}^{[K : mathbb{Q}]}$, so $mathfrak{a}$ has to be a product of $[K : mathbb{Q}]$ infinite subgroups of $mathbb{Q}$, i.e. $mathfrak{a} cong prod_{i = 1}^{[K : mathbb{Q}]} m_imathbb{Z}$. This is easy to prove by a simple proof by contradiction.


(d) If we have ideals $mathfrak{a}_1 subset mathfrak{a}_2 subset cdots$, show that there is an integer $n$ such that $mathfrak{a}_n = mathfrak{a}_{n + 1} = cdots$. Hint: consider the surjections $mathcal{O}_K / mathfrak{a}_1 to mathcal{O}_K / mathfrak{a}_2 to cdots$, and use (b).

My solution: Again, my intuition tells me the surjections $mathcal{O}_K / mathfrak{a}_i to mathcal{O}_K / mathfrak{a}_{i + 1}$ exists, but I don’t know how to construct them. Anyways, I claim that if $mathfrak{a}_i neq mathfrak{a}_{i + 1}$, then $left|mathcal{O}_K / mathfrak{a}_{i + 1}right| < left|mathcal{O}_K / mathfrak{a}_iright|$. This holds because for $alpha in mathfrak{a}_{i + 1} setminus mathfrak{a}_i$ is a nonzero element in the kernel of the surjection. Since the quotients are finite, it must eventually stop and hence there are no infinite ascending chains.


(e) Use (b) to show that a nonzero prime ideal of $mathcal{O}_K$ is maximal.

My ideas: Let $mathfrak{a}$ be a prime ideal of $mathcal{O}_K$, and suppose that $mathfrak{a} supset mathfrak{b}$ (i.e. $mathfrak{a}$ is not maximal), which gives $mathcal{O}_K / mathfrak{b} subset mathcal{O}_K / mathfrak{a}$. Thinking about everything as $mathbb{Z}$-modules, we can write $mathcal{O}_K cong prod_{i = 1}^{[K : mathbb{Q}]} mathbb{Z}$ as ordered coordinates, and similar that $mathcal{O}_K / mathfrak{b} cong prod_{i = 1}^{[K : mathbb{Q}]} mathbb{Z} / m_i mathbb{Z}$ and $mathcal{O}_K / mathfrak{a} cong prod_{i = 1}^{[K : mathbb{Q}]} mathbb{Z} / n_i mathbb{Z}$. By the inclusion, we know that $m_i mid n_i$, and for at least one $j$, $m_j neq n_j$. However, for such $j$ we have that $n_j = m_j cdot left(frac{n_j}{m_j}right)$ i.e. $mathbb{Z} / n_j mathbb{Z}$ is not an integral domain, and hence the product ring is not an integral domain, which means $mathfrak{a}$ is not prime.


For you for your help in advance!

enter image description here

$endgroup$

Share: