[julia-users] Re: Gadfly: adding plots to an existing plot

2014-12-31 Thread AVF
So, if I created a plot in a block of code, and then want to add another array of data to it in another block of code, is that possible? (I.e., I find it inconvenient that I have only one chance to plot all the layers... or did I misunderstand how it works?)

[julia-users] [ANN x-post julia-stats] Mocha.jl v0.0.6 unsupervised pre-training with stacked auto-encoders

2014-12-31 Thread Chiyuan Zhang
Mocha.jl https://github.com/pluskid/Mocha.jl v0.0.6: Mocha is a deep learning framework for Julia. Check out our new tutorial on unsupervised pre-training with stacked denoising auto-encoders http://mochajl.readthedocs.org/en/latest/tutorial/mnist-sDA.html. v0.0.6 2014.12.31 -

[julia-users] Re: Macro scoping (or hygiene?) problems

2014-12-31 Thread Tomas Lycken
Actually, I do know `d` at compile time - I just hadn't grok-ed quoting and interpolation well enough to understand how to convey that in code. As it turns out, what I needed was to create a *symbol* for `d`, so that the interpolation would get back its *value*: `$(matching(:d))` does the

[julia-users] macro aliases? Can macro have the same assignment like temp = f::Function?

2014-12-31 Thread 良无
I know there are type aliases and function assignment. I find that a macro call is like Expr(:macrocall, symbol(@time),.) And we can embed a macro inside a macro, but it looks really uncomfortable to me. Thanks.

[julia-users] Re: Macro scoping (or hygiene?) problems

2014-12-31 Thread Valentin Churavy
Glad to be of help :) On Wednesday, 31 December 2014 10:15:14 UTC+1, Tomas Lycken wrote: Actually, I do know `d` at compile time - I just hadn't grok-ed quoting and interpolation well enough to understand how to convey that in code. As it turns out, what I needed was to create a *symbol*

[julia-users] Re: using Gtk.jl?

2014-12-31 Thread Andreas Lobinger
Why wait? On Tuesday, December 30, 2014 5:47:04 PM UTC+1, j verzani wrote: That's the plan, eventually. --J

Re: [julia-users] using Gtk.jl?

2014-12-31 Thread Andreas Lobinger
btw: also Winston.jl uses gtk.jl after enabling it in the Winston.ini On Tuesday, December 30, 2014 3:00:39 PM UTC+1, Tim Holy wrote: Do a `git checkout gtk` to check out the gtk branch. --Tim

[julia-users] checking a version number?

2014-12-31 Thread Andreas Lobinger
Hello colleagues, i remember reading something about the impossibility to create a consistent julia version number, but i cannot find it ... anymore Still: What is the recommended way to get a julia major/minor version number (i need to check v.0.4)? Just parse Base.VERSION? Wishing a happy

Re: [julia-users] Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-31 Thread Avik Sengupta
This has actually been a particularly nasty bug, it broke many packages on 0.3.x, from Gadfly to GLM to HDF5, starting sometime in mid October. Tim had a workaround in Color.jl that solved some of the issues, but there are still reports of more failures. Thanks to Tim and Jameson for tracking

[julia-users] Declaring variables in julia

2014-12-31 Thread sadhanapriya . vashisht2011
hi Please let me know how to declare float, double, long int, unsigned long and unsigned char to some variable in julia( Please mention syntax) Thanks

[julia-users] Re: Declaring variables in julia

2014-12-31 Thread Tomas Lycken
I recommend reading the manual http://docs.julialang.org/en/release-0.3/manual/variables/. // Tomas On Wednesday, December 31, 2014 1:57:25 PM UTC+1, sadhanapriya…@vit.ac.in wrote: hi Please let me know how to declare float, double, long int, unsigned long and unsigned char to some

Re: [julia-users] Re: checking a version number?

2014-12-31 Thread Tim Holy
Yes, dealing with version numbers is really sweet in julia. I believe Stefan deserves credit for this. Incidentally, if you parse C library version numbers into a VersionNumber type, you can use all the same machinery. --Tim On Wednesday, December 31, 2014 04:19:44 AM Andreas Lobinger wrote:

Re: [julia-users] Re: checking a version number?

2014-12-31 Thread lapeyre . math122a
Apparently it's important to get it right from the beginning: version numbers should be boring http://www.dagolden.com/index.php/369/version-numbers-should-be-boring/ On Wednesday, December 31, 2014 2:25:54 PM UTC+1, Tim Holy wrote: Yes, dealing with version numbers is really sweet

[julia-users] Re: Syntax Highlighting in Vim

