[julia-users] Re: Ancient Gfortran/GCC version in Travis-CI image

2016-10-03 Thread Helge Eichhorn
Thanks Tony, that worked! Here is my new Travis config for the public record: https://github.com/KosmosML/LLEA.jl/blob/a2ea6ffa80f8a8d8c2f3198ec94a26136281c3ee/.travis.yml Am Montag, 3. Oktober 2016 23:44:50 UTC+2 schrieb Tony Kelman: > > Check the travis docs for the apt sources and packages add

[julia-users] Re: membership checking in heap

2016-10-03 Thread Athul George Appadan
As a follow up question, is there a way to check if a particular key is present in the priority queue? That is, to check if `HeapEntry` with k=5 is there in a heap..? Does julia has any wildcards..? On Saturday, October 1, 2016 at 10:47:48 PM UTC+5:30, Athul George Appadan wrote: > > I am tryi

Re: [julia-users] Re: Julia-i18n logo proposal

2016-10-03 Thread David P. Sanders
Or just remove the J and put the three characters from the other scripts?

[julia-users] Re: Very Odd Enum Behavior

2016-10-03 Thread tim . lebel
It had to be something obvious... what a waste of 30 minutes >_< On Monday, October 3, 2016 at 8:55:23 PM UTC-7, tim@multiscalehn.com wrote: > > Ran into this while writing a simple, contrived example for a tutorial. > Still working on it but I am baffled. Can anyone tell me why this is > h

Re: [julia-users] Very Odd Enum Behavior

2016-10-03 Thread Jacob Quinn
Because Suit is the **first** field to Card? i.e. you need push!(deck, Card(Suit(s), n)) -Jacob On Mon, Oct 3, 2016 at 9:55 PM, wrote: > Ran into this while writing a simple, contrived example for a tutorial. > Still working on it but I am baffled. Can anyone tell me why this is > happ

[julia-users] Re: Very Odd Enum Behavior

2016-10-03 Thread tim . lebel
BTW, on Mac OS X with Julia 0.4.6, if that is relevant. On Monday, October 3, 2016 at 8:55:23 PM UTC-7, tim@multiscalehn.com wrote: > > Ran into this while writing a simple, contrived example for a tutorial. > Still working on it but I am baffled. Can anyone tell me why this is > happening?

[julia-users] Very Odd Enum Behavior

2016-10-03 Thread tim . lebel
Ran into this while writing a simple, contrived example for a tutorial. Still working on it but I am baffled. Can anyone tell me why this is happening? *julia> **@enum Suit hearts=1 diamonds=2 clubs=3 spades=4* *julia> **type Card* *suit::Suit* *number::Int64* *end*

[julia-users] Subset a DataFrame without a #NULL value in a column

