# Latest

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

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

**Page:** 1594

---

## [How to use Regex() function?](https://discourse.julialang.org/t/how-to-use-regex-function/48891)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 5\
**Last updated:** [October 24, 2020, 11:18am UTC](https://discourse.julialang.org/t/how-to-use-regex-function/48891 "2020-10-24T11:18:16Z")

</div>

r"(?\<=NH3\\)\\\[)\\w+(?=\\\])" is ok but Regex("(?\<=NH3\\)\\\[)\\w+(?=\\\])") reports ERROR: LoadError: syntax: invalid escape sequence why?

---

## [DiffEquations and DateTime abscissa](https://discourse.julialang.org/t/diffequations-and-datetime-abscissa/48738)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [October 24, 2020, 10:09am UTC](https://discourse.julialang.org/t/diffequations-and-datetime-abscissa/48738 "2020-10-24T10:09:50Z")

</div>

I’m solving an ODE, and want to change the time axis (abscissa) to a Date – or rather: DateTime. using Plots, Dates, DifferentialEquations # # test case tust!(x,p,t) = -x/p + 2sin(t\*2pi) # x0 = 3. p = 0.5 tspan=(0.,10) …

---

## [Plotting Unitful Functions](https://discourse.julialang.org/t/plotting-unitful-functions/48918)

<div class="topic-metadata">

**Author:** [@aatifsyed](https://discourse.julialang.org/u/aatifsyed)\
**Replies:** 8\
**Last updated:** [October 24, 2020, 9:20am UTC](https://discourse.julialang.org/t/plotting-unitful-functions/48918 "2020-10-24T09:20:57Z")

</div>

Hi All, Ramping up on Julia, so forgive any naivety I’m hitting an error when trying to plot a function in a unitful way: julia\> using Unitful, UnitfulRecipes, Plots julia\> """ The Severinghaus Oxygen Dissocia…

---

## [Unsupported architecture](https://discourse.julialang.org/t/unsupported-architecture/48786)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 16\
**Last updated:** [October 24, 2020, 8:20am UTC](https://discourse.julialang.org/t/unsupported-architecture/48786 "2020-10-24T08:20:59Z")

</div>

I just updated to MacOS 10.15.7 and am having some registries trouble. I try to add LinearAlgebra (tested with other basic pkgs too) and receive the following error. Any idea what might be causing this and how to fix? …

---

## [\[ANN\] ReusePatterns.jl](https://discourse.julialang.org/t/ann-reusepatterns-jl/19594)

<div class="topic-metadata">

**Author:** [@gcalderone](https://discourse.julialang.org/u/gcalderone)\
**Replies:** 1\
**Last updated:** [October 24, 2020, 7:59am UTC](https://discourse.julialang.org/t/ann-reusepatterns-jl/19594 "2020-10-24T07:59:12Z")

</div>

Hi Julians! I’m pleased to announce ReusePatterns.jl, a collection of tools aimed at implementing code reusing patterns in Julia. Specifically, the package allows to easily implement composition and concrete subtyping …

---

## [RowEchelon function reef](https://discourse.julialang.org/t/rowechelon-function-reef/48842)

<div class="topic-metadata">

**Author:** [@carloslesmes](https://discourse.julialang.org/u/carloslesmes)\
**Replies:** 7\
**Last updated:** [October 24, 2020, 7:32am UTC](https://discourse.julialang.org/t/rowechelon-function-reef/48842 "2020-10-24T07:32:53Z")

</div>

using RowEchelon A=\[1 2; 3 4\] rref(transpose(A)) throws error

---

## [CUDA under julia 1.5.0](https://discourse.julialang.org/t/cuda-under-julia-1-5-0/44789)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 13\
**Last updated:** [October 24, 2020, 6:46am UTC](https://discourse.julialang.org/t/cuda-under-julia-1-5-0/44789 "2020-10-24T06:46:03Z")

</div>

Hi, this is ubuntu 20.04 fresh install, also Julia 1.5.0 add CUDA \[ Info: Resolving package identifier \`CUDA\` as a directory at \`~/CUDA\`. ERROR: Did not find a git repository at \`CUDA\` no CUDA whatsoever… what am I do…

---

## [Cubic interpolation](https://discourse.julialang.org/t/cubic-interpolation/34552)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 18\
**Last updated:** [October 24, 2020, 6:39am UTC](https://discourse.julialang.org/t/cubic-interpolation/34552 "2020-10-24T06:39:42Z")

</div>

Interpolations.jl: The API may be clever, but it isn’t easy to use. How do I interpolate a set of points with a cubic curve? I tried this: npts = size(xyz,1); s = fill(0.0, npts); for j in 2:npts s\[j\] …

---

## [ForwardDiff and custom structure in DifferentialEquations](https://discourse.julialang.org/t/forwarddiff-and-custom-structure-in-differentialequations/47488)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 2\
**Last updated:** [October 24, 2020, 6:30am UTC](https://discourse.julialang.org/t/forwarddiff-and-custom-structure-in-differentialequations/47488 "2020-10-24T06:30:39Z")

</div>

Hi, I am using DifferentialEquations with callbacks to solve a differential equation with parameters that change at some point in time. The solution works fine, it is taken directly from the documentation for Differentia…

---

## [Julia 1.5 on Windows Terminal](https://discourse.julialang.org/t/julia-1-5-on-windows-terminal/44189)

<div class="topic-metadata">

**Author:** [@yutaka](https://discourse.julialang.org/u/yutaka)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 4:47pm UTC](https://discourse.julialang.org/t/julia-1-5-on-windows-terminal/44189 "2020-08-03T16:47:34Z")

</div>

I tried to use Julia 1.5 on Windows Terminal. I put the following entry to settings.json. "commandline": "powershell.exe C:\\\\Users\\\\myname\\\\AppData\\\\Local\\\\Programs\\\\Julia 1.5.0\\\\bin\\\\julia.exe", It didn’t work because…

---

## [How can I do arithmetics with Char objects?](https://discourse.julialang.org/t/how-can-i-do-arithmetics-with-char-objects/48908)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 15\
**Last updated:** [October 24, 2020, 2:58am UTC](https://discourse.julialang.org/t/how-can-i-do-arithmetics-with-char-objects/48908 "2020-10-24T02:58:41Z")

</div>

Hi, I’m trying to subtract to char, but goting this issue - ERROR: InexactError: trunc(UInt32, -65) Please, may someone help? function generate\_frequencies(data::String) data = replace(strip(lowercase(data)), "\\n"…

---

## [A bit of help with objects and arrays](https://discourse.julialang.org/t/a-bit-of-help-with-objects-and-arrays/48892)

<div class="topic-metadata">

**Author:** [@deadface](https://discourse.julialang.org/u/deadface)\
**Replies:** 4\
**Last updated:** [October 24, 2020, 1:03am UTC](https://discourse.julialang.org/t/a-bit-of-help-with-objects-and-arrays/48892 "2020-10-24T01:03:09Z")

</div>

Hi Everyone I am yet another new Julia language user and I come from a C/Fortran background. So I am pretty weak with some of the object concepts and advanced array syntax. (I will figure it out). I am primarily inte…

---

## [Show an object in extended form vs short form](https://discourse.julialang.org/t/show-an-object-in-extended-form-vs-short-form/48792)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 5\
**Last updated:** [October 23, 2020, 7:49pm UTC](https://discourse.julialang.org/t/show-an-object-in-extended-form-vs-short-form/48792 "2020-10-23T19:49:30Z")

</div>

my problem is the following: I have a type with fields, and i want those fields to be displayed with additional detail when shown alone in the REPL: julia\> a = MyType(;params....) MyType properties, with: a: .... b: ..…

---

## [Function, constants, globals](https://discourse.julialang.org/t/function-constants-globals/48744)

<div class="topic-metadata">

**Author:** [@neo\_abs](https://discourse.julialang.org/u/neo_abs)\
**Replies:** 20\
**Last updated:** [October 23, 2020, 7:02pm UTC](https://discourse.julialang.org/t/function-constants-globals/48744 "2020-10-23T19:02:20Z")

</div>

I wanted to have a function: function test() const global x = 1 end Obviously it does not work. Is there a workaround that would make it feasible to declare constant globals from function? I want to have some sort…

---

## [Array of Structs: getindex, slicing, and broadcasting getfield](https://discourse.julialang.org/t/array-of-structs-getindex-slicing-and-broadcasting-getfield/21887)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 13\
**Last updated:** [October 23, 2020, 6:05pm UTC](https://discourse.julialang.org/t/array-of-structs-getindex-slicing-and-broadcasting-getfield/21887 "2020-10-23T18:05:46Z")

</div>

I have a struct like mutable struct State ID::Int64 kind::Symbol val::Float64 end that contains info about one object, but what I’m interested in is States, a collection of multiple State objects. I am comb…

---

## [Building Julia from source on old Cray XE/XK system](https://discourse.julialang.org/t/building-julia-from-source-on-old-cray-xe-xk-system/48899)

<div class="topic-metadata">

**Author:** [@asaxton](https://discourse.julialang.org/u/asaxton)\
**Replies:** 0\
**Last updated:** [October 23, 2020, 6:04pm UTC](https://discourse.julialang.org/t/building-julia-from-source-on-old-cray-xe-xk-system/48899 "2020-10-23T18:04:00Z")

</div>

Hi, as the title says, I’m building Julia from source on a Cray XE/XK system (Blue Waters). I keep getting compiler errors similar to "error: expected ')' before 'PRIx32'". They have to do with macros defined under intty…

---

## [Neat way of broadcasting getindex and getfield](https://discourse.julialang.org/t/neat-way-of-broadcasting-getindex-and-getfield/28706)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 6:04pm UTC](https://discourse.julialang.org/t/neat-way-of-broadcasting-getindex-and-getfield/28706 "2020-10-23T18:04:43Z")

</div>

I often find myself wanting to broadcast getindex and getfield, which is perfectly doable, but could enjoy a nicer syntax. I figured out if I define the operator .. in the right way, I get a kind-of nice syntax for doing…

---

## [\[ANN\]\[STANDUP\] New biweekly JuliaWeb dev discussion (via google meet): Upcoming Oct 23 10:15-11:15 ET](https://discourse.julialang.org/t/ann-standup-new-biweekly-juliaweb-dev-discussion-via-google-meet-upcoming-oct-23-1015-et/48674)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 6\
**Last updated:** [October 23, 2020, 5:42pm UTC](https://discourse.julialang.org/t/ann-standup-new-biweekly-juliaweb-dev-discussion-via-google-meet-upcoming-oct-23-1015-et/48674 "2020-10-23T17:42:25Z")

</div>

As there’s been interest here on discourse and on slack, I’ve set up a recurring (biweekly/every other week) google meet call where anyone is invited to participate. Link to calendar event/google meet details: https://c…

---

## [DataType hash differs per patch version and OS](https://discourse.julialang.org/t/datatype-hash-differs-per-patch-version-and-os/48827)

<div class="topic-metadata">

**Author:** [@racinmat](https://discourse.julialang.org/u/racinmat)\
**Replies:** 8\
**Last updated:** [October 23, 2020, 3:28pm UTC](https://discourse.julialang.org/t/datatype-hash-differs-per-patch-version-and-os/48827 "2020-10-23T15:28:55Z")

</div>

I noticed hash(Float32) returns different value on each julia version. While other hash functions return same hash for same value, e.g. julia\> hash("a") 0xfa232f94411b00cd is same for Julia versions 1.3.1, 1.5.0, 1.5.…

---

## [Autocomplete dataframe columns names not working in jupyter](https://discourse.julialang.org/t/autocomplete-dataframe-columns-names-not-working-in-jupyter/48880)

<div class="topic-metadata">

**Author:** [@lubo](https://discourse.julialang.org/u/lubo)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 3:06pm UTC](https://discourse.julialang.org/t/autocomplete-dataframe-columns-names-not-working-in-jupyter/48880 "2020-10-23T15:06:03Z")

</div>

Hi there, julia newbie here, switching from python :). I am using jupyter and dataframe package. Please, is there a way how to achieve autocomplete columns name in jupyter? ie, having frame = DataFrame(PART\_NAME=Str…

---

## [Create vector from Array](https://discourse.julialang.org/t/create-vector-from-array/48886)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 2:34pm UTC](https://discourse.julialang.org/t/create-vector-from-array/48886 "2020-10-23T14:34:02Z")

</div>

If I have an array, how do I create an array containing all values? (Personally, I do not care about the order, but for future references that might be useful as well)

---

## [Need to add flexibility to deeply nested functions---global parameter variable a good idea?](https://discourse.julialang.org/t/need-to-add-flexibility-to-deeply-nested-functions-global-parameter-variable-a-good-idea/48868)

<div class="topic-metadata">

**Author:** [@ElectronicTeaCup](https://discourse.julialang.org/u/ElectronicTeaCup)\
**Replies:** 6\
**Last updated:** [October 23, 2020, 2:15pm UTC](https://discourse.julialang.org/t/need-to-add-flexibility-to-deeply-nested-functions-global-parameter-variable-a-good-idea/48868 "2020-10-23T14:15:16Z")

</div>

I have a general programming question (which I need to tacking using Julia). I have a couple of functions (that call other functions) to carry out my analysis (some signal processing tasks and sorting data the way I want…

---

## [Interactive Plot with MakieLayout](https://discourse.julialang.org/t/interactive-plot-with-makielayout/48843)

<div class="topic-metadata">

**Author:** [@bensetterholm](https://discourse.julialang.org/u/bensetterholm)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 2:08pm UTC](https://discourse.julialang.org/t/interactive-plot-with-makielayout/48843 "2020-10-23T14:08:58Z")

</div>

I have been searching for a clear guide or example to making a simple plot + slider gui with MakieLayout. I see how to add sliders in the Makie documentation but not how to make them useful. There are some examples with …

---

## [Is it possible to implement custom inference in Turing?](https://discourse.julialang.org/t/is-it-possible-to-implement-custom-inference-in-turing/48468)

<div class="topic-metadata">

**Author:** [@yarnton](https://discourse.julialang.org/u/yarnton)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 1:45pm UTC](https://discourse.julialang.org/t/is-it-possible-to-implement-custom-inference-in-turing/48468 "2020-10-23T13:45:44Z")

</div>

I’m new to Turing, but I have quite a lot of experience in probabilistic programming. Particularly with models that can be expressed as factor graphs (e.g. Infer NET or ForneyLab.jl). Turing looks really neat. Is it rea…

---

## [String macro to simplify type declarations with units](https://discourse.julialang.org/t/string-macro-to-simplify-type-declarations-with-units/47292)

<div class="topic-metadata">

**Author:** [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Replies:** 10\
**Last updated:** [October 23, 2020, 1:41pm UTC](https://discourse.julialang.org/t/string-macro-to-simplify-type-declarations-with-units/47292 "2020-10-23T13:41:05Z")

</div>

I am trying to simplify the declaration of struct variables that have units with a string macro. This works: using Unitful macro Float64\_str(str) return :( typeof(Float64(1.0)\*@u\_str($str)) ) end mutable struct Da…

---

## [Concatenating in comprehension](https://discourse.julialang.org/t/concatenating-in-comprehension/48818)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 14\
**Last updated:** [October 23, 2020, 1:36pm UTC](https://discourse.julialang.org/t/concatenating-in-comprehension/48818 "2020-10-23T13:36:29Z")

</div>

Hello, \[rand(10,10) rand(10,10) rand(10,10) rand(10,10)\] Makes a 20 x 20 Matrix. But \[rand(10,10) for i in 1:2, j in 1:2\] makes a 2×2 Array{Array{Float64,2},2}. I would like to know if there exists a comprehension …

---

## [Check head of an expression](https://discourse.julialang.org/t/check-head-of-an-expression/48852)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 12:39pm UTC](https://discourse.julialang.org/t/check-head-of-an-expression/48852 "2020-10-23T12:39:08Z")

</div>

I Often have an expression t = :(y = f(:x)) I want to examine the head of the RHS, I can do this by looking at rhs = t.args\[2\] rhs.head ... Unfortunately, if you have t = :(y = :x)) then rhs is a QuoteNode and I ge…

---

## [1.0 vs Float64(1) versus const rone = 1.0](https://discourse.julialang.org/t/1-0-vs-float64-1-versus-const-rone-1-0/48874)

<div class="topic-metadata">

**Author:** [@grandemundo82](https://discourse.julialang.org/u/grandemundo82)\
**Replies:** 6\
**Last updated:** [October 23, 2020, 12:07pm UTC](https://discourse.julialang.org/t/1-0-vs-float64-1-versus-const-rone-1-0/48874 "2020-10-23T12:07:10Z")

</div>

Hi all; For the longest time, I wondered about something extremely basic. In my code where execution time is really important, I always wondered what is the best way to handle real number like 1.0 or 0.0. What is the f…

---

## [Detailed simplex, branch and bound and transportation solvers for Julia](https://discourse.julialang.org/t/detailed-simplex-branch-and-bound-and-transportation-solvers-for-julia/46538)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 2\
**Last updated:** [October 23, 2020, 11:20am UTC](https://discourse.julialang.org/t/detailed-simplex-branch-and-bound-and-transportation-solvers-for-julia/46538 "2020-10-23T11:20:04Z")

</div>

I’m just wondering whether there are any Julia packages that show: detailed simplex tableaux for each iteration of the simplex method required to solve a linear programming problem; detailed information about the branc…

---

## [Finding all factors of an integer](https://discourse.julialang.org/t/finding-all-factors-of-an-integer/48841)

<div class="topic-metadata">

**Author:** [@DrXorile](https://discourse.julialang.org/u/DrXorile)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 10:02am UTC](https://discourse.julialang.org/t/finding-all-factors-of-an-integer/48841 "2020-10-23T10:02:32Z")

</div>

I found this question but it didn’t quite answer mine. I want to list all the factors of a number, n. I found Primes.factor(n) which returns all the primes with their powers. And I found Iterators.product which could, i…

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

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