[julia-users] Re: LightXML Ubuntu 16.04 julia 0.4.5

2016-09-24 Thread Kaj Wiik
Try sudo apt install libxml2 On Saturday, September 24, 2016 at 12:52:46 PM UTC+3, Ján Adamčák wrote: > > Hi Guys, > > I tried use LightXML on Ubuntu 16.04, but I got an error: > > ERROR: error compiling call: could not load library "libxml2" > > Can You help me? > > Thanks. > > Log: > >

Re: [julia-users] How can I run this "raijin", fx auto trading program?

2016-11-06 Thread Kaj Wiik
You can run it either from command line: julia raijin.jl or from the command line interpreter (REPL): julia julia> include("rajin.jl") It looks like that the script does not take any arguments (my Japanese is bit rusty however...). Good luck, Kaj On Sunday, November 6, 2016 at 8:31:32 AM UTC+2,

[julia-users] Re: Interpolations.jl: irregular grids

2016-11-17 Thread Kaj Wiik
Hi! See: https://groups.google.com/d/msg/julia-users/XH7SRGHc6Pg/OQSouoUoAwAJ Cheers, Kaj On Thursday, November 17, 2016 at 9:48:07 PM UTC+2, Pieterjan Robbe wrote: > > I am trying to do interpolation on irregular grids using > Interpolations.jl. From its documentation: > > Currently its supp

Re: [julia-users] Re: How to find if a variable is empty or not?

2015-01-19 Thread Kaj Wiik
What about simply length()? julia> a=[] 0-element Array{None,1} julia> length(a) 0 julia> a=[1,3] 2-element Array{Int64,1}: 1 3 julia> length(a) 2 Kaj

Re: [julia-users] Re: How to find if a variable is empty or not?

2015-01-19 Thread Kaj Wiik
eiro de 2015 às 13:28:39 UTC, Kaj Wiik escreveu: >> >> What about simply length()? >> >> julia> a=[] >> 0-element Array{None,1} >> >> julia> length(a) >> 0 >> >> julia> a=[1,3] >> 2-element Array{Int64,1}: >> 1 >> 3 >> >> julia> length(a) >> 2 >> >> >> Kaj >> >> >>

[julia-users] Feeding information to an @async task?

2015-01-25 Thread Kaj Wiik
I am writing some software to control an instrument. The basic idea is to use Julia REPL (+ optional GUI) as the user interface. There is an @async process that sends UDP packet every second or so to the instrument. The content of that packet is of course a function of user input and time. The

[julia-users] Re: Julia Notebook Graphics Problems

2015-02-14 Thread Kaj Wiik
Works fine in Julia Version 0.3.5 Commit a05f87b* (2015-01-08 22:33 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: AMD A6-4455M APU with Radeon(tm) HD Graphics WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY) LAPACK: liblapack.so.3 LIBM: libope

[julia-users] Re: Julia Notebook Graphics Problems

2015-02-14 Thread Kaj Wiik
ons/Julia-0.3.5.app/Contents/Resources/julia/lib/julia/sys.dylib* > > * in run_frontend at > /Applications/Julia-0.3.5.app/Contents/Resources/julia/lib/julia/sys.dylib* > > * in run_repl at > /Applications/Julia-0.3.5.app/Contents/Resources/julia/lib/julia/sys.dylib* > > * in _st

[julia-users] How to generate composite types with a macro?

2015-03-05 Thread Kaj Wiik
I have been trying to write a macro that would generate fields in a for-loop. However, when I try to generate the first line I get an error: julia> macro deftype(name,artype,num) ex1 = :(esc( immutable $name)) ERROR: syntax: unexpected ")" julia> macro deftype(name,artype,num) ex1

Re: [julia-users] How to generate composite types with a macro?

2015-03-06 Thread Kaj Wiik
openlibm LLVM: libLLVM-3.3 On Friday, March 6, 2015 at 5:35:23 PM UTC+2, Isaiah wrote: > > Missing an `end` in both expressions. > >> > julia> macro deftype(name) > >>ex1 = :(immutable $name end) > end > julia> @deftype foo > julia> f

Re: [julia-users] How to generate composite types with a macro?

2015-03-09 Thread Kaj Wiik
ah wrote: > > You are right, I had defined it earlier and apparently the redefinition > restriction does not apply to empty immutables. Anyway, this should work: > > macro deftype(name) > esc(:(immutable $name end)) > end > > > > On Fri, Mar 6, 2015 at 8:19 PM, Ka

[julia-users] Re: How to generate composite types with a macro?

2015-03-09 Thread Kaj Wiik
t; end > end > > > Am Donnerstag, 5. März 2015 11:02:51 UTC+1 schrieb Kaj Wiik: >> >> I have been trying to write a macro that would generate fields in a >> for-loop. >> >> However, when I try to generate the first line I get an error: >>

[julia-users] Re: How to generate composite types with a macro?

2015-03-09 Thread Kaj Wiik
immutable $(typename) $(fields...) end end end Thanks, Kaj On Monday, March 9, 2015 at 6:05:10 PM UTC+2, Kaj Wiik wrote: > > > > This is more elegant Julian way that I tried to find, thanks! > > Kaj > > > On Monday, M