2014-12-31 Thread 陶旭
Well, just as you said, the manual method does not work since there is no .vim file in my home directory? Could you share your successful installation experience? On Friday, January 31, 2014 1:25:37 PM UTC+8, Thomas Moore wrote: I got it working now :) This is probably quite obvious to most

[julia-users] Re: Declaring variables in julia

2014-12-31 Thread lapeyre . math122a
Yes, the short answer is that the Julia manual is full of talk about types. Whether to specify type information, and if so, how depends on what you are trying to do. So an example of what you are trying to write would be helpful. Exact type correspondences

[julia-users] Canned out of core linalg chunking algorithms?

2014-12-31 Thread Lampkld
Hello Julians, Are fallback out of core chunking algorithms for common Darrays/shared mmap array linalg functions planned? This would allow trivial reuse of generic code. Thanks

[julia-users] Re: Declaring variables in julia

2014-12-31 Thread 良无
http://docs.julialang.org/en/release-0.3/manual/integers-and-floating-point-numbers/ This might be really useful, and I find that Julia's manual is really easy to understand. 在 2014年12月31日星期三UTC+8下午8时57分25秒,sadhanapriya...@vit.ac.in写道: hi Please let me know how to declare float, double,

[julia-users] Re: checking a version number?

2014-12-31 Thread Jeff Waller
On Wednesday, December 31, 2014 7:03:34 AM UTC-5, Andreas Lobinger wrote: What is the recommended way to get a julia major/minor version number (i need to check v.0.4)? Just parse Base.VERSION? Within Julia: *julia * *VERSION**v0.4.0-dev+2340* *julia * *VERSION.minor**4* Also,

[julia-users] Re: Declaring variables in julia

2014-12-31 Thread Jeff Waller
On Wednesday, December 31, 2014 7:57:25 AM UTC-5, sadhanapriya...@vit.ac.in wrote: hi Please let me know how to declare float, double, long int, unsigned long and unsigned char to some variable in julia( Please mention syntax) I've found the following works for me As others have

[julia-users] Re: Gadfly: adding plots to an existing plot

2014-12-31 Thread Daniel Jones
It's not really supported. Adding a push! function to add layers to plots was proposed (https://github.com/dcjones/Gadfly.jl/issues/332), but I haven't done so yet. In fact, adding layers to a plot p will usually work with push!(p.layers, layer(...)), but that's kind of an unofficial

[julia-users] Re: LaTeX type font for axes ticks?

2014-12-31 Thread Markus Roth
Your suggestion works fine, thank you. Am Sonntag, 21. Dezember 2014 16:22:13 UTC+1 schrieb Christoph Ortner: This is not exactly what you want but it may be close enough: The line plt.rc(font, family=serif) changes the figure to a serif font, which looks very similar to latex.

[julia-users] Re: checking a version number?

2014-12-31 Thread Steven G. Johnson
On Wednesday, December 31, 2014 7:03:34 AM UTC-5, Andreas Lobinger wrote: What is the recommended way to get a julia major/minor version number (i need to check v.0.4)? Just parse Base.VERSION? You normally don't need to get the major/minor explicitly, because comparison operations are

[julia-users] Calculate 95% confidential intervals of p in binomial distribution

2014-12-31 Thread Jerry Xiong
I want to calculate the 95% confidential intervals of the parameter p of a binomial distribution, for a given x and n. I known that in MATLAT, it could be got in the 2nd output of binofit(x,n,0.95) Is there any way to do it in Julia, using Distributions.jl or any python package?

Re: [julia-users] ANN: ApproxFun v0.05 with support for piecewise and singular functions

2014-12-31 Thread Stefan Karpinski
Do we have a video somewhere of one of your talks about ApproxFun? This is a really impressive package. On Tue, Dec 30, 2014 at 10:54 PM, Sheehan Olver dlfivefi...@gmail.com wrote: ApproxFun is a package for approximating functions and solving differential equations. ApproxFun v0.05 adds

[julia-users] Re: Declaring variables in julia

2014-12-31 Thread Steven G. Johnson
On Wednesday, December 31, 2014 11:30:50 AM UTC-5, Jeff Waller wrote: As others have mentioned, that reference page looks good, but for the C equivalent, you need to be a little careful in 2 cases. float will always be Float32 and double will always be Float64, but long is not necessarily

[julia-users] Spawning (or running) an external program with given environment variables.

2014-12-31 Thread Sean Marshallsay
In Bash I can do something like this $ echo $RANDOM_VAR $ RANDOM_VAR='heya' env RANDOM_VAR='heya' OTHER_ENV_VAR=whatever_it_was_before ... $ echo $RANDOM_VAR $ In Julia, however, julia run(`env`) OTHER_ENV_VAR=whatever_it_was_before ... julia run(`RANDOM_VAR='heya' env`) ERROR: could not

