Re: [julia-users] ImageView very slow

2016-10-26 Thread Tom Breloff
You're looking for "heatmap". You should read the docs if you want to learn more. On Wednesday, October 26, 2016, Paul B. wrote: > Tim: Thank you, that works great. > > Josef: I can plot 2D matrices with GR (which is what I want) but your > code example doesn't work. GR

Re: [julia-users] Re: CoinOptServices

2016-10-26 Thread Isaiah Norton
> > Something is preventing the lapack dll from being overwritten on your > system. Try Process Explorer ( https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx) "Find" menu -> "Find a Handle or DLL" search for "liblapack" and look at what process owns the handle. On Wed,

[julia-users] Using SQLBulkOperations in ODBC.jl

2016-10-26 Thread Terry Seaward
Hi, How could one use the SQLBulkOperations function in ODBC.jl to insert a DataFrame into a table? Additional ref: https://msdn.microsoft.com/en-us/library/ms712471(v=vs.85).aspx - TS

Re: [julia-users] Using SQLBulkOperations in ODBC.jl

2016-10-26 Thread Jacob Quinn
As long as your DB table is created correctly (i.e. correct types), you can do ODBC.load(dsn, "table_name", df) More docs here: http://juliadb.github.io/ODBC.jl/stable/#ODBC.load-1 On Wed, Oct 26, 2016 at 9:49 AM, Terry Seaward wrote: > Hi, > > How could one use the

[julia-users] Re: ImageView very slow

