# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1313

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1314

---

## [\[ANN\] JuliaConnectoR v1.0.0](https://discourse.julialang.org/t/ann-juliaconnector-v1-0-0/65668)

<div class="topic-metadata">

**Author:** [@stefan-m-lenz](https://discourse.julialang.org/u/stefan-m-lenz)\
**Replies:** 5\
**Last updated:** [August 2, 2021, 2:21pm UTC](https://discourse.julialang.org/t/ann-juliaconnector-v1-0-0/65668 "2021-08-02T14:21:04Z")

</div>

Greetings to all Julia and R users! I would like to announce that the JuliaConnectoR R package has reached version 1.0. It is available from CRAN and GitHub. The goal of the package is to make it convenient to access …

---

## [Problem optimizing a 2 variable function (Optim .jl)](https://discourse.julialang.org/t/problem-optimizing-a-2-variable-function-optim-jl/65655)

<div class="topic-metadata">

**Author:** [@AndresCasillas](https://discourse.julialang.org/u/AndresCasillas)\
**Replies:** 4\
**Last updated:** [August 2, 2021, 2:05pm UTC](https://discourse.julialang.org/t/problem-optimizing-a-2-variable-function-optim-jl/65655 "2021-08-02T14:05:50Z")

</div>

Hi! I want to optimize a 2 variable function using Optim.jl. I’ve read the documentation but I still can’t figure it out. I hope someone can help me. (I’m using Optim and using MittagLeffler on a Jupyter notebook with Ju…

---

## [Bounding box of object in Makie](https://discourse.julialang.org/t/bounding-box-of-object-in-makie/64733)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [August 2, 2021, 1:31pm UTC](https://discourse.julialang.org/t/bounding-box-of-object-in-makie/64733 "2021-08-02T13:31:16Z")

</div>

Given a Circle(Point(1,2), 3), is it possible to calculate the bounding box of it?

---

## [Identical functions repeated benchmarks show systematic differences](https://discourse.julialang.org/t/identical-functions-repeated-benchmarks-show-systematic-differences/65345)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 37\
**Last updated:** [August 2, 2021, 12:35pm UTC](https://discourse.julialang.org/t/identical-functions-repeated-benchmarks-show-systematic-differences/65345 "2021-08-02T12:35:53Z")

</div>

I’m trying to write and benchmark sorting algorithms, and am having some trouble getting consistent benchmark results. I’ve simplified my problem to defining two identical sorting methods using the interface from base/so…

---

## [Makie: LinePattern in Box](https://discourse.julialang.org/t/makie-linepattern-in-box/65663)

<div class="topic-metadata">

**Author:** [@wst](https://discourse.julialang.org/u/wst)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 12:07pm UTC](https://discourse.julialang.org/t/makie-linepattern-in-box/65663 "2021-08-02T12:07:41Z")

</div>

Hello everyone, to get better understanding of how Makie works I’m trying to visualize stacked composite-laminates. My current approach is to draw a Box for each lamina, which works fine. Now I want to add a hatching t…

---

## [\[ANN\]¯SNM: simulated neural moments for ABC or Bayesian method of moments](https://discourse.julialang.org/t/ann-snm-simulated-neural-moments-for-abc-or-bayesian-method-of-moments/41592)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 9:06am UTC](https://discourse.julialang.org/t/ann-snm-simulated-neural-moments-for-abc-or-bayesian-method-of-moments/41592 "2021-08-02T09:06:11Z")

</div>

SNM is a project to reduce the dimension of statistics used for Approximate Bayesian Computing or the method of simulated moments though use of neural nets. The project allows for creation and training of the neural net,…

---

## [Nonlinear callback cplex](https://discourse.julialang.org/t/nonlinear-callback-cplex/65660)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 8:41am UTC](https://discourse.julialang.org/t/nonlinear-callback-cplex/65660 "2021-08-02T08:41:13Z")

</div>

Dear all, I would like to implement non linear lazy constraint for a cplex model. For instance I would like to implement the following code: using CPLEX, JuMP model = Model(CPLEX.Optimizer) @variable(model, x \<= 10, In…

---

## [Variables multiplication with JuMP.jl](https://discourse.julialang.org/t/variables-multiplication-with-jump-jl/65661)

<div class="topic-metadata">

**Author:** [@ver\_kh](https://discourse.julialang.org/u/ver_kh)\
**Replies:** 1\
**Last updated:** [August 2, 2021, 8:40am UTC](https://discourse.julialang.org/t/variables-multiplication-with-jump-jl/65661 "2021-08-02T08:40:30Z")

</div>

Hi all, I’m trying to multiply three JuMP variables within a function but getting an error: LoadError: Cannot multiply a quadratic expression by a variable Here is the simplified version of code: using JuMP, Ipopt f…

---

## [Is there a way to prevent Julia from updating the registries almost every time?](https://discourse.julialang.org/t/is-there-a-way-to-prevent-julia-from-updating-the-registries-almost-every-time/64150)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 48\
**Last updated:** [August 2, 2021, 7:17am UTC](https://discourse.julialang.org/t/is-there-a-way-to-prevent-julia-from-updating-the-registries-almost-every-time/64150 "2021-08-02T07:17:43Z")

</div>

Whenever I do something with the package manager, it tends to begin by updating the installed registries, including the General registry. This can happen several times a day, understandably, since the General registry in…

---

## [Makie.contour plot into an array](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 5:45am UTC](https://discourse.julialang.org/t/makie-contour-plot-into-an-array/65652 "2021-08-02T05:45:23Z")

</div>

Is there a way to turn a Makie.contour plot into an array? Either where the contour pixels are 1s and everything else is 0 or where the pixels enclosed by the values are 1s and everything else is a 0. I can use ImageEdge…

---

## [Eltypes of \`view\`s](https://discourse.julialang.org/t/eltypes-of-view-s/65606)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 10\
**Last updated:** [August 2, 2021, 3:07am UTC](https://discourse.julialang.org/t/eltypes-of-view-s/65606 "2021-08-02T03:07:10Z")

</div>

Let’s say I have a vector t = \[1, 2, missing\]. And I take sub\_t = view(t, 1:2). I know that no elements sub\_t contain missing values. Is there any way to make the eltype of sub\_t be Int instead of Union{Int, Missing}?

---

## [Unexpected and unclear labels' grouping in the legend when using plotly(js) backend with subplots](https://discourse.julialang.org/t/unexpected-and-unclear-labels-grouping-in-the-legend-when-using-plotly-js-backend-with-subplots/65632)

<div class="topic-metadata">

**Author:** [@gianmariomanca](https://discourse.julialang.org/u/gianmariomanca)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 2:35am UTC](https://discourse.julialang.org/t/unexpected-and-unclear-labels-grouping-in-the-legend-when-using-plotly-js-backend-with-subplots/65632 "2021-08-02T02:35:03Z")

</div>

begin using StatsPlots gr() # pgfplotsx() # plotlyjs() # plotly() serie1=rand(5) serie2=rand(5) serie3=rand(10) serie4=rand(10) pg = plot( plot(\[serie3 serie4\], label=\["Serie1" "Serie2"\]), plot(\[se…

---

## [Vecp, transition matrix and kronecker product](https://discourse.julialang.org/t/vecp-transition-matrix-and-kronecker-product/64240)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 9\
**Last updated:** [August 2, 2021, 1:17am UTC](https://discourse.julialang.org/t/vecp-transition-matrix-and-kronecker-product/64240 "2021-08-02T01:17:17Z")

</div>

Hi to everybody, Given 4 different matrices \\boldsymbol{A}, \\boldsymbol{C}, \\boldsymbol{D}, \\boldsymbol{E}, I want to evaluate the following quantity \\operatorname{vecp}(\\boldsymbol{A})^{T} \\boldsymbol{B}\_{n}^{+}(\\bol…

---

## [What happens if \`\`Pkg.add\`\` and \`\`Pkg.update\`\` fail or get interrupted?](https://discourse.julialang.org/t/what-happens-if-pkg-add-and-pkg-update-fail-or-get-interrupted/65574)

<div class="topic-metadata">

**Author:** [@ZHEN\_LIN](https://discourse.julialang.org/u/ZHEN_LIN)\
**Replies:** 6\
**Last updated:** [August 2, 2021, 12:50am UTC](https://discourse.julialang.org/t/what-happens-if-pkg-add-and-pkg-update-fail-or-get-interrupted/65574 "2021-08-02T00:50:49Z")

</div>

Will the failure or interruption of Pkg.add and Pkg.update cause any problems to the Julia packages I already have installed? I had Gurobi.jl in my Julia 1.4.2 and I was trying to update it to the most recent version by…

---

## [Async limit](https://discourse.julialang.org/t/async-limit/62732)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 3\
**Last updated:** [August 2, 2021, 12:06am UTC](https://discourse.julialang.org/t/async-limit/62732 "2021-08-02T00:06:03Z")

</div>

Hi, When using @async is there a way to limit the number of processes/queries being run at the same time? Thank you Kind regards

---

## [How to ignore docstring associated to specific function when @autodocs?](https://discourse.julialang.org/t/how-to-ignore-docstring-associated-to-specific-function-when-autodocs/65650)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 0\
**Last updated:** [August 1, 2021, 11:18pm UTC](https://discourse.julialang.org/t/how-to-ignore-docstring-associated-to-specific-function-when-autodocs/65650 "2021-08-01T23:18:39Z")

</div>

As per title. I thought I could just add Filter = name -\> string(name) != "name\_of\_exported\_function" within @autodocs, but it doesn’t work.

---

## [Why don't I get a matrix of colors instead of a vector?](https://discourse.julialang.org/t/why-dont-i-get-a-matrix-of-colors-instead-of-a-vector/64843)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 5\
**Last updated:** [August 1, 2021, 10:49pm UTC](https://discourse.julialang.org/t/why-dont-i-get-a-matrix-of-colors-instead-of-a-vector/64843 "2021-08-01T22:49:24Z")

</div>

When I create four random colors, a and b show up as a row of four swatches But when I try to create a matrix \[a;b\], figuring four over and under, all I get is a vector row of eight swatches What am I doing wrong? a =…

---

## [Make JuliaMono a bit smaller in discourse](https://discourse.julialang.org/t/make-juliamono-a-bit-smaller-in-discourse/65343)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 32\
**Last updated:** [August 1, 2021, 10:44pm UTC](https://discourse.julialang.org/t/make-juliamono-a-bit-smaller-in-discourse/65343 "2021-08-01T22:44:58Z")

</div>

Recently, I noticed that discourse has switched to the JuliaMono typeface. It’s a great typeface with tons of glyphs and a futuristic and fresh design. One thing I noticed though is that its size seems larger than normal…

---

## [Convert UInt array to bitarray](https://discourse.julialang.org/t/convert-uint-array-to-bitarray/65622)

<div class="topic-metadata">

**Author:** [@Beh123](https://discourse.julialang.org/u/Beh123)\
**Replies:** 4\
**Last updated:** [August 1, 2021, 7:28pm UTC](https://discourse.julialang.org/t/convert-uint-array-to-bitarray/65622 "2021-08-01T19:28:39Z")

</div>

Hi everyone. I want to convert unit array to bitarrays. Next, I must convert each 20 bits to uint . Is there fast method for doing it? Best regards. x= BitArray(undef,1280×8) for i in 1:1280 x\[1+(i-1)×8:(i-1)×8+8\]=dig…

---

## [Virtual poster session](https://discourse.julialang.org/t/virtual-poster-session/65563)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 6\
**Last updated:** [August 1, 2021, 6:32pm UTC](https://discourse.julialang.org/t/virtual-poster-session/65563 "2021-08-01T18:32:15Z")

</div>

I hate to be the old guy who can’t figure out social media but … I am completely unable to work out how to view the virtual poster session. I am logged in to discourse.julialang.org (obviously) and to discord.com and t…

---

## [JuliaCon 2021 Feedback Requested](https://discourse.julialang.org/t/juliacon-2021-feedback-requested/65641)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [August 1, 2021, 6:19pm UTC](https://discourse.julialang.org/t/juliacon-2021-feedback-requested/65641 "2021-08-01T18:19:44Z")

</div>

Thanks all for tuning into JuliaCon 2021! Please take a moment to fill out this feedback form: https://forms.gle/XgP4UWA8KUwyXH786 and let us know what can be done better. ￼ ~ Logan on behalf of the JuliaCon organizing…

---

## [Products, branding, sponsorship questions](https://discourse.julialang.org/t/products-branding-sponsorship-questions/65619)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 6:14pm UTC](https://discourse.julialang.org/t/products-branding-sponsorship-questions/65619 "2021-08-01T18:14:49Z")

</div>

Hey yall, I am wondering about some community features. What are the current guidelines, and which entity and persons make decisions regarding products with “Julia” in the name using the Julia logo in commercial desig…

---

## [Annotation lik @foo\_str but for numbers?](https://discourse.julialang.org/t/annotation-lik-foo-str-but-for-numbers/65638)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 6:08pm UTC](https://discourse.julialang.org/t/annotation-lik-foo-str-but-for-numbers/65638 "2021-08-01T18:08:42Z")

</div>

I can define a @foo\_str macro, which lets me write foo"something". Is there an equivalent mechanism for numbers? The closest I can think if in Julia would be something like 2im, so this can probably be achieved using uni…

---

## [DSP.jl power spectra normalization](https://discourse.julialang.org/t/dsp-jl-power-spectra-normalization/26162)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 4\
**Last updated:** [August 1, 2021, 2:48pm UTC](https://discourse.julialang.org/t/dsp-jl-power-spectra-normalization/26162 "2021-08-01T14:48:41Z")

</div>

Can anyone explain the rationale behind the FFT normalization done in DSP.jl, for instance in the periodogram function ? Here below is the concerned code of the fft2pow! function, which computes the power spectra. I am…

---

## [Compute ratio of two variables with Symbolics.jl](https://discourse.julialang.org/t/compute-ratio-of-two-variables-with-symbolics-jl/65629)

<div class="topic-metadata">

**Author:** [@dpkwhan](https://discourse.julialang.org/u/dpkwhan)\
**Replies:** 0\
**Last updated:** [August 1, 2021, 1:21pm UTC](https://discourse.julialang.org/t/compute-ratio-of-two-variables-with-symbolics-jl/65629 "2021-08-01T13:21:08Z")

</div>

I have this equation defined: (10x-3y)/(13x-y) = 3/5 How can I simplify the above and get the ratio of x to y using Symbolics.jl or any other similar package. For example, x/y = 12/11

---

## [Are the videos of the talks of JuliaCon 2021 already online?](https://discourse.julialang.org/t/are-the-videos-of-the-talks-of-juliacon-2021-already-online/65611)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [August 1, 2021, 1:40pm UTC](https://discourse.julialang.org/t/are-the-videos-of-the-talks-of-juliacon-2021-already-online/65611 "2021-08-01T13:40:17Z")

</div>

I would like to share some talks with my colleagues. Are they already available online?

---

## [Replacing CITATION.bib with a standard metadata format](https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 37\
**Last updated:** [August 1, 2021, 1:22pm UTC](https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871 "2021-08-01T13:22:06Z")

</div>

Many Julia packages are starting to use a CITATION.bib file containing bibTeX citations for the package, as suggested on the Julia Research page. I think it is a mistake to use a Julia-specific format here — providing c…

---

## [Remove folders from output readdir()](https://discourse.julialang.org/t/remove-folders-from-output-readdir/65554)

<div class="topic-metadata">

**Author:** [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Replies:** 4\
**Last updated:** [August 1, 2021, 12:37pm UTC](https://discourse.julialang.org/t/remove-folders-from-output-readdir/65554 "2021-08-01T12:37:42Z")

</div>

Hello everyone, I have this very stupid question: How can I remove folder names from the output given by readdir() Lets say I have the following folder structure: folder1/ |\_ file1 |\_ file2 |\_ file3 |\_ folder2/ I get…

---

## [IRTools: how can I insert a shortcycling \`@ifsomething\` into IR?](https://discourse.julialang.org/t/irtools-how-can-i-insert-a-shortcycling-ifsomething-into-ir/65593)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 10:59am UTC](https://discourse.julialang.org/t/irtools-how-can-i-insert-a-shortcycling-ifsomething-into-ir/65593 "2021-08-01T10:59:01Z")

</div>

Hi there, I am experimenting with IRTools and IR. So far I understood that branches, including return statements, always have to be last in a block. Hence if I want to create a shortcycling statement like realised by …

---

## [DrWatson - how to organize simulations results for better usage](https://discourse.julialang.org/t/drwatson-how-to-organize-simulations-results-for-better-usage/65621)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 0\
**Last updated:** [August 1, 2021, 10:07am UTC](https://discourse.julialang.org/t/drwatson-how-to-organize-simulations-results-for-better-usage/65621 "2021-08-01T10:07:29Z")

</div>

I am using DrWatson, and many times I run Monte Carlo simulation which result in large data. As an example you can think of a time sequence, where each element in the sequence is a matrix. Sometimes, the simulation prep…

[Previous page](https://discourse.julialang.org/latest.md?page=1312)

[Next page](https://discourse.julialang.org/latest.md?page=1314)