[julia-users] clearing variable/const and location of a syntax error

2014-12-31 Thread Zahirul ALAM
how would one clear values of variable, or change the type: for instance if I declare a = 5 and after evaluation, if I fix the statement reevaluate const a = 5, I get error that a is already defined. How would I get a out of the memory without restarting the entire kernel? Second question is

Re: [julia-users] Spawning (or running) an external program with given environment variables.

2014-12-31 Thread Isaiah Norton
julia c = setenv(`env`, [FOO=bar]) setenv(`env`,Union(ASCIIString,UTF8String)[FOO=bar]) julia run(c) FOO=bar On Wed, Dec 31, 2014 at 2:16 PM, Sean Marshallsay srm.1...@gmail.com wrote: In Bash I can do something like this $ echo $RANDOM_VAR $ RANDOM_VAR='heya' env RANDOM_VAR='heya'

Re: [julia-users] clearing variable/const and location of a syntax error

2014-12-31 Thread Isaiah Norton
1) workspace() 2) maybe Lint.jl could help here? Not sure (haven't used it myself yet, although I probably should). There are various open issues about better error messages although I don't remember one about this specifically. It will probably be a bit more tractable as an up-for-grabs project

Re: [julia-users] Canned out of core linalg chunking algorithms?

2014-12-31 Thread Jiahao Chen
We would very much like to have out of core functionality, but we don't have any active project to work on it. If you could spare the time, this would be a very valuable feature to work toward having in Julia. On Wed Dec 31 2014 at 10:38:44 AM Lampkld lampk...@gmail.com wrote: Hello Julians,

[julia-users] Re: ANN: ApproxFun v0.05 with support for piecewise and singular functions

2014-12-31 Thread lapeyre . math122a
Pkg.add(ApproxFun) did not give me v0.0.5 for some reason $ git tag v0.0.1 v0.0.2 v0.0.3 v0.0.4 So your first examples failed. But, this is very impressive! --John On Wednesday, December 31, 2014 4:54:06 AM UTC+1, Sheehan Olver wrote: ApproxFun is a package for approximating functions and

Re: [julia-users] Re: ANN: ApproxFun v0.05 with support for piecewise and singular functions

2014-12-31 Thread Jiahao Chen
On Wed, Dec 31, 2014 at 2:53 PM, lapeyre.math1...@gmail.com wrote: Pkg.add(ApproxFun) did not give me v0.0.5 for some reason 0.0.5 was posted less than two days ago. Did you run Pkg.update() before doing Pkg.add?

Re: [julia-users] Re: ANN: ApproxFun v0.05 with support for piecewise and singular functions

2014-12-31 Thread lapeyre . math122a
Duh! Sorry for adding noise to the list. On Wednesday, December 31, 2014 9:06:22 PM UTC+1, Jiahao Chen wrote: On Wed, Dec 31, 2014 at 2:53 PM, lapeyre@gmail.com javascript: wrote: Pkg.add(ApproxFun) did not give me v0.0.5 for some reason 0.0.5 was posted less than two days ago. Did

Re: [julia-users] Spawning (or running) an external program with given environment variables.

2014-12-31 Thread Sean Marshallsay
Awesome, thank you! On Wednesday, 31 December 2014 19:27:26 UTC, Isaiah wrote: julia c = setenv(`env`, [FOO=bar]) setenv(`env`,Union(ASCIIString,UTF8String)[FOO=bar]) julia run(c) FOO=bar On Wed, Dec 31, 2014 at 2:16 PM, Sean Marshallsay srm@gmail.com javascript: wrote: In Bash I

Re: [julia-users] Spawning (or running) an external program with given environment variables.

2014-12-31 Thread Stefan Karpinski
Also: julia ENV[FOO] = BAR BAR julia run(`env` | `grep FOO`) FOO=BAR On Wed, Dec 31, 2014 at 3:35 PM, Sean Marshallsay srm.1...@gmail.com wrote: Awesome, thank you! On Wednesday, 31 December 2014 19:27:26 UTC, Isaiah wrote: julia c = setenv(`env`, [FOO=bar])

Re: [julia-users] Spawning (or running) an external program with given environment variables.

2014-12-31 Thread Sean Marshallsay
Thanks Stefan but I ideally wanted something that would leave ENV intact (which setenv does). On an unrelated note, how on earth do you find the time to answer all these questions so quickly? However you do it, thanks for being so dedicated. On Wednesday, 31 December 2014 20:55:51 UTC, Stefan

[julia-users] Re: Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-31 Thread Ismael VC
+1 to addering to the git flow, I had also allways expected for the master branch to be as stable and possible, while development happening in another branch, not the other way around and sometimes I've had to search for a past working commit in order to build julia, which strikes me as odd, as

[julia-users] Static type fields

2014-12-31 Thread Josh Langsfeld
I currently am trying to solve a problem where I have many composite types and I would like to associate some data with each type, such that every instance has access to it. Obviously, in C++ I would just create a static member variable. Is there a good way to go about this in Julia?

[julia-users] Re: Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-31 Thread elextr
On Thursday, January 1, 2015 9:55:11 AM UTC+10, Ismael VC wrote: +1 to addering to the git flow, I had also allways expected for the master branch to be as stable and possible, while development happening in another branch, not the other way around and sometimes I've had to search for a

Re: [julia-users] Re: Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-31 Thread Ismael VC
I didn't know that fact about the Linux kernel, or how usual it is, I've just red the git book and it explains it like this: http://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows On Wed, Dec 31, 2014 at 7:30 PM, ele...@gmail.com wrote: On Thursday, January 1, 2015 9:55:11 AM

Re: [julia-users] Static type fields

2014-12-31 Thread Jameson Nash
method dispatch on the object type does a remarkably good job at providing this functionality without needing a specialized feature: static_data(::Type{MyObj}) = 1 static_data(::Type{MyOtherObj}) = 2 On Wed Dec 31 2014 at 8:23:40 PM Josh Langsfeld jdla...@gmail.com wrote: I currently am trying

[julia-users] Re: Gadfly: adding plots to an existing plot

2014-12-31 Thread AVF
Sorry, doesn't seem to work: a = rand(10) b = rand(10) c = rand(10) d = rand(10) p = plot(x=a, y=b) push!(p.layers, layer(x=c, y=d)) `convert` has no method matching convert(::Type{Layer}, ::Array{Layer,1}) while loading In[185], in expression starting on line 9 in push! at array.jl:457

[julia-users] Re: Gadfly: adding plots to an existing plot

2014-12-31 Thread Daniel Jones
My mistake, it should work with append! instead of push!. For your second question, here's one option: a, b, c, d = [rand(10) for _ in 1:4] On Wednesday, December 31, 2014 5:58:15 PM UTC-8, AVF wrote: Sorry, doesn't seem to work: a = rand(10) b = rand(10) c = rand(10) d = rand(10) p

Re: [julia-users] clearing variable/const and location of a syntax error

2014-12-31 Thread Tony Fong
Lint.jl relies on julia's built-in parser which only generates line number, not column number, in the abstract syntax tree, so it won't help on the 2nd question, either. On Thursday, January 1, 2015 2:30:42 AM UTC+7, Isaiah wrote: 1) workspace() 2) maybe Lint.jl could help here? Not sure

