Re: [julia-users] newbie: Problem installing IJulia

2014-12-15 Thread João Felipe Santos
This is not a problem with IJulia, but with Anaconda Python on Mac specifically. Try setting these environment variables before calling notebook(): using IJulia ENV[“LC_ALL”] = “en_US.UTF-8” ENV[“LANG”] = “en_US.UTF-8” notebook() I don’t know exactly the source of this issue and not everyone

Re: [julia-users] newbie: Problem installing IJulia

2014-12-15 Thread João Felipe Santos
start. Three IDEs not working. I'm sure it has more to do with my inexperience than anything, but THANK YOU for at least letting me go home with a glimmer of hope after seeing IJulia working :) On Monday, December 15, 2014 10:13:08 PM UTC+8, João Felipe Santos wrote: This is not a problem

Re: [julia-users] obscure error in Julia 0.3.3

2014-12-15 Thread João Felipe Santos
You may need to clean and rebuild the dependencies as well as core Julia. On Dec 15, 2014, at 12:08 PM, Andrei Berceanu andreiberce...@gmail.com wrote: Hi all, I recently upgraded to Julia Version 0.3.3 on my Arch Linux box and sometimes get this strange error, followed by a kernel

Re: [julia-users] Julia on android

2014-12-11 Thread João Felipe Santos
Biggest issue will be that most Android devices have an ARM processor, and ARM support is not complete at the moment. You may have more luck with Intel Android devices, though. João On Dec 11, 2014, at 10:17 AM, Benjamin Lind lind.benja...@gmail.com wrote: I haven't tried it, but it might

Re: [julia-users] Gadfly conflict with JLD

2014-12-03 Thread João Felipe Santos
As in the issue posted by Isaiah, this is a problem with the Color package (or interaction between Color and another package). In my case, updating Color did not work, so I pinned it to v0.3.9. João On Dec 3, 2014, at 9:57 AM, xiongji...@gmail.com wrote: I guess maybe some packages Gadfly

Re: [julia-users] Difference in constructing immutable types between 0.3 and 0.4?