[julia-users] How to interpolate a variable as a macro argument?

2015-03-11 Thread Kaj Wiik
I have a problem in using variables as argument for macros. Consider a simple macro: macro testmacro(N) for i = 1:N println("Hello!") end end @testmacro 2 Hello! Hello! So, all is good. But if I use a variable as an argument, n = 2 @testmacro n I get an (understandable) err

[julia-users] Re: How to interpolate a variable as a macro argument?

2015-03-11 Thread Kaj Wiik
sed to transform an expression, > which than replaces the original expression that you gave the macro via its > arguments > > Am Mittwoch, 11. März 2015 13:37:55 UTC+1 schrieb Kaj Wiik: >> >> I have a problem in using variables as argument for macros. Consider a >> simpl

Re: [julia-users] Re: How to interpolate a variable as a macro argument?

2015-03-11 Thread Kaj Wiik
Int8 > > > This might be necessary, e.g. if you're looping over various values of n: > > for n = 1:10 > @eval @gentype $n UInt8 > end > > > > > On Wed, Mar 11, 2015 at 2:52 PM, Kaj Wiik > > wrote: > >> >> Of course this was a simp

[julia-users] Re: Error using pcolor

2015-04-14 Thread Kaj Wiik
Works fine with Julia Version 0.3.7 (Ubuntu) PyPlot1.5.1 python-matplotlib 1.3.1-1ubuntu5 Python 2.7.6 Kaj On Tuesday, April 14, 2015 at 5:51:13 PM UTC+3, Ronan Chagas wrote: > > Hi Tim, > > I still have the same problem. > Can you please tell me what versions of python

Re: [julia-users] the state of GUI toolkits?

2015-05-07 Thread Kaj Wiik
Not loading on Ubuntu 14.04 & 0.3.7... Kaj On Tuesday, April 28, 2015 at 2:11:17 PM UTC+3, Tim Holy wrote: > > Also, on 0.3 Gtk loads just fine for me. Not sure why it's not working on > PkgEvaluator. > > --Tim > > On Tuesday, April 28, 2015 12:46:52 AM Andreas Lobinger wrote: > > Hello coll

[julia-users] Re: Winston package problem

2015-05-21 Thread Kaj Wiik
Pinning Winston Pkg.pin("Winston", v"0.11.0") seems to fix the problem in question and at least a simple plot works. There are new warnings: julia> using Winston Warning: could not import Base.add into Winston Warning: could not import Base.Text into Tk On Thursday, May 21, 2015 at 11:34:4

[julia-users] Re: Using Winston in Julia 0.3.9

2015-06-24 Thread Kaj Wiik
I have the same problem. Winston.add() works. Strange because it's not very long time since I used Winston and everything just worked... julia> add(p, s, a, b, l) ERROR: add not defined julia> Winston.add(p, s, a, b, l) julia> versioninfo() Julia Version 0.3.8 Commit 79599ad (2015-04-30 23:40 U

[julia-users] Re: Using Winston in Julia 0.3.9

2015-06-24 Thread Kaj Wiik
Hmm, I forgot that I had pinned to Winston version 0.11.0, after upgrade to 0.11.11, add() works! Kaj On Wednesday, June 24, 2015 at 12:36:19 PM UTC+3, Kaj Wiik wrote: > > I have the same problem. Winston.add() works. Strange because it's not > very long time since I us

Re: [julia-users] Printf() of a variable number of arguments

2015-07-14 Thread Kaj Wiik
Would this work for you: julia> a = 1e5*rand(1000) julia> for i in a @printf("%12.6f\n", i) end 74708.038385 71244.774457 5057.229038 3761.297034 ... Remember that loops are fast in Julia... Kaj On Tuesday, July 14, 2015 at 9:14:37 AM UTC+3, Ferran Mazzanti wrote: > > Thanks fo

[julia-users] Re: How to make (sort of) pointers to an array subsection ?

2015-07-15 Thread Kaj Wiik
ArrayViews might do what you are after: https://github.com/JuliaLang/ArrayViews.jl Kaj On Wednesday, July 15, 2015 at 1:14:14 PM UTC+3, Ferran Mazzanti wrote: > > Hi folks, > > I have a little mess with the way arrays are being handled in Julia. I > come from C and fortran95 and I know I can d

[julia-users] SOLVED: ERROR: `start` has no method matching start(::Nothing)

2015-07-20 Thread Kaj Wiik
I started to get a strange error while debugging my code, here's a simplified example: julia> function foo(a) println("foo..") end foo (generic function with 1 method) julia> a = foo(2) foo.. julia> a,b = foo(2) foo.. ERROR: `start` has no method matching start(::Nothing) So

[julia-users] Re: SOLVED: ERROR: `start` has no method matching start(::Nothing)

2015-07-20 Thread Kaj Wiik
Julia iterates the return value. The return value of `foo`, which is the > same as the return value from `println`, is something which is not iterable. > > I agree that the error message isn't very helpful, but it's also hard to > say how one would fix that. > > On Monda

