Re: [julia-users] Re: JuliaCon schedule announced

2016-07-18 Thread Christian Peel
I saw quite a few videos with the same problem. On Mon, Jul 18, 2016 at 1:52 AM, Mauro wrote: > A request for a correction: in Keno's Gallium talk the bottom line of > the screen is cut off. As most of his talk is a demo, where most things > happen in the bottom line, this

[julia-users] Re: Array of vectors in type definition

2016-07-18 Thread 'Greg Plowman' via julia-users
Although Vector{Array{Float64}} works, be aware that it is specifying a vector of the abstract type Array{Float64} (any dimension allowed). In general this is not recommended. It is better to specify a concrete type where possible. In your case, this probably means Vector{Vector{Float64}}. On

[julia-users] Re: Calculating pi using parallel computing

2016-07-18 Thread 'Greg Plowman' via julia-users
Maybe something like this: See http://docs.julialang.org/en/release-0.4/manual/parallel-computing/ (particularly section Parallel Map and Loops) @everywhere f(x) = 4/(1+(x*x)) function calc_pi(n) a,b = 0,1 dx = (b-a)/n sumfx = @parallel (+) for x in a:dx:b f(x) end

[julia-users] Setting socket options in ZMQ.jl

2016-07-18 Thread Salman Haider
ZeroMQ has an option where the subscribe socket only keeps the last message. I was wondering if there is a way to specify that. Something like the following: using ZMQ ctx = Context() s = Socket(ctx, SUB) ZMQ.subscribe(s) ZMQ.set_subscribe(ZMQ.CONFLATE, 1) # ERROR: LoadError: UndefVarError:

[julia-users] Re: Array of vectors in type definition

2016-07-18 Thread Ferran Mazzanti
Hi Mauro, your solution seems to work... though I do not understand exactly why :) Even Vector{Array{Float64}} works. Thanks for your kind help :) Ferran.

[julia-users] Re: Calculating pi using parallel computing

2016-07-18 Thread David van Leeuwen
Hello Arundhyoti, This is probably the answer you were looking for, but a while ago I collected several algorithms for computing π. I just updated these to Julia-0.4 here . On Monday, July 18, 2016 at 6:52:25 AM UTC+2, Arundhyoti Sarkar wrote: > > The

Re: [julia-users] Re: Julia String Manipulation

2016-07-18 Thread Yared Melese
Perfect!!! Thank you very much It works! On Monday, July 18, 2016 at 2:39:21 PM UTC-5, Tom Breloff wrote: > julia> parse(Float64,ans[1]) > 200.5 > > > On Mon, Jul 18, 2016 at 3:33 PM, Yared Melese > wrote: > >> Thanks for quick response, it works in most cases but when

Re: [julia-users] Re: Julia String Manipulation

2016-07-18 Thread Tom Breloff
julia> parse(Float64,ans[1]) 200.5 On Mon, Jul 18, 2016 at 3:33 PM, Yared Melese wrote: > Thanks for quick response, it works in most cases but when the number is > float, parse has problem as shown below > > How about when the number has decimal points for example > >

[julia-users] Re: Julia String Manipulation

2016-07-18 Thread Yared Melese
Thanks for quick response, it works in most cases but when the number is float, parse has problem as shown below How about when the number has decimal points for example exString = "Exact number 390 \n Exact qty: +200.5 people \n Starting number: 5 now 16.5A_C" srchStr ="Exact qty

Re: [julia-users] Julia String Manipulation

2016-07-18 Thread Tom Breloff
Something like this? julia> search(exString, srchStr) 21:30 julia> exString[search(exString, srchStr)[end]+1:end] |> strip |> split 7-element Array{SubString{ASCIIString},1}: "+200" "people" "Starting" "number:" "5" "now" "16.5A_C" julia> parse(Int, ans[1]) 200 On Mon, Jul 18, 2016 at

Re: [julia-users] Re: testing intrument Automation

2016-07-18 Thread Yared Melese
Thanks - Instrument drivers works just fine Here is reference for others using Instruments PXA = GenericInstrument() connect!(PXA,"GPIB0::18::INSTR") # Connect to Instrument with name PXA write(PXA, "system:preset") # Write to PXA instrument acp = split((query(PXA,

