[julia-users] Re: Simulink alternative, based on Julia?

2016-11-01 Thread J Luis
This example from the nuklear lib looks like this lib (C, header only) could be used for that. terça-feira, 1 de Novembro de 2016 às 08:51:03 UTC, Uwe

[julia-users] Re: ERROR: UndefVarError: PkgDev not defined

2016-10-24 Thread J Luis
Ok, sorry. Found it. Needed to using PkgDev but not that obvious since for using Pkg one do not need to 'using' it. segunda-feira, 24 de Outubro de 2016 às 22:57:06 UTC+1, J Luis escreveu: > > Hi, > > I'm trying to tag a new version of a package for the first time (initial &g

[julia-users] ERROR: UndefVarError: PkgDev not defined

2016-10-24 Thread J Luis
Hi, I'm trying to tag a new version of a package for the first time (initial tag was done with 0.4) but Pkg.update() ... WARNING: julia is fixed at 0.5.0-rc4+0 conflicting with requirement for GLFW : [0.5.0,∞) INFO: Upgrading ArgParse: v0.3.1 => v0.4.0 INFO: Upgrading Compat: v0.9.2 => v0.9.3

[julia-users] Re: Float64: 1.0 vs. 1.

2016-10-23 Thread J Luis
It parses .+ as broadcasting of two Ints. Do instead typeof(1. +1) Float64 segunda-feira, 24 de Outubro de 2016 às 02:33:15 UTC+1, christop...@unibas.ch escreveu: > > What is the difference between 1.0 and 1. ? > Both are of type Float64, but adding 1 leads to the result 2.0, i.e., >

Re: [julia-users] Re: Why does Julia 0.5 keep complaining about method re-definitions?

2016-09-28 Thread J Luis
> This a very heavy install. It's fetching tons of things that I have not > used. Not sure what they are, but seems like trashing my system. > Yes, unfortunately Conda is an unbearably big dependency (over 1.xxx Gb) that sneaks in via un-suspicious packages. A dependency this big should

[julia-users] Any way of recovering a corrupted .julia?

2016-09-20 Thread J Luis
Hi, So I did it again. While trying to install ImageMagick and at same time attempting to convince Julia that I already had one ImageMagick installed in my Win machine and manually deleted some files. After that the chaos. Every Pkg.update() has something to complain. For example julia>

[julia-users] Re: Maps in Julia?

2016-09-08 Thread J Luis
To give you guys an idea, these are all GMT mapping examples quinta-feira, 8 de Setembro de 2016 às 19:52:40 UTC+1, Chris escreveu: > > The PyCall README is quite comprehensive,

[julia-users] Re: Maps in Julia?

2016-09-08 Thread J Luis
Hi, The GMT.jl is still under development, namely it's waiting for the next (this month) release of GMT5.3, but it already gives you access to one of most powerful Mapping Tools. quinta-feira, 8 de Setembro de 2016 às 19:33:47 UTC+1, Chris escreveu: > >

Re: [julia-users] Re: Hard time with Compat and 0.5

2016-08-29 Thread J Luis
t; reason > why you can't make it just an ordinary function call. > > To sum up, to get rid of deprecation warnings write your code in the new > syntax. Add `@compat` only when Compat.jl's README tells you to do so. > > --Tim > > On Monday, August 29, 2016 8:46:42 AM CDT J Luis

[julia-users] Re: Hard time with Compat and 0.5

2016-08-29 Thread J Luis
versions of Julia. > If it parses correctly, Compat usually implements it with normal functions > and methods, no need for a syntax-rewriting macro. > > > On Monday, August 29, 2016 at 6:11:19 AM UTC-7, J Luis wrote: >> >> >>> >>> No,

[julia-users] Re: Hard time with Compat and 0.5

2016-08-29 Thread J Luis
> > No, it is: > > t = unsafe_wrap(Array, Gb.data, h.size) > > as in the deprecation warning. > Thanks (I'd figured it out too meanwhile) > (You don't need @compat just for function calls. You only need @compat > for things where the syntax changes in a more complicated way.) > Hmm,

[julia-users] Re: Hard time with Compat and 0.5

2016-08-26 Thread J Luis
Ok, I figured that one (Really needed a first argument 'Array') But now this @show(typeof(X.name)) name = bytestring([X.name...]) typeof(X.name) = Tuple{UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8 ,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8} WARNING: bytestring(v::Vector{UInt8}) is

[julia-users] Hard time with Compat and 0.5

2016-08-26 Thread J Luis
Hi, So I started trying to port my code to 0.5 using Compat and it seams a hell is expecting me. This is one example of what happens when I try to follow the deprecation suggestions. This t = pointer_to_array(Gb.data, h.size) #@compat t = unsafe_wrap(Gb.data, h.size) warns that

Re: [julia-users] Re: Help catting

