[julia-users] array of commands

2015-08-01 Thread Yakir Gagnon
I'm trying to build and run a complicated imagemagick command from within Julia (drawing tons of ellipses in various colors, sizes, etc). To accomplish this I need to basically build a command out of many smaller parts that are parsed in a for-loop. It looks a bit like this right now:

Re: [julia-users] What is the correct way for function parameter list generation with @eval?

2015-08-01 Thread Diego Javier Zea
Thanks! I wasn't able to solve the problem with code generation (It was more complicated than the example), but I solved it using multiple dispach of the especial code :) On Friday, July 31, 2015 at 3:53:28 PM UTC-3, Yichao Yu wrote: On Fri, Jul 31, 2015 at 2:46 PM, Diego Javier Zea

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-08-01 Thread Kostas Tavlaridis-Gyparakis
Hello again, I am experiencing the following difficulty. So I have the above mentioned header and cpp files that define the class ArrayMaker on top of that I wrote a small main connected to this class that simply excecute its function: main.cpp: #include ArrayMaker.h #include iostream using

[julia-users] Images build

2015-08-01 Thread questors
hi, just downloaded Juno on to a W8.1 laptop and started stepping through the Tutorial. I get an error on: using Images. I have followed the directions given in the console but problem persists. Am I doing anything wrong? yours Unimpressed beginner Extract from console: -

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-08-01 Thread Tero Frondelius
I don't know if this helps, but we have been also learning the basics of Cxx. See here @ovainola implementation of a simple library: https://github.com/JuliaFEM/MiniBall.jl/blob/master/src/MiniBall.jl On Saturday, August 1, 2015 at 5:00:41 PM UTC+3, Kostas Tavlaridis-Gyparakis wrote: Hello

Re: [julia-users] John L. Gustafson's UNUMs

2015-08-01 Thread Waldir Pimenta
I don't think that would be necessary, since any assertions he has made here will likely be in some form or another in the book, which can be cited down to the page number. Or were you suggesting this as evidence of significant interest in the concept from an implementation perspective / an

Re: [julia-users] John L. Gustafson's UNUMs

2015-08-01 Thread Jeffrey Sarnoff
otoh I have no knowledge of the way of the Wiki On Sat, Aug 1, 2015 at 12:14 PM, Jeffrey Sarnoff jeffrey.sarn...@gmail.com wrote: Yes, the second -- I agree on the import of unbaised content, and this thread is that. On Sat, Aug 1, 2015 at 12:04 PM, Waldir Pimenta waldir.pime...@gmail.com

Re: [julia-users] Re: MongoDB and Julia

2015-08-01 Thread Kevin Squire
Hi, Kevin, Great that you got Mongo.jl to work! My suggestion would be that you play with that package a little, and try extending it by adding a method or two, fixing warnings, etc. Regarding modeling language, I wouldn't recommend it here. It's great that you want a complete package, and it's

[julia-users] Re: array of commands

2015-08-01 Thread Yakir Gagnon
Found it: cmd = `convert in.jpg` for i = 1:xn, j = 1:yn color,fillop,x,y,a,b = stuff that depends on i and j cmd = `$cmd -fill $color -stroke none -draw fill-opacity $fillop ellipse $y,$x $a,$b 0,360 ` end run(`$cmd out.jpg`) On Saturday, August 1, 2015 at 4:49:51 PM UTC+10, Yakir

Re: [julia-users] in v0.4: WARNING: module M should explicitly import

2015-08-01 Thread Andreas Lobinger
On Saturday, August 1, 2015 at 6:59:01 PM UTC+2, Tim Holy wrote: Pkg.update() is your friend... and so is git merge ...

Re: [julia-users] John L. Gustafson's UNUMs

2015-08-01 Thread Jeffrey Sarnoff
Yes, the second -- I agree on the import of unbaised content, and this thread is that. On Sat, Aug 1, 2015 at 12:04 PM, Waldir Pimenta waldir.pime...@gmail.com wrote: I don't think that would be necessary, since any assertions he has made here will likely be in some form or another in the

[julia-users] in v0.4: WARNING: module M should explicitly import

