Le jeudi 06 février 2014 à 14:01 -0800, Ismael VC a écrit :
> Thank's Patrick! Very well explained.
Yeah, why not put this in the FAQ?
Thanks for the replies and updates on ongoing activities.
I just created a new julia-geo mailing list.
https://groups.google.com/forum/?fromgroups=#!forum/julia-geo
Fabian
On Thursday, February 6, 2014 10:21:46 AM UTC+1, Fabian Gans wrote:
>
> Hello everyone,
>
> this seems to be the time whe
Thanks for the suggestion Ismael. Yeah, I originally came from the RStudio
world, so I was mirroring ctrl+enter from that world and personally have
never used ctrl+enter in sublime (really, the most useful command?!).
But yeah, I've though several times we should probably try to match the
notebook
to comply with the IEEE 754 standard
http://en.wikipedia.org/wiki/IEEE_754-1985
On Thursday, February 6, 2014 9:47:07 PM UTC, Ismael VC wrote:
>
> julia> type Patient
>age::Int
>height::Float
>end
> ERROR: Float not defined
>
> julia> type Patient
>age:
true; they should, but I guess to comply with the IEEE 754 standard
http://en.wikipedia.org/wiki/IEEE_754-1985
so you can go for 64 or 32, they could have build in Float to
detect the cpu arch type but there is a reason for not
doing so.
Hi Everyone:
I'm trying to use isinterative() in .juliarc.jl to detect if I'm running julia
in repl. In particular I have the following conditional in ~/.juliarc.jl
if isinteractive()
include("/Users/ethananderes/.julia/v0.3/REPL/scripts/repl.jl")
end
The goal being that I want julia to
Ok, I just pushed changes for this. The behavior, as now noted in the
README is:
Using Sublime-IJulia
>
> * Commands can be entered directly in the IJulia console view, pressing
>> `shift+enter` to execute.
>
> * A newline can be entered without executing the command by typing `Enter`
>>
On Thursday, February 6, 2014 11:09:21 PM UTC-5, Eric Libby wrote:
>
> It was working with before. How can I do a completely clean install on a
> Mac and remove Canopy/Anaconda so as to make sure Julia and PyPlot play
> well?
>
Canopy and Anaconda make some modifications to your environment va
On Thursday, February 6, 2014 10:10:50 PM UTC-5, Jacob Quinn wrote:
>
> Hey Isaiah,
>
> No inline plotting yet, though I'm ready to start exploring what we can do
> here; possibly open up the plot in the default browser, sublime also
> recently got support for image viewing, so if we can get an i
On Friday, February 7, 2014 3:18:10 AM UTC-5, Milan Bouchet-Valat wrote:
>
> Le jeudi 06 février 2014 à 14:01 -0800, Ismael VC a écrit :
> > Thank's Patrick! Very well explained.
> Yeah, why not put this in the FAQ?
>
Well, there is the fact that (a) this has nothing to do with Julia per se
an
That's great Jacob!
Ok maybe "The more usefull command" is debatable, but at least for me it is
the most used shortcut, I so much hate to do END and then ENTER to go to a
new line if the cursor is inside brackets/braces/parens, and not at the end
of the line to just do ENTER.
Since I haven't c
On Friday, February 7, 2014 7:26:24 AM UTC-5, Felix wrote:
> true; they should, but I guess to comply with the IEEE 754 standard
> http://en.wikipedia.org/wiki/IEEE_754-1985
> so you can go for 64 or 32, they could have build in Float to
> detect the cpu arch type but there is a reason for not
Le vendredi 07 février 2014 à 07:09 -0800, Steven G. Johnson a écrit :
> On Friday, February 7, 2014 3:18:10 AM UTC-5, Milan Bouchet-Valat
> wrote:
> Le jeudi 06 février 2014 à 14:01 -0800, Ismael VC a écrit :
> > Thank's Patrick! Very well explained.
> Yeah, why not put t
I'd really love to see more examples in the manual, like Processing does:
http://processing.org/reference/booleanconvert_.html
For example Symbols! I've never encountered before, I'm not sure what they
are and how to use them, or if Symbols are the same in every language that
uses them?
I want
>
> So I typed: "ln -s /Applications/anaconda/python.app/Contents/MacOS/julia
> /Applications/Julia-0.2.0.app/Contents/MacOS/Julia "
> and got as a return:
>
> "ln: /Applications/Julia-0.2.0.app/Contents/MacOS/Julia: File exists"
>
You need to move or remove ` /Applications/anaconda/python.
app/Co
Thanks! The only issue I had with plots in IJulia was that I could not find
a way to actually export or save them. Each time I kept getting blank
documents. I want to be able to export them as publication quality
(dpi=300). How do I do that from IJulia? Thanks,
Eric
On Friday, February 7, 2014
Ismeal VC
check the julia docs at http://docs.julialang.org/en/latest/
for the rest keep asking in this group someone will surely
help you out.
like look at a symbol as a safe string
when you do something like
sym = :hello
you will always know sym is hello
you can also use it as an expression l
Same problem when starting julia with -p 4 parameter for example.
The problem only appears in the 64bit version.
32bit version is OK on Windows 8.1.
Thanks for help.
On Friday, February 7, 2014 10:53:48 AM UTC-5, Ismael VC wrote:
>
> I'd really love to see more examples in the manual, like Processing does:
>
> http://processing.org/reference/booleanconvert_.html
>
> For example Symbols! I've never encountered before, I'm not sure what they
> are and how to u
Just starting taking a look at Julia. I have seen examples on how to send
a plot to a file. But I have not stumbled upon one example as yet to
export multiple plots to the same file, say pdf.
Can someone please point me in the right direction?
# R example of what I would like to do.
x = 1:3
And here's another viewpoint, from Ruby (which also has :symbol syntax)
http://www.randomhacks.net/articles/2007/01/20/13-ways-of-looking-at-a-ruby-symbol
>
> Thank's everyone, I like Julia's community a lot! :)
>
Thans, I did as you suggested and got the nebulous "ln:
/Applications/Julia-0.2.0.app/Contents/MacOS/Julia: File exists". The issue
is that iJulia seems to work with PyPlot with a few warning messages but I
cannot export or save the figures/graphs that are produced inline. If I run
outside of i
On Friday, February 7, 2014 11:01:16 AM UTC-5, Eric Libby wrote:
>
> Thanks! The only issue I had with plots in IJulia was that I could not
> find a way to actually export or save them. Each time I kept getting blank
> documents. I want to be able to export them as publication quality
> (dpi=3
Steven,
Thanks for the reply, I'd definitely like to get something working for
plots. I just did a quick test, but I wasn't able to see an image/png tag
in display_data when I ran the following:
using Gadfly
plot(x=[1:10], y=[1:10], Geom.point)
Do I need to explicitly push the image/png mime typ
Yes, the manual is a bit sparing with examples. We definitely are getting
to the point where something more expansive with more examples is needed.
On Fri, Feb 7, 2014 at 10:53 AM, Ismael VC wrote:
> I'd really love to see more examples in the manual, like Processing does:
>
> http://processing
There's not a way to put them on separate pdf pages, but you can stack them
and output them to the same pdf like:
using Gadfly
x = [1,2,3]
plot1 = plot(x = x, y = x + 3)
plot2 = plot(x = x, y = 2 * x + 1)
draw(PDF("plotJ.pdf", 6inch, 6inch), vstack(plot1, plot2))
On Friday, February 7, 2014 8:3
FYI, this claim about the safety of symbols is actually not true. You can
reassign the bindings of sym just as easily as you can reassign the bindings of
a variable bound to a.
-- John
On Feb 7, 2014, at 8:00 AM, Felix wrote:
> Ismeal VC
> check the julia docs at http://docs.julialang.org/en
This is obviously a useful thing that one might want to do, so it should
work, and you did exactly the right thing – complain! The squeaky wheel
gets oiled:
https://github.com/JuliaLang/julia/commit/dc5350b09f8c59c292d480a71979fb16c0ddce25
Filing an issue would also be a good way to report this.
julia> a = :test
:test
julia> typeof(a)
Symbol
julia> b = :test test
ERROR: syntax: extra token "test" after end of expression
julia> b = :"test test" # Ruby style?
"test test"
julia> typeof(b) # Not a Symbol?
ASCIIString (constructor with 1 method)
julia> b = symbol(b) # How to write it witho
Ouch!
In my opinion, this may be a major stumbling block for Julia adoption.
I, and I am sure many, find it typical routine to load data, crunch, make a
variety of graphical views (sometimes very many), export them to files in
an organized way for analysis and sharing a story line.
With many such
Isn't the behavior Daniel described how ggplot2 works? Certainly it's how
ggsave works.
-- John
On Feb 7, 2014, at 9:41 AM, G. Patrick Mauroy wrote:
> Ouch!
> In my opinion, this may be a major stumbling block for Julia adoption.
> I, and I am sure many, find it typical routine to load data,
Awesome. Thanks Stefan.
Next time I'll take your advice and file an issue. I tend to be hesitant about
these things as I'm such a newbie at github and the like. Thanks for the
encouragement.
You can do this in Winston:
file([plot1,plot2], "plots.pdf")
-Mike
On Fri, Feb 7, 2014 at 12:41 PM, G. Patrick Mauroy wrote:
> Ouch!
> In my opinion, this may be a major stumbling block for Julia adoption.
> I, and I am sure many, find it typical routine to load data, crunch, make a
> varie
julia> symbol("test test")
:test test
On 07 Feb 2014, at 18:25, Ismael VC wrote:
> julia> a = :test
> :test
>
> julia> typeof(a)
> Symbol
>
> julia> b = :test test
> ERROR: syntax: extra token "test" after end of expression
>
> julia> b = :"test test" # Ruby style?
> "test test"
>
> julia> t
Oops, sorry, I was selectively blind.
Joosep
On 07 Feb 2014, at 19:09, Eric Davies wrote:
> Ismael mentioned that in his original post. He is looking for a way to do
> that but with a literal syntax (no intermediate string+functioncall).
>
> On Friday, 7 February 2014 12:06:56 UTC-6, Joosep P
On Friday, February 7, 2014 12:41:21 PM UTC-5, G. Patrick Mauroy wrote:
> In my opinion, this may be a major stumbling block for Julia adoption.
> I, and I am sure many, find it typical routine to load data, crunch, make
> a variety of graphical views (sometimes very many), export them to files
Thank you for such a detailed reply. I used savefig and it worked fine but
when I try to specify the dpi as savefig("myplot2.eps",dpi=300) I get the
error:
"PyError (PyObject_Call)
AssertionError()
File
"/Applications/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 2
How about something like:
macro S_str(e)
:(symbol($e))
end
julia> S"test test"
:test test
On Fri, Feb 7, 2014 at 1:11 PM, Joosep Pata wrote:
> Oops, sorry, I was selectively blind.
>
> Joosep
>
> On 07 Feb 2014, at 19:09, Eric Davies wrote:
>
> > Ismael mentioned that in his origina
Ismael mentioned that in his original post. He is looking for a way to do
that but with a literal syntax (no intermediate string+functioncall).
On Friday, 7 February 2014 12:06:56 UTC-6, Joosep Pata wrote:
>
> julia> symbol("test test")
> :test test
>
> On 07 Feb 2014, at 18:25, Ismael VC >
>
It looks like Gadfly does not currently support writemime to any image
backend:
https://github.com/dcjones/Gadfly.jl/blob/5554d3a1bcdc5fc6852cc8f1e469dd3a0f65f220/src/Gadfly.jl#L726-L744
But image/png writemime output be easy to add (maybe file an issue?) since
Gadfly already supports expo
On Friday, February 7, 2014 1:27:34 PM UTC-5, Eric Libby wrote:
>
> Thank you for such a detailed reply. I used savefig and it worked fine but
> when I try to specify the dpi as savefig("myplot2.eps",dpi=300) I get the
> error:
>
>
I'm not sure why matplotlib gives that inscrutable error...it w
Shameless plug: SublimeIPythonNotebook works right away with Julia-backed
IPython notebooks (and it is much simpler to instull - you don't need to
use ZMQ because you are interacting with it through websockets). Right now
it can connect to IJulia notebooks, edit and execute them. Syntax
highlig
What would be the difference between writing S_str as a macro and as a
function, and using different syntax to call them and get the same result?
In Tracy's version which sintax to use, and how come only the 'S' is needed
to call the macro, and not "S_str", but it is needed when using "@":
jul
Julia provides special syntax for non-standard string literals:
http://docs.julialang.org/en/release-0.2/manual/metaprogramming/?highlight=macro#non-standard-string-literals
On Fri, Feb 7, 2014 at 2:44 PM, Ismael VC wrote:
> What would be the difference between writing S_str as a macro and a
That's very cool, thanks!
By the way talking about special syntax;
Can I make one of my own functions, to use it as an infix notation
operator, like +, -, * etc.
Why the concat operator is * instead of "+", is this standard in Matlab?
And why can't we use "?" in identifiers? but we can use "!"
On Friday, February 7, 2014 2:09:19 PM UTC-6, Ismael VC wrote:
>
> Can I make one of my own functions, to use it as an infix notation
> operator, like +, -, * etc.
>
At the moment (and for the forseeable future, as there is considerable
disagreement) you can only provide methods for the existing
It seems to work on python without such an error. Though if I just type
savefig("eric.eps") again I get the error:
PyError (PyObject_Call) ...
>
>
I just tried it on a fresh MacOS 10.9 machine with Anaconda, and it works
fine for me.
Perhaps things are a bit messed up because you installed both Canopy and
Anaconda? Look in your ~/.profile and make sure any Canopy-related things
are commented out, and then open a new Terminal window (to
I'm writing a librtlsdr wrapper for recording off of a
software-defined-radio USB dongle right now, and I want to have a
background thread (or analogue) for recording data from the dongle. What's
the best way to do that in Julia?
Right now, I'm considering just creating a small C program to do th
Maybe use zeromq rather than UDP? Or if it is running locally, why not
just write to a file descriptor that Julia can read from?
Why do you need to do the reading in C, as opposed to just using another
Julia process?
On Friday, February 7, 2014 5:01:41 PM UTC-5, Elliot Saba wrote:
>
> I'm writ
Does your read need to actively grab data all the time, or can you set a
callback that will notify you when a chunk is ready? If the latter is true,
then a wait/notify pair might be all you'd need (suitably wrapped in a
@sync/@async block). For the former, then two Julia processes might be the
Julia newby and find this behavior a bit confusing:
d = Dict{Integer, Integer}()
d[3] = 1
d[convert(Int32, 3)] = 5
d
---output
[3=>1,3=>5]
--
similarly if i do:
d = Dict{Int32, Int32}()
d[convert(Int32, 3)] = 5
get(d, 3, 0)
---output
0
i feel like there should be an err
It seems dictionaries uses identity instead of equality, to determine the
uniqueness of the key:
ismaelvc@toybox ~> julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_)| Documentation: http://docs.julialang.org
_ _ _| |_ __ _ |
I made a typo! In this example it should be === instead of == in the
comment:
julia> is(x, y) # Same as: x === y
false
get() doesn't raise error, since it's safe to use with a default value, but
this gives an error instead as you would expect:
julia> d[3]
ERROR: key not found: 3
in getindex a
Notice how since numbers are immutable, Julia uses the bit level
representation to test identity, but for mutable types it uses memory
adresses.
And for strings, but string are immutable in Julia right? Because otherwise
the help from "help(is)" is confusing me.
Compares mutable objects by add
So now I wonder, are strings treated specially here?
In the last example, the string keys are using equality, to match x and y
to the key with value "test", whether it is an ASCIIString or UTF8String
doesn't matter.
But for numbers the keys are looked up by identity (bits).
I would have expect
57 matches
Mail list logo