# Latest

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

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

**Page:** 1189

---

## [Relaxation of MIP in order to use getdual](https://discourse.julialang.org/t/relaxation-of-mip-in-order-to-use-getdual/72529)

<div class="topic-metadata">

**Author:** [@max](https://discourse.julialang.org/u/max)\
**Replies:** 6\
**Last updated:** [December 4, 2021, 9:14am UTC](https://discourse.julialang.org/t/relaxation-of-mip-in-order-to-use-getdual/72529 "2021-12-04T09:14:03Z")

</div>

Hey everyone, I have a modular optimisation problem that can be LP or MIP depending on the setting. To get the shadow price I query via JuMP.has\_duals(model) whether I can receive the shadow price with the corresponding…

---

## [GPU Compilation Error: KernelError: kernel returns a value of type \`Union{}\`](https://discourse.julialang.org/t/gpu-compilation-error-kernelerror-kernel-returns-a-value-of-type-union/72539)

<div class="topic-metadata">

**Author:** [@tgautam03](https://discourse.julialang.org/u/tgautam03)\
**Replies:** 3\
**Last updated:** [December 4, 2021, 8:33am UTC](https://discourse.julialang.org/t/gpu-compilation-error-kernelerror-kernel-returns-a-value-of-type-union/72539 "2021-12-04T08:33:50Z")

</div>

Hi, To familiarize myself with the syntax of CUDA.jl, I’m implement basic programs from scratch. I wrote a version of Matrix Multiplication that uses shared memory but it’s not compiling. function MatMulGPU!(A\_d::Abstr…

---

## [Multinomial Logistic Regression Packages | Tips](https://discourse.julialang.org/t/multinomial-logistic-regression-packages-tips/72562)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 8:18am UTC](https://discourse.julialang.org/t/multinomial-logistic-regression-packages-tips/72562 "2021-12-04T08:18:54Z")

</div>

Good Day Julians: I have looked several places including ATI (Alan Turing Institute) to find a package since 2019 that help me perform a multinomial logistic regression on the following DF: Scale = \["A", "B", "C", "E…

---

## [Moving a figure within given constraint](https://discourse.julialang.org/t/moving-a-figure-within-given-constraint/72558)

<div class="topic-metadata">

**Author:** [@mmkim1210](https://discourse.julialang.org/u/mmkim1210)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 6:49am UTC](https://discourse.julialang.org/t/moving-a-figure-within-given-constraint/72558 "2021-12-04T06:49:53Z")

</div>

In the tutorial example (https://makie.juliaplots.org/stable/examples/layoutables/gridlayout/index.html#aspect), is there a way to move f\[1, 2\] to the left so that it aligns on the left with f\[2, 2\] rather than staying i…

---

## [Docs don't show up for \`names(DataFrames)\`](https://discourse.julialang.org/t/docs-dont-show-up-for-names-dataframes/72189)

<div class="topic-metadata">

**Author:** [@qsong](https://discourse.julialang.org/u/qsong)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 3:08am UTC](https://discourse.julialang.org/t/docs-dont-show-up-for-names-dataframes/72189 "2021-12-04T03:08:18Z")

</div>

I got a problem with the auto-complete menu (and the documentation pane) as below. It seems julia-vscode don’t show the docs for some symbols/functions that can be obtained in the repl help (in this case help?\> left…

---

## [WGLMakie messages on hover](https://discourse.julialang.org/t/wglmakie-messages-on-hover/72561)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [December 4, 2021, 4:05am UTC](https://discourse.julialang.org/t/wglmakie-messages-on-hover/72561 "2021-12-04T04:05:51Z")

</div>

In VSCode, when I hover pointer over a WGLMakie figure, I get lots of messages like this. They go fast and continuously until a few seconds after the pointer leaves the figure area. I don’t like it because it scrolls awa…

---

## [Struct update syntax](https://discourse.julialang.org/t/struct-update-syntax/72557)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 2\
**Last updated:** [December 4, 2021, 1:16am UTC](https://discourse.julialang.org/t/struct-update-syntax/72557 "2021-12-04T01:16:25Z")

</div>

Rust has a struct update syntax that allows you to create a new struct object from another one by changing only some fields. That looks very convenient and would make me want to use more immutable types. Has there been …

---

## [Count occurrences of columns in a 2d array (using countmap)](https://discourse.julialang.org/t/count-occurrences-of-columns-in-a-2d-array-using-countmap/44023)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 13\
**Last updated:** [December 3, 2021, 11:37pm UTC](https://discourse.julialang.org/t/count-occurrences-of-columns-in-a-2d-array-using-countmap/44023 "2021-12-03T23:37:29Z")

</div>

I have a 2d BitArray and I want to count the number of distinct columns in that array. And I want to do it fast. I guess that countmap (of StatsBase) is the most efficient way for such operations. However it only works…

---

## [I need help with my Macros (newbie question)](https://discourse.julialang.org/t/i-need-help-with-my-macros-newbie-question/72549)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 2\
**Last updated:** [December 3, 2021, 10:40pm UTC](https://discourse.julialang.org/t/i-need-help-with-my-macros-newbie-question/72549 "2021-12-03T22:40:52Z")

</div>

I’m trying to enter the Metaprogramming world, and I decided to convert some functions into a macro. I have one function get\_return, that depending on one parameter , call two other functions. One that returns a sum, an…

---

## [Juliaup and 1.7](https://discourse.julialang.org/t/juliaup-and-1-7/72374)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 13\
**Last updated:** [December 3, 2021, 8:13pm UTC](https://discourse.julialang.org/t/juliaup-and-1-7/72374 "2021-12-03T20:13:52Z")

</div>

So 1.7 is released, yay! I went to update my Julia version, only to find: C:\\Users\\densb\>juliaup update release C:\\Users\\densb\>juliaup st Installed Julia channels (default marked with \*): lts \* release C:\\User…

---

## [Julia is missing the deactivate command](https://discourse.julialang.org/t/julia-is-missing-the-deactivate-command/22185)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 32\
**Last updated:** [December 3, 2021, 7:50pm UTC](https://discourse.julialang.org/t/julia-is-missing-the-deactivate-command/22185 "2021-12-03T19:50:09Z")

</div>

When using julia on my enviroment /home/johnsmith/julia If I want to start a new project say ProjectA, I would create the directory /home/johnsmith/julia/project/projectA then active it using the command julia\>\] (v1…

---

## [Stop the running code in vscode](https://discourse.julialang.org/t/stop-the-running-code-in-vscode/72458)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 0\
**Last updated:** [December 2, 2021, 3:11pm UTC](https://discourse.julialang.org/t/stop-the-running-code-in-vscode/72458 "2021-12-02T15:11:30Z")

</div>

How can I stop a running code in vscode? Alt+K didn’t work

---

## [Can't add Distributions/Rmath packages in Julia 1.7](https://discourse.julialang.org/t/cant-add-distributions-rmath-packages-in-julia-1-7/72453)

<div class="topic-metadata">

**Author:** [@way2toronto](https://discourse.julialang.org/u/way2toronto)\
**Replies:** 8\
**Last updated:** [December 3, 2021, 7:08pm UTC](https://discourse.julialang.org/t/cant-add-distributions-rmath-packages-in-julia-1-7/72453 "2021-12-03T19:08:50Z")

</div>

Hi. I have just made a fresh install of Julia 1.7 and trying to install packages to run the existing code. Most of the required packages have been installed, but I ran into a problem with Distributions, which is dependen…

---

## [How could communication with the PortAudio callback work? Maybe 1.7's atomics?](https://discourse.julialang.org/t/how-could-communication-with-the-portaudio-callback-work-maybe-1-7s-atomics/72537)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 6:58pm UTC](https://discourse.julialang.org/t/how-could-communication-with-the-portaudio-callback-work-maybe-1-7s-atomics/72537 "2021-12-03T18:58:59Z")

</div>

I would like to play around with PortAudio.jl. My goal is to create some simple functions like sine, saw, or triangle wave generators, maybe some basic filters or delays, and then adjust parameters using a simple GUI or …

---

## [Read+write on serial port mixes input and output](https://discourse.julialang.org/t/read-write-on-serial-port-mixes-input-and-output/55486)

<div class="topic-metadata">

**Author:** [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Replies:** 7\
**Last updated:** [December 3, 2021, 6:35pm UTC](https://discourse.julialang.org/t/read-write-on-serial-port-mixes-input-and-output/55486 "2021-12-03T18:35:46Z")

</div>

Hi, I apologize for not posting a working example, but I haven’t figured out how to make it. The problem is, I have an fpga hooked up to the usb on my Ubuntu-box. The ftdi-driver makes it look like an uart, a serial po…

---

## [Juliacall cant use a package that builds fine outside juliacall \<random file path ending in "artifacts"\>/libgobject-2.0.so: undefined symbol: g\_uri\_ref](https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 10\
**Last updated:** [December 3, 2021, 6:09pm UTC](https://discourse.julialang.org/t/juliacall-cant-use-a-package-that-builds-fine-outside-juliacall-random-file-path-ending-in-artifacts-libgobject-2-0-so-undefined-symbol-g-uri-ref/68289 "2021-12-03T18:09:22Z")

</div>

This code has been working without issue on hpc (also using JuliaCall) but when I tried to call it locally I get this error (also julia 1.6.0 to match the cluster environment, even though I have 1.6.1) this : Note that …

---

## [Developed Package Dependencies](https://discourse.julialang.org/t/developed-package-dependencies/72528)

<div class="topic-metadata">

**Author:** [@dkzwart](https://discourse.julialang.org/u/dkzwart)\
**Replies:** 1\
**Last updated:** [December 3, 2021, 4:21pm UTC](https://discourse.julialang.org/t/developed-package-dependencies/72528 "2021-12-03T16:21:10Z")

</div>

I have a warning that a dev package is not in the dependencies of another dev package that I am using. In order to use this dev package, it loads it from the dependencies of another package. Any idea how to get rid of th…

---

## [How to host html files generated by weave.jl on github](https://discourse.julialang.org/t/how-to-host-html-files-generated-by-weave-jl-on-github/72495)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 3:30pm UTC](https://discourse.julialang.org/t/how-to-host-html-files-generated-by-weave-jl-on-github/72495 "2021-12-03T15:30:44Z")

</div>

I have generated some HTML tutorials docs using weave.jl. I wish to host this HTML link for others to see. For now, 1)I have created a separate github page repo…,… ending with github.io 2) added my html file in it. Fo…

---

## [Draw two distinct random integers from \`1:n\`](https://discourse.julialang.org/t/draw-two-distinct-random-integers-from-1-n/72289)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 24\
**Last updated:** [December 3, 2021, 2:09pm UTC](https://discourse.julialang.org/t/draw-two-distinct-random-integers-from-1-n/72289 "2021-12-03T14:09:47Z")

</div>

I’m looking for a fast and elegant way to repeatedly draw two distinct random integers from the range 1:n. A naive baseline: julia\> function draw(n, iter) …

---

## [Online Meetup - Reactive Dashboards with Stipple.jl](https://discourse.julialang.org/t/online-meetup-reactive-dashboards-with-stipple-jl/59865)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 6\
**Last updated:** [December 3, 2021, 2:01pm UTC](https://discourse.julialang.org/t/online-meetup-reactive-dashboards-with-stipple-jl/59865 "2021-12-03T14:01:33Z")

</div>

Hi all, I am writing you as the organizer of the Julia User Group Munich there is going to an online meetup on 03.05. Monday 18:30 CEST showing you how to build interactive dashboards and other data visualization applic…

---

## [Documentation of internals](https://discourse.julialang.org/t/documentation-of-internals/72523)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 1:37pm UTC](https://discourse.julialang.org/t/documentation-of-internals/72523 "2021-12-03T13:37:47Z")

</div>

Having the ? keyword to access documentation is very practical, but that exposes the documentation to the user, thus it may be risky for internal functions not having a stable interface. Because of that, I was modifying …

---

## [Silent modification of random variable under implicit type conversion](https://discourse.julialang.org/t/silent-modification-of-random-variable-under-implicit-type-conversion/72461)

<div class="topic-metadata">

**Author:** [@dcasbol](https://discourse.julialang.org/u/dcasbol)\
**Replies:** 7\
**Last updated:** [December 3, 2021, 1:24pm UTC](https://discourse.julialang.org/t/silent-modification-of-random-variable-under-implicit-type-conversion/72461 "2021-12-03T13:24:20Z")

</div>

I had two versions of the same operation in a function. Version 1 works just fine: output::Vector{UInt8} action = length(output) \> 0 && output\[1\] \> 0 ? 2 : 1 But this other version silently modifies a value which is pa…

---

## [Wierd behaviour of parametric type](https://discourse.julialang.org/t/wierd-behaviour-of-parametric-type/72520)

<div class="topic-metadata">

**Author:** [@Ruizhi\_Yang](https://discourse.julialang.org/u/Ruizhi_Yang)\
**Replies:** 2\
**Last updated:** [December 3, 2021, 1:01pm UTC](https://discourse.julialang.org/t/wierd-behaviour-of-parametric-type/72520 "2021-12-03T13:01:02Z")

</div>

Hello, I know this is kind of strange usage of parametric types, but I was wondering what’s going on. Sorry for the imprecise title, since I’m not sure how to describe this question. Without parametric type, if I defin…

---

## [Assign name to operator with ternary operator](https://discourse.julialang.org/t/assign-name-to-operator-with-ternary-operator/72518)

<div class="topic-metadata">

**Author:** [@cbrnr](https://discourse.julialang.org/u/cbrnr)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 12:45pm UTC](https://discourse.julialang.org/t/assign-name-to-operator-with-ternary-operator/72518 "2021-12-03T12:45:44Z")

</div>

I want to use different comparisons (either \>= or \<) based on some condition. I thought I’d just define a name f pointing to the corresponding operation, which works with the following code: if true f = \>= else …

---

## [How to find generators of right kernel of a matrix](https://discourse.julialang.org/t/how-to-find-generators-of-right-kernel-of-a-matrix/71874)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 12:36pm UTC](https://discourse.julialang.org/t/how-to-find-generators-of-right-kernel-of-a-matrix/71874 "2021-12-03T12:36:52Z")

</div>

(Matrix R^m x d s = subset(1:m,d)) and correspend this math notation. Is there any funtions for these

---

## [Precompilation & global variables](https://discourse.julialang.org/t/precompilation-global-variables/72515)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 1\
**Last updated:** [December 3, 2021, 12:32pm UTC](https://discourse.julialang.org/t/precompilation-global-variables/72515 "2021-12-03T12:32:43Z")

</div>

If I understand it correctly, when precompiling package A, if a method in A is invoked and modifies a global variable in B, those changes are lost forever, but if the global variable is in A, then the changes are saved?

---

## [Normalization and Linear Model NaN error?](https://discourse.julialang.org/t/normalization-and-linear-model-nan-error/72150)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 12:11pm UTC](https://discourse.julialang.org/t/normalization-and-linear-model-nan-error/72150 "2021-12-03T12:11:52Z")

</div>

Good Day Julians: I am attempting to pass an interpolated (imputed) and normalized DF into a GLM.jl function (lm(@formula …). Under what circumstances would the Stats.Models TableRegression… return NaN such as: A…

---

## [Web development with Julia - quick survey](https://discourse.julialang.org/t/web-development-with-julia-quick-survey/71229)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 12\
**Last updated:** [December 3, 2021, 11:42am UTC](https://discourse.julialang.org/t/web-development-with-julia-quick-survey/71229 "2021-12-03T11:42:03Z")

</div>

Hi everyone! We have released Genie v4 just a couple of weeks ago and we’re already looking forward to bringing more cool features. But with web development evolving so fast and with so many use cases and applications, …

---

## [Point location library](https://discourse.julialang.org/t/point-location-library/55606)

<div class="topic-metadata">

**Author:** [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Replies:** 2\
**Last updated:** [December 3, 2021, 11:31am UTC](https://discourse.julialang.org/t/point-location-library/55606 "2021-12-03T11:31:28Z")

</div>

Does anyone know, is there any Julia library for the Point Location problem? My search gave nothing, only this GEOS functions, but it looks like they are not exposed in LibGEOS.jl package. If there is no Julia package,…

---

## [What is the way to add audio tracks to the Stipple applications?](https://discourse.julialang.org/t/what-is-the-way-to-add-audio-tracks-to-the-stipple-applications/72445)

<div class="topic-metadata">

**Author:** [@albertpod](https://discourse.julialang.org/u/albertpod)\
**Replies:** 1\
**Last updated:** [December 3, 2021, 9:53am UTC](https://discourse.julialang.org/t/what-is-the-way-to-add-audio-tracks-to-the-stipple-applications/72445 "2021-12-03T09:53:56Z")

</div>

I am building an interactive application for audio processing in Stipple.jl. I would like to add some audio tracks to the dashboard. Specifically, I wonder what’s the right way to handle audio files in the browser with…

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

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