[julia-users] Re: Dual licenses for Julia packages

2016-02-05 Thread Páll Haraldsson
On Friday, February 5, 2016 at 3:10:54 PM UTC, Scott Jones wrote: > > I'm curious about how one could release packages for use with Julia such > that they would be free for non-commercial use (under GPL maybe?) but also > available with a paid license for commercial use. > I guess you know,

[julia-users] I think I'm obtaining the nightly ubuntu PPA incorrectly...

2016-02-05 Thread Jeff Waller
For travis sudo add-apt-repository ppa:staticfloat/julianightlies I end up with one from November 1.81s$ julia -e 'versioninfo()' Julia Version 0.5.0-dev+1491 Commit 41fb1ba (2015-11-27 16:54 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Xeon(R) CPU @ 2.30GHz

Re: [julia-users] equivalent of python's string.title() in julia

2016-02-05 Thread Stefan Karpinski
Since there was talk of removing uppercase and lowercase altogether (I was against this), I felt it would be pushing it to add titlecase, but a good PR to do this would be welcomed. On Fri, Feb 5, 2016 at 4:06 AM, Milan Bouchet-Valat wrote: > Le jeudi 04 février 2016 à 17:31

Re: [julia-users] julia -machinefile help

2016-02-05 Thread Stefan Karpinski
I didn't notice the subject, which indicates that you're having some trouble with machine files, rather than wanting to know about distributed computing in general. Can you be more specific about what the problem is? On Fri, Feb 5, 2016 at 10:07 AM, Stefan Karpinski wrote:

Re: [julia-users] Memory allocation free array slices ?

2016-02-05 Thread Kevin Squire
> > julia> @time bar > 0.01 seconds (3 allocations: 144 bytes) > bar (generic function with 1 method) > I think this needs to be @time bar(A). I get julia> @time bar(A) 0.000269 seconds (5 allocations: 176 bytes) 20010.937886591404

[julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Scott Jones
Types themselves are immutable, right? Don't instances in Julia contain a pointer to their type? If a type's definition were replaced, would the old (now obsolete) instances still point to the old definition? Would they still correctly use methods specialized on the old definition? If so, it

Re: [julia-users] julia -machinefile help

2016-02-05 Thread Vishnu Raj
Sorry for the ambiguity. What I want to know is about the contents of machinefile, how to configure remote systems for accepting the connections. Like a step by step procedure for bringing up a network of computers and deploying distributed code in the. On Friday, February 5, 2016 at 8:43:20

[julia-users] Dual licenses for Julia packages

2016-02-05 Thread Scott Jones
I'm curious about how one could release packages for use with Julia such that they would be free for non-commercial use (under GPL maybe?) but also available with a paid license for commercial use. Has anybody else done this? As much as possible, I'd like to release things under the MIT

Re: [julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Stefan Karpinski
Python has less of a problem here since it represents object data using a dict internally – when you reload a class, the representation of objects doesn't change. Still, if adding or removing fields in Python classes works at all, that's an interesting data point. On Fri, Feb 5, 2016 at 5:24 AM,

[julia-users] julia -machinefile help

2016-02-05 Thread Vishnu Raj
Hi, Can some provide any pointers on how to configure julia to run distributed code? I want to configure three macs to run my distributed code.

[julia-users] equivalent of python's string.title() in julia

2016-02-05 Thread Ismael Venegas Castelló
I made this IJulia gist: bit.ly/JLTitle

Re: [julia-users] Dual licenses for Julia packages

2016-02-05 Thread Tom Breloff
Scott I'm curious about this as well, however I tend to think that there's no good solution. The problem isn't in an end user picking up your package (Package A) and using it commercially vs non-commercially. The problem comes when someone wants to build some sort of derivative work (Package B)

Re: [julia-users] julia -machinefile help

2016-02-05 Thread Stefan Karpinski
http://docs.julialang.org/en/latest/manual/parallel-computing/ On Fri, Feb 5, 2016 at 10:02 AM, Vishnu Raj wrote: > Hi, > > Can some provide any pointers on how to configure julia to run distributed > code? > I want to configure three macs to run my distributed code. >

Re: [julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Stefan Karpinski
Even assuming feasibility, implementing this in Julia is a total nightmare – you'd have to recompile huge amounts of code and reconstruct lots of objects – and anything that refers to them, etc. It's almost easier to serialize the entire workspace and reload all code. Basically, the amount of work

Re: [julia-users] Dual licenses for Julia packages

2016-02-05 Thread Scott Jones
I'm afraid that it may end up that way for me as well, releasing what's acceptable to the company (and stuff I do purely as non-related side projects) under MIT, or not at all. ☹️ After decades never being able to show my code to the world, I do enjoy the openness and usefulness of the MIT

Re: [julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Kevin Squire
An easier path forward might be to mimic python types with dictionaries and macros (and containers for the dictionaries). On Fri, Feb 5, 2016 at 7:04 AM, Stefan Karpinski wrote: > Even assuming feasibility, implementing this in Julia is a total nightmare > – you'd have to

RE: [julia-users] load a Julia dataframe from Microsoft SQL Server table

2016-02-05 Thread David Anthoff
https://msdn.microsoft.com/en-us/library/ms716246%28v=vs.85%29.aspx?f=255 =-2147217396 suggests that if you call the version without the A or W suffix you get the ANSI version. From:

[julia-users] Re: Solve ode with initial conditions

2016-02-05 Thread j verzani
Similar things can be done. Rather than illustrate, I'll point out instead that I just added an interface to `dsolve` that makes this much more straightforward (https://github.com/jverzani/SymPy.jl/blob/master/src/dsolve.jl#L87). I'll tag a new version soon. On Friday, February 5, 2016 at

Re: [julia-users] load a Julia dataframe from Microsoft SQL Server table

2016-02-05 Thread Stefan Karpinski
It does, but that's not what we're seeing – at least with some ODBC drivers. On Fri, Feb 5, 2016 at 1:18 PM, David Anthoff wrote: > > https://msdn.microsoft.com/en-us/library/ms716246%28v=vs.85%29.aspx?f=255=-2147217396 > > > > suggests that if you call the version without

Re: [julia-users] equivalent of python's string.title() in julia

2016-02-05 Thread Steven G. Johnson
On Friday, February 5, 2016 at 4:06:40 AM UTC-5, Milan Bouchet-Valat wrote: > > > is there a better / more straightforward julia-based solution? > I wouldn't call it "straightforward", but if you need a Unicode-correct > way of applying title case, you can use UnicodeExtras, which relies on >

[julia-users] Re: Dual licenses for Julia packages

2016-02-05 Thread Tobias Knopp
This question is by no mean specific to Julia. You have to release the software under GPL (v2/v3) and of course as a copyright holder you are allowed to use it commercially. If you want others to contribute to your package you need them to agree that the code will be used by you under a

[julia-users] equivalent of python's string.title() in julia

2016-02-05 Thread Ismael Venegas Castelló
You can do something like: title(s::AbstractString) = join([ucfirst(w) for w in split(s, ' ')], ' ')::typeof(s)

[julia-users] Re: associating outer constructors with different names with a type

2016-02-05 Thread Christopher Alexander
Instead of having the name be ASCIIString, you could have that be another type like SomeTypeName, (which then has the string "A" or "B" as an attribute). Then you could do a type alias to map TypeA to SomeType{SomeTypeA} and TypeB to SomeType{SomeTypeB} assuming SomeTypeA and SomeTypeB are

Re: [julia-users] Memory allocation free array slices ?

2016-02-05 Thread Tim Holy
On Friday, February 05, 2016 08:17:21 AM Kevin Squire wrote: > I think this needs to be @time bar(A). Yeah, sorry for the typo. > I get > > julia> @time bar(A) > 0.000269 seconds (5 allocations: 176 bytes) > 20010.937886591404 That's just REPL allocation. Since A has 1 columns, if this

[julia-users] Re: Solve ode with initial conditions

2016-02-05 Thread j verzani
Yes, this now can be done with: y = IVPSolution("y") x = Sym("x") eqn = y''(x) - 4y(x) - x ivpsolve(eqn, x, (y, 0, 1), (y', 0, 0)) I added a few examples to the tutorial (https://github.com/jverzani/SymPy.jl/blob/master/examples/tutorial.md#initial-value-problems). I'm not entirely happy

[julia-users] Re: Solve ode with initial conditions

2016-02-05 Thread jmarcellopereira
Very good. I hope looking forward to the new version. Idea Code: using SymPy y = SymFunction("y") x = Sym("x") edo2 = SymPy.diff(y(x),x,x) - 4*y(x)-x sol_simb_ord2 = SymPy.dsolve(edo2) C1,C2 = Sym("C1,C2") eq1 = sol_simb_ord2(y(x) => 1, x=> 0) eq2 =

[julia-users] associating outer constructors with different names with a type

2016-02-05 Thread Uri Patish
Hi, I was wondering what is the best way going about the following issue. Suppose I have a type with few outer constructors which I name differently, and I want Julia to recognize these functions as constructors of that type. For example type SomeType <: SomeAbstract name::ASCIIString

[julia-users] Julia : install problem on ubuntu : Signing key not available

2016-02-05 Thread Fred
Hi, When I install Julia on Xubuntu 15.10, I have some problems of authentication : W: Erreur de GPG : http://ppa.launchpad.net wily InRelease : NO_PUBKEY CF979FFA3D3D3ACC sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CF979FFA3D3D3ACC does not work Trying to obtain the key

Re: [julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Andras Niedermayer
class X(object): @property def y(self): try: return x.__y except AttributeError: return "default value for y" x = X() print x.y On Friday, February 5, 2016 at 11:22:17 AM UTC+1, Andras Niedermayer wrote: > > The IPython autoreload extension does something quite

Re: [julia-users] Pre-compiling images for different CPUs on GCloud

2016-02-05 Thread Milan Bouchet-Valat
Le jeudi 04 février 2016 à 17:17 -0800, Pavel a écrit : > I am deploying a CPU-intensive application on Google Cloud Compute > with Julia code running inside a Docker container. GCloud instances > have a few different CPU architectures depending on the zone. > Ideally, I would like to pre-compile

Re: [julia-users] equivalent of python's string.title() in julia

2016-02-05 Thread Milan Bouchet-Valat
Le jeudi 04 février 2016 à 17:31 -0800, julialangfans...@gmail.com a écrit : > in python, "abc def ghi jkl".title() capitalizes each "word" in the > string, giving 'Abc Def Ghi Jkl' as the result > > i have not been able to find a similar string function in julia, so > i'm currently doing this: >

Re: [julia-users] Memory allocation free array slices ?

2016-02-05 Thread Tim Holy
I imagine this will be possible some day, but I can't predict when. Currently, if your slices are contiguous (step size 1 in each range), there is in fact another option: encode the slice with a CartesianRange. See http://julialang.org/blog/2016/02/iteration/ Example: julia> function foo(A,

Re: [julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Andras Niedermayer
The IPython autoreload extension does something quite similar to what has been discussed here ( https://ipython.org/ipython-doc/3/config/extensions/autoreload.html ). There are cases where it's actually very convenient, e.g. if you have results from a long-running calculation in an IPython

Re: [julia-users] Re: Conda

2016-02-05 Thread Luthaf
> When I do not have Conda installed but install PyCall in Julia does Pkg.add("PyCall") still installs its own small PYthon distribution? As far as I know, if there is no PYTHON environnement variable and no `python` in path, then the automatic MiniConda Python installation is used. > Small?

[julia-users] Re: Solve ode with initial conditions

2016-02-05 Thread jmarcellopereira
Hi j very good,thanks! very practical. For a second order ode, as would be? Em sexta-feira, 5 de fevereiro de 2016 01:50:34 UTC-2, j verzani escreveu: > > It can be a bit cleaner to just get the constant if you substitute as the > following: > > eqn = diff(u(x),x) - 2u(x) # for example > out

[julia-users] Re: citing Julia

2016-02-05 Thread Sisyphuss
Large packages often offer this information in their Github "readme.md" On Friday, February 5, 2016 at 7:58:39 AM UTC+1, kleinsplash wrote: > > How about citing a specific package? > > On Wednesday, 17 July 2013 03:13:24 UTC+2, georgiana wrote: >> >> Is there a suggested way to cite Julia if

Re: [julia-users] Pre-compiling images for different CPUs on GCloud

2016-02-05 Thread Pavel
I tried this approach using a local machine with product: Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz which in my understanding belongs to the "haswell" type. setting build_sysimg(joinpath(dirname(Libdl.dlpath("libjulia")),"sys"), "haswell", "/home/juser/jimg.jl", force=true) resulted in

[julia-users] Re: Shell mode for scripts

2016-02-05 Thread Páll Haraldsson
I'm not sure I get what you mean. E.g.: julia> run(`ls`) does the same for me as: shell> ls Note the shell, isn't actually a shell.. and not exactly the same as run. Maybe they are close enough, is is it bothering you? E.g. I couldn't run two shell commands this way: julia> run(`ls;ls`)

Re: [julia-users] Memory allocation free array slices ?

2016-02-05 Thread Nitin Arora
Thanks Tim, this is very useful. I will probably use CartesianRange now. Is Julia 0.5 Arraypocalypse planning to address this issue as well ? thanks, Nitin On Friday, February 5, 2016 at 3:24:34 PM UTC-8, Tim Holy wrote: > > On Friday, February 05, 2016 08:17:21 AM Kevin Squire wrote: > > I

[julia-users] WARNING: replacing module ...

2016-02-05 Thread Gabriel Mihalache
Hello, all! I must be doing something wrong. Say I have the following code in a file called myMod.jl module myMod using NLopt function compute() ... pmap(...) ... end end and then in a console I do addprocs() @everywhere include("myMod.jl") myMod.compute() I get a bunch of warnings,