[julia-users] Re: JuliaCon 2015 videos

2015-08-14 Thread Johan Sigfrids
Nice! The quality is much better than last years videos. On Thursday, August 13, 2015 at 8:22:09 PM UTC+3, Viral Shah wrote: Folks, I am happy to announce that the videos are almost all ready, and I will start posting them in batches. I am starting with Jeff’s talk on our Youtube

Re: [julia-users] Re: big matrices in Julia

2015-08-14 Thread Charles Novaes de Santana
Hi John, Thanks for writing and for your suggestion. Sorry if my email was not clear. I am working with global discrete maps at resolution varying from 0.5x0.5 to 2.5x2.5 degrees per grid point. Those maps are discrete and represent the presence or absence of suitable habitat, so many of the

[julia-users] Re: JuliaCon 2015 videos

2015-08-14 Thread Viral Shah
Here are the next batch of videos. There is a JuliaCon 2015 channel now: https://www.youtube.com/playlist?list=PLP8iPy9hna6Sdx4soiGrSefrmOPdUWixM This batch includes: David Sanders: Validated numerics in Julia Patrick Sanan: Using Julia on a Cray Supercomputer Keno Fischer: Shaving the Yak

Re: [julia-users] Creating a bitmapped image with color bar

2015-08-14 Thread Maurizio Tomasi
Tim, does ImageCmap works with latest Julia? I cloned the latest Julia repository (0.4), added the Color, Images, and ImageView package and run this code (adapted from https://groups.google.com/forum/#!searchin/julia-users/%22ImageCmap%22/julia-users/T-i1JdwB4zk/f7FEsh4En4oJ but using PBM

Re: [julia-users] Re: big matrices in Julia

2015-08-14 Thread Mauro
Maybe you could use a ragged array, which would only store the half of the matrix you need: https://bitbucket.org/maurow/ragged.jl On Fri, 2015-08-14 at 01:03, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear all, Thank you very much for your help and suggestions! I have

[julia-users] Re: Creating a bitmapped image with color bar

2015-08-14 Thread Maurizio Tomasi
*@Tim Holy*: Many thanks for the reference, I completely missed ImageCmap. I'll give it a try. *@Steven G. Johnson*: Yes, in my everyday work I am actually using my Healpix.jl library together with PyPlot. However, I am looking for a solution which does not require potential Healpix.jl users

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-08-14 Thread Jake Bolewski
Andrei Zh I'm confused. Have you actually tried? julia io = IOBuffer() IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1) julia foo(x) = x + 1 foo (generic function with 1 method) julia serialize(io, foo) julia

[julia-users] Re: big matrices in Julia

2015-08-14 Thread John Gibson
Charles: Thanks for your response. I understand now that your application is ecological, but the mathematical nature and the discretization of your system is still unclear. You might consider a 'lazy' approach, in which you compute a distance when you need it, rather than computing them all

Re: [julia-users] big matrices in Julia

2015-08-14 Thread Stefan Karpinski
On Friday, August 14, 2015, Charles Novaes de Santana charles.sant...@gmail.com wrote: 1) to use only the subset of suitable habitats to build the matrix of distances (and then to use sparse matrix as suggested by Stefan) Distance matrices are not usually sparse – since the farthest apart

Re: [julia-users] Creating a bitmapped image with color bar

2015-08-14 Thread Tim Holy
Go ahead and submit the bug report. Also let me know what ImageView does with it. (I never use colormap images myself, so this is less well-tested.) A pull-request fixing the problem would be even better, of course! --Tim On Friday, August 14, 2015 06:54:19 AM Maurizio Tomasi wrote: Tim, does

Re: [julia-users] Creating a bitmapped image with color bar

2015-08-14 Thread Andreas Lobinger
Hello colleague, i tend to agree, there is something wrong with Images.jl. I get lobi@orange4:~/juliarepo$ ../julia04/julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-08-14 Thread Andrei Zh
Hi Jake, your example works because you don't leave Julia session. `foo` is defined in this session, so the the pair of module name and function name is enough to get function object. If you save serialized function (or just retype it byte by byte) , it won't work. Here's an example:

[julia-users] Re: How has the behavior of include/require etc. changed in 0.4?

2015-08-14 Thread Spencer Lyon
We saw problems trying to load on very recent master the other day. I was able to fix it using the steps outlined here: https://github.com/QuantEcon/QuantEcon.jl/issues/64#issuecomment-130149602. Can you give that a try and report back? On Friday, August 14, 2015 at 3:34:51 PM UTC-4, Nils

Re: [julia-users] What's the best way to cache a function generated from a type instance?

2015-08-14 Thread Scott T
The issue was that I wasn't storing the Spline2D directly, but rather a function which wrapped log10 calls around the arguments. Pulling these out into my type's call method and directly storing the Spline inside it works perfectly. Thanks! I guess the lesson here is just store the data inside