2016-07-17 Thread J Luis
Hmm, thanks ... but too mysterious for me. What is 'dest' and 'i' (columns I guess, but how to loop on it?)? segunda-feira, 18 de Julho de 2016 às 01:34:11 UTC+1, Yichao Yu escreveu: > > On Sun, Jul 17, 2016 at 8:05 PM, J Luis <jmf...@gmail.com > > wrote: > > Ghrrr, this

[julia-users] Re: Help catting

2016-07-17 Thread J Luis
Ghrrr, this works julia> [pointer_to_array(C[1], DS.n_rows) pointer_to_array(C[2], DS.n_rows)] 186x2 Array{Float64,2}: 7.0 53.3242 6.99583 53.325 6.99249 53.3264 ... but I need a generic solution for a variable number of columns. segunda-feira, 18 de Julho de 2016 às 00:40:25 UTC+1

[julia-users] Help catting

2016-07-17 Thread J Luis
Hi, need help reshaping an output from C that comes out in N (columns) vectors into a 2-D matrix julia> C = pointer_to_array(DS.data, 2) 2-element Array{Ptr{Float64},1}: Ptr{Float64} @0x1bf17360 Ptr{Float64} @0x1bf17970 and julia> pointer_to_array(C[1], DS.n_rows) 186-element

[julia-users] Re: Array of types, how to?

2016-07-15 Thread J Luis
Since your Type is not mutable, you can just > overwrite what you put in there. > > On Friday, July 15, 2016 at 6:37:54 PM UTC-7, J Luis wrote: >> >> Thanks. Didn't know one could create empty types,, but is it a 0.5 >> feature. Because on 0.4 >> >> julia>

[julia-users] Re: Array of types, how to?

2016-07-15 Thread J Luis
= someMatrix. > You might want to read the documentation on type for more details. > > If you need the fields to be mutable, you can make one of the fields in > the type be a dictionary and use that, or you can use a cell array (I think > these may be deprecated?) > > > On F

Re: [julia-users] Re: Reconstruct a string from a Clang.jl generated looong type

2016-06-07 Thread J Luis
Just to tell that the NTuples way works beautifully, specially because we no longer are tied to an immutable that made the communication Julia -> C quite painfull. Thanks Joaquim segunda-feira, 6 de Junho de 2016 às 21:09:32 UTC+1, Steven G. Johnson escreveu: > > On Monday, June 6, 2016 at

Re: [julia-users] Re: Reconstruct a string from a Clang.jl generated looong type

2016-06-06 Thread J Luis
Ah, simple than. Thanks segunda-feira, 6 de Junho de 2016 às 18:11:53 UTC+1, Milan Bouchet-Valat escreveu: > > Le lundi 06 juin 2016 à 09:56 -0700, J Luis a écrit : > > > > > What exactly are you after? > > > > > What I'm after is simple. To be able

[julia-users] Re: Reconstruct a string from a Clang.jl generated looong type

2016-06-06 Thread J Luis
m/JuliaGPU/VulkanCore.jl/blob/master/gen/api/vk_common_1.0.0.jl#L1367 > Thanks. I will look. Joaquim > > Best, > Simon > > Am Montag, 6. Juni 2016 01:41:34 UTC+2 schrieb J Luis: >> >> Hi, >> >> I have one of those types generated from a C struct

[julia-users] Re: Reconstruct a string from a Clang.jl generated looong type

2016-06-06 Thread J Luis
least! > > bytestring(UInt8[a...]) > a = map(UInt8, ("abcd"...,)) > > Am Montag, 6. Juni 2016 01:41:34 UTC+2 schrieb J Luis: >> >> Hi, >> >> I have one of those types generated from a C struct with Clang.jl that >> turns a stack variable into a loo

[julia-users] Re: Reconstruct a string from a Clang.jl generated looong type