2016-10-03 Thread Min-Woong Sohn
Previously, under DataArray, I could do df2 = df[!isna(df[:somvar),:] Is there a NullableArray equivalent to isna()? I've tried isnull(), which is not defined. Thanks

Re: [julia-users] Weird behavior of median

2016-10-03 Thread Miguel Bazdresch
I can't reproduce the problem. julia> versioninfo() Julia Version 0.5.0 Commit 3c9d753 (2016-09-19 18:14 UTC) Platform Info: System: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)

Re: [julia-users] Is there a way to use values in a DataFrame directly in computation?

2016-10-03 Thread John Myles White
I think the core problem is that the current API + Nullable's is very cumbersome, but the switch to Nullable's will hopefully occur nearly simultaneously with the introduction of new API's that can make Nullable's much easier to deal with. David Gold spent the summer working on one approach tha

Re: [julia-users] Is there a way to use values in a DataFrame directly in computation?

2016-10-03 Thread Min-Woong Sohn
Thank you. I fear that Nullables will make the DataFrame very difficult to use and turn many people away from Julia. On Monday, October 3, 2016 at 12:20:32 PM UTC-4, Milan Bouchet-Valat wrote: > > Le lundi 03 octobre 2016 à 08:21 -0700, Min-Woong Sohn a écrit : > > > > I am using DataFrames

[julia-users] Re: ANN: Book --- Julia Programming for Operations Research

2016-10-03 Thread cdm
now on file at our State of California agency library ... http://www.energy.ca.gov/library/index.html Thank You, C. Kwon !!!

[julia-users] Ancient Gfortran/GCC version in Travis-CI image

2016-10-03 Thread Tony Kelman
Check the travis docs for the apt sources and packages addons to install newer compiler versions from the Ubuntu toolchain ppa.

Re: [julia-users] Re: Julia-i18n logo proposal

2016-10-03 Thread Waldir Pimenta
I made a variant using an Indic script (Devanagari), which may be a better choice both because there's an active Julia community in India (significantly more so than in Arabic-speaking countries, AFAIK), and because it actually looks more balanced graphically, with strokes of similar size and

[julia-users] Re: Using generators

2016-10-03 Thread harven
Thanks for the answers, the examples are enlightening. I thought at first that a generator could be used whenever an array was expected, I get it now.

[julia-users] Re: travis_wait

2016-10-03 Thread lapeyre . math122a
I did not get travis_wait to work. But printing something to STDERR now and then seems to have fixed the problem. On Monday, October 3, 2016 at 1:04:57 PM UTC+2, lapeyre@gmail.com wrote: > > Has anyone had luck using travis_wait. >

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-03 Thread Alex Mellnik
I'm in a similar situation, and any public package that I work on I have to manually point at my fork and add the original repo as an upstream. I haven't had much luck with any of the Pkg commands for things like this. I got very excited since I currently only can do ~10% of what I need thro

[julia-users] Re: View (a portion of a) vector as a matrix

2016-10-03 Thread Matt Bauman
You can also express this as a two-dimensional index: @view x[[1:3 4:6]] # or @view x[reshape(1:6, 2,3)] In this case, though, the reshaped view should a bit more performant. On Monday, October 3, 2016 at 10:33:34 AM UTC-5, Alexey Cherkaev wrote: > > Ah, of course! reshape the view! Sometimes on

[julia-users] Re: ANN: ParallelDataTransfer.jl

2016-10-03 Thread Joaquim Masset Lacombe Dias Garcia
Very nice! Em segunda-feira, 3 de outubro de 2016 11:44:04 UTC-3, Andre Bieler escreveu: > > Thank you Sir! :) > > On Sunday, October 2, 2016 at 5:30:34 PM UTC+2, Chris Rackauckas wrote: >> >> ParallelDataTransfer.jl >> is a >> librar

[julia-users] Ancient Gfortran/GCC version in Travis-CI image

