[julia-users] Blob detection and size measurement in Julia?

2016-08-26 Thread Alex Mellnik
Hi, I'm attempting to measure the size and position of roughly spherical, well-defined objects in images using Julia. I don't have any previous experience working with images and was wondering if anyone could point me toward the appropriate library/function. I know that there's a blob_LoG

Re: [julia-users] DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread jtwatkin
Thanks going to look into those new ones. On Friday, August 26, 2016 at 10:28:16 PM UTC-4, tshort wrote: > > The DataFramesMeta.jl package has one approach. Two new kids on the block: > jplyr.jl and Query.jl have different approaches for that type of function. > > On Aug 26, 2016 1:38 PM,

[julia-users] Re: DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread jtwatkin
Thanks--going to take a look at new package, jplyr.jl, that tshort mentioned. Maybe what I'm looking for already exits. On Friday, August 26, 2016 at 2:42:01 PM UTC-4, Evan Fields wrote: > > I'm not sure if you'll find this any cleaner, but maybe something like > > function summary2(df,

[julia-users] Re: Using rank() and nullspace() with sparse matrix

2016-08-26 Thread vavasis
You can compute the rank of a sparse matrix using the 'squeezed QR factorization' available in SuiteSparse, which has been partly wrapped in Julia. This method for rank determination is less robust than either the SVD or conventional rank-revealing QR factorizations, but it appears to be

Re: [julia-users] DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread Tom Short
The DataFramesMeta.jl package has one approach. Two new kids on the block: jplyr.jl and Query.jl have different approaches for that type of function. On Aug 26, 2016 1:38 PM, wrote: Hi, I'm exited about Julia. Coming from an R and SAS background I am trying to develop some

Re: [julia-users] gensym() in a macro calling another macro

2016-08-26 Thread Yichao Yu
> for i=1:5 > @generate_nonnegative_variable(m) > macro runs at parse time and this does **NOT** run the macro multiple times in the loop, only once. The generated code, which reference the result of `gensym` but not calling `gensym` will be run multiple iterations.

[julia-users] Re: Hard time with Compat and 0.5

2016-08-26 Thread J Luis
Ok, I figured that one (Really needed a first argument 'Array') But now this @show(typeof(X.name)) name = bytestring([X.name...]) typeof(X.name) = Tuple{UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8 ,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8} WARNING: bytestring(v::Vector{UInt8}) is

[julia-users] Hard time with Compat and 0.5

2016-08-26 Thread J Luis
Hi, So I started trying to port my code to 0.5 using Compat and it seams a hell is expecting me. This is one example of what happens when I try to follow the deprecation suggestions. This t = pointer_to_array(Gb.data, h.size) #@compat t = unsafe_wrap(Gb.data, h.size) warns that

[julia-users] Re: Can someone please update Winston?

2016-08-26 Thread Chris Rackauckas
You should really check out Plots.jl. It's a plotting metapackage which lets you use the same plot commands to use any backend. It's nice because if you're using it an one package stops getting updated, you can switch to another plotting backend without changing your plot commands. But I can

[julia-users] Re: ArrayFire.jl - GPU Programming in Julia