2016-06-06 Thread J Luis
The problem is that the text is inside one of those immutables generated by Clang (see: https://github.com/joa-quim/GMT.jl/blob/master/src/libgmt_h.jl#L371) so no simple bytestring(data) works because it complains that no method exists to convert from GMT.Array_80_Uint8 type And worst,

[julia-users] Re: Reconstruct a string from a Clang.jl generated looong type

2016-06-06 Thread J Luis
Thanks but the string encoding is not an issue. This julia code is a wrapper to a library that I know it uses only ASCII in the variables being accessed. segunda-feira, 6 de Junho de 2016 às 10:57:29 UTC+1, Páll Haraldsson escreveu: > > On Sunday, June 5, 2016 at 11:41:34 PM UTC, J Luis

[julia-users] Reconstruct a string from a Clang.jl generated looong type

2016-06-05 Thread J Luis
Hi, I have one of those types generated from a C struct with Clang.jl that turns a stack variable into a lng list of members (for example (but I have longer ones)) https://github.com/joa-quim/GMT.jl/blob/master/src/libgmt_h.jl#L1246 (an in interlude: isn't yet any better way of

Re: [julia-users] Time handling: Micro/Nanosecond precision and time string formatting like Unix

2016-04-29 Thread J Luis
Sorry, I see my mistake. I know that it's an overflow but I forgot that '2' is a signed 64 int so the max allowed is julia> 2^63-1 9223372036854775807 sexta-feira, 29 de Abril de 2016 às 14:26:38 UTC+1, Yichao Yu escreveu: > > On Fri, Apr 29, 2016 at 9:17 AM, J Luis <jmf...@gmail.co

Re: [julia-users] Time handling: Micro/Nanosecond precision and time string formatting like Unix

2016-04-29 Thread J Luis
OK, now I'm puzzled (0.4 on Win 64) julia> 2^60 1152921504606846976 julia> 2^62 4611686018427387904 julia> 2^63 -9223372036854775808 julia> 2^64 0 sexta-feira, 29 de Abril de 2016 às 14:03:52 UTC+1, Stefan Karpinski escreveu: > > I'll answer with a pair of questions: > >- what range

[julia-users] Re: Options for constructing a 3D surface from a point cloud

2016-04-21 Thread J Luis
Is something like this that you want? Maybe Simon can make us a generic example on how to plot the point clouds like this. quinta-feira, 21 de Abril de 2016 às 11:59:07 UTC+1, Simon Danisch escreveu: > > Well just

[julia-users] Re: Help with pipes

2016-03-12 Thread J Luis
de Março de 2016 às 00:36:19 UTC, ele...@gmail.com escreveu: > > Can't test ATM, but argument one IOBuffer(ps_string) ? > > On Sunday, 13 March 2016 09:52:52 UTC+10, J Luis wrote: >> >> Hi, >> >> I need to reproduce a similar behavior of this on command line. &g

[julia-users] Help with pipes

2016-03-12 Thread J Luis
Hi, I need to reproduce a similar behavior of this on command line. cat barco.eps | gswin64c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox - %%BoundingBox: 0 0 71 64 %%HiResBoundingBox: 0.00 0.00 70.865998 63.305998 What it does is to send the contents of a PostScript file (ascii file)

Re: [julia-users] Meshgrid function

2016-03-09 Thread J Luis
> I think this is a big mistake so many Julia developers (not all) are > making: > > I agree with this. For all those in future that are not necessarily programmers (and Julia hopes to attract many of those, I believe) and will need a meshgrid, the time will take them to find out the

[julia-users] Re: String interpolation question

2016-03-09 Thread J Luis
Worked for me julia> s="I like $x" "I like 2" quarta-feira, 9 de Março de 2016 às 13:59:47 UTC, Eric Forgy escreveu: > > If I have > > x = 2 > s = "I like \$x" > > > Is there a nice way to get > > "I like 2" > > > ? > >

[julia-users] Re: a excellent Julia IDE, JuliaDT

2016-03-08 Thread J Luis
Ok, thanks ... but will wait for a simpler thing to use. terça-feira, 8 de Março de 2016 às 19:32:28 UTC, Avik Sengupta escreveu: > > Use the "Eclipse IDE for Java Developers". That should give you the least > amount of cruft. > > Regards > - > Avik > > On

[julia-users] Re: 3D scatter / meshed surface color map

2016-03-03 Thread J Luis
y, March 3, 2016 at 5:28:29 PM UTC+1, J Luis wrote: >> >> Hmm, is 'peaks' part of GR? Because >> >> julia> using GR >> >> julia> z = peaks(); >> ERROR: UndefVarError: peaks not defined >> >>

[julia-users] Re: 3D scatter / meshed surface color map

2016-03-03 Thread J Luis
d archive leads to a chmod error, although I don't > use this function in build.jl. > Will have to use another method to delete the file. > > Nevertheless, the package should be installed > > On Thursday, March 3, 2016 at 3:13:33 PM UTC+1, J Luis wrote: >> >

[julia-users] Re: 3D scatter / meshed surface color map

2016-03-03 Thread J Luis
But unfortunately on Windows INFO: Downloading pre-compiled GR 0.17.3 binary =[ ERROR: GR ]== LoadError: chmod: no such file or directory (ENOENT) while loading C:\j\.julia\v0.4\GR\deps\build.jl, in expression starting on line 25

Re: [julia-users] eachindex is much slower than normal indexing for matrices

2016-02-25 Thread J Luis
Nope julia> s=0.0; julia> m=rand(1,1000); julia> @time for i in 1:1, j in 1:1000 s = s + m[i,j] end ERROR: UndefVarError: s not defined [inlined code] from .\none:2 in anonymous at .\no file:4294967295 in eval at :0 quinta-feira, 25 de Fevereiro de 2016 às 14:58:44

[julia-users] Re: eachindex is much slower than normal indexing for matrices

2016-02-25 Thread J Luis
Incidentally, this errors in 0.5 (but works fine in 0.4) julia> s=0.0; julia> m=rand(1,1000); julia> @time for el in m s = s + el end ERROR: UndefVarError: s not defined [inlined code] from .\none:2 in anonymous at .\no file:4294967295 in eval at :0

[julia-users] Re: Options for constructing a 3D surface from a point cloud

2016-02-17 Thread J Luis
It is not yet registered but you can use GMT , namely its module 'surface' to do a minimum curvature interpolation (but other algorithms are available as well). quarta-feira, 17 de Fevereiro de 2016 às 17:46:57 UTC, Chris escreveu: > > If I have a set of 3D

Re: [julia-users] Is this a 0.5 bug?

2016-02-17 Thread J Luis
Ok, thanks. Surprising for Matlab users but ok. quarta-feira, 17 de Fevereiro de 2016 às 15:30:54 UTC, Yichao Yu escreveu: > > On Wed, Feb 17, 2016 at 10:22 AM, J Luis <jmf...@gmail.com > > wrote: > > Hi, see > > > > function ttt() > >

[julia-users] Is this a 0.5 bug?

2016-02-17 Thread J Luis
Hi, see function ttt() t1 = [-1167.3955469319576 9.9]; t2 = [-1170.4689400259758 -15.31]; t = [t1[1,:]; t2[1,:]] @show(t1,t2,t) end prints on 0.4 t1 = [-1167.3955469319576 9.9] t2 = [-1170.4689400259758 -15.31] t = [-1167.3955469319576 9.9

Re: [julia-users] Re: Googling the functions I need in Julia is hard

2016-02-12 Thread J Luis
One main 'dislike' I find in the documentation is that, contrary to Matlab and R examples that have one page for each function, in julia we have lots of functions per page with short and often cryptic descriptions. Example std(*v*[, *region*]) Compute the sample standard deviation of a vector

[julia-users] Re: Conda

2016-02-04 Thread J Luis
Small? Mine (that I didn't ask for) has 320 Mb. quinta-feira, 4 de Fevereiro de 2016 às 19:44:54 UTC, digxx escreveu: > > When I do not have Conda installed but install PyCall in Julia does > Pkg.add("PyCall") still installs its own small PYthon distribution? >

Re: [julia-users] Re: Shell commands in Julia 0.4.2 in Windows 10

2016-01-20 Thread J Luis
On Windows one can julia> pwd() "C:\\programs\\Julia-0.4" shell> cd C:\j julia> pwd() "C:\\j" quarta-feira, 20 de Janeiro de 2016 às 15:45:04 UTC, Yichao Yu escreveu: > > On Wed, Jan 20, 2016 at 10:39 AM, Tony Kelman > wrote: > > Julia has portable functions for all of

[julia-users] Re: Trying again Cxx on Windows

2016-01-05 Thread J Luis
to build into directory with a shell-metacharacter in the path (got: C:/programs/julia64/usr/bin/../..). Stop. What " shell-metacharacter "? terça-feira, 5 de Janeiro de 2016 às 19:21:31 UTC, J Luis escreveu: > > So I built 0.5 with llvm 3.7.1 on Windows with the aim of trying (ag

[julia-users] Trying again Cxx on Windows

2016-01-05 Thread J Luis
So I built 0.5 with llvm 3.7.1 on Windows with the aim of trying (again) to build Cxx, but ... any idea why it errors with (which is not true)? Pkg.build("Cxx") LoadError: could not spawn `make -f BuildBootstrap.Makefile JULIA_HOME=C:/programs/julia64/usr/bin`: no such file or directory

Re: [julia-users] Re: Trying again Cxx on Windows

2016-01-05 Thread J Luis
; paths into msys style paths. > > On Tue, Jan 5, 2016 at 8:35 PM, J Luis <jmf...@gmail.com > > wrote: > >> Hmm, I found a problem. When running Julia it doesn't know anything about >> 'make'. So I added the msys2 dir where it lives to the path and moved to >> next erro

Re: [julia-users] Re: Trying again Cxx on Windows

2016-01-05 Thread J Luis
/62#issuecomment-88979566 > > If you have gotten through the LLDB build then maybe that no longer > applies. > > and indeed, I have no ScopeInfo.h arround > > > https://github.com/Keno/Cxx.jl/issues/207#issuecomment-169043432 > > On Tue, Jan 5, 2016 at 4:57 PM, J Luis <jm

Re: [julia-users] Re: Trying again Cxx on Windows

2016-01-05 Thread J Luis
eof(void*))),FD->getReturnType()); ... (more errors) terça-feira, 5 de Janeiro de 2016 às 23:08:15 UTC, J Luis escreveu: > > I'm not trying to build with LLDB. Actually, I had to build with (in > Make.user) > > LLVM_VER=3.7.1 > > adding the other settings advised in the Cxx

Re: [julia-users] Re: Trying again Cxx on Windows

2016-01-05 Thread J Luis
build, so my only > recommendation would be to remove the LLVM build directory. > > On Tue, Jan 5, 2016 at 6:08 PM, J Luis <jmf...@gmail.com > > wrote: > >> I'm not trying to build with LLDB. Actually, I had to build with (in >> Make.user) >> >> LLVM_VER=3.7

Re: [julia-users] What is @d?

2015-12-24 Thread J Luis
https://www.mythicsoft.com/agentransack You won't have grepping problems again. quinta-feira, 24 de Dezembro de 2015 às 05:41:05 UTC, Eric Forgy escreveu: > > Cool! Thanks Greg. I am also using Atom and happy to learn new tricks :) > > On Thursday, December 24, 2015 at 1:33:04 PM UTC+8, Greg

[julia-users] Re: Julia backtraces from C and thread safety in julia runtime.

2015-12-16 Thread J Luis
Right, sorry I misunderstood your question. quarta-feira, 16 de Dezembro de 2015 às 16:52:31 UTC, Kristoffer Carlsson escreveu: > > That looks a bit opposite to what I want to do. You describe how to get > backtraces in calling a compiled library form julia. What I want is the > julia

[julia-users] Re: Julia backtraces from C and thread safety in julia runtime.

2015-12-16 Thread J Luis
On Windows and with VS what I do is: - Build the external library in debug mode (if not possible, game over) - On the VS IDE load julia.exe in "Tools -> Attach to process" - run the julia command in case of crashes the IDE pops up right on the offending line. If sometimes this does not work,

Re: [julia-users] Re: More conda troubles

2015-11-20 Thread J Luis
uthaf > > Le 19 novembre 2015 à 23:12:50, J Luis (jmf...@gmail.com ) a > écrit: > > Nope. The trouble is that after installing 295 MB of Condas (I mean a full > python when I already had one and did not ask for another), there was some > problem and libnetcdf was not installed

Re: [julia-users] Re: More conda troubles

2015-11-20 Thread J Luis
Yes, but furthermore you don't seam to be on Windows where further problems exist because the shared library (dll) names differ (libnetcdf.xx on unix and netcdf.dll on Windows) I actually tried to work-around this with my favorite solution, which is to make the name of the library a veriable,

Re: [julia-users] Re: More conda troubles

2015-11-20 Thread J Luis
:37 AM UTC-6, J Luis wrote: >> >> Yes, but furthermore you don't seam to be on Windows where further >> problems exist because the shared library (dll) names differ (libnetcdf.xx >> on unix and netcdf.dll on Windows) >> >> I actually tried to work-around this

[julia-users] More conda troubles

2015-11-19 Thread J Luis
After the troubles with conda that I reported 2 or 3 days ago I ended up nuking my .julia dir. Now I being bitten again julia> Pkg.build("NetCDF") INFO: Building NetCDF Traceback (most recent call last): File "C:\j\.julia\v0.4\Conda\deps\usr\Scripts\conda-script.py", line 2, in from

[julia-users] Re: More conda troubles

2015-11-19 Thread J Luis
oops, I obviously meant 'cache' not 'cash' quinta-feira, 19 de Novembro de 2015 às 20:33:28 UTC, J Luis escreveu: > > It's so annoying that Pkg.rm() does not rm. So I manually cleaned the cash > and .trash after Pkg.rm("Conda") but it still doesn't install netCDF. > I w

[julia-users] Re: More conda troubles

2015-11-19 Thread J Luis
In fact I had. I always call julia from a bat file that I use to set paths of interest and calls my WinPython portable installation. Now changed that but I'm again in a broken state julia> Pkg.rm("NetCDF") INFO: Installing Conda v0.1.8 INFO: Removing Formatting v0.1.4 INFO: Removing NetCDF

[julia-users] Re: More conda troubles

2015-11-19 Thread J Luis
vc9_4 [vc9] ===[ ERROR: NetCDF ] LoadError: Provider BinDeps.PackageManager failed to satisfy dependency libnetcdf while loading C:\j\.julia\v0.4\NetCDF\deps\build.jl, in expression starting on line 12 quinta-feira, 19 de Novembro de

[julia-users] Re: More conda troubles

2015-11-19 Thread J Luis
that's probably a dlopen failure? Or check the libnetcdf in > dependency walker? > > > On Thursday, November 19, 2015 at 12:35:10 PM UTC-8, J Luis wrote: >> >> oops, I obviously meant 'cache' not 'cash' >> >> quinta-feira, 19 de Novembro de 2015 às 20:33:28 UTC,

[julia-users] Re: Build of julia with clang on windows. Clang.jl cannot build

2015-11-19 Thread J Luis
Just remove the '-rdynamic' from that line of the Makefile. But you'll find some other problem later that I don't remember anymore (I've tried this too some time ago) Joaquim quinta-feira, 19 de Novembro de 2015 às 11:51:14 UTC, Tony Kelman escreveu: > > Check if there's already an issue

Re: [julia-users] Pkg.update error

2015-11-18 Thread J Luis
> > No. Ref https://github.com/JuliaLang/julia/issues/13200. Just try again. > Sorry, but julia> Pkg.update() INFO: Updating METADATA... INFO: Updating cache of Clang... INFO: Updating CodeTools... INFO: Updating GMT... INFO: Updating MutateIt... INFO: Updating Atom... INFO: Updating

[julia-users] Pkg.update error

2015-11-18 Thread J Luis
Is this because I don't have (nor want to have) Anaconda Python? Win8 here. INFO: Building PyCall INFO: Recompiling stale cache file C:\j\.julia\lib\v0.4\Conda.ji for module Conda. WARNING: Module BinDeps uuid did not match cache file WARNING: deserialization checks failed while

[julia-users] Re: How does 'find_library' works?

2015-11-17 Thread J Luis
do the trick. The docs at least imply that both arguments should be > vectors -- for one because of the plural and locations is supposed to be a > list. > > Am Dienstag, 17. November 2015 15:24:38 UTC+1 schrieb J Luis: >> >> The doc >> <http://docs.julial

Re: [julia-users] Re: How does 'find_library' works?

2015-11-17 Thread J Luis
ast imply that both arguments > should be > > > vectors -- for one because of the plural and locations is supposed to > be a > > > list. > > > > > > Am Dienstag, 17. November 2015 15:24:38 UTC+1 schrieb J Luis: > > >> The doc > > >>

[julia-users] How does 'find_library' works?

2015-11-17 Thread J Luis
The doc julia> find_library("libgmt.dylib","/Users/j/programs/gmt5/lib") ERROR: MethodError: `find_library` has no method matching find_library(::ASCIIString, ::ASCIIString) you may have intended to

Re: [julia-users] Re: How does 'find_library' works?

2015-11-17 Thread J Luis
do a PR, but it doesn't. terça-feira, 17 de Novembro de 2015 às 15:26:13 UTC, Tim Holy escreveu: > > On Tuesday, November 17, 2015 07:23:03 AM J Luis wrote: > > I know Tim, but honestly I don't feel knowledge'd enough to submit a doc > > improvement for a function that half an hour ago I

Re: [julia-users] Re: How does 'find_library' works?

2015-11-17 Thread J Luis
cs, write a short message describing the change, and click > submit. > Someone will review your change. > > --Tim > > On Tuesday, November 17, 2015 08:42:50 AM J Luis wrote: > > I don't want to be seam ungrateful nor very dumb but do you think one > can > > learn ho

[julia-users] Re: Anaconda Python

2015-11-02 Thread J Luis
> Does winpython have a minimal core and a binary-only package management > system on top of it? Do they have binaries for the likes of scipy, > matplotlib, jupyter etc that work with pycall and ijulia? > Not very experimented with Python by WinPython seams perfect for me. No install, no

[julia-users] Re: Windows woes

2015-10-28 Thread J Luis
Hi, > > I am at a loss how to proceed, so please forgive a rambling unfocused plea > for help and I appreciate any questions to help me focus my search for a > solution. > > I have Julia 0.4.0 installed on my MacBook running Windows 10 (I know I > know :)). My installation is nice and snappy

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread J Luis
Please, leave the '=' alone. It's very well as is. terça-feira, 27 de Outubro de 2015 às 18:20:19 UTC, FANG Colin escreveu: > > Julia tries to attract people from Python & R, which use `in`. As for > matlab, it is not a direct competitor. > > Anyway, I think we only need 1 of the 2. "There

[julia-users] Dear @sprintf, you shouldn't do this

2015-10-26 Thread J Luis
It took me a while to figure out why it was erroring Given this piece of a script @show(sampr1, sampr2) @show(typeof(sampr1), typeof(sampr2)) @show(@sprintf("-T%d/%d/1", sampr1[1], sampr2[1])) it error ed with an incomprehensible error sampr1 = [-1167.0] sampr2 = [1169.0] typeof(sampr1) =

[julia-users] Re: Dear @sprintf, you shouldn't do this

2015-10-26 Thread J Luis
y sampr1[1], sampr2[1]) but the error message was very misleading because it accused the first occurrence of @sprintf() Julia v0.4 on Win segunda-feira, 26 de Outubro de 2015 às 23:37:00 UTC, J Luis escreveu: > > It took me a while to figure out why it was erroring > > Given this piece

