Re: [julia-users] Using -args to execute a function for different parameters

2016-10-29 Thread Josef Sachs
> On Sat, 29 Oct 2016 12:59:45 -0700 (PDT), said: > 3. This is the most confusing part for me. I really don't get the Julia > equivalent of these two lines. if __name__ == "__main__": > main(sys.argv[1:]) It seems like a lot of members of the Julia community do not

Re: [julia-users] Using -args to execute a function for different parameters

2016-10-27 Thread Josef Sachs
> On Thu, 27 Oct 2016 04:51:42 -0700 (PDT), said: > Hello, I've been using Julia for a month probably and I would now > like to execute a bash script containing a set of commands to run > the same file for different arguments. Within Julia, you can inspect the global

[julia-users] Docs unavailable?

2016-07-11 Thread Josef Sachs
http://docs.julialang.org/ gives me Service Unavailable The service is temporarily unavailable. Please try again later. Is this a known issue? Any reasonable alternatives?

[julia-users] File created with different mode in v0.5 than in v0.4

2016-07-10 Thread Josef Sachs
What explains this difference between v0.4 (644) and v0.5 (664)? I don't see anything in NEWS.md. (offhand, I agree that the v0.5 behavior makes more sense.) AWS-Sachs-Ubuntu$ umask 002 AWS-Sachs-Ubuntu$ julia _ _ _ _(_)_ | A fresh approach to technical computing

Re: [julia-users] How to locate cause of deprecation warning?

