# Latest

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

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

**Page:** 1709

---

## [Register in General without GitHub](https://discourse.julialang.org/t/register-in-general-without-github/41958)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 9:52pm UTC](https://discourse.julialang.org/t/register-in-general-without-github/41958 "2020-06-23T21:52:27Z")

</div>

What’s the plan to register packages without GitHub? With the way GitHub is changing things up with a less useful website layout, I am anticipating moving on from the GitHub platform eventually. At the moment, I am pus…

---

## [Julia 1.3 and IJulia -- how to find Julia 1.3 as kernel?](https://discourse.julialang.org/t/julia-1-3-and-ijulia-how-to-find-julia-1-3-as-kernel/31689)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [June 23, 2020, 8:55pm UTC](https://discourse.julialang.org/t/julia-1-3-and-ijulia-how-to-find-julia-1-3-as-kernel/31689 "2020-06-23T20:55:12Z")

</div>

I just removed Julia 1.2 and installed Julia 1.3 + renamed v1.2 to v1.3 in .julia\\environments + did \]instantiate and updated packages. When I fire up IJulia, Julia 1.2 shows up as the only available kernel (together wi…

---

## [How do I use \`@view\` correctly?](https://discourse.julialang.org/t/how-do-i-use-view-correctly/41955)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 4\
**Last updated:** [June 23, 2020, 8:17pm UTC](https://discourse.julialang.org/t/how-do-i-use-view-correctly/41955 "2020-06-23T20:17:41Z")

</div>

I have a function that looked like the following. The explanation follows (which is fairly simple and probably easier to digest than the code). function main(mydat) for t = 1:141 daily\_sum = 0 …

---

## [Error with ForwardDiff no method matching Float64](https://discourse.julialang.org/t/error-with-forwarddiff-no-method-matching-float64/41905)

<div class="topic-metadata">

**Author:** [@smickus](https://discourse.julialang.org/u/smickus)\
**Replies:** 4\
**Last updated:** [June 23, 2020, 8:07pm UTC](https://discourse.julialang.org/t/error-with-forwarddiff-no-method-matching-float64/41905 "2020-06-23T20:07:29Z")

</div>

I am trying to use forwardDiff to compute the gradient of a function in which I am solving an ODE, but I am getting an error that there is no method matching Float64. I have been stumped with this error for awile and wo…

---

## [Weird error: \`SystemError: memory mapping failed: Too many open files in system\`](https://discourse.julialang.org/t/weird-error-systemerror-memory-mapping-failed-too-many-open-files-in-system/41944)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 7:36pm UTC](https://discourse.julialang.org/t/weird-error-systemerror-memory-mapping-failed-too-many-open-files-in-system/41944 "2020-06-23T19:36:41Z")

</div>

I am trying to run something in parallel. Suppose I have the following module loaded and that I am using ClusterManagers.jl to connect to a cluster. @everywhere module ldf using some packages... function read\_d…

---

## [How to plot a matrix of colors](https://discourse.julialang.org/t/how-to-plot-a-matrix-of-colors/41920)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [June 23, 2020, 4:22pm UTC](https://discourse.julialang.org/t/how-to-plot-a-matrix-of-colors/41920 "2020-06-23T16:22:50Z")

</div>

If I have a matrix with colors: color\_matrix = \[:red :red; :red :blue\] how do I do to plot this in a 2d plot, showing the corresponding colors? E.g., if I had color\_matrix = \[:blue :white :red; :blue :white :red\] I …

---

## [How calculate time between two date?](https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941)

<div class="topic-metadata">

**Author:** [@LancelacDulot](https://discourse.julialang.org/u/LancelacDulot)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 3:00pm UTC](https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941 "2020-06-23T15:00:29Z")

</div>

Hi all, I search to have the duration between tow date create by now(). I’m new julia’s user. I don’t know do this. Please help me!! Thank you for your help. :slight\_smile:

---

## [Writing compound structs with variable length strings to HDF5](https://discourse.julialang.org/t/writing-compound-structs-with-variable-length-strings-to-hdf5/29449)

<div class="topic-metadata">

**Author:** [@bender9000](https://discourse.julialang.org/u/bender9000)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 2:49pm UTC](https://discourse.julialang.org/t/writing-compound-structs-with-variable-length-strings-to-hdf5/29449 "2020-06-23T14:49:19Z")

</div>

I am trying to write a compound type that contains a variable length string as a field to HDF5. Following is the approach that I took but the strings written to the H5 file are garbled as shown below: Creating compound …

---

## [Fitting ODE system to one single data](https://discourse.julialang.org/t/fitting-ode-system-to-one-single-data/40737)

<div class="topic-metadata">

**Author:** [@thomas\_vilches](https://discourse.julialang.org/u/thomas_vilches)\
**Replies:** 9\
**Last updated:** [June 23, 2020, 2:42pm UTC](https://discourse.julialang.org/t/fitting-ode-system-to-one-single-data/40737 "2020-06-23T14:42:03Z")

</div>

Hi everyone, I have an ODE system with 5 equations and I want to fit it to a data. However, the data is related to only one of the equations. I am trying to use the functions in Parameters Estimation of Differential eq…

---

## [How to install an old package without project.toml and manifest.toml?](https://discourse.julialang.org/t/how-to-install-an-old-package-without-project-toml-and-manifest-toml/41933)

<div class="topic-metadata">

**Author:** [@dadada\_dadada](https://discourse.julialang.org/u/dadada_dadada)\
**Replies:** 5\
**Last updated:** [June 23, 2020, 2:35pm UTC](https://discourse.julialang.org/t/how-to-install-an-old-package-without-project-toml-and-manifest-toml/41933 "2020-06-23T14:35:39Z")

</div>

I have an older package that I would like to use (https://github.com/davidlizeng/LinearLeastSquares.jl), but when I try to install it using the Pkg I get this error. (@v1.4) pkg\> add LinearLeastSquares Updating regis…

---

## [Flux: different activation functions for different outputs](https://discourse.julialang.org/t/flux-different-activation-functions-for-different-outputs/41938)

<div class="topic-metadata">

**Author:** [@jmurray](https://discourse.julialang.org/u/jmurray)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 2:30pm UTC](https://discourse.julialang.org/t/flux-different-activation-functions-for-different-outputs/41938 "2020-06-23T14:30:37Z")

</div>

I need to apply different activation functions to different outputs of a Flux layer. This requires a custom layer. I can modify an existing custom layer so that its only job is to apply a per-output activation function a…

---

## [Findfirst on sorted array](https://discourse.julialang.org/t/findfirst-on-sorted-array/4928)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 14\
**Last updated:** [June 23, 2020, 2:28pm UTC](https://discourse.julialang.org/t/findfirst-on-sorted-array/4928 "2020-06-23T14:28:32Z")

</div>

I have a sorted array of numbers: A = \[1, 4, 10, 15, 18\] I want to determine the first index where a value, v, occurs in this array (or 0 if it does not occur), like findfirst(A, v). But I want to exploit the fact that…

---

## [I define t, then in a loop I'm told it's undefined, why?](https://discourse.julialang.org/t/i-define-t-then-in-a-loop-im-told-its-undefined-why/41258)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 18\
**Last updated:** [June 23, 2020, 2:28pm UTC](https://discourse.julialang.org/t/i-define-t-then-in-a-loop-im-told-its-undefined-why/41258 "2020-06-23T14:28:21Z")

</div>

I’ve written a Julia script that should be using Simpson’s rule to approximate the solution to: \\displaystyle \\int\_0^{-\\pi} \\dfrac{dy}{\\sqrt{-\\frac{2g}{l} \\sin{y}}} and compare it to the result obtained by QuadGK. But…

---

## [PyCall Fails to Build](https://discourse.julialang.org/t/pycall-fails-to-build/41937)

<div class="topic-metadata">

**Author:** [@rw3](https://discourse.julialang.org/u/rw3)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 2:23pm UTC](https://discourse.julialang.org/t/pycall-fails-to-build/41937 "2020-06-23T14:23:15Z")

</div>

PyCall is attempting to access a file at main/win-64 The file is called: https://repo.anaconda.com/pkgs/main/win-64/current\_repodata.json However, if you navigate to the page, the json file does not exist. There is a r…

---

## [Reading outlook .msg extension file through Julia](https://discourse.julialang.org/t/reading-outlook-msg-extension-file-through-julia/41930)

<div class="topic-metadata">

**Author:** [@akscse](https://discourse.julialang.org/u/akscse)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 2:20pm UTC](https://discourse.julialang.org/t/reading-outlook-msg-extension-file-through-julia/41930 "2020-06-23T14:20:02Z")

</div>

I need to do text analysis on an email dump. This dump contains outlook messages in .msg extension. Could you please suggest if there is some standard library to read .msg extensions. Thanks

---

## [Change path auto-completion from \\\\ to / in Juno](https://discourse.julialang.org/t/change-path-auto-completion-from-to-in-juno/41935)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 1:38pm UTC](https://discourse.julialang.org/t/change-path-auto-completion-from-to-in-juno/41935 "2020-06-23T13:38:19Z")

</div>

Hello, I am looking for the place where I can configure the auto-complete to use a slash instead of two backslashes for paths. Say that I want to access the relative path "data/exp\_raw/my\_data.csv" to write a csv there…

---

## [Pass cache to function](https://discourse.julialang.org/t/pass-cache-to-function/41934)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 4\
**Last updated:** [June 23, 2020, 1:22pm UTC](https://discourse.julialang.org/t/pass-cache-to-function/41934 "2020-06-23T13:22:49Z")

</div>

Hi! I have a function which allocates a cache for calculations as function f(x::AbstractArray) cache = zeros(length(x)) # do some calculations end I now want to call this function very often (not in parallel) so I…

---

## [ArchGDAL, getfeature() error](https://discourse.julialang.org/t/archgdal-getfeature-error/41913)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 1:12pm UTC](https://discourse.julialang.org/t/archgdal-getfeature-error/41913 "2020-06-23T13:12:45Z")

</div>

hotspot\_path = "zoneforhotspot.geojson" d = ArchGDAL.read(hotspot\_path) layer = ArchGDAL.getlayer(d, 0) fs = ArchGDAL.getfeature(layer, 1) do f ArchGDAL.getgeom(f) end fs d = ArchGDAL.read(hotspot\_path) layer = …

---

## [How to debug memory issues when working with an external C library](https://discourse.julialang.org/t/how-to-debug-memory-issues-when-working-with-an-external-c-library/41927)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 12:02pm UTC](https://discourse.julialang.org/t/how-to-debug-memory-issues-when-working-with-an-external-c-library/41927 "2020-06-23T12:02:26Z")

</div>

Has anyone here experience in interfacing Julia to a C++ library via library-provided C bindings, specifically in debugging memory issues? I am trying to recreate (or at least mimic) the C++ interface in Julia by writin…

---

## [Threading two consecutive double loops](https://discourse.julialang.org/t/threading-two-consecutive-double-loops/41931)

<div class="topic-metadata">

**Author:** [@jcook](https://discourse.julialang.org/u/jcook)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 11:35am UTC](https://discourse.julialang.org/t/threading-two-consecutive-double-loops/41931 "2020-06-23T11:35:08Z")

</div>

Hi All, I’m trying to improve the threaded performance of some code: I’ve written up the associated MWE. Essentially we have a matrix m, which is mutated in two consecutive double for loops. The first loop: The fir…

---

## [How to load with Julia a h5 file created from Keras in Python ? With Flux.jl or with another ML package?](https://discourse.julialang.org/t/how-to-load-with-julia-a-h5-file-created-from-keras-in-python-with-flux-jl-or-with-another-ml-package/41903)

<div class="topic-metadata">

**Author:** [@steph\_de\_paris](https://discourse.julialang.org/u/steph_de_paris)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 11:11am UTC](https://discourse.julialang.org/t/how-to-load-with-julia-a-h5-file-created-from-keras-in-python-with-flux-jl-or-with-another-ml-package/41903 "2020-06-23T11:11:39Z")

</div>

Hi, Is there a simple way to load with Julia a h5 file created with Python3-Keras without rebuilding this h5 model ? More precisely, what should be the Julia version of this simple Python3 script : # Python3 code of t…

---

## [Plotting lines from Contours.jl](https://discourse.julialang.org/t/plotting-lines-from-contours-jl/41923)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 9:37am UTC](https://discourse.julialang.org/t/plotting-lines-from-contours-jl/41923 "2020-06-23T09:37:11Z")

</div>

x = range(-50,50,length=1000) y = range(0,30,length=1000) f(x,y) = x/3+log(1000+((x-10)^2+(2y)^2-15^2)^2); z = f.(transpose(x), y) contour(x, y, z, levels=0:2.5:40, fill=(true, cgrad(:matter, categorical = true)), cl…

---

## [Custom IO performance - loading variables from byte array](https://discourse.julialang.org/t/custom-io-performance-loading-variables-from-byte-array/41814)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 9:39am UTC](https://discourse.julialang.org/t/custom-io-performance-loading-variables-from-byte-array/41814 "2020-06-23T09:39:46Z")

</div>

I want to load several variables of different bitstypes from a packed byte vector. For example, Int16, Int32, Int16 from 8-byte chunk of memory. I’ve tried several approaches to find a most efficient way: Using IOBuf…

---

## [EOFError: read end of file](https://discourse.julialang.org/t/eoferror-read-end-of-file/41921)

<div class="topic-metadata">

**Author:** [@benoitseron](https://discourse.julialang.org/u/benoitseron)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 9:17am UTC](https://discourse.julialang.org/t/eoferror-read-end-of-file/41921 "2020-06-23T09:17:50Z")

</div>

Hello, I’ve started using Atom and everything went fine for the couple of times but then I got stuck at this repeating error: EOFError: read end of file in require at base/loading.jl:922 in require at base/loading.jl:…

---

## [Display("text.html", "\<script\>\</script\>") error](https://discourse.julialang.org/t/display-text-html-script-script-error/41919)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 8:13am UTC](https://discourse.julialang.org/t/display-text-html-script-script-error/41919 "2020-06-23T08:13:28Z")

</div>

I used to use display("text.html", "\<script\>\</script\>") to include javascript plot or a raw HTML in Weave doc. But today I encountered the following error: ERROR: MethodError: no method matching show(::IOContext{Base.G…

---

## [How to use a flag in Regex()?](https://discourse.julialang.org/t/how-to-use-a-flag-in-regex/41917)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 8:38am UTC](https://discourse.julialang.org/t/how-to-use-a-flag-in-regex/41917 "2020-06-23T08:38:24Z")

</div>

Hi, I wan’t to use a variable interpolation and a regex flag at the same time, is it possible ? For example julia\> x="StRinG" "StRinG" julia\> Regex("$x") r"StRinG" # if I wan to ignore to ignore case with a flag : j…

---

## [Allowable fields for Project.toml](https://discourse.julialang.org/t/allowable-fields-for-project-toml/41885)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 7:35am UTC](https://discourse.julialang.org/t/allowable-fields-for-project-toml/41885 "2020-06-23T07:35:29Z")

</div>

I’d just like to know what fields are allowed in the Project.toml file of a package. I’ve conducted DuckDuckGo searches for documentation regarding the Project.toml of Julia packages and so far I have not found anything.…

---

## [LoadError: ArgumentError: Package XXX not found in current path](https://discourse.julialang.org/t/loaderror-argumenterror-package-xxx-not-found-in-current-path/41886)

<div class="topic-metadata">

**Author:** [@eichhoernchen](https://discourse.julialang.org/u/eichhoernchen)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 7:27am UTC](https://discourse.julialang.org/t/loaderror-argumenterror-package-xxx-not-found-in-current-path/41886 "2020-06-23T07:27:35Z")

</div>

Hello ! I work with Ubuntu 14.04 LTS. I worked with Julia (Version 0.2.1) but suddenly encountered problems when I asked for a connection between Gurobi (newly installed) and Julia. The message is: julia\> import Pkg; …

---

## [How to uninstall properly Julia under Unbuntu 14.04 LTS](https://discourse.julialang.org/t/how-to-uninstall-properly-julia-under-unbuntu-14-04-lts/41888)

<div class="topic-metadata">

**Author:** [@eichhoernchen](https://discourse.julialang.org/u/eichhoernchen)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 7:26am UTC](https://discourse.julialang.org/t/how-to-uninstall-properly-julia-under-unbuntu-14-04-lts/41888 "2020-06-23T07:26:49Z")

</div>

Hello! I encounter issues with Julia. I work with Ubuntu 14.04 LTS. I worked with Julia (Version 0.2.1) but suddenly encountered problems when I asked for a connection between Gurobi (newly installed) and Julia. The m…

---

## [Pointer error, related to variable scope](https://discourse.julialang.org/t/pointer-error-related-to-variable-scope/41910)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 6:34am UTC](https://discourse.julialang.org/t/pointer-error-related-to-variable-scope/41910 "2020-06-23T06:34:45Z")

</div>

I create a struct as a global variable named g\_preload\_data which contains a member variable hotspot\_area in preload.jl. The member variable hotspot\_area is initialized by creating a ArchGDAL geometry object. When I u…

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

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