[julia-users] Julia not working - Xcode needs updating...

2016-10-30 Thread daycaster
So I got back from a week away from the computer, and Julia's suddenly not 
working on my Mac (it's mainly due to Cairo.jl, I think), and when I try to 
rebuild it it appears to be that my version of Xcode is out of date:

Error: Your Xcode (8.0) is outdated.
Please update to Xcode 8.1 (or delete it).
Xcode can be updated from the App Store.

Which is fine

But, Xcode 8.1 was released on Thursday 27th (related to this week's Apple 
Event I suppose). That's only a couple of days ago! I like the 
responsiveness (I think) and we're all used to living on the bleeding edge, 
but it's still surprising that this happened so quickly, and that there's 
no notice or anything anywhere, that I could see, that Julia installations 
would be broken immediately they released a new version of Xcode.

Was I the only one affected !?



[julia-users] Re: Benchmarking Julia

2016-09-27 Thread daycaster
@seth ah, that's obviously the cause. Thanks for the clue. 

Re: [julia-users] Cookbook for Julia

2016-09-24 Thread daycaster
They used to say that you could never have too much documentation (like some 
other things in life), but an important proviso is that it should be easy to 
find what you're really looking for. Searching for Julia programming 
information isn't always easy: the official documentation's search is not bad, 
but Google searches tend to  return too many people named Julia (including 
people named Julia Lang) unless you're lavish with the search terms.

Re: [julia-users] Re: ANN: A potential new Discourse-based Julia forum

2016-09-23 Thread daycaster
... @juliaheartbeat on twitter also started silent running on Sept 17...

[julia-users] Re: Fused broadcasting?

2016-09-15 Thread daycaster
Thanks Steven, "fused" did the trick.

[julia-users] Fused broadcasting?

2016-09-15 Thread daycaster
Hey folks. Where in the docs is the description of "fused broadcasting" and the 
"." operator. My searches are drawing a blank...

[julia-users] Re: Maps in Julia?

2016-09-08 Thread daycaster
@kaj I had no idea anyone was using that. I must be more careful with updates!

Re: [julia-users] Array printing in 0.5

2016-07-21 Thread daycaster
Yes, true, I just copied it so that I knew what character it was.

[julia-users] Array printing in 0.5

2016-07-21 Thread daycaster
(I'm just untangling some confusion on my end. Is the following correct?)

In 0.4, array dimensions were printed like this:

julia> zeros(2,3)
2x3 Array{Float64,2}:
 0.0  0.0  0.0
 0.0  0.0  0.0

In 0.5, the "x" is replaced with a "×":

julia> zeros(2,3)
2×3 Array{Float64,2}:
0.0  0.0  0.0
0.0  0.0  0.0

but apparently this character isn't a multiplication, but the cross-product 
operator:

julia> 2×3 # copy/paste from above 
ERROR: MethodError: no method matching cross(::Int64, ::Int64)
 in eval(::Module, ::Any) at ./boot.jl:234
 in macro expansion at ./REPL.jl:92 [inlined]
 in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46

But to get this character you type `\times`, although 'times' is (according to 
http://docs.julialang.org/en/release-0.4/manual/mathematical-operations/) the 
name for "*", but this is the symbol for the `cross()` function...

So wouldn't it be more logical to report the size of arrays using "by"?

 julia> zeros(2,3)
 2 by 3 Array{Float64,2}:
 0.0  0.0  0.0
 0.0  0.0  0.0



[julia-users] Plots with Plots

2016-06-25 Thread daycaster
Plots.jl looks amazing! 

A couple of questions: 
Is there any way to control the fonts used in a plot? I can't see any obvious 
way to specify fonts outside the usual range of "Helvetica"/"Courier".

Also, I can't get any results from searching the docs. Is search currently 
broken or are there ways to specify words that I don't know?

Re: [julia-users] printing specific RGB colors

2016-06-16 Thread daycaster
(I left a stray 'println()' in that function, it's not needed.)

Re: [julia-users] printing specific RGB colors

2016-06-16 Thread daycaster
Using iTerm2 on macOS here, and I don't think it's as predictable or reliable 
as one would like, but, for the record, here's a possible approach:

julia> using Colors

julia> function print_rgb(col, t)
   colr = lowercase(hex(parse(Colorant, col)))
   println(colr)
   print("\033]Pg$(colr)\033\\", t)
   end

julia> print_rgb("yellow", "hi there")

and this changes all foreground text to yellow. (The "g" after the "P" changes 
the foreground color.) These escape codes are proprietary to iTerm, though.

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

2016-06-16 Thread daycaster
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.