[julia-users] Re: DataFrame vcat stack overflow

2014-12-31 Thread Sean Garborg
If you Pkg.update() and try again, you should be fine. DataFrames was overdue for a tagged release -- you'll get v0.6.0 which includes some updates to vcat. As a gut check, this works just fine: using DataFrames dfs = [DataFrame(Float64, 15, 15) for _=1:200_000] vcat(dfs) (If it doesn't for

[julia-users] Package NEWS

2014-12-31 Thread i . costigan
Is there a standard method for declaring a package's changes in a package NEWS file? Couldn't find anything in Julia docs. I think some packages use a NEWS.md file at the top level (e.g. DataFrames, Gadfly, Distributions), but others do not (e.g. Dates, Optim).

Re: [julia-users] Reviewing a Julia programming book for Packt

2014-12-31 Thread Jacob Quinn
FWIW, since I agreed to help review the book, I've yet to hear from Packt again. Perhaps they saw this thread and decided to postpone? :) -Jacob On Thu, Dec 11, 2014 at 2:20 PM, cdm cdmclean@gmail.com wrote: i will vote with my green paper and let the market decide ... here is some

[julia-users] Re: Package NEWS

2014-12-31 Thread Viral Shah
There really isn't. We use NEWS.md in julia, and presumably that could be come standard. I really wish we could have a mechanism, where Pkg.publish() prompts you for a NEWS update, appends it to NEWS.md, and then also submits it as part of the PR - so that when merging in METADATA.jl, one can

Re: [julia-users] Re: Julia website is ready for translation/internationalization on Transifex!

