Re: [julia-users] Re: Webapp Deployment

2016-11-01 Thread Shashi Gowda
Hi Reuben, what's in hello.jl ? There isn't a examples/hello.jl in Escher is there? A file you are trying to serve should end with a function definition such as: function main(window) # must take an argumentend And this function should return the UI object you want to render. On Tue, Nov 1,

Re: [julia-users] METADATA madness (my fault)

2016-09-06 Thread Shashi Gowda
On Tue, Sep 6, 2016 at 12:50 PM, Shashi Gowda <shashigowd...@gmail.com> wrote: > It looks like some changes left behind by a half-done PkgDev.tag are > causing this problem. These steps should get things back to normal, and > publish the new tag. > > 1. rm METADATA/Arb

Re: [julia-users] METADATA madness (my fault)

2016-09-06 Thread Shashi Gowda
It looks like some changes left behind by a half-done Pkg.tag are causing this problem. These steps should get things back to normal, and publish the new tag. 1. rm METADATA/ArbFloats -rf 2. git checkout METADATA/ArbFloats # if this directory did exist before you tried to tag 3. I also suggest

Re: [julia-users] Adding tuples

2016-08-10 Thread Shashi Gowda
Base.:+{N}(a::NTuple{N}, b::NTuple{N}) = ntuple(i -> a[i] + b[i], Val{N}) should be slightly faster and should not allocate unlike Base.:+{N}(a::NTuple{N}, b::NTuple{N}) = ntuple(i -> a[i] + b[i], N) On Wed, Aug 10, 2016 at 8:36 PM, 'Bill Hart' via julia-users < julia-users@googlegroups.com>

Re: [julia-users] Re: Compose.jl animation

2016-06-17 Thread Shashi Gowda
using ComposeDiff should help... The memory leak happens on the browser when you redraw the compose graphic... On Fri, Jun 17, 2016 at 6:05 PM, Ford O. wrote: > So I have found the source of memory leak: > > using Interact, Reactive, Compose > > @manipulate for frame =

Re: [julia-users] Re: Compose.jl animation

2016-06-12 Thread Shashi Gowda
Yes, this is because the canvas is not square Run Compose.set_default_graphic_size(5inch, 5inch) Before drawing the picture... On 11-Jun-2016 8:08 PM, "Michael Borregaard" wrote: > > It is not a full answer, but you should check ctxpromise() for the size. I think the

Re: [julia-users] Re: Compose.jl animation

2016-06-09 Thread Shashi Gowda
You can create animations with Interact.jl and Compose.jl using IJulia (not any REPL). For more info on how to do this, see Interact.jl example notebook on animation . If you want to create gifs or videos of

Re: [julia-users] Reactive.jl - Resetting an accumulator

2016-05-04 Thread Shashi Gowda
This is a commonly recurring pattern. Here is a walk through of a nice solution to this: *Step 1. Create the types to give richer meaning to updates* abstract Action# optional immutable Update <: Action val end immutable Reset <: Action end # ... many more such action types can be

Re: [julia-users] Re: Compose.jl drawing in IJulia

2016-05-03 Thread Shashi Gowda
u - can I also specify the dimensions of the image on a case by > case basis? > > Christoph > > > On Tuesday, 3 May 2016 15:43:41 UTC+1, Shashi Gowda wrote: >> >> The diameter of a circle without a specified radius is taken to be the >> width of the context i

Re: [julia-users] Re: Compose.jl drawing in IJulia

2016-05-03 Thread Shashi Gowda
The diameter of a circle without a specified radius is taken to be the width of the context iirc. The default width of the drawing surface is greater than its height, resulting in the clipping of some part of the circle. Making the drawing surface a square will show it properly. You can do this

Re: [julia-users] Reactive.jl toy example problem

2016-05-02 Thread Shashi Gowda
This is definitely a bug... I'll look into fixing it. Thanks!

Re: [julia-users] Converting hex ints

