Re: [julia-users] Re: How to define a single column matrix literal?

2014-01-27 Thread Tim Holy
You have several options, e.g., define a colv(v::AbstractVector) = reshape(v, length(v), 1) function. Or you can define a comparison function, cmpcolv(v1, v2) which will do the comparison with what you receive from SymPy, accepting either AbstractVector or AbstractMatrix arguments. The

Re: [julia-users] Re: what happened when running julia?

2014-01-27 Thread Tim Holy
Without more detail it's impossible to say. How did you get Julia? If you built it yourself, did you follow these instructions: https://github.com/JuliaLang/julia#source-download-and-compilation --Tim On Sunday, January 26, 2014 07:21:09 PM jidong...@gmail.com wrote: When run julia

[julia-users] object.method() notation

2014-01-27 Thread Franta
Is a dot notation for calling functions under consideration for future releases? I.e., in addition to function(a, b, c) you could use an alternative: a.function(b, c). This can be more readable sometimes, e.g. in fluent interfaces like dom.select(a).first().attr(href). Of course, there are

[julia-users] Is object.method() notation?

2014-01-27 Thread Franta
Is a dot notation for calling functions under consideration for future releases? I.e., in addition to function(a, b, c) you could use an alternative: a.function(b, c). This can be more readable sometimes, e.g. in fluent interfaces like dom.select(a).first().attr(href). Of course, there are

[julia-users] function sum(itr) removed in 5cf9dbba8d350b4c0df179c7d983d5933c7d2119

2014-01-27 Thread Joseph Irwin
Hi, It looks like in 5cf9dbba8d350b4c0df179c7d983d5933c7d2119 the `sum` method taking a single iterator argument was removed: https://github.com/JuliaLang/julia/commit/5cf9dbba8d350b4c0df179c7d983d5933c7d2119#diff-4808ec683e5c7595ff2200ebc618aba3L72. Since the commit message says No changes,

[julia-users] [WIP] new browser based chart package ECharts.jl

2014-01-27 Thread WANG
I'm working on a package which plot charts using echarts(a cavas/javascript based chart tool, works on IE6/7/8/9+,chrome、firefox、safari、opera ) This package locates at https://github.com/wlbksy/ECharts.jl It provides Line/Bar/Chord/Pie/Nightingale Rose/Candle(stocks

Re: [julia-users] Natural language processing in Julia

2014-01-27 Thread Jonathan Malmaud
I was thinking of starting up a Julia NLP meta-project on github if there's enough interest. It could host projects like textanalysis.jl, a Julia interface to NLTK, a Julia interface to some of Stanford's NLP tools, and whatever more native solutions people put together. On Friday, October 25,

Re: [julia-users] Natural language processing in Julia

2014-01-27 Thread John Myles White
JuliaText would be great. TextAnalysis.jl really needs a lot of love to move forward. For now, I’d strongly push people towards NLTK. — John On Jan 27, 2014, at 8:29 AM, Jonathan Malmaud malm...@gmail.com wrote: I was thinking of starting up a Julia NLP meta-project on github if there's

[julia-users] DBI: Generic database access in Julia

2014-01-27 Thread John Myles White
I've been intentionally holding off on announcing this work (because it's not even close to being ready for practical use yet), but I've been working with Eric Davies on a generic database access module in Julia called DBI: https://github.com/johnmyleswhite/DBI.jl The goal of DBI is to provide