2014-11-14 Thread João Felipe Santos
problem has been solved. On Sunday, November 9, 2014 12:18:20 AM UTC+2, João Felipe Santos wrote: Hi, I have a module (called Auditory) which exports an immutable type (called ModulationFilter) which is only a container for a vector of BiquadFilters (a type exported by another module

Re: [julia-users] Contributing to a Julia Package

2014-11-10 Thread João Felipe Santos
Hi Tim, you have to create a fork on Github and then push your new branch to your personal fork. Then, on Github, switch to that fork and the interface will show a Pull request button if your personal fork is ahead of the upstream repository. Best -- João Felipe Santos On Mon, Nov 10, 2014

[julia-users] Difference in constructing immutable types between 0.3 and 0.4?

2014-11-08 Thread João Felipe Santos
Hi, I have a module (called Auditory) which exports an immutable type (called ModulationFilter) which is only a container for a vector of BiquadFilters (a type exported by another module, DSP). It also exports a helper function for constructing ModulationFilter, defined here:

Re: [julia-users] using filter function

2014-11-03 Thread João Felipe Santos
You just need to write a function that returns false for the elements you want to filter out. Here’s an example that does what you want: julia myfilter(x) = x != 0 myfilter (generic function with 1 method) julia A = [1, 2, 0, 4, 5, 0] 6-element Array{Int64,1}: 1 2 0 4 5 0 julia

[julia-users] Is there something similar to IPython's Audio display in IJulia?

2014-11-03 Thread João Felipe Santos
Hi, I would like to add an HTML5 audio player to my IJulia notebooks, similarly to what is done in IPython notebooks. In IPython notebooks, there’s two possibilities: you can either pass the path to an audio file (which is easy) or a Numpy array (rendered as data:audio/wav;base64 straight into

[julia-users] Re: Is there something similar to IPython's Audio display in IJulia?

2014-11-03 Thread João Felipe Santos
in adding it to the module. Cheers, João On Nov 3, 2014, at 6:04 PM, João Felipe Santos joao@gmail.com wrote: Hi, I would like to add an HTML5 audio player to my IJulia notebooks, similarly to what is done in IPython notebooks. In IPython notebooks, there’s two possibilities

Re: [julia-users] Julia off-line documentation

2014-10-02 Thread João Felipe Santos
You can build the docs as a PDF or as HTML and read them on your computer. Check https://github.com/JuliaLang/julia/tree/release-0.3/doc -- João Felipe Santos On Thu, Oct 2, 2014 at 11:59 AM, Charles Novaes de Santana charles.sant...@gmail.com wrote: Dear all, I was wondering

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread João Felipe Santos
) Note that b64d here will be a Ptr{Uint8}, which you can convert to a Julia string by using bytestring(b64d). -- João Felipe Santos On Mon, Sep 1, 2014 at 9:55 AM, Randy Zwitch randy.zwi...@fuqua.duke.edu wrote: To make it a bit more concrete, the C library has this test function: testurl

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread João Felipe Santos
. string will create a string from printing the pointer (which will show something like Ptr{Uint8} @0x012345). bytestring converts a C string from a pointer to an ASCIIString, which is what you want. -- João Felipe Santos On Mon, Sep 1, 2014 at 4:24 PM, Randy Zwitch randy.zwi...@fuqua.duke.edu

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread João Felipe Santos
Homebrew, so it ended up in a standard OS location and I did not use that step, but mistakenly assumed that was what you were supposed to do for libs in non-standard places. Sorry for that, but I'm glad it worked in the end! -- João Felipe Santos On Mon, Sep 1, 2014 at 6:10 PM, Randy Zwitch randy.zwi

Re: [julia-users] Help with Clang.jl for a C beginner

2014-08-31 Thread João Felipe Santos
/en/release-0.3/manual/calling-c-and-fortran-code/#accessing-data-through-a-pointer and http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/#passing-pointers-for-modifying-inputs for more details on that. -- João Felipe Santos On Sun, Aug 31, 2014 at 8:17 PM, Randy Zwitch

Re: [julia-users] Semi-OT: Recommendations for learning just enough C for Julia

2014-08-15 Thread João Felipe Santos
of exporting symbols from a binary file (.so on Linux, .dll on Windows, .dylib on OS X) in a way other programs can use them. I may have simplified or overcomplicated things, but I think these are the basic concepts one would need to write code that uses a shared library. -- João Felipe Santos On Fri

Re: [julia-users] equivalent to numpy's fftfreq

2014-07-02 Thread João Felipe Santos
Hi Andrei, you can use fftfreq in DSP.jl. The syntax is exactly the same as for your function: http://dspjl.readthedocs.org/en/latest/util.html#fftfreq. Best -- João Felipe Santos On Wed, Jul 2, 2014 at 9:28 AM, Andrei Berceanu andreiberce...@gmail.com wrote: I have written the following

Re: [julia-users] equivalent to numpy's fftfreq

2014-07-02 Thread João Felipe Santos
Oh, we will need a different implementation to support arrays as well as the Frequencies abstract array. Thanks for reporting this issue, by the way! -- João Felipe Santos On Wed, Jul 2, 2014 at 1:38 PM, Andrei Berceanu andreiberce...@gmail.com wrote: Ok, tnx :) But now `fftshift`, which

Re: [julia-users] PyPlot not working in Julia Studio

