# Latest

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

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

**Page:** 1965

---

## [How to add/edit values in an NDSparse?](https://discourse.julialang.org/t/how-to-add-edit-values-in-an-ndsparse/26135)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 9\
**Last updated:** [July 8, 2019, 3:07pm UTC](https://discourse.julialang.org/t/how-to-add-edit-values-in-an-ndsparse/26135 "2019-07-08T15:07:55Z")

</div>

(crosposting from this so question) How to add or edit values in an sparse indexed table ? From the documentation I understood that the NDSparse object itself is immutable but not the underlying data, so I “understand” …

---

## [Can i declare struct with one type or enother using ||](https://discourse.julialang.org/t/can-i-declare-struct-with-one-type-or-enother-using/26120)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 2\
**Last updated:** [July 8, 2019, 2:07pm UTC](https://discourse.julialang.org/t/can-i-declare-struct-with-one-type-or-enother-using/26120 "2019-07-08T14:07:50Z")

</div>

can i make something like this struct mystruct{T} where T \<: Int || tuple{Int,Int} a::T end

---

## [Surprising deserialization](https://discourse.julialang.org/t/surprising-deserialization/26119)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 6\
**Last updated:** [July 8, 2019, 1:43pm UTC](https://discourse.julialang.org/t/surprising-deserialization/26119 "2019-07-08T13:43:36Z")

</div>

This is more of a heads up for people using de- and serialize from Serialization than anything else. It’s very clear that serialization isn’t meant to be used this way (see here), but thought it would be worth posting: u…

---

## [\`max\` and \`min\` of single dates](https://discourse.julialang.org/t/max-and-min-of-single-dates/26074)

<div class="topic-metadata">

**Author:** [@pfarndt](https://discourse.julialang.org/u/pfarndt)\
**Replies:** 3\
**Last updated:** [July 8, 2019, 1:18pm UTC](https://discourse.julialang.org/t/max-and-min-of-single-dates/26074 "2019-07-08T13:18:18Z")

</div>

I want aggregate dates and find the most recent date in a bunch of dates. For example I want to know the age of the youngest kid in a family. To do this I have to find the max of several dates. If there are a least two k…

---

## [UndefVarError: readcsv not defined](https://discourse.julialang.org/t/undefvarerror-readcsv-not-defined/26112)

<div class="topic-metadata">

**Author:** [@hopezh](https://discourse.julialang.org/u/hopezh)\
**Replies:** 3\
**Last updated:** [July 8, 2019, 12:42pm UTC](https://discourse.julialang.org/t/undefvarerror-readcsv-not-defined/26112 "2019-07-08T12:42:04Z")

</div>

I’m following Huda Nassar’s tutorial on Julia for data science. However, I’m unable to run the readcsv or readdlm command in the very beginning. The error message is: UndefVarError: readcsv not defined Stacktrace: …

---

## [Question about matrix](https://discourse.julialang.org/t/question-about-matrix/26010)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 8\
**Last updated:** [July 8, 2019, 12:31pm UTC](https://discourse.julialang.org/t/question-about-matrix/26010 "2019-07-08T12:31:19Z")

</div>

@variable(model,Y\[1:n\], lower\_bound=0) L = Int64.(model.L) D = Float64.(model.TD) T = Float64.(model.TP) n = 2 m = 3 @objective(model,Max,sum(Y\[i\]\*L\[i\] for i in 1:2)) Yy = transpose(Y) global a = Int64 global b …

---

## [What is this empty! function in Julia?](https://discourse.julialang.org/t/what-is-this-empty-function-in-julia/26132)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 2\
**Last updated:** [July 8, 2019, 11:09am UTC](https://discourse.julialang.org/t/what-is-this-empty-function-in-julia/26132 "2019-07-08T11:09:50Z")

</div>

Hi, the following is the code, excepted from OpenStreetMap package. This interesting empty! function confuses me. type OSMattributes oneway::Bool oneway\_override::Bool oneway\_reverse::Bool visible::Bool …

---

## [Expose (document) \`Pkg.generate\` API for programmatic usage](https://discourse.julialang.org/t/expose-document-pkg-generate-api-for-programmatic-usage/26115)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 3\
**Last updated:** [July 8, 2019, 9:46am UTC](https://discourse.julialang.org/t/expose-document-pkg-generate-api-for-programmatic-usage/26115 "2019-07-08T09:46:12Z")

</div>

I don’t know if this is on the roadmap but I’d like to encourage documenting and exposing the Pkg.generate API for programmatic usage. Recently I’ve been working on adding a plugins interface for Genie, and part of it I …

---

## [A reverse! for CuArrays and Nd arrays](https://discourse.julialang.org/t/a-reverse-for-cuarrays-and-nd-arrays/24731)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 6\
**Last updated:** [July 8, 2019, 9:06am UTC](https://discourse.julialang.org/t/a-reverse-for-cuarrays-and-nd-arrays/24731 "2019-07-08T09:06:12Z")

</div>

Dear All, I have a 3d array V = zeros(N,N,N) and I would like to reverse it with respect to the last component. I achieve this by using the following function. This works well using CuArray (on master, see link) for A b…

---

## [Version of package = Version of documentation != Version of \`project.toml\`](https://discourse.julialang.org/t/version-of-package-version-of-documentation-version-of-project-toml/20582)

<div class="topic-metadata">

**Author:** [@timueh](https://discourse.julialang.org/u/timueh)\
**Replies:** 6\
**Last updated:** [July 8, 2019, 5:46am UTC](https://discourse.julialang.org/t/version-of-package-version-of-documentation-version-of-project-toml/20582 "2019-07-08T05:46:27Z")

</div>

I have a question about versioning. On GitHub, I can add a version number to my release of the master branch. This will then become the version of the package and the version of the documentation that Documenter.jl creat…

---

## [Understanding do notation, type-stability for function with other functions as arguments](https://discourse.julialang.org/t/understanding-do-notation-type-stability-for-function-with-other-functions-as-arguments/7640)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [July 8, 2019, 5:11am UTC](https://discourse.julialang.org/t/understanding-do-notation-type-stability-for-function-with-other-functions-as-arguments/7640 "2019-07-08T05:11:49Z")

</div>

If I do function apply\_fn2a(fns::Tuple,a) Tuple(fn(a) for fn in fns) end using StatsBase const x = rand(1:5,1000) @code\_warntype apply\_fn2a((countmap, sum, mean), x) then the output type is simply a generic Tuple.…

---

## [Chaostools reinit! function](https://discourse.julialang.org/t/chaostools-reinit-function/26046)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 11\
**Last updated:** [July 7, 2019, 10:50pm UTC](https://discourse.julialang.org/t/chaostools-reinit-function/26046 "2019-07-07T22:50:38Z")

</div>

Hi, so I am calculating Lyapunov exponents for a lot of initial values, parameters for specific systems. I want to make heavy use of the reinit! function for integrator objects, especially the tangent\_integrator from th…

---

## [Nested optimization](https://discourse.julialang.org/t/nested-optimization/26061)

<div class="topic-metadata">

**Author:** [@Farnazmdi](https://discourse.julialang.org/u/Farnazmdi)\
**Replies:** 2\
**Last updated:** [July 6, 2019, 6:16pm UTC](https://discourse.julialang.org/t/nested-optimization/26061 "2019-07-06T18:16:19Z")

</div>

Hi, I have a model from which I estimate some parameters, and the parameters are “data” to my second model. I want to be able to optimize the parameters of the first model in a way that the second model fits well. Since…

---

## [Why does this nonbroadcast operation on Day vector give CompoundPeriod?](https://discourse.julialang.org/t/why-does-this-nonbroadcast-operation-on-day-vector-give-compoundperiod/26059)

<div class="topic-metadata">

**Author:** [@gajomi](https://discourse.julialang.org/u/gajomi)\
**Replies:** 1\
**Last updated:** [July 7, 2019, 3:37pm UTC](https://discourse.julialang.org/t/why-does-this-nonbroadcast-operation-on-day-vector-give-compoundperiod/26059 "2019-07-07T15:37:21Z")

</div>

I get different behavior on + and .+ in the following situation: \>foo = Day.(\[1653, 1618, 1505\]) \>baz = Day.(\[7, 7, 7\]) \>bing = foo.-baz \>bong = foo-baz \>typeof.(\[foo,baz,bing,bong\]) 4-element Array{DataType,1}: Array{…

---

## [What is the purpose of the following function?](https://discourse.julialang.org/t/what-is-the-purpose-of-the-following-function/26073)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 2\
**Last updated:** [July 7, 2019, 3:39pm UTC](https://discourse.julialang.org/t/what-is-the-purpose-of-the-following-function/26073 "2019-07-07T15:39:20Z")

</div>

I’m reading the package OpenStreetMapX, and the following function confused me. ############################################# ### Find the Closest Point Within Bounds ### ############################################# …

---

## [Registered package files have different file permissions than non-registered](https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 2\
**Last updated:** [July 7, 2019, 12:43pm UTC](https://discourse.julialang.org/t/registered-package-files-have-different-file-permissions-than-non-registered/26111 "2019-07-07T12:43:55Z")

</div>

Genie.jl packs a series of template files for bootstrapping a new user app. These are bundled within the Genie.jl package and then copied and modified as part of generating a new user app. When using pkg\> add https://gi…

---

## [Topic ressurection and Julia 1.0](https://discourse.julialang.org/t/topic-ressurection-and-julia-1-0/20009)

<div class="topic-metadata">

**Author:** [@Seanny123](https://discourse.julialang.org/u/Seanny123)\
**Replies:** 1\
**Last updated:** [January 23, 2019, 11:24pm UTC](https://discourse.julialang.org/t/topic-ressurection-and-julia-1-0/20009 "2019-01-23T23:24:21Z")

</div>

Recently, I’ve been coming across various solved topics which predate Julia 1.0. Given I wish to see an updated answer, should I: Start a new topic referencing the old topic Reply to the original topic

---

## [Useful Julia Modules?](https://discourse.julialang.org/t/useful-julia-modules/17437)

<div class="topic-metadata">

**Author:** [@jandehaan](https://discourse.julialang.org/u/jandehaan)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 3:47pm UTC](https://discourse.julialang.org/t/useful-julia-modules/17437 "2018-11-12T15:47:22Z")

</div>

The Python wiki has a page listing useful Python modules. Does a similar listing exist for Julia modules?

---

## [Should we have a Pkg-Announcements channel?](https://discourse.julialang.org/t/should-we-have-a-pkg-announcements-channel/15168)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 11\
**Last updated:** [March 21, 2019, 5:02pm UTC](https://discourse.julialang.org/t/should-we-have-a-pkg-announcements-channel/15168 "2019-03-21T17:02:54Z")

</div>

Package announcements, kinda go all over the place. A lot in Community. which I think is better served to actually discuss the community, with things like meetups, collaborations and talking about how to communicate…

---

## [Strange allocations with default positional argument and static arrays](https://discourse.julialang.org/t/strange-allocations-with-default-positional-argument-and-static-arrays/26069)

<div class="topic-metadata">

**Author:** [@pkofod](https://discourse.julialang.org/u/pkofod)\
**Replies:** 6\
**Last updated:** [July 7, 2019, 11:39am UTC](https://discourse.julialang.org/t/strange-allocations-with-default-positional-argument-and-static-arrays/26069 "2019-07-07T11:39:50Z")

</div>

I am wondering why the second and third version allocates. What am I missing here? \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | …

---

## [Why are there so little categories and optional tags?](https://discourse.julialang.org/t/why-are-there-so-little-categories-and-optional-tags/25090)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 5\
**Last updated:** [June 10, 2019, 5:30pm UTC](https://discourse.julialang.org/t/why-are-there-so-little-categories-and-optional-tags/25090 "2019-06-10T17:30:22Z")

</div>

In this site, whenever I am looking for an optional tag to better fit my question into a subdomain, I can hardly find one specific enough. For example, I cannot find promotion or conversion, and for types, there are onl…

---

## [How do I change my username?](https://discourse.julialang.org/t/how-do-i-change-my-username/12593)

<div class="topic-metadata">

**Author:** [@ashefa](https://discourse.julialang.org/u/ashefa)\
**Replies:** 3\
**Last updated:** [July 23, 2018, 4:17pm UTC](https://discourse.julialang.org/t/how-do-i-change-my-username/12593 "2018-07-23T16:17:50Z")

</div>

I want to change my username (from a.shefaei to ashefa), but this option is disabled for me. Is there a way to do this?

---

## [Maximum line length for code w/o scrollbars?](https://discourse.julialang.org/t/maximum-line-length-for-code-w-o-scrollbars/24726)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [May 29, 2019, 4:11pm UTC](https://discourse.julialang.org/t/maximum-line-length-for-code-w-o-scrollbars/24726 "2019-05-29T16:11:38Z")

</div>

I am wondering about the maximum line length I can use on this forum for displayed code that doesn’t result in a scrollbar. I found that 70 works OK, but it depends on the magnification. Is there a recommended value? T…

---

## [Julia computing newsletter incorrectly renders my name](https://discourse.julialang.org/t/julia-computing-newsletter-incorrectly-renders-my-name/23003)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 4:41pm UTC](https://discourse.julialang.org/t/julia-computing-newsletter-incorrectly-renders-my-name/23003 "2019-04-10T16:41:09Z")

</div>

I’m not sure if this is the right category, but everytime I get a newsletter, my name is not displayed correctly as it should be written as Tamás. I don’t think that this is gmail’s fault, but don’t have any idea wher…

---

## [Showing whole threads instead of a small part of it?](https://discourse.julialang.org/t/showing-whole-threads-instead-of-a-small-part-of-it/17783)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 5\
**Last updated:** [November 21, 2018, 5:45pm UTC](https://discourse.julialang.org/t/showing-whole-threads-instead-of-a-small-part-of-it/17783 "2018-11-21T17:45:34Z")

</div>

When you want to view a long thread here at julia discourse only a small section of the thread is shown at every moment, and that section changes as you scroll down or up the page. Sometimes I use the ctrl+F function on…

---

## [File chooser GUI?](https://discourse.julialang.org/t/file-chooser-gui/26090)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [July 7, 2019, 10:35am UTC](https://discourse.julialang.org/t/file-chooser-gui/26090 "2019-07-07T10:35:04Z")

</div>

Forgive me if I have asked this question already. I commonly work in the REPL and like to test new packages to read various data formats - today DICOM format, as I used to work in medial imaging. You have to form a file…

---

## [\[ANN\] blog post benchmarking julia vs R Gaussian mixture models](https://discourse.julialang.org/t/ann-blog-post-benchmarking-julia-vs-r-gaussian-mixture-models/26071)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [July 7, 2019, 6:49am UTC](https://discourse.julialang.org/t/ann-blog-post-benchmarking-julia-vs-r-gaussian-mixture-models/26071 "2019-07-07T06:49:09Z")

</div>

hi all! I wrote up a quick blog post on my first experiences with the GaussianMixtures.jl package by @davidavdav. My main alternative would be an R implementation, hence the benchmark is comparing 2 R with 2 julia imple…

---

## [Mean of array](https://discourse.julialang.org/t/mean-of-array/26081)

<div class="topic-metadata">

**Author:** [@erik\_michtich](https://discourse.julialang.org/u/erik_michtich)\
**Replies:** 3\
**Last updated:** [July 7, 2019, 4:33am UTC](https://discourse.julialang.org/t/mean-of-array/26081 "2019-07-07T04:33:30Z")

</div>

Hello, Unfortunately, i am a complete newbie to julia and need some help. I have an Array with pretty different point and should compute a straighter curve, probably of means. Does anybody know how i can do this, are th…

---

## [Check for element type inside a module (Images)](https://discourse.julialang.org/t/check-for-element-type-inside-a-module-images/26085)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 1\
**Last updated:** [July 7, 2019, 3:37am UTC](https://discourse.julialang.org/t/check-for-element-type-inside-a-module-images/26085 "2019-07-07T03:37:55Z")

</div>

I am trying to check the type of the elements of an image that is passed to a function which is inside a module. Consider I define img as follows: using Images img = colorview(Gray, array); Then inside the function in…

---

## [Base.contains?](https://discourse.julialang.org/t/base-contains/26084)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 1\
**Last updated:** [July 7, 2019, 12:12am UTC](https://discourse.julialang.org/t/base-contains/26084 "2019-07-07T00:12:56Z")

</div>

What happened to Base.contains? What replaced it? I was using it to check whether a substring exists? Thanks

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

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