[julia-users] Re: SOLVED: ERROR: `start` has no method matching start(::Nothing)

2015-07-21 Thread Kaj Wiik
0 de julio de 2015, 14:09:00 (UTC-5), Kaj Wiik escribió: >> >> I started to get a strange error while debugging my code, here's a >> simplified example: >> >> julia> function foo(a) >>println("foo..") >>end >> f

Re: [julia-users] Forming a structure made of complex and real numbers?

2015-07-26 Thread Kaj Wiik
One way would be a = DB([],[]) a.Y=rand(Complex{Float64},100) a.W=rand(Float64,100) or just b = DB(rand(Complex{Float64},100),rand(100)) Kaj On Sunday, July 26, 2015 at 8:44:14 AM UTC+3, Joe Tusek wrote: > > Tom thanks, sorry to be asking such basic questions, I have access to the > referen

[julia-users] Re: History file in Ubuntu

2015-07-28 Thread Kaj Wiik
Hi! I have it in $HOME/.julia_history as you assumed. Note that it will be written (created) when julia exits. So start julia, do something and exit and the file should be there. Kaj On Tuesday, July 28, 2015 at 10:46:46 AM UTC+3, Konstantinos Prokopidis wrote: > > > > Hello, > I just instal

[julia-users] Re: Winston savefig problem when using FramedPlot

2015-08-02 Thread Kaj Wiik
Hi! Try savefig(p, "test.svg") Kaj On Sunday, August 2, 2015 at 7:06:21 AM UTC+3, Lauri Nurminen wrote: > > Hi, > > I have the following problem with Winston savefig > > in short, if I do > > julia> using Winston > x = randn(100); > y = randn(100); > pp = Points(x,y); > p = FramedPlot(); > a

[julia-users] Re: Winston savefig problem when using FramedPlot

2015-08-02 Thread Kaj Wiik
linux-gnu) CPU: AMD A6-4455M APU with Radeon(tm) HD Graphics WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Prescott) LAPACK: liblapack.so.3 LIBM: libopenlibm LLVM: libLLVM-3.3 Kaj On Sunday, August 2, 2015 at 11:50:22 AM UTC+3, Kaj Wiik wrote:

[julia-users] Re: Get time between two DateTime values in hours (and minutes if simple)

