# Latest

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

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

**Page:** 1495

---

## [VS Code Julia Language Server Indexing](https://discourse.julialang.org/t/vs-code-julia-language-server-indexing/41576)

<div class="topic-metadata">

**Author:** [@Donut\_Meepo](https://discourse.julialang.org/u/Donut_Meepo)\
**Replies:** 34\
**Last updated:** [February 11, 2021, 2:20pm UTC](https://discourse.julialang.org/t/vs-code-julia-language-server-indexing/41576 "2021-02-11T14:20:03Z")

</div>

Hi, I had installed the Julia extension awhile ago. But every time I used it, it stalls at indexing and never ends. The indexing consumes CPU sources. Julia extension 0.15.40 on Ubuntu 16.04 Thank you for your help…

---

## [HDF5.jl works great](https://discourse.julialang.org/t/hdf5-jl-works-great/55059)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 0\
**Last updated:** [February 11, 2021, 2:18pm UTC](https://discourse.julialang.org/t/hdf5-jl-works-great/55059 "2021-02-11T14:18:31Z")

</div>

HDF5.jl is good stuff. Just want to thank the maintainers. Made my life better, interops with Mathematica really well (as well as anything interact with Mathematica…). Best way (for me) to pass data around in a complicat…

---

## [HTTP request body -\> PostgreSQL](https://discourse.julialang.org/t/http-request-body-postgresql/54920)

<div class="topic-metadata">

**Author:** [@Michal](https://discourse.julialang.org/u/Michal)\
**Replies:** 8\
**Last updated:** [February 11, 2021, 1:52pm UTC](https://discourse.julialang.org/t/http-request-body-postgresql/54920 "2021-02-11T13:52:13Z")

</div>

CSV file is being uploaded (multipart/form-data) to my HTTP service. My task is to read content of that file and store it in PostgreSQL table. HTTP request body contains raw data (content of CSV file/files). How to parse…

---

## [Is this the best way to convert a NUL terminated C-string into a Julia \`String\`?](https://discourse.julialang.org/t/is-this-the-best-way-to-convert-a-nul-terminated-c-string-into-a-julia-string/55037)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 2:25am UTC](https://discourse.julialang.org/t/is-this-the-best-way-to-convert-a-nul-terminated-c-string-into-a-julia-string/55037 "2021-02-11T02:25:19Z")

</div>

Is this the best way to convert a NUL terminated C-string into a Julia String? julia\> typeof(text) Array{UInt8,1} julia\> unsafe\_string(pointer(text)) "C14120-20P" Note that the original poster on Slack cannot see your…

---

## [How to Best Store and Access Credentials in Julia?](https://discourse.julialang.org/t/how-to-best-store-and-access-credentials-in-julia/54997)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 13\
**Last updated:** [February 11, 2021, 12:30pm UTC](https://discourse.julialang.org/t/how-to-best-store-and-access-credentials-in-julia/54997 "2021-02-11T12:30:09Z")

</div>

Hi all, I was recently stumped by something: Suppose I have some credentials I need to store to access a SQL DB. How should I best store these credentials for Julia to easily access? My current pattern is to use a com…

---

## [Pkg: dependency 'features'](https://discourse.julialang.org/t/pkg-dependency-features/55026)

<div class="topic-metadata">

**Author:** [@JuergenD](https://discourse.julialang.org/u/JuergenD)\
**Replies:** 6\
**Last updated:** [February 11, 2021, 11:54am UTC](https://discourse.julialang.org/t/pkg-dependency-features/55026 "2021-02-11T11:54:04Z")

</div>

Hi, we’ve developed a library-type package that is easily extendable by users of this library with extensions. We’d like to provide users several standard extensions, but each of these extensions comes with a cost (unco…

---

## [IPNewton and ForwardDiff with preallocated Arrays](https://discourse.julialang.org/t/ipnewton-and-forwarddiff-with-preallocated-arrays/55013)

<div class="topic-metadata">

**Author:** [@Sylvain](https://discourse.julialang.org/u/Sylvain)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 11:36am UTC](https://discourse.julialang.org/t/ipnewton-and-forwarddiff-with-preallocated-arrays/55013 "2021-02-11T11:36:39Z")

</div>

Hi ! I am new here so please let me know if I post at the right place. I could not find that issue on other threads. I need to solve a constrained optimization problem, and I’d like to use Optim.optimize with the IPNew…

---

## [How do I load an image from an array](https://discourse.julialang.org/t/how-do-i-load-an-image-from-an-array/24382)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 6\
**Last updated:** [February 11, 2021, 11:27am UTC](https://discourse.julialang.org/t/how-do-i-load-an-image-from-an-array/24382 "2021-02-11T11:27:12Z")

</div>

I have a JPEG encoded image that I loaded from the web using HTTP.get. How do I decode it using FileIO.load? I would like to know both how to deal with data in an array instead of in the file system, and whether there’s…

---

## [What's the right way to unwrap a \`TaskFailedException\`?](https://discourse.julialang.org/t/whats-the-right-way-to-unwrap-a-taskfailedexception/55052)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 7\
**Last updated:** [February 11, 2021, 10:42am UTC](https://discourse.julialang.org/t/whats-the-right-way-to-unwrap-a-taskfailedexception/55052 "2021-02-11T10:42:25Z")

</div>

What’s the right way to unwrap a TaskFailedException? err.task.exception.task.exception gives me the original exception, but that seems very brittle. Note that the original poster on Slack cannot see your response here …

---

## [I can't get Julia to work in VS Code, because the Path JSON is a mess](https://discourse.julialang.org/t/i-cant-get-julia-to-work-in-vs-code-because-the-path-json-is-a-mess/54714)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 10:13am UTC](https://discourse.julialang.org/t/i-cant-get-julia-to-work-in-vs-code-because-the-path-json-is-a-mess/54714 "2021-02-11T10:13:39Z")

</div>

I was trying to change my JSON to create a path to PyDev, and now none of my extensions work. It’s not recognizing an array for some reason (I’m not familiar with JSON or JavaScript in general) } "terminal.integrat…

---

## [Abstract-type field in struct for solving an ODE problem](https://discourse.julialang.org/t/abstract-type-field-in-struct-for-solving-an-ode-problem/55050)

<div class="topic-metadata">

**Author:** [@hopeso](https://discourse.julialang.org/u/hopeso)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 10:06am UTC](https://discourse.julialang.org/t/abstract-type-field-in-struct-for-solving-an-ode-problem/55050 "2021-02-11T10:06:47Z")

</div>

Hi, I’m learning Julia and particularly interested in solving differential equations using the DifferentialEquations package. I’m having a trouble with understanding how to make a good type-stable struct that is integrat…

---

## [Anyone know how to do broadcasting on a function with a non-iterable argument? i.e](https://discourse.julialang.org/t/anyone-know-how-to-do-broadcasting-on-a-function-with-a-non-iterable-argument-i-e/55051)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 9:49am UTC](https://discourse.julialang.org/t/anyone-know-how-to-do-broadcasting-on-a-function-with-a-non-iterable-argument-i-e/55051 "2021-02-11T09:49:19Z")

</div>

anyone know how to do broadcasting on a function with a non-iterable argument? i.e. f(x,p) = x\*p.val where p is a struct with a single value val . Thus, the desired result would be broadcasting over x and multiplying eve…

---

## [Invalidation checker for packages \[code snippet\]](https://discourse.julialang.org/t/invalidation-checker-for-packages-code-snippet/54976)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 10:02am UTC](https://discourse.julialang.org/t/invalidation-checker-for-packages-code-snippet/54976 "2021-02-10T10:02:29Z")

</div>

Hey, I just wanted to share this code snippet which can be helpful to find where the imported invalidation comes from. using SnoopCompileCore using SnoopCompile using SnoopCompile: countchildren using Pkg using Printf …

---

## [How to allocate an array according to the type of a computation to follow?](https://discourse.julialang.org/t/how-to-allocate-an-array-according-to-the-type-of-a-computation-to-follow/55040)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 3:07am UTC](https://discourse.julialang.org/t/how-to-allocate-an-array-according-to-the-type-of-a-computation-to-follow/55040 "2021-02-11T03:07:27Z")

</div>

I tried the following example function test(a,b, obs) T = typeof(a \* b) Z = Array{T}(obs) for i in 1:obs Z\[i\] = a \* b / i end return Z end test(5.0,2.0, 3) test(Dual(5.0, 1,0), Dual(2.0, 0,1)…

---

## [How to open Julia Pro in Ubuntu?](https://discourse.julialang.org/t/how-to-open-julia-pro-in-ubuntu/54893)

<div class="topic-metadata">

**Author:** [@WouterJRV](https://discourse.julialang.org/u/WouterJRV)\
**Replies:** 4\
**Last updated:** [February 11, 2021, 7:35am UTC](https://discourse.julialang.org/t/how-to-open-julia-pro-in-ubuntu/54893 "2021-02-11T07:35:49Z")

</div>

Dear all, I recently started working with Julia from an Ubuntu 20.04 pc (I’m also rather new to linux). I have installed Juliapro, and like working with the Juno GUI. However, it seems that I can only open it by manual…

---

## [Set\_indexing\_prop!() in MetaGraph gives an error](https://discourse.julialang.org/t/set-indexing-prop-in-metagraph-gives-an-error/54912)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 6:45am UTC](https://discourse.julialang.org/t/set-indexing-prop-in-metagraph-gives-an-error/54912 "2021-02-11T06:45:06Z")

</div>

Hi, I am testing the ability to use MetaGraph to filter through a graph. context: node 1 is the table which I want to metaindex with the type : “Source”. This seems to work fine until I want to set the index (linenum…

---

## [Randomly pasted text in Juno](https://discourse.julialang.org/t/randomly-pasted-text-in-juno/55045)

<div class="topic-metadata">

**Author:** [@WouterJRV](https://discourse.julialang.org/u/WouterJRV)\
**Replies:** 0\
**Last updated:** [February 11, 2021, 6:51am UTC](https://discourse.julialang.org/t/randomly-pasted-text-in-juno/55045 "2021-02-11T06:51:07Z")

</div>

Regularly, when using Juno, I get weird errors that result from random pieces of text pasted in the middle of my code files. Not sure if this is particularly a Juno/Julia thing of a more general Ubuntu one, but it seems…

---

## [Flux: get intermediate results per epoch](https://discourse.julialang.org/t/flux-get-intermediate-results-per-epoch/55011)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 4\
**Last updated:** [February 11, 2021, 6:49am UTC](https://discourse.julialang.org/t/flux-get-intermediate-results-per-epoch/55011 "2021-02-11T06:49:13Z")

</div>

Hello, how do you access (or store) intermediate results such as weights per epoch in Flux? I have today started using it and was really surprised by how easy it is to implement thing. One thing I did not find and could…

---

## [Julia 1.3 @printf result flashes a display in console. How do I make display in console?](https://discourse.julialang.org/t/julia-1-3-printf-result-flashes-a-display-in-console-how-do-i-make-display-in-console/55039)

<div class="topic-metadata">

**Author:** [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Replies:** 0\
**Last updated:** [February 11, 2021, 2:40am UTC](https://discourse.julialang.org/t/julia-1-3-printf-result-flashes-a-display-in-console-how-do-i-make-display-in-console/55039 "2021-02-11T02:40:45Z")

</div>

Greetings, The code below is compiling in Repl.it , Julia 1.3. I am teaching myself and my high school students how to use the printf macro. When I compile, the display flashes on my Windows computer. Any suggestions t…

---

## [Looking to learn my first Lisp purely for experiencing the syntax](https://discourse.julialang.org/t/looking-to-learn-my-first-lisp-purely-for-experiencing-the-syntax/55017)

<div class="topic-metadata">

**Author:** [@Reckoner](https://discourse.julialang.org/u/Reckoner)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 2:04am UTC](https://discourse.julialang.org/t/looking-to-learn-my-first-lisp-purely-for-experiencing-the-syntax/55017 "2021-02-11T02:04:27Z")

</div>

Hi; My entire history with programming languages has been with ALGOL-likes and, to a lesser extent, relatively modern FORTRAN. Julia is my favorite programming language, and I don’t think I’m looking for a replacement …

---

## [What is the relation between MLJ and Flux?](https://discourse.julialang.org/t/what-is-the-relation-between-mlj-and-flux/32680)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 17\
**Last updated:** [February 10, 2021, 11:57pm UTC](https://discourse.julialang.org/t/what-is-the-relation-between-mlj-and-flux/32680 "2021-02-10T23:57:00Z")

</div>

According to the sites: MLJ is an open-source machine learning toolbox written in pure Julia. It provides a uniform interface for interacting with supervised and unsupervised learning models currently scattered in diff…

---

## [Can I run an external audio player program from Julia? Or simply playback a sterio .wav file?](https://discourse.julialang.org/t/can-i-run-an-external-audio-player-program-from-julia-or-simply-playback-a-sterio-wav-file/54964)

<div class="topic-metadata">

**Author:** [@bionicinnovations1](https://discourse.julialang.org/u/bionicinnovations1)\
**Replies:** 5\
**Last updated:** [February 10, 2021, 10:42pm UTC](https://discourse.julialang.org/t/can-i-run-an-external-audio-player-program-from-julia-or-simply-playback-a-sterio-wav-file/54964 "2021-02-10T22:42:23Z")

</div>

I am trying to play a wav file (in stereo) with my sound card (Windows 10), and haven’t been able to work it so far. WAV.jl doesn’t support playback in Windows, and I can’t seem to work out how to get it working in Port…

---

## [I can use \`getfield(Module, :functionname)\` to grab a variable in \`Module\`, e.g. \`](https://discourse.julialang.org/t/i-can-use-getfield-module-functionname-to-grab-a-variable-in-module-e-g/55029)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 10:29pm UTC](https://discourse.julialang.org/t/i-can-use-getfield-module-functionname-to-grab-a-variable-in-module-e-g/55029 "2021-02-10T22:29:14Z")

</div>

I can use getfield(Module, :functionname) to grab a variable in Module, e.g. Main: but can I do the same for a local variable in a function? Note that the original poster on Slack cannot see your response here on Discou…

---

## [Help with package documentation](https://discourse.julialang.org/t/help-with-package-documentation/54423)

<div class="topic-metadata">

**Author:** [@apoor](https://discourse.julialang.org/u/apoor)\
**Replies:** 9\
**Last updated:** [February 10, 2021, 9:41pm UTC](https://discourse.julialang.org/t/help-with-package-documentation/54423 "2021-02-10T21:41:59Z")

</div>

I’m working on developing my first Julia package called FeatureEng – for feature engineering – and I’m having trouble working with Documenter.jl. https://github.com/a-poor/FeatureEng.jl I have a github workflow that bu…

---

## [Functional version of Base library](https://discourse.julialang.org/t/functional-version-of-base-library/54987)

<div class="topic-metadata">

**Author:** [@anon74562486](https://discourse.julialang.org/u/anon74562486)\
**Replies:** 11\
**Last updated:** [February 10, 2021, 9:13pm UTC](https://discourse.julialang.org/t/functional-version-of-base-library/54987 "2021-02-10T21:13:39Z")

</div>

Is there a functional version of the Base library? is it possible to do this? x = rand(10, 10) r\_x = x |\> reshape((1, length(x))) |\> # convert x to a 1xlength(x) Matrix r |\> # apply r …

---

## [Trouble with passing arguments to KrylovKit.eigsolve](https://discourse.julialang.org/t/trouble-with-passing-arguments-to-krylovkit-eigsolve/55025)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 9:10pm UTC](https://discourse.julialang.org/t/trouble-with-passing-arguments-to-krylovkit-eigsolve/55025 "2021-02-10T21:10:15Z")

</div>

I am trying to follow the instructions for the eigenvalue solver in the KrylovKit package but even the simplest of instructions they have provided throw an error. I am confounded that instructions to even the simplest of…

---

## [Hello!, I'm currently trying to merge a set of asset returns from a CSV file, we h](https://discourse.julialang.org/t/hello-im-currently-trying-to-merge-a-set-of-asset-returns-from-a-csv-file-we-h/55022)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 9:00pm UTC](https://discourse.julialang.org/t/hello-im-currently-trying-to-merge-a-set-of-asset-returns-from-a-csv-file-we-h/55022 "2021-02-10T21:00:41Z")

</div>

Hello!, I’m currently trying to merge a set of asset returns from a CSV file, we have two assets and I have got them into a dataframe along with the timestamp, as follows Row │ timestamp brka brkb │ Date…

---

## [No signature match between same type across different modules](https://discourse.julialang.org/t/no-signature-match-between-same-type-across-different-modules/55014)

<div class="topic-metadata">

**Author:** [@pp492](https://discourse.julialang.org/u/pp492)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 8:51pm UTC](https://discourse.julialang.org/t/no-signature-match-between-same-type-across-different-modules/55014 "2021-02-10T20:51:00Z")

</div>

I have the following (simplified) module structure in my program. I have also detailed the simplified structure of each module. module Entities export Agent, Space struct Agent . end struct Sp…

---

## [Display() of an Array type showing unwanted info](https://discourse.julialang.org/t/display-of-an-array-type-showing-unwanted-info/55016)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 2\
**Last updated:** [February 10, 2021, 8:43pm UTC](https://discourse.julialang.org/t/display-of-an-array-type-showing-unwanted-info/55016 "2021-02-10T20:43:28Z")

</div>

Hello Here is a snippet that illustrates my problem: const Asn = Array{Tuple{String,Int64},1} Base.summary(io::IO, x::Asn) = print(io, \*(\[s\[1\] for s in x\]...), " = ", \*(\[s\[2\] for s in x\]...)) Base.show(io::IO, x::…

---

## [Problem on benchmarking multi-thread code](https://discourse.julialang.org/t/problem-on-benchmarking-multi-thread-code/55021)

<div class="topic-metadata">

**Author:** [@ykkan](https://discourse.julialang.org/u/ykkan)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 8:27pm UTC](https://discourse.julialang.org/t/problem-on-benchmarking-multi-thread-code/55021 "2021-02-10T20:27:01Z")

</div>

Hello, I am trying to benchmark function with thread parallelization and compare the result with non-parallelized version of function. using Base.Threads nx = 10000 a = zeros(nx) b = rand(nx) dindicies = 2:(nx-1) fun…

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

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