[julia-users] JSON parsing into Matrix (checkbounds error)

2014-03-26 Thread Collin Glass
Hi, I'm creating a TCP client for a bomberman game in Julia. I need to parse the current state of the gameboard (which is a lot of tiles). Sample JSON, {{["Name"=>"Wall"],["Name"=>"Wall"],["Name"=>"Wall"],["Name"=>"Rock"],...},{...,["Name"=>"Wall"],...},...} I am new to Julia, as such I am intr

Re: [julia-users] worker/proc nomenclature

2014-03-26 Thread Amit Murthy
In a parallel environment, the thinking is that all computations are performed in "worker" processes, with pid 1, usually being the driver process that does not do any actual computations itself. processors should probably be changed to processes to maintain consistency. On Wed, Mar 26, 2014 at

[julia-users] Pkg.publish broken?

2014-03-26 Thread Sheehan Olver
I'm trying to Pkg.publish() but get the following errors, even after remaking on the latest build and restarting my METADATA.jl: *julia> **Pkg.publish()* *INFO: Validating METADATA* *INFO: No new package versions to publish* *INFO: Submitting METADATA changes* *INFO: Forking JuliaLang/METADAT

Re: [julia-users] Re: Calculus2: A new proposed interface for Calculus

2014-03-26 Thread Luis Benet
Hi Jason, > It looks like the scope of this is very similar to PowerSeries.jl. We > should do some benchmarking and API bikeshedding, and think about combining > efforts. > > Are there places your new package is obviously superior? I see > L'Hospital's rule for division: that's a nice idea. >

[julia-users] Interfaces like in Go

2014-03-26 Thread Dom Luna
I really like how interfaces work in Go and I was wondering if there's a similar way to express this in Julia. For those who are unfamiliar with Go interfaces they're essentially types defined by behaviour (functions) and not by fields. So for example the ReadWriter interface implements the Rea

[julia-users] current status of specialisation on function valued args

2014-03-26 Thread andrew cooke
hi, did this - https://groups.google.com/d/msg/julia-dev/AP8AibF9Iuk/fMuMqBt5EfwJ - happen? couldn't find an issue. thanks, andrew

[julia-users] imwrite ImageCmap

2014-03-26 Thread Yakir Gagnon
Stuck... Can someone give me an example of imwriting the output from ImageCmap? So this for instance does not work (taken from "Using Image.jl for false-color maps" ): using Images, Color # build a sample image datafloat =

[julia-users] Re: PySide QSizePolicy

2014-03-26 Thread j verzani
Try this for example, QtGui = PyCall.pyimport("PySide.QtGui") QtGui["QSizePolicy"]["Fixed"], On Wednesday, March 26, 2014 5:20:11 PM UTC-4, Samuele Carcagno wrote: > > another PySide question, how to set `QSizePolicy`? for example how to > translate the following Python code > > loadPara

Re: [julia-users] Cubic spline interpolation

2014-03-26 Thread Tim Holy
This is spelled out in the paper P. Thevenaz, T. Blu, and M. Unser (2000). "Interpolation Revisited." IEEE Transactions on Medical Imaging, 19: 739-758. Basically, the idea is that interpolation computes values from a set of coefficients: y(x) = sum_i coef_i * f_i(dx_i) where dx_i comes

Re: [julia-users] Cubic spline interpolation

2014-03-26 Thread Stefan Schwarz
> > Hello Tim, this is maybe not the right place to ask this question, but may you elaborate on that matter, that interp_invert! compensates "the non-interpolating" issue of the quadratic? Thanks in advance Stefan

Re: [julia-users] Re: Calculus2: A new proposed interface for Calculus

2014-03-26 Thread Jason Merrill
On Wednesday, March 26, 2014 12:47:47 PM UTC-7, Luis Benet wrote: > > Hi, > > I have followed the discussion, and would like to announce a package that > we are developing: > https://github.com/lbenet/TaylorSeries.jl > since it does a bunch of things discussed above, though so far for 1 > indepe

Re: [julia-users] Re: Anonymous types

2014-03-26 Thread Jacques Rioux
jacques.ri...@outlook.com On Jan 9, 2014 6:48 PM, "Patrick O'Leary" wrote: > On Thursday, January 9, 2014 4:37:42 PM UTC-6, Brian Nguyen wrote: >> >> Types are first class objects. How to write anonymous types in Julia? > > > Never one to discourage bad ideas, I offer this old code (which I note

[julia-users] PySide QSizePolicy

2014-03-26 Thread Samuele Carcagno
another PySide question, how to set `QSizePolicy`? for example how to translate the following Python code loadParametersButton.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) I tried looking for `QSizePolicy` in Qt properties but didn't find it pyimport("PySide.QtCore")["

Re: [julia-users] Re: Calculus2: A new proposed interface for Calculus

2014-03-26 Thread Luis Benet
Hi, I have followed the discussion, and would like to announce a package that we are developing: https://github.com/lbenet/TaylorSeries.jl since it does a bunch of things discussed above, though so far for 1 independent variable. It expands different functions (so far a limited number of basic

Re: [julia-users] Byte Order