2015-08-15 Thread Kaj Wiik
You can get Int64 value by duration.value and convert 'by hand' from there. A possibility to convert from Millisecond to DateTime would be nice... On Saturday, August 15, 2015 at 2:41:04 AM UTC+3, Ian Butterworth wrote: > > Trying to get the number of hours between these two dates (ideally "x

[julia-users] Re: Package to work with LTspice simulations in julia

2015-09-05 Thread Kaj Wiik
Hi! This will be very useful, many thanks for sharing!! Cheers, Kaj On Saturday, September 5, 2015 at 10:03:28 PM UTC+3, Chris Stook wrote: > > I've created a package to work with LTspice simulations in julia. > > https://github.com/cstook/LTspice.jl > > Chris >

[julia-users] Initializing a nested composite type variable

2014-06-30 Thread Kaj Wiik
Let's assume that I have defined composite types type Xy x y end type Minmax{T} min::T max::T end To make code readable, I'd like to initialize nested composite type variable like this: var=Minmax{Xy}() var.min.x = 0 var.max.x = 1 var.min.y = -10 var.max.y = 0 How to accomplish

[julia-users] Re: Initializing a nested composite type variable

2014-07-01 Thread Kaj Wiik
Thanks! For maximum simplicity, you could define a default outer constructor: > Minmax() = Minmax{Xy}(Xy(0,0),Xy(0,0)) > > And then your example works (without the type parameter). If you want to > specify the type, then you need to slightly generalize this default > constructor to something lik

[julia-users] Re: Testing OpenGL

2014-07-06 Thread Kaj Wiik
Ubuntu 14.04, julia Version 0.3.0-prerelease+3921 (2014-06-28 02:01 UTC) a window opens with a white triangle blue/black flashing background. Cheers, Kaj On Monday, July 7, 2014 12:11:41 AM UTC+3, Simon Danisch wrote: > > Hi, > I'm slowly trying to push out a stable version of GLPlot. > First s

[julia-users] Re: ANN: PGF/TikZ packages

2014-08-22 Thread Kaj Wiik
Hi! I've been using Tikz, so this package is very welcome! However, using PGFPlots a=plot(rand(20),rand(20)) save("test.pdf", a) ERROR: `save` has no method matching save(::ASCIIString, ::TikzPicture) Any suggestions? This is in Julia 0.3.0 and Ubuntu 14.04. Cheers, Kaj

[julia-users] Re: ANN: PGF/TikZ packages

2014-08-23 Thread Kaj Wiik
Yes, now it works perfectly, except that save("test.pdf", a) produces "test.pdf.pdf". I tried the first example but obviously it works only in IJulia. Thanks! Kaj On Saturday, August 23, 2014 5:09:10 PM UTC+3, Pablo Zubieta wrote: > > @Kaj Wiik > > Sorry! Ther

[julia-users] Re: GtkInteract

2014-09-07 Thread Kaj Wiik
Very useful, many thanks!! Cheers!

[julia-users] Re: LaTeX labels in Winston

2014-09-17 Thread Kaj Wiik
Hi! It works fine with version 0.3.0 Ubuntu 14.04: On Wednesday, September 17, 2014 11:59:38 PM UTC+3, Paweł Biernat wrote: > > Hi, > > Is it possible to use LaTeX labels in Winston? In the e

[julia-users] Re: LaTeX labels in Winston

2014-09-17 Thread Kaj Wiik
Hmm, sorry, you asked about general LaTeX. I confirm that at least \frac does not work. Have you tried PGFPlots: http://nbviewer.ipython.org/github/sisl/PGFPlots.jl/blob/master/doc/PGFPlots.ipynb https://github.com/sisl/PGFPlots.jl Kaj On Thursday, September 18, 2014 12:47:24 AM UTC+3, Kaj

Re: [julia-users] Strange vector operation

2014-09-25 Thread Kaj Wiik
I was surprised like Hans (Ubuntu 14.04): dpkg -l julia i julia 0.3.1~trusty amd64high-performance programming langua /etc/apt/sources.list deb http://ppa.launchpad.net/staticfloat/juliareleases/ubuntu trusty main deb-src http://ppa.launchpad.net/staticfloat/juliareleases/ub

Re: [julia-users] Strange vector operation

2014-09-25 Thread Kaj Wiik
tember 25, 2014 1:13:36 PM UTC+3, Tim Holy wrote: > > Sounds like a bug. @staticfloat? > > --Tim > > On Thursday, September 25, 2014 03:01:58 AM Kaj Wiik wrote: > > I was surprised like Hans (Ubuntu 14.04): > > > > dpkg -l julia > > i julia

Re: [julia-users] Strange vector operation

2014-09-25 Thread Kaj Wiik
_ _ _| |_ __ _ | Type "help()" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.3.1 (2014-09-21 21:30 UTC) _/ |\__'_|_|_|\__'_| | Official http://julialang.org release |__/ | x86_64-linux-gnu Kaj On Thursday, September 25, 2014 2:00:59 PM U

[julia-users] Re: Installing 0.3.x on Ubuntu 14.04 (trusty)

2015-10-09 Thread Kaj Wiik
I downloaded and extracted binary tarballs of both 0.3.11 and 0.4.0 to /opt and made links of the executables (julia and julia-v0.3) to /usr/local/bin. It's that simple. Very easy way to have both... (Ubuntu 14.04.3 LTS). Kaj On Friday, October 9, 2015 at 4:58:12 PM UTC+3, Stephen Chisholm wrot

[julia-users] Re: ANN: Julia v0.4.0 released!

2015-10-09 Thread Kaj Wiik
What to say, many thanks to all contributors! Julia has changed the way how I do many things and even what things I do :-). Cheers!! Kaj On Friday, October 9, 2015 at 2:20:32 PM UTC+3, Tony Kelman wrote: > > At long last, we can announce the final release of Julia 0.4.0! See > http://juliala

[julia-users] Re: how to reload macro def

2016-05-23 Thread Kaj Wiik
Maybe workspace()? help?> workspace search: workspace workspace() Replace the top-level module (Main) with a new one, providing a clean workspace. The previous Main module is made available as LastMain. A previously- loaded package can be accessed using a statement such as using LastM

[julia-users] Re: Opening a julia's IDE from a linux server

2016-05-25 Thread Kaj Wiik
ssh -X ? Kaj On Wednesday, May 25, 2016 at 10:54:53 AM UTC+3, hilili...@gmail.com wrote: > > > > Hello, > > I need to use julia through a linux server. I can use julia but I can not > properly use an IDE. I could instal IJulia but I can not open it by doing > using IJulia notebook(). > I can ne

Re: [julia-users] Re: Congratulations to Keno

2016-05-28 Thread Kaj Wiik
Congrats and big thanks! Kaj On Saturday, May 28, 2016 at 10:49:31 PM UTC+3, Keno Fischer wrote: > > Thanks for the kind words everyone. I did indeed graduate last Thursday > [1]. > I will now be working full time with Julia Computing, doing more compiler > work, > debugging, other tools, etc

[julia-users] Re: What is the difference between bitwise and logical operators?

2016-05-30 Thread Kaj Wiik
Here's a clue: julia> 0b10010011 & 0b10010011 0x93 julia> 0b10010011 && 0b10010011 ERROR: TypeError: non-boolean (UInt8) used in boolean context Kaj On Monday, May 30, 2016 at 9:30:22 AM UTC+3, Ford Ox wrote: > > For example > true & false == true && false > > Is it just artifact from c wh

[julia-users] umask?

2016-06-08 Thread Kaj Wiik
Is there a way to set the default umask for the process? Kaj

[julia-users] Re: umask?

2016-06-08 Thread Kaj Wiik
I tried ccall( (:umask, "libc"), Cint, (Cint,), 0o22) and while it did not give any error and in fact seemed to change the umask, it did not have any effect to the premissions of the created files. Kaj On Wednesday, June 8, 2016 at 10:10:56 AM UTC+3, Kaj Wiik wrote: > > Is th