2016-08-26 Thread Min-Woong Sohn
Does anybody know of any plan to support ArrayFire in GLM or MixedModels any time soon? On Friday, June 10, 2016 at 1:08:42 AM UTC-4, ran...@juliacomputing.com wrote: > > Hello, > > We are pleased to announce ArrayFire.jl, a library for GPU and > heterogeneous computing in Julia: ( >

[julia-users] Can someone please update Winston?

2016-08-26 Thread K leo
so that it works with version 0.5.

[julia-users] Build Error for NLopt

2016-08-26 Thread Steven G. Johnson
See https://github.com/JuliaOpt/NLopt.jl/issues/63

Re: [julia-users] Images package: Create and show image

2016-08-26 Thread Bill Maier
That worked, thanks! I'm on the latest Julia code, which is 0.6.0. On Friday, August 26, 2016 at 4:10:30 PM UTC-5, Tim Holy wrote: > > You must be using Julia 0.5, where `view` means something different than > you're expecting (it creates a SubArray). Maybe try `display(img)`. > > Best, >

[julia-users] Re: Syntax to create nested types in Julia

2016-08-26 Thread Cedric St-Jean
It's not possible in Julia at the moment. There's an issue for it. I think the main options are: - Don't declare the types. This may make it slower, but depending on the use case it might not be a big deal - Use parametric types, i.e. type

Re: [julia-users] Images package: Create and show image

2016-08-26 Thread Tim Holy
You must be using Julia 0.5, where `view` means something different than you're expecting (it creates a SubArray). Maybe try `display(img)`. Best, --Tim On Friday, August 26, 2016 1:31:46 PM CDT Bill Maier wrote: > I have the following code in an IJulia notebook(). The image is saved >

[julia-users] Using rank() and nullspace() with sparse matrix

2016-08-26 Thread Alex Dowling
When I use rank() on a sparse matrix, I get the following error: ERROR: LoadError: MethodError: `svdvals!` has no method matching svdvals!(::SparseMatrixCSC{Float64,Int64}) in rank at linalg/generic.jl:300 Small example: A = sprand(5,5,0.6) rank(A) Is there an alternate way to calculate the

Re: [julia-users] local "_" declared twice

2016-08-26 Thread Stefan Karpinski
If you could post clarification here: https://github.com/JuliaLang/julia/issues/18251. On Fri, Aug 26, 2016 at 4:35 PM, Christoph Ortner < christophortn...@gmail.com> wrote: > I am only confused because > > for (t, _, _) in zip(x, y, z) > > is fine while > > maximum( t for (t,_,_) in zip(x,y,z)

[julia-users] Images package: Create and show image

2016-08-26 Thread Bill Maier
I have the following code in an IJulia notebook(). The image is saved correctly to the disk file but I cannot show it in the notebook. Is this a bug or am I doing something wrong? using Images imgdata = Array{UInt8}(640, 480, 3); for i in 1:480 for j in 1:640 imgdata[j,i,1] =

[julia-users] Re: Time consuming problem

2016-08-26 Thread Chris Rackauckas
Hi, welcome to Julia. It would be easier to help you if you shared some code. Could you share a small example which highlights the problems you're having? Also, have you checked out the Performance Tips? One major thing new

Re: [julia-users] Differential Equations Package

2016-08-26 Thread Chris Rackauckas
I agree. That's why I'm trying to pool the Gitters together as a chatroom for helping people use the package, but whenever we find that something is a bug / feature request, give a nudge "please open an issue". Or whenever a developer discussion does happen in chat, a summary is posted as an

[julia-users] Re: DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread Evan Fields
I'm not sure if you'll find this any cleaner, but maybe something like function summary2(df, queries...) d = Dict() for query in queries name = query[1] f = query[2] col = query[3] d[name] = f(df[col]) end return d end Which could be used e.g. julia> summary2(dat,

[julia-users] gensym() in a macro calling another macro

2016-08-26 Thread Chang Kwon
module MyModule importall JuMP export @generate_nonnegative_variable macro generate_nonnegative_variable(m) v = gensym() v_expr = Expr(:call, esc(:>=), esc(v), 0) return Expr(:macrocall, Symbol("@variable"), esc(m), v_expr) end end using JuMP

Re: [julia-users] local "_" declared twice

2016-08-26 Thread Stefan Karpinski
It's intentional, but maybe using `_` twice should be allowed? On Thu, Aug 25, 2016 at 6:07 PM, Christoph Ortner < christophortn...@gmail.com> wrote: > Is this intended behaviour or a bug? > > julia> maximum( t for (t,_,_) in zip(x,y,z) ) > ERROR: syntax: local "_" declared twice > > > julia> x

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-26 Thread Stefan Karpinski
On Thu, Aug 25, 2016 at 10:20 AM, Kristoffer Carlsson wrote: > I already made a PR for it. Sorry for stealing it. No worries. There's always more work to do :)

[julia-users] @inbounds macro scope, and @simd

2016-08-26 Thread Ben Ward
Hi, Just wondering, I have the following doube loop: for site in 1:nsites votes[1] = votes[2] = votes[3] = votes[4] = votes[5] = 0 for seq in 1:neqs nuc = mat[seq, site] votes[1] += iscompatible(nuc, DNA_A) votes[2] += iscompatible(nuc, DNA_C)

[julia-users] Syntax to create nested types in Julia

2016-08-26 Thread varun7rs
Hello all, I'm making a transition from Python to Julia and in the process, I've encountered a small difficulty. While in python, i declared three classes as follows: class PHY_NODES: def __init__(self, nodeID, nodenum, x, y, demands): self.id = nodeID self.nodenum =

[julia-users] DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread jtwatkin
Hi, I'm exited about Julia. Coming from an R and SAS background I am trying to develop some familiar tools to manipulate and query data. So far here are some of the things I have, but I just want feedback to see if there is a better way. The following code attempts to create a summarize()

[julia-users] Time consuming problem

2016-08-26 Thread Bohan Zhang
Hi there, I am just a beginner in Julia and I tried my code which contains a nested loop with LP optimization in it. And I find it getting slower and slower, at first, it takes likes 5 secs per loop, after a day, it takes about 10 mins. It's pretty weird to me.

[julia-users] Build Error for NLopt

2016-08-26 Thread Paul JI
Hello guys, I meet problem when I tried to Pkg.build("NLopt"). I'm a new user to julia and when the error comes I tired to search online for some clues but I can't fix it. Hope I can find some help here! *INFO: Building NLopt* Error: No available formula with the name "nlopt" Error: No

Re: [julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Deniz Yuret
I just discovered JuliaDiff , so I am not entirely sure yet. But here are my first impressions (JuliaDiff authors please correct me if I am wrong): * ForwardDiff : is not practical (takes too much space) when you have large

[julia-users] Re: TK dependency woes

2016-08-26 Thread Andreas Lobinger
https://github.com/stevengj/PyPlot.jl/issues/164

Re: [julia-users] Differential Equations Package

2016-08-26 Thread Viral Shah
I personally feel that Gitter is great for helping out people who are starting out, but hope it doesn’t become a substitute for developer discussions and the development process. On github, with issues, there is a documented and organized trail for posterity that helps onboard new developers

[julia-users] `GLIBCXX_3.4.20' not found when install Julia

2016-08-26 Thread Doan Thanh Nam
Hi, I am installing Julia into a very old server (CentOs 6) without root privilege. Therefore, I have to install GCC manually and place it in $HOME/local. When I make Julia, it always announces that llvm[4]: Installing Release

Re: [julia-users] Differential Equations Package

2016-08-26 Thread Chris Rackauckas
The Bio.jl Gitter is part of the BioJulia org. It's setup nicely in that none of the other channels within the BioJulia sphere have Gitters so you know which channel to go to. I modeled it after that. It would be interesting if channels like this were setup under the JuliaLang repo, but I am

Re: [julia-users] dispatch slowdown when iterating over array with abstract values

2016-08-26 Thread Kevin Liu
Thanks Tim for leading me to this thread. On Friday, August 26, 2016 at 11:06:33 AM UTC-3, Kevin Liu wrote: > > Nice video recommendation, Yichao. Thanks. > > On Saturday, April 2, 2016 at 1:16:07 PM UTC-3, Yichao Yu wrote: >> >> On Sat, Apr 2, 2016 at 10:26 AM, Cedric St-Jean

Re: [julia-users] dispatch slowdown when iterating over array with abstract values

2016-08-26 Thread Kevin Liu
Nice video recommendation, Yichao. Thanks. On Saturday, April 2, 2016 at 1:16:07 PM UTC-3, Yichao Yu wrote: > > On Sat, Apr 2, 2016 at 10:26 AM, Cedric St-Jean > wrote: > > > >> Therefore there's no way the compiler can rewrite the slow version to > the > >> fast

[julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Evan Fields
This looks really interesting. Can you give the high level comparison of how this compares to the various JuliaDiff tools and when to use one over the other?

[julia-users] Re: another new 2D plotting library for Julia

2016-08-26 Thread Henri Girard
Thanks, I am updating. For julia jupyter is IJulia. Just Pkg.add("IJulia") will install it. They are developing a promising tool jupyterlab which enable to work with most kernels. It's an improved jupyter notebook at the moment in alpha preview. But apparently it develops quiet quickly. Now I

Re: [julia-users] Re: another new 2D plotting library for Julia

2016-08-26 Thread Igor
Henri, I never used jupyter notebooks - only Juno LightTable and Atom editor. But I'll try to see what can be done for plot-windows integration. For linux-related testing I'm using a virtual machine with Fedora Linux. I changed the package a bit, and fix a number of bugs in qwtw "C" library. So

Re: [julia-users] Differential Equations Package

2016-08-26 Thread Viral Shah
Chris, Thanks for consolidating efforts and setting things up to set up a community for all kinds of differential equations. I wonder if we should have a DiffEq channel/room on the julia gitter rather than a new gitter? Just a thought. For now, many projects do have their own gitter - like

[julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread michael . creel
I've cloned it and tried it out with RC3. The mnist example runs fine. I'm looking forward to exploring it in more detail. Thanks! On Friday, August 26, 2016 at 8:51:30 AM UTC+2, Deniz Yuret wrote: > > Announcing AutoGrad.jl : an > automatic

Re: [julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Henri Girard
your welcome :) Le 26/08/2016 à 10:49, Deniz Yuret a écrit : Sorry about that. Here is the right link: https://github.com/denizyuret/AutoGrad.jl On Fri, Aug 26, 2016 at 11:38 AM Henri Girard > wrote: Your link autograd.jl seems

Re: [julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Deniz Yuret
Sorry about that. Here is the right link: https://github.com/denizyuret/AutoGrad.jl On Fri, Aug 26, 2016 at 11:38 AM Henri Girard wrote: > Your link autograd.jl seems dead ? > > > Le vendredi 26 août 2016 08:51:30 UTC+2, Deniz Yuret a écrit : >> >> Announcing

[julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Henri Girard
Your link autograd.jl seems dead ? Le vendredi 26 août 2016 08:51:30 UTC+2, Deniz Yuret a écrit : > > Announcing AutoGrad.jl : an > automatic differentiation package for Julia. It is a Julia port of the > popular Python autograd

[julia-users] wrapping a julia package

2016-08-26 Thread jw3126
I want to use a julia package (SFML.jl), which defines its own types for lots of basic things like 2d vectors, rectangles colors etc. It would be cool however if one could use its functionality with "standard types", like colors from Colors.jl, StaticArrays.jl vectors, GeometryTypes.jl

[julia-users] AutoGrad port for Julia

2016-08-26 Thread Deniz Yuret
Announcing AutoGrad.jl : an automatic differentiation package for Julia. It is a Julia port of the popular Python autograd package. It can differentiate regular Julia code that includes loops, conditionals, helper

Re: [julia-users] Re: another new 2D plotting library for Julia

2016-08-26 Thread Henri Girard
Your welcome ! I am wondering : As I use jupyter notebook is there a way to get the graphs embedded in the notebook and not getting windows outside ? This app makes beautifull graphics. I installed too the pyqwt version. What linux flavor are you using (I presume fedora ?). I use the git