[julia-users] Re: new way to search julia packages on duckduckgo.com

2015-08-06 Thread Sisyphuss
Since all packages for Julia are repos in Github. Why not search it directly in Github? On Thursday, August 6, 2015 at 8:38:57 AM UTC+2, Chaitanya Koparkar wrote: Hi guys, duckduckgo http://duckduckgo.com has introduced a new search feature for julia, which makes searching for packages

Re: [julia-users] using Gadfly (using a package) only if needed

2015-08-06 Thread Scott T
Looks like @lazymod turns the module load into a function call (in lowercase), so you need to do: if dodraw gadfly().plot(...) gadfly().plot(...) ... where the first gadfly() call will load Gadfly and be slow, while the others will be fast. I suppose you could turn that into if

Re: [julia-users] using Gadfly (using a package) only if needed

2015-08-06 Thread Felipe Jiménez
Thanks!

[julia-users] Re: Any existing bifurcation analysis packages in Julia?

2015-08-06 Thread Christoph Ortner
I'd be interested in such a package as well. I was thinking of giving PyDSTool a go (via PyCall), though haven't yet had the time. Christoph

Re: [julia-users] save data as image without Images.jl

2015-08-06 Thread Yakir Gagnon
Thanks again Tim!!! I looked into your code and will try something like the following:julia write(stream, P6\n) write(stream, $width $height\n$mx\n) write(stream,img) where mx is the maximum value of the type used (e.g. 255 for UInt8). Cool about the splits, it makes sense (maybe more specific

[julia-users] PSA: auto-precompile your modules

2015-08-06 Thread Steven G. Johnson
Many of you are aware that Julia 0.4 has some facilities for precompiling modules, but in the last couple of days they have become significantly more automated, which should make much faster load times accessible to all your users in 0.4. If your module (and any modules it imports) are safe to

Re: [julia-users] Forgot the atan2d or atand2 function?

2015-08-06 Thread Michele Zaffalon
You mean atan2 https://julia.readthedocs.org/en/latest/stdlib/math/?highlight=atan2#Base.atan2 ? On Fri, Aug 7, 2015 at 2:07 AM, Sisyphuss zhengwend...@gmail.com wrote: I don't find this function in the standard library.

Re: [julia-users] save data as image without Images.jl

2015-08-06 Thread Tim Holy
`write`, although you'll have to encode the dimensions of the image if you want to be able to read it back in. FYI some of Images' functionality seems to be in the process of getting split out to smaller packages, see https://github.com/JuliaIO --Tim On Thursday, August 06, 2015 05:27:51 PM

Re: [julia-users] Garbage collection outside the global scope

2015-08-06 Thread colintbowers
On Thursday, 6 August 2015 22:34:26 UTC+10, Andrew B. Martin wrote: Thanks for the comment, Colin. Instead, the RAM usage counter ramped up to the upper limit I had set using a conditional if statement, and then when it hit that ... I'm curious; can you give a code sample of the

[julia-users] Re: I need help with test_throws

2015-08-06 Thread Diego Javier Zea
Thanks Tim Michael! :)

[julia-users] AbstractFloat will replace FloatingPoint?

2015-08-06 Thread Sisyphuss
AbstractFloat will replace FloatingPoint?

Re: [julia-users] Defining a function in different modules

2015-08-06 Thread David Gold
One thing I believe you could do is actually require StatsBase for LowRankModels and extend StatsBase.fit! in your LowRankModels module. As long as there are no method signature conflicts, I think this should work fine (although you might end up with some new ambiguity warnings to deal with).

Re: [julia-users] AbstractFloat will replace FloatingPoint?

2015-08-06 Thread Yichao Yu
On Thu, Aug 6, 2015 at 8:42 PM, Sisyphuss zhengwend...@gmail.com wrote: AbstractFloat will replace FloatingPoint? https://github.com/JuliaLang/julia/pulls?q=is%3Apr+AbstractFloat+is%3Aclosed https://github.com/JuliaLang/julia/pull/12162

Re: [julia-users] Defining a function in different modules

2015-08-06 Thread Madeleine Udell
Thanks, David! Requiring StatsBase and importing StatsBase.fit! fixes the problem. Of course that doesn't prevent other authors from writing other packages I don't know about with overlapping names. But I take it from previous posts on this thread that on 0.4 `using` multiple modules that export

[julia-users] save data as image without Images.jl

2015-08-06 Thread Yakir Gagnon
I love and use Tim’s amazing Images.jl package. But, sometimes I generate some data which results in an image. I then just want to save that image to disk (or pipe it to imagemagick or something). I know I can include Images and imwrite it to disk. But to load Images seems redundant just for

Re: [julia-users] Defining a function in different modules

2015-08-06 Thread David Gold
Madeleine, You are experiencing these problems in 0.3, correct? On Thursday, August 6, 2015 at 3:46:49 PM UTC-7, Madeleine Udell wrote: I've been running into major user problems because of the silent overwriting of functions from one module by functions from another. My LowRankModels

[julia-users] Forgot the atan2d or atand2 function?

2015-08-06 Thread Sisyphuss
I don't find this function in the standard library.

[julia-users] write data as an image

2015-08-06 Thread Yakir Gagnon
I love and use Tim's amazing `Images.jl` package. But, sometimes I generate some data which results in an image. I then just want to save that image to disk (or pipe it to `imagemagick` or something). I know I can `include Images` and `imwrite` it to disk. But to load `Images` seems redundant

Re: [julia-users] Defining a function in different modules