Re: [julia-users] Re: umask?

2016-06-08 Thread Kaj Wiik
issues/16237. So umask is ignored > on 0.4.x but respected on 0.5-dev. > > On Wed, Jun 8, 2016 at 3:28 AM, Kaj Wiik > > wrote: > >> I tried >> ccall( (:umask, "libc"), Cint, (Cint,), 0o22) >> and while it did not give any error and in fact see

[julia-users] Re: repl ; commands with argument

2016-06-17 Thread Kaj Wiik
Works fine in Ubuntu and Julia 0.4.5, maybe a Windows issue? shell> ls -l /tmp total 656 -rw--- 1 kjwiik kjwiik 10545 Jun 12 06:58 001fa5764f7df On Friday, June 17, 2016 at 10:27:09 AM UTC+3, Ford O. wrote: > > shell> cd /d D: > ERROR: ArgumentError: cd method only takes one argument >

[julia-users] Re: ArrayFire.jl - GPU Programming in Julia

2016-06-20 Thread Kaj Wiik
For anyone trying to get things working in Ubuntu (Xenial) environment... I could not get ArrayFire.jl working with the binary libraries, compiling from source was quite easy and everything works now fine. On Friday, June 10, 2016 at 8:08:42 AM UTC+3, ran...@juliacomputing.com wrote: > > Hello

[julia-users] ERROR: syntax: "±" is not a unary operator

2016-06-22 Thread Kaj Wiik
I have a strange problem using ± and ∓ Unicode symbols as variables when placed at the front of equation. Although they seem not to be defined in Main, they behave differently from e.g. α (but e.g. 2*± does work). See below. Any suggestions? _ _ _ _(_)_ | A fresh a

[julia-users] Re: ERROR: syntax: "±" is not a unary operator

2016-06-22 Thread Kaj Wiik
but without definition. > > julia> ±(a,b) = (a+b, a-b) > ± (generic function with 1 method) > > julia> 3±4 > (7,-1) > > > > your assignment probably overrides the default operator. > > > ---david > > On Wednesday, June 22, 2016 at 2:08:21 PM UTC+2,

[julia-users] Re: ERROR: syntax: "±" is not a unary operator

2016-06-22 Thread Kaj Wiik
To wrap this item up, it would be good to know where the distinction (parsing) is done in sources? Thanks, Kaj On Wednesday, June 22, 2016 at 5:03:09 PM UTC+3, Steven G. Johnson wrote: > > > > On Wednesday, June 22, 2016 at 2:34:00 PM UTC+1, Kaj Wiik wrote: >> >> Yes,

[julia-users] Julia version of Matplotlib griddata?

2016-07-08 Thread Kaj Wiik
Is there a Julia version of irregularly spaced data gridding that does zi = griddata(x,y,z,xi,yi), i.e. all arguments are 1d vectors? It seems that Julia interp and contour packages require x, y, z[x,y]. https://scipy.github.io/old-wiki/pages/Cookbook/Matplotlib/Gridding_irregularly_spaced_data.h

[julia-users] Re: Julia version of Matplotlib griddata?

2016-07-08 Thread Kaj Wiik
Yes, I tried that but for some reason, couldn't get natgrid recognized by matplotlib... One way would try to call natgrid library (libncarg) directly... Thanks, Kaj On Saturday, July 9, 2016 at 2:00:29 AM UTC+3, Steven G. Johnson wrote: > > (You can always call the Matplotlib function from Juli

[julia-users] Re: Julia version of Matplotlib griddata?

2016-07-13 Thread Kaj Wiik
t; > > If you only need the gridded data, use the GR gridit function, e.g. (to > obtain a 200 x 200 grid): > > x, y, z = GR.gridit(xd, yd, zd, 200, 200) > > > On Saturday, July 9, 2016 at 12:57:51 AM UTC+2, Kaj Wiik wrote: >> >> Is there a Julia version of irre

[julia-users] Re: Julia version of Matplotlib griddata?

2016-07-14 Thread Kaj Wiik
29 IP1 = 23 IP2 = 3286 XD=56192.9 YD=0.55634 ERROR DETECTED IN ROUTINE IDTANG. julia> cf[:,[23,3286]] 3x2 Array{Float32,2}: 0.0 6.64646e-20 0.55634 0.555965 56192.9 56192.9 Strange... On Wednesday, July 13, 2016 at 10:58:16 PM UTC+3, Kaj

[julia-users] Re: Julia version of Matplotlib griddata?

2016-07-14 Thread Kaj Wiik
Forgot to mention that in the first GR.contour attempt I had x and z swapped... On Thursday, July 14, 2016 at 12:11:57 PM UTC+3, Kaj Wiik wrote: > > I dug this problem bit deeper, it seems that my unique is working but > GR.contour seems to be complaining even of close coordinates

[julia-users] Re: Irregular Interpolation Help

2016-08-24 Thread Kaj Wiik
Hi! See: https://groups.google.com/d/msg/julia-users/XH7SRGHc6Pg/OQSouoUoAwAJ (I had problems that were in fact not related to gridding...) Cheers, Kaj On Wednesday, August 24, 2016 at 12:41:55 PM UTC+3, christo...@roames.com.au wrote: > > Hi all, > > I have been looking at Interpolations.jl,

