# Latest

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

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

**Page:** 1944

---

## [Accessing windows credentials (or chrome credentials)](https://discourse.julialang.org/t/accessing-windows-credentials-or-chrome-credentials/27381)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 5:23am UTC](https://discourse.julialang.org/t/accessing-windows-credentials-or-chrome-credentials/27381 "2019-08-12T05:23:30Z")

</div>

Is there an easy way to “access a stored password” in a Julia script/package? Say I have five people using the same package/script which uses individual credentials for a website (say AWS). How can I make this work smoo…

---

## [Using Julia to Build an Email Client](https://discourse.julialang.org/t/using-julia-to-build-an-email-client/27146)

<div class="topic-metadata">

**Author:** [@NomNomChompsky](https://discourse.julialang.org/u/NomNomChompsky)\
**Replies:** 8\
**Last updated:** [August 12, 2019, 4:49am UTC](https://discourse.julialang.org/t/using-julia-to-build-an-email-client/27146 "2019-08-12T04:49:07Z")

</div>

I’ve finished translating a few old projects from uni into Julia, among a few other languages, and am wanting to try my hand at something a little more ambitious in my learning endeavors. Would Julia be well-suited for …

---

## [Is the ODBC.load function implemented?](https://discourse.julialang.org/t/is-the-odbc-load-function-implemented/27330)

<div class="topic-metadata">

**Author:** [@js135005](https://discourse.julialang.org/u/js135005)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 4:12am UTC](https://discourse.julialang.org/t/is-the-odbc-load-function-implemented/27330 "2019-08-12T04:12:39Z")

</div>

I am trying to load data from a very small dataframe into an MS SQL server database. This is documented in the ODBC.jl documentation, albeit as experimental. However it does not find the load function at all when I try …

---

## [Transducers for sufficient statistics](https://discourse.julialang.org/t/transducers-for-sufficient-statistics/27425)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 5\
**Last updated:** [August 12, 2019, 3:19am UTC](https://discourse.julialang.org/t/transducers-for-sufficient-statistics/27425 "2019-08-12T03:19:14Z")

</div>

For independent observations from some distribution, we end up doing a lot of sum(logpdf.(myDist, x)) But in some cases, the algebra simplified a lot, and we can just track sufficient statistics. A common example of th…

---

## [Get error string contents](https://discourse.julialang.org/t/get-error-string-contents/27432)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 12:42am UTC](https://discourse.julialang.org/t/get-error-string-contents/27432 "2019-08-12T00:42:34Z")

</div>

How do you access to the error string payload in addition to the error type? For example: d = Dict() e = try a = parse(Float64, d\["a"\]) catch error error end For convenience in REPL, e is set to the error, which i…

---

## [Posits - a new approach could sink floating point computation](https://discourse.julialang.org/t/posits-a-new-approach-could-sink-floating-point-computation/26176)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 49\
**Last updated:** [August 11, 2019, 10:05pm UTC](https://discourse.julialang.org/t/posits-a-new-approach-could-sink-floating-point-computation/26176 "2019-08-11T22:05:08Z")

</div>

Well worth watching this video from the London Julia Meetup. Milan Kloewer using Posits in a real ocean modelling code. You can run the code by defining Mytype=posti - or double, or single precision etc. …

---

## [How to create \`DataFrame\` from using NamedTuple keys as column names](https://discourse.julialang.org/t/how-to-create-dataframe-from-using-namedtuple-keys-as-column-names/27405)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 4\
**Last updated:** [August 11, 2019, 8:50pm UTC](https://discourse.julialang.org/t/how-to-create-dataframe-from-using-namedtuple-keys-as-column-names/27405 "2019-08-11T20:50:41Z")

</div>

I have a function that returns a NamedTuple with 7 entries. The names are obviously Symbols and the entries are Int64. As this function is run many times, I would like to store the returned data as rows in a DataFrame, b…

---

## [Values(dict) returns key-value pairs after sorting](https://discourse.julialang.org/t/values-dict-returns-key-value-pairs-after-sorting/27422)

<div class="topic-metadata">

**Author:** [@felluksch](https://discourse.julialang.org/u/felluksch)\
**Replies:** 5\
**Last updated:** [August 11, 2019, 5:36pm UTC](https://discourse.julialang.org/t/values-dict-returns-key-value-pairs-after-sorting/27422 "2019-08-11T17:36:14Z")

</div>

Hi, arbeit = Dict("Vollzeit" =\> length(vollzeit), "Teilzeit" =\> length(teilzeit), "Minijob" =\> length(minijob)) arbeit = sort(collect(arbeit), by = x -\> x\[2\]) println(arbeit) x = collect(keys(arbeit)) println(x) y = col…

---

## [Access the element at a specific position of a matrix in Julia](https://discourse.julialang.org/t/access-the-element-at-a-specific-position-of-a-matrix-in-julia/27394)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 4\
**Last updated:** [August 11, 2019, 4:20pm UTC](https://discourse.julialang.org/t/access-the-element-at-a-specific-position-of-a-matrix-in-julia/27394 "2019-08-11T16:20:01Z")

</div>

Hi, I know how to access the element at a specific position of a matrix. For example, m = \[1 2 3; 4 5 6\] # m is a 2 by 3 matrix m\[1,2\] # m\[1,2\] would return the element at position (1,2), which is numbe…

---

## [Function wrapper for custom functions](https://discourse.julialang.org/t/function-wrapper-for-custom-functions/27409)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 5\
**Last updated:** [August 11, 2019, 2:19pm UTC](https://discourse.julialang.org/t/function-wrapper-for-custom-functions/27409 "2019-08-11T14:19:10Z")

</div>

Hi everyone, I have 2 functions defined that are used for resampling a vector of reals: using Distributions using BenchmarkTools function resampling\_multinomial(weights::AbstractVector{T}, particlesN::Int) where {T\<:R…

---

## [Wrapper functions guidlines](https://discourse.julialang.org/t/wrapper-functions-guidlines/27387)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 7\
**Last updated:** [August 11, 2019, 11:11am UTC](https://discourse.julialang.org/t/wrapper-functions-guidlines/27387 "2019-08-11T11:11:45Z")

</div>

As part of one of my JuliaMatlab packages, MatLang, I want to write wrapper functions that simulate Matlab like APIs. What are some guidelines for writing efficient wrappers? Is using chained if-else efficient defi…

---

## [Gtk ComBox problem](https://discourse.julialang.org/t/gtk-combox-problem/27365)

<div class="topic-metadata">

**Author:** [@Kelvyn88](https://discourse.julialang.org/u/Kelvyn88)\
**Replies:** 3\
**Last updated:** [August 11, 2019, 12:23am UTC](https://discourse.julialang.org/t/gtk-combox-problem/27365 "2019-08-11T00:23:36Z")

</div>

Hi everybody. I´m working with Gtk. I want to push! a GtkComboBox with a signal\_connect function (:changed). The problem is that, when I use “set\_gtk\_property(cb, :active, 0)” as a example, the Julia session closes. If …

---

## [JuMP: Piecewise linear cost function](https://discourse.julialang.org/t/jump-piecewise-linear-cost-function/27269)

<div class="topic-metadata">

**Author:** [@uwechsler](https://discourse.julialang.org/u/uwechsler)\
**Replies:** 3\
**Last updated:** [August 10, 2019, 9:43pm UTC](https://discourse.julialang.org/t/jump-piecewise-linear-cost-function/27269 "2019-08-10T21:43:58Z")

</div>

I am trying to solve an optimization problem with a piecewise linear cost function, which writes as: \\ell^{max}(z) := \\max\_{\\omega\\in\\Omega} \\ell(z+\\omega) where the cost function is piecewise continous, e.g. \\ell(z) =…

---

## [New website](https://discourse.julialang.org/t/new-website/12844)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 76\
**Last updated:** [August 10, 2019, 8:41pm UTC](https://discourse.julialang.org/t/new-website/12844 "2019-08-10T20:41:44Z")

</div>

We have now migrated to a new website in preparation for 0.7 and 1.0. It is still work in progress, and all suggestions and improvements are welcome. The new website, apart from trying to look nicer, also tries to focus …

---

## [Interpolating symbol in @eval expression](https://discourse.julialang.org/t/interpolating-symbol-in-eval-expression/27396)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 3\
**Last updated:** [August 10, 2019, 4:39pm UTC](https://discourse.julialang.org/t/interpolating-symbol-in-eval-expression/27396 "2019-08-10T16:39:42Z")

</div>

In this example, I’m trying to define functions for accessing data frame columns. However, the interpolation within the getindex call ended up with a type rather than the original symbol… Why is that? What can I do to …

---

## [HPC domain](https://discourse.julialang.org/t/hpc-domain/27359)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 5\
**Last updated:** [August 10, 2019, 3:28pm UTC](https://discourse.julialang.org/t/hpc-domain/27359 "2019-08-10T15:28:30Z")

</div>

I know there is an existing distributed/parallel category, but I thought it might be a good idea to have a place to discuss more deployment issues on HPC machines (working with shared file systems, launching jobs, workin…

---

## [\[pre-ANN\]: CuTensorOperations.jl](https://discourse.julialang.org/t/pre-ann-cutensoroperations-jl/27305)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 7\
**Last updated:** [August 10, 2019, 1:03pm UTC](https://discourse.julialang.org/t/pre-ann-cutensoroperations-jl/27305 "2019-08-10T13:03:08Z")

</div>

CuTensorOperations.jl provides support for tensor contractions and related operations with CuArray objects, i.e. it makes TensorOperations.jl compatible with CuArray objects. For now, it merely dispatches the necessary …

---

## [How to run benchmark CI on every commit?](https://discourse.julialang.org/t/how-to-run-benchmark-ci-on-every-commit/27034)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 13\
**Last updated:** [August 10, 2019, 8:54am UTC](https://discourse.julialang.org/t/how-to-run-benchmark-ci-on-every-commit/27034 "2019-08-10T08:54:28Z")

</div>

I’m working on a package, that I want to benchmark at every commit, because I want to see how the performance evolves over time. A short note on this idea I assume that it’s not the best workflow, would be better to run…

---

## [How to suppress output position information of info macro when I use global\_logger()](https://discourse.julialang.org/t/how-to-suppress-output-position-information-of-info-macro-when-i-use-global-logger/27372)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 2\
**Last updated:** [August 10, 2019, 6:45am UTC](https://discourse.julialang.org/t/how-to-suppress-output-position-information-of-info-macro-when-i-use-global-logger/27372 "2019-08-10T06:45:39Z")

</div>

I have a question about Logging module in Julia 1.1. When I use Logging module with default configurations, the warn macro and error macro shows output position information (ex. @ Main REPL\[3\]:1), but the info macro do…

---

## [Segfault with SIMD.jl and BenchmarkTools.jl](https://discourse.julialang.org/t/segfault-with-simd-jl-and-benchmarktools-jl/27352)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 6\
**Last updated:** [August 10, 2019, 1:59am UTC](https://discourse.julialang.org/t/segfault-with-simd-jl-and-benchmarktools-jl/27352 "2019-08-10T01:59:08Z")

</div>

Hi, I try to learn how to use SIMD.jl and the following snippet produces a segmentation fault when I use @btime. using BenchmarkTools using SIMD const SBS=8 function microaxpy\_simd!(ys::Vector{T}, a::T, xs::Vector{T…

---

## [How to get latest version number of a package](https://discourse.julialang.org/t/how-to-get-latest-version-number-of-a-package/27262)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 6\
**Last updated:** [August 10, 2019, 1:44am UTC](https://discourse.julialang.org/t/how-to-get-latest-version-number-of-a-package/27262 "2019-08-10T01:44:36Z")

</div>

Using Pkg.update(“PackageName”), we can update the package. I would like to just get latest version number of a package, not update it. For example Pkg.get\_latest\_version() → v0.19.2 like that. Does someone know how…

---

## [So how does Python to Julia(Py2Jl.jl) work?](https://discourse.julialang.org/t/so-how-does-python-to-julia-py2jl-jl-work/27357)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 1\
**Last updated:** [August 9, 2019, 5:16pm UTC](https://discourse.julialang.org/t/so-how-does-python-to-julia-py2jl-jl-work/27357 "2019-08-09T17:16:18Z")

</div>

https://github.com/JuliaCN/Py2Jl.jl/issues/7#issuecomment-519991456 A short story trying to make a simple explanation of how the package works and how to get involved in(technically).

---

## [\[ANN\] MDDatasets.jl: Multi-dimensional datasets & continuous x-variable interpolation](https://discourse.julialang.org/t/ann-mddatasets-jl-multi-dimensional-datasets-continuous-x-variable-interpolation/27354)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 1\
**Last updated:** [August 10, 2019, 1:28am UTC](https://discourse.julialang.org/t/ann-mddatasets-jl-multi-dimensional-datasets-continuous-x-variable-interpolation/27354 "2019-08-10T01:28:23Z")

</div>

The MDDatasets.jl module provides tools to simplify manipulation of multi-dimensional datasets. → GitHub - ma-laforge/MDDatasets.jl: Multi-Dimensional Datasets for Parametric Analysis Insallation: \] add MDDatasets G…

---

## [Segfault in C library depending on import order](https://discourse.julialang.org/t/segfault-in-c-library-depending-on-import-order/27362)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 0\
**Last updated:** [August 9, 2019, 9:24pm UTC](https://discourse.julialang.org/t/segfault-in-c-library-depending-on-import-order/27362 "2019-08-09T21:24:39Z")

</div>

Hi! I encountered a very strange issue, when there is sometimes a segfault when calling an external 3rd party library, depending on import order. This works fine (needs PyCall.jl, matplotlib, FINUFFT.jl installed): usi…

---

## [Hand rolled filter faster than filter function for dataframe?](https://discourse.julialang.org/t/hand-rolled-filter-faster-than-filter-function-for-dataframe/27358)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 2\
**Last updated:** [August 9, 2019, 8:22pm UTC](https://discourse.julialang.org/t/hand-rolled-filter-faster-than-filter-function-for-dataframe/27358 "2019-08-09T20:22:43Z")

</div>

From the MWE: 0.019227 seconds (313 allocations: 3.065 MiB) 0.037725 seconds (599.53 k allocations: 15.439 MiB, 8.73% gc time) Faster and much, much fewer allocations. This result is better than what I see in the actu…

---

## [Conditional function definition](https://discourse.julialang.org/t/conditional-function-definition/27348)

<div class="topic-metadata">

**Author:** [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Replies:** 2\
**Last updated:** [August 9, 2019, 7:07pm UTC](https://discourse.julialang.org/t/conditional-function-definition/27348 "2019-08-09T19:07:42Z")

</div>

What is going on here? function g1(a) if a == 0 f(x) = 2 else f(x) = 3 end println(f(1)) end function g2(a) f = x -\> 1 if a == 0 f(x) = 2 else f(x) = 3 en…

---

## [Optim constrained optimization issues](https://discourse.julialang.org/t/optim-constrained-optimization-issues/27333)

<div class="topic-metadata">

**Author:** [@ys3636](https://discourse.julialang.org/u/ys3636)\
**Replies:** 8\
**Last updated:** [August 9, 2019, 5:43pm UTC](https://discourse.julialang.org/t/optim-constrained-optimization-issues/27333 "2019-08-09T17:43:09Z")

</div>

Hi, Apologies, Julia newcomer. I’m trying to use Optim.jl to fit the parameters of a particular custom noise model by minimizing negative log-likelihood, but I’m running into some issues where methods that exist in prev…

---

## [Error exporting dataframe from Julia to R with Feather](https://discourse.julialang.org/t/error-exporting-dataframe-from-julia-to-r-with-feather/27312)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 3\
**Last updated:** [August 9, 2019, 4:54pm UTC](https://discourse.julialang.org/t/error-exporting-dataframe-from-julia-to-r-with-feather/27312 "2019-08-09T16:54:18Z")

</div>

Hello, since I am encountering a lot of problems exporting dataframes from julia to R (there is always something wrong with the formatting, probably a missing quote) so I am trying to use Feather to do the job. The dat…

---

## [Works in Julia 1.1.0 but not in 1.1.1. Where to download older; 1.1.0 to confirm?](https://discourse.julialang.org/t/works-in-julia-1-1-0-but-not-in-1-1-1-where-to-download-older-1-1-0-to-confirm/27337)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [August 9, 2019, 3:34pm UTC](https://discourse.julialang.org/t/works-in-julia-1-1-0-but-not-in-1-1-1-where-to-download-older-1-1-0-to-confirm/27337 "2019-08-09T15:34:45Z")

</div>

We’re looking into an issue, he says 1.1.0(rc2) worked. And 1.1.1 has failed for me (locally too): https://github.com/JuliaCN/Py2Jl.jl/issues/5#issuecomment-519653780 Does anyone have 1.1.0 non-rc to check for us, or k…

---

## [Register package with Registrator](https://discourse.julialang.org/t/register-package-with-registrator/27326)

<div class="topic-metadata">

**Author:** [@robertdj](https://discourse.julialang.org/u/robertdj)\
**Replies:** 3\
**Last updated:** [August 9, 2019, 12:31pm UTC](https://discourse.julialang.org/t/register-package-with-registrator/27326 "2019-08-09T12:31:34Z")

</div>

This should be super simple and I have done it before, but I am running into problems registering a package for Julia v1.x. VoronoiCells has been registered before, but now I was asked to register it again for Pkg3. The…

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

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