# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=878

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

**Page:** 879

---

## [GitError(Code:ERROR, Class:SSL, unexpected return value from ssl handshake -9806)](https://discourse.julialang.org/t/giterror-code-error-class-ssl-unexpected-return-value-from-ssl-handshake-9806/22781)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 3\
**Last updated:** [April 5, 2019, 1:59pm UTC](https://discourse.julialang.org/t/giterror-code-error-class-ssl-unexpected-return-value-from-ssl-handshake-9806/22781 "2019-04-05T13:59:49Z")

</div>

Hi, I wiped out my .julia and running \] up or \] add https://github.com/jheinen/GR.jl gives (v1.1) pkg\> add https://github.com/jheinen/GR.jl Cloning git-repo \`https://github.com/jheinen/GR.jl\` ERROR: failed to clone …

---

## [Makie: Type recipe and default\_theme](https://discourse.julialang.org/t/makie-type-recipe-and-default-theme/22795)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 12:51pm UTC](https://discourse.julialang.org/t/makie-type-recipe-and-default-theme/22795 "2019-04-05T12:51:16Z")

</div>

I would like to add a default theme when plotting a custom type. I tried the following, but the default\_theme method is never called: using Makie using AbstractPlotting struct MyArrowData end function AbstractPlotting…

---

## [Iteration protocol and multidimensional arrays](https://discourse.julialang.org/t/iteration-protocol-and-multidimensional-arrays/22786)

<div class="topic-metadata">