2016-04-27 Thread Shashi Gowda
Oh yes, I was just going to say that's a better way. On Wed, Apr 27, 2016 at 11:12 PM, Stefan Karpinski wrote: > read(io, UInt32). Depending on the endianness of the data stream, you may > or may not need to call ntoh on that. > > On Wed, Apr 27, 2016 at 1:35 PM, Achu

Re: [julia-users] Converting hex ints

2016-04-27 Thread Shashi Gowda
You can use reinterpret. It's fast! julia> a = [UInt8(i) for i=1:4] 4-element Array{UInt8,1}: 0x01 0x02 0x03 0x04 julia> reinterpret(UInt32, a) 1-element Array{UInt32,1}: 0x04030201 On Wed, Apr 27, 2016 at 11:05 PM, Achu wrote: > Hi > > I'm trying to read a data stream

Re: [julia-users] Re: GSoC 2016 - Simple persistent distributed storage Project

2016-03-21 Thread Shashi Gowda
blocks. Thanks On Sat, Mar 19, 2016 at 10:03 PM, Mike Innes <mike.j.in...@gmail.com> wrote: > For something ComputeFramework related, it's likely that Shashi Gowda > would be interested in mentoring. You could try opening issues for queries > as well. We're flexible about mentor

Re: [julia-users] Passing functions between processes.

2016-03-01 Thread Shashi Gowda
remotecall_fetch(() -> println("Hello world"), 2) or helloworld = () -> println("...") gets sent properly. In general a named generic function gets serialized by means of its name and not body, and that's why you get an undefined value error. (also you can't just close a named function in a

[julia-users] Google Summer of Code 2016 - Ideas Page

2016-02-10 Thread Shashi Gowda
Hi all, I have merged the previous ideas pages (2015, 2014) into a canonical one https://julialang.org/soc/ideas-page (and set up the appropriate redirects) Please add your Summer of Code ideas and edit previous ones here

Re: [julia-users] Escher global and local context

2016-02-01 Thread Shashi Gowda
ngs ... > > Thanks > > Leonardo > > > Il 31/01/2016 19:11, Shashi Gowda ha scritto: > > Hi Leonardo > > > > If you have a single Escher process serving multiple requests and you > > want to share some state between them, my recommendation would be to put &

Re: [julia-users] Escher example problem

2016-01-31 Thread Shashi Gowda
I believe this to be fixed now? On Mon, Jan 11, 2016 at 1:09 PM, Leonardo wrote: > Hi, I've a problem running Escher's example plotting.jl caused by Gadfly: > > WARNING: using Gadfly.render in module Main conflicts with an existing > identifier. > WARNING: Method definition

Re: [julia-users] Escher global and local context

2016-01-31 Thread Shashi Gowda
Hi Leonardo If you have a single Escher process serving multiple requests and you want to share some state between them, my recommendation would be to put the shared data in signal, which can optionally be persisted to disk/DB something like if !isdefined(:my_global_var) # this condition makes

Re: [julia-users] Escher global and local context

2016-01-31 Thread Shashi Gowda
On Sun, Jan 31, 2016 at 11:41 PM, Shashi Gowda <shashigowd...@gmail.com> wrote: > Hi Leonardo > > put the shared data in signal, which can optionally be persisted to disk/DB > I meant to say "put the shared data in a global signal"

Re: [julia-users] Asynchronous Escher

2016-01-17 Thread Shashi Gowda
The monte carlo example does something like this: https://github.com/shashi/Escher.jl/blob/master/examples/mc.jl See specifically these lines https://github.com/shashi/Escher.jl/blob/master/examples/mc.jl#L24-L40 may give you a template for your own code. On Sun, Jan 17, 2016 at 9:20 PM,

Re: [julia-users] Memory leak for animated plots

2015-11-20 Thread Shashi Gowda
ves." - but it seems something bad is still going on. I'll look into this. On Fri, Nov 20, 2015 at 11:18 PM, Shashi Gowda <shashigowd...@gmail.com> wrote: > If you install Patchwork.jl <http://github.com/shashi/Patchwork.jl>, and > re-run your notebook, it should fi

Re: [julia-users] Memory leak for animated plots

