Re: [julia-users] create command with spaces without quoting

2016-11-03 Thread Andre Bieler
Excellent, thanks for both suggestions.

Re: [julia-users] Re: Hide and disable REPL

2016-11-03 Thread Isaiah Norton
Can you explain the setup further -- Where is the REPL running? How are you interacting with it? If I take "I want to temporarily switch the REPL off, i.e. it should visually disappear" literally then it seems like a strange thing to do, so I may be missing something If you *do* want to hide the t

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Ralph Smith
Unless I misunderstand, df1 = readtable(file1,eltypes=[String,String,String]) seems to be what you want. If you're new to Julia, the fact that a "vector of types" really means exactly that may be surprising. Let us hope that the new versions of DataFrames include a parser that doesn't treat

[julia-users] Re: Recursive data structures with Julia

2016-11-03 Thread hubert_tieying
Am Donnerstag, 27. Oktober 2016 16:03:27 UTC+2 schrieb Ángel de Vicente: Hi, > > I've been trying to implement some code to build Binary Search > Trees. The code below works, I'm able to build a tree and then print it > in ascending order, but it is quite ugly, with those Nullable types and

Re: [julia-users] what is "type piracy"?

2016-11-03 Thread Mike Innes
Another way to look at this is, redefining a module shouldn't result in method redefinition warnings. On Thursday, 3 November 2016 17:24:28 UTC, Spencer Russell wrote: > > As far as I know "type piracy" is not a widespread term in CS, but has > popped up in the Julia community. > > Basically it

[julia-users] Re: Hide and disable REPL

