# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=356

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

**Page:** 357

---

## [Goose Attack against a Genie App](https://discourse.julialang.org/t/goose-attack-against-a-genie-app/63541)

<div class="topic-metadata">

**Author:** [@StatisticalMouse](https://discourse.julialang.org/u/StatisticalMouse)\
**Replies:** 24\
**Last updated:** [June 26, 2021, 3:56pm UTC](https://discourse.julialang.org/t/goose-attack-against-a-genie-app/63541 "2021-06-26T15:56:30Z")

</div>

I made a small Genie App, and I created a Goose Attack with Rust that tests it. I used Julia 1.6.1. The app is essentially (which is routes.jl) using Genie.Router, Genie.Renderer, Genie.Exceptions, JSON3 route("/") do…

---

## [Performance issues with matrix multiplication in JuMP](https://discourse.julialang.org/t/performance-issues-with-matrix-multiplication-in-jump/63564)

<div class="topic-metadata">

**Author:** [@Huy\_Nguyen](https://discourse.julialang.org/u/Huy_Nguyen)\
**Replies:** 3\
**Last updated:** [June 26, 2021, 1:32pm UTC](https://discourse.julialang.org/t/performance-issues-with-matrix-multiplication-in-jump/63564 "2021-06-26T13:32:46Z")

</div>

I am trying to do linear constraint optimisation as follows: model = Model(Tulip.Optimizer) # Set up variables @variable(model, x\[1:length(VecA)+length(VecB)\]) # set up linear constraints workingweights …

---

## [Understanding the results from Optim.jl for a black box function](https://discourse.julialang.org/t/understanding-the-results-from-optim-jl-for-a-black-box-function/63507)

<div class="topic-metadata">

**Author:** [@edwinb-ai](https://discourse.julialang.org/u/edwinb-ai)\
**Replies:** 15\
**Last updated:** [June 25, 2021, 10:19pm UTC](https://discourse.julialang.org/t/understanding-the-results-from-optim-jl-for-a-black-box-function/63507 "2021-06-25T22:19:37Z")

</div>

I’m using Optim.jl to solve an unconstrained minimization problem. In this particular problem I have a black-box function, which can take a long time on a single function evaluation. I don’t have access to gradient info…

---

## [How to record the optimization process when using the JuMP optimization package for optimization](https://discourse.julialang.org/t/how-to-record-the-optimization-process-when-using-the-jump-optimization-package-for-optimization/63124)

<div class="topic-metadata">

**Author:** [@til1](https://discourse.julialang.org/u/til1)\
**Replies:** 4\
**Last updated:** [June 25, 2021, 10:15pm UTC](https://discourse.julialang.org/t/how-to-record-the-optimization-process-when-using-the-jump-optimization-package-for-optimization/63124 "2021-06-25T22:15:16Z")

</div>

I want to know the result of each iteration of the independent variable and the target value. How can I get this information?

---

## [How to get rid of output in nlsolve?](https://discourse.julialang.org/t/how-to-get-rid-of-output-in-nlsolve/63559)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 4:32pm UTC](https://discourse.julialang.org/t/how-to-get-rid-of-output-in-nlsolve/63559 "2021-06-25T16:32:40Z")

</div>

I’m struggling to avoid printing the result after an nlsolve call. Results of Nonlinear Solver Algorithm \* Algorithm: Trust-region with dogleg and autoscaling \* Starting Point: \[-2.9444389791664403, -2.19722457733621…

---

## [Plotting Makie output with Plots](https://discourse.julialang.org/t/plotting-makie-output-with-plots/63520)

<div class="topic-metadata">

**Author:** [@mjyshin](https://discourse.julialang.org/u/mjyshin)\
**Replies:** 4\
**Last updated:** [June 25, 2021, 4:26pm UTC](https://discourse.julialang.org/t/plotting-makie-output-with-plots/63520 "2021-06-25T16:26:30Z")

</div>

Is there any way to use Plots and Makie together to create a larger figure without having to export one as an image and load it back in? Something like: using Makie, Plots mfig = Figure() # ... create Makie figure ... …

---

## [How to plot alternating background colors with Plots.jl](https://discourse.julialang.org/t/how-to-plot-alternating-background-colors-with-plots-jl/63548)

<div class="topic-metadata">

**Author:** [@kaslusimoes](https://discourse.julialang.org/u/kaslusimoes)\
**Replies:** 1\
**Last updated:** [June 25, 2021, 1:01pm UTC](https://discourse.julialang.org/t/how-to-plot-alternating-background-colors-with-plots-jl/63548 "2021-06-25T13:01:07Z")

</div>

Hi, I want to plot a time series but visualize a few segments with different background colors. My idea of the code would be something like plot(\[1:4 5:8\], \[rand(4) rand(4)\], bg\_inside = \[:darkblue :red\]), but that sel…

---

## [Writing GPU Shaders in Julia](https://discourse.julialang.org/t/writing-gpu-shaders-in-julia/60669)

<div class="topic-metadata">

**Author:** [@jebej](https://discourse.julialang.org/u/jebej)\
**Replies:** 4\
**Last updated:** [June 25, 2021, 12:14pm UTC](https://discourse.julialang.org/t/writing-gpu-shaders-in-julia/60669 "2021-06-25T12:14:53Z")

</div>

I was going over the GLAbstraction tutorials to learn how do do simple animations on the GPU, and things work fairly well. One pain point, however, is that the shaders needs to be written in a special language, meaning …

---

## [\[ANN\] SchwarzschildGeo.jl](https://discourse.julialang.org/t/ann-schwarzschildgeo-jl/63463)

<div class="topic-metadata">

**Author:** [@inokawazu](https://discourse.julialang.org/u/inokawazu)\
**Replies:** 4\
**Last updated:** [June 25, 2021, 5:23am UTC](https://discourse.julialang.org/t/ann-schwarzschildgeo-jl/63463 "2021-06-25T05:23:07Z")

</div>

Hello everyone. I just completed a small package to render a Schwarzschild Black hole with various backgrounds. https://github.com/inokawazu/SchwarzschildGeo.jl

---

## [Diagnosing "Fixed-effects matrix is rank-deficient"](https://discourse.julialang.org/t/diagnosing-fixed-effects-matrix-is-rank-deficient/63471)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [June 24, 2021, 2:32pm UTC](https://discourse.julialang.org/t/diagnosing-fixed-effects-matrix-is-rank-deficient/63471 "2021-06-24T14:32:57Z")

</div>

I am using MixedModels fit(@formula(y ~ a + b + c + d + e), data) and it says “Warning: Fixed-effects matrix is rank-deficient”. I want to diagnose the problem. Can I find out which combinations of columns are not full r…

---

## [GC hitting hard](https://discourse.julialang.org/t/gc-hitting-hard/63102)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 9\
**Last updated:** [June 24, 2021, 7:35am UTC](https://discourse.julialang.org/t/gc-hitting-hard/63102 "2021-06-24T07:35:29Z")

</div>

Hi, I have a complicated function that if i call it twice in row with the exact same arguments, the second call is 50% slower. The function calls many kernels that execute on the gpu. I noticed that one of the sub-func…

---

## [Multivariate empirical characteristic function](https://discourse.julialang.org/t/multivariate-empirical-characteristic-function/63311)

<div class="topic-metadata">

**Author:** [@Neurosurg](https://discourse.julialang.org/u/Neurosurg)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 7:29pm UTC](https://discourse.julialang.org/t/multivariate-empirical-characteristic-function/63311 "2021-06-21T19:29:50Z")

</div>

Hi, I am a Pythonista, yet totally new to Julia though. Could someone, please, demonstrate an example on how to code an empirical characteristic function (ideally multivariate) in Julia-way? That is, let’s say, we’ve …

---

## [Size Mismatch Convolution Layer](https://discourse.julialang.org/t/size-mismatch-convolution-layer/63190)

<div class="topic-metadata">

**Author:** [@BroccoliFever](https://discourse.julialang.org/u/BroccoliFever)\
**Replies:** 3\
**Last updated:** [June 24, 2021, 1:02am UTC](https://discourse.julialang.org/t/size-mismatch-convolution-layer/63190 "2021-06-24T01:02:40Z")

</div>

I have some experience using PyTorch, so I decided to try to learn another language for Deep Learning and happened upon Julia and Flux.jl. I am trying to get started with a simple cat/dog classification problem, and I ha…

---

## [Transforming a DataFrame column by mapping with a Dict](https://discourse.julialang.org/t/transforming-a-dataframe-column-by-mapping-with-a-dict/61753)

<div class="topic-metadata">

**Author:** [@anon71627001](https://discourse.julialang.org/u/anon71627001)\
**Replies:** 5\
**Last updated:** [June 23, 2021, 11:15pm UTC](https://discourse.julialang.org/t/transforming-a-dataframe-column-by-mapping-with-a-dict/61753 "2021-06-23T23:15:08Z")

</div>

Let’s say I have a DataFrame and a Dict: df = DataFrame( a = 1:3, b = \["beetle", "fly", "spider"\]) arthropod\_dict = Dict( "beetle" =\> "insect", "fly" =\> "insect", "spider" =\> "arachnid") And I’d li…

---

## [Gurobi license issue](https://discourse.julialang.org/t/gurobi-license-issue/36547)

<div class="topic-metadata">

**Author:** [@Nicolas\_Slosse](https://discourse.julialang.org/u/Nicolas_Slosse)\
**Replies:** 13\
**Last updated:** [June 23, 2021, 9:04pm UTC](https://discourse.julialang.org/t/gurobi-license-issue/36547 "2021-06-23T21:04:38Z")

</div>

Dear forum, I have installed a fresh version of Gurobi.jl and JuMP for Julia Version 1.3.1 on a linux server. When making call to Gurobi 9.0 from Julia, I bump on the following error message : ERROR: LoadError: Invali…

---

## [IFFT function in julia](https://discourse.julialang.org/t/ifft-function-in-julia/63454)

<div class="topic-metadata">

**Author:** [@juls](https://discourse.julialang.org/u/juls)\
**Replies:** 7\
**Last updated:** [June 23, 2021, 7:56pm UTC](https://discourse.julialang.org/t/ifft-function-in-julia/63454 "2021-06-23T19:56:33Z")

</div>

I am trying to implement the below matrix computation from matlab in julia. But the ifft function gives different output than obtained in matlab a = zeros(5,10); for i = 1:5 a(i,:) = ifft((c(i,:).\*(d))); end w…

---

## [Uncertainty propagation](https://discourse.julialang.org/t/uncertainty-propagation/63024)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 2:54pm UTC](https://discourse.julialang.org/t/uncertainty-propagation/63024 "2021-06-23T14:54:58Z")

</div>

Hey, Consider a random dataset: using Distributions using Random using Statistics using StatsBase X = rand(LogNormal(0,1),10000) Consider a first function that ‘summarises’ the dataset into a simple vector of k statis…

---

## [Gradient and directional second derivative with ForwardDiff](https://discourse.julialang.org/t/gradient-and-directional-second-derivative-with-forwarddiff/63429)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 1:04pm UTC](https://discourse.julialang.org/t/gradient-and-directional-second-derivative-with-forwarddiff/63429 "2021-06-23T13:04:39Z")

</div>

So I have a function f (minus the log-likelihood ℓ retrieved from Turing in my case) and I need two things: 1.) gradient (∇f)(x) in some point x 2.) and how it changes in a direction θ: ∂ₜ(t -\> ∇f(x + t\*θ)) in t = 0 …

---

## [Solving A X = B equation with ITensor](https://discourse.julialang.org/t/solving-a-x-b-equation-with-itensor/60332)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 12:30pm UTC](https://discourse.julialang.org/t/solving-a-x-b-equation-with-itensor/60332 "2021-06-23T12:30:44Z")

</div>

I am wondering of one can use ITensors to solve linear equations in the form of A X = B where all of the components are tensor networks or high order tensors in some compressed format? Or if not does anybody know a pac…

---

## [Best practices for Speech-to-Text conversion?](https://discourse.julialang.org/t/best-practices-for-speech-to-text-conversion/37543)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 5\
**Last updated:** [June 23, 2021, 6:29am UTC](https://discourse.julialang.org/t/best-practices-for-speech-to-text-conversion/37543 "2021-06-23T06:29:26Z")

</div>

I’m working on a project where I plan to convert speech into text to perform very basic NLP tasks. At first, I hoped to find a package in Julia for Speech-to-Text conversion myself, but that didn’t turn up anything. Ne…

---

## [Bonmin + HSL?](https://discourse.julialang.org/t/bonmin-hsl/63338)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 8\
**Last updated:** [June 22, 2021, 11:20pm UTC](https://discourse.julialang.org/t/bonmin-hsl/63338 "2021-06-22T23:20:21Z")

</div>

Hi everyone, I’m trying to use the Bonmin solver with IPOPT+HSL. Can you take a look at the following example and let me know if there is anything that should be fixed? It works fine if I delete the linear\_solver option …

---

## [Pca question](https://discourse.julialang.org/t/pca-question/63337)

<div class="topic-metadata">

**Author:** [@Kevin\_25](https://discourse.julialang.org/u/Kevin_25)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 9:32pm UTC](https://discourse.julialang.org/t/pca-question/63337 "2021-06-22T21:32:19Z")

</div>

I was wondering if there is a command or a way to produce the result of the “explained\_variance\_ratio\_” command from scikitlearn in order to plot it. Thanks.

---

## [The solution of Semidefinite Programming (SDP) violates the constraints](https://discourse.julialang.org/t/the-solution-of-semidefinite-programming-sdp-violates-the-constraints/63370)

<div class="topic-metadata">

**Author:** [@Sawyer\_Zhou](https://discourse.julialang.org/u/Sawyer_Zhou)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 7:17pm UTC](https://discourse.julialang.org/t/the-solution-of-semidefinite-programming-sdp-violates-the-constraints/63370 "2021-06-22T19:17:55Z")

</div>

I try to solve a SDP, the result shows that the solution is feasible and optimal, but when I substitute the obtained solution back into the constraints, I find it violates many constraints. using JuMP, MosekTools, Linea…

---

## [No attribute for title position - why always at top of figure?](https://discourse.julialang.org/t/no-attribute-for-title-position-why-always-at-top-of-figure/63360)

<div class="topic-metadata">

**Author:** [@walra356](https://discourse.julialang.org/u/walra356)\
**Replies:** 8\
**Last updated:** [June 22, 2021, 6:48pm UTC](https://discourse.julialang.org/t/no-attribute-for-title-position-why-always-at-top-of-figure/63360 "2021-06-22T18:48:52Z")

</div>

In the example below I would like the title to the left of fig\[2,1\]. Is there a simple way to do this in the Makie Figure format? New Axis with textbox? Rotation did not work for me.

---

## [Chain rule in Symbolics.jl](https://discourse.julialang.org/t/chain-rule-in-symbolics-jl/63146)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 5\
**Last updated:** [June 22, 2021, 5:05pm UTC](https://discourse.julialang.org/t/chain-rule-in-symbolics-jl/63146 "2021-06-22T17:05:29Z")

</div>

Probably I’m blind, but is there a way to get the transformation \\frac{d}{d t} x(y(t)) = \\frac{\\partial x}{\\partial y}(y(t)) \\frac{\\partial y}{\\partial t}(t) where x and y are symbolic. (I want do do a symbolic transf…

---

## [How to internationnalize (i18n) a Genie app?](https://discourse.julialang.org/t/how-to-internationnalize-i18n-a-genie-app/63378)

<div class="topic-metadata">

**Author:** [@samusz](https://discourse.julialang.org/u/samusz)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 3:03pm UTC](https://discourse.julialang.org/t/how-to-internationnalize-i18n-a-genie-app/63378 "2021-06-22T15:03:12Z")

</div>

I’ve looked for an internnationnalization (i18n) functionality in Julia to use it with a small Genie web app and only found this \[base/I18n module \] (julia/i18n.jl at 96b28d64bdd3ae037378028d4cd60e5a4c397256 · JuliaLang…

---

## [DSGE estimation/inference game?](https://discourse.julialang.org/t/dsge-estimation-inference-game/63364)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 2:14pm UTC](https://discourse.julialang.org/t/dsge-estimation-inference-game/63364 "2021-06-22T14:14:43Z")

</div>

I’ve been working on a method for estimating a DSGE model and doing inference on parameters, and it seems to work pretty well, for a fairly simple model (https://github.com/mcreel/SimulatedNeuralMoments.jl/tree/main/exam…

---

## [Problem with ODELocalSensitivityProblem](https://discourse.julialang.org/t/problem-with-odelocalsensitivityproblem/63320)

<div class="topic-metadata">

**Author:** [@ap2013](https://discourse.julialang.org/u/ap2013)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 10:14am UTC](https://discourse.julialang.org/t/problem-with-odelocalsensitivityproblem/63320 "2021-06-22T10:14:55Z")

</div>

I am looking to use ODELocalSensitivityProblem to get the sensitivities of an ODE problem. I define two different problems from the same system (defined with ModellingToolkit) as follows probSens = ODELocalSensitivityP…

---

## [Factorize changes the float type from Float32 to Float64](https://discourse.julialang.org/t/factorize-changes-the-float-type-from-float32-to-float64/63308)

<div class="topic-metadata">

**Author:** [@Mohamed\_AbdElrahman](https://discourse.julialang.org/u/Mohamed_AbdElrahman)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 10:10am UTC](https://discourse.julialang.org/t/factorize-changes-the-float-type-from-float32-to-float64/63308 "2021-06-22T10:10:13Z")

</div>

I’m solving a sparse linear system with Float32 precision for speed. The problem is the function factorize when taken input a ComplexF32 sparse matrix, the lu factors are ComplexF64. julia\> factorize(sprand(ComplexF3…

---

## [Getting different output for fft function in julia and matlab](https://discourse.julialang.org/t/getting-different-output-for-fft-function-in-julia-and-matlab/63349)

<div class="topic-metadata">

**Author:** [@juls](https://discourse.julialang.org/u/juls)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 9:42am UTC](https://discourse.julialang.org/t/getting-different-output-for-fft-function-in-julia-and-matlab/63349 "2021-06-22T09:42:29Z")

</div>

In JULIA, 2×5 Array{Float64,2}: 0.801514 1.21987 1.1503 1.18761 1.2485 0.807469 1.22325 1.14981 1.1877 1.24861 when fft function from FFTW.jl on the above array gives output: 2×5 Array{Complex{Float64},2}: …

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=355)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=357)
