# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=543

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

**Page:** 544

---

## [Product of univariate distributions](https://discourse.julialang.org/t/product-of-univariate-distributions/1350)

<div class="topic-metadata">

**Author:** [@nbren12](https://discourse.julialang.org/u/nbren12)\
**Replies:** 13\
**Last updated:** [February 18, 2018, 6:27pm UTC](https://discourse.julialang.org/t/product-of-univariate-distributions/1350 "2018-02-18T18:27:27Z")

</div>

In Distributions.jl is it possible to create a cartesian product distribution, given two univariate random variables? I want to do this to make a multivariate uniform distribution supported over \[0,1\]\\times\[0,1\]

---

## [Jg-plot\_v0.1 / simple julia - webGl passthrough](https://discourse.julialang.org/t/jg-plot-v0-1-simple-julia-webgl-passthrough/8768)

<div class="topic-metadata">

**Author:** [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Replies:** 8\
**Last updated:** [February 17, 2018, 10:35am UTC](https://discourse.julialang.org/t/jg-plot-v0-1-simple-julia-webgl-passthrough/8768 "2018-02-17T10:35:44Z")

</div>

It’s pretty basic currently, just does 2d plots, but the potential is there for 3d animation etc size is 8Kb, most of which is the html / js / glsl getup https://nofile.io/f/Fzs8RKOa5Rx/jg\_plot.jl basic usage: jg\_plot…

---

## [Performing multiple melt/stack operations on a dataset simultaneously](https://discourse.julialang.org/t/performing-multiple-melt-stack-operations-on-a-dataset-simultaneously/8947)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 5\
**Last updated:** [February 16, 2018, 9:18am UTC](https://discourse.julialang.org/t/performing-multiple-melt-stack-operations-on-a-dataset-simultaneously/8947 "2018-02-16T09:18:54Z")

</div>

I’m importing some R data so decided to learn DataFrames manipulation in julia instead of doing it in R. I have a wide dataframe with some initial columns followed by four variables that span 12 columns, one for each mon…

---

## [JuMP interface access to automatic differentiation (ReverseDiffSparse)](https://discourse.julialang.org/t/jump-interface-access-to-automatic-differentiation-reversediffsparse/8354)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 5\
**Last updated:** [February 15, 2018, 2:18am UTC](https://discourse.julialang.org/t/jump-interface-access-to-automatic-differentiation-reversediffsparse/8354 "2018-02-15T02:18:53Z")

</div>

I’m trying to use ReverseDiffSparse to return the gradient and Hessian of a scalar valued function f. I only need to evaluate the gradient and Hessian (i.e., I don’t need to set up a whole model). I saw from the JuMP Doc…

---

## [JuMP, excessive memory usage?](https://discourse.julialang.org/t/jump-excessive-memory-usage/1057)

<div class="topic-metadata">

**Author:** [@mauro](https://discourse.julialang.org/u/mauro)\
**Replies:** 16\
**Last updated:** [February 14, 2018, 9:12pm UTC](https://discourse.julialang.org/t/jump-excessive-memory-usage/1057 "2018-02-14T21:12:02Z")

</div>

Hi all, I have a question about the memory requirements of the following toy example, which is a simplified versions of my real problem: using JuMP using Ipopt N = 29 p1 = rand(N+1,N+1,N+1) p2 = rand(N+1,N+1,N+1) p…

---

## [\[ANN\] JuMP now supports OSQP](https://discourse.julialang.org/t/ann-jump-now-supports-osqp/9068)

<div class="topic-metadata">

**Author:** [@bstellato](https://discourse.julialang.org/u/bstellato)\
**Replies:** 0\
**Last updated:** [February 14, 2018, 8:11pm UTC](https://discourse.julialang.org/t/ann-jump-now-supports-osqp/9068 "2018-02-14T20:11:27Z")

</div>

Hi Julia optimizers! We have just added JuMP support to the latest OSQP.jl Julia interface. For those who do not know it, OSQP is a new efficient first-order QP solver based on ADMM. You can find some benchmarks agains…

---

## [Using JuMP fails](https://discourse.julialang.org/t/using-jump-fails/9054)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [February 14, 2018, 12:59pm UTC](https://discourse.julialang.org/t/using-jump-fails/9054 "2018-02-14T12:59:18Z")

</div>

Hello, after updating my packages I get the following error: julia\> using JuMP INFO: Precompiling module JuMP. WARNING: Module ReverseDiffSparse with uuid 11646900819455 is missing from the cache. This may mean module …

---

## [Count number of substrings in dataframe column](https://discourse.julialang.org/t/count-number-of-substrings-in-dataframe-column/9036)

<div class="topic-metadata">

**Author:** [@jacobcvt12](https://discourse.julialang.org/u/jacobcvt12)\
**Replies:** 8\
**Last updated:** [February 13, 2018, 11:07pm UTC](https://discourse.julialang.org/t/count-number-of-substrings-in-dataframe-column/9036 "2018-02-13T23:07:38Z")

</div>

I have a dataset (read in from a CSV). I’m trying to count how many observations contain a substring (for simplicity, let’s call it “X”). In R, I can do this sum(stringr::str\_count(data$CITY, "X")) \> 0 I’m having troub…

---

## [Making a callback event at a single timepoint](https://discourse.julialang.org/t/making-a-callback-event-at-a-single-timepoint/9038)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [February 13, 2018, 4:44pm UTC](https://discourse.julialang.org/t/making-a-callback-event-at-a-single-timepoint/9038 "2018-02-13T16:44:51Z")

</div>

Simple question. At a certain timepoint (e.g. t = 100) I want to make a callback, changing a parameter or variable value. The most intuitive way would be function condition(u,t,integrator) t == 100 end however the…

---

## [Events that changes parameter values](https://discourse.julialang.org/t/events-that-changes-parameter-values/9015)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [February 13, 2018, 4:01pm UTC](https://discourse.julialang.org/t/events-that-changes-parameter-values/9015 "2018-02-13T16:01:24Z")

</div>

I am running simulations on chemical reaction systems. Usually for these I have some input signal and I want to investigate what happens to the system when suddenly an input is turned on. Typically I might have a variabl…

---

## [Recommended way to save and read DataFrames in JSON format](https://discourse.julialang.org/t/recommended-way-to-save-and-read-dataframes-in-json-format/8990)

<div class="topic-metadata">

**Author:** [@piever](https://discourse.julialang.org/u/piever)\
**Replies:** 8\
**Last updated:** [February 12, 2018, 6:33pm UTC](https://discourse.julialang.org/t/recommended-way-to-save-and-read-dataframes-in-json-format/8990 "2018-02-12T18:33:24Z")

</div>

I need to save some tabular data in JSON format (from a game engine) to read it in Julia as a DataFrame (or IndexedTable). I’m trying to understand what is the best way to save this kind of data in JSON. The following tw…

---

## [Arguments passing behaviour for @spawnat and fetch](https://discourse.julialang.org/t/arguments-passing-behaviour-for-spawnat-and-fetch/9018)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 0\
**Last updated:** [February 12, 2018, 5:06pm UTC](https://discourse.julialang.org/t/arguments-passing-behaviour-for-spawnat-and-fetch/9018 "2018-02-12T17:06:17Z")

</div>

I am trying to figure out how data communication between procs is organized, but the docs are a bit vague about this. Do I understand correctly, that any time you do @spawnat worker\_id somefunc(args...), the arguments …

---

## [Is there a way that I can attach string labels to integer values in CategoricalArrays?](https://discourse.julialang.org/t/is-there-a-way-that-i-can-attach-string-labels-to-integer-values-in-categoricalarrays/8970)

<div class="topic-metadata">

**Author:** [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Replies:** 9\
**Last updated:** [February 11, 2018, 10:24pm UTC](https://discourse.julialang.org/t/is-there-a-way-that-i-can-attach-string-labels-to-integer-values-in-categoricalarrays/8970 "2018-02-11T22:24:34Z")

</div>

I noticed that CategoricalPool type allows labels for categorical values. I am wondering whether there is a way that I can convert an integer variable to a Categorical Array with string labels corresponding to each integ…

---

## [Iterate over all numeric columns in DataFrames](https://discourse.julialang.org/t/iterate-over-all-numeric-columns-in-dataframes/8916)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 21\
**Last updated:** [February 11, 2018, 6:12am UTC](https://discourse.julialang.org/t/iterate-over-all-numeric-columns-in-dataframes/8916 "2018-02-11T06:12:58Z")

</div>

beginner’s questions: how do I iterate over all numeric columns in a DataFrame, e.g., to calculate means or sum-cubed? bonus question: can DataFrames consider NaN to be a missing value for Float32 and Float64, too,…

---

## [\`max\` constraints in JuMP](https://discourse.julialang.org/t/max-constraints-in-jump/8983)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 5\
**Last updated:** [February 11, 2018, 5:39am UTC](https://discourse.julialang.org/t/max-constraints-in-jump/8983 "2018-02-11T05:39:30Z")

</div>

Similar to this question, how can I formulate a constraint involving max of the form \\sum\_{i=1}^m \[z\_i + t\]\_+ \\leq c where \[x\]\_+ = \\max(x,0), both t,c \\in \\mathbb{R}, and z = My \\in \\mathbb{R}^m for variable y \\in \\mathb…

---

## [How do I do a binary classification with GLMnet, or Lasso?](https://discourse.julialang.org/t/how-do-i-do-a-binary-classification-with-glmnet-or-lasso/8933)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 4\
**Last updated:** [February 9, 2018, 3:40pm UTC](https://discourse.julialang.org/t/how-do-i-do-a-binary-classification-with-glmnet-or-lasso/8933 "2018-02-09T15:40:43Z")

</div>

I wanted to include GLMnet and Lasso in http://white.ucc.asn.au/2017/12/18/7-Binary-Classifier-Libraries-in-Julia.html But I outright could not work out how to use them. I feel like they can be used for this, but ma…

---

## [Fail Testing Mosek 8 -\> ERROR: LoadError: ReadOnlyMemoryError()](https://discourse.julialang.org/t/fail-testing-mosek-8-error-loaderror-readonlymemoryerror/8891)

<div class="topic-metadata">

**Author:** [@erikfilias](https://discourse.julialang.org/u/erikfilias)\
**Replies:** 5\
**Last updated:** [February 9, 2018, 5:03am UTC](https://discourse.julialang.org/t/fail-testing-mosek-8-error-loaderror-readonlymemoryerror/8891 "2018-02-09T05:03:31Z")

</div>

Testing Mosek on Windows with Julia v0.6.2 - 32 bits. I am trying to run this code: using JuMP using Mosek #using SCS model = Model(solver=MosekSolver()) #model = Model(solver=SCSSolver()) @variable(model, Q\[1:2, 1:2…

---

## [How to handle simple events like step functions?](https://discourse.julialang.org/t/how-to-handle-simple-events-like-step-functions/8926)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [February 8, 2018, 5:08pm UTC](https://discourse.julialang.org/t/how-to-handle-simple-events-like-step-functions/8926 "2018-02-08T17:08:41Z")

</div>

Hello, In one paragraph I am trying to solve differential equations with discontinuities by solving them up to the discontinuity, change my system and input the old solution as initial conditions to a new problem. This…

---

## [Eigenvalues of Hessenberg matrix (ZHSEQR)](https://discourse.julialang.org/t/eigenvalues-of-hessenberg-matrix-zhseqr/8919)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 2\
**Last updated:** [February 8, 2018, 8:13am UTC](https://discourse.julialang.org/t/eigenvalues-of-hessenberg-matrix-zhseqr/8919 "2018-02-08T08:13:50Z")

</div>

Does Julia have a method to calculate the eigenvalues of a Hessenberg matrix? This would a wrapper around the ZHSEQR Lapack routine (I didn’t find anything in Base.LinAlg.LAPACK).

---

## [Suggested minimal requirements for short-term plotting solution](https://discourse.julialang.org/t/suggested-minimal-requirements-for-short-term-plotting-solution/8877)

<div class="topic-metadata">

**Author:** [@jlperla](https://discourse.julialang.org/u/jlperla)\
**Replies:** 38\
**Last updated:** [February 8, 2018, 3:10am UTC](https://discourse.julialang.org/t/suggested-minimal-requirements-for-short-term-plotting-solution/8877 "2018-02-08T03:10:21Z")

</div>

For consideration (as discussed on Slack), here is a proposed list of requirements to try to find the best short-term (i.e. until stabilization of Makie/Plots/etc.) solution for teaching plotting for new users, students, …

---

## [Running an ODEProblem until given a signal](https://discourse.julialang.org/t/running-an-odeproblem-until-given-a-signal/8913)

<div class="topic-metadata">

**Author:** [@mindbound](https://discourse.julialang.org/u/mindbound)\
**Replies:** 2\
**Last updated:** [February 7, 2018, 11:51pm UTC](https://discourse.julialang.org/t/running-an-odeproblem-until-given-a-signal/8913 "2018-02-07T23:51:02Z")

</div>

Is it possible for the timespan of an ODEProblem to be open-ended, i.e. for the problem to run until given an external signal (possibly via a discrete callback with an appropriate condition)? Intuitively, this would mean…

---

## [Programmatic Image Tagging](https://discourse.julialang.org/t/programmatic-image-tagging/6581)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 8\
**Last updated:** [February 7, 2018, 8:03pm UTC](https://discourse.julialang.org/t/programmatic-image-tagging/6581 "2018-02-07T20:03:22Z")

</div>

Here is my quick test of programmatic image tagging. My approach uses exiftool. The end goal is to be able to save useful metadata pertaining to plots into the saved images themselves. Definite Includes Specific keywo…

---

## [SumOfSquares, JuMP; Implementing semidefinite constraint with specified domain](https://discourse.julialang.org/t/sumofsquares-jump-implementing-semidefinite-constraint-with-specified-domain/8830)

<div class="topic-metadata">

**Author:** [@rdbrackston](https://discourse.julialang.org/u/rdbrackston)\
**Replies:** 2\
**Last updated:** [February 7, 2018, 4:02pm UTC](https://discourse.julialang.org/t/sumofsquares-jump-implementing-semidefinite-constraint-with-specified-domain/8830 "2018-02-07T16:02:51Z")

</div>

Hello all, I am using the SumOfSquares package to obtain Lyapunov functions with some particular properties. Given a polynomial vector field defined by \\dot{x} = f(x), I wish to obtain Lyapunov functions V(x) such that …

---

## [Replacement for os.path.walk in Python?](https://discourse.julialang.org/t/replacement-for-os-path-walk-in-python/8887)

<div class="topic-metadata">

**Author:** [@amarbl](https://discourse.julialang.org/u/amarbl)\
**Replies:** 1\
**Last updated:** [February 7, 2018, 12:00pm UTC](https://discourse.julialang.org/t/replacement-for-os-path-walk-in-python/8887 "2018-02-07T12:00:14Z")

</div>

Hi Folks, I am new to Julia, and beginning to port some machine learning projects over to Julia. One thing I am missing is the python os library which can walk a directory path quite easily. I am googling around and loo…

---

## [Using results from ODEProblem while it is running](https://discourse.julialang.org/t/using-results-from-odeproblem-while-it-is-running/8874)

<div class="topic-metadata">

**Author:** [@mindbound](https://discourse.julialang.org/u/mindbound)\
**Replies:** 2\
**Last updated:** [February 7, 2018, 1:55am UTC](https://discourse.julialang.org/t/using-results-from-odeproblem-while-it-is-running/8874 "2018-02-07T01:55:39Z")

</div>

Hello all, I’m currently studying the documentation of DifferentialEquations.jl and trying to port my older computational neuroscience codes for using it instead of my own, less elegant and performant, ODE solvers. Whil…

---

## [An illustration of Julia's beautiful design via truncated normal plots using StatsPlot.jl and Distributions.jl](https://discourse.julialang.org/t/an-illustration-of-julias-beautiful-design-via-truncated-normal-plots-using-statsplot-jl-and-distributions-jl/8876)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [February 6, 2018, 10:58pm UTC](https://discourse.julialang.org/t/an-illustration-of-julias-beautiful-design-via-truncated-normal-plots-using-statsplot-jl-and-distributions-jl/8876 "2018-02-06T22:58:10Z")

</div>

I was going to give a talk on a topic involving truncated normal distributions and I decided to write it in Julia. I googled how to do a density plot and quickly found an example for plotting the density of a normal func…

---

## [How to change code on workers - Revise.jl not able](https://discourse.julialang.org/t/how-to-change-code-on-workers-revise-jl-not-able/8847)

<div class="topic-metadata">

**Author:** [@pasha](https://discourse.julialang.org/u/pasha)\
**Replies:** 4\
**Last updated:** [February 6, 2018, 3:19pm UTC](https://discourse.julialang.org/t/how-to-change-code-on-workers-revise-jl-not-able/8847 "2018-02-06T15:19:27Z")

</div>

I have a custom package that runs on multiple processes. If I addprocs(n); using Mypkg it will load the code to each worker (I can tell because of the annoying Nullable warnings). Now when I edit the source code, my Re…

---

## [Constraints handling in JuMP/MOI](https://discourse.julialang.org/t/constraints-handling-in-jump-moi/8813)

<div class="topic-metadata">

**Author:** [@bbrunaud](https://discourse.julialang.org/u/bbrunaud)\
**Replies:** 3\
**Last updated:** [February 6, 2018, 4:53am UTC](https://discourse.julialang.org/t/constraints-handling-in-jump-moi/8813 "2018-02-06T04:53:43Z")

</div>

Hello all I’ve been looking at the code of the new JuMP with MOI, and I would like to understand how to update the things that are going to break in my code. In particular, I have been doing the following things Inspe…

---

## [Trouble with ControlSystems.jl](https://discourse.julialang.org/t/trouble-with-controlsystems-jl/8783)

<div class="topic-metadata">

**Author:** [@bo-lo](https://discourse.julialang.org/u/bo-lo)\
**Replies:** 13\
**Last updated:** [February 6, 2018, 1:21am UTC](https://discourse.julialang.org/t/trouble-with-controlsystems-jl/8783 "2018-02-06T01:21:01Z")

</div>

Hi I am trying to use ControlSystems.jl to model circuits involving inductors, capacitors and resistances in the s domain. On my first try, I am getting a Zero denominator issue that I cannot debug. Here is the code (J…

---

## [Gentleman's AS75 (+ Miller AS 274) Incremental WLS Algorithms](https://discourse.julialang.org/t/gentlemans-as75-miller-as-274-incremental-wls-algorithms/8822)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 7\
**Last updated:** [February 5, 2018, 9:14pm UTC](https://discourse.julialang.org/t/gentlemans-as75-miller-as-274-incremental-wls-algorithms/8822 "2018-02-05T21:14:12Z")

</div>

Has someone already implemented Gentleman’s AS75 WLS code in Julia? It is not only fast and robust, but works nicely with adding single obs, one at a time. https://www.jstor.org/stable/2347147 https://www.jstor.org/st…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=542)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=544)
