[julia-users] Re: API deployments on JuliaBox

2015-11-04 Thread Michael Turok
Thanks - will try! On Wednesday, November 4, 2015 at 8:28:39 PM UTC-5, Tanmay K. Mohapatra wrote: > > Hi Michael, > > these two configuration changes should do it: > - enable the "juliabox.plugins.api_admin" plugin (in > /jboxengine/conf/jbox.user) and rebuild (img_create.sh jbox) > - have a hos

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread lewis
I did not build Julia from source. But, I am back in business using system Python. Never got conda to build everything on Windows. On Wednesday, November 4, 2015 at 2:19:18 PM UTC-8, Luke Stagner wrote: > > It will only work if you installed from source(I.e cloned the main Julia > repository a

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread jda
Not working Computer #2, continued from above, (was cut off): >_ > > julia> Pkg.status() > 4 required packages: > - MAT 0.2.14 > - Plots 0.4.2 > - PyCall1.1.2 > - PyPlot2.1.1 >

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread jda
On windows machine #1 I've un/re-installed again for a *third *time and it actually fixed it! On windows machine #2 I've un/re-installed many times over and it's still not working. However the two machines seem identical to me, not sure what the difference is. Working Computer #1 says:

Re: [julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Iain Dunning
Some more data, from pkg.julialang.org web analytics: In January there were 3.5k "users", which ramped up to 5k by March, and then held there roughly before spiking up to nearly 6k in October - maybe the 0.4 release? Theres also the number of packages themselves: 300 packages ~ April 2014 400 p

[julia-users] Re: API deployments on JuliaBox

2015-11-04 Thread tanmaykm
Hi Michael, these two configuration changes should do it: - enable the "juliabox.plugins.api_admin" plugin (in /jboxengine/conf/jbox.user) and rebuild (img_create.sh jbox) - have a hostname alias with "api." prefix pointing to the machine (e.g. api.juliabox.org. the webserver routes all api.* re

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread jda
I tried uninstalling and re-installing before posting here on the google group. I tried un/re-install again now and I am still back where I started. Doing Pkg.add("PyCall") the info messages displayed say "No system-wide Python was found; ... etc. ... using the Python distribution in the Conda

[julia-users] Re: API deployments on JuliaBox

2015-11-04 Thread Michael Turok
Hi Tanmay, Is there an example of enabling the API endpoints when building a stand-alone juliabox instance? Thanks, Michael On Sunday, September 27, 2015 at 9:25:44 PM UTC-4, tanmaykm wrote: > > Hi Miguel, > > Server instances are created per API. Server instances are stateless, and > are reus

Re: [julia-users] Escher show pdf file

2015-11-04 Thread Yakir Gagnon
Yes, that's what I mean. Thanks (I added another comment on that "issue" in github). Yakir Gagnon The Queensland Brain Institute (Building #79) The University of Queensland Brisbane QLD 4072 Australia cell +61 (0)424 393 332 work +61 (0)733 654 089 On Wed, Nov 4, 2015 at 3:01 PM, Shashi Gowda

[julia-users] Re: [help]: configuring Julia and Sublime text 2 on windows 8.1

2015-11-04 Thread Donald Lacombe
John, I have not tried Sublime Text with Julia 0.4 (32 or 64-bit). I was able to install and run an earlier version of Julia (I believe some 0.3 variety) 64-bit and it worked just fine. If you look at the issues related to Sublime-IJulia it appears that there are some issues with 0.4: https://

Re: [julia-users] Re: [Escher] lower and upper bound sliders automatically adjust not to intersect

2015-11-04 Thread Yakir Gagnon
Good one, thanks Shashi! I adjusted it a bit to make sure that the lower bound is always one less than the upper one. This works perfectly (the last two lines in the vbox are just to display and show that u and ll are correct): u = Input(100) l = Input(0) mymin(u,l) = u > l ? l : u - 1 ll = lift(m

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread Luke Stagner
It will only work if you installed from source(I.e cloned the main Julia repository and manually compiled). If you did that the directory would usually be in your home directory. On Nov 4, 2015 2:10 PM, wrote: > I have setup PyCall using a system Python (2.7.10). I get ERROR: > ArgumentError: ha

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread lewis
I have setup PyCall using a system Python (2.7.10). I get ERROR: ArgumentError: haskey of NULL PyObject in plot at C:\Users\Lewis\.julia\v0.4\PyPlot\src\PyPlot.jl:457 Matplotlib works fine in IPython. I'm stuck. Which directory needs git clean? On Wednesday, November 4, 2015 at 2:03:32 PM UT

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread Luke Stagner
I noticed it happened after I updated anaconda. Perhaps something went wrong there On 11/04/2015 02:01 PM, le...@neilson-levin.org wrote: I have the same problem. I am going back to using a system Python and giving up on conda. Works fine on Mac (par for the course that things tend to work

[julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread lewis
I have the same problem. I am going back to using a system Python and giving up on conda. Works fine on Mac (par for the course that things tend to work on Mac). I previously had Julia using matplotlib using WinPython. Wanted to try the conda approach. Too many problems, though. Hours late

Re: [julia-users] track progress to 0.5

2015-11-04 Thread Michael Krabbe Borregaard
Wonderful, thanks for the help and pointers - that was exactly what I was looking for. On Wed, Nov 4, 2015 at 7:15 PM, Yichao Yu wrote: > On Wed, Nov 4, 2015 at 1:48 PM, Michael Borregaard > wrote: > > I am using Julia 0.4, compiling from the release-0.4 branch on github. > > Considering using

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread lewis
What directory is the julia repository in? On Wednesday, November 4, 2015 at 1:37:19 PM UTC-8, Luke Stagner wrote: > > I recently had a similar error. To fix it I had to do > git clean -xdf > > in the julia repository if you installed from source > > I found the fix in this PyCall issue > https:

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread Luke Stagner
I recently had a similar error. To fix it I had to do git clean -xdf in the julia repository if you installed from source I found the fix in this PyCall issue https://github.com/stevengj/PyCall.jl/issues/65 On Wednesday, November 4, 2015 at 11:58:53 AM UTC-8, Tom Breloff wrote: > > You probab

Re: [julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Milan Bouchet-Valat
Le mercredi 04 novembre 2015 à 20:49 +, Ben Ward a écrit : > Could anyone who can see it tell me the current figures? Or see to > making this data public? It seems an odd thing to keep private - I > would presume growth figures were something to show off. Unfortunately, the graphs only cover ab

[julia-users] Re: Factorization of big integers is taking too long

2015-11-04 Thread janvanoort
Thanks for the input. My deterministic Pollard Rho does: F6: 2.0 milliseconds F7: failure F8: 6.98 seconds 2015-11-04 21:34 GMT+01:00 Julia Users mailing list [via Julia Programming Language] : > It would be better with Pollard Rho to list the times depending on the > smallest factor. > > It w

Re: [julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Ben Ward
Could anyone who can see it tell me the current figures? Or see to making this data public? It seems an odd thing to keep private - I would presume growth figures were something to show off. On Wed, Nov 4, 2015 at 7:28 PM, Luthaf wrote: > These graphs are not available for people who are not (Gi

Re: [julia-users] Re: Factorization of big integers is taking too long

2015-11-04 Thread 'Bill Hart' via julia-users
It would be better with Pollard Rho to list the times depending on the smallest factor. It would be interesting to compare timings for some known numbers such as Fermat numbers (F_n = 2^(2^n) + 1). Here are some timings from a Google summer of code project we had this year: F_6 (1844674407370955

[julia-users] Re: Factorization of big integers is taking too long

2015-11-04 Thread janvanoort
You are right. What I mean, is that my Pollard Rho is completely deterministic. Times for ranges of numbers: bitlength < 20 100 µs - 300 µs 20 < bit length < 40 around 3 ms random numbers with bitlength ~1024 3 ms - 800 ms, depending on size of smallest prime factor ( for this post, in order to c

Re: [julia-users] Re: Factorization of big integers is taking too long

2015-11-04 Thread 'Bill Hart' via julia-users
Do you mean you are factoring something other than random numbers, or do you mean your Pollard Rho is completely deterministic? It's not a good measure of performance to time just one factorisation with Pollard Rho, since you could just pick the parameters such that it essentially succeeds immedia

Re: [julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread Tom Breloff
You probably have a corrupted cache from whatever you were manually changing. I recommend just deleting your "~/.julia/v0.4" and starting again. I just did this on my windows machine (just to make sure it's not a Plots issue) and after doing only "Pkg.add("Plots"); using Plots" it completes witho

Re: [julia-users] a=[1:1:10] WARNING ? What to creat vectors in 4.0 ?

2015-11-04 Thread Tom Breloff
The warning is pretty clear here I think. Use `a = collect(1:10)` On Wed, Nov 4, 2015 at 2:43 PM, paul analyst wrote: >_ >_ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_)| Documentation: http://docs.julialang.org >_ _ _| |_ __

[julia-users] a=[1:1:10] WARNING ? What to creat vectors in 4.0 ?

2015-11-04 Thread paul analyst
_ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.4.0 (2015-10-08 06:20 UTC) _/ |\__'_|_

[julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread jda
I did Pkg.checkout("PyCall"); Pkg.build("PyCall") and PyCall is now version 1.1.2 master. The using Plots command still gives the error: ERROR: ArgumentError: Docile not found in path in require at loading.jl:233 in stale_cachefile at loading.jl:439 in recompile_stale at loading.jl:45

Re: [julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Luthaf
These graphs are not available for people who are not (Github) collaborator for the julia repository. Tony Kelman a écrit : There are some interesting numbers at https://github.com/JuliaLang/julia/graphs/traffic Elliot Saba also did some scraping of the AWS download logs for binaries and sha

Re: [julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Patrick O'Leary
It's not in the repo, it's a GitHub feature. But it may only be visible if you have Collaborator or Owner status on the repository. On Wednesday, November 4, 2015 at 10:51:34 AM UTC-6, Ben Ward wrote: > > I don't think the /graphs folder is part of the julia repo any-more :( > > On Wed, Nov 4, 20

[julia-users] using Shared Array causes memory leaks (Ubuntu 14.04 - Julia 0.4.0)

2015-11-04 Thread Julien Sainte-Marie
Dear all, I'm using the following function in a broader algorithm. The sequential part (commented) of the code works. Then, when I replace this part with the parallel one, this function still works but full algorithm crashes. I give the error message thereafter. function get_n_order_basis(mi::Ar

[julia-users] Re: Factorization of big integers is taking too long

2015-11-04 Thread janvanoort
That's interesting. I have been working for a week now on a somewhat improved version of Pollard's Rho, by "feeding" it with something else than a random number, in order to take away the non-deterministic behaviour. My implementation is written in Java 8 ( have had no time to port it to Julia, yet

[julia-users] Re: PyPlot not working on 0.4.0

2015-11-04 Thread Scott T
My reply disappeared - I may have sent it directly to jda instead of the group. Anyway, try julia> Pkg.checkout("PyCall") julia> Pkg.update() since the instructions above are outdated and will give you an old version of PyCall. Then let us know what error you're getting. On Wednesday, 4 Novemb

Re: [julia-users] Symbol & Expr

2015-11-04 Thread Yichao Yu
On Wed, Nov 4, 2015 at 2:10 PM, FANG Colin wrote: > Hi all > > I have got 2 questions: > > 1. I have a list, e.g. [:a, :(a + 1)], and I am not sure that type I should > give to it. > > There are 3 possible solutions I can think of. > > A. Do we have something that can convert a Symbol to an Expr?

Re: [julia-users] track progress to 0.5

2015-11-04 Thread Yichao Yu
On Wed, Nov 4, 2015 at 1:48 PM, Michael Borregaard wrote: > I am using Julia 0.4, compiling from the release-0.4 branch on github. > Considering using 'master' instead, but - is there somewhere that lists the > planned and implemented changes to the dev version at once? Using `master` branch is g

[julia-users] Re: julia -E or -e with print ?

2015-11-04 Thread feza
Ahhh gotcha ok this now works for posterity's sake: julia -E 'print(\"hello\")' On Wednesday, November 4, 2015 at 2:12:45 PM UTC-5, Zack L.-B. wrote: > > julia -e "print(\"hello\")" > > or > > julia -e 'print("hello")' > > You need to escape certain characters in your terminal so that they are

[julia-users] Re: julia -E or -e with print ?

2015-11-04 Thread Zack L.-B.
julia -e "print(\"hello\")" or julia -e 'print("hello")' You need to escape certain characters in your terminal so that they are passed faithfully to Julia. On Wednesday, November 4, 2015 at 11:05:29 AM UTC-8, feza wrote: > > I must be doing something wrong but: > > julia -e "print("hello")" >

[julia-users] Symbol & Expr

2015-11-04 Thread FANG Colin
Hi all I have got 2 questions: 1. I have a list, e.g. [:a, :(a + 1)], and I am not sure that type I should give to it. There are 3 possible solutions I can think of. A. Do we have something that can convert a Symbol to an Expr? B. Or, should I assign the list to be Union{Symbol, Expr}? C. Perh

[julia-users] julia -E or -e with print ?

2015-11-04 Thread feza
I must be doing something wrong but: julia -e "print("hello")" gives me ERROR: syntax: incomplete: premature end of input

[julia-users] Re: PyPlot not working on 0.4.0

2015-11-04 Thread jda
Could very much use the help! Here is the info: _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | |

[julia-users] track progress to 0.5

2015-11-04 Thread Michael Borregaard
I am using Julia 0.4, compiling from the release-0.4 branch on github. Considering using 'master' instead, but - is there somewhere that lists the planned and implemented changes to the dev version at once?

[julia-users] force recompilation of package at update

2015-11-04 Thread Michael Borregaard
Hi, when I load a package that has been updated, it usually recompiles for a long time (e.g. Gadfly). I would like this time to be at the time of updating (where I am not actively working in Julia) rather than at 'using', where I am actively working. Is there a setting to automatically recompile

[julia-users] Error in pushing PR

2015-11-04 Thread Tony Kelman
This is probably due to not having ssh keys set up properly, which can be kind of tricky, especially on windows. We're moving towards preferring https for everything which should fix this. For now I recommend starting git bash, navigating to the package directory and adding new https remotes fo

[julia-users] Re: error: haskey of NULL PyObject ?

2015-11-04 Thread Steven G. Johnson
On Monday, November 2, 2015 at 5:24:32 PM UTC-5, jda wrote: > > and everything worked fine on my windows machine (Julia 0.4.0 repl). Then > it broke (possibly due to Pkg.update()? I don't remember at this point.). > So I looked up a few things and now it seems that I must do > > ENV["PYTHON"]

Re: [julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Ben Ward
I don't think the /graphs folder is part of the julia repo any-more :( On Wed, Nov 4, 2015 at 4:48 PM, Tony Kelman wrote: > There are some interesting numbers at > https://github.com/JuliaLang/julia/graphs/traffic > > Elliot Saba also did some scraping of the AWS download logs for binaries > and

[julia-users] Re: The growth of Julia userbase

2015-11-04 Thread Tony Kelman
There are some interesting numbers at https://github.com/JuliaLang/julia/graphs/traffic Elliot Saba also did some scraping of the AWS download logs for binaries and shared the aggregate numbers (broken down by platform) privately with a few people, it may be worth sharing those publicly. On W

Re: [julia-users] Re: How to fill a (general) subarray with a single object

2015-11-04 Thread Michele Zaffalon
What Matt is saying is that the first option is probably what you do _not_ want: all elements of the matrix z point to the same location in memory. Just try to change one of them! On Tue, Nov 3, 2015 at 4:10 PM, Ján Dolinský wrote: > Hi Matt, > > Thanks for the tips. The 1st example is quite nea

[julia-users] The growth of Julia userbase

2015-11-04 Thread Ben Ward
Hi all, I was wondering are there any metrics or stats available that show how the user-base of Julia has grown over the last few years, and what it's size is now? Many Thanks, Ben W.

[julia-users] Re: PyPlot not working on 0.4.0

2015-11-04 Thread Tom Breloff
This issue is several months old, and I don't think it applies anymore. Can you run both "versioninfo()" and "Pkg.status()" at your Julia prompt? Then we might be able to help you get back to a working install. On Wednesday, November 4, 2015 at 10:03:38 AM UTC-5, jda wrote: > > I'm new to both

[julia-users] Re: PyPlot not working on 0.4.0

2015-11-04 Thread jda
I'm new to both julia and git. Trying to follow this thread because I am having problems with using Plots in 0.4.0 (and 0.3.8). I downloaded Git Desktop (https://desktop.github.com/) and tried the following from the Git Shell: C:\Users\user\.julia\v0.4\PyCall [master]> git fetch origin pull/1

Re: [julia-users] Why can't I reinterpret a single value to a custom immutable type?

2015-11-04 Thread Yichao Yu
On Wed, Nov 4, 2015 at 8:44 AM, Jason Merrill wrote: > I have a custom immutable type that wraps an Int16: > > julia> immutable DigitSet >d::Int16 >end > > julia> isbits(DigitSet) > true > > I was hoping to be able to reinterpret an Int16 as this type, but I get an > error that

[julia-users] Re: Comprehensions example from manual

2015-11-04 Thread Ján Adamčák
Thanks. Packing into to function solves my questions. Resulting times: 0.005274 seconds (2 allocations: 7.629 MB) 0.005279 seconds (2 allocations: 7.629 MB) 0.005195 seconds (2 allocations: 7.629 MB) 0.007343 seconds (2 allocations: 7.629 MB) Dňa streda, 4. novembra 2015 14:41:00 UTC+1 Kristo

[julia-users] Why can't I reinterpret a single value to a custom immutable type?

2015-11-04 Thread Jason Merrill
I have a custom immutable type that wraps an Int16: julia> immutable DigitSet d::Int16 end julia> isbits(DigitSet) true I was hoping to be able to reinterpret an Int16 as this type, but I get an error that confusingly says that the first argument must be a bits type: julia> r

[julia-users] Comprehensions example from manual

2015-11-04 Thread Kristoffer Carlsson
This is a good read: http://docs.julialang.org/en/release-0.4/manual/performance-tips/

[julia-users] Comprehensions example from manual

2015-11-04 Thread Ján Adamčák
Hi guys, I tried example from 0.4 Julia manual. My edited code: A = rand(1_000_000); const B = rand(1_000_000); #non const [ 0.25*A[i-1] + 0.5*A[i] + 0.25*A[i+1] for i=2:length(A)-1 ] #const [ 0.25*B[i-1] + 0.5*B[i] + 0.25*B[i+1] for i=2:length(B)-1 ] #my mistake [ 0.25*B[i-1] + 0.5*B[i] + 0.2

[julia-users] Re: Setting default values in Composite Type definitions

2015-11-04 Thread Randy Zwitch
Thanks Kristoffer and Cedric, these both get to the heart of the question that I am asking. Stephen, your idea of the macro does achieve what I'm trying to do, except for the fact I already have a macro doing that which I'm trying to get OUT of my code :) It's good to know the reason why the ma

[julia-users] error: docile not found in path

2015-11-04 Thread jda
I'm trying to get the Plots package working on Julia 0.4.0 repl on a windows 7 machine. The command using Plots gives the error ERROR: ArgumentError: Docile not found in path in require at loading.jl:233 in stale_cachefile at loading.jl:439 in recompile_stale at loading.jl:457 in _re

[julia-users] Re: Setting default values in Composite Type definitions

2015-11-04 Thread Cedric St-Jean
+1 for parameters.jl. It's reserved for eventually making it default behavior. https://github.com/JuliaLang/julia/issues/10146 On Wednesday, November 4, 2015 at 3:09:00 AM UTC-5, Kristoffer Carlsson wrote: > > This is also a good package for default values in types, keyword arguments > in type

[julia-users] Error in pushing PR

2015-11-04 Thread Petr Hlavenka
I've tried to upload PR for the NIDAQ.jl packages and I'm getting follwing error: julia> Pkg.submit("NIDAQ") > INFO: Forking JaneliaSciComp/NIDAQ.jl to phlavenk > INFO > INFO: Pushing changes as branch pull-request/05c1c1b2 > Warning: Permanently added the RSA host key for IP address > '192.30.2

Re: [julia-users] Re: question about Hessian in ForwardDiff return InexactError()

2015-11-04 Thread Kristoffer Carlsson
The problem is that the multiplication y_hih_y = y_hat'*iy_var*y_hat does not produce a scalar but a 1x1 matrix. You can't assign a 1x1 matrix to an element that expects a scalar. If you know that the result will be a 1x1 matrix you could extract the scalar by: y_hih_y = (y_hat'*iy_var*y_hat

[julia-users] Re: Setting default values in Composite Type definitions

2015-11-04 Thread Kristoffer Carlsson
This is also a good package for default values in types, keyword arguments in type construction and more: https://github.com/mauro3/Parameters.jl