Re: [julia-users] Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Tom Breloff
Much of Plotly.jl is for interacting with the cloud API (login, credentials, etc). The remainder cannot be called directly so, for my purpose, it made more sense to just build the json directly. Others will likely still find this package to be useful. On Monday, November 23, 2015, Sisyphuss

[julia-users] Re: Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Tony Kelman
Try using dirname(@__FILE__) instead of Pkg.dir

Re: [julia-users] Julia Install in Heterogenous Linux Environment: Target architecture mismatch

2015-11-23 Thread Ian Watson
Thank you Yichao Updating binutils solved the problem. Note that the link says that binutils needed to be at 2.18 or better, but the initial version on the system was 2.20 which failed. Once I updated to the latest, 2.25.1, everything worked. Maybe some other earlier versions might have worked

[julia-users] Re: `(,a) = (1,2)` returns an error

2015-11-23 Thread Seth
Why not simply _, x, _, y = f() ? This seems easier to read and understand. _ is a valid variable but is typically used for superfluous assignment. On Monday, November 23, 2015 at 9:56:27 AM UTC-8, Sisyphuss wrote: > > OK, so if I have a function which returns a tuple (a,b,c,d), > but I only

Re: [julia-users] Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Tom Breloff
Thanks Eric. @joshday has been working on this as well in PlotlyLocal.jl, and I'm working on a plotly backend built into Plots.jl. If you have any interest in collaborating please let me know. On Monday, November 23, 2015, Tony Kelman wrote: > Try using dirname(@__FILE__)

[julia-users] Re: ERROR: LoadError: UndefVarError: mesh not defined. using MeshIO

2015-11-23 Thread Simon Danisch
Well, it's load, not mesh... I admit, the Readme is not very helpfull. By the way, the REPL with typeof(), xdump(), println(), methodswith() and auto completion are your friend when it comes to figuring out how a type works. Am Montag, 23. November 2015 15:38:44 UTC+1 schrieb kleinsplash: > My

[julia-users] Re: Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Sisyphuss
So the following package is no longer useful? https://github.com/plotly/Plotly.jl