2015-08-06 Thread Madeleine Udell
I've been running into major user problems because of the silent overwriting of functions from one module by functions from another. My LowRankModels module interacts closely with the DataFrames module, which imports a bunch of stuff from StatsBase. Internally, I'm careful to use `import`

[julia-users] Averaging vectors of different length

2015-08-06 Thread Diego Tapias
Hello, I am trying to average together several vectors of slightly different lengths (difference might be one or two elements). For example, a, b, c might be: a = ones(10)*2. b = ones(11)*5. c = ones(12)*4. I want to make a new vector d that contains the averages of all their values

[julia-users] new way to search julia packages on duckduckgo.com

2015-08-06 Thread Chaitanya Koparkar
Hi guys, duckduckgo http://duckduckgo.com has introduced a new search feature for julia, which makes searching for packages really simple and quick. Some example queries could be of the form, * julialang abstract domains https://duckduckgo.com/?q=julialang+abstract+domainsia=about * julia lang

Re: [julia-users] Garbage collection outside the global scope

2015-08-06 Thread Andrew B. Martin
Thanks for the comment, Colin. Instead, the RAM usage counter ramped up to the upper limit I had set using a conditional if statement, and then when it hit that ... I'm curious; can you give a code sample of the conditional if statement?

[julia-users] Any existing bifurcation analysis packages in Julia?

2015-08-06 Thread Federico Vaggi
I have a small project to do, and I was thinking of doing it in Julia to teach myself more of the language and the ecosystem. I saw that Julia has two excellent packages for dealing with ODEs (Sundials, and ODE) but I've not seen any pre-existing wrappers to AUTO, or other packages that do

[julia-users] Re: example for ccall use and fortran

2015-08-06 Thread Byung Lee
Hi, I got an answer. You need to use Cfloat for REAL instead of Cdouble for DOUBLE PRECISION. On Wednesday, August 5, 2015 at 6:01:05 PM UTC-4, Byung Lee wrote: Hi, When I tried the following Fortran routine (abc.f), it worked using the following shared file and ccall. But when I

Re: [julia-users] Merge partitions

2015-08-06 Thread Kevin Squire
In the Iterators.jl package, there is a chain(...) function, which chains multiple iterators together. On Thu, Jul 23, 2015 at 9:22 PM, Michele Zaffalon michele.zaffa...@gmail.com wrote: What should the outcome of the merge operation be? Not a simple concatenation, I imagine. On Tue, Jul

[julia-users] Re: example for ccall use and fortran

2015-08-06 Thread Byung Lee
Not only Cfloat, but also Float32 worked, like Cfloat[1.2] OR Float32[1.1]. On Thursday, August 6, 2015 at 9:13:58 AM UTC-4, Byung Lee wrote: Hi, I got an answer. You need to use Cfloat for REAL instead of Cdouble for DOUBLE PRECISION. On Wednesday, August 5, 2015 at 6:01:05 PM

Re: [julia-users] I need help with test_throws

2015-08-06 Thread Tim Holy
Follow the advice literally: @test_throws ASCIIString IndexedVector([1,2,3,3]) But `throw` is intended to throw an Exception, so you should write error(msg) or throw(DimensionMismatch(msg)) in which case it would be @test_throws ErrorException foo(x) or @test_throws

[julia-users] Re: I need help with test_throws

2015-08-06 Thread Michael Hatherly
throw should be throwing an exception rather than just a string, which is why the deprecation message is a bit confusing. So instead of the line https://github.com/diegozea/MIToS.jl/blob/master/src/MSA/IndexedVectors.jl#L49 you’d want to have something like throw(ArgumentError($element is

Re: [julia-users] Determine current function name

2015-08-06 Thread Cedric St-Jean
On Wednesday, August 5, 2015 at 10:59:18 PM UTC-4, Tim Holy wrote: You may want to check the IProfile.jl package, which does a lot of this kind of stuff (including inserting timing code around each line of a function). That was an interesting read, thank you. As a common lisper, all those

[julia-users] Re: new way to search julia packages on duckduckgo.com

2015-08-06 Thread Cedric St-Jean
Hi Chaitanya, Looks neat. I use duckduckgo as my primary engine, but for any julia query, I always !g it because duckduckgo's results are very far below what Google returns. Eg. https://duckduckgo.com/?q=julia+imagesia=images Adding lang doesn't improve it (I get the package, but the results

Re: [julia-users] Determine current function name

2015-08-06 Thread David Gold
For counting, is there a reason why you can't use a `let` block? let count = 0 global foo function foo(args...) count += 1 ... end global foo_count() function foo_count() return count end end # let count On Thursday, August 6, 2015 at 7:36:10 AM

[julia-users] Re: Poor resolution of Julia PyPlot in Mac

2015-08-06 Thread Amuthan A. Ramabathiran
Hi Rasmus, I have a pixelated image on the screen, but saving it as a pdf gives me a sharp image. So I guess I have the reverse problem :) Amuthan On Wednesday, August 5, 2015 at 5:45:48 AM UTC-7, Rasmus Brandt wrote: Hey Amuthan, Are you exporting as PDF? I had some weird issues where

[julia-users] Re: Poor resolution of Julia PyPlot in Mac

2015-08-06 Thread Amuthan A. Ramabathiran
Hi Christoph, Yes, this solved the issued on IJulia (running in Safari). Thanks a lot! I still have a pixelated image when I display pyplot images from a julia terminal. Not sure why this happens. Amuthan On Wednesday, August 5, 2015 at 9:57:39 PM UTC-7, Christoph Ortner wrote: For me, I