# Latest

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

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

**Page:** 1849

---

## [Stop Julia at certain optimiality gap and return decision variables](https://discourse.julialang.org/t/stop-julia-at-certain-optimiality-gap-and-return-decision-variables/2957)

<div class="topic-metadata">

**Author:** [@Duaa](https://discourse.julialang.org/u/Duaa)\
**Replies:** 12\
**Last updated:** [January 9, 2020, 4:43pm UTC](https://discourse.julialang.org/t/stop-julia-at-certain-optimiality-gap-and-return-decision-variables/2957 "2020-01-09T16:43:04Z")

</div>

I have a MILP problem and I am trying to solve it using CPLEX package through JuMP in Julia Language. However, the problem takes a long time to be solved. Is there a way to stop the program and return decision variables …

---

## [How to update the initial condition in DifferentialEquations?](https://discourse.julialang.org/t/how-to-update-the-initial-condition-in-differentialequations/32696)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 8\
**Last updated:** [January 9, 2020, 2:19pm UTC](https://discourse.julialang.org/t/how-to-update-the-initial-condition-in-differentialequations/32696 "2020-01-09T14:19:11Z")

</div>

Hello! I try to solve a nonlinear differential equation using a split-step method. The right hand side of my equation has two terms: \\frac{du}{dt} = f(u,t) + g(u,t) According to the split-step method, I can split ev…

---

## [Update existing imshow with new image data](https://discourse.julialang.org/t/update-existing-imshow-with-new-image-data/8296)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 11\
**Last updated:** [January 9, 2020, 2:18pm UTC](https://discourse.julialang.org/t/update-existing-imshow-with-new-image-data/8296 "2020-01-09T14:18:59Z")

</div>

I want to set up a rapid loop of updating a screen with some image data and then fetching the result with a webcam that is pointed at the screen (the idea is to sample hundreds of cycles, change some external filter betw…

---

## [Is there currently any linter for Juno on 1.0+?](https://discourse.julialang.org/t/is-there-currently-any-linter-for-juno-on-1-0/17450)

<div class="topic-metadata">

**Author:** [@SZJX](https://discourse.julialang.org/u/SZJX)\
**Replies:** 4\
**Last updated:** [January 9, 2020, 12:54pm UTC](https://discourse.julialang.org/t/is-there-currently-any-linter-for-juno-on-1-0/17450 "2020-01-09T12:54:44Z")

</div>

Ever since Julia is upgraded to 1.0+, IDE support has been more or less spotty. I thought the vscode plugin using language server was really nice to work with but with the releases still in alpha stage for 1.0+, it’s uns…

---

## [Difference in Discourse between New and Latest?](https://discourse.julialang.org/t/difference-in-discourse-between-new-and-latest/33146)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [January 9, 2020, 10:52am UTC](https://discourse.julialang.org/t/difference-in-discourse-between-new-and-latest/33146 "2020-01-09T10:52:46Z")

</div>

Can’t get what’s the difference between the category new and the category latest…

---

## [HTTP.jl connection refused](https://discourse.julialang.org/t/http-jl-connection-refused/33142)

<div class="topic-metadata">

**Author:** [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Replies:** 1\
**Last updated:** [January 9, 2020, 10:48am UTC](https://discourse.julialang.org/t/http-jl-connection-refused/33142 "2020-01-09T10:48:17Z")

</div>

I used to have a webservice running on HttpServer and it just worked. Now I migrated that same server to HTTP.jl and when I try to connect to it via its dns name I get “connection refused” (either from a remote machine o…

---

## [Need help with Chrome OS](https://discourse.julialang.org/t/need-help-with-chrome-os/33116)

<div class="topic-metadata">

**Author:** [@kimran](https://discourse.julialang.org/u/kimran)\
**Replies:** 6\
**Last updated:** [January 9, 2020, 3:39am UTC](https://discourse.julialang.org/t/need-help-with-chrome-os/33116 "2020-01-09T03:39:58Z")

</div>

Good day everyone With the advent of some amazing chromebooks, more and more developers are looking into working on Chrome OS I mean, who does not want to write code on this baby: https://store.google.com/us/product/pi…

---

## [\[ANN\] Elly.jl v0.4.0 - A Julia HDFS and Yarn client](https://discourse.julialang.org/t/ann-elly-jl-v0-4-0-a-julia-hdfs-and-yarn-client/33134)

<div class="topic-metadata">

**Author:** [@tanmaykm](https://discourse.julialang.org/u/tanmaykm)\
**Replies:** 0\
**Last updated:** [January 9, 2020, 4:30am UTC](https://discourse.julialang.org/t/ann-elly-jl-v0-4-0-a-julia-hdfs-and-yarn-client/33134 "2020-01-09T04:30:18Z")

</div>

I would like to announce a new version of Elly.jl (Release Elly v0.4.0 · JuliaParallel/Elly.jl · GitHub) - a Julia HDFS and Yarn client. This version has some notable updates to Yarn cluster support. It now allows Julia…

---

## [DifferentialEquations with Turing](https://discourse.julialang.org/t/differentialequations-with-turing/33100)

<div class="topic-metadata">

**Author:** [@virgile-baudrot](https://discourse.julialang.org/u/virgile-baudrot)\
**Replies:** 3\
**Last updated:** [January 9, 2020, 4:22am UTC](https://discourse.julialang.org/t/differentialequations-with-turing/33100 "2020-01-09T04:22:28Z")

</div>

Dear all, I’d like to use DifferentialEquations.jl with Turing.jl, I read that this was possible, but I’ve trouble to run it. Here is a simple try with Lotka-Voltera equation, how to fix it to make it running? using D…

---

## [Logic programming, Bayesian programming, Deep Learning and Julia](https://discourse.julialang.org/t/logic-programming-bayesian-programming-deep-learning-and-julia/24714)

<div class="topic-metadata">

**Author:** [@XVilka](https://discourse.julialang.org/u/XVilka)\
**Replies:** 5\
**Last updated:** [January 8, 2020, 5:51am UTC](https://discourse.julialang.org/t/logic-programming-bayesian-programming-deep-learning-and-julia/24714 "2020-01-08T05:51:10Z")

</div>

Despite ubiquitous ML/DL/RL/whatever AI algorithms and tooling presence, some domains still continue to use the old school logic programming. Many heard horror stories about Prolog and its forgotten magicians. You would …

---

## [Editing Constraints in the Picking Winners programs](https://discourse.julialang.org/t/editing-constraints-in-the-picking-winners-programs/8336)

<div class="topic-metadata">

**Author:** [@Cameron\_Taylor](https://discourse.julialang.org/u/Cameron_Taylor)\
**Replies:** 9\
**Last updated:** [January 9, 2020, 12:06am UTC](https://discourse.julialang.org/t/editing-constraints-in-the-picking-winners-programs/8336 "2020-01-09T00:06:16Z")

</div>

Hi there, I’m trying to edit one of the constraints in the code\_for\_Github.jl file as developed here https://github.com/dscotthunter/Fantasy-Hockey-IP-Code The program generates lineups of sports players to submit in …

---

## [Connection between solver and Julia's JuMP Package](https://discourse.julialang.org/t/connection-between-solver-and-julias-jump-package/33076)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 11:40pm UTC](https://discourse.julialang.org/t/connection-between-solver-and-julias-jump-package/33076 "2020-01-08T23:40:09Z")

</div>

I’m looking for ways or tips to connect a simple solver with the JuMP Package. I started reading the manual of Math Opt Interface (I don’t know the right terms, but I’ll call it the Backend of the JuMP), also I’m trying …

---

## [Occursin strange behavior](https://discourse.julialang.org/t/occursin-strange-behavior/33127)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 11:24pm UTC](https://discourse.julialang.org/t/occursin-strange-behavior/33127 "2020-01-08T23:24:07Z")

</div>

function f(arg) # Wrap a string with spaces between quotes if (isa(arg, AbstractString) || isa(arg, Symbol)) out = string(arg) if (occursin(" ", out)) out = "\\"" \* out \* "\\"" end else error("Bla") end end …

---

## [Animations - formats other than GIF](https://discourse.julialang.org/t/animations-formats-other-than-gif/32931)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 9:57pm UTC](https://discourse.julialang.org/t/animations-formats-other-than-gif/32931 "2020-01-08T21:57:40Z")

</div>

I’m currently using Plots to generate graphics, including some animations. The docs make it easy to create animated GIFs but for my purposes I’d prefer an alternate output format such as .mov Any tips or suggestions on…

---

## [VegaLite.jl: size/resolution of pdf output](https://discourse.julialang.org/t/vegalite-jl-size-resolution-of-pdf-output/33021)

<div class="topic-metadata">

**Author:** [@BenjaminBorn](https://discourse.julialang.org/u/BenjaminBorn)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 9:08pm UTC](https://discourse.julialang.org/t/vegalite-jl-size-resolution-of-pdf-output/33021 "2020-01-08T21:08:47Z")

</div>

Is there a way to specify with VegaLite (or maybe other packages) the resolution (or file size) of the pdf output? My goal is to use the pdf figures in a LaTeX document and because I have many figures and each is quite l…

---

## ["dispatch" on whether or not a matrix is symmetric? (aka should I use a function barrier?)](https://discourse.julialang.org/t/dispatch-on-whether-or-not-a-matrix-is-symmetric-aka-should-i-use-a-function-barrier/33086)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 6\
**Last updated:** [January 8, 2020, 8:29pm UTC](https://discourse.julialang.org/t/dispatch-on-whether-or-not-a-matrix-is-symmetric-aka-should-i-use-a-function-barrier/33086 "2020-01-08T20:29:40Z")

</div>

Short version: is a pattern like issymmetric(x) && (x = Symmetric(x)) type-unstable, and will it have performance consequences? Details below. I have a user-facing function that looks something like function f(x::Matri…

---

## [Julia docker image with Plots support](https://discourse.julialang.org/t/julia-docker-image-with-plots-support/33112)

<div class="topic-metadata">

**Author:** [@ksamtsak](https://discourse.julialang.org/u/ksamtsak)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 8:13pm UTC](https://discourse.julialang.org/t/julia-docker-image-with-plots-support/33112 "2020-01-08T20:13:22Z")

</div>

Has anyone built a docker image from the “official” ( Docker Hub ) one which successfully builds Plots ?

---

## [WebIO not detected. (using Interact)](https://discourse.julialang.org/t/webio-not-detected-using-interact/33117)

<div class="topic-metadata">

**Author:** [@Simplex](https://discourse.julialang.org/u/Simplex)\
**Replies:** 0\
**Last updated:** [January 8, 2020, 8:04pm UTC](https://discourse.julialang.org/t/webio-not-detected-using-interact/33117 "2020-01-08T20:04:00Z")

</div>

I’ve an error when I use Interact. I use Anaconda. I’ve try a lot of things but never works. Thanks for your help ! using Interact @manipulate for i=1:10 @show i end

---

## [Flux Regularisation in Julia at the layer level](https://discourse.julialang.org/t/flux-regularisation-in-julia-at-the-layer-level/33097)

<div class="topic-metadata">

**Author:** [@Ed\_Austin](https://discourse.julialang.org/u/Ed_Austin)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 7:49pm UTC](https://discourse.julialang.org/t/flux-regularisation-in-julia-at-the-layer-level/33097 "2020-01-08T19:49:08Z")

</div>

Hi there I have seen the examples but I am still unclear as to how to apply per-layer regularisation, the examples seem to show a single layer network or applying regularisation to all layers. Coming from TensorFlow an…

---

## [Compose.jl text error](https://discourse.julialang.org/t/compose-jl-text-error/33105)

<div class="topic-metadata">

**Author:** [@Simplex](https://discourse.julialang.org/u/Simplex)\
**Replies:** 4\
**Last updated:** [January 8, 2020, 7:25pm UTC](https://discourse.julialang.org/t/compose-jl-text-error/33105 "2020-01-08T19:25:58Z")

</div>

I try to use compose.jl to represent a network. But I also want to write text next to it but I have an error using text. I also tried to fix the network to make it not move at each iteration but it didn’t work. Thanks …

---

## [Bug with @edit macro attempts to edit non-existant file on OSX](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879)

<div class="topic-metadata">

**Author:** [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Replies:** 3\
**Last updated:** [January 8, 2020, 6:28pm UTC](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879 "2020-01-08T18:28:18Z")

</div>

When I for example tested the edit macro for some of the InteractiveUtils I get a reference to a file name that isn’t correct. ERROR: no unique matching method found for the specified argument types Stacktrace: \[1\] err…

---

## [Automatic differentiation of f(x) constructed by decomposition of a matrix M(x)](https://discourse.julialang.org/t/automatic-differentiation-of-f-x-constructed-by-decomposition-of-a-matrix-m-x/33061)

<div class="topic-metadata">

**Author:** [@juandarias](https://discourse.julialang.org/u/juandarias)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 5:36pm UTC](https://discourse.julialang.org/t/automatic-differentiation-of-f-x-constructed-by-decomposition-of-a-matrix-m-x/33061 "2020-01-08T17:36:43Z")

</div>

I have some objective function f(x), e.g. some type of error function for which I want to calculate its gradient and hessian. To construct f(x), I need the eigenvectors of a certain matrix \\textbf{M}(x). I have tried bo…

---

## [Interpolate all variables in expression without using $ for each variable](https://discourse.julialang.org/t/interpolate-all-variables-in-expression-without-using-for-each-variable/33101)

<div class="topic-metadata">

**Author:** [@rvignolo](https://discourse.julialang.org/u/rvignolo)\
**Replies:** 6\
**Last updated:** [January 8, 2020, 5:39pm UTC](https://discourse.julialang.org/t/interpolate-all-variables-in-expression-without-using-for-each-variable/33101 "2020-01-08T17:39:16Z")

</div>

Hi, is there any alternative way to do this: x = 1 y = 2 z = 3 i = 1 j = 2 k = 3 expr = :($x + 2 \* $y + $z + $i + $j + $k) For example, something like: expr = @$ :(x + 2 \* y + z + i + j + k) Thanks!

---

## [Convert "Time of the day" to Total Minute or Total Second](https://discourse.julialang.org/t/convert-time-of-the-day-to-total-minute-or-total-second/33093)

<div class="topic-metadata">

**Author:** [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 3:50pm UTC](https://discourse.julialang.org/t/convert-time-of-the-day-to-total-minute-or-total-second/33093 "2020-01-08T15:50:11Z")

</div>

tt = Time(now()) → give me a time, e.g. 2 hour, 10 minute, 5 second, What is the most efficient / elegant way to convert it to Total Minutes? i.e. 2 \* 60 + 10 = 130 (either Int or Float or Minute) Of coz I can manually…

---

## [How to save multiple output lines to a txt or csv file?](https://discourse.julialang.org/t/how-to-save-multiple-output-lines-to-a-txt-or-csv-file/33062)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 7\
**Last updated:** [January 8, 2020, 3:01pm UTC](https://discourse.julialang.org/t/how-to-save-multiple-output-lines-to-a-txt-or-csv-file/33062 "2020-01-08T15:01:52Z")

</div>

Similar to How do I save the output to .txt file?, I would like to know how to save several output lines into a file. Currently my function runs a for loop, and if certain criteria are met it println’s certain values i…

---

## [DataDeps.jl - replacing a dependency](https://discourse.julialang.org/t/datadeps-jl-replacing-a-dependency/33064)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 1:05pm UTC](https://discourse.julialang.org/t/datadeps-jl-replacing-a-dependency/33064 "2020-01-08T13:05:50Z")

</div>

The docs say: …you can’t force users to download new copies of your data using DataDeps. There are work arounds, such as using DataDeps.jl + deps/build.jl to rm(datadep"MyData", recursive=true, force=true every pac…

---

## [Julia 1.2 on CentOS: package manager says ERROR: no active project](https://discourse.julialang.org/t/julia-1-2-on-centos-package-manager-says-error-no-active-project/33074)

<div class="topic-metadata">

**Author:** [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Replies:** 15\
**Last updated:** [January 8, 2020, 12:41pm UTC](https://discourse.julialang.org/t/julia-1-2-on-centos-package-manager-says-error-no-active-project/33074 "2020-01-08T12:41:22Z")

</div>

After installing julia 1.2 by extracting the tar.gz file I can run the julia console but when I enter the package manager console and do add I get ERROR: no active project. Tere’s no prefix (v1.2) in the pm prompt. Bef…

---

## [How to?: Seamless remote development and deployment workflow in Atom/Juno](https://discourse.julialang.org/t/how-to-seamless-remote-development-and-deployment-workflow-in-atom-juno/33060)

<div class="topic-metadata">

**Author:** [@pkienscherf](https://discourse.julialang.org/u/pkienscherf)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 9:16am UTC](https://discourse.julialang.org/t/how-to-seamless-remote-development-and-deployment-workflow-in-atom-juno/33060 "2020-01-08T09:16:22Z")

</div>

Dear all, first of all: If this topic has been discussed exhaustively elsewhere, please excuse my posting. I have not been able to find the answers I am looking for where I searched. This is what I am trying to do: Dev…

---

## [\`nfields\` vs \`fieldcount\`](https://discourse.julialang.org/t/nfields-vs-fieldcount/33084)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 4\
**Last updated:** [January 8, 2020, 8:36am UTC](https://discourse.julialang.org/t/nfields-vs-fieldcount/33084 "2020-01-08T08:36:40Z")

</div>

What are the differences between nfields and fieldcount? Is nfields(x) == fieldcount(typeof(x)) ?

---

## [Gradient of \`sum(f, x)\` using Zygote, when \`f\` is real valued and \`x isa CuArray{\<:Complex}\`](https://discourse.julialang.org/t/gradient-of-sum-f-x-using-zygote-when-f-is-real-valued-and-x-isa-cuarray-complex/33081)

<div class="topic-metadata">

**Author:** [@Sleort](https://discourse.julialang.org/u/Sleort)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 6:58am UTC](https://discourse.julialang.org/t/gradient-of-sum-f-x-using-zygote-when-f-is-real-valued-and-x-isa-cuarray-complex/33081 "2020-01-08T06:58:01Z")

</div>

While I’m able to differentiate sum(abs2, a) (using Zygote) when a isa CuArray{\<:Complex}, this fails for sum(f, a) with f = abs2 \[see below for details\]. I haven’t been able to figure out exactly why – and how to fix th…

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

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