Re: [julia-users] Re: How to feval?

2015-10-22 Thread J Luis
multiple >> arguments if necessary: >> julia> feval("sin",5.0) >> -0.9589242746631385 >> >> julia> fn_str = "a_plus_b(a,b) = a + b" >> "a_plus_b(a,b) = a + b" >> >> julia> feval(fn_str,2,3) >> 5 >> >> On Thu

Re: [julia-users] Re: How to feval?

2015-10-22 Thread J Luis
; >>> feval(fn_str, args...) = eval(parse(fn_str))(args...) >>> >>> This has the advantage of accepting anonymous functions and multiple >>> arguments if necessary: >>> julia> feval("sin",5.0) >>> -0.9589242746631385 >>&

[julia-users] How to feval?

2015-10-22 Thread J Luis
Hi, I need to convert this piece of Matlab code [ps, orig_path] = feval(str2func(test), out_path); where 'test' is the name of a function and 'out_path' it unique input argument. I have read and re-read the eval function and for once it's clear for me how it works (sorry, I find

[julia-users] Re: How to feval?

2015-10-22 Thread J Luis
Thanks, at least it's a place to start. quinta-feira, 22 de Outubro de 2015 às 14:10:44 UTC+1, Kristoffer Carlsson escreveu: > > Maybe > > julia> eval(Symbol("sin"))(5.0) > -0.9589242746631385 > > Not sure if this is the best solution. > > > On Thursd