**Author:** [@Oliver\_Lylloff](https://discourse.julialang.org/u/Oliver_Lylloff)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 11:54am UTC](https://discourse.julialang.org/t/iteration-protocol-and-multidimensional-arrays/22786 "2019-04-05T11:54:02Z")

</div>

Hello, I really like the new iteration protocol, and I’m happy to see it being spread across packages. However, I usually have the problem, that I work with multidimensional arrays that is often not supported directly. …

---

## [How to pin a package to previous version on Julia 1.0?](https://discourse.julialang.org/t/how-to-pin-a-package-to-previous-version-on-julia-1-0/13661)

<div class="topic-metadata">

**Author:** [@standarddeviant](https://discourse.julialang.org/u/standarddeviant)\
**Replies:** 11\
**Last updated:** [April 5, 2019, 9:45am UTC](https://discourse.julialang.org/t/how-to-pin-a-package-to-previous-version-on-julia-1-0/13661 "2019-04-05T09:45:40Z")

</div>

I was following this thread: But wanted to ask something very specific. Now that 1.0 is released, how can I pin a package to a specific, older version? Here’s a concrete example. On Julia v0.6.4, the following works…

---

## [Install and ImageSegmentation.jl](https://discourse.julialang.org/t/install-and-imagesegmentation-jl/22757)

<div class="topic-metadata">

**Author:** [@GERSON\_EZEQUIEL\_HERN](https://discourse.julialang.org/u/GERSON_EZEQUIEL_HERN)\
**Replies:** 11\
**Last updated:** [April 5, 2019, 7:38am UTC](https://discourse.julialang.org/t/install-and-imagesegmentation-jl/22757 "2019-04-05T07:38:59Z")

</div>

I’m working with Image Segmentation.jl I have problems installing or adding said package julia\> import Pkg julia\> Pkg.add("ImageSegmentation") Updating registry at \`C:\\Users\\gerso\\.julia\\registries\\General\` Updati…

---

## [Project that depends on unreleased packages: Unsatisfiable requirements](https://discourse.julialang.org/t/project-that-depends-on-unreleased-packages-unsatisfiable-requirements/22764)

<div class="topic-metadata">

**Author:** [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Replies:** 6\
**Last updated:** [April 5, 2019, 5:32am UTC](https://discourse.julialang.org/t/project-that-depends-on-unreleased-packages-unsatisfiable-requirements/22764 "2019-04-05T05:32:13Z")

</div>

I’m trying to figure out how to instantiate a project that depends on unreleased but registered packages with properly set-up version numbers and compatibility requirements in Project.toml (for use on CI; preparing for J…

---

## [Base.LOAD\_CACHE\_PATH](https://discourse.julialang.org/t/base-load-cache-path/21614)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 7\
**Last updated:** [April 4, 2019, 11:58pm UTC](https://discourse.julialang.org/t/base-load-cache-path/21614 "2019-04-04T23:58:57Z")

</div>

How to set Base.LOAD\_CACHE\_PATH in julia 1.x.

---

## [Pkg can't find the forked and cloned package I'm working on (but julia can via LOAD\_PATH)](https://discourse.julialang.org/t/pkg-cant-find-the-forked-and-cloned-package-im-working-on-but-julia-can-via-load-path/22688)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 11:01pm UTC](https://discourse.julialang.org/t/pkg-cant-find-the-forked-and-cloned-package-im-working-on-but-julia-can-via-load-path/22688 "2019-04-04T23:01:07Z")

</div>

Hi all, I’m getting the following error when trying to use Pkg to test a package: (v1.1) pkg\> test SomePackage ERROR: The following package names could not be resolved: \* SomePackage (not found in project or manifest)…

---

## [Errors building Julia on Windows with MKL](https://discourse.julialang.org/t/errors-building-julia-on-windows-with-mkl/22770)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 0\
**Last updated:** [April 4, 2019, 9:22pm UTC](https://discourse.julialang.org/t/errors-building-julia-on-windows-with-mkl/22770 "2019-04-04T21:22:51Z")

</div>

Trying to build Julia 1.1 on Windows 10 with MKL. git clone https://github.com/JuliaLang/julia.git cd julia tee Make.user \<\< EOF XC\_HOST = x86\_64-w64-mingw32 USE\_INTEL\_MKL = 1 MKLROOT = /cygdrive/c/Program\\ Files\\ \\(x86…

---

## [Sub module accessing a global method](https://discourse.julialang.org/t/sub-module-accessing-a-global-method/22652)

<div class="topic-metadata">

**Author:** [@iPostHuman](https://discourse.julialang.org/u/iPostHuman)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 7:47pm UTC](https://discourse.julialang.org/t/sub-module-accessing-a-global-method/22652 "2019-04-04T19:47:10Z")

</div>

I am fairly new to Julia :wink: My question centers around a sub-module trying to call a method (not a function) where the method is in global space. I have a module named Nodes that wants to call a method transition(..…

---

## [Named Tuples Verbosity](https://discourse.julialang.org/t/named-tuples-verbosity/22762)

<div class="topic-metadata">

**Author:** [@srb](https://discourse.julialang.org/u/srb)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 7:38pm UTC](https://discourse.julialang.org/t/named-tuples-verbosity/22762 "2019-04-04T19:38:30Z")

</div>

Is there a more concise way to specify that the type of an argument is a named tuple? Right now I have a function that takes a named tuple of 2 structs and it makes the declaration very long. For example, if I have decla…

---

## [Julia Offline](https://discourse.julialang.org/t/julia-offline/11698)

<div class="topic-metadata">

**Author:** [@madprogrammer](https://discourse.julialang.org/u/madprogrammer)\
**Replies:** 4\
**Last updated:** [June 15, 2018, 7:49pm UTC](https://discourse.julialang.org/t/julia-offline/11698 "2018-06-15T19:49:34Z")

</div>

Is there any way to turn Julia completely offline? I could manage packages myself, I just need to have Julia stop sending git clone/pull and any kind of web requests.

---

## [Delimited Files - Writing and reading a complex array](https://discourse.julialang.org/t/delimited-files-writing-and-reading-a-complex-array/22758)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 4:24pm UTC](https://discourse.julialang.org/t/delimited-files-writing-and-reading-a-complex-array/22758 "2019-04-04T16:24:08Z")

</div>

Hi! My question is very simple, I have a one dimensional complex array, for example: A = \[1.0 + 0.1im, 2.0 + 1.0im, 1.5 + 0.5im\]; typeof(A) Array{Complex{Float64},1} I want to write this array in a .txt file with Deli…

---

## [Multi-threading](https://discourse.julialang.org/t/multi-threading/22708)

<div class="topic-metadata">

**Author:** [@krenova](https://discourse.julialang.org/u/krenova)\
**Replies:** 18\
**Last updated:** [April 4, 2019, 3:28pm UTC](https://discourse.julialang.org/t/multi-threading/22708 "2019-04-04T15:28:28Z")

</div>

I’m using windows 10 and julia 1.0.3 and testing out the multi-threaded function. I understand that when generating random numbers we would need a separate seed for each thread but ignoring that for the purpose of a ver…

---

## [How to know already included modules in Julia 1.x](https://discourse.julialang.org/t/how-to-know-already-included-modules-in-julia-1-x/22747)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 12:59pm UTC](https://discourse.julialang.org/t/how-to-know-already-included-modules-in-julia-1-x/22747 "2019-04-04T12:59:00Z")

</div>

Hi. I’m trying to know already included modules in Julia 1.x. For example, include("path/to/moduleA.jl") include("path/to/moduleB.jl") # I want to know module A and B have already included here. Does anyone know that? …

---

## [Why is the memory blowing up in this multi-threaded code?](https://discourse.julialang.org/t/why-is-the-memory-blowing-up-in-this-multi-threaded-code/22680)

<div class="topic-metadata">

**Author:** [@ruthmarx1](https://discourse.julialang.org/u/ruthmarx1)\
**Replies:** 23\
**Last updated:** [April 4, 2019, 10:52am UTC](https://discourse.julialang.org/t/why-is-the-memory-blowing-up-in-this-multi-threaded-code/22680 "2019-04-04T10:52:08Z")

</div>

I have some multi-threaded code in which each thread calls a function f(df::DataFrame) which reads a column of that DataFrame and finds the indices where the column is greater than 0: function f(df::DataFrame) X =…

---

## [ERROR: Unsatisfiable requirements detected for package VTKDataTypes](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-vtkdatatypes/22728)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 8:49am UTC](https://discourse.julialang.org/t/error-unsatisfiable-requirements-detected-for-package-vtkdatatypes/22728 "2019-04-04T08:49:37Z")

</div>

Hi, I am trying to install a package in Julia 1.1.0 ERROR: Unsatisfiable requirements detected for package VTKDataTypes https://github.com/mohamed82008/TopOpt.jl What can I do next?

---

## [Possible inefficiency in randn!](https://discourse.julialang.org/t/possible-inefficiency-in-randn/22732)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 5\
**Last updated:** [April 4, 2019, 8:07am UTC](https://discourse.julialang.org/t/possible-inefficiency-in-randn/22732 "2019-04-04T08:07:41Z")

</div>

The following two functions seem to do exactly the same thing, but the built-in version (randn!) is some 60% slower. Am I missing something or could randn! be implemented more efficiently? using Random broadcast\_randn(x…

---

## [Revise includet issue](https://discourse.julialang.org/t/revise-includet-issue/22734)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 0\
**Last updated:** [April 4, 2019, 7:21am UTC](https://discourse.julialang.org/t/revise-includet-issue/22734 "2019-04-04T07:21:51Z")

</div>

I have issues including a file with Revise, while it works with normal include. The file. (You may need this file too.) Normal include: julia\> include("generatesamples.jl") Main.samples julia\> using .samples julia\> …

---

## [Overloading \`iterate\` breaks the shape of my wrapper of a \`AbstractMatrix\`](https://discourse.julialang.org/t/overloading-iterate-breaks-the-shape-of-my-wrapper-of-a-abstractmatrix/22627)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 7\
**Last updated:** [April 4, 2019, 5:16am UTC](https://discourse.julialang.org/t/overloading-iterate-breaks-the-shape-of-my-wrapper-of-a-abstractmatrix/22627 "2019-04-04T05:16:59Z")

</div>

I have a type struct A data::AbstractMatrix end If I define several methods Base.iterate(a::A, i...) = Base.iterate(a.data, i...) Base.broadcast(+, a::A, b::A) = A(+(a.data, b.data)) Base.length(a::A) = length…

---

## [Parameters for callbacks in DifferentialEquations.jl](https://discourse.julialang.org/t/parameters-for-callbacks-in-differentialequations-jl/22731)

<div class="topic-metadata">

**Author:** [@neuralian](https://discourse.julialang.org/u/neuralian)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 4:21am UTC](https://discourse.julialang.org/t/parameters-for-callbacks-in-differentialequations-jl/22731 "2019-04-04T04:21:38Z")

</div>

Is there a way to pass additional parameters to event detector and event handler functions in DifferentialEquations? (Other than by the obvious kluges, using globals or adding the parameters to the state vector with dp/…

---

## [Help with dot macro broadcasting](https://discourse.julialang.org/t/help-with-dot-macro-broadcasting/22729)

<div class="topic-metadata">

**Author:** [@mosiman](https://discourse.julialang.org/u/mosiman)\
**Replies:** 5\
**Last updated:** [April 4, 2019, 4:16am UTC](https://discourse.julialang.org/t/help-with-dot-macro-broadcasting/22729 "2019-04-04T04:16:09Z")

</div>

Hi there, I’m trying to minimize a residual function f using LsqFit.jl since it is the only package that uses Levenberg-Marquardt (trying to do a course where the instructions and assignments assume Matlab usage, and we…

---

## [Julia 1.0 documentation manual pdf](https://discourse.julialang.org/t/julia-1-0-documentation-manual-pdf/22725)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 10:37pm UTC](https://discourse.julialang.org/t/julia-1-0-documentation-manual-pdf/22725 "2019-04-03T22:37:23Z")

</div>

I want the pdf manual of the latest or stable version or 1.0 This link does not work :frowning: https://media.readthedocs.org/pdf/julia/stable/julia.pdf

---

## [DimensionMismatch](https://discourse.julialang.org/t/dimensionmismatch/22719)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 10:18pm UTC](https://discourse.julialang.org/t/dimensionmismatch/22719 "2019-04-03T22:18:30Z")

</div>

Hi I have tried to solve matrix problems in Julia 1.1.0, not working with the following Julia code: julia\> elementDof=\[1 2 3 4\] 1×4 Array{Int64,2}: 1 2 3 4 julia\> stiffness=zeros(8,8) 8×8 Array{Float64,2}: 0.0…

---

## [Cannot use Distributions.jl](https://discourse.julialang.org/t/cannot-use-distributions-jl/20597)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 6\
**Last updated:** [April 3, 2019, 7:38pm UTC](https://discourse.julialang.org/t/cannot-use-distributions-jl/20597 "2019-04-03T19:38:15Z")

</div>

When I tried to use the Distributions package, I was asked to build Arpack. When I built Arpack, I got the error message: Error: Error building \`Arpack\`: │ ERROR: LoadError: LibraryProduct(nothing, \["libarpack"\], :liba…

---

## [Winston and the dependency of Cairo](https://discourse.julialang.org/t/winston-and-the-dependency-of-cairo/18092)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 17\
**Last updated:** [April 3, 2019, 7:26pm UTC](https://discourse.julialang.org/t/winston-and-the-dependency-of-cairo/18092 "2019-04-03T19:26:48Z")

</div>

\_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for Pkg help. | | | | | | |/ \_\` | | | | |\_| | | | (\_| |…

---

## [Libdl.dlopen usage change since v0.7?](https://discourse.julialang.org/t/libdl-dlopen-usage-change-since-v0-7/22625)

<div class="topic-metadata">

**Author:** [@vonDonnerstein](https://discourse.julialang.org/u/vonDonnerstein)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 6:18pm UTC](https://discourse.julialang.org/t/libdl-dlopen-usage-change-since-v0-7/22625 "2019-04-03T18:18:54Z")

</div>

I was trying to convert my codebase from 0.6 to 1.x, but noticed that all pointers from Libdl within a module now appear nulled after compilation. With the following module: module MyModule lib = Libdl.dlopen("/path/t…

---

## [Deprecate old Registered Packages Versions and default to the Newest Version?](https://discourse.julialang.org/t/deprecate-old-registered-packages-versions-and-default-to-the-newest-version/22124)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 18\
**Last updated:** [April 3, 2019, 3:54pm UTC](https://discourse.julialang.org/t/deprecate-old-registered-packages-versions-and-default-to-the-newest-version/22124 "2019-04-03T15:54:26Z")

</div>

Hey everyone, I recently got a package registered on METADATA and all that. I’ve since cut a new and again accepted release. However, when I go to install it via Pkg.add() it prefers to install the old version. How do I…

---

## [Function syntax ](https://discourse.julialang.org/t/function-syntax/22672)

<div class="topic-metadata">

**Author:** [@yingjerkao](https://discourse.julialang.org/u/yingjerkao)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 3:50pm UTC](https://discourse.julialang.org/t/function-syntax/22672 "2019-04-03T15:50:13Z")

</div>

I encounter a code snippet like this struct F matt::Mtype latt::LType end function (U::F)(x::Tuple) idx = getindex(U.latt, x) getindex(U.matt, idx...) end I can call the function using an instance of F, s…

---

## [Named tuple parsing bug on master?](https://discourse.julialang.org/t/named-tuple-parsing-bug-on-master/22692)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 7\
**Last updated:** [April 3, 2019, 1:30pm UTC](https://discourse.julialang.org/t/named-tuple-parsing-bug-on-master/22692 "2019-04-03T13:30:39Z")

</div>

julia\> using LightQuery julia\> test(x) = transform(x, b = 1.0) test (generic function with 1 method) julia\> test((a = 1,)) (a = 1, b = 1.0) julia\> transform((a = 1,), b = 1.0) ERROR: MethodError: no method matching me…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=877)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=879)