2015-11-20 Thread Shashi Gowda
If you install Patchwork.jl , and re-run your notebook, it should fix this issue. (you might also need to pre-compile Compose again - can be done by removing the .ji file in ~/.julia/lib/v0.4/) Compose (which Gadfly uses for rendering to SVG) doesn't depend

[julia-users] Re: Escher Spinner

2015-11-08 Thread Shashi Gowda
On Saturday, November 7, 2015 at 4:21:09 AM UTC+5:30, Brandon Miller wrote: > > Code snippet: https://gist.github.com/r2dbg/14189258e9daee2cece6 > > I'd like for the spinner on line 23 to spin while do_work() is running and > stop after do_work returns. However, I can't seem to find a good way

Re: [julia-users] Escher show pdf file

2015-11-03 Thread Shashi Gowda
I assume you mean to embed a PDF viewer in your Escher page... This would require wrapping something like pdf.js and shouldn't be hard to do. I'll open a github issue for this feature. On Mon, Nov 2, 2015 at 2:37 PM, Yakir Gagnon <12.ya...@gmail.com> wrote: >

Re: [julia-users] Re: [Escher] lower and upper bound sliders automatically adjust not to intersect

2015-11-03 Thread Shashi Gowda
Hi Yakir, you're right l will only update in response to user action. how about using l′ = lift(min, u, l) instead of l? On Wed, Nov 4, 2015 at 8:53 AM, Yakir Gagnon <12.ya...@gmail.com> wrote: > OK, there is a problem with this: > the new slider that gets created every time we update u

Re: [julia-users] Escher image update

2015-10-14 Thread Shashi Gowda
This is browser caching at work one way to resolve this is to just imread the image instead of loading it using image() which just creates the equivalent of an HTML tag... e.g. using Images run(`convert a.jpg assets/a.jpg`) imread("assets/a.jpg") On Wed, Oct 14, 2015 at 3:52 AM, Yakir

Re: [julia-users] Escher image update

2015-10-14 Thread Shashi Gowda
all the temporary files it creates. On Wed, Oct 14, 2015 at 10:19 PM, Shashi Gowda <shashigowd...@gmail.com> wrote: > This is browser caching at work > > one way to resolve this is to just imread the image instead of loading it > using image() which just creates the equivale

Re: [julia-users] Prevent Escher from evaluating signals on start

2015-10-14 Thread Shashi Gowda
You can pass in an init=empty keyword argument to lift / consume, and the initial value of the signal will be an empty UI. The actual value will be computed next time the input signal udpates. You should also provide a typ=Any kwarg to lift / consume so that if you replace empty with something

Re: [julia-users] Prevent Escher from evaluating signals on start