2016-06-16 Thread Josef Sachs
> On Thu, 16 Jun 2016 04:34:36 -0700 (PDT), said: > Have you discovered the joys of Lint.jl ? > (https://github.com/tonyhffong/Lint.jl). I've found it pretty useful in the > past, although I don't know how up to date it is at the moment. I've been meaning to try it,

[julia-users] How to locate cause of deprecation warning?

2016-06-16 Thread Josef Sachs
What is the easiest way for me to locate in the source code the cause of a depraction warning? Some deprecation warnings actually give the file name and line number. AWS-Sachs-Ubuntu$ usr/bin/julia -e "using Gallium" INFO: Recompiling stale cache file /home/sachs/.julia/lib/v0.5/Gallium.ji for

Re: [julia-users] Re: Congratulations to Keno

2016-05-27 Thread Josef Sachs
> On Fri, 27 May 2016 16:24:35 -0700 (PDT), Eric Forgy said: > It must be a very public secret since they won't tell us :) > I would love to congratulate Keno too, but feels a little hollow not knowing > why :) I don't have all the details (Keno is quite modest), but I think it has to do

[julia-users] Congratulations to Keno

2016-05-26 Thread Josef Sachs
Well done! Onward and upward!

[julia-users] JuliaCon birds of a feather

2016-05-17 Thread Josef Sachs
Will there be any organized or unorganized opportunities for birds of a feather sessions at JuliaCon? I would be particularly interested in (1) Julia on Amazon Web Services, and (2) editors and IDEs for Julia (There was talk at one point about arranging a NYC Julia User Group meeting where we

Re: [julia-users] Re: edit() with foreground emacs

2016-04-14 Thread Josef Sachs
> On Thu, 14 Apr 2016 07:46:18 -0700 (PDT), daniel matz said: > I'm on Mac OS X with Julia 0.4.3. The edit function is defined in > interactiveutil.jl > . > What is the output if you run this at the REPL: >

[julia-users] Re: edit() with foreground emacs

2016-04-13 Thread Josef Sachs
>>>>> On Wed, 13 Apr 2016 14:03:08 -0700 (PDT), daniel matz said: > It seems to work for me. What were you trying to set JULIA_EDITOR > to when you were trying emacs? Were you trying to use console emacs > with emacs -nw? > On Wednesday, April 13, 2016 at 7:46:21

[julia-users] edit() with foreground emacs

2016-04-13 Thread Josef Sachs
Is there a way that I can use edit() to start emacs in the foreground with support for line number? As a kludge, I am currently setting JULIA_EDITOR=mvim, and I have a mvim in my PATH that is a symbolic link to emacs.

Re: [julia-users] Re: Julia command line usage: tool versus library

2016-04-01 Thread Josef Sachs
> On Fri, 1 Apr 2016 06:11:26 -0700 (PDT), Curtis Vogt said: > There does exist a way to do this in Julia 0.5 using the PROGRAM_FILE > > constant: > [ ... ] Curtis, thanks so much for that. Just want to note that it

[julia-users] Build failure on msys2

2016-03-26 Thread Josef Sachs
I am getting the following error trying to build julia master on Windows 7 msys2. Can anyone suggest a solution? Thanks. $ make llvm[3]: Building Intrinsics.gen.tmp from Intrinsics.td llvm-tblgen.exe: Unknown command line argument '-I'. Try:

Re: [julia-users] Is it possible to grab REPL contents after a .jl file completes execution ?

2016-03-21 Thread Josef Sachs
> On Mon, 21 Mar 2016 09:39:40 -0400, Stefan Karpinski said: > Could you just pipe the output of non-interactive Julia to the `tee` > command? I'd still like to be able to pipe the output of non-non-interactive Julia. https://github.com/JuliaLang/julia/issues/14776

Re: [julia-users] readall() from osascript process (MacOS X)?

2016-02-03 Thread Josef Sachs
> On Wed, 3 Feb 2016 11:03:07 -0800 (PST), said: > I'd like to get some information from running the `osascript` command on > MacOS X, For example: > julia> run(`osascript -e "display dialog \"Character\" default answer > \"#\""`) > button returned:OK, text

[julia-users] Re: Capturing output of interactive julia

2016-01-30 Thread Josef Sachs
> On Tue, 26 Jan 2016 07:18:26 -0800 (PST), Sebastian Nowozin said: > for a non-programmatic way to do that (i.e. to record a single > session) you can use the "screen" utility for that. In our shell, > run screen, then press ctrl-a H, and then run Julia. The file is > created in the

[julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-27 Thread Josef Sachs
>>>>> On Tue, 26 Jan 2016 08:07:30 -0500, Josef Sachs said: > Is there a way to use Requests.jl with HTTP Basic Authentication > when the password contains a slash? > julia> using Requests > julia> get("https://user:pass/w...@google.com;)

[julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
>>>>> On Tue, 26 Jan 2016 05:30:57 -0800 (PST), <ele...@gmail.com> said: > On Tuesday, January 26, 2016 at 11:07:37 PM UTC+10, Josef Sachs > wrote: >> >> Is there a way to use Requests.jl with HTTP Basic Authentication >> when the password contains

Re: [julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
> On Tue, 26 Jan 2016 21:01:45 +0200, Joshua Ballanco said: > Have you tried URL encoding the slash? Something like: > “pass%2Fword”? In my original post, I said this (I guess I shouldn't have clipped it from my response): I tried RFC 3986 percent-encoding the password, which turns the

[julia-users] Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
Is there a way to use Requests.jl with HTTP Basic Authentication when the password contains a slash? julia> using Requests julia> get("https://user:pass/w...@google.com;) ERROR: Port must be numeric (decimal) in parse_authority at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:129 in

[julia-users] Capturing output of interactive julia

2016-01-23 Thread Josef Sachs
Are there any recommendations for capturing the output of an interactive julia session? I was hoping that the following would work. $ julia | tee temp.txt ERROR: MethodError: `convert` has no method matching convert(::Type{Base.TTY}, ::Base.PipeEndpoint) This may have arisen from a call to the

Re: [julia-users] Why does setting ENV["TZ"] in the REPL behave differently?

2015-11-02 Thread Josef Sachs
> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said: > Seems like libc must not check the TZ variable each time, possibly > due to performance considerations? Right. So is there a way that I can get the julia process to do a tzset() after I do ENV["TZ"] = whatever ?

Re: [julia-users] Why does setting ENV["TZ"] in the REPL behave differently?

2015-11-02 Thread Josef Sachs
>>>>> On Mon, 2 Nov 2015 09:16:16 -0500, Josef Sachs said: >>>>> On Mon, 2 Nov 2015 08:56:05 -0500, Stefan Karpinski said: >> Seems like libc must not check the TZ variable each time, possibly >> due to performance considerations? > Right. So is

[julia-users] Why does setting ENV["TZ"] in the REPL behave differently?

2015-11-01 Thread Josef Sachs
Works as expected with `julia -e`, but the environment variable does not seem to be respected when set in the REPL. Can someone explain the reason, and possibly provide a workaround? $ TZ=UTC julia -e 'println(now())' 2015-11-01T16:02:37 $ julia -e 'println(now())' 2015-11-01T11:02:42 $ julia -e

[julia-users] Multidimensional DataArray as column of DataFrame

2015-05-22 Thread Josef Sachs
DataFrames apparently do not allow columns to be multidimensional DataArrays. julia DataFrame(A = 1:5, B = DataArray(reshape(1:15,(5,3 ERROR: ArgumentError: setindex!(::DataFrame, ...) only broadcasts scalars, not arrays in setindex! at

[julia-users] Error running dump() on a JLD (HDF5) file containing a DataFrame

2015-05-18 Thread Josef Sachs
Am I doing something wrong? I get the same error in 0.3.8. I notice that there is a method with signature read(::HDF5.HDF5Dataset, ::Type{Array{HDF5.HDF5Compound,N}}) but not read(::HDF5.HDF5Dataset, ::Type{HDF5.HDF5Compound}) _ _ _ _(_)_ | A fresh approach to

[julia-users] Start julia with REPL, loading script, and passing arguments

2015-02-14 Thread Josef Sachs
I am trying to start julia (1) in interactive mode, i.e. with the REPL, (2) loading a script, and (3) passing command line arguments I can accomplish (1) and (2) with julia -i -L startup.jl but I can't manage to pass additional arguments without producing an error. juser@juliabox:~$ julia -i -L