Re: [casper] General GPIO

2024-03-26 Thread Kaj Wiik
- M13 - N13 - M15 - N15 - M14 - N14 Thanks, Kaj On 19.3.2024 21.29, Jack Hickish wrote: On Mon, 11 Mar 2024 at 08:47, Kaj Wiik <mailto:kaj.w...@iki.fi>> wrote: Hi all, Somewhat related to the previous question: how to define and use (RF

[casper] General GPIO

2024-03-11 Thread Kaj Wiik
Hi all, Somewhat related to the previous question: how to define and use (RFSoC) pins as GPIOs via the gpio block? I noticed that group 'led' is in both gpio block mask and in .yaml but e.g. there is 'pmod' group in rfsoc4x2.yaml but it is not seen in the gpio mask parameters. Can that group be

Re: [casper] VDIF Packetizer

2024-03-06 Thread Kaj Wiik
Hi Mayukh and all, I am developing a single dish backend with RFSoC and extending that for VDIF streaming would be very interesting. Opening the source would be very welcome! Thanks, Kaj On Wed, 6 Mar 2024 at 22:21, Mayukh Bagchi wrote: > Hello Casperites, > > Hope you all are doing well. >

Re: [casper] Failed to build Casperfpga

2023-11-22 Thread Kaj Wiik
Hi Bishnu, I vaguely remember stumbling into this, the problem was a broken Linux release of Matlab. I found this from my notes: Ubuntu 20 comes with gcc 7.x to 9.x versions by default; you need to either install gcc 6.x manually or create a symbolic link using the following sudo commands: sudo

Re: [casper] Help with setting up RFSoC

2023-11-15 Thread Kaj Wiik
;>>> >>>> Mitch >>>> >>>> On Oct 28, 2023, at 9:11 AM, Heystek Grobler >>>> wrote: >>>> >>>> Good day Mitch and Kaj. >>>> >>>> I hope that you guys are still doing well. >>>>

Re: [casper] KR port, was: Installing the toolchain (segfault!)

2023-10-10 Thread Kaj Wiik
used to support the board are no longer required now the rfdc block is increasingly mature Cheers Jack On Tue, 10 Oct 2023, 15:59 Kaj Wiik, <mailto:kjw...@utu.fi>> wrote: On 10.10.2023 17.32, Mitchell Burnett wrote: > The `*_base.tcl` files are not being used in the toolflo

Re: [casper] Installing the toolchain (segfault!)

2023-10-10 Thread Kaj Wiik
On 10.10.2023 17.32, Mitchell Burnett wrote: The `*_base.tcl` files are not being used in the toolflow for RFSoC parts and so you do not need to worry about generating a new base tcl file for the zcu208. This is interesting and useful information! One file less to worry about when porting

Re: [casper] Installing the toolchain (segfault!)

2023-10-10 Thread Kaj Wiik
I will see if I can figure out a good way of sharing the virtual machine I have in the next few days as there are a couple of people who've shown interest. Regards Andrew On Sun, 19 Feb 2023, 12:11 Kaj Wiik, wrote: Hi Andrew, On 17/02/2023 21:0

Re: [casper] PL data to PS DDR4 (AXI) {External}

2023-10-05 Thread Kaj Wiik
Hi all, I would be very interested in an example of DMA transfer from PL to PS in CASPER. I am working on Knowledge Resources module that has 8 GB both in PL and PS, 8 GB readable buffer in PL would be very useful. Cheers, Kaj On 5.10.2023 18.05, Matthew Schiller wrote: Yeah depends on what

Re: [casper] Help with setting up RFSoC

2023-10-01 Thread Kaj Wiik
Hi Heystek, Usually the license comes with the full set, at least the academic ones that we get and the components (like Sysgen) are not specifically listed in the license file. They are also 'backwards compatible' so 2023.6 should work just fine with e.g. 2021.1. Maybe for some reason Sysgen is

[casper] Vivado fails when using capital letters in Simulink project names (sort of solved)

2023-09-30 Thread Kaj Wiik
Hi! Just mentioning this in case others are stumbling into it: it seems that if you use capital letters in Simulink model files (.slx), Vivado fails with an error like: --- # create_ip -name KURPol -vendor User_Company -library SysGen -version 1.0 -module_name KURPol_ip ERROR: [Coretcl

Re: [casper] Error in Matlab running startsg

2023-06-09 Thread Kaj Wiik
Forgot to mention that these instructions were a bit RFSoC specific... Cheers, Kaj On Fri, 9 Jun 2023 at 23:36, Kaj Wiik wrote: > Hi Ben, > > Here are my install notes and snippets copied from the web: > https://gitlab.utu.fi/kjwiik/casper-installation/-/blob/main/README.md &g

Re: [casper] Error in Matlab running startsg

2023-06-09 Thread Kaj Wiik
Hi Ben, Here are my install notes and snippets copied from the web: https://gitlab.utu.fi/kjwiik/casper-installation/-/blob/main/README.md In fact, I found that Ubuntu 18.04 works a bit better, e.g. the CASPER tools in the Simulink menu does not appear in 20.04. Hope this helps, Kaj On Fri, 9

Re: [casper] Roach monitor and management subsystem

2023-03-22 Thread Kaj Wiik
Hi! I do not have experience on ROACH but found this: http://telegraphic.github.io/roachnest/ Cheers, Kaj On 22/03/2023 18:54, Wang wrote: Hi CASPER, I want to manage and monitor ROACH2 status. I found this website has what I want. Roach monitor and management subsystem - Casper

[casper] Ubuntu 20.04 and enbr64 error (solved!)

2023-03-18 Thread Kaj Wiik
Hi! In case others are struggling with this problem... When running a simulation in my Ubuntu 20.04 system I got "Error: no such instruction: `endbr64'". I spent a lot of time on this including making links to /usr/include without success. Then I tried !gcc /tmp/hello.c /tmp/cc2Od0Ug.s:

Re: [casper] Installing the toolchain

2023-02-23 Thread Kaj Wiik
in the simulink log file that simulink points you too in the diagnostic viewer. If it isn’t licensing, then I am not really sure. Mitch On Feb 21, 2023, at 8:13 AM, Kaj Wiik mailto:kjw...@utu.fi>> wrote: Hi! As a test I made a design with only sysgen, ZCU111 and rfdc block and I got the

Re: [casper] Installing the toolchain

2023-02-21 Thread Kaj Wiik
A quick update: I get the same error in the nrp-nautilus cloud. Any suggestions? Thanks, Kaj On 21/02/2023 17:13, Kaj Wiik wrote: Hi! As a test I made a design with only sysgen, ZCU111 and rfdc block and I got the same The S-function 'sysgen

Re: [casper] Installing the toolchain

2023-02-21 Thread Kaj Wiik
/m2021a'. (base) kjwiik@rfsoc:~/casper/xilinx/device-tree-xlnx$ git status On branch master Your branch is up to date with 'origin/master'. On 2/20/23 18:12, Kaj Wiik wrote: Hi! An update... The segfault was (fortunately!) due to Ubuntu 20.04 running a 18.04 kernel (Linux System Containers

Re: [casper] Installing the toolchain

2023-02-19 Thread Kaj Wiik
Hi! After setting numpy<1.20 in requirements.txt and doing this (copying it here because the link was broken yesterday!): https://docs.xilinx.com/r/2021.2-English/ug1483-model-composer-sys-gen-user-guide/Supported-MATLAB-Versions-and-Operating-Systems - Prerequisites

Re: [casper] Installing the toolchain (segfault!)

2023-02-19 Thread Kaj Wiik
lso recommend our 'cloud' solution. That sounds interesting, please let me know more! Thanks, Kaj Cheers Andrew On Fri, 17 Feb 2023, 17:47 Kaj Wiik, mailto:kjw...@utu.fi>> wrote: Hi! This is an old thread but as there was no confirmation of a working environment I decided to

Re: [casper] Installing the toolchain

2023-02-17 Thread Kaj Wiik
Hi! On 17/02/2023 21:08, Andrew Martens wrote: I would also recommend our 'cloud' solution. Interesting, what's that? Cheers, Kaj -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop

Re: [casper] Installing the toolchain

2023-02-17 Thread Kaj Wiik
Hi! This is an old thread but as there was no confirmation of a working environment I decided to share my solution because I stubled exactly to this problem when restarting the development after a long pause (Matlab r2021a, Vivado & Vitis 2021.1, Ubuntu 20.04). There seems to be a number of

Re: [casper] SSL error, can't see the wiki

2023-01-11 Thread Kaj Wiik
gt; letsencrypt. > > > > > > On Wed, Jan 11, 2023 at 1:19 PM Kaj Wiik wrote: > >> I can confirm this, definitely something wrong with the server setup. >> >> Thanks, >> Kaj >> >> >> >> On Wed, 11 Jan 2023 at 23:08, dps7802 wrote: >>

Re: [casper] SSL error, can't see the wiki

2023-01-11 Thread Kaj Wiik
I can confirm this, definitely something wrong with the server setup. Thanks, Kaj On Wed, 11 Jan 2023 at 23:08, dps7802 wrote: > Casperites, > > I'm getting SSL errors when I try to look at links from my notes. > > I can see the main page > https://casper.berkeley.edu/ > > but when I click

Re: [casper] Casper RFSoC toolflow setup

2022-03-01 Thread Kaj Wiik
resource! Cheers, Kaj On 01/03/2022 10:14, Adam Isaacson wrote: Well done, Kaj, Mitch and Jack! :). Kind regards, Adam On Mon, Feb 28, 2022 at 9:26 PM Kaj Wiik <mailto:kaj.w...@utu.fi>> wrote: First, I apologize my frustrated tone in my previous messages, those resulted fr

