# Latest

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

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

**Page:** 1198

---

## [PkgTemplate without git config](https://discourse.julialang.org/t/pkgtemplate-without-git-config/65524)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 1:59pm UTC](https://discourse.julialang.org/t/pkgtemplate-without-git-config/65524 "2021-11-24T13:59:17Z")

</div>

Can anyone help with using PkgTemplate without the need for setting up git user and email? t = Template(; user="foo", authors="bar", host="Others", plugins=\[ProjectFile, SrcDir\]) The error is \`ArgumentError: global git…

---

## [Boundary intervals for splines using CompactBases](https://discourse.julialang.org/t/boundary-intervals-for-splines-using-compactbases/71344)

<div class="topic-metadata">

**Author:** [@Dan.phi](https://discourse.julialang.org/u/Dan.phi)\
**Replies:** 4\
**Last updated:** [November 24, 2021, 11:44am UTC](https://discourse.julialang.org/t/boundary-intervals-for-splines-using-compactbases/71344 "2021-11-24T11:44:08Z")

</div>

I want to implement natural cubic splines in Julia via B-splines (which are a basis for splines). I found CompactBases.jl, which uses B-splines and allows me to evaluate the basis functions at a value x. Now, let the se…

---

## [Date Hour Method](https://discourse.julialang.org/t/date-hour-method/71978)

<div class="topic-metadata">

**Author:** [@luflarois](https://discourse.julialang.org/u/luflarois)\
**Replies:** 3\
**Last updated:** [November 24, 2021, 10:58am UTC](https://discourse.julialang.org/t/date-hour-method/71978 "2021-11-24T10:58:56Z")

</div>

Hi. I create a function to use Hour function: function createFileNames(steps,type,prefix,sufix,nml,dataIni) if type==1 for t = 1:steps h = (t-1)\*nml\["step"\] println(dataIni + Hour(h)) end end end But whe…

---

## [Query regarding type-stability of cat](https://discourse.julialang.org/t/query-regarding-type-stability-of-cat/72003)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [November 24, 2021, 11:39am UTC](https://discourse.julialang.org/t/query-regarding-type-stability-of-cat/72003 "2021-11-24T11:39:53Z")

</div>

The function cat seems to internally use cat\_t. The definition of cat\_t that is used in my case is @inline cat\_t(::Type{T}, X...; dims) where {T} = \_cat\_t(dims, T, X...) However, for some reason, the function \_cat\_t se…

---

## [Julia equivalence of Haskells unfoldr](https://discourse.julialang.org/t/julia-equivalence-of-haskells-unfoldr/17834)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 11\
**Last updated:** [November 24, 2021, 10:57am UTC](https://discourse.julialang.org/t/julia-equivalence-of-haskells-unfoldr/17834 "2021-11-24T10:57:13Z")

</div>

Might be a stupid question but I know julia has the foldl and foldr functions but I cannot find the unfold versions. For example in Haskell we have the unfoldr function which produces a list based on an initial value. Do…

---

## [Postdoctoral Position in Modelling of Deep Earthquake Processes](https://discourse.julialang.org/t/postdoctoral-position-in-modelling-of-deep-earthquake-processes/70633)

<div class="topic-metadata">

**Author:** [@mthielma](https://discourse.julialang.org/u/mthielma)\
**Replies:** 1\
**Last updated:** [November 24, 2021, 10:34am UTC](https://discourse.julialang.org/t/postdoctoral-position-in-modelling-of-deep-earthquake-processes/70633 "2021-11-24T10:34:25Z")

</div>

We are looking for a postdoctoral researcher to join the DFG funded Emmy Noether project QuakeID at the Bavarian Research Institute of Experimental Geochemistry and Geophysics (BGI) at the University of Bayreuth, Germany…

---

## [Unexpected (?) behaviour of \`values()\` for generic \`kwargs...\`](https://discourse.julialang.org/t/unexpected-behaviour-of-values-for-generic-kwargs/71938)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 4\
**Last updated:** [November 24, 2021, 10:02am UTC](https://discourse.julialang.org/t/unexpected-behaviour-of-values-for-generic-kwargs/71938 "2021-11-24T10:02:12Z")

</div>

If I define a function with kwargs..., then I can use keys() to get the names of whatever arguments were passed julia\> function printkeys(; kwargs...) println(keys(kwargs)) end printkeys (generic funct…

---

## [JuMP @constraint with sparse matrix](https://discourse.julialang.org/t/jump-constraint-with-sparse-matrix/71940)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 4\
**Last updated:** [November 24, 2021, 9:49am UTC](https://discourse.julialang.org/t/jump-constraint-with-sparse-matrix/71940 "2021-11-24T09:49:46Z")

</div>

I want to create PSD constraints with a sparse matrix of AffExpr as in the snippet below (rawdata is a Vector of tuples of the form (I, J, Va, Vs) containing row-col-values information) model = let println("Construc…

---

## [3D Vector Field interpolation (maybe with DIVAnd.jl)](https://discourse.julialang.org/t/3d-vector-field-interpolation-maybe-with-divand-jl/71233)

<div class="topic-metadata">

**Author:** [@dadaforpeace](https://discourse.julialang.org/u/dadaforpeace)\
**Replies:** 4\
**Last updated:** [November 24, 2021, 8:41am UTC](https://discourse.julialang.org/t/3d-vector-field-interpolation-maybe-with-divand-jl/71233 "2021-11-24T08:41:18Z")

</div>

Dear community, I would like to interpolate my 3D Vector Field with DIVAnd.jl (GitHub - gher-uliege/DIVAnd.jl: DIVAnd performs an n-dimensional variational analysis of arbitrarily located observations) without any succe…

---

## [Illegal memory access problem CUDA](https://discourse.julialang.org/t/illegal-memory-access-problem-cuda/71836)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 8\
**Last updated:** [November 24, 2021, 7:22am UTC](https://discourse.julialang.org/t/illegal-memory-access-problem-cuda/71836 "2021-11-24T07:22:11Z")

</div>

I am creating some dynamic shared memory boolean arrays in kernel, and it give me consistently ERROR: LoadError: CUDA error: an illegal memory access was encountered (code 700, ERROR\_ILLEGAL\_ADDRESS) Stacktrace: \[1\] t…

---

## [How to convert LinearAlgebra.Transpose into Array?](https://discourse.julialang.org/t/how-to-convert-linearalgebra-transpose-into-array/71932)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 8\
**Last updated:** [November 24, 2021, 6:44am UTC](https://discourse.julialang.org/t/how-to-convert-linearalgebra-transpose-into-array/71932 "2021-11-24T06:44:44Z")

</div>

I’m first converting a dataframe to array: a = Matrix(df\[:,\["col1","col2"\]\]) a = transpose(a) println(typeof(a)) =\> LinearAlgebra.Transpose{Union{Missing, Float64},Array{Union{Missing, Float64},2}} The problem is that…

---

## [How to overdub static parameters in overdubbing](https://discourse.julialang.org/t/how-to-overdub-static-parameters-in-overdubbing/71993)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 6:15am UTC](https://discourse.julialang.org/t/how-to-overdub-static-parameters-in-overdubbing/71993 "2021-11-24T06:15:22Z")

</div>

Hello, This question has stemmed from the work described in Does overdubbing in generated function inserts inlined code , where I would like to understand the code rewriting of CodeInstances. I decided to try to do ever…

---

## [VS Code Keybinding](https://discourse.julialang.org/t/vs-code-keybinding/71992)

<div class="topic-metadata">

**Author:** [@flin](https://discourse.julialang.org/u/flin)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 4:36am UTC](https://discourse.julialang.org/t/vs-code-keybinding/71992 "2021-11-24T04:36:48Z")

</div>

Hello, I am wondering if there is a way to change the behavior of ctrl + Enter in later versions to match that in version 1.4.3 (i.e. copying the current line or selected lines to REPL and evaluating it). I understand t…

---

## [Module Generation from macros](https://discourse.julialang.org/t/module-generation-from-macros/2555)

<div class="topic-metadata">

**Author:** [@mbeltagy](https://discourse.julialang.org/u/mbeltagy)\
**Replies:** 8\
**Last updated:** [November 24, 2021, 4:29am UTC](https://discourse.julialang.org/t/module-generation-from-macros/2555 "2021-11-24T04:29:44Z")

</div>

I am trying to generate modules using a macro, but it keeps failing. I am not sure how to handle this. EG. julia\> macro mymodule(name) quote module ($name) end …

---

## [Packages for kinematic trees?](https://discourse.julialang.org/t/packages-for-kinematic-trees/55963)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 3\
**Last updated:** [November 24, 2021, 3:34am UTC](https://discourse.julialang.org/t/packages-for-kinematic-trees/55963 "2021-11-24T03:34:58Z")

</div>

tl;dr: Any good packages for defining trees of named homogeneous transforms? I have a use case and wonder if someone here might help accelerate my search for existing solutions that I can adopt or build upon. Basically …

---

## [VS Code Extension Error](https://discourse.julialang.org/t/vs-code-extension-error/71757)

<div class="topic-metadata">

**Author:** [@CaoHua](https://discourse.julialang.org/u/CaoHua)\
**Replies:** 3\
**Last updated:** [November 24, 2021, 2:31am UTC](https://discourse.julialang.org/t/vs-code-extension-error/71757 "2021-11-24T02:31:35Z")

</div>

Dears, My VS Code could not start Julia since Julia Extension 1.4.0 (till latest 1.5.5). There is an error saying the julia executable path is not correct. However, it is actually right. When I go back to the older ve…

---

## [\[ANN\] SpatialGraphs.jl - Types and constructors for spatially referenced graphs](https://discourse.julialang.org/t/ann-spatialgraphs-jl-types-and-constructors-for-spatially-referenced-graphs/71912)

<div class="topic-metadata">

**Author:** [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Replies:** 3\
**Last updated:** [November 23, 2021, 11:19pm UTC](https://discourse.julialang.org/t/ann-spatialgraphs-jl-types-and-constructors-for-spatially-referenced-graphs/71912 "2021-11-23T23:19:47Z")

</div>

SpatialGraphs.jl SpatialGraphs.jl establishes types and constructors for spatially referenced graphs, (e.g. where graph vertices correspond to pixels in a raster). The parent abstract type is an AbstractSpatialGraph , wh…

---

## [Implementing the Social Force Model from Helbing 1995](https://discourse.julialang.org/t/implementing-the-social-force-model-from-helbing-1995/71960)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 12\
**Last updated:** [November 23, 2021, 10:54pm UTC](https://discourse.julialang.org/t/implementing-the-social-force-model-from-helbing-1995/71960 "2021-11-23T22:54:45Z")

</div>

Hey everyone, I’m trying to implement the social force model for pedestrian dynamics, which models pedestrians using physics. I’m not sure what the best course of action is, specifically in terms of which packages I coul…

---

## [Package usage surveys](https://discourse.julialang.org/t/package-usage-surveys/71984)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 5\
**Last updated:** [November 23, 2021, 10:54pm UTC](https://discourse.julialang.org/t/package-usage-surveys/71984 "2021-11-23T22:54:29Z")

</div>

Hm. Isn’t this the kind of question every package (maintainer) would ask? (spam alert;) Maybe a better place would be announcements? Like ‘we are doing a poll…’. Or do we need a new category for this?

---

## [Desktop Wallpapers ( related to Julia Programming ) 🎨](https://discourse.julialang.org/t/desktop-wallpapers-related-to-julia-programming/19562)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 8\
**Last updated:** [November 23, 2021, 10:43pm UTC](https://discourse.julialang.org/t/desktop-wallpapers-related-to-julia-programming/19562 "2021-11-23T22:43:38Z")

</div>

I am looking for wallpapers (desktop background images) (related to Julia programming ) If you have created - please share! :art: :sun\_with\_face: :julia: with license Links welcome!

---

## [Push!() tokendocument into corpus](https://discourse.julialang.org/t/push-tokendocument-into-corpus/71981)

<div class="topic-metadata">

**Author:** [@korilium](https://discourse.julialang.org/u/korilium)\
**Replies:** 3\
**Last updated:** [November 23, 2021, 10:43pm UTC](https://discourse.julialang.org/t/push-tokendocument-into-corpus/71981 "2021-11-23T22:43:21Z")

</div>

Hello everybody, I am trying to push Tokendocument into a corpus from the textanlysis.jl package. Here is the code y = Corpus(\[\]) for i in data.row x = TokenDocument(\[m.match for m = eachmatch(r"\\\\\[rnt\](\*SKIP)(\*F)|\\…

---

## [Way to plot graph of codebase? (i.e. function circles and dependency arrows)](https://discourse.julialang.org/t/way-to-plot-graph-of-codebase-i-e-function-circles-and-dependency-arrows/3450)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 5\
**Last updated:** [November 23, 2021, 10:13pm UTC](https://discourse.julialang.org/t/way-to-plot-graph-of-codebase-i-e-function-circles-and-dependency-arrows/3450 "2021-11-23T22:13:26Z")

</div>

I’m getting to the point where I have a decent amount of functions in my codebase. I was wondering if there was a way to automatically construct an image w/ a graph showing: the functions, macros, etc their interdepen…

---

## [How to convert a (gray level) image array to a contrast array?](https://discourse.julialang.org/t/how-to-convert-a-gray-level-image-array-to-a-contrast-array/71976)

<div class="topic-metadata">

**Author:** [@RexXI](https://discourse.julialang.org/u/RexXI)\
**Replies:** 2\
**Last updated:** [November 23, 2021, 9:43pm UTC](https://discourse.julialang.org/t/how-to-convert-a-gray-level-image-array-to-a-contrast-array/71976 "2021-11-23T21:43:43Z")

</div>

How would one call for/code a function such that a grey level image, say, “x,” could be converted to a contrast array = “x\_contrast?” Thanks!

---

## [Automatic Creation of a Grid of Tuning Parameters](https://discourse.julialang.org/t/automatic-creation-of-a-grid-of-tuning-parameters/71902)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 4\
**Last updated:** [November 23, 2021, 9:10pm UTC](https://discourse.julialang.org/t/automatic-creation-of-a-grid-of-tuning-parameters/71902 "2021-11-23T21:10:17Z")

</div>

Currently, in R’s caret package if we do something like this: fitControl \<- trainControl(method = "repeatedcv", number=10,repeats=5) model\_rf = train(responder~ ., data=trainData, method='rf',trControl=fitControl) a gr…

---

## [Configurate database connection (APP created with Genie)](https://discourse.julialang.org/t/configurate-database-connection-app-created-with-genie/71918)

<div class="topic-metadata">

**Author:** [@fms-1988](https://discourse.julialang.org/u/fms-1988)\
**Replies:** 9\
**Last updated:** [November 23, 2021, 9:07pm UTC](https://discourse.julialang.org/t/configurate-database-connection-app-created-with-genie/71918 "2021-11-23T21:07:02Z")

</div>

I bootstrapped an APP using Genie. I chose the MySQL DB. I edited the db/connection.yml file as required: env: ENV\["GENIE\_ENV"\] dev: adapter: MySQL database: db host: localhost username: felipe password:…

---

## [MPI Configuration](https://discourse.julialang.org/t/mpi-configuration/71968)

<div class="topic-metadata">

**Author:** [@spasmann](https://discourse.julialang.org/u/spasmann)\
**Replies:** 0\
**Last updated:** [November 23, 2021, 7:33pm UTC](https://discourse.julialang.org/t/mpi-configuration/71968 "2021-11-23T19:33:15Z")

</div>

Hello, I’m trying to configure MPI.jl. I installed OpenMPI according to these instructions: https://wiki.helsinki.fi/display/HUGG/Open+MPI+install+on+Mac+OS+X I’ve confirmed that /usr/local/bin is in $PATH. Then I fol…

---

## [How to cast function input parameters](https://discourse.julialang.org/t/how-to-cast-function-input-parameters/71910)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 10\
**Last updated:** [November 23, 2021, 8:32pm UTC](https://discourse.julialang.org/t/how-to-cast-function-input-parameters/71910 "2021-11-23T20:32:27Z")

</div>

In the code below, I have a Float32 vector to which I would like to add a number. To ensure that computation happens at single precision, I force the input parameters to be Float32. Is it possible to allow the function t…

---

## [Heatmap where x-labels and y-labels are strings](https://discourse.julialang.org/t/heatmap-where-x-labels-and-y-labels-are-strings/71963)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 2\
**Last updated:** [November 23, 2021, 8:28pm UTC](https://discourse.julialang.org/t/heatmap-where-x-labels-and-y-labels-are-strings/71963 "2021-11-23T20:28:06Z")

</div>

Could any one please help me with plotting a heatmap when x-axis and y-axis are strings. For example, the following code would work: using CairoMakie xs = 1:5 ys = 1:10 zs = \[rand(1)\[1\] for x in xs, y in ys\] heatmap(x…

---

## [Convert ILP variables to strict integer values in JuMP](https://discourse.julialang.org/t/convert-ilp-variables-to-strict-integer-values-in-jump/71957)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 7:50pm UTC](https://discourse.julialang.org/t/convert-ilp-variables-to-strict-integer-values-in-jump/71957 "2021-11-23T19:50:01Z")

</div>

It has often happened that after solving a MILP, my integer or binary variables are getting a value something like 4.237436454375536e-11 or 1.0000000000008162 or even 4.0. In other words even though a variable is meant t…

---

## [Who invented object oriented programming?](https://discourse.julialang.org/t/who-invented-object-oriented-programming/71830)

<div class="topic-metadata">

**Author:** [@rmz](https://discourse.julialang.org/u/rmz)\
**Replies:** 4\
**Last updated:** [November 23, 2021, 6:28pm UTC](https://discourse.julialang.org/t/who-invented-object-oriented-programming/71830 "2021-11-23T18:28:45Z")

</div>

Ehem. Object oriented programming wasn’t invented by Alan Kay, it was invented by Ole Johan Dahl and Kristen Nygaard. Kristen Nygaard - A.M. Turing Award Laureate :slight\_smile:

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

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