[julia-users] Test.with_handler removed from nightly

2016-09-27 Thread Philip Tellis
I have unit tests that use Test.with_handler, which works with the release version, but doesn't work with nightly because apparently with_handler has been removed. How do I use my own custom handlers with nightly, and more importantly, how do I write tests that work both in release and

[julia-users] Re: How to update a precompiled Module's data from a second module?

2016-09-24 Thread Philip Tellis
Ok, just discovered that I should put my code from External into `__init__()` to get it to run at compile time

[julia-users] How to update a precompiled Module's data from a second module?

2016-09-24 Thread Philip Tellis
I have two modules that are included by a julia program. Let's call them Primary and External. Primary contains a list of names in an array that's global to the module and a method to register new names: module Primary global names = AbstractString[] function

[julia-users] Re: High-performance metric collector in Julia

2015-05-19 Thread Philip Tellis
consider using something like statsd to collect your stats

[julia-users] Re: Holt-Winters D-E Smoothing in Julia

2015-04-13 Thread Philip Tellis
On Saturday, April 11, 2015 at 1:19:39 AM UTC-4, colint...@gmail.com wrote: Great! If you decide to open source it when done then please feel free to post a link into this thread or start a new thread on julia-stats as I for one would definitely be interested. Will do.

[julia-users] Re: Holt-Winters D-E Smoothing in Julia

2015-04-10 Thread Philip Tellis
Thanks Colin, we're probably going to write our own Holt-Winters implementation in Julia

Re: [julia-users] Holt-Winters D-E Smoothing in Julia

2015-04-08 Thread Philip Tellis
Thank you.

[julia-users] Holt-Winters D-E Smoothing in Julia

2015-04-07 Thread Philip Tellis
Does anyone know if there's a Holt-Winters Double-Exponential Smoothing module for Julia? It's available in R: http://astrostatistics.psu.edu/su07/R/html/stats/html/HoltWinters.html

[julia-users] Re: map returns DataArray{Any, 1} instead of Array{Int64, 1} [fixed formatting]

2015-04-01 Thread Philip Tellis
On Tuesday, March 31, 2015 at 10:12:26 PM UTC-4, James Fairbanks wrote: Relevant source code from DataArrays.jl/src/datavector.jl # TODO: should this be an AbstractDataVector, so it works with PDV's? function Base.map(f::Function, dv::DataVector) n = length(dv) res = DataArray(Any,

[julia-users] Re: map returns DataArray{Any, 1} instead of Array{Int64, 1} [fixed formatting]

2015-03-31 Thread Philip Tellis
I should add that I'm using Julia 0.3.6

[julia-users] map returns DataArray{Any, 1} instead of Array{Int64, 1}

2015-03-30 Thread Philip Tellis
I have a DataArray{UTF8String,1} and I have a Dict generated using indexmap that should take this UTF8String and return an Int64, however, when I pass this through `map`, I get back a DataArray{Any, 1} instead of an Array{Int64, 1} Any idea why and what I can do to fix it? I'm using Julia

Re: [julia-users] converting array of Int64 to array of UTF8String doesn't quite work

2015-03-30 Thread Philip Tellis
On Sunday, March 29, 2015 at 1:06:29 PM UTC-4, Milan Bouchet-Valat wrote: Le dimanche 29 mars 2015 à 09:46 -0700, Philip Tellis a écrit : As to my actual problem, what I have is a DataFrame with two columns, one a DataArray{UTF8String, 1} and the other a DataArray{Int64, 1}, and I need

[julia-users] map returns DataArray{Any, 1} instead of Array{Int64, 1} [fixed formatting]

2015-03-30 Thread Philip Tellis
I have a DataArray{UTF8String, 1} and I am trying to map it to an Array{Int64, 1} using a Dict lookup. My Dict is of type Dict{String, Int64}, and I'm using map to do the lookup. However, it seems that the map returns a DataArray{Any, 1} instead of an Array{Int64, 1}, and I don't understand

[julia-users] converting array of Int64 to array of UTF8String doesn't quite work

2015-03-28 Thread Philip Tellis
I've written the following code: import Base.convert function convert(::Type{UTF8String}, x::Int64) return utf8(string(x)) end println(convert(UTF8String, 10)) println(convert(Array{UTF8String, 1}, [10])) The intent is to convert an Array of Int64 into an Array of UTF8String. The first

[julia-users] Re: CALL FOR PARTICIPATION: JuliaCon 2015, June 24-28, MIT

2015-03-14 Thread Philip Tellis
I have added JuliaCon to Lanyrd here: http://lanyrd.com/2015/juliacon/ Jiahao and the other organizers should feel free to claim the event and make updates

[julia-users] How to prevent SQL injection in Julia?

2015-02-19 Thread Philip Tellis
I'm using the ODBC package to connect to a database and make a few SQL queries. For some of these queries, the table name or values in the WHERE clause come from variables, and I need a way to safely quote them for use in an SQL string. Is there a standard method in Julia to do this? For

Re: [julia-users] How to prevent SQL injection in Julia?

2015-02-19 Thread Philip Tellis
Opened issue #74