Re: [casper] Different Software Versions

2022-02-21 Thread Kaj Wiik
On 21/02/2022 22:15, Morag Brown wrote: While I think most people on this mailing list can certainly share your frustrations with getting the toolflow to work, I think it's important to emphasize that this is an open collaboration that many contribute to without it strictly speaking being

Re: [casper] Different Software Versions

2022-02-21 Thread Kaj Wiik
requirements.txt in the root of the mlib_devel which should list any python dependencies and appropriate versions. I am not sure how well this is kept uptodate though. Regards Wes On Mon, Feb 21, 2022 at 1:24 PM Kaj Wiik mailto:kjw...@utu.fi>> wrote:

Re: [casper] Different Software Versions

2022-02-21 Thread Kaj Wiik
Hi Adam, I am sorry but I missed your reply too. The reason for us to experiment with different versions was to get RFSoC (specifically ZCU111) stuff working (by following the documentation in

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-21 Thread Kaj Wiik
my startsg did not work. Try our repo: www.github.com/ska-sa/mlib_devel <http://www.github.com/ska-sa/mlib_devel> (alveo_u50) branch, I think. Try it and let me know. Ask Wesley for help if not. If this has nothing to do with the issue then my apologies and sorry for leading you astray.

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Kaj Wiik
/2022 15:28, Jack Hickish wrote: I think that's pretty much what mine looks like. :) On Sat, 12 Feb 2022 at 13:08, Kaj Wiik <mailto:kaj.w...@utu.fi>> wrote: Hi Jack, It indeed might be the fastest way to follow your setup. Screenshot of the 'simulink' window I get is

Re: [casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Kaj Wiik
Hmm, it seems that a window *is* opened but it is totally different than the normal Simulink window (looks oldfashioned with large fonts). Still, ideas how to get the 'correct' GUI window are welcomed. Thanks, Kaj On 12/02/2022 11:35, Kaj Wiik wrote: Hi Casperites, I am trying to install

[casper] Simulink window does not open when Matlab is started by startsg

2022-02-12 Thread Kaj Wiik
Hi Casperites, I am trying to install the RFSoC toolchain following the instructions from https://github.com/casper-astro/tutorials_devel/blob/master/docs/tutorials/rfsoc/tut_getting_started.md I am using Ubuntu 20.04 LTS, Vivado 2020.2, and Matlab 2019a (with Simulink) The problem is that

Re: [casper] Toolflow problems and a fix

2022-02-03 Thread Kaj Wiik
this issues. I guess as long as we keep track then this is fine. Creating firmware and installs that work for everyone does come with its issues. Well spotted. Kind regards, Adam On Fri, 21 Jan 2022, 5:01 PM Kaj Wiik, mailto:kjw...@utu.fi>> wrote: Hi Casperites! We had a s

[casper] Toolflow problems and a fix

2022-01-21 Thread Kaj Wiik
Hi Casperites! We had a strange problem that when we installed a toolflow for a new user, it failed. An untouched original toolflow worked fine. It seems that there is a new version of PyYAML that is not compatible with the toolflow (or other packages) and it must be pinned. Here's our fixed

Re: [EXT]Re: [casper] low cost academic xilinx RFSOC board - feb 28 tutorial 8am pacific

2021-03-09 Thread Kaj Wiik
-Original Message- From: Kaj Wiik Sent: Tuesday, March 9, 2021 7:21 AM To: casper@lists.berkeley.edu Subject: [EXT]Re: [casper] low cost academic xilinx RFSOC board - feb 28 tutorial 8am pacific External Email Hi! Did the tutorial reveal any further info (spec sheet, availability

Re: [casper] low cost academic xilinx RFSOC board - feb 28 tutorial 8am pacific

2021-03-09 Thread Kaj Wiik
Hi! Did the tutorial reveal any further info (spec sheet, availability) of this board? Thanks, Kaj On 16/02/2021 16:36, Francois Kapp wrote: Hi Colm, We discussed this and it appears that only two of the ADC's and DAC's will be routed to connectors, hence the 2x2.  Dan has already asked

Re: [casper] New setup installation problems (python setup.py egg_info" failed with error code 1) [Success!!!]

2021-02-03 Thread Kaj Wiik
Hi Adam, Infos, 0 Warnings, 0 Critical Warnings and 0 Errors encountered. write_cfgmem completed successfully INFO: [Common 17-206] Exiting Vivado at Wed Feb 3 13:27:22 2021... Created /home/kjwiik/mlib_devel/jasper_library/test_models/test_snap_adc/outputs/test_snap_adc_2021-02-03_1321.bof

Re: [casper] New setup installation problems (python setup.py egg_info" failed with error code 1)

2021-02-02 Thread Kaj Wiik
Hi all, An idea: what if you shipped a working python venv as tgz with the toolflow? Cheers, Kaj On 02/02/2021 18:33, Kaj Wiik wrote: Hi Adam, The screen capture of ../casper-venv/lib64/python3.5/site-packages is attached. When I opened the test_snap.slx, I got several "Warning

Re: [casper] New setup installation problems (python setup.py egg_info" failed with error code 1)

2021-01-24 Thread Kaj Wiik
OOT').rstrip('/') #: The base directory from which source file's locations are specified AttributeError: 'NoneType' object has no attribute 'rstrip' --- Could this be again a python version problem? Thanks, Kaj On 1/22/21 6:50

Re: [casper] New setup installation problems (python setup.py egg_info" failed with error code 1)

2021-01-22 Thread Kaj Wiik
yellow block for the ZCU111. best wishes, dan Dan Werthimer Marilyn and Watson Alberts Chair Astronomy Dept and Space Sciences Lab University of California, Berkeley On Wed, Jan 20, 2021 at 12:17 PM Kaj Wiik <mailto:kaj.w...@utu.fi>> wrote: On 20/01/2021 18:49, Jack Hick

Re: [casper] New setup installation problems (python setup.py egg_info" failed with error code 1)

2021-01-20 Thread Kaj Wiik
On 20/01/2021 18:49, Jack Hickish wrote: I've been using Ubuntu 18.04 LTS without issues, at least with the boards which use Vivado 2019. I'm not sure  what versions of python the OS came with, but I'm currently running the toolflow in a python 3.6.9 virtual env. I first tried with

Re: [casper] New setup installation problems (python setup.py egg_info" failed with error code 1)

2021-01-20 Thread Kaj Wiik
ngs/> then maybe it's a python<3.6 issue. Cheers Jack On Wed, 20 Jan 2021 at 15:45, Kaj Wiik <mailto:kjw...@utu.fi>> wrote: Hi! As per instructions, I installed an (obsolete!) Ubuntu 16.04 with Matlab 2018a and Vivado 2019.1.1. Matlab install went fine but when I

[casper] New setup installation problems (python setup.py egg_info" failed with error code 1)

2021-01-20 Thread Kaj Wiik
Hi! As per instructions, I installed an (obsolete!) Ubuntu 16.04 with Matlab 2018a and Vivado 2019.1.1. Matlab install went fine but when I try to install requirements for the toolflow, I get the following error message: ---

[lxc-users] setgid: Operation not permitted

2019-04-09 Thread Kaj Wiik
I have an unprivileged container with Ubuntu 18.04 with autossh for remote port forwarding. Everything worked fine until I tried to bind mount a NFS disk (mounted to host) to the container with uid=33 gid=33. What is curious, everything worked for a while but then a user reported that he cannot

Re: [lxc-users] Unprivileged containers with /home on NFS, chown not permitted

2019-02-22 Thread Kaj Wiik
I disabled subtree check that did not solve the problem... Is this something expected, i.e. there is nothing to do for it and should I move to privileged containers? I would not like to do that... Thanks, Kaj On Wed, 20 Feb 2019 at 12:53, Kaj Wiik wrote: > I investigated further and i

Re: [lxc-users] Unprivileged containers with /home on NFS, chown not permitted

2019-02-20 Thread Kaj Wiik
with the difference of normal directory and NFS but what...? Thanks, Kaj On Wed, 20 Feb 2019 at 00:23, Kaj Wiik wrote: > Hi! > > I have set up an unprivileged container with bind mount /home from NFS > share mounted on host. > > The /home directory has been mapped to root in the contai

[lxc-users] Unprivileged containers with /home on NFS, chown not permitted

2019-02-19 Thread Kaj Wiik
Hi! I have set up an unprivileged container with bind mount /home from NFS share mounted on host. The /home directory has been mapped to root in the container: printf "uid 42000 0\ngid 42000 0\n" | lxc config set container raw.idmap - The problem is that chown does not work, e.g.: chown:

[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

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

[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: > >

[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

[julia-users] Re: Maps in Julia?

2016-09-10 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-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

[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

[julia-users] Re: Running Julia in Ubuntu

2016-09-01 Thread Kaj Wiik
: >>>> >>>> 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 install dependancie

[julia-users] Re: Running Julia in Ubuntu

2016-08-31 Thread Kaj Wiik
0.2.4 >>> - ReverseDiffSparse 0.5.8 >>> - SHA 0.2.1 >>> - URIParser 0.1.6 >>> - ZMQ 0.3.4 >>> >>> >>> On Tuesday, August 30, 2

[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/)

[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: 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: Julia version of Matplotlib griddata?

2016-07-14 Thread Kaj Wiik
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 Wiik

[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 irregular

[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

[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].

[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] Re: ERROR: syntax: "±" is not a unary operator

2016-06-22 Thread Kaj Wiik
ithout 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] 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

[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: > >

[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 >

Re: [julia-users] Re: umask?

2016-06-08 Thread Kaj Wiik
37. 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 <kaj@gmail.com > > wrote: > >> I tried >> ccall( (:umask, "libc"), Cint, (Cint,), 0o22) >> and while it did not give any error and in f

[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

[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: 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

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,

[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

[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

[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

[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

[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] 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

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 <steve...@gmail.com > >: > >> >> >> On Tuesday, April 12, 2016 at 4:51:07 PM UTC-4, Kaj Wiik wrote: >>> >>> Ve

[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] =

[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 >

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

2016-03-21 Thread Kaj Wiik
]; >> >> 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 the w

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

2016-03-21 Thread Kaj Wiik
oat64,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 <kaj@gmail.com > > wrote: > >> Replying to myself...sorry. >> &g

[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

[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: 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] 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

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.

[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

[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 >

[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] 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: 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(); add(p,pp);

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

2015-08-02 Thread Kaj Wiik
: 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: Hi! Try savefig(p

[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 installed

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 reference

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

2015-07-21 Thread Kaj Wiik
and for your work on this lovely language! Cheers, Kaj On Tuesday, July 21, 2015 at 11:46:11 PM UTC+3, Ismael VC wrote: Not related, but how do you edit the thread name in order to mark it as SOLVED? I haven't found a way to do this, thanks! El lunes, 20 de julio de 2015, 14:09:00 (UTC-5), Kaj

[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
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 Monday, July 20, 2015 at 2:09:00 PM UTC-5, Kaj Wiik wrote: I started to get a strange error

  1   2   3   >