[julia-users] nbagg support in ijulia?

2015-08-14 Thread smokingbear
Is nbagg backend supported by ijulia? If so, can anyone give me an example? I tried to change the backend to nbagg but it doesn't really show any interactive plot in notebooks. ref. https://github.com/stevengj/PyPlot.jl/issues/137 https://github.com/stevengj/PyCall.jl/issues/89 Thank you,

[julia-users] ANN: Major overhaul of ForwardDiff.jl

2015-08-14 Thread Jarrett Revels
Hi! ForwardDiff.jl https://github.com/JuliaDiff/ForwardDiff.jl, a Julia package for performing automatic differentiation, has just been updated and is now much less buggy, much more performant, and much more comprehensively tested. An additional goal of the update was to provide a more

Re: [julia-users] Segmentation fault during Julia compilation

2015-08-14 Thread Jameson Nash
It's a JIT copy of a julia function named new. The last time this error popped up, it was due to an error in the free_page function logic to compute whether it was safe to free the current page (since PPC using large pages). One place to check then is to ensure the invalid pointer hadn't

[julia-users] Re: Error 403 loading Images package

2015-08-14 Thread Daniel Fenn
More information: this isn't specific to the Images packages. Running Pkg.update() gives the same error. Any ideas? On Thursday, August 13, 2015 at 5:22:08 PM UTC-4, Daniel Fenn wrote: Hi, I just downloaded the Juno IDE to give Julia a try. I'm going through the initial tutorial, and when

[julia-users] Re: Possible to use filter! on a child dict within a parent dict, to remove the entire parent dict if condition in child is met?

2015-08-14 Thread Jeffrey Sarnoff
if you want to do this, yes: julia a=Dict(A=1, B=2) Dict{ASCIIString,Int64} with 2 entries: B = 2 A = 1 julia around_a=Dict(A=3, B=a) Dict{ASCIIString,Any} with 2 entries: B = Dict(B=2,A=1) A = 3 julia if (around_a[B][A] == 1) delete!(around_a[B],A); end julia

[julia-users] Re: Possible to use filter! on a child dict within a parent dict, to remove the entire parent dict if condition in child is met?

2015-08-14 Thread Ian Butterworth
Thanks. I was specifically asking about `filter!` but your code works well and it's only occupying 4 lines of code, so it should suffice. Much appreciated On Friday, 14 August 2015 12:18:29 UTC-4, Jeffrey Sarnoff wrote: if you want to do this, yes: julia a=Dict(A=1, B=2)

Re: [julia-users] Re: ArrayViews setindex! error

2015-08-14 Thread Stefan Karpinski
It should be pretty safe to start using 0.4 since we're about to enter a feature freeze and release process. The main issue is that many packages may not yet work on 0.4, so that part will be a bit rough. On Fri, Aug 14, 2015 at 2:17 PM, Simon Kornblith si...@simonster.com wrote: ArrayViews

[julia-users] Re: ArrayViews setindex! error

2015-08-14 Thread Simon Kornblith
ArrayViews doesn't support indexing with ranges, vectors, etc. on Julia 0.3, although this should work on Julia 0.4. (Also on 0.4, SubArrays created with sub/slice should be equally fast as ArrayViews, and both should be faster than on 0.3.) On 0.3 you need to write an explicit loop to set

RE: [julia-users] Re: ANN: Major overhaul of ForwardDiff.jl

2015-08-14 Thread David Anthoff
Fantastic, thanks Jarrett! Cheers, David From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Miles Lubin Sent: Friday, August 14, 2015 3:35 PM To: julia-users julia-users@googlegroups.com Cc: miles.lu...@gmail.com Subject: [julia-users] Re: ANN: Major

[julia-users] Re: Get time between two DateTime values in hours (and minutes if simple)

2015-08-14 Thread Jeffrey Sarnoff
Dates.Hour, .. Dates.Millisecond what to put their parens around DateTime entities only. Dates.Year. .. Dates.Day are more open-minded, enparenning DateTime or Date entities. take 'em for a spin like this: Dates.Hour(time_series[2]) - Dates.Hour(time_series[1]) Here's to a Good Evening

[julia-users] Re: Creating a show method for type alias

2015-08-14 Thread Jeffrey Sarnoff
Ben, much as I would like there to be a second kind of typealias, *typealiased -- *that let us work with the renanamings wiithout risk to the objects of the type originally aliased -- this is not on the radar now. It is hard to peel off enough to form the CIGAR when the role of typealias is to

[julia-users] Re: Error 403 loading Images package

2015-08-14 Thread Tony Kelman
Go into the /Git folder in your Julia installation and run git-bash.bat. Can you git clone anything from github from there? Either over git:// or https:// ? On Friday, August 14, 2015 at 9:49:05 AM UTC-7, Daniel Fenn wrote: More information: this isn't specific to the Images packages.

[julia-users] Re: Creating a show method for type alias