2016-10-03 Thread Helge Eichhorn
Dear all, I just ran into trouble when I tried to build a package with a Fortran2008-based dependency on Travis. The most modern version of Gfortran I could install was 4.6 which cannot build the Fortran code. The package list (https://github.com/travis-ci/apt-package-whitelist/blob/master/ubu

[julia-users] Weird behavior of median

2016-10-03 Thread Fabrice Collard
Hello everyone, I recently upgraded to Julia 5.0, and experienced something really weird. Assume I generate a matrix X of random numbers, such that X=randn(10,100,4); and let me build the median of, say, the first element of the table along its first dimension tmp=median(X[1,:,:],1) This work

Re: [julia-users] Is there a way to use values in a DataFrame directly in computation?

2016-10-03 Thread Milan Bouchet-Valat
Le lundi 03 octobre 2016 à 08:21 -0700, Min-Woong Sohn a écrit : > I am using DataFrames from master branch (with NullableArrays as the default) > and was wondering how the following should be done: > > df = DataFrame() > df[:A] = NullableArray([1,2,3]) > > The following are not allowed or retur

Re: [julia-users] Is there a way to use values in a DataFrame directly in computation?

2016-10-03 Thread Milan Bouchet-Valat
Le lundi 03 octobre 2016 à 08:21 -0700, Min-Woong Sohn a écrit : > > I am using DataFrames from master branch (with NullableArrays as the > default) and was wondering how the following should be done: > > df = DataFrame() > df[:A] = NullableArray([1,2,3]) > > The following are not allowed or ret

Re: [julia-users] Re: Using generators

2016-10-03 Thread Stefan Karpinski
There's nothing you can do with comprehensions or generators that you can't do with for loops or functional programming. But there are situations where they are considerably more convenient syntactically. Consider a case where you have several nested for clauses and a filter clause involving all of

[julia-users] Re: Is there a way to use values in a DataFrame directly in computation?

2016-10-03 Thread Alex Mellnik
This is why, IMHO, Nullables are a mess at the moment. You have to either get(df[1,:A]) or otherwise extract the actual value, since very few things handle Nullables out of the box. On Monday, October 3, 2016 at 8:21:39 AM UTC-7, Min-Woong Sohn wrote: > > I am using DataFrames from master bra

[julia-users] Re: View (a portion of a) vector as a matrix

2016-10-03 Thread Alexey Cherkaev
Ah, of course! reshape the view! Sometimes once things are put open in front of you, one cannot help to wonder: "Why I ddin't think of that!". Thanks a lot! On Monday, October 3, 2016 at 4:21:32 AM UTC+2, Chris Rackauckas wrote: > > Fengyang's reshape((@view x[1:6]), (3, 2)) will work well and

[julia-users] Is there a way to use values in a DataFrame directly in computation?

2016-10-03 Thread Min-Woong Sohn
I am using DataFrames from master branch (with NullableArrays as the default) and was wondering how the following should be done: df = DataFrame() df[:A] = NullableArray([1,2,3]) The following are not allowed or return wrong values: df[1,:A] == 1 # false df[1,:A] > 1 # MethodError: no met

[julia-users] Re: ANN: ParallelDataTransfer.jl

2016-10-03 Thread Andre Bieler
Thank you Sir! :) On Sunday, October 2, 2016 at 5:30:34 PM UTC+2, Chris Rackauckas wrote: > > ParallelDataTransfer.jl > is a library > for sending and receiving data among processes defined using Julia's > parallel computing framework

[julia-users] jl_cstr_to_string() variant for wchar_t*

2016-10-03 Thread Steven G. Johnson
See the transcode function to convert wchar strings to/from Julia (UTF8) strings. You only need the LegacyStrings package if you want to work with wchar strings without converting them.

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-03 Thread Chris Rackauckas
Thanks for the suggestion. For some reason I never checked to see if there were other GUIs, but once you mentioned it I did quite a bit of Googling. I am now using GitKraken and while it will take a bit to get used to, it's already improving my productivity. Thanks for the suggestion. On Sunday

[julia-users] Re: ANN: ParallelDataTransfer.jl

2016-10-03 Thread 'Philippe Roy' via julia-users
Thanks! looks nice. Le dimanche 2 octobre 2016 11:30:34 UTC-4, Chris Rackauckas a écrit : > > ParallelDataTransfer.jl > is a library > for sending and receiving data among processes defined using Julia's > parallel computing framewor

Re: [julia-users] jl_cstr_to_string() variant for wchar_t*

2016-10-03 Thread Isaiah Norton
The 'LegacyStrings' package has functions to convert utf16 (and utf32) strings. On Mon, Oct 3, 2016 at 4:03 AM, Ján Adamčák wrote: > Hi, > > Is there any version of > > jl_cstr_to_str() > > for use with wchar_t*? > > I try create a small wrapper processing windows wchar_t strings to Julia > stri

[julia-users] travis_wait

2016-10-03 Thread lapeyre . math122a
Has anyone had luck using travis_wait. ? I tried "- travis_wait julia -e ...". But, the build fails. Or, I could have the build produce more "output". I am now trying to print messages to ST

[julia-users] Unexpected results with typeof(DataFrame)

2016-10-03 Thread Kristoffer Carlsson
The int value "1" is an Int32 in one case and an Int64 in another?

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-03 Thread Avik Sengupta
I haven't used Github Desktop, but if it does not like multiple remotes, I would drop it, pronto. I say that because early on, I felt I "got" git only after I figured out how to use multiple remotes. I feel multiple remotes are fundamental to the design of git, being a "distributed" source contr

[julia-users] jl_cstr_to_string() variant for wchar_t*

2016-10-03 Thread Ján Adamčák
Hi, Is there any version of jl_cstr_to_str() for use with wchar_t*? I try create a small wrapper processing windows wchar_t strings to Julia strings. Thanks.