[julia-users] Re: exporting tables (ascii or LaTeX)

2015-02-28 Thread j verzani
For a simple solution, you might try Mustache which can iterate over a data frame. Something like this could be generalized: using Mustache using DataFrames d = DataFrame(a=1:10, b=rand(10)) d[:b] = round(d[:b],2) tpl=""" \\begin{table} \\centering \\begin{tabular}{cc} {{#df}}{{a}}&{{b}}\

[julia-users] [Attn package devs] PackageEvaluator/pkg.julialang.org changes

2015-02-28 Thread James Fairbanks
I think documenting the evolution of the packages would be interesting. People use Wikipedia data to study online collaborative writing and the structure of big projects. Having everything in github repos will allow people in the future to do any analysis they want. For the current usage we co

Re: [julia-users] [Attn package devs] PackageEvaluator/pkg.julialang.org changes

2015-02-28 Thread Tim Holy
Very cool, Iain! I'll submit an issue about my packages. --Tim On Saturday, February 28, 2015 02:56:17 PM Iain Dunning wrote: > Hi all, > > I maintain pkg.julialang.org, and the automatic package testing system ( > PackageEvaluator.jl ) > > Until

[julia-users] Override ' but not ctranspose?

2015-02-28 Thread Sheehan Olver
Is it possible to override just ' without overriding ctranspose? I want to use f' to mean differentiation but leave ctranspose(f) to mean conjugate transpose. (Current alternative is to use conj(f.') which I guess is not so bad.)

[julia-users] [Attn package devs] PackageEvaluator/pkg.julialang.org changes

2015-02-28 Thread Iain Dunning
Hi all, I maintain pkg.julialang.org, and the automatic package testing system ( PackageEvaluator.jl ) Until now PackageEvaluator was run on an Arch Linux box as a normal user account, and there wasn't really a practical way of installing system-wid

Re: [julia-users] Re: pmap not respecting srand set seed settings

2015-02-28 Thread Ivar Nesje
If you find evidence that there is anything wrong with the first N random numbers in the standard Random Number Generator (RNG) in Julia, we would consider that a bug, fix it, and release a new point release faster than a Lenovo CTO is able to arrange a meeting with someone who understands the h

[julia-users] join dataframe columns

2015-02-28 Thread pip7kids
Hi How can I join 2 columns in a dataframe. e.g. Dataframe 1 RowName Name2 Amt 1 TestA 123 2 Test2 B456 etc I want to be able to join Name and Name2 and use a separator like - eg RowName Amt 1 Test-A

Re: [julia-users] Re: Julia as a matlab mex function (and the struggle for independence from cygwin)

2015-02-28 Thread Tim Holy
Hi Tracy, Thanks for getting this started! Given your constraints, I understand why you'd be reluctant to put much effort into this. Still very nice to capture the work you've done already. I'll wait until the code dump happens before getting into specific on GitHub, but I too am looking forwa

[julia-users] Re: Julia users Berlin

2015-02-28 Thread Max Suster
I will be moving to Berlin and interested in joining the meetups when time permits. On Saturday, February 28, 2015 at 9:44:07 PM UTC+1, Keyan Ghazi-Zahedi wrote: > > I'm based in Berlin and Leipzig. > > On Wednesday, 25 February 2015 14:35:13 UTC+1, David Higgins wrote: >> >> Hi all, >> >> I'

Re: [julia-users] Preferred Julian equivalent of C enums?

2015-02-28 Thread Jameson Nash
https://github.com/JuliaLang/julia/pull/10168 On Sat Feb 28 2015 at 3:45:31 PM Kirill Ignatiev wrote: > There are libraries, like OpenGL, with very rich collections of enums. In > bindings to these libraries, the enums are used directly as integers, with > no special meaning attached to them, an

[julia-users] Preferred Julian equivalent of C enums?

2015-02-28 Thread Kirill Ignatiev
There are libraries, like OpenGL, with very rich collections of enums. In bindings to these libraries, the enums are used directly as integers, with no special meaning attached to them, and the integers are passed directly to the C functions. If you compare this with Haskell, for example, (htt

[julia-users] Re: Julia users Berlin

2015-02-28 Thread Keyan Ghazi-Zahedi
I'm based in Berlin and Leipzig. On Wednesday, 25 February 2015 14:35:13 UTC+1, David Higgins wrote: > > Hi all, > > I'm based at the Technical University in Berlin and I've more or less > completed the transition to using Julia for all of my research (I still use > OpenCL for bigger projects).

[julia-users] Re: latitutde and longitude with BST

2015-02-28 Thread Seth
Hoping I'm not misunderstanding the question, but... If all you're doing is testing to see whether a lat/long pair is in some datastore, then you might be able to use julia sets (of immutables/pairs). If you're doing calculations with lat/long, you'll probably want to store your data in somethi

Re: [julia-users] Re: Julia as a matlab mex function (and the struggle for independence from cygwin)

2015-02-28 Thread Tracy Wadleigh
Tim: Unfortunately, I haven't made much real progress on this since my initial post of the gist. The last pass I took at it I was making attempts to clean up the julia initialization (which led to at least one stillborn PR). My motivation had flagged a bit, as: 1. I have limited extra cycles th

Re: [julia-users] Re: Julia as a matlab mex function (and the struggle for independence from cygwin)

2015-02-28 Thread Tim Holy
Tracy, any progress on this? I have a sudden need for this myself, and I'd be happy to help if there's stuff that needs finishing. --Tim On Friday, December 5, 2014 at 10:53:27 AM UTC-6, Tim Holy wrote: > > Sounds good. It would be for interop in both ways, then. > > --Tim > > On Friday, Decem

[julia-users] latitutde and longitude with BST

2015-02-28 Thread Ketul Suthar
I am trying find given latitude and longitude is exist or not in my database. so forthat how to create Binary Search tree for storing latitude and longitude from my database.Any one has idea about how to store latitude and longitude in BST node. Is BST suitable data structure for storing latitu

[julia-users] Using ModX: Can scope avoid collisions & improve readability?

2015-02-28 Thread ma . laforge . 49
Hi Julia developers, I am not sure where I should post this, so here goes... I am really impressed with the Julia language. It does many things well. But there is one aspect of C++ that I miss dearly: C++ provides "using namespace X" to "make available" the contents of X to the current scope

[julia-users] Using ModX: Can scopes avoid collisions & improve readability

2015-02-28 Thread ma . laforge . 49
Hi Julia developers, I am not sure where I should post this, so here goes... I am really impressed with the Julia language. It does many things well. But there is one aspect of C++ that I miss dearly: C++ provides "using namespace X" to "make available" the contents of X to the current scope

[julia-users] How to store latitude and longitude in BST

2015-02-28 Thread Ketul Suthar
I am trying find given latitude and longitude is exist or not in my database. so forthat how to create Binary Search tree for storing latitude and longitude from my database.Any one has idea about how to store latitude and longitude in BST node. Is BST suitable data structure for storing latitu

Re: [julia-users] Re: How to read and change the content of web pages to the vector ?

2015-02-28 Thread paul analyst
HI James, I have a doc downloaded from web download(url, file) doc=readall(file) julia> eltype(doc) Char julia> doc "\r\n\r\n\r\n Sil . \n\r\n\r\n\r\n\r\n\r\n" What next with Gumbo? my doc is not ready to Gumbo julia> for elem in preorder(doc.root) println(tag(elem

Re: [julia-users] Re: Standard File Dialogs

2015-02-28 Thread Milan Bouchet-Valat
Le samedi 28 février 2015 à 07:59 -0800, Eric S a écrit : > Milan, > > > > I don't quite get the GetOpenFile{S<:String}(; > filetypes::Vector{S}=String[] syntax. I thought a function call needed > () after it rather than curly braces. These are called parametric methods: see http://docs.juliala

Re: [julia-users] Re: Standard File Dialogs

2015-02-28 Thread Eric S
Milan, I don't quite get the GetOpenFile{S<:String}(; filetypes::Vector{S} =String[] syntax. I thought a function call needed () after it rather than curly braces. In any case here are my three functions (with an extra "2" in the file names so I could test them without worrying about duplicating

[julia-users] beginning deep learning with 500 lines of Julia

2015-02-28 Thread Deniz Yuret
KUnet.jl (beginning deep learning with 500 lines of Julia ) is out with its alpha release. Only the basic functionality is in place (i.e. backprop with relu, softmax, sgd, mo

Re: [julia-users] Re: Standard File Dialogs

2015-02-28 Thread Milan Bouchet-Valat
Le samedi 28 février 2015 à 06:58 -0800, Eric S a écrit : > Milan, > > > > My problem was a semicolon instead of a comma in the call to > tcl("tk_getOpenFile", args). The function now seems to work. I can > work up versions for GetSaveFile and ChooseDirectory. Once they seem > to work, what is t

Re: [julia-users] Re: Standard File Dialogs

2015-02-28 Thread Eric S
Milan, My problem was a semicolon instead of a comma in the call to tcl("tk_getOpenFile", args). The function now seems to work. I can work up versions for GetSaveFile and ChooseDirectory. Once they seem to work, what is the process for suggesting they be included in the Tk package? function G

Re: [julia-users] Re: Private functions in the modules

2015-02-28 Thread Devendra Ghate
On Fri, Feb 27, 2015 at 10:46:14PM -0500, Jiahao Chen wrote: On Fri, Feb 27, 2015 at 5:50 AM, Devendra Ghate wrote: I only imported MyModule.x and was able to overload MyModule.y (exported function) as well as MyModule.p (not exported) functions. As far as I understand, there is no difference

Re: [julia-users] Re: Julia users Berlin

2015-02-28 Thread jung . felix
Hi guys, I'm based in Berlin and have switched to Julia from R for my current research project (credit risk modelling) Humboldt University. I have about 1 year of experience with Julia. I'm interested in pretty much anything that's above entry level. Felix

Re: [julia-users] Re: pmap not respecting srand set seed settings

2015-02-28 Thread Steve Kay
Thanks for your response Andreas, Yes I was thinking of being able to reproduce a serial execution. Although that obviously isn't any where near as important as being able to reproduce a piece of work. I've just spent three hours writing a reply to you saying your suggestion doesn't work - only

Re: [julia-users] Re: Standard File Dialogs

2015-02-28 Thread Milan Bouchet-Valat
Le vendredi 27 février 2015 à 15:48 -0800, Eric S a écrit : > Well, I'm trying but not getting too far. I tried the code as suggested by > Milan but got errors. I then tried to mimic what I say in the Messagebox code > in the Tk package. This is what I have so far: > > > > function GetOpenFile

Re: [julia-users] exporting tables (ascii or LaTeX)

2015-02-28 Thread Devendra Ghate
Dear Tamas, I am using `writedlm` followed by conversion to `markdown` and `html` using `pandoc` for now. However, since there are no methods for specifying the float format in `writedlm`, I couldn't find a way to make the solution look pretty (expect using C `printf`). Markdown tables from pand

[julia-users] exporting tables (ascii or LaTeX)

2015-02-28 Thread Tamas Papp
Hi, I am solving some economic models in Julia. I have vectors that describe various moments, for some data and then for a bunch of models. I would like to export them to LaTeX, and if possible to ASCCI like org-mode. | moment | data | model1 | model2 | ... | |--+--++---