2014-06-25 Thread João Felipe Santos
Try printing your $PATH and $PYTHONPATH environment variables from the JuliaStudio REPL. You may be setting them only for terminal sessions but not for graphical sessions. -- João Felipe Santos On Wed, Jun 25, 2014 at 7:12 AM, René Hiemstra rrhiems...@gmail.com wrote: Hi all, I have (on OS

Re: [julia-users] Remez algorithm

2014-06-17 Thread João Felipe Santos
with the algorithm's internal workings and had other priorities at the moment, I ended up never working on it. I think that we could benefit from a nice and clean Julia rewrite of the algorithm, though. -- João Felipe Santos On Tue, Jun 17, 2014 at 8:13 AM, Hans W Borchers hwborch...@gmail.com wrote

Re: [julia-users] Is there Code for Multi layer perceptron?

2014-06-07 Thread João Felipe Santos
(something similar to what Theano does, even though Theano does much more than that). -- João Felipe Santos On Sat, Jun 7, 2014 at 12:11 PM, John Myles White johnmyleswh...@gmail.com wrote: I don’t think there’s any reliable neural network Julia code published so far. — John On Jun 7, 2014

Re: [julia-users] Re: building julia on OSX - gfortran issues

2014-05-19 Thread João Felipe Santos
In my system it compiled correctly after installing XCode command line tools and gfortran from Homebrew (which was gfortran from GCC 4.8.2). I did not have to adjust any flags for it to work. -- João Felipe Santos On Mon, May 19, 2014 at 2:35 PM, Andreas Noack Jensen andreasnoackjen

[julia-users] Problem with BinDeps on OSX

2014-05-14 Thread João Felipe Santos
but could not find anything related to dynamic library file extensions. Do I need specifically to say that the OS is :Darwin instead of :Unix if I want it to work with OSX? Thanks! -- João Felipe Santos

Re: [julia-users] Equivalent to R's seq()?

2014-03-12 Thread João Felipe Santos
You can use a range, which works similarly to MATLAB's: seq = 5:5:20 where the number in the middle is the step size. This will create a range that can be iterated (e.g., in a for loop). If you need an array instead, you can use seq = [5:5:20] -- João Felipe Santos On Wed, Mar 12, 2014

Re: [julia-users] Linear convolution

2014-03-04 Thread João Felipe Santos
We have some standard DSP stuff in https://github.com/JuliaDSP/DSP.jl. Our idea is to put everything DSP-related that is not application-specific in there, and then make other application-specific packages depend on it. -- João Felipe Santos On Tue, Mar 4, 2014 at 10:22 AM, Tobias Knopp

Re: [julia-users] Linear convolution

2014-03-04 Thread João Felipe Santos
be nice to add multidimensional support to it. Filters such as max, min, median, and gaussian would also be interesting additions. -- João Felipe Santos On Tue, Mar 4, 2014 at 10:43 AM, Tobias Knopp tobias.kn...@googlemail.comwrote: Thanks for the hint. This seems to be a good start although

Re: [julia-users] ccall issues

2014-02-21 Thread João Felipe Santos
to Cdvec). Could you point out where is my mistake? Thanks! -- João Felipe Santos On Fri, Feb 21, 2014 at 10:30 AM, Isaiah Norton isaiah.nor...@gmail.comwrote: Sorry, I misread - ignore what I said about (1). On Fri, Feb 21, 2014 at 10:25 AM, Isaiah Norton isaiah.nor...@gmail.comwrote

Re: [julia-users] ccall issues

2014-02-21 Thread João Felipe Santos
That's what I expected, but it seems I am always getting null vectors from my C code, even though it is correctly changing the pointer value. -- João Felipe Santos On Fri, Feb 21, 2014 at 10:51 AM, Tobias Knopp tobias.kn...@googlemail.comwrote: if your function returns a pointer to a struct

Re: [julia-users] ccall issues

2014-02-21 Thread João Felipe Santos
Regarding the C code that I wrote, the real library I'm wrapping does not have such a newbie mistake (all memory is malloc'd correctly). I had also forgot that you need to pass pointers to pointers when passing structs. Thanks for all the help! -- João Felipe Santos On Fri, Feb 21, 2014

Re: [julia-users] Re: Unable to install IJulia

2014-02-03 Thread João Felipe Santos
)? -- João Felipe Santos On Mon, Feb 3, 2014 at 9:30 AM, Keno Fischer kfisc...@college.harvard.eduwrote: What version of LLVM is Arch using? Given their reputation, I can see that they may have switched to 3.4, where we're still experiencing problems. On Mon, Feb 3, 2014 at 9:27 AM, Ismael

Re: [julia-users] Re: Unable to install IJulia

2014-02-03 Thread João Felipe Santos
! -- João Felipe Santos On Mon, Feb 3, 2014 at 11:28 AM, Ismael VC ismael.vc1...@gmail.com wrote: I did try first to install manually, using make, I don't know if now I have a mess of libraries, should I remove every dependency with pacman? I will try again doing it manually and post back any

Re: [julia-users] Re: Unable to install IJulia

2014-02-03 Thread João Felipe Santos
If you did not define any of the USE_SYSTEM_* flags when calling make, it will download and compile everything locally. You don't need to worry about removing system packages. -- João Felipe Santos On Mon, Feb 3, 2014 at 11:40 AM, Ismael VC ismael.vc1...@gmail.com wrote: Ok I'm starting fresh

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-24 Thread João Felipe Santos
directory. You can clone the repository from Github and then switch to 0.2.0. It takes a while but if your PC is not that old you'll be done in less than an hour. -- João Felipe Santos On Fri, Jan 24, 2014 at 10:30 PM, Rajn rjngrj2...@gmail.com wrote: After my several failed attempts to run

Re: [julia-users] Generating Large LP Models Efficiently

2014-01-14 Thread João Felipe Santos
Did you have a look at JuMP? I believe it is equivalent to PuLP, but written in Julia: https://github.com/JuliaOpt/JuMP.jl -- João Felipe Santos On Tue, Jan 14, 2014 at 2:52 PM, Andrew B. Martin andrew.brown.mar...@gmail.com wrote: Hello, I'm new to julia; I discovered it when I posted