2015-08-14 Thread Ben Ward
Would that work? The variable to be printed isn't fed in as the second option? On Wednesday, August 12, 2015 at 1:34:16 AM UTC+1, colint...@gmail.com wrote: Does the following work? function Base.show(io::IO, ::Type{CIGARString}) #your code here end On Tuesday, 11 August 2015

[julia-users] Get time between two DateTime values in hours (and minutes if simple)

2015-08-14 Thread Ian Butterworth
Trying to get the number of hours between these two dates (ideally x hours and y minutes), but can't figure out how to convert the duration variable into hours. The bottom line currently errors timein = 2015/8/13 10:19:50 timein2 = 2015/8/14 13:12:34 time_series[1] = DateTime(timein,/mm/dd

[julia-users] Re: ANN: Major overhaul of ForwardDiff.jl

2015-08-14 Thread Miles Lubin
Thanks Jarrett! This work is the product of a Julia Summer of Code project. Please kick the tires, we're planning letting the new code sit on master for a bit before tagging a new release. Users of Julia 0.3 will be stuck on the old API, since the code makes extensive use the generated

Re: [julia-users] Creating a show method for type alias

2015-08-14 Thread Ben Ward
I tried this too, to override the method for Array{CIGAR, 1} but it still does not work: function Base.show(io::IO, cigarstr::Array{CIGAR, 1}) write(io, convert(String, cigarstr)) end On Tuesday, August 11, 2015 at 9:22:09 AM UTC+1, Mauro wrote: I think you cannot create a show method

Re: [julia-users] nbagg support in ijulia?

2015-08-14 Thread Isaiah Norton
Since those issues are still open, it is unlikely that there is support. On Fri, Aug 14, 2015 at 4:05 PM, smokingbear hori...@gmail.com wrote: Is nbagg backend supported by ijulia? If so, can anyone give me an example? I tried to change the backend to nbagg but it doesn't really show any

[julia-users] Re: JuliaCon 2015 videos

2015-08-14 Thread Viral Shah
One more batch posted: 1. Jacob Quinn: Composable streams for data transfer and processing - http://t.co/DPuN42F3Qu 2. Tanmay Mohapatra: Interfacing Julia with Complex systems using Protocol Buffers - http://t.co/Ddxj60KL7g 3. Eric Davies: Towards A Consistent Database Interface -

[julia-users] Re: Get time between two DateTime values in hours (and minutes if simple)

2015-08-14 Thread Ian Butterworth
I took 'em for a spin, but your approach doesn't have legs if the datetimes in time_series come from different days. I.e. Dates.Hour just returns the hour in that day. I can imagine a long-winded solution where the relevant time units are extracted and differenced, but I was hoping for

[julia-users] Re: ANN: Major overhaul of ForwardDiff.jl

2015-08-14 Thread Jeffrey Sarnoff
+1 for your clean-up (understated and well-articulated) On Friday, August 14, 2015 at 4:20:09 PM UTC-4, Jarrett Revels wrote: Hi! ForwardDiff.jl https://github.com/JuliaDiff/ForwardDiff.jl, a Julia package for performing automatic differentiation, has just been updated and is now much

[julia-users] Possible to use filter! on a child dict within a parent dict, to remove the entire parent dict if condition in child is met?

2015-08-14 Thread Ian Butterworth
I have a dict containing both key+value pairs, and key+[array of dict] pairs. Can I use filter! to remove the entire parent dict if condition in child is met? i.e. If measurements[uniqueentrykey][studyid] == bad study then remove measurements[uniqueentrykey] Thanks

Re: [julia-users] big matrices in Julia

2015-08-14 Thread Matt Bauman
You could create a phony 2-dimensional array that computes the distances on the fly… but you won't be able to pass this matrix to, e.g., BLAS. immutable DistanceMatrix : AbstractArray{Float64, 2} locs::Array{Float64, 2} # a 2xN or 3xN matrix containing the location coordinates end

Re: [julia-users] Re: big matrices in Julia

2015-08-14 Thread Tim Holy
bigmemory is presumably the same thing as mmap_array. --Tim On Friday, August 14, 2015 01:03:10 AM Charles Novaes de Santana wrote: Dear all, Thank you very much for your help and suggestions! I have learned a lot from you. Indeed, I want to use this matrix and not only to read and store

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-08-14 Thread Tim Holy
If you define the function with @everywhere, it will be defined on all existing workers. Likewise, `using MyPackage` loads the package on all workers. --Tim On Thursday, August 13, 2015 03:10:54 PM Andrei Zh wrote: Ok, after going through serialization code, it's clear that default

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-08-14 Thread Andrei Zh
Yes, but once again, I'm not using Julia workers, but instead completely independent Julia processes, running on different machines and ruled by Spark, not by Julia's ClusterManager. I.e. workflow looks like this: 1. Julia process 1 starts JVM and connects to Spark master node. 2. Julia