# General Usage

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

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

**Page:** 978

---

## [Deprecation warning even after \`using\` statement (0.7)](https://discourse.julialang.org/t/deprecation-warning-even-after-using-statement-0-7/11013)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 1\
**Last updated:** [May 19, 2018, 5:07pm UTC](https://discourse.julialang.org/t/deprecation-warning-even-after-using-statement-0-7/11013 "2018-05-19T17:07:42Z")

</div>

I’m surprised by the deprecation warning… Is that proper behavior? julia\> using Distributed julia\> @fetch ERROR: LoadError: WARNING: Base.@fetch is deprecated: it has been moved to the standard library package \`Distrib…

---

## [No badge for my package in pkg.julialang.org](https://discourse.julialang.org/t/no-badge-for-my-package-in-pkg-julialang-org/11011)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 0\
**Last updated:** [May 19, 2018, 3:47pm UTC](https://discourse.julialang.org/t/no-badge-for-my-package-in-pkg-julialang-org/11011 "2018-05-19T15:47:19Z")

</div>

Hi guys! The badge for my package ReferenceFrameRotations is not available in https://pkg.julialang.org/detail/ReferenceFrameRotations for Julia v0.6. Is there anything I can do to fix this?

---

## [Worker status](https://discourse.julialang.org/t/worker-status/11007)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 1\
**Last updated:** [May 19, 2018, 9:32am UTC](https://discourse.julialang.org/t/worker-status/11007 "2018-05-19T09:32:14Z")

</div>

Is there any way to find out the current status of each worker process, whether they are currently available or busy?

---

## [Possible Bug with push! and overwriting array](https://discourse.julialang.org/t/possible-bug-with-push-and-overwriting-array/11004)

<div class="topic-metadata">

**Author:** [@RCSalomao](https://discourse.julialang.org/u/RCSalomao)\
**Replies:** 5\
**Last updated:** [May 18, 2018, 9:53pm UTC](https://discourse.julialang.org/t/possible-bug-with-push-and-overwriting-array/11004 "2018-05-18T21:53:14Z")

</div>

Hello everyone. I have searched through the forums and haven’t found similar situation, so I am posting here to see if this is a bug or intended feature. Without further ado, I am posting a minimal working example (I am…

---

## [Method of Line with DifferentialEquations.jl](https://discourse.julialang.org/t/method-of-line-with-differentialequations-jl/11000)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 5\
**Last updated:** [May 18, 2018, 7:52pm UTC](https://discourse.julialang.org/t/method-of-line-with-differentialequations-jl/11000 "2018-05-18T19:52:17Z")

</div>

What algorithm/option in DifferentialEquations should I choose to solve efficiently a large and stiff system of ODE (a system of 100 to 10\_000 say) when I am only interested in the value of the stationary solution (i.e …

---

## [Where {T\<:ConcreteType}](https://discourse.julialang.org/t/where-t-concretetype/11002)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 2\
**Last updated:** [May 18, 2018, 7:43pm UTC](https://discourse.julialang.org/t/where-t-concretetype/11002 "2018-05-18T19:43:18Z")

</div>

Should n’t the two methods of f in the example below conflict? abstract type AbstractA end struct A \<: AbstractA data::Int end f(a::T) where {T\<:A} = (T, a.data) f(A(2)) # (A, 2) f(a::A) = ("A", a.data) f(A(2)) # ("…

---

## [DiffEqDiffTools - addtional variables in objective function](https://discourse.julialang.org/t/diffeqdifftools-addtional-variables-in-objective-function/10965)

<div class="topic-metadata">

**Author:** [@waldoc](https://discourse.julialang.org/u/waldoc)\
**Replies:** 2\
**Last updated:** [May 18, 2018, 4:38am UTC](https://discourse.julialang.org/t/diffeqdifftools-addtional-variables-in-objective-function/10965 "2018-05-18T04:38:07Z")

</div>

Hi, I have found DiffEqDiffTools.finite\_difference\_jacobian to be quite useful, thanks to the devs :smile: I just have a question regarding passing additional variables in the objective function. The standard format wou…

---

## [Creating presentation slides using remark.js](https://discourse.julialang.org/t/creating-presentation-slides-using-remark-js/10284)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 12\
**Last updated:** [May 17, 2018, 10:05am UTC](https://discourse.julialang.org/t/creating-presentation-slides-using-remark-js/10284 "2018-05-17T10:05:23Z")

</div>

I asked my department members (a Statistics department) what their preferred methods for creating slides for a talk were. The most popular answer was the xaringan package for R, which builds on remark.js. I plan to try…

---

## [How to set julia startup options in Jupyter notebook?](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998)

<div class="topic-metadata">

**Author:** [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Replies:** 3\
**Last updated:** [May 18, 2018, 5:21pm UTC](https://discourse.julialang.org/t/how-to-set-julia-startup-options-in-jupyter-notebook/10998 "2018-05-18T17:21:08Z")

</div>

Are there Julia commands or environment settings that I can put at the top of a notebook (.ipynb) file, or put in .juliarc.jl, to get the same effect as launching julia from the command line with various option switches? …

---

## [Power function with Integer ( x^4 much slower than x\*x\*x\*x )](https://discourse.julialang.org/t/power-function-with-integer-x-4-much-slower-than-x-x-x-x/10985)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 12\
**Last updated:** [May 18, 2018, 2:41pm UTC](https://discourse.julialang.org/t/power-function-with-integer-x-4-much-slower-than-x-x-x-x/10985 "2018-05-18T14:41:49Z")

</div>

Hey there! I have a question. I need to calculate the following in a hot-loop: ω(d, dmax) = (1-(d/dmax)^2)^4 I benchmarked different versions of this and found the following using BenchmarkTools d = rand(10000) dm …

---

## [What's not threadsafe?](https://discourse.julialang.org/t/whats-not-threadsafe/10984)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 11\
**Last updated:** [May 18, 2018, 1:11pm UTC](https://discourse.julialang.org/t/whats-not-threadsafe/10984 "2018-05-18T13:11:34Z")

</div>

Hi all, I am looking for a list of things that are not safe to do inside a Threads.@threads loop. I am aware that this is as high-level as it gets, and I am sorry about that. For example, I realized myself that I canno…

---

## [Request help in understanding why certain operations in a generated function lead to a \`MethodError\` but are fine outside the generated function](https://discourse.julialang.org/t/request-help-in-understanding-why-certain-operations-in-a-generated-function-lead-to-a-methoderror-but-are-fine-outside-the-generated-function/10980)

<div class="topic-metadata">

**Author:** [@zygmuntszpak](https://discourse.julialang.org/u/zygmuntszpak)\
**Replies:** 1\
**Last updated:** [May 18, 2018, 8:50am UTC](https://discourse.julialang.org/t/request-help-in-understanding-why-certain-operations-in-a-generated-function-lead-to-a-methoderror-but-are-fine-outside-the-generated-function/10980 "2018-05-18T08:50:58Z")

</div>

Hi all, I’m working on adding more specializations to kron for StaticArray and StaticVector types as part of this pull request: Adds more Kronecker product specialisations by zygmuntszpak · Pull Request #407 · JuliaArra…

---

## [Help with LSTM on Flux.jl](https://discourse.julialang.org/t/help-with-lstm-on-flux-jl/10976)

<div class="topic-metadata">

**Author:** [@rcnlee](https://discourse.julialang.org/u/rcnlee)\
**Replies:** 0\
**Last updated:** [May 18, 2018, 5:36am UTC](https://discourse.julialang.org/t/help-with-lstm-on-flux-jl/10976 "2018-05-18T05:36:12Z")

</div>

Hello, I’m trying to figure out what’s wrong with my Flux LSTM model, which is a chain of LSTM, Dense, and softmax. The problem that I’m seeing is that the Dense grads are fine, but I get NaNs for all the LSTM gradients…

---

## [Splat-to-append to tuple-of-arrays, or push! on array-of-arrays?](https://discourse.julialang.org/t/splat-to-append-to-tuple-of-arrays-or-push-on-array-of-arrays/10961)

<div class="topic-metadata">

**Author:** [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Replies:** 4\
**Last updated:** [May 17, 2018, 11:51pm UTC](https://discourse.julialang.org/t/splat-to-append-to-tuple-of-arrays-or-push-on-array-of-arrays/10961 "2018-05-17T23:51:13Z")

</div>

I’m writing a function that needs to return a variable-length collection of arrays (depending on parameters in a file as well as optional function arguments). Each array may also have a different size. I can return the c…

---

## [Find unique row in DataFrame](https://discourse.julialang.org/t/find-unique-row-in-dataframe/10945)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 5\
**Last updated:** [May 17, 2018, 9:29pm UTC](https://discourse.julialang.org/t/find-unique-row-in-dataframe/10945 "2018-05-17T21:29:20Z")

</div>

Hi All, I am finding unique rows in a DataFrame and get number of repeat of unique rows, I could get by this: t=DataFrame(a=rand(1:5,20),b=rand(\[:x,:y,:z\],20)) ut=unique(t) Int\[countnz(\[t\[j,:\]==ut\[i,:\] for j in 1:size…

---

## [Read data from excel starting from second row](https://discourse.julialang.org/t/read-data-from-excel-starting-from-second-row/10940)

<div class="topic-metadata">

**Author:** [@jacobcvt12](https://discourse.julialang.org/u/jacobcvt12)\
**Replies:** 5\
**Last updated:** [May 17, 2018, 4:42pm UTC](https://discourse.julialang.org/t/read-data-from-excel-starting-from-second-row/10940 "2018-05-17T16:42:29Z")

</div>

I’m trying to read data in an excel workbook that starts on the second row. Using ExcelFiles, I can I read into a dataframe if the data starts on the first row DataFrame(load(fname, "sheetname") But I’m not sure what t…

---

## ["Correct" way to document methods using \`where\` in the declaration?](https://discourse.julialang.org/t/correct-way-to-document-methods-using-where-in-the-declaration/10943)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 2\
**Last updated:** [May 17, 2018, 3:03pm UTC](https://discourse.julialang.org/t/correct-way-to-document-methods-using-where-in-the-declaration/10943 "2018-05-17T15:03:55Z")

</div>

I have a function whose declaration starts with function union(X::T, Y::T) where {T\<:BipartiteNetwork} I was wondering if there is a community standard about how to write the docstring for this method? I have currently …

---

## [How does broadcast! work ? Tips for memory efficiency while using 'kron'](https://discourse.julialang.org/t/how-does-broadcast-work-tips-for-memory-efficiency-while-using-kron/10957)

<div class="topic-metadata">

**Author:** [@amitjamadagni](https://discourse.julialang.org/u/amitjamadagni)\
**Replies:** 1\
**Last updated:** [May 17, 2018, 2:55pm UTC](https://discourse.julialang.org/t/how-does-broadcast-work-tips-for-memory-efficiency-while-using-kron/10957 "2018-05-17T14:55:40Z")

</div>

I was trying to use broadcast! in place of broadcast in the following code : function \_tensor\_product\_(st) ten = st\[1\] for s in st\[2:end\] ten = kron(ten, s) end return ten end @noinline functio…

---

## [How to force mixed-type array of just ints and floats?](https://discourse.julialang.org/t/how-to-force-mixed-type-array-of-just-ints-and-floats/10934)

<div class="topic-metadata">

**Author:** [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Replies:** 4\
**Last updated:** [May 16, 2018, 8:26pm UTC](https://discourse.julialang.org/t/how-to-force-mixed-type-array-of-just-ints-and-floats/10934 "2018-05-16T20:26:09Z")

</div>

I’d like to store a table as a mixed-type numeric array - just ints and floats. If I use \[brackets\] to initialize a vector of numeric values, Julia promotes the ints to floats and returns an array of floats. If I includ…

---

## [InexactError() when running Pkg.test("GLVisualize") with VirtualGL](https://discourse.julialang.org/t/inexacterror-when-running-pkg-test-glvisualize-with-virtualgl/10829)

<div class="topic-metadata">

**Author:** [@Quincy\_Wofford](https://discourse.julialang.org/u/Quincy_Wofford)\
**Replies:** 5\
**Last updated:** [May 16, 2018, 12:54pm UTC](https://discourse.julialang.org/t/inexacterror-when-running-pkg-test-glvisualize-with-virtualgl/10829 "2018-05-16T12:54:14Z")

</div>

I’m running Julia with VirtualGL on a remote visualization node, and when I attempt to run Pkg.test(“GLVisualize”) I get an “Inexact error()”. Not sure if this could be related to VGL, but I thought I’d mention it. Other…

---

## [Garbage collection of Julia code in C++](https://discourse.julialang.org/t/garbage-collection-of-julia-code-in-c/10894)

<div class="topic-metadata">

**Author:** [@vitreo12](https://discourse.julialang.org/u/vitreo12)\
**Replies:** 16\
**Last updated:** [May 16, 2018, 10:33am UTC](https://discourse.julialang.org/t/garbage-collection-of-julia-code-in-c/10894 "2018-05-16T10:33:19Z")

</div>

Hello everyone, I have a trivial question regarding the garbage collection for the c api of Julia. I am currently embedding Julia in a C++ class, and I need to access different mutable structs that I create in the C++ c…

---

## [Cannot install CUDAnative with Pkg3 (Pkg can)](https://discourse.julialang.org/t/cannot-install-cudanative-with-pkg3-pkg-can/10865)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 6\
**Last updated:** [May 16, 2018, 6:37am UTC](https://discourse.julialang.org/t/cannot-install-cudanative-with-pkg3-pkg-can/10865 "2018-05-16T06:37:49Z")

</div>

I tried Pkg3 with a local built master branch. But I cannot install CUDAnative with it. It seems that the version does not match? But I can install it with Pkg. Here is the error: julia\> Pkg3.add("CuArrays") Updating…

---

## [Improve the performance of multiplication of an arbitrary number of matrices](https://discourse.julialang.org/t/improve-the-performance-of-multiplication-of-an-arbitrary-number-of-matrices/10835)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 36\
**Last updated:** [May 16, 2018, 3:50am UTC](https://discourse.julialang.org/t/improve-the-performance-of-multiplication-of-an-arbitrary-number-of-matrices/10835 "2018-05-16T03:50:46Z")

</div>

Hi guys! I need to make a function that multiplies an arbitrary number of matrices. My current attempt is the following: @inline function compose\_rotation(D1::Matrix, Ds::Matrix...) for Di in Ds D1 = Di\*D1 …

---

## [Juliaism for vector within vector for arithmetic operations?](https://discourse.julialang.org/t/juliaism-for-vector-within-vector-for-arithmetic-operations/10915)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 5\
**Last updated:** [May 15, 2018, 9:58pm UTC](https://discourse.julialang.org/t/juliaism-for-vector-within-vector-for-arithmetic-operations/10915 "2018-05-15T21:58:16Z")

</div>

I would like to create one array, unnested, calculated from various arithmetic vector operations. this is easier to illustrate than to describe. julia\> 10 + \[ -1, +1\]\*2 ## ok 2-element Array{Int64,1}: 8 12 julia\> …

---

## [Choose a file interactively](https://discourse.julialang.org/t/choose-a-file-interactively/10910)

<div class="topic-metadata">

**Author:** [@jacobcvt12](https://discourse.julialang.org/u/jacobcvt12)\
**Replies:** 3\
**Last updated:** [May 15, 2018, 5:12pm UTC](https://discourse.julialang.org/t/choose-a-file-interactively/10910 "2018-05-15T17:12:25Z")

</div>

In R, the function file.choose() exists to choose files interactively. This is nice when sharing code with someone who is not a programmer. Is there anything similar in Julia?

---

## [Windows COM Client and sending emails through Outlook](https://discourse.julialang.org/t/windows-com-client-and-sending-emails-through-outlook/10887)

<div class="topic-metadata">

**Author:** [@jacobcvt12](https://discourse.julialang.org/u/jacobcvt12)\
**Replies:** 2\
**Last updated:** [May 15, 2018, 2:04pm UTC](https://discourse.julialang.org/t/windows-com-client-and-sending-emails-through-outlook/10887 "2018-05-15T14:04:52Z")

</div>

I currently have some R code that uses the package RDCOMClient, to send many generated emails through Microsoft Outlook. Is there any way to do this in Julia? I am not a Windows guy, so I don’t know if there might be som…

---

## [The Broadcasting API and small Unions](https://discourse.julialang.org/t/the-broadcasting-api-and-small-unions/10896)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 7\
**Last updated:** [May 15, 2018, 1:27pm UTC](https://discourse.julialang.org/t/the-broadcasting-api-and-small-unions/10896 "2018-05-15T13:27:27Z")

</div>

After trying some near examples and the docs, I have not yet made the Broadcasting API do this. More explicit guidance is appreciated. abstract type OtherAbstractFloat \<: AbstractFloat end primitive type Float64a \<: Ot…

---

## [Convert arrays to single precision](https://discourse.julialang.org/t/convert-arrays-to-single-precision/10903)

<div class="topic-metadata">

**Author:** [@jebej](https://discourse.julialang.org/u/jebej)\
**Replies:** 6\
**Last updated:** [May 15, 2018, 12:48pm UTC](https://discourse.julialang.org/t/convert-arrays-to-single-precision/10903 "2018-05-15T12:48:02Z")

</div>

Hello, I was wondering if there exists a function to convert objects, e.g. Array, SparseMatrix, special matrix types like Diagonal, etc…) to single precision. It should also handle converting objects of complex numbers …

---

## [Computational experiments: organising different algorithms, their parameters and results](https://discourse.julialang.org/t/computational-experiments-organising-different-algorithms-their-parameters-and-results/10774)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 22\
**Last updated:** [May 15, 2018, 12:43pm UTC](https://discourse.julialang.org/t/computational-experiments-organising-different-algorithms-their-parameters-and-results/10774 "2018-05-15T12:43:10Z")

</div>

Hi everyone, I am trying to run a bunch of computational experiments, different algorithms on different problems, using different sets of parameters each, pretty simply right? Well I am wondering what the best pipeline …

---

## [Getting types right with functional programming](https://discourse.julialang.org/t/getting-types-right-with-functional-programming/10906)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 0\
**Last updated:** [May 15, 2018, 10:58am UTC](https://discourse.julialang.org/t/getting-types-right-with-functional-programming/10906 "2018-05-15T10:58:39Z")

</div>

Hi, I want to process some records in an iterable, and wanted to try and do it in as functional style as possible: using BioSequences stream = open("tables3PITGs.fasta", "r") reader = FASTA.Reader(stream) # Set up reade…

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

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