2016-10-26 Thread Josef Heinen
Using GR (for the image display) should be fast enough: using TestImages using GR img = testimage("cameraman") intensities = reshape(reshape(float(img.data[:]), 512, 512) for i in 1:10 tic(); imshow(intensities, colormap=GR.COLORMAP_GRAY); toc() end % julia img.jl elapsed time:

[julia-users] Re: Which data structure do you suggest for handling this data?

2016-10-26 Thread Michael Borregaard
That depends a lot on what analyses you want to do with it afterwards - you could have an array (of species) of an array (of points) of tuples (the x and y), which is the most straigthforward thing. For must uses I would probably use a sparse Boolean matrix, e.g. visits = [sparse([1,4,8],

Re: [julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-26 Thread Gregory Salvan
2016-10-26 13:09 GMT+02:00 DNF : > I don't have the impression that reduce is slow. The reduce function that > you're using is complicated and may have features that preclude > optimizations, such as vectorization. > I don't know exactly why, the difference is bigger than what

[julia-users] Re: CoinOptServices

2016-10-26 Thread Frank Kampas
Process Explorer does not indicate that lapack is being run when the problem occurs. I do have mingw installed elsewhere on my computer.

Re: [julia-users] Re: CoinOptServices

2016-10-26 Thread Isaiah Norton
> > Process Explorer does not indicate that lapack is being run when the > problem occurs. Does Find -> Find a Handle or DLL -> "liblapack" Return any results? The goal is to look for any open handle to "liblapack.dll", which would lead to the "Can not delete" error indicated in the posted

[julia-users] Re: CoinOptServices

2016-10-26 Thread Frank Kampas
Handle or Dll substring "liblapack" returned 0 matching items

[julia-users] Re: ANN: ParallelAccelerator v0.2 for Julia 0.5 released.

2016-10-26 Thread Todd Anderson
Okay, METADATA with ParallelAccelerator verison 0.2 has been merged so if you do a standard Pkg.add() or update() you should get the latest version. For native threads, please note that we've identified some issues with reductions and stencils that have been fixed and we will shortly be

[julia-users] Re: ANN: ParallelAccelerator v0.2 for Julia 0.5 released.

2016-10-26 Thread Ralph Smith
This is great stuff. Initial observations (under Linux/GCC) are that native threads are about 20% faster than OpenMP, so I surmise you are feeding LLVM some very tasty code. (I tested long loops with straightforward memory access.) On the other hand, some of the earlier posts make me think

[julia-users] Re: Matlabs scatteredInterpolant for julia?

2016-10-26 Thread Steven G. Johnson
The https://github.com/kbarbary/Dierckx.jl package can interpolate from unstructured sets of points.

[julia-users] Pkg.add("IJulia") fails

2016-10-26 Thread Tony Kelman
What version of windows are you using?

Re: [julia-users] Re: CoinOptServices

2016-10-26 Thread Isaiah Norton
Other suggestion: try temporarily (re)moving that file (`%/liblapack.dll`). I wonder if Julia itself is opening the dll for some reason, before WinRPM tries to replace it. (check again with Process Explorer while Julia is still running?) On Wed, Oct 26, 2016 at 12:22 PM, Frank Kampas

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread 'Bill Hart' via julia-users
The only thing I can think of to suggest is try it again from scratch in Julia-0.4 so we can rule out the dlls being corrupted on our website somehow. I can't think what else could be wrong, unless something else changed in Julia itself on Windows, between versions 0.4 and 0.5. Jeffrey, are you

Re: [julia-users] Re: How do the file name / module name mapping rules work?

2016-10-26 Thread Yichao Yu
FWIW I dont think this question has anything to do with naming conventions and package organizations. > On Wednesday, October 26, 2016 at 1:44:34 PM UTC-4, ma...@maasha.dk wrote: >> >> Using the example package https://github.com/JuliaLang/Example.jl/ I am >> wondering: >> >> >> the root level

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread 'Bill Hart' via julia-users
Actually, there is one more thing you could do. Download DependencyWalker [1] and run it on libarb.dll in place where it currently is in your Nemo/local/lib directory. It's bound to complain a lot, and there will be lots of yellow flags. But what we are looking for is missing dependencies that we

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
Yes. Jeffrey Sarnoff > On Oct 26, 2016, at 8:04 PM, 'Bill Hart' via julia-users > wrote: > > The only thing I can think of to suggest is try it again from scratch in > Julia-0.4 so we can rule out the dlls being corrupted on our website somehow. > > I can't

Re: [julia-users] cscope like tool

2016-10-26 Thread Isaiah Norton
I don't think so, but Lint.jl might be of interest: https://github.com/ tonyhffong/Lint.jl On Wed, Oct 26, 2016 at 8:56 AM, Ajay Mendez wrote: > Looking for a tool to grok large projects, a la cscope. > methods(method_name) is good but insufficient. For those unfamiliar

[julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-26 Thread Martin Florek
Thank you everyone. v1 is very nice, as it turned out. I was looking for the magic of language Julia especially for the generator.

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
> > > On 26 October 2016 at 01:43, Jeffrey Sarnoff > wrote: > >> send me all the messages output, please >> > that were all the messages...

[julia-users] Matlabs scatteredInterpolant for julia?

2016-10-26 Thread Markus F.
Hi, i use matlab at the moment, but want to chance to julia (opensource...). In one of my programms i have to grid and interpolate scattered data (x,y-coordinates and internisity data of an image) to a regular grid. In matlab my code looks like: [x,y]=meshgrid(xmin:stepy:xmax,ymin:stepy:ymax);

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
Hey, I'm not sure what u mean, but this time (as u wanted me to) I started Julia directly and not via cygwin terminal (that was were I couldnt even build nemo) starting julia from cygwin terminal I can build nemo. it's just that when I start nemo I get this error: ERROR: error compiling

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
Am Mittwoch, 26. Oktober 2016 09:23:36 UTC+2 schrieb Bill Hart: > > This is probably because Git is not in your path. We still haven't > switched to libgit, which means the build script for Nemo still relies on > Git being available on your machine. > > Bill. > Git in the path means Git in

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
I do have Gitbash installed for some reason, but I never used it and it's in c:\programs Sorry for that stupid question but u mean put the folder with git-cmd.exe or git-bash.exe as an environment variable

[julia-users] How do the file name / module name mapping rules work?

2016-10-26 Thread mail
Using the example package https://github.com/JuliaLang/Example.jl/ I am wondering: the root level name ~/Example.jl is case-insensitive and the .jl suffix is optional i.e. if I rename ~/Example.jl to ~/example it still works. Changing ~/Example.jl to ~/fobar and it breaks. However,

[julia-users] cscope like tool

2016-10-26 Thread Ajay Mendez
Looking for a tool to grok large projects, a la cscope. methods(method_name) is good but insufficient. For those unfamiliar with cscope, it allows the following queries: Find this C symbol: Find this global definition: Find functions called by this function: Find functions calling this

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread 'Bill Hart' via julia-users
I mean as an environment variable, specifically PATH. Alternatively you can just remove the lines from Nemo/deps/build.jl that run git. The source code is not needed on Windows. We only download it for you to keep in the spirit of the LGPL license, i.e. to supply you the source code for the

[julia-users] a default module name?

2016-10-26 Thread Ryan Gardner
say I have code: type foo a end module MyModule #how do I use foo here? #can I import .foo #?? end There must be a way to use global types in modules. Is there a name for the "global module" (if you will). Thanks.

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
ooops... u meant the: cd(wdir) right? I completely overlooked that..wait a sec Am Mittwoch, 26. Oktober 2016 21:40:22 UTC+2 schrieb Jeffrey Sarnoff: > > you commented out too much -- try the other way > uncomment the Nemo build file and remove the old git-bash and install the > new git -- etc.

Re: [julia-users] Re: a default module name?

2016-10-26 Thread Yichao Yu
On Wed, Oct 26, 2016 at 3:46 PM, Ryan Gardner wrote: > Oh, Main > > import Main.foo import ..foo > > Thanks. > > > On Wednesday, October 26, 2016 at 3:27:50 PM UTC-4, Ryan Gardner wrote: >> >> say I have code: >> >> >> type foo >>a >> end >> >> module MyModule >>

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread 'Bill Hart' via julia-users
And you are not running it inside the Cygwin shell now? If not, then I honestly don't know why this is happening. As Jeffrey says, it doesn't happen on his Windows. And no, you don't require the arb source code on Windows. There does seem to be a problem on some versions of Windows whereby the

[julia-users] Re: a default module name?

2016-10-26 Thread Ryan Gardner
Oh, Main import Main.foo Thanks. On Wednesday, October 26, 2016 at 3:27:50 PM UTC-4, Ryan Gardner wrote: > > say I have code: > > > type foo >a > end > > module MyModule >#how do I use foo here? >#can I >import .foo >#?? > end > > There must be a way to use global types in

[julia-users] Function runs slow when called on new/different arguments?

2016-10-26 Thread Michael Wooley
Hi, I'm trying to speed up some code and have found something curious that I can't quite understand from the "performance tips" section. I understand that I shouldn't time my code on the first run because that will include compilation time and so forth. The odd thing that I can't understand

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
Am Mittwoch, 26. Oktober 2016 20:51:48 UTC+2 schrieb Bill Hart: > > I mean as an environment variable, specifically PATH. Alternatively you > can just remove the lines from Nemo/deps/build.jl that run git. The source > code is not needed on Windows. We only download it for you to keep in the

Re: [julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-26 Thread DNF
Actually, I see only a very marginal performance difference between your mapeBase_v4 (the first v4, don't know about the second v4) and the loop version, roughly 10%. Not sure why you're seeing a big difference. As for the "crystal clear" thing: my background is almost 20 years of heavy Matlab

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
> > > > Am Mittwoch, 26. Oktober 2016 21:40:22 UTC+2 schrieb Jeffrey Sarnoff: >> >> you commented out too much -- try the other way >> uncomment the Nemo build file and remove the old git-bash and install the >> new git -- etc. >> > actually I'm doing that already atm..

[julia-users] Re: Binary read

2016-10-26 Thread Aleksandr Mikheev
So, to avoid the opening a new thread I will write here again. It seems I still have a problem which I cannot solve. I use a_million_floats = read(f, Float64, 1_000_000) as it was suggested, however the numbers I get are obviously wrong (there are numbers like 8.68e+272, -5.39e-142, and even

Re: [julia-users] Re: Binary read

2016-10-26 Thread Stefan Karpinski
Do you have an example where you have the file and you know what the data should be? You may want to look at the data in a hex editor and try to figure out what's going on. On Wed, Oct 26, 2016 at 4:06 PM, Aleksandr Mikheev wrote: > So, to avoid the opening a new thread

Re: [julia-users] Re: How would you implement setindices! elegenatly?

2016-10-26 Thread Cedric St-Jean
Ah, right, I hadn't read your definition carefully. A[[CartesianIndex(1,1), CartesianIndex(2,3)]] = [0,0] Seems to be working correctly. So given your ind matrix, we can do A[mapslices(s->CartesianIndex(s...), ind, 2)] but I doubt that it'll be very performant. Could you directly output

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
Your question is not at all silly. Forget about the gitbash installation -- *remove it*. Download the new git installer from : this web page and when it has downloaded, run it. Then open a terminal window and type `git --version`. If you see something

[julia-users] Re: How do the file name / module name mapping rules work?

2016-10-26 Thread Jeffrey Sarnoff
A cleaner tack, for the moment is follow this general approach package name: MyPackagedModule.jl package content on github repositiory: https://github.com//MyPackagedModule.jl files/directories at the top level of the repository the files LICENSE README.md at the top level of the

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
you commented out too much -- try the other way uncomment the Nemo build file and remove the old git-bash and install the new git -- etc. On Wed, Oct 26, 2016 at 3:17 PM, digxx wrote: > > > Am Mittwoch, 26. Oktober 2016 20:51:48 UTC+2 schrieb Bill Hart: >> >> I mean as

[julia-users] Re: How would you implement setindices! elegenatly?

2016-10-26 Thread Tsur Herman
julia> A=rand(4,4) 4×4 Array{Float64,2}: 0.427998 0.720987 0.375013 0.432887 0.0333443 0.602459 0.946685 0.817995 0.402635 0.571399 0.553542 0.0234215 0.707829 0.339795 0.451387 0.358248 julia> ind = [1 1; 2 2; 3 3] 3×2 Array{Int64,2}: 1 1 2 2 3 3 julia> A[ind] 3×2

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
So, first of all it is (unfortunately) still not working... What I did so far is this: I removed my old GIT and installed the new one I then removed Nemo within Julia and subsequently manually removed every nemo stuff I could find in folder v0.5 I then started Julia (@Bill: This time I'm running

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread Jeffrey Sarnoff
Get git here: download git installer for windows On Wednesday, October 26, 2016 at 3:23:36 AM UTC-4, Bill Hart wrote: > > This is probably because Git is not in your path. We still haven't > switched to libgit, which means the build script for Nemo still

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread 'Bill Hart' via julia-users
This is probably because Git is not in your path. We still haven't switched to libgit, which means the build script for Nemo still relies on Git being available on your machine. Bill. On 26 October 2016 at 01:43, Jeffrey Sarnoff wrote: > send me all the messages

Re: [julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-26 Thread DNF
I don't have the impression that reduce is slow. The reduce function that you're using is complicated and may have features that preclude optimizations, such as vectorization. But perhaps more importantly, the reduce version, while probably very clever, is almost completely impossible to

Re: [julia-users] computation on types in type definition

2016-10-26 Thread Isaiah Norton
> > However, if I want to compute types directly in the definition (see third > implementation), I end up with a TypeVar object I don't know how to deal > with (even though I read the "More about types" section in the manual, > sorry). Is this even possible? Not yet:

Re: [julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-26 Thread Gregory Salvan
Sorry reduce was a bad idea, even if syntax is nice, it's really slow and greedy. V1 can take advantage of @inbounds and @simd optimizations: http://docs.julialang.org/en/release-0.5/manual/performance-tips/#performance-annotations I hope reduce will be optimized in future because here it

[julia-users] computation on types in type definition

2016-10-26 Thread Tamas Papp
I have a type which contains two slots, and it is important that the types of them satisfy certain constraints. I can enforce that in the constructor: see first and second implementations below. However, if I want to compute types directly in the definition (see third implementation), I end up

Re: [julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-26 Thread Steven G. Johnson
If you want to spend your effort on making this code cleaner, the more Julian thing would be to focus on making it more type-generic, so that it can handle arguments of more types. For example (requires Julia 0.5): function mapeBase{T<:Number,S<:Number}(A::AbstractArray{T},

[julia-users] Re: CoinOptServices

2016-10-26 Thread Frank Kampas
On Tuesday, October 25, 2016 at 9:01:29 AM UTC-4, Frank Kampas wrote: > > Is anybody working on fixing CoinOptServices? > the problem occurs when nothing else is open. I see on the GitHub page for CoinOptServices that the build is failing for Windows and Linux.

Re: [julia-users] Base.take deprecated

2016-10-26 Thread Mauro
`take` is deprecated on Julia master but not 0.5. Unless you have a good reason to run Julia-master, you should use the current stable release Julia-0.5 where `take` is not deprecated. Also note that packages will likely not keep up to date with Julia-master. Thus if you do use Julia-master

Re: [julia-users] Re: Binary read

2016-10-26 Thread Aleksandr Mikheev
Unfortunately, I do not. However, I am most definitely sure that everything is okay with file since it is a training file. среда, 26 октября 2016 г., 23:17:00 UTC+3 пользователь Stefan Karpinski написал: > > Do you have an example where you have the file and you know what the data > should be?

[julia-users] Base.take deprecated

2016-10-26 Thread Bill Maier
I keep my Julia source code updated almost daily from github, and a few weeks ago I began receiving the error "WARNING: Base.take is deprecated" in some of my programs. I suspect it comes from inside some included package, but I'm not sure. Everything still compiles and runs correctly, but I'd

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread 'Bill Hart' via julia-users
Well, I'm mystified. What version of Julia are you using? And what version of Windows? Is it 32 or 64 bit? Bill. On 26 October 2016 at 22:40, digxx wrote: > So, first of all it is (unfortunately) still not working... > What I did so far is this: > I removed my old GIT

[julia-users] One more effort

2016-10-26 Thread Jeffrey Sarnoff
I can compare my dirs and dll names with yours and we can replay the cold startup -- tomorrow. I am away. Jeffrey Sarnoff

[julia-users] Pkg.add("IJulia") fails

2016-10-26 Thread bker
Complete newb here. Just trying to install IJulia for Jupyter. Installed Anaconda first, then Julia. When I try to install the IJulia package, I get the output below. I've tried removing everything and re-installing but I get the same result. Help! _ _ _ _(_)_ | A

Re: [julia-users] One more effort

2016-10-26 Thread Stefan Karpinski
[Please don't edit the subject on replies since this breaks the threading and removes all context.] On Wed, Oct 26, 2016 at 5:13 PM, Jeffrey Sarnoff wrote: > I can compare my dirs and dll names with yours and we can replay the cold > startup -- tomorrow. I am away. >

Re: [julia-users] Re: Binary read

2016-10-26 Thread Stefan Karpinski
Then you're going to have to inspect the file for things that look like likely floating-point values since there are no specific values that you can search for in the file. You could try posting a small initial portion of the data here – 256 bytes or so. On Wed, Oct 26, 2016 at 5:24 PM, Aleksandr

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
I'm running Windows 10 Home 64-Bit Version and have the newest Julia version i.e. v0.5.0

[julia-users] How would you implement setindices! elegenatly?

2016-10-26 Thread Tsur Herman
What would you suggest is a fast and elegant way to achieve indexing into an array using a set of indices? function setindices!(A,Values,Indices) assert(length(Values) == size(Indices,1)) for i=1:length(Values) setindex!(A,Values[i],(Indices[i,:]...)...) end end I am

[julia-users] Re: CoinOptServices

2016-10-26 Thread Tony Kelman
Look at the actual logs. It installs fine, just has a handful of known test failures that are due to bugs in the upstream library. Something is preventing the lapack dll from being overwritten on your system. That's not a problem that's been seen anywhere else as far as I'm aware.

Re: [julia-users] Re: Nemo AcbField error

2016-10-26 Thread digxx
It's weird coz in julia 0.4.x it was running without any problems...

[julia-users] Re: Function runs slow when called on new/different arguments?

2016-10-26 Thread Andrew
What's "slow?" foo() is cached but @time isn't. Are you sure you're not timing the @time macro on your 3rd run? On Wednesday, October 26, 2016 at 4:16:55 PM UTC-4, Michael Wooley wrote: > > Hi, I'm trying to speed up some code and have found something curious that > I can't quite understand