# General Usage

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

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

**Page:** 486

---

## [Is 1.7.2 on Intel Mac missing Codesigning?](https://discourse.julialang.org/t/is-1-7-2-on-intel-mac-missing-codesigning/76099)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 3\
**Last updated:** [February 9, 2022, 4:08pm UTC](https://discourse.julialang.org/t/is-1-7-2-on-intel-mac-missing-codesigning/76099 "2022-02-09T16:08:17Z")

</div>

Intel Mac, latest OS, got this in a popup “julia” can’t be opened because the identity of the developer cannot be confirmed. M1 version on Macbook works fine.

---

## [Time series datatypes](https://discourse.julialang.org/t/time-series-datatypes/76092)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 0\
**Last updated:** [February 9, 2022, 3:19pm UTC](https://discourse.julialang.org/t/time-series-datatypes/76092 "2022-02-09T15:19:59Z")

</div>

Hello! What datatype do you recommed for time series? I would need things like in Pandas: access like Pandas “loc” aggregation conversion between time zones interpolation time shifts & differences moving averages inne…

---

## [Using Winston corrupts BigInts?](https://discourse.julialang.org/t/using-winston-corrupts-bigints/76077)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 3\
**Last updated:** [February 9, 2022, 2:58pm UTC](https://discourse.julialang.org/t/using-winston-corrupts-bigints/76077 "2022-02-09T14:58:32Z")

</div>

The following weird behavior appears with julia 1.7.1 and Winston v0.15.2 julia\> big(1//2) 1//2 julia\> using Winston Gtk-Message: 14:17:40.676: Failed to load module "canberra-gtk-module" Gtk-Message: 14:17:40.677: Fai…

---

## [Create new column with first row of each id](https://discourse.julialang.org/t/create-new-column-with-first-row-of-each-id/76083)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 1\
**Last updated:** [February 9, 2022, 2:28pm UTC](https://discourse.julialang.org/t/create-new-column-with-first-row-of-each-id/76083 "2022-02-09T14:28:05Z")

</div>

Hi , i want to create a new column with the first row of each id . this is the data i have df = DataFrame() df.id = repeat(1:3,3) df.x1 = 1:9 df.x2 = 10:18 sort!(df,:id) i want column x3 as first row of each id in col…

---

## [Implementation of Spectral Normalization for Machine Learning](https://discourse.julialang.org/t/implementation-of-spectral-normalization-for-machine-learning/76074)

<div class="topic-metadata">

**Author:** [@Hareruya](https://discourse.julialang.org/u/Hareruya)\
**Replies:** 7\
**Last updated:** [February 9, 2022, 2:15pm UTC](https://discourse.julialang.org/t/implementation-of-spectral-normalization-for-machine-learning/76074 "2022-02-09T14:15:44Z")

</div>

Greetings. I have migrated most of my Machine Learning work from working in Pytorch for Flux and have not felt the need to look back(especially as I move towards SciML), however there was a small hiccup I’d like t inqui…

---

## [Parallel Reductions with Zygote](https://discourse.julialang.org/t/parallel-reductions-with-zygote/75969)

<div class="topic-metadata">

**Author:** [@SEA](https://discourse.julialang.org/u/SEA)\
**Replies:** 11\
**Last updated:** [February 9, 2022, 1:05pm UTC](https://discourse.julialang.org/t/parallel-reductions-with-zygote/75969 "2022-02-09T13:05:38Z")

</div>

I am trying to speed up the gradient computation of a model of the form sum(m-\>m(x), models), where models is an array of constituent models. This is (supposed to be) easily parallelizable, but I am having trouble maki…

---

## [Unexpected allocations in loops](https://discourse.julialang.org/t/unexpected-allocations-in-loops/74063)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 8\
**Last updated:** [February 9, 2022, 12:49pm UTC](https://discourse.julialang.org/t/unexpected-allocations-in-loops/74063 "2022-02-09T12:49:12Z")

</div>

Consider the following reduced example: using BenchmarkTools const F = Float64 struct Species q::F ρ::Array{F} end addCharge!(dst::Array{F}, q::F, ρ::Array{F}) = for I ∈ eachindex(dst) dst\[I\] += q \* ρ\[I\] end a…

---

## [Get any object properties by name](https://discourse.julialang.org/t/get-any-object-properties-by-name/76070)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 6\
**Last updated:** [February 9, 2022, 12:45pm UTC](https://discourse.julialang.org/t/get-any-object-properties-by-name/76070 "2022-02-09T12:45:00Z")

</div>

Hello, I need to get object property values by their names. The order of the values must match the order of the property names. Can it be done better? struct TestObject a b c end object = TestObject(1,2,3…

---

## [How to find details of the compiler and optimizations used by a specific installed version of Julia](https://discourse.julialang.org/t/how-to-find-details-of-the-compiler-and-optimizations-used-by-a-specific-installed-version-of-julia/75501)

<div class="topic-metadata">

**Author:** [@DavidB](https://discourse.julialang.org/u/DavidB)\
**Replies:** 11\
**Last updated:** [February 9, 2022, 11:23am UTC](https://discourse.julialang.org/t/how-to-find-details-of-the-compiler-and-optimizations-used-by-a-specific-installed-version-of-julia/75501 "2022-02-09T11:23:28Z")

</div>

I’ve noticed that there is a performance significant difference in the execution of a Julia application between “bare metal” and within a container, but only on one specific platform. So want to see if there was a differ…

---

## ["Cat" very slow for relativelly small tasks](https://discourse.julialang.org/t/cat-very-slow-for-relativelly-small-tasks/76067)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [February 9, 2022, 10:55am UTC](https://discourse.julialang.org/t/cat-very-slow-for-relativelly-small-tasks/76067 "2022-02-09T10:55:23Z")

</div>

This make my 16GB system hang for a while and eventually crash with a StackOverflowError, even if top doesn’t show all this memory usage (the matrices themselves should be ~ 400 MB) mainM = rand(28,28,60000) toAdd = \[ra…

---

## [Could not download registries Julia 1.7.2](https://discourse.julialang.org/t/could-not-download-registries-julia-1-7-2/76062)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 0\
**Last updated:** [February 9, 2022, 7:27am UTC](https://discourse.julialang.org/t/could-not-download-registries-julia-1-7-2/76062 "2022-02-09T07:27:22Z")

</div>

(@v1.7) pkg\> st Installing known registries into \`C:\\Users\\Hermesr\\.julia\` ┌ Warning: could not download https://pkg.julialang.org/registries │ exception = schannel: failed to receive handshake, SSL/TLS connection fa…

---

## [\[ANN\] Announcing Denumpyfy.jl](https://discourse.julialang.org/t/ann-announcing-denumpyfy-jl/76058)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 0\
**Last updated:** [February 9, 2022, 2:21am UTC](https://discourse.julialang.org/t/ann-announcing-denumpyfy-jl/76058 "2022-02-09T02:21:49Z")

</div>

Hey gang! I’ve rewritten way too many numpy notebooks, so I figured I might as well throw these 20 regexes into a package to free myself and others from this burden. Here’s Denumpyfy.jl https://github.com/miguelraz/De…

---

## [Question on Metaprogramming Example from Docs](https://discourse.julialang.org/t/question-on-metaprogramming-example-from-docs/75992)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [February 9, 2022, 1:24am UTC](https://discourse.julialang.org/t/question-on-metaprogramming-example-from-docs/75992 "2022-02-09T01:24:10Z")

</div>

Hello, I have been reviewing the metaprogamming section of the docs and I have come across something I don’t understand. I am looking at the second example in the subsection on interpolation, here. The example is showin…

---

## [Antisymmetric matrices?](https://discourse.julialang.org/t/antisymmetric-matrices/75829)

<div class="topic-metadata">

**Author:** [@akriegman](https://discourse.julialang.org/u/akriegman)\
**Replies:** 4\
**Last updated:** [February 5, 2022, 10:14pm UTC](https://discourse.julialang.org/t/antisymmetric-matrices/75829 "2022-02-05T22:14:57Z")

</div>

The LinearAlgebra module in the standard library has several special matrix types which represent various sparse matrix types, like symmetric or upper-triangular. This allows for reduced memory usage as you can avoid sto…

---

## [Gradient of a gradient of a FastChain](https://discourse.julialang.org/t/gradient-of-a-gradient-of-a-fastchain/73876)

<div class="topic-metadata">

**Author:** [@mahdiar](https://discourse.julialang.org/u/mahdiar)\
**Replies:** 19\
**Last updated:** [February 8, 2022, 3:58pm UTC](https://discourse.julialang.org/t/gradient-of-a-gradient-of-a-fastchain/73876 "2022-02-08T15:58:28Z")

</div>

What is the best way to differentiate an artificial neural network built by FastChain? The objective is to make a gradient of a neural network output with respect to its output. The result should be differentiable. Her…

---

## [A question about Clustering.jl](https://discourse.julialang.org/t/a-question-about-clustering-jl/76030)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 3:36pm UTC](https://discourse.julialang.org/t/a-question-about-clustering-jl/76030 "2022-02-08T15:36:25Z")

</div>

This is my code: using Clustering #dist = Distances.Euclidean() X1 = rand(10, 10) #dm = Distances.pairwise(dist, X1, dims=2) ppresult=kmeans(X1,2) But it has the following errors: ERROR: LoadError: UndefVarError: …

---

## [Mouse-over popout from inline result in VSCode is tiny](https://discourse.julialang.org/t/mouse-over-popout-from-inline-result-in-vscode-is-tiny/76028)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [February 8, 2022, 3:03pm UTC](https://discourse.julialang.org/t/mouse-over-popout-from-inline-result-in-vscode-is-tiny/76028 "2022-02-08T15:03:06Z")

</div>

I installed VSCode on another machine (Linux). I logged in, and synchronized stuff (settings etc.) from my profile. On this new machine, the pop-out when mousing over inline results was tiny. When I got back to my main …

---

## [Improving performance of recursions by avoiding closures](https://discourse.julialang.org/t/improving-performance-of-recursions-by-avoiding-closures/76026)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 0\
**Last updated:** [February 8, 2022, 2:15pm UTC](https://discourse.julialang.org/t/improving-performance-of-recursions-by-avoiding-closures/76026 "2022-02-08T14:15:06Z")

</div>

Just implemented Tarjan’s SCC (strongly-connected components) algorithm. In the first version, I created the dfs() function (which is recursive) inside the scc() function, and let it capture the needed variables from the…

---

## [@printf strange performance behavior](https://discourse.julialang.org/t/printf-strange-performance-behavior/76013)

<div class="topic-metadata">

**Author:** [@\_bernhard](https://discourse.julialang.org/u/_bernhard)\
**Replies:** 1\
**Last updated:** [February 8, 2022, 1:52pm UTC](https://discourse.julialang.org/t/printf-strange-performance-behavior/76013 "2022-02-08T13:52:16Z")

</div>

Hello everybody! I recently encountered some strange behavior related to printing numbers as ASCII in Julia. Tested were both Julia 1.6 and 1.7, the following timings are from 1.6. using Printf using BenchmarkTools f…

---

## [Scraping youtube webcomments with WebDriver.jl](https://discourse.julialang.org/t/scraping-youtube-webcomments-with-webdriver-jl/75996)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 2\
**Last updated:** [February 8, 2022, 1:25pm UTC](https://discourse.julialang.org/t/scraping-youtube-webcomments-with-webdriver-jl/75996 "2022-02-08T13:25:02Z")

</div>

Hi All, I am trying to replicate this post How to Scrape Youtube Comments with Python | by François St-Amant | Towards Data Science in Julia. The author scrapes comments from yt videos using selenium driver and does som…

---

## [Partial initialisation of a (Named)Tuple?](https://discourse.julialang.org/t/partial-initialisation-of-a-named-tuple/76011)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 8\
**Last updated:** [February 8, 2022, 1:21pm UTC](https://discourse.julialang.org/t/partial-initialisation-of-a-named-tuple/76011 "2022-02-08T13:21:52Z")

</div>

I’m trying to figure out whether it’s possible to partially initialise a Tuple / NamedTuple. A concrete example: I would like to be able to write something like x = Tuple{Vector{Float64}, Vector{Float64}}(randn(5)) isd…

---

## [What's the optimal setting for JULIA\_NUM\_THREADS on a Macbook Pro M1 Max](https://discourse.julialang.org/t/whats-the-optimal-setting-for-julia-num-threads-on-a-macbook-pro-m1-max/75928)

<div class="topic-metadata">

**Author:** [@navidcy](https://discourse.julialang.org/u/navidcy)\
**Replies:** 4\
**Last updated:** [February 8, 2022, 12:55pm UTC](https://discourse.julialang.org/t/whats-the-optimal-setting-for-julia-num-threads-on-a-macbook-pro-m1-max/75928 "2022-02-08T12:55:19Z")

</div>

with Total Numbers of Cores: 10 (8 performance and 2 efficiency)? Is it 10? 8? 20? 16?

---

## [Construct NamedTuple dynamically](https://discourse.julialang.org/t/construct-namedtuple-dynamically/15394)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 12\
**Last updated:** [February 8, 2022, 9:11am UTC](https://discourse.julialang.org/t/construct-namedtuple-dynamically/15394 "2022-02-08T09:11:06Z")

</div>

In Julia 1.0, I can constructed a named tuple with known names and values. x = (a = 1, b = 2.0, c = "hello world") Let’s say I have the names and values in separate arrays. How could I construct a named tuple dynamica…

---

## [Function to calculate temperature from steamtable look up in Julia](https://discourse.julialang.org/t/function-to-calculate-temperature-from-steamtable-look-up-in-julia/75974)

<div class="topic-metadata">

**Author:** [@Curio\_math](https://discourse.julialang.org/u/Curio_math)\
**Replies:** 5\
**Last updated:** [February 8, 2022, 5:50am UTC](https://discourse.julialang.org/t/function-to-calculate-temperature-from-steamtable-look-up-in-julia/75974 "2022-02-08T05:50:30Z")

</div>

I have been using a dynamic mathematical model, where I assume to replace some nonlinear functions corresponding to finding temperature (as a function of pressure and enthalpy) by substituting them with functions inbuild…

---

## [Counting iterations to a type fixpoint](https://discourse.julialang.org/t/counting-iterations-to-a-type-fixpoint/75876)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 11\
**Last updated:** [February 8, 2022, 3:35am UTC](https://discourse.julialang.org/t/counting-iterations-to-a-type-fixpoint/75876 "2022-02-08T03:35:25Z")

</div>

I have a function that typically gives a value of a different type, but repeated application eventually hits a fixpoint. Say the function is called next. I need the fixpoint in order to statically build a loop like @gen…

---

## [Using Debugger in Julia 1.6.3](https://discourse.julialang.org/t/using-debugger-in-julia-1-6-3/71095)

<div class="topic-metadata">

**Author:** [@kw\_martin](https://discourse.julialang.org/u/kw_martin)\
**Replies:** 17\
**Last updated:** [February 8, 2022, 1:30am UTC](https://discourse.julialang.org/t/using-debugger-in-julia-1-6-3/71095 "2022-02-08T01:30:45Z")

</div>

I am having difficulties using Debugger in Julia 1.6.3. I attempted to run the simple example from Debugger at github and if failed. Can someone suggest what I am doing wrong or a work-around. I do have vscode working, b…

---

## [Can a method push! to a Vector that is a field in a struct?](https://discourse.julialang.org/t/can-a-method-push-to-a-vector-that-is-a-field-in-a-struct/75964)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 5\
**Last updated:** [February 7, 2022, 8:39pm UTC](https://discourse.julialang.org/t/can-a-method-push-to-a-vector-that-is-a-field-in-a-struct/75964 "2022-02-07T20:39:38Z")

</div>

In https://github.com/dmbates/Wordlegames.jl I use a struct to represent the state of a Wordle (or similar) game. I am thinking of recording the history of guesses and scores from these guess as fields which will be Vec…

---

## [Finding DataFrame rows with \`missing\` values in specific columns?](https://discourse.julialang.org/t/finding-dataframe-rows-with-missing-values-in-specific-columns/75811)

<div class="topic-metadata">

**Author:** [@forestacorn](https://discourse.julialang.org/u/forestacorn)\
**Replies:** 12\
**Last updated:** [February 7, 2022, 6:01pm UTC](https://discourse.julialang.org/t/finding-dataframe-rows-with-missing-values-in-specific-columns/75811 "2022-02-07T18:01:56Z")

</div>

I have a DataFrame, like the following example, where I am trying to find the rows where the columns x2 and x3 are missing values: df = DataFrame(\[1 2 3; 4 5 6; 7 missing missing; 10 11 12; 13 missing missing; 16 17 18\]…

---

## [Broken \`eigen\` in DoubleFloats?](https://discourse.julialang.org/t/broken-eigen-in-doublefloats/75946)

<div class="topic-metadata">

**Author:** [@swishmas](https://discourse.julialang.org/u/swishmas)\
**Replies:** 1\
**Last updated:** [February 7, 2022, 2:41pm UTC](https://discourse.julialang.org/t/broken-eigen-in-doublefloats/75946 "2022-02-07T14:41:19Z")

</div>

I wanted to try some additional precision in julia and I found the DoubleFloats package. I ran the small example but received an error when using the eigen function #using LinearAlgebra #did not change the result using…

---

## [How to keep the value of function pointer?](https://discourse.julialang.org/t/how-to-keep-the-value-of-function-pointer/75576)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 5\
**Last updated:** [February 7, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-keep-the-value-of-function-pointer/75576 "2022-02-07T13:48:27Z")

</div>

How to keep the value of function pointer? This is roughly how the code looks like: gCallBackFunc = Ref{Function}(func1) ... callBack::Function = gCallBackFunc\[\] ... gCallBackFunc\[\] = func2 ... callBack(params) I want…

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

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