[julia-users] Re: Running Julia in Ubuntu

2016-08-30 Thread Kaj Wiik
I have been using the third route very successfully: Download the binary from e.g. https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.6-linux-x86_64.tar.gz or https://s3.amazonaws.com/julialang/bin/linux/x64/0.5/julia-0.5.0-rc3-linux-x86_64.tar.gz (http://julialang.org/downloads/) cd

[julia-users] Re: Running Julia in Ubuntu

2016-08-31 Thread Kaj Wiik
>> - Nettle 0.2.4 >>> - ReverseDiffSparse 0.5.8 >>> - SHA 0.2.1 >>> - URIParser 0.1.6 >>> - ZMQ 0.3.4 >>> >>> >>> On T

[julia-users] Re: Running Julia in Ubuntu

2016-09-01 Thread Kaj Wiik
> wrote: >>>> >>>> I don't get how to do that. >>>> >>>> Can you please tell me the steps. Its all too confusing and I am very >>>> new to Ubuntu or Julia. Mostly used to work on Matlab. I have no idea how >>>> to inst

[julia-users] Re: Maps in Julia?

2016-09-08 Thread Kaj Wiik
Hi! I have done some bits of code to make maps and calculate results for Finnish powered paragliding championships over the years, like this: http://movasuunnistus.dy.fi/viitasaari2016/tulokset/suunnistus-viitasaari-2016-timlander.pdf I use Cairo.jl via Luxor.jl and transform geographic coordina

[julia-users] Re: Maps in Julia?

2016-09-09 Thread Kaj Wiik
Wow, that's interesting! Thanks for pointing that out! On Friday, September 9, 2016 at 4:28:12 PM UTC+3, Michael Borregaard wrote: > > You can open esri shapefiles with shapefiles.jl. There is a plotting > function for shapefiles in plotrecipes.jl. You can layer shapefiles to > create vector ma

[julia-users] Re: Maps in Julia?

2016-09-09 Thread Kaj Wiik
Perfect, thanks! Kaj On Saturday, September 10, 2016 at 1:30:49 AM UTC+3, Andy Ferris wrote: > > ... and transform geographic coordinates (GNSS logger lat, lon) to UTM >> (cartesian, unit = metre) by calling libgeographic. >> > > Geodesy.jl now has a native port of libgeographics UTM conversion

[julia-users] Re: Maps in Julia?

2016-09-11 Thread Kaj Wiik
In fact I was going to suggest you to register Luxor,jl but forgot it... Very convenient layer on top of Cairo.jl. It is really simple to work with rasterized maps, just calculate proper transform matrices and you can switch between normalized, image and UTM coordinates with setmatrix(). The n

[julia-users] Re: ANN: Instruments.jl

2014-10-01 Thread Kaj Wiik
Will this be NI-only or do you plan to support other GPIB interfaces like http://galvant.ca/shop/gpibusb/ Kaj On Wednesday, October 1, 2014 7:59:14 AM UTC+3, Colm Ryan wrote: > > BBN Technologies has released v0.0.1 of Instruments.jl, a package for > controlling laboratory instruments through J

[julia-users] Re: @spawn and PyPlot

2014-10-13 Thread Kaj Wiik
On Tuesday, October 14, 2014 1:10:52 AM UTC+3, Richard Dennis wrote: > > Hi All, > > does anyone else get an error when they run the following in REPL: > No error in Julia Version 0.3.1 Commit c03f413 (2014-09-21 21:30 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: AMD A6-4455M A

[julia-users] Re: Naive question about data frames -- What are they used for?

2014-10-25 Thread Kaj Wiik
A followup from a fellow astronomer: what is the overhead of data frames compared to plain arrays, are there any benchmarks available? When I should avoid of using data arrays or should I use them always :-)? Cheers, Kaj On Saturday, October 25, 2014 3:37:18 PM UTC+3, Daniel Carrera wrote: > >

Re: [julia-users] Re: Naive question about data frames -- What are they used for?

2014-10-26 Thread Kaj Wiik
like those found in GLM) to transform a tabular > data structure into an Matrix{Float64} > (4) Do numerical computations on Matrix{Float64} > > — John > > On Oct 25, 2014, at 3:19 PM, Kaj Wiik > > wrote: > > A followup from a fellow astronomer: what is the overhead of dat

[julia-users] Re: Adding Compose circles/lines/polygons to Gadfly plots?