[julia-users] Re: Windows: enforce update of ENV["PATH"] after modifying it.

2015-10-16 Thread J Luis
What??? I do that type of things all the time and never need to sign-out. How do you change the PATH variable? If done with the System->... Environment variables box, one have to hit 'Apply' and that's it. sexta-feira, 16 de Outubro de 2015 às 13:07:24 UTC+1, Tomas Lycken escreveu: > >

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread J Luis
I want to add my voice to the dislikers. Those are the type of surprises that are not welcome mainly for matlab users. quarta-feira, 30 de Setembro de 2015 às 16:53:57 UTC+1, Christoph Ortner escreveu: > > I also strongly dislike the `linspace` change; I like the idea though of > having

[julia-users] Re: Julia code 5x to 30x slower than Matlab code

2015-09-27 Thread J Luis
Yes, we will be releasing Win binaries when it's released. It's for the mean time that interested people needs to build from source. domingo, 27 de Setembro de 2015 às 14:50:25 UTC+1, Marcio Sales escreveu: > > I hope to have a release version in about a month, which is the estimated >> time

[julia-users] Re: Julia code 5x to 30x slower than Matlab code

2015-09-25 Thread J Luis
sexta-feira, 25 de Setembro de 2015 às 14:47:49 UTC+1, Marcio Sales escreveu: > > all right... Well.. Julia's price will allways be better... > Btw.. what about crowdfunded initiatives? Has anyone tried that? I would > be wiling to donate for a geospatial visualization package, for example...