2014-03-26 Thread Stephen Chisholm
That should do it. Thanks! On Wed, Mar 26, 2014 at 3:48 PM, Jacob Quinn wrote: > Is this what you're looking for? > > > On Wed, Mar 26, 2014 at 2:43 PM, Stephen Chisholm > wrote: >> >> Is there currently a way to specify network byte order when calling... ? >> >> read(io_stream, Uint16) > >

Re: [julia-users] Byte Order

2014-03-26 Thread Jacob Quinn
Is this what you're looking for? On Wed, Mar 26, 2014 at 2:43 PM, Stephen Chisholm wrote: > Is there currently a way to specify network byte order when calling... ? > > read(io_stream, Uint16) >

[julia-users] Byte Order

2014-03-26 Thread Stephen Chisholm
Is there currently a way to specify network byte order when calling... ? read(io_stream, Uint16)

Re: [julia-users] function hook into variable changes

2014-03-26 Thread Keith Mason
> > I'll expand on my iphone post with some pseudo-code. This is interesting; not something I was aware was possible. I'll dig into it a bit deeper, thanks! On Tuesday, March 25, 2014 10:22:48 PM UTC-5, Jameson wrote: > > I'll expand on my iphone post with some pseudo-code. > > do blocks ma

Re: [julia-users] function hook into variable changes

2014-03-26 Thread Keith Mason
> > Have you considered column-oriented storage where each column is > homogenous and can be mmapped? > That is actually the direction I am going in. It doesn't make sense for all of my tables, but I think it might be the right approach for most of them. On Tuesday, March 25, 2014 9:57:08 P

Re: [julia-users] Cubic spline interpolation

2014-03-26 Thread Simon Kornblith
You could write a C interface to the C++ spline library and then ccall that from Julia. That's probably not too much work, but I can't promise that the interface plus the port to Julia would be less work than fixing the segfaults. Simon On Wednesday, March 26, 2014 10:30:52 AM UTC-4, Tomas Lyc

Re: [julia-users] Cubic spline interpolation

2014-03-26 Thread Tomas Lycken
I'd happily use quadratic interpolation if it weren't for that exact limitation - I *do* need continuous second derivatives in the 2D interpolation... I've never actually implemented spline interpolation myself, so I'd probably have to spend quite a lot of time delving into the current code to

Re: [julia-users] Cubic spline interpolation

2014-03-26 Thread Tim Holy
I should also add that unless you need a continuous second derivative, quadratic (while not as popular) is IMO nicer than cubic in several ways---for example, by requiring fewer points (27 rather than 64 in 3 dimensions), it's faster to evaluate. I suspect the main reason quadratic isn't popular

[julia-users] Re: Is a.(b) valid?

2014-03-26 Thread Ivar Nesje
Cross linking the issue for removing the a.(b) syntax: #6268 Ivar kl. 09:49:15 UTC+1 onsdag 26. mars 2014 skrev Andreas Lobinger følgende: > > I remembered something with 13 and mapped it to R2013x ... > > On Tuesday, March 25, 2014 10:47:39 PM UTC

Re: [julia-users] Cubic spline interpolation

2014-03-26 Thread Tim Holy
Adding support for cubic splines to Grid should be fairly straightforward. Adding support for 2nd derivatives might be a bit harder, since in dimensions higher than 1 you really need the Hessian. If you're interested in implementing it, you'd basically need to create set_hessian_coordinates (lik

[julia-users] Cubic spline interpolation

2014-03-26 Thread Tomas Lycken
Hi, Is there a (maintained) package somewhere with cubic spline capabilities? I need something that fulfills the following requirements: * Scalar-valued functions of one variable, f(x), specified on uniform or non-uniform x-grids * Scalar-valued functions of two variables, f(x,y), at least spec

[julia-users] Re: pycall error

2014-03-26 Thread Tang Ross
Thanks a lot. It works.

[julia-users] worker/proc nomenclature

2014-03-26 Thread Ben Arthur
if "procs() Returns a list of all process identifiers." and "workers() Returns a list of all worker process identifiers." then why do we "rmprocs(pids...) Removes the specified workers." instead of rmworkers()? particularly since julia> rmprocs(1) WARNING: rmprocs: process 1 not removed :ok si

[julia-users] Re: Is a.(b) valid?

2014-03-26 Thread Andreas Lobinger
I remembered something with 13 and mapped it to R2013x ... On Tuesday, March 25, 2014 10:47:39 PM UTC+1, Tony Kelman wrote: > > To pick a nit, dynamic field names for structs have been around since R13, > not what I'd call recent: > http://blogs.mathworks.com/loren/2005/12/13/use-dynamic-field-

Re: [julia-users] How to use weight in the data.

2014-03-26 Thread Paul Analyst
Thx. It is grate ! This is great! Does the panel does not have all the documentation packages? Paul W dniu 2014-03-25 18:14, Stefan Karpinski pisze: StatsBase provides extensive support for weights: http://statsbasejl.readthedocs.org/en/latest/ On Tue, Mar 25, 2014 at 12:51 PM, paul ana

Re: [julia-users] Inverse of a matrix of user defined type?

2014-03-26 Thread Andreas Noack Jensen
Its a good idea to upgrade to the nighlies. Things happen fast. Unfortunately, your problem won't work yet. The problem is that the lu factorization uses pivoting and this assumes more structure on the matrix elements. More precisely, it assumes an order of the absolute values of the elements. I th