Re: [julia-users] Re: [Announcement] Moving to Discourse (Statement of Intent)

2016-11-08 Thread Valentin Churavy
`julia-dev` has now moved to discourse. One possibility would be to start forwarding posts for `julia-users` from Google Groups to Discourse, but that is a one way street. So before I enable that I would like to hear what everybody thinks about it. On Wed, 9 Nov 2016 at 02:01 Tom Breloff

Re: [julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Kostas Oikonomou
It seems that the problem is in Blink/src/AtomShell/process.jl. The error report indicates line 62 there. So I tried running some lines by hand: julia> port() = rand(2_000:10_000) # line 57 port (generic function with 1 method) julia> p = port() #

Re: [julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Tom Breloff
Sounds like progress. You might try restarting Julia, and also try the plotting command a few times. Blink is known to have a race condition on startup that sometimes produces this sort of error. On Tue, Nov 8, 2016 at 1:02 PM, Kostas Oikonomou < kostas.oikonomo...@gmail.com> wrote: > Thanks.

[julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Kostas Oikonomou
Thanks. Before reading your post, I had added an "if is_bsd()" statement to Blink/src/AtomShell/install.jl, and I set arch to "ia32" as FreeBSD has default support for 32-bit Linux. The result is that when I redo AtomBlink.AtomShell.install(), the 32-bit Linux binary is installed. However,

RE: [julia-users] Re: Escaped $ in Strings has a strange behavior

2016-11-08 Thread David Anthoff
Ah, thanks for the answer, that does make sense. > -Original Message- > From: julia-users@googlegroups.com [mailto:julia- > us...@googlegroups.com] On Behalf Of Yichao Yu > Sent: Monday, November 7, 2016 8:02 PM > To: Julia Users > Subject: Re:

Re: [julia-users] Multiple dispatch algorithm.

2016-11-08 Thread Páll Haraldsson
On Friday, November 4, 2016 at 8:05:30 PM UTC, Matt Bauman wrote: > > I posted an answer to this a year ago on Stack Overflow: > http://stackoverflow.com/a/32148113/176071 > Thanks. I see "so it's just a linear search to check if the type of the argument tuple is a subtype of the signature. So

Re: [julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Tom Breloff
Even better... you should add a tutorial for how to do: https://github.com/tbreloff/Plots.jl/issues/541 On Tue, Nov 8, 2016 at 12:00 PM, Scott T wrote: > Sure, happy to add to ExamplePlots! Do you have any more suggestions for > layout-related features you'd like to

Re: [julia-users] Re: [Announcement] Moving to Discourse (Statement of Intent)

2016-11-08 Thread Tom Breloff
+1... can we move already? Discourse is a huge improvement. I specifically don't answer some questions here because of the difficulty in writing answers with code. On Sun, Nov 6, 2016 at 3:16 PM, Stefan Karpinski wrote: > - Selectively subscribe to certain

Re: [julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Scott T
Sure, happy to add to ExamplePlots! Do you have any more suggestions for layout-related features you'd like to showcase? Inset plots? I think the key things to get across are how to define layouts and how to overlay/facet series within a layout. Scott On Tuesday, 8 November 2016 16:28:11

[julia-users] Re: problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread randmstring
I don't think Electron works on FreeBSD (see here ), but Blink requires it. You could try using the Linux binaries by changing this line to be is_linux() ||

Re: [julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Tom Breloff
Thanks for putting those examples together Scott. Do you want to contribute that to ExamplePlots? Ferran: as Scott has shown nicely, there's an ton of different ways to do what you want, and the "right" way is going to depend on your problem... what the layouts/data look like. Many times it's

[julia-users] Julia 0.5.0 together with Codec.jl (Base64) slower than on 0.4.5

2016-11-08 Thread Páll Haraldsson
I was running [not my code..]: https://github.com/kostya/benchmarks/blob/master/base64/test.jl [and looking into why Base64-benchmark was slower than in Ruby.. and then even slower under 0.5] and lines 12, 13 and 21 (e.g. here add 2 to what profile says) seem predictable slow. A. Why is

[julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Ferran Mazzanti
Oh! Scott you're very kind to take your time helping me with the notebook... thanks a lot. I'll take a careful look and report back if I find problems. Best, Ferran. On Tuesday, November 8, 2016 at 1:22:20 PM UTC+1, Scott T wrote: > > You can break down the plot command into chunks and then call

Re: [julia-users] most generic way to request iterable type as input

2016-11-08 Thread Mauro
There is no proper way to do this. But note that your suggestion below is not any more performant than just not typing the field. You could check in the constructor whether the type can be iterated on: immutable Test{T} a::T function Test(a) @assert eltype(a)<:Integer tmp = [aa in

[julia-users] most generic way to request iterable type as input

2016-11-08 Thread Kevin Kunzmann
Hi, say I want to define a custom type with a field that accepts any kind of iterable integer type as valid input (both 1:3 as well as collect(1:3)), how would I do that in the most generic way? I know that I can use type test{T<:integer} a::Union{Range{T},Vector{T}} end But there might be

[julia-users] Re: JLD crash on WIN

2016-11-08 Thread Igor Cerovsky
I've also submitted an issue to JLD, and the problem is originally addressed here: https://github.com/JuliaIO/JLD.jl/issues/103 On Tuesday, 8 November 2016 14:50:49 UTC+1, Igor Cerovsky wrote: > > Hello, > > Julia 0.5 crashes when loading previously saved data using JLD; code below > shows a

[julia-users] JLD crash on WIN

2016-11-08 Thread Igor Cerovsky
Hello, Julia 0.5 crashes when loading previously saved data using JLD; code below shows a simple example, that causes crash: using JLD type foo a::Int b::String end f = foo(1, "a") save("d:/work/Julia/data.jld", "f", f) l = load("d:/work/Julia/data.jld", "f") # crashes here however,

Re: [julia-users] problems (and some fixes) for using Plots and PlotlyJS on FreeBSD

2016-11-08 Thread Tony Kelman
Most likely there are various platform-checking if statements that don't properly handle the freebsd situation of being not linux and not macos and not windows. Does Atom support FreeBSD, do they have binaries available? If so, a few more careful fallbacks might be able to fix this?

Re: [julia-users] Re: How to built an array with some keys of a dictionary ?

2016-11-08 Thread Fred
Thank you Dan, this solution works to ! I don't know which one is better :) Le mardi 8 novembre 2016 08:40:37 UTC+1, Dan a écrit : > > I meant, > > a = Vector{String}() > >

[julia-users] Re: Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Scott T
You can break down the plot command into chunks and then call plot on those chunks to build up a plot from several pieces. In this way, you can make individual plots with multiple series. Then you can combine them according to your desired layout. This isn't the best place to post a full

[julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Ferran Mazzanti
Hi, I'm gathering interest in Plots.jl in order to make complex plotting structures. Just as an example, I have a set of data (called y) and some operations performed on it, stored in arrays of obvious names y2, logy, expy etc... I have managed to create something that displays one curve per