2014-12-31 Thread Ismael VC
I'm really glad you like it, thanks for your support! :D On Wed, Dec 31, 2014 at 10:17 PM, Viral Shah vi...@mayin.org wrote: Thanks. I see the discussion on the PR. This is really cool! -viral On Monday, December 29, 2014 12:22:16 AM UTC-8, Ismael VC wrote: Sorry I forgot to mention, the

[julia-users] Re: Package NEWS

2014-12-31 Thread i . costigan
Also, would be nice for Pkg.update() to return change logs for updated packages. This might be tricky given the usual markdown format, but shouldn't be impossible On Thursday, 1 January 2015 15:10:26 UTC+11, Viral Shah wrote: There really isn't. We use NEWS.md in julia, and presumably that

[julia-users] weird 2D fft error: returns NaN error

2014-12-31 Thread Zahirul ALAM
Happy new year!! I am encountering a very odd fft error. I am trying fft NxN data. The data is produced using a mathematical equation. After debugging I have found that the following expression is gives NaN error: fft(besselj(1, sqrt(X.^2+Y.^2))./sqrt(X.^2+Y.^2)) where X and Y are

Re: [julia-users] Canned out of core linalg chunking algorithms?

2014-12-31 Thread Lampkld
I would be more than happy to help, but that doesn't sound like a project within the domain of Julia and CS knowledge at the moment. If someone would set up a project framework, I could probably be better placed to contribute. On Wednesday, December 31, 2014 2:47:21 PM UTC-5, Jiahao Chen

[julia-users] Re: weird 2D fft error: returns NaN error

2014-12-31 Thread Zahirul ALAM
I found the reason because both arrays contains (0, 0). Is there way around it? On Thursday, 1 January 2015 00:50:56 UTC-5, Zahirul ALAM wrote: Happy new year!! I am encountering a very odd fft error. I am trying fft NxN data. The data is produced using a mathematical equation. After

[julia-users] Re: weird 2D fft error: returns NaN error

2014-12-31 Thread Zahirul ALAM
may be not On Thursday, 1 January 2015 01:05:02 UTC-5, Zahirul ALAM wrote: I found the reason because both arrays contains (0, 0). Is there way around it? On Thursday, 1 January 2015 00:50:56 UTC-5, Zahirul ALAM wrote: Happy new year!! I am encountering a very odd fft error. I am

[julia-users] Julia for Enterprise?

2014-12-31 Thread Eric Forgy
Hi everyone, Happy New Year! I briefly introduced myself and what I'm trying to do here https://groups.google.com/forum/#!searchin/julia-users/Forgy/julia-users/umHiBwVLQ4g/P6DoT7qGrB8J . I saw that Stefan gave a nice answer to the question Is Julia ready for production use?

Re: [julia-users] Re: Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-31 Thread elextr
On Thursday, January 1, 2015 11:44:53 AM UTC+10, Ismael VC wrote: I didn't know that fact about the Linux kernel, or how usual it is, I've just red the git book and it explains it like this: http://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows And just under that diagram it

[julia-users] Re: weird 2D fft error: returns NaN error

2014-12-31 Thread Zahirul ALAM
any help please On Thursday, 1 January 2015 01:07:33 UTC-5, Zahirul ALAM wrote: may be not On Thursday, 1 January 2015 01:05:02 UTC-5, Zahirul ALAM wrote: I found the reason because both arrays contains (0, 0). Is there way around it? On Thursday, 1 January 2015 00:50:56 UTC-5, Zahirul

Re: [julia-users] Dan Luu's critique of Julia: needs commented code, better testing, error handling, and bugs fixed.

2014-12-31 Thread Viral Shah
While the basic assert based tests are good enough for me, I do wish that the test framework could be more flexible. Some of this is historic - we started out not wanting a separate set of unit vs. comprehensive test suites. The goal with the unit tests was to have something that could be

[julia-users] Re: weird 2D fft error: returns NaN error

2014-12-31 Thread Zahirul ALAM
There is a NaN item at the very centre. How to deal with it? On Thursday, 1 January 2015 02:25:34 UTC-5, Zahirul ALAM wrote: any help please On Thursday, 1 January 2015 01:07:33 UTC-5, Zahirul ALAM wrote: may be not On Thursday, 1 January 2015 01:05:02 UTC-5, Zahirul ALAM wrote: I found

Re: [julia-users] Static type fields

2014-12-31 Thread elextr
On Thursday, January 1, 2015 11:45:00 AM UTC+10, Jameson wrote: method dispatch on the object type does a remarkably good job at providing this functionality without needing a specialized feature: static_data(::Type{MyObj}) = 1 static_data(::Type{MyOtherObj}) = 2 Would like to document