# Latest

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

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

**Page:** 1866

---

## [IJulia initial installation to Anaconda completely blocked due to 'libcurl' deficiency](https://discourse.julialang.org/t/ijulia-initial-installation-to-anaconda-completely-blocked-due-to-libcurl-deficiency/32079)

<div class="topic-metadata">

**Author:** [@martinreid999](https://discourse.julialang.org/u/martinreid999)\
**Replies:** 3\
**Last updated:** [December 10, 2019, 1:02pm UTC](https://discourse.julialang.org/t/ijulia-initial-installation-to-anaconda-completely-blocked-due-to-libcurl-deficiency/32079 "2019-12-10T13:02:29Z")

</div>

I’m behind a proxy server. As a student getting into Julia, I find it impossible to install Anaconda such that IJulia can be installed. Even from IJulia on the command line, there appears to be no possible way to get …

---

## [Scheduler Function in Agents.jl](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 3\
**Last updated:** [December 10, 2019, 1:00pm UTC](https://discourse.julialang.org/t/scheduler-function-in-agents-jl/30391 "2019-12-10T13:00:53Z")

</div>

I am trying to use the package Agents.jl for modelling. I see that there are three scheduler functions to activate agents at each step. However, I would like to pick agents according to their weights, i.e.,if I could sel…

---

## [haskey(Dict) allocates when key is a struct](https://discourse.julialang.org/t/haskey-dict-allocates-when-key-is-a-struct/32093)

<div class="topic-metadata">

**Author:** [@kuba](https://discourse.julialang.org/u/kuba)\
**Replies:** 4\
**Last updated:** [December 10, 2019, 12:52pm UTC](https://discourse.julialang.org/t/haskey-dict-allocates-when-key-is-a-struct/32093 "2019-12-10T12:52:30Z")

</div>

Hi! I’ve noticed that if a key in a Dict is a structure, the haskey function allocates memory: d = Dict{Int64, Int64}() @allocated haskey(d, 0) # 0 when key is an Int struct Key value :: Int64 end d = Dict{Key,…

---

## [Compile\_package fails on nonregistered package](https://discourse.julialang.org/t/compile-package-fails-on-nonregistered-package/21530)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 5\
**Last updated:** [December 9, 2019, 9:15pm UTC](https://discourse.julialang.org/t/compile-package-fails-on-nonregistered-package/21530 "2019-12-09T21:15:57Z")

</div>

I am trying to use compile\_package or compile\_incremental from PackageCompiler.jl to compile an internal package that is not registered in METADATA. When trying compile\_increemental, the process fails with \[ Info: used …

---

## [Date / DateTime not defined](https://discourse.julialang.org/t/date-datetime-not-defined/23516)

<div class="topic-metadata">

**Author:** [@ilias](https://discourse.julialang.org/u/ilias)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 3:54pm UTC](https://discourse.julialang.org/t/date-datetime-not-defined/23516 "2019-04-25T15:54:05Z")

</div>

I got the following error when running: julia\> t = Date(2014, 1, 31) ERROR: UndefVarError: Date not defined Stacktrace: \[1\] top-level scope at none:0 Julia version 1.1.0 Is there any possible explanation for this? I …

---

## [Particle Swarm Optimization solver and JuMP?](https://discourse.julialang.org/t/particle-swarm-optimization-solver-and-jump/32025)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 2\
**Last updated:** [December 10, 2019, 6:58am UTC](https://discourse.julialang.org/t/particle-swarm-optimization-solver-and-jump/32025 "2019-12-10T06:58:37Z")

</div>

Hello, I would like to solve a non linear optimisation problem which is non smooth. I programmed the problem with JuMP and I tried to solve it with Ipopt solver. However, Ipopt is not able to solve it. I had a look abou…

---

## [How to build a bidirectional RNN with Flux?](https://discourse.julialang.org/t/how-to-build-a-bidirectional-rnn-with-flux/32021)

<div class="topic-metadata">

**Author:** [@Rana\_Ian](https://discourse.julialang.org/u/Rana_Ian)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 6:31am UTC](https://discourse.julialang.org/t/how-to-build-a-bidirectional-rnn-with-flux/32021 "2019-12-10T06:31:15Z")

</div>

Hi, How would you build a bidirectional RNN with Flux? Drawing from a few examples Bidirectional LSTM example A Bidirectional LSTM example B Knet bidirectional RNN source I’ve written using Pkg; for p in \["Flux"\] Pk…

---

## [Filter DataFrame by an Array](https://discourse.julialang.org/t/filter-dataframe-by-an-array/9328)

<div class="topic-metadata">

**Author:** [@Max-Zara](https://discourse.julialang.org/u/Max-Zara)\
**Replies:** 8\
**Last updated:** [December 10, 2019, 6:21am UTC](https://discourse.julialang.org/t/filter-dataframe-by-an-array/9328 "2019-12-10T06:21:33Z")

</div>

Hi, I want to sub-select based on specific values from a Dataframe, like in R would be done by valuesX %in% listY temp\_df = DataFrame(IndexVal = 1:10, Names = \[“A”,“B”,“C”,“A1”,“B1”,“C1”,“A2”,“B2”,“C2”,“A3”\]) temp\_df…

---

## [Working towards better C interop](https://discourse.julialang.org/t/working-towards-better-c-interop/30637)

<div class="topic-metadata">

**Author:** [@colinxs](https://discourse.julialang.org/u/colinxs)\
**Replies:** 5\
**Last updated:** [December 10, 2019, 4:11am UTC](https://discourse.julialang.org/t/working-towards-better-c-interop/30637 "2019-12-10T04:11:50Z")

</div>

I recently wrapped a C library in Julia and am thoroughly impressed with how easy the process is compared to any other language I’ve worked with. That being said, there are a few pain points that, as far as I know, do no…

---

## [Different behaviours in Linux and MacOs with Julia embedded in C++](https://discourse.julialang.org/t/different-behaviours-in-linux-and-macos-with-julia-embedded-in-c/18101)

<div class="topic-metadata">

**Author:** [@vitreo12](https://discourse.julialang.org/u/vitreo12)\
**Replies:** 18\
**Last updated:** [December 9, 2019, 11:28pm UTC](https://discourse.julialang.org/t/different-behaviours-in-linux-and-macos-with-julia-embedded-in-c/18101 "2019-12-09T23:28:32Z")

</div>

Hello everyone, I am currently embedding Julia inside of some cross-platform C++ shared libraries that will be loaded by an already developed application with calls to dlopen(). I am experiencing different behaviours wi…

---

## [Printing the name of an array](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046)

<div class="topic-metadata">

**Author:** [@WEEZEERAE](https://discourse.julialang.org/u/WEEZEERAE)\
**Replies:** 3\
**Last updated:** [December 9, 2019, 10:53pm UTC](https://discourse.julialang.org/t/printing-the-name-of-an-array/32046 "2019-12-09T22:53:22Z")

</div>

hey people, I tried to print the name of an array, as I realized it is actually giving me out the values, i.e.: A = \[5,4,6,7\] print(A,“=”, something) → \[5,4,6,7\] = something but i would rather have something like: …

---

## [Best way to use repo in IJulia jupyter](https://discourse.julialang.org/t/best-way-to-use-repo-in-ijulia-jupyter/31741)

<div class="topic-metadata">

**Author:** [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 9:37pm UTC](https://discourse.julialang.org/t/best-way-to-use-repo-in-ijulia-jupyter/31741 "2019-12-09T21:37:03Z")

</div>

I’m trying to use code from a (frequently updated) git repository in a Jupyter notebook with Julia 1.3. What’s the best way to do it. Is it still as described here? I just cleared my package cache for the package I’m u…

---

## [Convenience: Using git plugin while remote?](https://discourse.julialang.org/t/convenience-using-git-plugin-while-remote/32066)

<div class="topic-metadata">

**Author:** [@wsphillips](https://discourse.julialang.org/u/wsphillips)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 8:25pm UTC](https://discourse.julialang.org/t/convenience-using-git-plugin-while-remote/32066 "2019-12-09T20:25:38Z")

</div>

Juno + remote development works quite nice, but the Atom built-in git plugin doesn’t seem to pickup when I’m working in a git repo remotely. Is this an issue with Ftp-remote-edit? Juno? Does anyone know a work-around to …

---

## [Break Usage into: Helpdesk, and General](https://discourse.julialang.org/t/break-usage-into-helpdesk-and-general/29448)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 8\
**Last updated:** [December 9, 2019, 7:41pm UTC](https://discourse.julialang.org/t/break-usage-into-helpdesk-and-general/29448 "2019-12-09T19:41:57Z")

</div>

We don’t really have a good channel for General ontopic julia discussion. Usage is mostly questions Community should be focused on community building type stuff Domains is not general, explictly so It would be good to…

---

## [Debugging RemoteChannel memory error during distributed computation](https://discourse.julialang.org/t/debugging-remotechannel-memory-error-during-distributed-computation/32062)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 7:05pm UTC](https://discourse.julialang.org/t/debugging-remotechannel-memory-error-during-distributed-computation/32062 "2019-12-09T19:05:39Z")

</div>

I have no idea how to debug this problem, so any even vague “that sounds like…” is appreciated. My program works when distributed within a single node, but fails when given tasks/cpus that span two nodes. I unfortunatel…

---

## [Is this possible to fix "type instability" with IndexedTable operations?](https://discourse.julialang.org/t/is-this-possible-to-fix-type-instability-with-indexedtable-operations/32063)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 7:25pm UTC](https://discourse.julialang.org/t/is-this-possible-to-fix-type-instability-with-indexedtable-operations/32063 "2019-12-09T19:25:14Z")

</div>

Consider the following code and its @code\_warntype t = table(\[1,1,2,2\], \[1,2,1,2\], \[1,2,3,4\], names=\[:a,:b,:c\], pkey = (:a, :b)) function my\_function(t::T) where {T\<:IndexedTable} IndexedTables.select(t, Indexe…

---

## [MATLAB.JL : LoadError: UndefRefError:](https://discourse.julialang.org/t/matlab-jl-loaderror-undefreferror/31831)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 12\
**Last updated:** [December 9, 2019, 6:44pm UTC](https://discourse.julialang.org/t/matlab-jl-loaderror-undefreferror/31831 "2019-12-09T18:44:17Z")

</div>

Hello everybody, I cannot use MATLAB.jl due to the error : \> ERROR: LoadError: UndefRefError: access to undefined reference Would you tell me ow to fix this problem in Win10? Best regards,

---

## [Struct which contains struct](https://discourse.julialang.org/t/struct-which-contains-struct/32060)

<div class="topic-metadata">

**Author:** [@ziziak](https://discourse.julialang.org/u/ziziak)\
**Replies:** 1\
**Last updated:** [December 9, 2019, 6:20pm UTC](https://discourse.julialang.org/t/struct-which-contains-struct/32060 "2019-12-09T18:20:42Z")

</div>

Hey is it possible in Julia to create struct, which contains struct and this struct contains first struct. I guess it may be more obvious from example struct A a::Float64 b::B end struct B a::Float64 b:…

---

## [Cuda kernel error](https://discourse.julialang.org/t/cuda-kernel-error/31876)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 9\
**Last updated:** [December 9, 2019, 6:16pm UTC](https://discourse.julialang.org/t/cuda-kernel-error/31876 "2019-12-09T18:16:47Z")

</div>

Hi, I am learning to use GPU in Julia. From the limited tutorials, I notice that it is possible to write cuda kernels in Julia directly. Then I tried the simple naïve matrix multiplication in CUDA and converted it into …

---

## [\[ANN\] Corpuscles.jl - Particle properties and encodings via PDG tables](https://discourse.julialang.org/t/ann-corpuscles-jl-particle-properties-and-encodings-via-pdg-tables/32023)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 3\
**Last updated:** [December 9, 2019, 5:50pm UTC](https://discourse.julialang.org/t/ann-corpuscles-jl-particle-properties-and-encodings-via-pdg-tables/32023 "2019-12-09T17:50:22Z")

</div>

I’d like to announce a tiny package which was created by Johannes Schumann and myself to deal with PDG particle data and different particle encodings in physics software. The package converts Pythia and Geant3 codes to …

---

## [Use julia array in SQLite Query](https://discourse.julialang.org/t/use-julia-array-in-sqlite-query/32049)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 1\
**Last updated:** [December 9, 2019, 5:10pm UTC](https://discourse.julialang.org/t/use-julia-array-in-sqlite-query/32049 "2019-12-09T17:10:23Z")

</div>

I asked this before in Slack, but failed to write down the answer. As penance, I vow to write this up as a PR to the SQLite docs :laughing: I’d like to use an existing vector as part of a SQLite.Query. Eg: julia\> using…

---

## [Using NLopt for maximum likelihood estimation](https://discourse.julialang.org/t/using-nlopt-for-maximum-likelihood-estimation/31964)

<div class="topic-metadata">

**Author:** [@espenmei](https://discourse.julialang.org/u/espenmei)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 4:58pm UTC](https://discourse.julialang.org/t/using-nlopt-for-maximum-likelihood-estimation/31964 "2019-12-09T16:58:41Z")

</div>

Hi all, I am an R user now beginning with Julia. As a start I’m trying to figure out how I can optimize a likelihood function in Julia. However, i cannot get my first try to work. Could anyone help me figuring out what …

---

## [BinaryProvider options to curl or wget](https://discourse.julialang.org/t/binaryprovider-options-to-curl-or-wget/23699)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 3\
**Last updated:** [December 9, 2019, 4:37pm UTC](https://discourse.julialang.org/t/binaryprovider-options-to-curl-or-wget/23699 "2019-12-09T16:37:01Z")

</div>

Putting my money where my mouth is I am trying to build a tarball of ffmeg on an ARM 64 system. BinaryProvider finds curl as its first download engine. As I am behind a proxy I then get \[09:28:40\] curl: (60) SSL certi…

---

## [Buffers are People Too: IO Package Developers, Please Consider In-Memory Operations](https://discourse.julialang.org/t/buffers-are-people-too-io-package-developers-please-consider-in-memory-operations/32051)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 4\
**Last updated:** [December 9, 2019, 4:10pm UTC](https://discourse.julialang.org/t/buffers-are-people-too-io-package-developers-please-consider-in-memory-operations/32051 "2019-12-09T16:10:43Z")

</div>

I wanted to bring the following to the attention of anyone who might be developing any IO-related package. Today with “microservices” and docker containers being common, it is often the case that IO takes place over a n…

---

## [Specifying that a function which can take a vector or scalar as input](https://discourse.julialang.org/t/specifying-that-a-function-which-can-take-a-vector-or-scalar-as-input/32042)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 4\
**Last updated:** [December 9, 2019, 4:04pm UTC](https://discourse.julialang.org/t/specifying-that-a-function-which-can-take-a-vector-or-scalar-as-input/32042 "2019-12-09T16:04:38Z")

</div>

I frequently find myself writing functions which are fundamentally not that different for scalars or vectors. Take this for example: julia\> function silly\_print(x) for i = 1:length(x) println(x\[i\]) end e…

---

## [Addprocs() on remote machines failing](https://discourse.julialang.org/t/addprocs-on-remote-machines-failing/29999)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 6\
**Last updated:** [December 9, 2019, 4:01pm UTC](https://discourse.julialang.org/t/addprocs-on-remote-machines-failing/29999 "2019-12-09T16:01:39Z")

</div>

I would like to spawn some jobs on a cluster of linux machines. The machines are configured a little differently to my own so I need to specify where the julia executable is and the username when ssh’ing into them. …

---

## [Selecting the Set from an Array of integers](https://discourse.julialang.org/t/selecting-the-set-from-an-array-of-integers/32050)

<div class="topic-metadata">

**Author:** [@Diger](https://discourse.julialang.org/u/Diger)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 3:24pm UTC](https://discourse.julialang.org/t/selecting-the-set-from-an-array-of-integers/32050 "2019-12-09T15:24:46Z")

</div>

I have the Array A=\[0,0,0,2,1,0,1,3,2,3,4,5,1,7,1\] for which the Set is S=\[0,1,2,3,4,5,7\] Set(A) doesn’t work in that I get an object Set(\[…\]), but the resulting thing should still be an Array as before. How do I do …

---

## [How to parse the string entries read from a file into their struct / types?](https://discourse.julialang.org/t/how-to-parse-the-string-entries-read-from-a-file-into-their-struct-types/31909)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 5\
**Last updated:** [December 9, 2019, 2:46pm UTC](https://discourse.julialang.org/t/how-to-parse-the-string-entries-read-from-a-file-into-their-struct-types/31909 "2019-12-09T14:46:03Z")

</div>

I was reading a text file, which has the following columns: startTimes, startLocs, planedRouteNds, edgesDists, edgesTravelTimes, dists, durationTimes, and eventCtgrs. Each one of them has a different type. For example, s…

---

## [Replace missing with 0.0 in dataframe](https://discourse.julialang.org/t/replace-missing-with-0-0-in-dataframe/32029)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [December 9, 2019, 2:35pm UTC](https://discourse.julialang.org/t/replace-missing-with-0-0-in-dataframe/32029 "2019-12-09T14:35:29Z")

</div>

I am trying to replace missing values in Float coluns with 0.0. My starting point: for col in names(df) df\[ismissing.(df\[col\]), col\] = 0.0 end While this works, it has two weak points: a. it doesn’t check the typ…

---

## [IOError: unlink: resource busy or locked (EBUSY) in Windows](https://discourse.julialang.org/t/ioerror-unlink-resource-busy-or-locked-ebusy-in-windows/32045)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 1\
**Last updated:** [December 9, 2019, 1:05pm UTC](https://discourse.julialang.org/t/ioerror-unlink-resource-busy-or-locked-ebusy-in-windows/32045 "2019-12-09T13:05:09Z")

</div>

Hi! I need help. I am trying to copy a file but I am seeing this error only in Windows (only with Julia \>= v.1.2.0): Include Pretty Table to file: Error During Test at C:\\projects\\prettytables-jl\\test\\general.jl:12 Got…

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

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