# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=281

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

**Page:** 282

---

## [Julia run in backgroud in MacOS and uses my CPU almost 100%](https://discourse.julialang.org/t/julia-run-in-backgroud-in-macos-and-uses-my-cpu-almost-100/100126)

<div class="topic-metadata">

**Author:** [@Wybert](https://discourse.julialang.org/u/Wybert)\
**Replies:** 0\
**Last updated:** [June 9, 2023, 9:06pm UTC](https://discourse.julialang.org/t/julia-run-in-backgroud-in-macos-and-uses-my-cpu-almost-100/100126 "2023-06-09T21:06:59Z")

</div>

Does anyone know why my Julia runs in the background and uses my CPU almost 100%? I closed all my terminal and vs code instances already, but it still uses the resources.

---

## [Wrapping of large C++ libraries](https://discourse.julialang.org/t/wrapping-of-large-c-libraries/100114)

<div class="topic-metadata">

**Author:** [@fran94](https://discourse.julialang.org/u/fran94)\
**Replies:** 5\
**Last updated:** [June 9, 2023, 8:36pm UTC](https://discourse.julialang.org/t/wrapping-of-large-c-libraries/100114 "2023-06-09T20:36:30Z")

</div>

Hi, I have seen several packages aiming at wrapping C++ code to use in Julia, such as CxxWrap.jl. I haven’t seen a lot of resources about wrapping large pre-existing C++ libraries. I’m thinking about something of the si…

---

## [Multiplication matrix matrix MPI](https://discourse.julialang.org/t/multiplication-matrix-matrix-mpi/100118)

<div class="topic-metadata">

**Author:** [@k.kirshin123](https://discourse.julialang.org/u/k.kirshin123)\
**Replies:** 4\
**Last updated:** [June 9, 2023, 8:30pm UTC](https://discourse.julialang.org/t/multiplication-matrix-matrix-mpi/100118 "2023-06-09T20:30:24Z")

</div>

hello guys, maybe a bit strange request, but could you help me write a matrix multiplication algorithm. I’m quite new to parallel computing, but I have a task ahead of me with a very tight deadline. So for now, all I c…

---

## [Understanding Aqua output](https://discourse.julialang.org/t/understanding-aqua-output/100052)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 6\
**Last updated:** [June 9, 2023, 8:07pm UTC](https://discourse.julialang.org/t/understanding-aqua-output/100052 "2023-06-09T20:07:47Z")

</div>

Aqua errors with “The file .../test/Project.toml is not in canonical format” Full output: /Volumes/.../Julia/Mendeleev.jl/test/Project.toml: Test Failed at /Users/elk/.julia/packages/Aqua/BhBic/src/project\_toml\_formatt…

---

## [Cannot use JuliaHub package server](https://discourse.julialang.org/t/cannot-use-juliahub-package-server/99749)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 4\
**Last updated:** [June 9, 2023, 8:04pm UTC](https://discourse.julialang.org/t/cannot-use-juliahub-package-server/99749 "2023-06-09T20:04:01Z")

</div>

I am behind a large-corp firewall, and following this advice I am trying JuliaHub. I made an account, downloaded the auth token: PS C:\\Users\\Cedric\> dir .julia/servers/juliahub.com/auth.toml …

---

## [An efficient way to rotate a two-dimensional plane and add it to a three-dimensional volume](https://discourse.julialang.org/t/an-efficient-way-to-rotate-a-two-dimensional-plane-and-add-it-to-a-three-dimensional-volume/99784)

<div class="topic-metadata">

**Author:** [@src\_20](https://discourse.julialang.org/u/src_20)\
**Replies:** 5\
**Last updated:** [June 9, 2023, 7:34pm UTC](https://discourse.julialang.org/t/an-efficient-way-to-rotate-a-two-dimensional-plane-and-add-it-to-a-three-dimensional-volume/99784 "2023-06-09T19:34:41Z")

</div>

I am currently working on transforming a two-dimensional array into a three-dimensional array by means of Euler angles (ψ, θ, φ) and adding it to another three-dimensional array. (like this Single particle analysis - Wik…

---

## [Bug in Forward diff for complex valued function](https://discourse.julialang.org/t/bug-in-forward-diff-for-complex-valued-function/100119)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 2\
**Last updated:** [June 9, 2023, 5:02pm UTC](https://discourse.julialang.org/t/bug-in-forward-diff-for-complex-valued-function/100119 "2023-06-09T17:02:58Z")

</div>

I have an extremely simple case scenario r(s) = (1 + 0.3\*cos(8π\*s + 2\*sin(2π\*s)))\*exp(1im\*(2π\*s - π/2)) r′(s) = ForwardDiff.derivative(r, s) r′′(s) = ForwardDiff.derivative(r′, s) h\_ref = 1/(5\*2^9) T\_ref = collect(0:h\_r…

---

## [JuMP optimization problem](https://discourse.julialang.org/t/jump-optimization-problem/100096)

<div class="topic-metadata">

**Author:** [@hitam](https://discourse.julialang.org/u/hitam)\
**Replies:** 7\
**Last updated:** [June 9, 2023, 5:09pm UTC](https://discourse.julialang.org/t/jump-optimization-problem/100096 "2023-06-09T17:09:02Z")

</div>

I want to write a function

---

## [Opening current REPL input in editor (Alt-e shortcut) doesn't work properly](https://discourse.julialang.org/t/opening-current-repl-input-in-editor-alt-e-shortcut-doesnt-work-properly/100090)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 3:17pm UTC](https://discourse.julialang.org/t/opening-current-repl-input-in-editor-alt-e-shortcut-doesnt-work-properly/100090 "2023-06-09T15:17:18Z")

</div>

I’m using Windows 11 and Julia 1.9.1 and I’m trying the new feature from 1.9 which enables you to press Alt-e to open the current REPL input into an editor, modify the code and upon closing the editor, the code is execut…

---

## [Threaded function hanging when run through include, but not through REPL](https://discourse.julialang.org/t/threaded-function-hanging-when-run-through-include-but-not-through-repl/100105)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 3:16pm UTC](https://discourse.julialang.org/t/threaded-function-hanging-when-run-through-include-but-not-through-repl/100105 "2023-06-09T15:16:07Z")

</div>

I have the following code: const vec = rand(10000) const shouldrun = Ref(true) uselessalgo(vec) = vec .= rand(10000) function uselessLoop(vec, shouldrun) while shouldrun\[\] uselessalgo(vec) GC.safep…

---

## [Question on corporate firewalls/proxies/custom certificates](https://discourse.julialang.org/t/question-on-corporate-firewalls-proxies-custom-certificates/100112)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 0\
**Last updated:** [June 9, 2023, 3:14pm UTC](https://discourse.julialang.org/t/question-on-corporate-firewalls-proxies-custom-certificates/100112 "2023-06-09T15:14:35Z")

</div>

In HTTP.jl and our TLS packages (OpenSSL.jl and MbedTLS.jl), there are various controls around certificate verification when doing HTTP requests. You can globally turn verification off, pass your own custom sslconfig, et…

---

## [Problem with Julia packages after updating to 1.9](https://discourse.julialang.org/t/problem-with-julia-packages-after-updating-to-1-9/100044)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 6\
**Last updated:** [June 9, 2023, 10:34am UTC](https://discourse.julialang.org/t/problem-with-julia-packages-after-updating-to-1-9/100044 "2023-06-09T10:34:30Z")

</div>

I update my Julia version to 1.9 (previously 1.8.3) and now when I import the following packages using CSV, DataFrames, Statistics, LinearAlgebra, Plots, SharedArrays, LaTeXStrings, Measures, Interpolations, LsqFit I g…

---

## [Returning to wrong result with multiple return values](https://discourse.julialang.org/t/returning-to-wrong-result-with-multiple-return-values/100104)

<div class="topic-metadata">

**Author:** [@khaledharizb](https://discourse.julialang.org/u/khaledharizb)\
**Replies:** 2\
**Last updated:** [June 9, 2023, 1:28pm UTC](https://discourse.julialang.org/t/returning-to-wrong-result-with-multiple-return-values/100104 "2023-06-09T13:28:28Z")

</div>

I used Newton interpolation for function q and Horner’s algorithm for the evaluation, here is the code which works correctly; function Q(q,t) d = q; # create divided difference for j = 1:length(q)-1 for i …

---

## [Converting dates to excel compatible](https://discourse.julialang.org/t/converting-dates-to-excel-compatible/100022)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.julialang.org/u/Pino)\
**Replies:** 4\
**Last updated:** [June 9, 2023, 12:44pm UTC](https://discourse.julialang.org/t/converting-dates-to-excel-compatible/100022 "2023-06-09T12:44:14Z")

</div>

I use dates in julia, then I convert them in days in the following fashion # Convert a date to a number of days date = Date(2023, 6, 7) days = Dates.days(date) println(days) 738678 I then look up the dates with other v…

---

## [Establishing a FunSQL Connection](https://discourse.julialang.org/t/establishing-a-funsql-connection/100102)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 0\
**Last updated:** [June 9, 2023, 12:33pm UTC](https://discourse.julialang.org/t/establishing-a-funsql-connection/100102 "2023-06-09T12:33:24Z")

</div>

I am trying to work through the example in FunSQL but am getting an error as shown in the following lines. This is a copy paste of the example. Somehow the artifact is not working, I think. The documentation seems to …

---

## [How to clear out buffers stored in \`task\_local\_storage\`](https://discourse.julialang.org/t/how-to-clear-out-buffers-stored-in-task-local-storage/100079)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 2\
**Last updated:** [June 9, 2023, 12:15pm UTC](https://discourse.julialang.org/t/how-to-clear-out-buffers-stored-in-task-local-storage/100079 "2023-06-09T12:15:58Z")

</div>

Before, the buffer is inside my struct and those are reclaimed whenever objects are GC-ed. If I used task\_local\_storage, the buffer would accumulate infinitely on the main task, should I use finalize() to clear out the t…

---

## [Minimizing PythonCall overhead with BenchmarkTools](https://discourse.julialang.org/t/minimizing-pythoncall-overhead-with-benchmarktools/100067)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 4\
**Last updated:** [June 9, 2023, 7:57am UTC](https://discourse.julialang.org/t/minimizing-pythoncall-overhead-with-benchmarktools/100067 "2023-06-09T07:57:32Z")

</div>

Hi there! I’m generating benchmarks with BenchmarkTools.jl, where a Python package is called with PythonCall.jl. My question is the following: how can I minimize the overhead of calling a method meth from a Python objec…

---

## [Thread safety of \`mul!\` in \`ToeplitzMatrices.jl\` with FFTW plan inside Factorization](https://discourse.julialang.org/t/thread-safety-of-mul-in-toeplitzmatrices-jl-with-fftw-plan-inside-factorization/100068)

<div class="topic-metadata">

**Author:** [@adomasbaliuka](https://discourse.julialang.org/u/adomasbaliuka)\
**Replies:** 6\
**Last updated:** [June 9, 2023, 7:20am UTC](https://discourse.julialang.org/t/thread-safety-of-mul-in-toeplitzmatrices-jl-with-fftw-plan-inside-factorization/100068 "2023-06-09T07:20:23Z")

</div>

The creation of FFTW plans is not threadsafe https://discourse.julialang.org/t/fftw-plans-for-multiple-threads/21861. (Or is it?) However, if the plan is pre-allocated, that should be thread safe? I want to pre-compute a…

---

## [Package versions: see commit hash of dependencies](https://discourse.julialang.org/t/package-versions-see-commit-hash-of-dependencies/100084)

<div class="topic-metadata">

**Author:** [@ignace](https://discourse.julialang.org/u/ignace)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 7:19am UTC](https://discourse.julialang.org/t/package-versions-see-commit-hash-of-dependencies/100084 "2023-06-09T07:19:05Z")

</div>

Hello, How can this be done: to see the commit hash of a dependency? Thanks!

---

## [Is There Package or Method to Calculate Certain Area in Julia (symbolically with SymPy)?](https://discourse.julialang.org/t/is-there-package-or-method-to-calculate-certain-area-in-julia-symbolically-with-sympy/99751)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 13\
**Last updated:** [June 9, 2023, 6:43am UTC](https://discourse.julialang.org/t/is-there-package-or-method-to-calculate-certain-area-in-julia-symbolically-with-sympy/99751 "2023-06-09T06:43:02Z")

</div>

Hi all, there are two circles, one is bigger than the other, and overlapping a bit, I want to know could Julia help to calculate the bigger circle shaded area? Maybe this is geometry problem. But it is on Calculus book. …

---

## [Inline plot not showing up Makie](https://discourse.julialang.org/t/inline-plot-not-showing-up-makie/100071)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 4:41am UTC](https://discourse.julialang.org/t/inline-plot-not-showing-up-makie/100071 "2023-06-09T04:41:45Z")

</div>

So a couple of days ago i wanted to use GLMakie outside of the inline plot that vscode has (wanted to rotate a 3D plot), so I used Makie.inline!(false) But now I want to use the standard inline plot for CairoMakie and …

---

## [How to use functions defined in package extensions but not the main package?](https://discourse.julialang.org/t/how-to-use-functions-defined-in-package-extensions-but-not-the-main-package/99979)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [June 8, 2023, 10:35pm UTC](https://discourse.julialang.org/t/how-to-use-functions-defined-in-package-extensions-but-not-the-main-package/99979 "2023-06-08T22:35:18Z")

</div>

I just started using the package extension functionality introduced after v1.9. I am a bit confused about its usage. Can I ask when the package extension is loaded, where are the new functions (which are not defined in t…

---

## [How to avoid compilation of an uncalled function](https://discourse.julialang.org/t/how-to-avoid-compilation-of-an-uncalled-function/100058)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 2\
**Last updated:** [June 8, 2023, 8:54pm UTC](https://discourse.julialang.org/t/how-to-avoid-compilation-of-an-uncalled-function/100058 "2023-06-08T20:54:55Z")

</div>

I have some code that generates a lot of function calls within different code branches. Each function call generates a different function instance. All these function instances are getting precompiled when my module is p…

---

## [Pretty Table does not display in Documenter.jl](https://discourse.julialang.org/t/pretty-table-does-not-display-in-documenter-jl/100065)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 6\
**Last updated:** [June 8, 2023, 7:53pm UTC](https://discourse.julialang.org/t/pretty-table-does-not-display-in-documenter-jl/100065 "2023-06-08T19:53:37Z")

</div>

I use PrettyTables to format the printing of structs. It works in the REPL, but not in my documentation. The problem occurs in the subsection called create model object. I was wondering if anyone might now why its not w…

---

## [Entity resolution/duplicate data in Julia](https://discourse.julialang.org/t/entity-resolution-duplicate-data-in-julia/33860)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 10\
**Last updated:** [June 8, 2023, 6:42pm UTC](https://discourse.julialang.org/t/entity-resolution-duplicate-data-in-julia/33860 "2023-06-08T18:42:31Z")

</div>

I think it would be a good idea to start brainstorming a framework for doing entity resolution across datasets in Julia. Please see this post for more info on what entity resolution is, and the Python package dedupe that…

---

## [From CSV to Circular Array](https://discourse.julialang.org/t/from-csv-to-circular-array/100051)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 1\
**Last updated:** [June 8, 2023, 5:52pm UTC](https://discourse.julialang.org/t/from-csv-to-circular-array/100051 "2023-06-08T17:52:20Z")

</div>

I’m storing matrices as CSV files that are meant to be read as circular arrays. When I creat a scrip to analysis the data I use CSV.red(..., DataFrame(...)) to read this files and the Matrix() to be analyze the data. H…

---

## [Seemingly unnecessary Precompilation with Julia 1.9 in a Docker container](https://discourse.julialang.org/t/seemingly-unnecessary-precompilation-with-julia-1-9-in-a-docker-container/99892)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 16\
**Last updated:** [June 8, 2023, 4:28pm UTC](https://discourse.julialang.org/t/seemingly-unnecessary-precompilation-with-julia-1-9-in-a-docker-container/99892 "2023-06-08T16:28:30Z")

</div>

I have a Julia web server running within a Docker container. Everything used to run fine with Julia 1.8.3. I’m trying to upgrade to Julia 1.9, and now it seems the server takes too much time to start when I deploy it. It…

---

## [How to Call Function to Create Animation in GLMakie](https://discourse.julialang.org/t/how-to-call-function-to-create-animation-in-glmakie/99938)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [June 7, 2023, 10:19am UTC](https://discourse.julialang.org/t/how-to-call-function-to-create-animation-in-glmakie/99938 "2023-06-07T10:19:27Z")

</div>

Hi all, I have a question, I don’t know how to call function so it can create the animation, I get the code here: this is the code: using GLMakie Base.@kwdef mutable struct Torus R::Float64 = 2 r::Float64 =…

---

## [Why isn't the debug logging triggered when \`JULIA\_DEBUG\` is being set to a Main submodule?](https://discourse.julialang.org/t/why-isnt-the-debug-logging-triggered-when-julia-debug-is-being-set-to-a-main-submodule/100050)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [June 8, 2023, 12:18pm UTC](https://discourse.julialang.org/t/why-isnt-the-debug-logging-triggered-when-julia-debug-is-being-set-to-a-main-submodule/100050 "2023-06-08T12:18:01Z")

</div>

julia\> module Temp function f() @debug "in here" return end end Main.Temp julia\> ENV\["JULIA\_DEBUG"\]=Main.Temp Main.Temp julia\> Temp.f() julia\> ENV\["JULIA\_DEBU…

---

## [Where to report error](https://discourse.julialang.org/t/where-to-report-error/100042)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [June 8, 2023, 12:14pm UTC](https://discourse.julialang.org/t/where-to-report-error/100042 "2023-06-08T12:14:12Z")

</div>

During precompilation I see this error: ┌ Warning: Module FileIOExt with build ID ffffffff-ffff-ffff-0000-02c424450fe9 is missing from the cache. │ This may mean FileIOExt \[f5f51d8f-5827-5d2e-939b-192fcd6ec70c\] does not…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=280)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=282)