2015-01-09 Thread Kaj Wiik
Julia 0.3.5 Gadfly 0.3.10 julia> plot(sin, 0, 2pi, Guide.annotation(compose(context(), circle([pi/2, 3*pi/2], [1.0, -1.0], [2mm]), fill(nothing), stroke("orange" ERROR: annotation not defined ?? Kaj On Friday, January 9, 2015 at 6:28:03 AM UTC+2, Sheehan Olver wrote: > > I came across thi

[julia-users] Re: Adding Compose circles/lines/polygons to Gadfly plots?

2015-01-10 Thread Kaj Wiik
wrote: > > Kaj, > > Guide.annotation was recently added. I haven't tagged a new version since > its inclusion, so you need to either checkout master (with > Pkg.checkout("Gadfly")) or wait until I tag 0.3.11. > > On Friday, January 9, 2015 at 4:42:38 PM U

Re: [julia-users] Re: Linking values in composite type and array?

2016-01-12 Thread Kaj Wiik
Thanks Kevin! Haven't thought of reinterpret in this context, very elegant solution for array of omposites - composite of arrays type of problems. Cheers, Kaj On Tuesday, January 12, 2016 at 8:04:26 PM UTC+2, Kevin Squire wrote: > > > Hi Jon, > > On Tue, Jan 12, 2016 at 8:53 AM, David P. Sande

[julia-users] Re: Help: PyPlot cannot be included in ~/.juliarc.jl?

2016-01-20 Thread Kaj Wiik
Hi! I have the same problem with julia> versioninfo() Julia Version 0.4.3 Commit a2f713d (2016-01-12 21:37 UTC) Platform Info: System: Linux (x86_64-unknown-linux-gnu) CPU: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINIT

[julia-users] Re: Help: PyPlot cannot be included in ~/.juliarc.jl?

2016-01-20 Thread Kaj Wiik
Yes, calling ion() does help, thanks! On Wednesday, January 20, 2016 at 9:01:36 PM UTC+2, cdm wrote: > > maybe interactive mode is off somehow ... > > does a call to > >ion() > > help ... ? > > > > On Wednesday, January 20, 2016 at 12:05:51 AM UTC-8, Daniel Carrera wrote: >> >> Hello, >> >>

[julia-users] Parametric splines?

2016-03-19 Thread Kaj Wiik
Is there a Julia package that implements parametric splines? I noticed that the Dierckx Fortran library has an implementation but the corresponding Julia package does not does not have bindings for it. Thanks, Kaj

[julia-users] Re: Parametric splines?

2016-03-19 Thread Kaj Wiik
= interpolate.splev(unew, tck) using Winston plot(x, y, "o", out[1], out[2], "-r") BTW, is there an easier way to create an array of vectors? Cheers, Kaj On Saturday, March 19, 2016 at 4:13:19 PM UTC+2, Kaj Wiik wrote: > > > Is there a Julia package that implements param

Re: [julia-users] Re: Parametric splines?

2016-03-21 Thread Kaj Wiik
ay{Float64,1}: > 0.0 > 0.587785 > 0.951057 > 0.951057 > 0.587785 > 1.22465e-16 > > Best, > — Kyle > ​ > > On Sat, Mar 19, 2016 at 3:24 PM, Kaj Wiik > > wrote: > >> Replying to myself...sorry. >> >> It seems that

Re: [julia-users] Re: Parametric splines?

2016-03-21 Thread Kaj Wiik
., 4.]; >> >> julia> Vector{Float64}[a, b] >> 2-element Array{Array{Float64,1},1}: >> [1.0,2.0] >> [3.0,4.0] >> >> The plan for Julia 0.5, is that you won’t need to prepend the element >> type: just [a, b] will do. >> >> By th

[julia-users] Re: [ANN] Cuba.jl: library for multidimensional numerical integration

2016-04-12 Thread Kaj Wiik
Very nice work indeed! Is it possible to pass 'userdata' to integrand in Julia? It is mentioned in sources but is not listed in keywords. Thanks, Kaj On Tuesday, April 12, 2016 at 5:34:32 PM UTC+3, Mosè Giordano wrote: > > A quick update: with new version 0.0.5 the syntax of the integrand > fu

[julia-users] Re: [ANN] Cuba.jl: library for multidimensional numerical integration

2016-04-13 Thread Kaj Wiik
On Wednesday, April 13, 2016 at 6:14:29 AM UTC+3, Steven G. Johnson wrote: > You don't need an explicit userdata argument -- this is just a crude > simulation of closures in C, but Julia has true closures and lexical > scoping. > > For example > > > myvar = 7 > Vegas( (x,f) -> f[1] = log(x[1]

Re: [julia-users] Re: [ANN] Cuba.jl: library for multidimensional numerical integration

2016-04-13 Thread Kaj Wiik
docs.org/en/latest/#passing-data-to-the-integrand-function > > Bye, > Mosè > > > 2016-04-13 5:14 GMT+02:00 Steven G. Johnson >: > >> >> >> On Tuesday, April 12, 2016 at 4:51:07 PM UTC-4, Kaj Wiik wrote: >>> >>> Very nice work indeed! >>&g

[julia-users] Re: julia ?

2016-04-26 Thread Kaj Wiik
You are missing matplotlib library, try: apt-get install python-matplotlib In REPL: Pkg.build(PyPlot") Kaj On Tuesday, April 26, 2016 at 10:59:01 AM UTC+3, Henri Girard wrote: > > Here is the kind of error I got : > > INFO: Recompiling stale cache file /home/pi/.julia/lib/v0.4/PyCall.ji for

[julia-users] Re: julia ?

2016-04-26 Thread Kaj Wiik
Oops, typo, shoud be Pkg.build("PyPlot") On Tuesday, April 26, 2016 at 11:34:09 AM UTC+3, Kaj Wiik wrote: > > You are missing matplotlib library, try: > > apt-get install python-matplotlib > > In REPL: > > Pkg.build(PyPlot") > > Kaj > > >

[julia-users] PyCall and callbacks (paho-mqtt)

2016-04-27 Thread Kaj Wiik
I am trying to call the paho-mqtt library (https://pypi.python.org/pypi/paho-mqtt), here's the Python example code: import paho.mqtt.client as mqtt # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print("Connected w

[julia-users] Re: PyCall and callbacks (paho-mqtt)

2016-04-27 Thread Kaj Wiik
On Thursday, April 28, 2016 at 1:11:03 AM UTC+3, Steven G. Johnson wrote: > > ERROR: LoadError: PyError (:PyObject_Call) > 'exceptions.AttributeError'> >> AttributeError("'PyCall.jl_Function' object has no attribute 'func_code'" >> ,) >> >> > The foo.func_code attribute of a Python function foo r

[julia-users] manipulate.jl (Tk) with Gtk+

2014-03-19 Thread Kaj Wiik
Hi! First, congrats for the developers! Julia seems to be a wonderful language, many thanks! Then, my first question to this list, I guess it is possible to accomplish something like this: https://github.com/JuliaLang/Tk.jl/blob/master/examples/manipulate.jl with Gtk instead of Tk, any pointers

[julia-users] Re: manipulate.jl (Tk) with Gtk+

2014-03-19 Thread Kaj Wiik
sday, March 19, 2014 11:48:27 AM UTC-4, Kaj Wiik wrote: >> >> Hi! >> >> First, congrats for the developers! Julia seems to be a wonderful >> language, many thanks! >> >> Then, my first question to this list, I guess it is possible to >> acco

[julia-users] Re: manipulate.jl (Tk) with Gtk+

2014-03-19 Thread Kaj Wiik
Kaj On Wednesday, March 19, 2014 11:48:13 PM UTC+2, j verzani wrote: > > I guess Winston doesn't export PlotContainer now. I just added qualified > references and pushed the change. Does it work now after updating? > > On Wednesday, March 19, 2014 5:28:51 PM UTC-4, Kaj

[julia-users] Re: manipulate.jl (Tk) with Gtk+

2014-03-19 Thread Kaj Wiik
fixed. If there are any more, maybe best to move over > to an issue. Thanks for the feedback. > > On Wednesday, March 19, 2014 6:17:20 PM UTC-4, Kaj Wiik wrote: >> >> JGUI compiles now OK but when trying to run the examples, I get >> >> julia> manipulate(ex, (:

Re: [julia-users] Re: Radio.jl: a digital communications package

2014-04-08 Thread Kaj Wiik
On Tuesday, April 8, 2014 5:43:05 AM UTC+3, Jay Kickliter wrote: > > You're absolutely right tagging, but have no intention of turning Radio > into a streaming processing framework. My inspiration is > LiquidDSPand Matlab's communications toolbox. If > liquid wasn't GPL,

[julia-users] How does "pass-by-sharing" work exactly?

2014-05-01 Thread Kaj Wiik
As a new user I was surprised that even if you change the value of function arguments (inside the function) the changes are not always visible outside but in some cases they are. Here's an example: function vappu!(a,b) a[3]=100 b = b .+ 5 (a,b) end c = [1:5] d = [1:5] vap

[julia-users] Re: How does "pass-by-sharing" work exactly?

2014-05-01 Thread Kaj Wiik
all. > > > > On Thursday, May 1, 2014 7:39:14 PM UTC+8, Kaj Wiik wrote: >> >> As a new user I was surprised that even if you change the value of >> function arguments (inside the function) the changes are not always visible >> outside but in some cases

[julia-users] Re: How does "pass-by-sharing" work exactly?

2014-05-01 Thread Kaj Wiik
Hm, but the idea is to write an in-place modifying function...in fact it might be a good idea to look how the ! functions are implemented. On Thursday, May 1, 2014 3:28:58 PM UTC+3, Freddy Chua wrote: > > don't even pass it to a function, just do > b = b .+ 5 > > wherever you need to. > > Shoul

Re: [julia-users] How does "pass-by-sharing" work exactly?

2014-05-01 Thread Kaj Wiik
Yes, this is exactly what I was after, thanks! Cheers, Kaj On Thursday, May 1, 2014 4:03:35 PM UTC+3, Kevin Squire wrote: > > b[:] = b .+ 5 > > has the behavior that you want. However, it creates a copy, does the > addition, then copies the result back into b. > > So, looping (aka devectorizi

Re: [julia-users] Re: Julia T-shirt and Sticker

2014-06-11 Thread Kaj Wiik
I searched through 2,276 of 'Julia' hits in zazzle and did not find your design, could you give a specific link, please... Kaj On Wednesday, June 11, 2014 4:47:00 PM UTC+3, Sorami Hisamoto wrote: > > I've made the T-shirt and sticker on Zazzle ( http://www.zazzle.com/ > ); you can upload whate

  1   2   >