2016-11-03 Thread anthoff
Bump, it would be great if someone could point me to some approach for this. We are getting an integrated terminal ready in VS Code, and this is the one piece missing right now. Thanks, David On Thursday, June 23, 2016 at 5:00:22 PM UTC-7, David Anthoff wrote: > > Hi, > > > > is there a way t

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Jacob Quinn
LeAnthony, I'm wondering if you're on an old version of DataFrames? There haven't been any issues "show"-ing DataFrames with NullableArray columns for quite some time. You can check (and post back here) your current package versions by doing: Pkg.installed() You can also ensure you're on the lat

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Milan Bouchet-Valat
Le jeudi 03 novembre 2016 à 13:35 -0700, LeAnthony Mathews a écrit : > Thanks Michael, >   I been thinking about this all day.  Yes, basically I am going to > have to create a macro CSVreadtable that mimics the readtable > command, but in the expantion uses CSV.read.  The macro will manually > cons

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread LeAnthony Mathews
Thanks Michael, I been thinking about this all day. Yes, basically I am going to have to create a macro *CSVreadtable* that mimics the *readtable* command, but in the expantion uses *CSV.read*. The macro will manually constructs a similar readtable sized dataframe array, but use the column t

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Michael Krabbe Borregaard
DataFrames is currently undergoing a very major change. Looks like CSV creates the new type of DataFrames. I hope someone can help you with using that. As a workaround, on the normal DataFrames version, I have generally just replaced with a string representation: ``` df[:account_numbers] = ["$accou

Re: [julia-users] create command with spaces without quoting

2016-11-03 Thread Stefan Karpinski
Interpolating commands into commands is a useful pattern as well: cmd = `convert` if haskey(opts, :density) cmd = `$cmd -density $(opts[:density])` end if haskey(opts, :depth) cmd = `$cmd -depth $(opts[:depth])` end run(cmd) On Thu, Nov 3, 2016 at 12:21 PM, Yichao Yu wrote: > On Thu,

Re: [julia-users] what is "type piracy"?

2016-11-03 Thread Spencer Russell
As far as I know "type piracy" is not a widespread term in CS, but has popped up in the Julia community. Basically it refers to violations of the Julia guideline that a package shouldn't define methods of functions it doesn't own on types it doesn't own. For example, if package A exports a functi

Re: [julia-users] create command with spaces without quoting

2016-11-03 Thread Yichao Yu
On Thu, Nov 3, 2016 at 12:17 PM, Andre Bieler wrote: > I want to generate a command for imagemagick and use options loaded from a > file. > So the number of utilized options is not known beforehand. > > An example might look like: > > convert -density 300 somefile.pdf -depth 10 somefile.jpeg > > I

[julia-users] create command with spaces without quoting

2016-11-03 Thread Andre Bieler
I want to generate a command for imagemagick and use options loaded from a file. So the number of utilized options is not known beforehand. An example might look like: convert -density 300 somefile.pdf -depth 10 somefile.jpeg It is easy to generate the string above, but when interpolating it in

[julia-users] Re: ANN: Highlights.jl

2016-11-03 Thread 'Bill Hart' via julia-users
Wow, that's really awesome. Thanks for writing this!

[julia-users] what is "type piracy"?

2016-11-03 Thread Tamas Papp
What does the term "type piracy" mean? The term shows up in julia-related discussions, mostly on Github. Googling for it leads back these discussions, and a lot of unrelated stuff about copyright and/or typefaces. (Apologies if the term is well-known, I am an economist, not a computer scientist).

[julia-users] Re: PSA: Documenter.jl deprecations

2016-11-03 Thread Chris Rackauckas
Once again, thank you very much for this change! It's highly appreciated by those of us who are unfamiliar with gem, Ruby, travis, and the whole install feature. As you know, I gave this new access token setup a go and had it working in minutes with no extra software to install. Just generate s

[julia-users] Re: ANN: Highlights.jl

2016-11-03 Thread Simon Danisch
That's a great library, very pleasant to use! Thanks! Am Mittwoch, 2. November 2016 21:14:06 UTC+1 schrieb Michael Hatherly: > > I’m pleased to announce the initial 0.1 release of Highlights.jl > — a Julia package for > highlighting source code simila

[julia-users] Re: ANN: Highlights.jl

2016-11-03 Thread Chris Rackauckas
Nice work! On Wednesday, November 2, 2016 at 1:14:06 PM UTC-7, Michael Hatherly wrote: > > I’m pleased to announce the initial 0.1 release of Highlights.jl > — a Julia package for > highlighting source code similar to the well-known Python package cal

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread LeAnthony Mathews
Sure, so I need col #1 in my CSV to be a string in my data frame. So as a test I tried to load the file 3 different ways: *df1_CSV = CSV.read("$df1_path"; types=Dict(1=>String)) #forcing the column to stay a string* *df1_readtable = readtable("$df1_path") #Do not know how to force the col

Re: [julia-users] ANN: Highlights.jl

2016-11-03 Thread Tim Holy
Very nice! --Tim On Wed, Nov 2, 2016 at 3:14 PM, Michael Hatherly wrote: > I’m pleased to announce the initial 0.1 release of Highlights.jl > — a Julia package for > highlighting source code similar to the well-known Python package called > Pygments

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Michael Borregaard
The result of CSV should be a DataFrame by default. What return type do you get?

Re: [julia-users] How do I use Guide.yticks() with a log scale?

2016-11-03 Thread Tom Breloff
Well, only if you'd like to switch your workflow to Plots... (Though the OP should consider it, this question was asking about Gadfly) To answer... Gadfly expects the exponent when setting the ticks manually, not the actual value. On Wednesday, November 2, 2016, Jeffrey Sarnoff wrote: > Try pos

Re: [julia-users] Re: how to report errors with context

2016-11-03 Thread Tamas Papp
Unfortunately, the data is too large to fit in memory -- I must process it in a stream. I will look at some libraries, hoping to find an idiomatic solution. I am sure that I am not the first one encountering this pattern. On Thu, Nov 03 2016, Jeffrey Sarnoff wrote: > or split the string into row

Re: [julia-users] Re: Nemo AcbField error

2016-11-03 Thread 'Bill Hart' via julia-users
Sure. It's just taking all the changes that have been made and stashing them to one side. This means the Git repository is then "clean" and can be updated. Git stash apply takes the changes that had been stashed and reapplies them to the updated repository. Bill. On 2 November 2016 at 22:01, digx

Re: [julia-users] Re: how to report errors with context

2016-11-03 Thread Jeffrey Sarnoff
or split the string into rows of strings and rows into individual value-keeper strings and put that into a matrix of strings and process the matrix, tracking row and col and checking for "error" On Thursday, November 3, 2016 at 5:15:06 AM UTC-4, Jeffrey Sarnoff wrote: > > Or, redefine the questi

Re: [julia-users] Re: how to report errors with context

2016-11-03 Thread Jeffrey Sarnoff
Or, redefine the question :> If you are not tied to string processing, reading the test_file as a string (if it is) and then splitting the string ```julia rowstrings = map(String, split(test_file, '\n')) # need the map to avoid SubString results, if it matters # then split the rows on ';'

Re: [julia-users] Re: how to report errors with context

2016-11-03 Thread Tamas Papp
Jeffrey, Thanks, but my question was about how to have line and column in the error message. So I would like to have an error message like this: ERROR: Failed to parse "error" as type Int64 in column 2, line 3. My best idea so far: catch the error at each level, and add i and line number. But th