2015-10-14 Thread Shashi Gowda
what you mean. > > Thanks again for the awesome work! > > > Yakir Gagnon > The Queensland Brain Institute (Building #79) > The University of Queensland > Brisbane QLD 4072 > Australia > > cell +61 (0)424 393 332 > work +61 (0)733 654 089 > > On Thu, Oct 15, 2015 at 2

Re: [julia-users] Escher image

2015-09-29 Thread Shashi Gowda
You can put the image in the assets/ directory under the directory you started the server in and then show it with image("assets/img.jpg") On Tue, Sep 29, 2015, 11:50 AM Yakir Gagnon <12.ya...@gmail.com> wrote: > How do you show a local image (say it’s in the directory where you ran escher >

Re: [julia-users] Escher plotting example

2015-09-29 Thread Shashi Gowda
here is the change you need: https://github.com/shashi/Escher.jl/commit/d2b5c57dd91abc74901821120f57e020809b3bb1 On Wed, Sep 30, 2015 at 9:45 AM, Shashi Gowda <shashigowd...@gmail.com> wrote: > You need Gadfly.inch in place of inch. It's because of a new change in > Julia 0.4 - if

Re: [julia-users] speed comparison with Mathematica

2015-09-17 Thread Shashi Gowda
The first time you run a function with a certain tuple of types of arguments it gets just-in-time compiled adding to the time you measure. Subsequent runs will be faster and allocate much less memory. Try: fib(n) = n < 2 ? n : fib(n-1) + fib(n-2) @time(fib(20)) @time(fib(20)) and consider the

Re: [julia-users] Re: JuliaCon 2015 videos

2015-08-18 Thread Shashi Gowda
If you have Escher installed and ready to go (See instructions on escher-jl.org) you can safely skip the first 20 mins of my Escher.jl video. A better talk on Escher is this one I gave recently at a conference in Bangalore: https://youtu.be/UeVUsOX5rAo?t=150 it definitely packs more content in

[julia-users] Re: Interact - basic usage

2015-08-02 Thread Shashi Gowda
using Reactive, Interact idx = slider(1:3) display(idx) array_elem = lift(i - A[i], idx) Or, to the same effect @manipulate for 1=1:3 A[i] end On Sunday, August 2, 2015 at 6:38:40 AM UTC+5:30, Júlio Hoffimann wrote: Hi, Suppose I have: idx = slider(1:3) How do I use the value

Re: [julia-users] Interact and PyPlot - @lift and withfig()

2015-08-02 Thread Shashi Gowda
of @manipulate where I can pass all sorts of widgets at once? @manipulate slider, checkbox, togglebuttons, ... withfig() do ... plot commands ... end -Júlio 2015-08-02 11:51 GMT-07:00 Shashi Gowda shashigowd...@gmail.com: Hi, Easiest way to do this is with @manipulate and `withfig` as you have

[julia-users] Re: Announcement: Escher.jl - a toolkit for beautiful Web UIs in pure Julia

2015-07-26 Thread Shashi Gowda
: Package looks beautiful. I see that you are using Gadfly, and using rendering offered up by the Compose package. Any thoughts about how I would render a d3-based infrastrcture? Michael On Monday, June 8, 2015 at 12:23:21 PM UTC-4, Shashi Gowda wrote: Hello all! I have been working

Re: [julia-users] Escher/Compose/Gadfly for heavy visualization

2015-07-01 Thread Shashi Gowda
For UIs with a million different things any browser is going to be unusable. You could render your Compose images to PNG and use it with Escher though - that should be pretty easy on the browser. But then your bottleneck will be getting Cairo to compile Compose graphics to PNG really fast. I am

Re: [julia-users] Escher demos

2015-06-23 Thread Shashi Gowda
consume is essentially an alias to lift. Escher now lets you embed interactive UIs in static surroundings. So your example can be simplified to: using Color with_hue(hue, tile=size(4em, 4em, empty)) = fillcolor(HSV(hue, 0.6, 0.6), tile) function main(window) push!(window.assets,

Re: [julia-users] Re: Julia Summer of Code

2015-06-23 Thread Shashi Gowda
Thankachan (@ https://github.com/rohitvarkeyrohitvarkey https://github.com/rohitvarkey)*, Compose3D.jl: declarative 3D graphics (mentors: Shashi Gowda @shashi https://github.com/shashi and Simon Danisch @SimonDanisch https://github.com/SimonDanisch) - *Simon Danisch (@ https://github.com

[julia-users] Announcement: Escher.jl - a toolkit for beautiful Web UIs in pure Julia

2015-06-08 Thread Shashi Gowda
Hello all! I have been working on a package called *Escher* over the past several months. It is now quite feature-rich and ready to use in some sense. I put together an overview here: https://shashi.github.io/Escher.jl/* My aim is to converge at a UI toolkit that any Julia programmer

Re: [julia-users] Re: Julia Summer of Code

2015-05-28 Thread Shashi Gowda
A possible project on the UI side of things is expanding functionality in Escher.jl (https://github.com/shashi/Escher.jl) Escher is a work-in-progress declarative UI library which lets you make Web UIs in pure Julia. It works well with Reactive.jl to allow you to create interactive

Re: [julia-users] strange behaviour of togglebuttons in Interact.jl

2015-03-26 Thread Shashi Gowda
using Reactive, Interact, DataStructures p = Input(3.); α = @lift p/2; m = @lift Input(α); lift(a - togglebuttons(OrderedDict([one, two], [a,2a]), signal=m), α) Here if you notice, typeof(p) == Input{Float64} typeof(α) == Input{Float64} typeof(m) == Input{Input{Float64}} But the `signal`

Re: [julia-users] strange behaviour of togglebuttons in Interact.jl

2015-03-25 Thread Shashi Gowda
), α)* So I would like to initialize *ft* beforehand with, say, the first value in my Dict, the one under the key Landau, but this depends on the value of the signal *α.* On Tuesday, March 24, 2015 at 3:43:04 PM UTC+1, Shashi Gowda wrote: Not a bug, if you are passing in your own input signal

Re: [julia-users] strange behaviour of togglebuttons in Interact.jl

2015-03-24 Thread Shashi Gowda
Not a bug, if you are passing in your own input signal to widgets, you need to take care of maintaining the right initial values. It's also better to use OrderedDict from DataStructures package here to keep the ordering of the key-value pairs. On Tue, Mar 24, 2015 at 7:39 PM, Andrei Berceanu

Re: [julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-14 Thread Shashi Gowda
Late to the party but here's a simple monte carlo simulation visualized using Reactive, Interact, Compose randpoint() = (rand(), rand()) isin(x, y) = 0.25 (x-0.5)^2 + (y-0.5)^2 Compose.set_default_graphic_size(8inch, 8inch) @manipulate for switch=false, t=fpswhen(switch, 10),

Re: [julia-users] Creating custom IJulia widgets

2015-03-09 Thread Shashi Gowda
That's a pretty accurate write-up! :) Thanks for posting this. As you might have figured out Interact's widgets rely on IPython's built-in widgets, which are described here https://github.com/ipython/ipython/wiki/IPEP-23:-Backbone.js-Widgets - but that document is not very comprehensive, so I had

Re: [julia-users] Re: 3D interactive plots in IJulia

2015-03-03 Thread Shashi Gowda
It should be possible to use 3D (surf etc) plots from PyPlot with Interact.jl in IJulia. On Wed, Mar 4, 2015 at 7:06 AM, Jack Minardi j...@minardi.org wrote: I've used matplotlib's 3D plotting capabilities successfully through PyPlot.jl in the past. On Tuesday, March 3, 2015 at 10:38:32 AM

Re: [julia-users] [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-05 Thread Shashi Gowda
I love the display system https://github.com/one-more-minute/Blink.jl/blob/master/src/graphics/system.jl in Blink. This makes much more sense than the current display stack mechanism. First, it lets you show things on different (even multiple) displays. Second, classification of output as Tabular,

Re: [julia-users] Gadfly in userimg.jl

2014-12-16 Thread Shashi Gowda
@Joshua, if you do Pkg.update() and get the latest Gadfly, you should be able to precompile it. Homebrew.jl had a new release 5 hours ago as well, did you try updating? We were getting the UndefVarError(var=:STDERR) with Compose, this happens when the code you are loading wants to print an error

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

2014-12-08 Thread Shashi Gowda
I got this request too. Not going to reply. I wonder who is writing it. On Sat, Dec 6, 2014 at 4:58 AM, ele...@gmail.com wrote: Have had the same problem with other open source projects I participate in, they spam anybody prominent on the ML or github. The resulting books seem to contain

Re: [julia-users] Re: JuliaBox

2014-11-14 Thread Shashi Gowda
No you won't have sudo access since that may lead to a broken container. You can however compile programs in your home directory which will persist across sessions. If you require some package that might be generally useful to others as well do open an issue at github.com/JuliaLang/JuliaBox

Re: [julia-users] JuliaBox

2014-11-10 Thread Shashi Gowda
Hello David, Sorry about that. You can use the invite code G01014. How many others do you want to invite? A handful should be fine. Just do not publish it online. Thank you On Tue, Nov 11, 2014 at 12:15 AM, David Higgins daithiohuig...@gmail.com wrote: Hi, Does anyone if JuliaBox

Re: [julia-users] JuliaBox

2014-11-10 Thread Shashi Gowda
On Tue, Nov 11, 2014 at 1:01 AM, Shashi Gowda shashigowd...@gmail.com wrote: Just do not publish it online. Oops I meant to send it to David directly. If anyone else wants a code, please let me know.

Re: [julia-users] JuliaBox

2014-11-10 Thread Shashi Gowda
Sure :) Happy to let them in. On Tue, Nov 11, 2014 at 1:02 AM, David Higgins daithiohuig...@gmail.com wrote: Thanks Ivar. 5 people Shashi, all academics so I'd like to get them interested. Dave. On Monday, 10 November 2014 19:31:17 UTC, Shashi Gowda wrote: Hello David, Sorry about

Re: [julia-users] Full blown GUI programming with Julia+JS

2014-11-07 Thread Shashi Gowda
In light of what Patchwork can do, and staying future proof, I am more concerned about Web Components support, which IE seems to be still considering http://jonrimmer.github.io/are-we-componentized-yet/ More on web components here: http://css-tricks.com/modular-future-web-components/ On Fri, Nov

Re: [julia-users] Re: Full blown GUI programming with Julia+JS

2014-11-06 Thread Shashi Gowda
On Thu, Nov 6, 2014 at 6:58 PM, Job van der Zwan j.l.vanderz...@gmail.com wrote: On Wednesday, 5 November 2014 18:16:18 UTC+1, Viral Shah wrote: SVG document Wait, does that mean that the best browser for this is a recent version of *Internet Explorer?!* At least, last time I checked

Re: [julia-users] Re: ANN: FactCheck v0.2

2014-11-05 Thread Shashi Gowda
+1000 I love this package. On Thu, Nov 6, 2014 at 5:48 AM, yfrac...@gmail.com wrote: That's is really really exciting! I think, write code let me understand things, and test let me know the code! Iain Dunning於 2014年11月6日星期四UTC+8上午1時35分11秒寫道: Hi all, I've just tagged FactCheck.jl v0.2

[julia-users] typejoin and other expressions in super type parameter

2014-10-30 Thread Shashi Gowda
Consider: julia abstract A{T} julia type B{X, Y} : A{typejoin(X, Y)} x::X y::Y end julia super(typeof(B(1, a))) A{ASCIIString} julia super(typeof(B(a, 1))) A{Int64} Which is odd. And, julia type C{X} : A{super(X)} x::X end ERROR: `super` has no

Re: [julia-users] IJulia is much slower than Julia just in terminal

2014-09-28 Thread Shashi Gowda
On Sun, Sep 28, 2014 at 2:41 PM, xiongji...@gmail.com wrote: I found IJulia is much slower than Julia just in terminal, is that normal? In what sense exactly? It's normal that you find the interactions slow, because there are hoops each of your input has to go through to get evaluated by IJulia

Re: [julia-users] Interact + PyPlot: only update when releasing slider

2014-09-09 Thread Shashi Gowda
` has no method matching start(::Slider{Float64}) sampled_coeffs = sampleon(redo, lift(tuple, α, β, γ)) -- redo not defined withfig(f) @lift plot(apply(fun, sampled_coeffs)) -- `withfig` has no method matching withfig(::Figure) On Monday, September 8, 2014 6:10:59 PM UTC+2, Shashi Gowda

Re: [julia-users] intermediate results with reduce / FoldList

2014-09-09 Thread Shashi Gowda
In this particular case, cumsum does exactly this, julia cumsum([1:10]) 10-element Array{Int64,1}: 1 3 6 10 15 21 28 36 45 55 I guess that would be idiomatic Julia ;) An equivalent foldl would be foldl((a, b) - push!(a, a[end]+b), Int[1], [2:10]) 10-element Array{Int64,1}: 1 3

Re: [julia-users] Re: how to use union!(s, iterable)

2014-09-08 Thread Shashi Gowda
What is exactly is s? If you want to create a set, two_d_array = reshape([1:4], 2, 2) s = union!(Set{Int}(), two_d_array) seems to work.

Re: [julia-users] Interact + PyPlot: only update when releasing slider

2014-09-08 Thread Shashi Gowda
Unfortunately, the @manipulate macro can only rerun the expression at every update of any of its input. What you need here is Reactive http://julialang.org/Reactive.jl/api.html#sample-and-merge's `sampleon` function: using Reactive, Interact f = figure(); α=slider(1:0.1:3) β=slider(1:0.1:3)

Re: [julia-users] Interact + PyPlot: only update when releasing slider

2014-09-08 Thread Shashi Gowda
John's suggestion is also a good way to do this. You can sample the signals at a specific interval instead of on button clicks: # At 2 fps, with repeats dropped. sampled_coeffs = droprepeats(sampleon(fps(2), lift(tuple, α, β, γ))) On Mon, Sep 8, 2014 at 9:36 PM, Shashi Gowda shashigowd

Re: [julia-users] Re: GtkInteract

2014-09-07 Thread Shashi Gowda
This is very cool! I really love how there is no lag in the example and things seem so responsive. Added a link in the Interact.jl README. One of Interact's goals is to make such adaptions hassle-free. Please do file issues if you think some change to Interact can make your code neater. On

Re: [julia-users] Re: GtkInteract

2014-09-07 Thread Shashi Gowda
about separating environment specifics from widget models. On Sun, Sep 7, 2014 at 12:15 PM, Shashi Gowda shashigowd...@gmail.com wrote: This is very cool! I really love how there is no lag in the example and things seem so responsive. Added a link in the Interact.jl README. One of Interact's

Re: [julia-users] GtkInteract

2014-09-07 Thread Shashi Gowda
Tim, is there a way to show Compose output in ImageView? Will be nice to have SVG rendering - that's the fastest Compose backend. It would also let Gadfly plots show up. On Sun, Sep 7, 2014 at 5:35 PM, Tim Holy tim.h...@gmail.com wrote: John, this sounds very interesting. At some point I will

Re: [julia-users] Julia iPython notebook doesn't display inline graphics

2014-09-07 Thread Shashi Gowda
Which package are you using for plotting? Gadfly and PyPlot currently work well with IJulia as far as I know. On Sun, Sep 7, 2014 at 7:21 PM, Bruno Morgado jb.morg...@gmail.com wrote: Hi all, I'm trying to get started with Julia but I'm having some troubles. After finally getting to get

Re: [julia-users] live plotting in PyPlot.jl?

2014-09-01 Thread Shashi Gowda
@Sheehan There is now Interact.jl (Pkg.add(Interact)) which lets you travel your for-loops with sliders and such widgets, to put it one way. Here's an example notebook showing how you can do interactive plotting with Gadfly or PyPlot:

Re: [julia-users] Currying in Julia

2014-09-01 Thread Shashi Gowda
Here's a macro for currying. Since there are vararg functions we will need to specify the number of arguments to curry away at. macro curry(n, f) syms = [gensym() for i=1:n] foldl((ex, sym) - Expr(:-, sym, ex), Expr(:call, f, syms...), reverse(syms)) end add4 = @curry 4 +

Re: [julia-users] Currying in Julia

2014-09-01 Thread Shashi Gowda
bytes allocated) 5050 julia @time +([1:100]...) elapsed time: 0.000209564 seconds (26792 bytes allocated) 5050 On Tue, Sep 2, 2014 at 4:14 AM, Shashi Gowda shashigowd...@gmail.com wrote: Here's a macro for currying. Since there are vararg functions we will need to specify the number

Re: [julia-users] julia WebSocket receiving but not sending binary data.

2014-08-31 Thread Shashi Gowda
Hey, it looks like WebSockets.jl wasn't setting the right flags in WebSocket packets for binary data. This patch makes your code work https://github.com/JuliaWeb/WebSockets.jl/pull/16 :) On Mon, Aug 25, 2014 at 6:53 PM, Altieres Del-Sent altieresdels...@gmail.com wrote: HI, I am testing the