[julia-users] Re: Does a wrapper for gmtime exist

2016-07-28 Thread Andrew Gibb
at the README > examples. > > > It has been some time since I revisited it, so please ask if you have any > questions, > and let me know if there is something that is not now working as it had. > I just ran the examples above in v0.5-. > > Regards, > Jeffrey > &g

[julia-users] Does a wrapper for gmtime exist

2016-07-27 Thread Andrew Gibb
Hi, I'm writing a module for dealing with video timing. The C++ code I'm using as a basis uses gmtime to convert seconds into y:m:d.etc. Does anyone know if this functionality is exposed in Julia anywhere? I realise I could handle this myself with ccall, I just wanted to check to see if I

Re: [julia-users] Julia text editor on iPad?

2016-05-15 Thread Andrew Gibb
Is there a way to do shift-enter to execute a cell using the iPad software keyboard? Does shift enter just work on the hardware keyboard?

Re: [julia-users] Forming run() calls programatically

2016-05-13 Thread Andrew Gibb
Those methods both work, and help me understand metaprogramming a little. Thanks to you both.

[julia-users] Forming run() calls programatically

2016-05-13 Thread Andrew Gibb
I'm trying to use metaprogramming to create two functions. Each of which includes a similar, long, call to run(). The calls are not quite identical. Some flags have different arguments, and some are only present on one call. I can't work out how to get expression interpolation to happen within

Re: [julia-users] Re: Rounding to zero from positive or negative numbers results in positive or negative zero.

2016-04-20 Thread Andrew Gibb
On Wednesday, 20 April 2016 15:18:06 UTC+1, Stefan Karpinski wrote: > > IEEE has not made the programming language designer's life easy here. > Perhaps it's a subtle attempt to incentivise more designers of mathematical programming languages into IEEE standards committees?! > > On Wed, Apr

Re: [julia-users] 'do' notation in documentation?

2016-04-17 Thread Andrew Gibb
I have a little document which I add to periodically called "Julia unsearchables" where I note down which things can't be found in the docs without asking someone. I do hope, once my Thesis is done, that I can contribute it to the documentation.

[julia-users] Reusing memory with FileIO

2016-02-23 Thread Andrew Gibb
Hi, I'm doing work reading image sequences using Images.jl. I haven't been able to find in the docs for Images or FileIO a reference for how to load an image into pre-allocated memory. Does such a thing exist? Thanks Andy

[julia-users] Re: ANN: new blog post on array indexing, iteration, and multidimensional algorithms

2016-02-02 Thread Andrew Gibb
Agreed! A very clear introduction which shows off some of the power of these new Array iterators. Thanks, Tim. Andy On Monday, 1 February 2016 18:55:06 UTC, Tim Holy wrote: > > It's come to my attention that some of the exciting capabilities of julia > 0.4 > for indexing, iteration, and

[julia-users] BinDeps Sources, when a URL doesn't have an appropriate extension

2015-11-26 Thread Andrew Gibb
Hi, I'm trying to wrap a C library I've written. I want to use BinDeps to build some source. The source is on our internal gitorious git server. A .tar.gz of the code is available, but the URL to get that from just ends in the branch name. So in my code I have provides( Sources, >

Re: [julia-users] DataFrame type specification

2015-10-26 Thread Andrew Gibb
That worked. Thanks.

[julia-users] DataFrame type specification

2015-10-22 Thread Andrew Gibb
I have a csv with some data. One of the columns is something I'd always like to be read as a string, although sometimes the value will just be numerals. Is there some way to specify that I want this column to be an AbstractString in readtable? Or perhaps some way to convert that column from

[julia-users] Creating custom METADATA

2015-09-22 Thread Andrew Gibb
I'm trying to follow the steps in the 0.4 Manual to create a custom METADATA.jl so that I can distribute packages around my organisation. If I clone JuliaLang/METADATA.jl.git into a local folder, then call Pkg.init() on that folder, I get the following: INFO: Initializing package repository

[julia-users] Updating a single output line in IJulia

2015-09-14 Thread Andrew Gibb
Hi, I have some loops I'd like to observe/debug by seeing the parameters change. In the REPL I can do print(" $p1 $p2 \r") flush(STDOUT) and have my parameters updating on a line. This doesn't seem to work in IJulia. When I try it, there is no output. I guess this is because this isn't STDOUT,

[julia-users] Getting started with documentation using Docile and Lexicon in 0.3.x

2015-06-05 Thread Andrew Gibb
Hi, Please help me get started with this. Here' a simple Julia module, with an attempt at documention: module DocThis using Docile @docstrings export AThing, addfive @doc This type defines a thing, which is a thing. Here's some code, declared by indenting: ay = AThing(5) bee =

[julia-users] Re: Getting started with documentation using Docile and Lexicon in 0.3.x

2015-06-05 Thread Andrew Gibb
] and I'll have a closer look at what's going wrong. [1] https://github.com/MichaelHatherly/Docile.jl/issues -- Mike On Friday, 5 June 2015 17:00:49 UTC+2, Andrew Gibb wrote: Mike, Thanks for your answer. I'm afraid your suggestions don't work. I've tried modifying the LOAD_PATH in juliarc.jl