[julia-users] Re: printing UInt displays hex instead of decimal

2015-09-16 Thread J Luis
I also find that the hex printing without specifically requiring it is very annoying. quarta-feira, 16 de Setembro de 2015 às 23:08:23 UTC+1, holocro...@gmail.com escreveu: > > On Wednesday, September 16, 2015 at 5:38:30 PM UTC-4, Steven G. Johnson > wrote: > >> It's not a bug, it's

Re: [julia-users] Re: IDE for Julia

2015-09-14 Thread J Luis
segunda-feira, 14 de Setembro de 2015 às 09:26:05 UTC+1, Daniel Carrera escreveu: > > > On 14 September 2015 at 08:16, Uwe Fechner > wrote: > >> While I understand your point, the success of a new programming language >> depends on the availability of a good IDE. >> >

Re: [julia-users] Re: IDE for Julia

2015-09-14 Thread J Luis
> >> I'm have many years of experience with Matlab and find its IDE a >> can't-work-without-it tool. When one experiments its debugger the reason >> becomes obvious. >> >> > Do you claim that Fortran, C and Perl never achieved success until someone > wrote an IDE with a built-in debugger? ...

Re: [julia-users] Re: How to capture the output of a system command?

2015-09-12 Thread J Luis
tly how. Maybe somebody who knows will chime in. > > -- mb > > On Fri, Sep 11, 2015 at 9:17 PM, J Luis <jmf...@gmail.com > > wrote: > >> Found a ignorestatus function. Better, but not yet good enough. It still >> prints a message even if using a suppression ';' >