Re: [julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread Daniel Carrera
It definitely looks as if you are just passing the script to the Julia executable. So as soon as the program terminates all windows close. Like Steven said, it would be exactly the same in Python. If you want windows to be permanent, you probably should be in the Julia (or Python) shell. Cheers,

[julia-users] Re: Versioning for unregistered Packages

2015-11-23 Thread Leonardo
Moreover, digging into Pkg code, I've found that version is returned by Pkg.Read.installed_version(), which requires firstly a call to Pkg.Read.available(pkgname::AbstractString), but calling this last method from REPL I get an empty Dict also for "normal" packages. Maybe because Base (and all

Re: [julia-users] Simple Quesiton about svd() function

2015-11-23 Thread Milan Bouchet-Valat
Le dimanche 22 novembre 2015 à 18:58 -0800, Michael Bullman a écrit : > Hi All, > > I have a pretty easy question about how/why the svd() behaves how it > does. > > Why are my U and V matrices always a factor of -1 from the textbook > examples? I'm just getting my feet wet with all this, so I

[julia-users] Re: Ray tracing for complex geometry

2015-11-23 Thread Simon Danisch
I'm still confused about what you want. Google says: "In computer graphics, ray tracing is a technique for generating an Image by tracing the path of light through pixels in an image plane and simulating the effects of its encounters with virtual objects." which is pretty much what I understand

Re: [julia-users] Simple Quesiton about svd() function

2015-11-23 Thread Tamas Papp
U and V are not unique. Even when A is square and nonsingular, you eg can multiply them by a diagonal unitary matrix (the same one for both, of course). Best, Tamas On Mon, Nov 23 2015, Michael Bullman wrote: > Hi All, > > I have a pretty easy question about

[julia-users] Re: Ray tracing for complex geometry

2015-11-23 Thread kleinsplash
Thank you. Apologies, I struggle trying to explain myself at the best of times. I have a number of virtual objects (*.obj) I want to get ~1000 depth images from x angles. I used the pinpoint camera approximation only to find that the obj files had so view vertices that getting reasonable

Re: [julia-users] Concatenation without splatting

2015-11-23 Thread Dan
Using `append!` instead of `push!` and letting efficient dynamic reallocation of vector do the resizing: function vcat_nosplat2a(y) result = Array(eltype(y[1]), 0) for a in y append!(result, a) end result end (@benchmark shows way less allocations and 2-3x time) BTW the

Re: [julia-users] OffsetArrays (Fortran-style indexing)

2015-11-23 Thread Tim Holy
If no answers are forthcoming here, you should file an issue with the OffsetArrays package. Best, --Tim On Thursday, November 19, 2015 02:08:29 PM Ted Wetherbee wrote: > OffsetArrays, as per its package example, is missing arrayset in 3.12, also > not working in 4.1 and 5.0 versions as per the

Re: [julia-users] Ray tracing for complex geometry

2015-11-23 Thread kleinsplash
Thanks a stack. The geometry is defined in a mesh file .obj. Consisting of vertices and faces. The objects are complex, so any primitive ray-tracing is most likely not going to work. My challenge is that my obj files are just not dense enough. If they were I could use the vertices no problem.

Re: [julia-users] Concatenation without splatting

2015-11-23 Thread Tomas Lycken
That doesn’t quite seem to do what you want, Mauro: julia> arr_of_arr = Vector{Int}[[1],[2,3],[4,5]] 3-element Array{Array{Int64,1},1}: [1] [2,3] [4,5] julia> vcat_nosplat(y) = eltype(y[1])[el[1] for el in y] vcat_nosplat (generic function with 1 method) julia> vcat_nosplat(arr_of_arr)

Re: [julia-users] Using Meshes.ji

2015-11-23 Thread kleinsplash
Looks like accessing has changed a bit - so to get to the faces I did obj = load("path.obj") faces = obj.faces So far I haven't had much luck in either plotting this or accessing the faces and the verticies. As soon as I figure it out I will get back. This is linked to my other question, for

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-23 Thread Glen O
Logically, the same definition being used by "unique" would be applied, unless specified otherwise (which should also be available for unique - it's silly that you can't specify the level of inequality necessary for uniqueness). Incidentally, in the example you gave, unique gives

[julia-users] Re: Coveralls/Codecov report certain lines are not covered, but test for the lines do appear to exist in code

2015-11-23 Thread Zygmunt Szpak
Thank you Dan. On Sunday, November 22, 2015 at 6:25:54 PM UTC+10:30, Dan wrote: > > Regarding the last printing point only > print(string(eltype(8)) * ", " * string(eltype(8))) > > is probably what you meant. AbstractString(Int64), tries to create an > AbstractString from an Int64, while

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-23 Thread Tamas Papp
IMO permutations should maintain the following invariant: for any vector v, isequal(map(i -> getindex(v,i), collect(permutations(1:length(v, collect(permutations(v))) Bringing equality and uniqueness into the issue disposes of this property, which is desirable in many applications.

[julia-users] Problem with "using PyPlot"

2015-11-23 Thread Ilya Orson
Hello everyone! I am having some trouble with PyPlot, can somebody help me? I have Anaconda's Python 2.7 installed and normally Julia recognized it while using PyPlot and PyCall but it suddenly failed today while importing PyPlot: ERROR: InitError: Failed to pyimport("matplotlib"): PyPlot

[julia-users] What is the best way to delete unwanted subgraph?

2015-11-23 Thread Aleksandr Mikheev
Hi all, I'm currently using LightGraphs package in my student research work. And I have some problems with it. Imagine we have a undirrected graph G, which contains, for example, 10 vertices and some edges. I would like to know which components of graph G are connected, so I call

[julia-users] Re: Ray tracing for complex geometry

2015-11-23 Thread Simon Danisch
I'm not sure what you mean by virtual objects. Obj is in the context of 3D objects is usually the wavefront format. If you have an object database with *.obj's in it, the probability is very high, that you don't have pointclouds whatsoever.

Re: [julia-users] Using Meshes.ji

2015-11-23 Thread kleinsplash
Thanks guys :) On Tuesday, 10 November 2015 13:20:44 UTC+2, Rohit Thankachan wrote: > > I've made a few changes to the file Steve pointed you to. It can be found > at https://gist.github.com/rohitvarkey/5be4542faff17014afc7. > > If you use Escher to run that file, you can load .obj files by just

[julia-users] Re: Ray tracing for complex geometry

2015-11-23 Thread kleinsplash
Nope. I have obj files. Your hypothesis is correct. I have attached one of them. Your script works just fine (is there an easy way to save this image?). As a side note: I do collect point clouds using V-REP, and I can generate pointclouds (pcd) using pcl - but I want to work with the obj mesh

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-23 Thread Glen O
Mathematical consistency is nice, to be sure, but it's important that the user gets the behaviour that they would expect. There is nothing in the name "Permutations", nor in the description given by help, that makes it clear to the user that the permutations include identical permutations. The

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-23 Thread Tamas Papp
On Mon, Nov 23 2015, Glen O wrote: > Mathematical consistency is nice, to be sure, but it's important that the > user gets the behaviour that they would expect. There is nothing in the > name "Permutations", nor in the description given by help, that makes it > clear to the

Re: [julia-users] Concatenation without splatting

2015-11-23 Thread Tomas Lycken
Using append! is definitely an improvement, thanks! The reason I included the sizehint! call was that this resizes the vector *once*, and without requiring to copy any elements, and I assumed those saved copies would quickly win over having to iterate the collection an extra time to get the

[julia-users] drandn sometimes crashes

2015-11-23 Thread Antonio Suriano
addprocs(3) @everywhere using DistributedArrays function tony(N) return sum(drandn(N,N)) end function pesante(N) a=zeros(N,N) for i = 1:N for j=1:N a[i,j]=tony(1000) end end return a end matrice= pesante(100) julia 0.4.1 when calling pesante with N>30 sometimes it crashes LoadError:

Re: [julia-users] Ray tracing for complex geometry

2015-11-23 Thread kleinsplash
Not sure if you get other comments, please forgive me if this generates two mails in your inbox. Please see my answer to Steve Kelly below. On Friday, 20 November 2015 18:15:35 UTC+2, Tom Breloff wrote: > > Could you describe a little more about your use-case? I'm not sure that > ray-tracing

[julia-users] pmap - intermingled output from workers on v0.4

2015-11-23 Thread 'Greg Plowman' via julia-users
Has output from parallel workers changed in Julia v0.4 from v0.3? I guess that running parallel processes might lead to intermingled output. However, I have (more or less) the same parallel simulation code using pmap running on v0.3 and v0.4. On v0.3 the output from workers is always orderly.

Re: [julia-users] Best way to pass many arguments to functions

2015-11-23 Thread Milan Bouchet-Valat
Le lundi 23 novembre 2015 à 05:32 -0800, Maxim Berman a écrit : > Hello, > > In Matlab, people often use structures to pass around arguments > between functions, for example problem instances. This allows some > flexibility in the development, since I don't have to think of all > variables that I

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Seth
Aleksandr, The easiest way to do this is something like the following: cc = connected_components(G) G = G[cc[1]] This replaces G with the induced subgraph made up of the vertices in the first connected component. (You can create a new graph H if you want to keep G.) We are also implementing

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Seth
Keep in mind that induced subgraphs will not preserve vertex numbering, so if you do something like G = G[4,5,6] your old vertices 4, 5, and 6 will be renumbered so that the new G has vertices in the range 1 : 3. On Monday, November 23, 2015 at 5:23:55 AM UTC-8, Seth wrote: > > Aleksandr, >

[julia-users] Best way to pass many arguments to functions

2015-11-23 Thread Maxim Berman
Hello, In Matlab, people often use structures to pass around arguments between functions, for example problem instances. This allows some flexibility in the development, since I don't have to think of all variables that I need and their types, and new objects can be easily added to existing

[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread kleinsplash
Yup. Not sure why but using Sublime/VIM I can only see PyPlot and Gadfly using plt[:show](); display(gcf()) does not work for me. On Thursday, 19 November 2015 17:52:24 UTC+2, NotSoRecentConvert wrote: > > Has PyPlot's default behavior changed in 0.4? When I plot nothing shows up > with 0.3

Re: [julia-users] Re: passing data by remotecall_fetch slower than writing & loading from disk

2015-11-23 Thread Andre Bieler
New issue opened #14106 https://github.com/JuliaLang/julia/issues/14106

[julia-users] jupiter server issue on OSX

2015-11-23 Thread Jon Norberg
Maybe not strictly a julia question but maybe someone can help... I just got brand new iMac. I set up everything for jupiter, julia and ijulia. can launch notebook just fine. then I change the jupiter config to serve the notebook via http. On the computer itself i can open using the ip address

[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread Steven G. Johnson
On Monday, November 23, 2015 at 8:43:36 AM UTC-5, kleinsplash wrote: > > Yup. Not sure why but using Sublime/VIM I can only see PyPlot and Gadfly > using plt[:show](); display(gcf()) does not work for me. > What do you mean by "using Sublime/VIM"? Are you editing a Julia script foo.jl and then

[julia-users] Re: Problem with "using PyPlot"

2015-11-23 Thread Steven G. Johnson
Are you on Ubuntu and using the Julia binary there? If so, it looks like you are running into https://github.com/stevengj/PyCall.jl/issues/65 (see the discussion at the very end) due to a conflict between the openblas in Ubuntu and the openblas that numpy wants to link to. See the issue

[julia-users] Re: Best way to pass many arguments to functions

2015-11-23 Thread James Gilbert
(Advice from total julia novice follows, so may be off the mark!) Yes, you should be using composite types; they are structures. What abstract types offer you is the ability to write general code which works efficiently (thanks to the julia compiler) on different concrete types, so they should

[julia-users] Re: PyPlot behavior change in 0.4? (plt[:show] required?)

2015-11-23 Thread kleinsplash
With Sublime I am using cnt+b and vim :!julia %. Both work just fine. I don't have a question, happy to use show as stated. On Monday, 23 November 2015 16:29:41 UTC+2, Steven G. Johnson wrote: > > On Monday, November 23, 2015 at 8:43:36 AM UTC-5, kleinsplash wrote: >> >> Yup. Not sure why but

[julia-users] ERROR: LoadError: UndefVarError: mesh not defined. using MeshIO

2015-11-23 Thread kleinsplash
My aim is to load an object file and access its faces, vertices and normals. My current code: using FileIO using GLVisualize using MeshIO obj_file = "path_to_obj/file.obj" mesh(obj_file) I am getting the error: ERROR: LoadError: UndefVarError: mesh not defined in include at ./boot.jl:261

Re: [julia-users] Best way to pass many arguments to functions

2015-11-23 Thread Sisyphuss
On Monday, November 23, 2015 at 2:46:12 PM UTC+1, Milan Bouchet-Valat wrote: > > Le lundi 23 novembre 2015 à 05:32 -0800, Maxim Berman a écrit : > > Hello, > > > > In Matlab, people often use structures to pass around arguments > > between functions, for example problem instances. This

Re: [julia-users] Re: passing data by remotecall_fetch slower than writing & loading from disk

2015-11-23 Thread Tim Holy
Thanks --Tim On Monday, November 23, 2015 06:24:39 AM Andre Bieler wrote: > New issue opened #14106 > > https://github.com/JuliaLang/julia/issues/14106

Re: [julia-users] Julia Install in Heterogenous Linux Environment: Target architecture mismatch

2015-11-23 Thread elextr
To obtain best performance Julia uses all resources it knows how to use and that are available on the machine it compiles to. To run on different machines the architecture of both has to have the same resources. So you either have to compile to the lowest common denominator of the

[julia-users] Images, ImageView.view change the original variable

2015-11-23 Thread Fliprl Data
I'm a newbie in Julia, I really appreciate if you could help me on this. I had issues when using piece of code below. Apparently, the original variable (excm) is changed, so when I type ImageView.view(excm) before and after the routine, it is changed, but I'm only manipulating a copy of it

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Aleksandr Mikheev
Really sorry for silly questions, but I am really new to Julia language and also I am not very good in coding generally.

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Aleksandr Mikheev
Excuse me once again. How can I use rem_vertex!() now? I tried to update my package - didn't help. I tried to do a new file (called GraphFeatures), in witch I copied all the functions from here

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Seth
On Monday, November 23, 2015 at 2:09:13 PM UTC-8, Aleksandr Mikheev wrote: > > Excuse me once again. How can I use rem_vertex!() now? I tried to update > my package - didn't help. I tried to do a new file (called GraphFeatures), > in witch I copied all the functions from here >

Re: [julia-users] Images, ImageView.view change the original variable

2015-11-23 Thread Fliprl Data
that's awesome, it works like a charm, thank you very much also, do you see any need on using the 'data' function (from image.jl: returns a reference to the array data in the image. It allows you to use an algorithm written for Arrays or AbstractArrays on Image types.) to extract data of an

Re: [julia-users] Images, ImageView.view change the original variable

2015-11-23 Thread Tom Breloff
When you do "dmode = excm", you're only binding the variable name "dmode" to the reference "excm". They point to the same underlying object. You could try "dmode = copy(excm)" On Mon, Nov 23, 2015 at 4:38 PM, Fliprl Data wrote: > > > I'm a newbie in Julia, I really

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Seth
Er. Sorry for the bad instructions. Don't use Pkg.clone("LightGraphs"), use Pkg.checkout("LightGraphs"). On Monday, November 23, 2015 at 2:31:42 PM UTC-8, Seth wrote: > > > > On Monday, November 23, 2015 at 2:09:13 PM UTC-8, Aleksandr Mikheev wrote: >> >> Excuse me once again. How can I use

Re: [julia-users] ObjectIdDict

2015-11-23 Thread Leonardo
Many thanks! I've not found these info on Julia official documentation: if not present, I think should be useful to add them Leonardo Il giorno domenica 22 novembre 2015 20:20:35 UTC+1, Stefan Karpinski ha scritto: > > Yes, Set is implemented using a hash table. ObjectIdDict is for

[julia-users] Error while Building PyCall

2015-11-23 Thread Vishnu Raj
Hi, I'm using Julia 0.4.0 in OSX 10.10. Today when I tried to upgrade my packages I got this error julia> Pkg.build( "PyCall" ) INFO: Building PyCall INFO: Recompiling stale cache file /Users/vish/.julia/lib/v0.4/Conda.ji for module Conda. WARNING: Module SHA uuid did not match cache file

[julia-users] Re: Ray tracing for complex geometry

2015-11-23 Thread Simon Danisch
Yeah, now worries! This is pretty much the XY problem , which easily happens to the best of us. Just be sure to include enough context information. You can make a screenshot with glvisisualize with: screenshot(window, path=" screenshot.png") Screenshot of

[julia-users] Re: JuliaBox disconnects after several hours of use (or non-use)

2015-11-23 Thread cdm
related: https://groups.google.com/forum/#!searchin/julia-box/timeout/julia-box/FkTpk5r91Oc/53U8gU_JB4cJ of note, similar hosted services are provided at: https://try.jupyter.org/ (note that the Julia version here is dated ...) and an option for those comfortable in Linux

Re: [julia-users] Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Eric Forgy
Hi Tom, Thanks for your note. Yeah, sure. I am definitely interested in helping where I can. I started out working on Tony's fork of Plotly.jl since he had already converted to using Requests.jl, but by the time I got the WebSockets working, I realized I didn't need any of that code and could

[julia-users] funky ccall macro

2015-11-23 Thread Dömötör Gulyás
So apparently, this: https://github.com/JuliaLang/julia/issues/14110 is not a bug. Which leaves me with the question, how to accomplish concatenating the argument types tuple for ccall()? There doesn't seem to be a way to accomplish the concatenation (without also evaluating the type

Re: [julia-users] Re: Ray tracing for complex geometry

2015-11-23 Thread Steve Kelly
I think most of the people working on mesh related geometry are doing it part-time and building these libraries is part of the learning experience. Asking questions is important, since it is the only way to gain insight. If you have more questions about Meshes, I'd be happy to help on the github

[julia-users] Re: JuliaBox disconnects after several hours of use (or non-use)

2015-11-23 Thread Sisyphuss
If he has many cells, it won't be convenient to copy-paste. But Juliabox autosaves every several minutes, which already largely prevent the lost of code (at least for my speed of coding). On Monday, November 23, 2015 at 8:23:50 AM UTC+1, Patrick Kofod Mogensen wrote: > > I know this is not a

Re: [julia-users] Assigning variables

2015-11-23 Thread Sisyphuss
Maybe metaprogramming? On Sunday, November 22, 2015 at 8:52:24 PM UTC+1, Stefan Karpinski wrote: > > Not really. An array is much better for this. > > On Sun, Nov 22, 2015 at 2:28 PM, digxx > wrote: > >> Manually I can do: >> arr1=... >> arr2=... >> arr3=... >> and so on

Re: [julia-users] Assigning variables

2015-11-23 Thread Stefan Karpinski
You have a bunch of values indexed by an integer. That's what arrays are for. On Mon, Nov 23, 2015 at 10:11 AM, Sisyphuss wrote: > Maybe metaprogramming? > > > On Sunday, November 22, 2015 at 8:52:24 PM UTC+1, Stefan Karpinski wrote: >> >> Not really. An array is much

Re: [julia-users] Concatenation without splatting

2015-11-23 Thread Mauro
> That doesn’t quite seem to do what you want, Mauro: Yes, you're right, sorry for the noise! > julia> arr_of_arr = Vector{Int}[[1],[2,3],[4,5]] > 3-element Array{Array{Int64,1},1}: > [1] > [2,3] > [4,5] > > julia> vcat_nosplat(y) = eltype(y[1])[el[1] for el in y] > vcat_nosplat (generic

Re: [julia-users] type conversion

2015-11-23 Thread Sisyphuss
On Sunday, November 22, 2015 at 11:22:07 PM UTC+1, Milan Bouchet-Valat wrote: > > Le dimanche 22 novembre 2015 à 14:08 -0800, Martin Kuzma a écrit : > > > > > > Hi, i am new to Julia and i am little bit confused about type > > conversion. > > In the docs is written following: > > > > When

Re: [julia-users] Re: Better alternative to find all permutations?

2015-11-23 Thread Stefan Karpinski
Any algorithm for producing unique permutations obviously needs to rely on some notion of element equality. That could be user-defined but default to something sane. I suspect that isequal or === would be good choices; == is not a good choice since NaN is not even == to itself. On Mon, Nov 23,

Re: [julia-users] Assigning variables

2015-11-23 Thread Sisyphuss
I knew it. On Monday, November 23, 2015 at 4:25:37 PM UTC+1, Stefan Karpinski wrote: > > You have a bunch of values indexed by an integer. That's what arrays are > for. > > On Mon, Nov 23, 2015 at 10:11 AM, Sisyphuss > wrote: > >> Maybe metaprogramming? >> >> >> On

[julia-users] Are traits or another form of multiple inheritance in base

2015-11-23 Thread Lampkld
Hello, I have a use case that specifically requires multiple inheritance (and concrete inheritance to a lesser degree). Will traits or another mechanism for subtyping from multiple kinds definitely make it into base? Thanks

Re: [julia-users] Using Meshes.ji

2015-11-23 Thread kleinsplash
Thanks to group managed to plot using GLVisualize: using GLVisualize using FileIO w,r = glscreen() view(visualize(obj)) r() from Simon's answer here: https://groups.google.com/d/msg/julia-users/W8D6kAJhREI/N89EOObzCAAJ

[julia-users] Re: ERROR: LoadError: UndefVarError: mesh not defined. using MeshIO

2015-11-23 Thread kleinsplash
Nope. On Monday, 23 November 2015 17:16:29 UTC+2, Simon Danisch wrote: > > This is solved in your other thread, is it? > > Am Montag, 23. November 2015 15:38:44 UTC+1 schrieb kleinsplash: >> >> My aim is to load an object file and access its faces, vertices and >> normals. >> >> My current

[julia-users] Re: ERROR: LoadError: UndefVarError: mesh not defined. using MeshIO

2015-11-23 Thread Simon Danisch
This is solved in your other thread, is it? Am Montag, 23. November 2015 15:38:44 UTC+1 schrieb kleinsplash: > > My aim is to load an object file and access its faces, vertices and > normals. > > My current code: > > using FileIO > using GLVisualize > using MeshIO > > obj_file =

[julia-users] Re: What is the best way to delete unwanted subgraph?

2015-11-23 Thread Seth
...and just to follow up, rem_vertex!() is now in LightGraphs master. This will be more efficient if the connected components you're trying to remove are small relative to the ones you want to preserve. On Monday, November 23, 2015 at 5:28:04 AM UTC-8, Seth wrote: > > Keep in mind that induced

Re: [julia-users] Best way to pass many arguments to functions

2015-11-23 Thread Mauro
This is for what I put https://github.com/mauro3/Parameters.jl together. Give it a spin! - allows fields with default values - constructors for constructing new instances from old ones with some changes - packing and unpacking macros to save on typing Example: using Parameters @with_kw

Re: [julia-users] Are traits or another form of multiple inheritance in base

2015-11-23 Thread Milan Bouchet-Valat
Le lundi 23 novembre 2015 à 08:06 -0800, Lampkld a écrit : > Hello, > > I have a use case that specifically requires multiple inheritance > (and concrete inheritance to a lesser degree). > > Will traits or another mechanism for subtyping from multiple kinds > definitely make it into base? I

Re: [julia-users] Julia Install in Heterogenous Linux Environment: Target architecture mismatch

2015-11-23 Thread Yichao Yu
On Mon, Nov 23, 2015 at 11:43 AM, Ian Watson wrote: > We have a Linux cluster that consists of different models of hardware. > > If I build Julia on one kind of hardware, say > > model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz > > but then run that installation

Re: [julia-users] OffsetArrays (Fortran-style indexing)

2015-11-23 Thread Ted Wetherbee
OK, I filed an issue with the package OffsetArrays.jl I just started checking Julia out, so I'm not up to fixing this as yet or certain that I'm not missing a common assumption..working on it though. Many thanks, Ted On Monday, November 23, 2015 at 5:27:18 AM UTC-6, Tim Holy wrote: > > If no

[julia-users] Julia Install in Heterogenous Linux Environment: Target architecture mismatch

2015-11-23 Thread Ian Watson
We have a Linux cluster that consists of different models of hardware. If I build Julia on one kind of hardware, say model name : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz but then run that installation on another kind of hardware, say model name : Intel(R) Xeon(R) CPU E5-2670 0 @

[julia-users] Re: Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Eric Forgy
A shot of all 4 browsers (including Juno - which is using the browser-plus package btw) :)

Re: [julia-users] Are traits or another form of multiple inheritance in base

2015-11-23 Thread Lampkld
Great thanks for the info and pointer! On Monday, November 23, 2015 at 11:20:08 AM UTC-5, Tim Holy wrote: > > And to make it clear, you can do this now, though it's sometimes a little > awkward. As recommended reading, the source code for ColorTypes.jl is a > pretty > good example. See also

[julia-users] Re: Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Eric Forgy
Oopsies. And here is the link :D https://github.com/EricForgy/PlotlyJS.jl On Tuesday, November 24, 2015 at 12:47:38 AM UTC+8, Eric Forgy wrote: > > Hi everyone, > > > In this post > > from last Wednesday, Hans-Peter

[julia-users] Re: `(,a) = (1,2)` returns an error

2015-11-23 Thread Sisyphuss
OK, so if I have a function which returns a tuple (a,b,c,d), but I only want the 2nd and 4th value, the most concise way is (x,y) = f()[[2;4]]

Re: [julia-users] `(,a) = (1,2)` returns an error

2015-11-23 Thread Sisyphuss
On Monday, November 23, 2015 at 6:44:58 PM UTC+1, Yichao Yu wrote: > > > I have a function that returns a tuple. > > But I only want the second value of this tuple. > > So I tried `(,a) =f()`. But it does not work. > > > > I'd like to is there any syntax which works? > > Note `(a,) = (1,2)`

[julia-users] `(,a) = (1,2)` returns an error

2015-11-23 Thread Sisyphuss
I have a function that returns a tuple. But I only want the second value of this tuple. So I tried `(,a) =f()`. But it does not work. I'd like to is there any syntax which works? Note `(a,) = (1,2)` does work.

Re: [julia-users] `(,a) = (1,2)` returns an error

2015-11-23 Thread Yichao Yu
> I have a function that returns a tuple. > But I only want the second value of this tuple. > So I tried `(,a) =f()`. But it does not work. > > I'd like to is there any syntax which works? > Note `(a,) = (1,2)` does work. I don't think it's too useful you can just do `a = f()[2]` or `_, a =

[julia-users] Re: `(,a) = (1,2)` returns an error

2015-11-23 Thread Ilya Orson
You can get the arguments of a tuple the same way you get the arguments of an array. For example: f(x) = (x,x+2) results = f(1) results[1] returns 1 and results[2] returns 3 http://docs.julialang.org/en/latest/stdlib/collections/#indexable-collections Good luck El lunes, 23 de

Re: [julia-users] Using Gadfly with sublime-ijulia or vim

2015-11-23 Thread kleinsplash
I wasn't using interactive mode with IJulia. Putting plt[:show]() at the end did the trick. On Friday, 20 November 2015 15:35:13 UTC+2, kleinsplash wrote: > > Thanks.. I still dont get a pop up though - it just says Plot(...) > [Finished in 7.4s]. Do you think I installed my ijulia-sublime

[julia-users] Ann: StatefulIterators (streams over iterables)

2015-11-23 Thread andrew cooke
I mentioned this here earlier, but since then okvs improved things hugely and it's now only a factor of 2 slower than "normal" iterators, which likely makes it useful for anything except critical inner loops. The basic idea is that you can turn any iterable into something that is "consumed"

Re: [julia-users] Are traits or another form of multiple inheritance in base

2015-11-23 Thread Tim Holy
And to make it clear, you can do this now, though it's sometimes a little awkward. As recommended reading, the source code for ColorTypes.jl is a pretty good example. See also base/multidimensional.jl. --Tim On Monday, November 23, 2015 05:15:47 PM Milan Bouchet-Valat wrote: > Le lundi 23

[julia-users] Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Eric Forgy
Hi everyone, In this post from last Wednesday, Hans-Peter pointed out that plotly.js was made open source ( https://plot.ly/javascript/open-source-announcement/ ). Anyway, I tried my hands at writing a wrapper for the

[julia-users] Re: Simple Quesiton about svd() function

2015-11-23 Thread Sisyphuss
If `x` is an eigenvector, then `-x` is also an eigenvector (and with the same norm). On Monday, November 23, 2015 at 3:58:31 AM UTC+1, Michael Bullman wrote: > > Hi All, > > I have a pretty easy question about how/why the svd() behaves how it does. > > Why are my U and V matrices always a

Re: [julia-users] Re: Define an objective function type

2015-11-23 Thread Sisyphuss
Another inconvenience of your solution is that: if you have N objective functions, you will have to define N types and cannot use loop. However, in my solution, I only need to construct an array of objective functions (as objects). On Sunday, November 22, 2015 at 2:20:30 PM UTC+1, Sisyphuss

Re: [julia-users] Pre-ANN: PlotlyJS.jl

2015-11-23 Thread Tom Breloff
Eric: I just looked through your code. It doesn't seem like there's very much plotly-specific code in there. I wonder if you could generalize a little so that Bokeh or Vega could use your websocket approach as well. That seems like it has uses beyond desktop visualizations. I also think it

[julia-users] Re: pmap - intermingled output from workers on v0.4

2015-11-23 Thread 'Greg Plowman' via julia-users
I should add this problem is only when using *remote* workers. (In my case ssh on Windows). The following code produces intermingled output with multiple workers on multiple machines (Julia v0.4) Output is orderly when using Julia v0.3, or with v0.4 when workers are on local machine only.

Re: [julia-users] Julia Install in Heterogenous Linux Environment: Target architecture mismatch

2015-11-23 Thread Páll Haraldsson
On Monday, November 23, 2015 at 5:08:16 PM UTC, Yichao Yu wrote: > > On Mon, Nov 23, 2015 at 11:43 AM, Ian Watson > wrote: > > As far as I know, the underlying O/S and software on both machines is > the > > same, Red Hat Enterprise Linux Server release 6.6 (Santiago), but