[julia-users] Re: Getting started with documentation using Docile and Lexicon in 0.3.x

2015-06-05 Thread Andrew Gibb
/en/latest/manual/modules/#module-file-paths -- Mike On Friday, 5 June 2015 16:25:39 UTC+2, Andrew Gibb wrote: Hi, Please help me get started with this. Here' a simple Julia module, with an attempt at documention: module DocThis using Docile @docstrings export AThing, addfive @doc

[julia-users] Inferring constructor parameters from parameters of arguments

2014-12-05 Thread Andrew Gibb
I want to create a parametric type whose parameter is inferred from the parameter of an argument. A toy example: using Images type TLPixel{T} data::T function TLPixel(img::Image{T}) new(img.data[1,1]) end end If I do this: julia tlp = TLPixel{typeof(img.data[1,1])}(img)

[julia-users] Type parameter describes number of items

2014-10-28 Thread Andrew Gibb
Is there a way to create a parameterised type where the parameter describes the number of items, ie type Thing{N:Integer} for i = 1:N a_i::Float64 end end I realise one could achieve this simple example with an array, but I'm trying to create a type which holds scale space. My

[julia-users] New Images.jl - struggling

2014-10-02 Thread Andrew Gibb
I'm having difficulty getting to grips with the new image representations in the reworked Images.jl. I think I've got some of the basics down. But now I'm trying to visualise a spectrum, and I'm stumped. What's the correct way to create an array/image of Float64s from an array/image of

[julia-users] Problem loading Images module

2014-07-23 Thread Andrew Gibb
Hi, I get the following error: julia using Images ERROR: syntax: invalid assignment location in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at

[julia-users] Re: Problem loading Images module

2014-07-23 Thread Andrew Gibb
I see. Yes, that fixed it. But I learned quite a bit about github and julia in the meantime. :) I've noted the fix in the github issue. On Wednesday, 23 July 2014 12:32:29 UTC+1, ron.s...@gmail.com wrote: Yes, that's my fault, I should have run the tests one last time. I fixed it and

[julia-users] Implementation of Moment Invariants?

2014-07-21 Thread Andrew Gibb
I'm hoping to play around with Geometric Moment Invariants, as (greyscale) image feature descriptors. I get the impression that these might be part of some stats package, but I'm coming at this from the machine vision side, and so don't really know where to look. A few simple google searches

[julia-users] Re: GSOC 3D Visualizations plotting API - Make a wish!

2014-05-20 Thread Andrew Gibb
I'm believe I'm working in a relatively niche area, but I'm going to throw my request in anyway :) I often work with image sequences (from a still or video camera, but nothing more exotic than broadcast cameras) which are to be displayed at video rate (25/50/...Hz), somewhere on a texture in

[julia-users] Broken link in the docs

2014-05-01 Thread Andrew Gibb
Apologies if this is the wrong place to post this. The link on this page: http://docs.julialang.org/en/release-0.1/manual/getting-started/ With the text Tutorial for Homer Reid’s numerical analysis class is broken. At a guess, it should point here:

[julia-users] Re: Broken link in the docs

2014-05-01 Thread Andrew Gibb
a banner on top of every page to make people aware that they are using the docs for a very old Julia version. Ivar kl. 09:51:36 UTC+2 torsdag 1. mai 2014 skrev Andrew Gibb følgende: Apologies if this is the wrong place to post this. The link on this page: http://docs.julialang.org/en/release