Re: [julia-users] Re: How to capture the output of a system command?

2015-09-12 Thread J Luis
would allow capturing STDERR the way you > want. This change won't make it into v0.4, but the code in there could > point you towards a solution. I hope to have some time soon to dive into > this (I need to implement the same thing in Gaston). > > -- mb > > On Sat, Sep 12, 2015 at 1

Re: [julia-users] fieldoffsets and the C macro offsetof

2015-09-11 Thread J Luis
ported as a bug in Clang.jl. > size_t should is unsigned 32 or 64-bit (on today's platforms), and Cint is > signed 32-bit, not at all the same! > > On Thursday, September 10, 2015 at 11:22:13 PM UTC-4, J Luis wrote: >> >> Ok, couldn't resist to one more attempt and I may have fo

[julia-users] Re: How do I install Clang.jl on Windows 7?

2015-09-11 Thread J Luis
Ah, I knew I had written that but could not find it anymore. Just an update. Some months ago I tried again when on a rare occasion that I was able to build Julia+LLVM-SVN. Unfortunately the result regarding building Clang.jl was more or less the same as reported in that issue. sexta-feira, 11

[julia-users] Re: How to capture the output of a system command?

2015-09-11 Thread J Luis
creveu: > > readall(`cat test`) or similar > > On Friday, September 11, 2015 at 7:56:43 PM UTC-4, J Luis wrote: >> >> Ok, I've spend about an hour around "run" "open", "run(pipeline(..." but >> no way. >> In Matlab I would do >>

Re: [julia-users] Re: Finding the index of a type member

2015-09-10 Thread J Luis
can be called with > `ccall(:jl_field_index, Cint, (Any, Any, Cint), GMT_PALETTE, > :is_continuous, 1) + 1` > > > > > On Wednesday, September 9, 2015 at 6:01:47 PM UTC-7, J Luis wrote: > >> > >> So I need to find position of a certain type member in a type. Easy, I

[julia-users] fieldoffsets and the C macro offsetof

2015-09-10 Thread J Luis
Hi, When we have a immutable that mimics a C struct, are the results of fieldoffsets() from the Julia side and offsetoff() at the C side supposed to give the same result? (Well, I already found one case were they don't)

Re: [julia-users] fieldoffsets and the C macro offsetof

2015-09-10 Thread J Luis
less C doesn't have an equivalent representation), can you post the > case? > > On Thu, Sep 10, 2015 at 10:43 PM J Luis <jmf...@gmail.com > > wrote: > >> Hi, >> >> When we have a immutable that mimics a C struct, are the results of >> fieldoffsets(

Re: [julia-users] fieldoffsets and the C macro offsetof

2015-09-10 Thread J Luis
you'll notice that it is size_t in C an Cint in Julia (converted with Clang). If I change the Julia type to Csize_t than the offsets are the same. Now I'm really going to sleep. sexta-feira, 11 de Setembro de 2015 às 04:07:53 UTC+1, J Luis escreveu: > > No, that's not the case. Pure C

[julia-users] Finding the index of a type member

2015-09-09 Thread J Luis
So I need to find position of a certain type member in a type. Easy, I though julia> fn = fieldnames(GMT_PALETTE) 9-element Array{Symbol,1}: :n_headers :n_colors :alloc_level :auto_scale :model :is_gray :is_bw :is_continuous :z_unit_to_meter julia> search(fn,"is_continuous") ERROR:

[julia-users] Re: Finding the index of a type member

2015-09-09 Thread J Luis
your case all you would need to do is > ``` > index = find(fn .== :is_continuous) > ``` > > On Wednesday, September 9, 2015 at 6:01:47 PM UTC-7, J Luis wrote: >> >> So I need to find position of a certain type member in a type. Easy, I >> though >> >> j

[julia-users] Why is julia interpreting what's inside a string?

2015-09-06 Thread J Luis
I need to create these, not to interpret what julia thinks it means. julia> "3.2 3.6 z(x,y) = x@~\327@~exp(-x@+2@+-y@+2@+)" ERROR: syntax: invalid UTF-8 sequence julia> "grdmath $ DDX" ERROR: syntax: invalid interpolation syntax: "$ " How do I do that? Thanks

Re: [julia-users] Why is julia interpreting what's inside a string?

2015-09-06 Thread J Luis
th \$ DDX" > "grdmath \$ DDX" > > julia> print(ans) > grdmath $ DDX > ~~~ > > -- Leah > > On Sun, Sep 6, 2015 at 4:08 PM, J Luis <jmf...@gmail.com > > wrote: > >> I need to create these, not to interpret what julia thinks it means. >>

Re: [julia-users] How to delete a file?

2015-09-06 Thread J Luis
> You may also be interested in `mktemp` [1]. > > Pontus > > [1]: http://julia.readthedocs.org/en/latest/stdlib/file/#Base.mktemp Yes, indeed but the the returned 'io' file is closed/removed when? (docs are too short on this)

[julia-users] How to delete a file?

2015-09-06 Thread J Luis
Let's say that in a script I had to create a temporary file. How do I delete it when no longer needed? Searched the docs for delete and remove but didn't find a solution. Thanks

  1   2   3   >