[julia-users] Julia String Manipulation

2016-07-18 Thread Yared Melese
Hello I was trying to parse a number from string as shown below. Would you please let me know if there is easy way to get the number after a specific string ? please note that the string can be variable(different) goal is to specify search string and put out exact number with out any text

[julia-users] Re: Fast higher order differentiation

2016-07-18 Thread Kristoffer Carlsson
Take a look at ReverseDiffSource.jl. On Monday, July 18, 2016 at 3:59:10 AM UTC-4, Eric Forgy wrote: > > Hi Young Chun, > > Welcome to Julia! Like Jeffrey, I think your question was a good one and > the outcome is even better. > > I don't know how others feel, but as an "oldie", it is super

Re: [julia-users] Array of vectors in type definition

2016-07-18 Thread Mauro
Array{Float64}[] creates an instance of type Vector{Array{Float64}}. You need the type, probably Vector{Vector{Float64}}. On Mon, 2016-07-18 at 17:13, Ferran Mazzanti wrote: > Guys, > > today I've tried to include a vector of vectors as part of atype > definition,

[julia-users] Re: [ANN] LombScargle.jl: compute periodogram for unevenly sampled data

2016-07-18 Thread Ken B
Thank you Mose for this package! I've had the need for this functionality before but back then not the time to implement it. When the need arises again I now know where to go :) On Monday, 18 July 2016 10:16:28 UTC+2, Mosè Giordano wrote: > > Dear all, > > I'm pleased to announce the first

Re: [julia-users] Threading in 0.5

2016-07-18 Thread Yichao Yu
On Mon, Jul 18, 2016 at 4:25 AM, Bart Janssens wrote: > Op ma 18 jul. 2016 00:10 schreef Yichao Yu : >> >> On Sun, Jul 17, 2016 at 6:07 PM, Bart Janssens >> wrote: >> > Hi all, >> > >> > I'd like to experiment a bit with 0.5

[julia-users] [ANN] Calc.jl - a calculator for the REPL

2016-07-18 Thread Tom Short
https://github.com/tshort/Calc.jl This adds a REPL mode for an RPN calculator initiated by the = key. Operations and key strokes generally mimic Emacs Calc. It's pretty easy to add your own operations. The RPN style can use less keys. Undo and redo are easy.

Re: [julia-users] Re: JuliaCon schedule announced

2016-07-18 Thread Mauro
A request for a correction: in Keno's Gallium talk the bottom line of the screen is cut off. As most of his talk is a demo, where most things happen in the bottom line, this makes it hard to follow along. Is there any chance that this can be re-edited? On Sun, 2016-07-17 at 07:00, Tony Kelman

Re: [julia-users] Threading in 0.5

2016-07-18 Thread Bart Janssens
Op ma 18 jul. 2016 00:10 schreef Yichao Yu : > On Sun, Jul 17, 2016 at 6:07 PM, Bart Janssens > wrote: > > Hi all, > > > > I'd like to experiment a bit with 0.5 threading for QML.jl, by trying to > > call a Julia function from within the QML rendering

[julia-users] Re: ANN: New Julia Packages website

2016-07-18 Thread Adrian Salceanu
Sure, I'll take a look at the current source and then we can go into more details. In general though, I think it's important to come up with a higher level (branding/visual) strategy, in regards to Julia online resources. 1. what's the value of (web) design. http://julialang.org/ looks a bit

[julia-users] [ANN] LombScargle.jl: compute periodogram for unevenly sampled data

2016-07-18 Thread Mosè Giordano
Dear all, I'm pleased to announce the first release of LombScargle.jl , a package to compute the Lomb-Scargle periodogram . Differently from standard FFT, this can be used to find

[julia-users] Re: Fast higher order differentiation

2016-07-18 Thread Eric Forgy
Hi Young Chun, Welcome to Julia! Like Jeffrey, I think your question was a good one and the outcome is even better. I don't know how others feel, but as an "oldie", it is super encouraging to me that: 1. People can even ask questions like this 2. Julia provides a highly satisfactory