Re: [julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-27 Thread Stefan Karpinski
Looks like something in the build process is trying to seek on a pipe. I'm not sure what could possibly be causing that while loading the osutils.jl file though. On Sun, Jan 26, 2014 at 8:46 PM, Rajan Gurjar rjngrj2...@gmail.com wrote: strace crashed with SIGILL in __GI_raise() is what the

Re: [julia-users] Random comments on Julia and its manual

2014-01-27 Thread Stefan Karpinski
That is weird and may be a dispatch bug. Perhaps an issue should be opened. On Sun, Jan 26, 2014 at 3:00 PM, Toivo Henningsson toivo@gmail.comwrote: The type of a type would e.g. describe which values are legal as the second argument of isa. It turns out that Type almost works. If I do

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Isaiah Norton
Please upload the following outputs in a gist (gist.github.com) 1. julia versioninfo() 2. Pkg.build(PyCall) 3. all version info when you start python (Python 2.7.5 | Anaconda...) 4. python sys.path On Mon, Jan 27, 2014 at 1:02 PM, Rajan Gurjar rjngrj2...@gmail.com wrote: After every install

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajan Gurjar
After every install of pyplot (or any graphing app) failing in Windows and install of Julia failing in Linux - went back to Windows. Uninstalled Enthought, removed Julia. Got Anaconda, then installed Julia. This is the error I get. julia using PyPlot ERROR: could not load module python: The

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Steven G. Johnson
Weird, Anaconda has always worked out of the box for me on Windows. When you installed Anaconda, did you check the boxes *Add Anaconda to the System Path* and also *Register Anaconda as default Python version of the system* in the installer? On Monday, January 27, 2014 1:02:48 PM UTC-5, Rajn

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajn
Yes, I did both. I tried just PYTHONHOME=C:\Anaconda did not work. Can you please advice me on the following please? 1. that while installing pyplot, the PYTHONHOME variable should already be set? 2. is there any way to print out variables from PyCall.jl? If I can print the variable 'lib' to

Re: [julia-users] Bug or feature? How does = decide whether to do a copy or deepcopy?

2014-01-27 Thread David Piepgrass
Even stranger, the values of x are not modified by the following function function f3(x::Array) w = x + 0. for i in 1:length(w) w[i] = w[i] + 10.0 end return w end You think it is strange that changing w does not change x? Most seasoned programmers would be *shocked* if changes

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Steven G. Johnson
I installed on a fresh machine with Anaconda, and I didn't have to set any environment variables at all ... everything needed was done by the Anaconda installer. My guess is that you have some leftover settings (environment vars? registry?) from your earlier attempts with Enthought or

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajn
Hi, I just populated the outputs to gist through your link. Not sure if I should save it or if I have to sign in? The file was named as Rajn_notloadingpython Thanks On Monday, January 27, 2014 1:07:55 PM UTC-5, Isaiah wrote: Please upload the following outputs in a gist (gist.github.com)

Re: [julia-users] Winston on Linux: no method Rectangle

2014-01-27 Thread Mike Nolta
Oops -- hopefully fixed now. Try `Pkg.update()`. -Mike On Mon, Jan 27, 2014 at 2:45 PM, Milos Hasan milos.ha...@gmail.com wrote: Hi, I have a newbie question. When trying to plot using Winston on Linux, I get: julia x = linspace(-10, 10, 1000) julia using Winston julia plot(x, sin(x))

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajn
This worked finally! I did pyinitialize(C:\Anaconda\python) as suggested by Steve. I am now able to use PyPlot. So the question remains...what is broken in PyCall? What is the solution Thanks On Monday, January 27, 2014 2:28:45 PM UTC-5, Steven G. Johnson wrote: I installed on a fresh machine

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajan Gurjar
Ok, I got it now to run it without using PyCall and pyinitialize. I just changed PyCall line where ENV variable is set i.e., changed from [ENV] = @windows exec_prefix: preconfigvar(...,prefix) etc to [ENV] = exec_prefix Thanks for all the help I got from the forum. I can now work Julia on

Re: [julia-users] General Licensing Question

2014-01-27 Thread John Myles White
Yes, the main LICENSE file for Julia should contain more details about the legal status of subsets of the code and also about the distribution as an entirety. -- John On Jan 27, 2014, at 9:52 AM, Hans W Borchers hwborch...@gmail.com wrote: Yes, but this is not downloaded with the source.

[julia-users] git problem on Pkg.update() on Ubuntu

2014-01-27 Thread Patrick Foley
I can't seem to get Pkg.update() to work with git. I'm getting this error on a nightly build with Ubuntu 13.04 (GNU/Linux 3.8.0-32-generic x86_64) I get the same errors with Pkg.add(). I just rebuilt from source, but that hasn't changed the errors. ERROR: failed process: Process(`git

[julia-users] Re: git problem on Pkg.update() on Ubuntu

2014-01-27 Thread Patrick Foley
It works fine on an Amazon machine image with Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-54-virtual x86_64) On Monday, January 27, 2014 4:51:30 PM UTC-5, Patrick Foley wrote: I can't seem to get Pkg.update() to work with git. I'm getting this error on a nightly build with Ubuntu 13.04 (GNU/Linux

[julia-users] quick sparse related question

2014-01-27 Thread Jon Norberg
rand(10).*rand(10,30) but sv=sparsevec([3,5,7],[0.1,0.0,3.2],4) sv.*sprand(4,20,0.1) sprandbool(10, 1, 0.1).*sprand(10,30,0.1) rand(10).*sprand(10,30,0.1) all give Incompatible sizes Is my syntax wrong?

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajan Gurjar
Yes, this is exactly what I did and the whole thing ran and now I am chugging along. The very last step just before that was resetting the PYTHONHOME to C:\Anaconda from earlier setting of C:\Anaconda;C:\Anaconda\Scripts. And it did not work. Then you suggested the change to PYTHONHOME should have

Re: [julia-users] Re: git problem on Pkg.update() on Ubuntu

2014-01-27 Thread Elliot Saba
Do you happen to have git not installed? If you type `git` at the command line, what does it say? If the command is not found, try `sudo apt-get install git`. On Mon, Jan 27, 2014 at 2:19 PM, Patrick Foley patrick.egan.fo...@gmail.com wrote: It works fine on an Amazon machine image with

Re: [julia-users] Re: git problem on Pkg.update() on Ubuntu

2014-01-27 Thread Patrick Foley
Yes, git is installed and works fine for other purposes. It's version 1.8.1.2. On Monday, January 27, 2014 6:06:02 PM UTC-5, Elliot Saba wrote: Do you happen to have git not installed? If you type `git` at the command line, what does it say? If the command is not found, try `sudo apt-get

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajan Gurjar
Actually I have been playing around so much that the sequence of events is difficult to remember. I do remember that I also deleted PYTHONPATH which was set to C:\\Anaconda\\Lib However, I do agree with Steve and that is the code that I changed to is similar to previous code. The reason why I made

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajan Gurjar
Ok, I have verified by going back to ENV[PYTHONHOME] = @windows? exec_prefix : pyconfigvar(python, prefix) * : * exec_prefix and PyPlot executes properly. Sorry to mislead you all. It must have been some wrong combination of PYTHONHOME and PYTHONPATH setting that threw me off. Also I learnt to

Re: [julia-users] Re: git problem on Pkg.update() on Ubuntu

2014-01-27 Thread Elliot Saba
Hmmm. Interestingly enough, I also have this problem now on OSX. I'll look into it. -E On Mon, Jan 27, 2014 at 3:11 PM, Patrick Foley patrick.egan.fo...@gmail.com wrote: Yes, git is installed and works fine for other purposes. It's version 1.8.1.2. On Monday, January 27, 2014 6:06:02

Re: [julia-users] Using SharedArray with pmap

2014-01-27 Thread Madeleine Udell
Thanks, that makes sense. After decoupling the parameters in my code, I see that the increase in memory is proportional to the number of tasks, not the size of the shared memory block. On Sunday, January 26, 2014 1:28:18 AM UTC-8, Amit Murthy wrote: @parallel is efficient at executing a large

Re: [julia-users] Re: git problem on Pkg.update() on Ubuntu

2014-01-27 Thread Elliot Saba
Alright, looks like this is a consequence of Stats.jl being renamed. This will probably get automagically fixed once METADATA.jl gets updated. Until then, removing Stats via `pkg.rm(Stats)` worked for me. Actually, looks like John is a quick worker and has already merged something that might fix

Re: [julia-users] Bug or feature? How does = decide whether to do a copy or deepcopy?

2014-01-27 Thread Dahua Lin
Agree. People with programming background won't expect x and x + 0 (x * 1, x ^ 1, etc) to be the same thing. (They are equal, but definitely not the same copy). Even in MATLAB or Python/Numpy, when you modify y = x + 0, the values in x are not affected. - Dahua On Monday, January 27, 2014

Re: [julia-users] Re: How to define a single column matrix literal?

2014-01-27 Thread Cristóvão Duarte Sousa
Thanks Tim, I need the single column matrix literal in one place only, so it's not worth the use of a function. But I came to understand that there is no need to have a way to write literals for everything, and that the right/standard/official way to do what I want is in fact the use of

Re: [julia-users] Bug or feature? How does = decide whether to do a copy or deepcopy?

2014-01-27 Thread Rob Speer
On Saturday, 25 January 2014 03:49:11 UTC-5, Ivar Nesje wrote: It is nice that you raise this issue. I think most of the others working with Julia has experience from C or Python which also have the same semantics. I'll make an attempt to sum up how things work in this case. Julia doesn't

Re: [julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-27 Thread Rajn
Hi, I am having good time coding in Julia on my Windows at work. However, at home Linux is not still able to work with Julia. Hope it gets resolved at some point - otherwise I am thinking of a fresh install of Ubuntu 13.10 (not Xubuntu which is my current system). Are there folks who are

Re: [julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-27 Thread Rob Speer
I use Julia on Ubuntu 13.10. Using ppa:staticfloat/juliareleases, as described at http://julialang.org/downloads/, got me running just fine. On Mon, Jan 27, 2014 at 10:41 PM, Rajn rjngrj2...@gmail.com wrote: Hi, I am having good time coding in Julia on my Windows at work. However, at home

[julia-users] Serialize and deserialize generic functions

2014-01-27 Thread Cristóvão Duarte Sousa
Hi, I would like to do something like f(x) = x+1 open(f.jld, w) do file serialize(file, f) end then, close julia, open it again and do open(f.jld, r) do file f = deserialize(file) end f(1) but that gives ERROR: f not defined Is serialization supposed to be able to do this? If yes,