2015-08-01 Thread Andreas Lobinger
Hello colleagues, is just updated to v0.4.0-dev+6455 and get longer lists of the above warning: julia using Gtk WARNING: deprecated syntax LListPair{L} ( at /home/lobi/.julia/v0.4/Gtk/src/GLib/glist.jl:61. Use LListPair{L}( instead. WARNING: module Graphics should explicitly import + from

[julia-users] Re: How are numbers converted to strings?

2015-08-01 Thread Avik Sengupta
Thanks Felipe. I must say that since that post was written, Jacob Quinn has ported the Grisu algorithm to Julia. That is the code I referenced in my previous email. We no longer need the C double-conversion library. On Saturday, 1 August 2015 08:56:01 UTC+1, Felipe Jiménez wrote: And since

Re: [julia-users] in v0.4: WARNING: module M should explicitly import

2015-08-01 Thread Tim Holy
Pkg.update() is your friend... --Tim On Saturday, August 01, 2015 09:14:52 AM Andreas Lobinger wrote: Hello colleagues, is just updated to v0.4.0-dev+6455 and get longer lists of the above warning: julia using Gtk WARNING: deprecated syntax LListPair{L} ( at

Re: [julia-users] Images build

2015-08-01 Thread Tim Holy
We (meaning: Isaiah Tony :-) ) are working on it. See https://github.com/timholy/Images.jl/issues/316 More help would be welcome, of course; these binary packaging issues are really annoying. --Tim On Saturday, August 01, 2015 02:14:32 AM quest...@sky.com wrote: hi, just downloaded Juno on

Re: [julia-users] John L. Gustafson's UNUMs

2015-08-01 Thread Jeffrey Sarnoff
If (and only if) appropriate to Wikipedia guidelines / practice, I suggest including reference to this thread in the revision of a page to resubmit for Wikipedia. On Fri, Jul 31, 2015 at 9:49 PM, Waldir Pimenta waldir.pime...@gmail.com wrote: The Wikipedia article was redirected quite recently

Re: [julia-users] Suspending Garbage Collection for Performance...good idea or bad idea?

2015-08-01 Thread Michael Louwrens
Haha! I was expecting you or @carnival (sorry, don't know the name) to respond. Been following your issues/PRs as they are quite interesting to read! Those results are quite surprising! I was expecting the GC to perform far worse than that in comparison. You have successfully scratched my itch

[julia-users] Re: DOWNLOADING JUNO THROUGH LIGHT TABLE. PLEASE HELP!!!

2015-08-01 Thread Viral Shah
You can also download it from julialang.org. Btw, using CAPS in the subject line or anywhere is generally considered rude, and does not increase the likelihood of a reply. -viral On Saturday, August 1, 2015 at 1:35:41 PM UTC+5:30, Tero Frondelius wrote: I don't know, if this helps, but I

Re: [julia-users] Stack trace refers to wrong or nonexistent line number?

2015-08-01 Thread Isaiah Norton
Unfortunately, this is a known issue. Part of the problem is that we don't currently do a very good job keeping track of source line transitions when doing macro expansion and function inlining (see e.g. issue #1334 on the github issue tracker). However, I get slightly more useful output on a

[julia-users] Winston savefig problem when using FramedPlot

2015-08-01 Thread Lauri Nurminen
Hi, I have the following problem with Winston savefig in short, if I do julia using Winston x = randn(100); y = randn(100); pp = Points(x,y); p = FramedPlot(); add(p,pp); display(p) savefig(test.svg) the plot displays correctly but the saved file contains nothing, and is just 219 bytes

Re: [julia-users] Suspending Garbage Collection for Performance...good idea or bad idea?

2015-08-01 Thread Michael Louwrens
I haven't tested the new generational GC so this may all be moot but: I had a recent thought. Wouldn't a manual free method that frees the object and tells the GC that it this object doesn't exist anymore be useful in some cases? I can imagine anywhere where you have temporary objects allocated

Re: [julia-users] Suspending Garbage Collection for Performance...good idea or bad idea?

2015-08-01 Thread Yichao Yu
On Sat, Aug 1, 2015 at 5:10 PM, Michael Louwrens michael.w.louwr...@outlook.com wrote: I haven't tested the new generational GC so this may all be moot but: I had a recent thought. Wouldn't a manual free method that frees the object and tells the GC that it this object doesn't exist anymore be

[julia-users] Interact - basic usage

2015-08-01 Thread Júlio Hoffimann
Hi, Suppose I have: idx = slider(1:3) How do I use the value stored in the widget to index an array, let's say A[idx]? I tried playing with signal() and @lift, but none worked. Could you please explain what is the correct approach? -Júlio

[julia-users] How does Array type's Integer valued parameters and partial parameter specification work?

2015-08-01 Thread Galen Lynch
I'm a relatively new Julia user, but as I've been getting used to the Julia type system my confusion over what's going on with Array type parameters has only grown. Whereas most type parameters are types themselves, Arrays can take integer valued type parameters. Is it true, more generally,

[julia-users] Stack trace refers to wrong or nonexistent line number?

2015-08-01 Thread 'Ben Crowell' via julia-users
Hi, all, I'm a brand-new julia user trying to convert some matlab code to julia. When I run the code, I am currently getting a stack trace that looks like this: 0 ERROR: LoadError: TypeError: non-boolean (Array{Bool,2}) used in boolean context in tvd at /home/bcrowell/tvd/tvd.jl:145 in

Re: [julia-users] Images build

2015-08-01 Thread questors
On Saturday, August 1, 2015 at 2:18:45 PM UTC+1, Tim Holy wrote: We (meaning: Isaiah Tony :-) ) are working on it. See https://github.com/timholy/Images.jl/issues/316 More help would be welcome, of course; these binary packaging issues are really annoying. --Tim Thanks, didn't

[julia-users] Re: How are numbers converted to strings?

2015-08-01 Thread Avik Sengupta
For floats, the entry point is https://github.com/JuliaLang/julia/blob/master/base/grisu.jl#L119 . You should follow the code from there, with most of the code in files within https://github.com/JuliaLang/julia/tree/master/base/grisu/ . As you can see its quite a lot of code; this is not a

[julia-users] Re: How are numbers converted to strings?

2015-08-01 Thread Felipe Jiménez
And since Avik didn't toot his own horn, let me recommend this short nice read: http://www.sengupta.net/musings/blog/2012/07/24/grisu/

[julia-users] Re: DOWNLOADING JUNO THROUGH LIGHT TABLE. PLEASE HELP!!!

2015-08-01 Thread Tero Frondelius
I don't know, if this helps, but I just downloaded Juno from here: http://junolab.org/docs/install.html On Saturday, August 1, 2015 at 3:56:13 AM UTC+3, Vuyo Majila wrote: Hi i followed all the steps required for downloading juno through light table. However, Juno doesn't appear under plug