Re: [julia-users] Question: Forcing readtable to create string type on import

2016-11-03 Thread Jacob Quinn
LeAnthony, I'm wondering if you're on an old version of DataFrames? There haven't been any issues "show"-ing DataFrames with NullableArray columns for quite some time. You can check (and post back here) your current package versions by doing: Pkg.installed() You can also ensure you're on the lat

Re: [julia-users] Question: Forcing readtable to create string type on import

2016-10-31 Thread Jacob Quinn
You could use CSV.jl: http://juliadata.github.io/CSV.jl/stable/ In this case, you'd do: df1 = CSV.read(file1; types=Dict(1=>String)) # assuming your account number is column # 1 df2 = CSV.read(file2; types=Dict(1=>String)) -Jacob On Mon, Oct 31, 2016 at 12:50 PM, LeAnthony Mathews wrote: > U

[julia-users] [ANN] DataStreams v0.1: Blog post + Package Release Notes

2016-10-27 Thread Jacob Quinn
Hey everyone, Just wanted to put out the announcement of the release of DataStreams v0.1. (it was actually tagged a few weeks ago, but I've been letting a few last things shake out before announcing). I've written up a blog post on the updates and release here: http://quinnj.github.io/datastre

Re: [julia-users] Using SQLBulkOperations in ODBC.jl

2016-10-26 Thread Jacob Quinn
As long as your DB table is created correctly (i.e. correct types), you can do ODBC.load(dsn, "table_name", df) More docs here: http://juliadb.github.io/ODBC.jl/stable/#ODBC.load-1 On Wed, Oct 26, 2016 at 9:49 AM, Terry Seaward wrote: > Hi, > > How could one use the SQLBulkOperations functio

Re: [julia-users] Filtering DataFrame with a function

2016-10-12 Thread Jacob Quinn
I think the Julia ecosystem is evolving tremendously in this respect. I think originally, there were a lot of these "mammoth" packages that tried to provide everything and the kitchen sink. Unfortunately, this has led to package bloat, package inefficiencies in terms of load times and installation,

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

Re: [julia-users] ls()?

2016-09-14 Thread Jacob Quinn
readdir() On Wed, Sep 14, 2016 at 8:34 AM, Adrian Lewis wrote: > In the filesystem package, if we have pwd() and cd(), why do we not have > ls()? > > Aidy >

Re: [julia-users] Proposed solution for writing Enums

2016-08-23 Thread Jacob Quinn
Julia indeed has built-in enums: Just below here in the docs: http://docs.julialang.org/en/latest/stdlib/base/#Base.Val{c} On Tue, Aug 23, 2016 at 10:51 AM, Evan Fields wrote: > @enum doesn't do what you want for enums? >

Re: [julia-users] How to Manipulate each character in of a string using a for loop in Julia ?

2016-08-16 Thread Jacob Quinn
Strings are immutable (similar to other languages). There are several different ways to get what you want, but I tend to utilize IOBuffer a lot: a = "abcd" io = IOBuffer() for char in a write(io, a + 1) end println(takebuf_string(io)) -Jacob On Wed, Aug 17, 2016 at 12:30 AM, Rishabh Raghun

Re: [julia-users] How to debug segmentation fault?

2016-08-09 Thread Jacob Quinn
There are many much more knowledgeable than me on this, but I know there's a good section in the manual to help you get started: http://docs.julialang.org/en/latest/devdocs/C/ -Jacob On Tue, Aug 9, 2016 at 9:53 AM, Adrian Salceanu wrote: > I ran into an issue where apparently at random I get se

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Jacob Quinn
There's also a Compat.jl entry for this, see the first bullet point in the documentation on the README. That way, you can just do @compat Base.:! and it will be valid for both 0.4/0.5. https://github.com/JuliaLang/Compat.jl -Jacob On Mon, Aug 8, 2016 at 9:04 AM, Scott T wrote: > Great, than

Re: [julia-users] Re: Working with DataFrame columns types that are Nullable

2016-07-22 Thread Jacob Quinn
You are correct. There are properties of NullableArrays required for proper data transfer/handling, but I still wanted users to get a familiar type back. I'm definitely helping out with https://github.com/JuliaStats/DataFrames.jl/pull/1008 to ensure DataFrames gets ported over as quickly as possibl

Re: [julia-users] Does the Julia has goto?

2016-07-12 Thread Jacob Quinn
It's basically: @label goto_label then later. @goto goto_label Should probably have some docs though. On Tue, Jul 12, 2016 at 6:16 AM, vasili111 wrote: > I search docs and I did not find any information how to use it but there > is some example code with goto. So, does the Julia has goto? >

Re: [julia-users] I would like to display links to new Julia Questions from StackOverflow in the Gitter Sidebar

2016-07-09 Thread Jacob Quinn
Just sent it to you. On Sat, Jul 9, 2016 at 10:11 PM, Lyndon White wrote: > > Hi all, > We were discussing this in the gitter chat > . > That it would be cool if everytime someone asked a Julia question on Stack > Overflow, it would appear in the Activity side

Re: [julia-users] Parsing ASCIIString to Bool

2016-06-29 Thread Jacob Quinn
This was just fixed on master: https://github.com/JuliaLang/julia/pull/17078 On Thu, Jun 30, 2016 at 1:43 AM, wrote: > Hi all, > > I was just wondering if the following is expected behaviour: > > julia> parse("true") > true > > julia> typeof(parse("true")) > Bool > > julia> parse(Bool, "true") >

Re: [julia-users] Oracle ODBC

2016-06-27 Thread Jacob Quinn
It's probably the case that Oracle has built the drivers themselves, so a programming language would just need a wrapper library around the direct driver (similar things exist for MySQL, Postgres, etc.). But what Stefan said still applies, someone would have to take the initiative to build the wra

Re: [julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Jacob Quinn
Sorry, to clarify a little: The things you're zipping are not necessarily indexable (i.e. other iterators), so it's not safe to assume you can always index a Zip. On Thu, Jun 23, 2016 at 2:21 PM, Jacob Quinn wrote: > Most "iterator" types are not indexable, AFAIK. The t

Re: [julia-users] indexing over `zip(collection1, collection2)`

2016-06-23 Thread Jacob Quinn
Most "iterator" types are not indexable, AFAIK. The typical recommendation/idiom is to just call `collect(itr)` if you need to specifically index. -Jacob On Thu, Jun 23, 2016 at 2:18 PM, Davide Lasagna wrote: > Is there any particular reason why `Zip` objects are iterable but not > indexable? P

Re: [julia-users] Syntax for composite type constructors

2016-06-17 Thread Jacob Quinn
There's been a long-open issue for this here: https://github.com/JuliaLang/julia/pull/6122 Not sure why it's never been implemented as I don't think anyone was really opposed. I imagine if people make a big push for it, we could convince someone to get it across the finish line. -Jacob On Fri, J

Re: [julia-users] Re: Git submodules vs Julia submodules

2016-06-15 Thread Jacob Quinn
You're correct Eric; libgit2 isn't doing anything related to what you're doing here. You're really just telling Julia one more location to look in order to find a module definition. There's an open issue I created recently about how to do this more generally (i.e. without having to explicitly touch

Re: [julia-users] Problems with MySQL sample code

2016-06-14 Thread Jacob Quinn
Yep, it's just like I said above, in the "mysql_execute(con" command/line, you'll even notice the code highlighting in your email shows that "John" is highlighted as a value instead of a text. That's because the double quote right before John is ending the string that starts with "INSERT...".

Re: [julia-users] Problems with MySQL sample code

2016-06-14 Thread Jacob Quinn
My guess is that you have an SQL query that is something like: query("select * from table where name = "John" and dept = 7") The problem then is that the double quotation mark right before John is actually *ending* the double quote that started your query string. What you want is to escape the qu

Re: [julia-users] Initialization via ntuple()

2016-06-08 Thread Jacob Quinn
s! I was looking for something similar to fill() but for NTuple .. > But I couldn't find any .. > > -Islam > > On Wednesday, June 8, 2016 at 11:20:06 AM UTC-4, Jacob Quinn wrote: > >> That looks right as far as I understand. >> >> -Jacob >> >> On Wed,

Re: [julia-users] Initialization via ntuple()

2016-06-08 Thread Jacob Quinn
That looks right as far as I understand. -Jacob On Wed, Jun 8, 2016 at 8:42 AM, Islam Badreldin wrote: > Hi > > What is the easiest way to initialize NTuple with some constant value? > Currently I am using > > julia> y=ntuple(x->0.0,10) > (0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0) > > > Is this

Re: [julia-users] Signal / slot (or publish-subscribe) libraries in Julia

2016-05-29 Thread Jacob Quinn
ZMQ.jl? Or maybe you don't need something socket based. -Jacob On Sun, May 29, 2016 at 1:25 PM, Femto Trader wrote: > Hello, > > I'm looking for a Julia library which implements one of these design > pattern: > > - signal / slot > - publish / subscribe > > Python have many libraries for this pu

Re: [julia-users] Re: Questions regarding to SQLite

2016-05-25 Thread Jacob Quinn
in anonymous at C:\Users\shoren\.julia\v0.4\Atom\src\eval.jl:62 > in withpath at C:\Users\shoren\.julia\v0.4\Requires\src\require.jl:37 > in withpath at C:\Users\shoren\.julia\v0.4\Atom\src\eval.jl:53 > [inlined code] from C:\Users\shoren\.julia\v0.4\Atom\src\eval.jl:61 > in ano

Re: [julia-users] Re: Questions regarding to SQLite

2016-05-25 Thread Jacob Quinn
Make sure you do using DataFrames using SQLite in that order in a fresh Julia session to ensure the conversion methods get defined (when you load the SQLite package, it checks if DataFrames has already been loaded to define the conversion routines). -Jacob On Wed, May 25, 2016 at 10:43 PM, SHO

Re: [julia-users] Capture output from a shell command

2016-05-18 Thread Jacob Quinn
`countlines(file)` in Base should actually be just as fast as `wc`. But otherwise, you can do readall(`wc -l ratings.dat`) to capture all the output of a command (note that this is `readstring(`wc -l ratings.dat`)` on 0.5) -Jacob On Wed, May 18, 2016 at 11:43 AM, Douglas Bates wrote: > I hav

Re: [julia-users] Slow reading of file

2016-05-14 Thread Jacob Quinn
I'm actually one who is trying to increase overall things like integer parsing. Currently in the CSV.jl package, we have some beta-mode fast parsing functions. I generated a file with: open("test_integers","w") do f for i = 1:7_068_650 println(f, rand(Int16)) end end And reading i

Re: [julia-users] Julia Utopia: Share your tips and tricks to efficient coding in Julia

2016-05-12 Thread Jacob Quinn
I'll take a stab here. For context, I've been coding in Julia since 2012, contributed to Base and some data processing packages. * I currently use Atom; it's come a long way since it started, both the IDE itself and Julia support. It seems to have way more momentum in both respects as well (vs. sa

Re: [julia-users] Julia SQL

2016-05-08 Thread Jacob Quinn
Also checkout the SQLite.jl package. It provides methods for reading CSV files into an SQLite table and then running SQLite SQL commands on those tables. You can then export the SQLite to a CSV or Data.Table/DataFrame. -Jacob On May 8, 2016 4:32 AM, "Tero Frondelius" wrote: > Maybe this thread i

Re: [julia-users] Can't add PostgreSQL

2016-05-04 Thread Jacob Quinn
call, AFAIK. > > Ross > -- > *From:* karbar...@gmail.com [karbar...@gmail.com] on behalf of Jacob > Quinn [quinn.jac...@gmail.com] > *Sent:* Tuesday, May 03, 2016 7:57 PM > *To:* julia-users@googlegroups.com > *Subject:* Re: [julia-users] Can&

Re: [julia-users] Can't add PostgreSQL

2016-05-03 Thread Jacob Quinn
even though my mailer is allergic. > Look for >> > > > From: karbar...@gmail.com [karbar...@gmail.com] on behalf of Jacob Quinn [ > quinn.jac...@gmail.com] > Sent: Tuesday, May 03, 2016 5:47 PM > > I'm not sure I understand: I don't see DBI.jl nor PostgreSQL

RE: [julia-users] Can't add PostgreSQL

2016-05-03 Thread Jacob Quinn
ding /home/ross/PCORI/trouble.jl, in expression starting on line > 3 > > trouble.jl begins > > using DBI > using PostgreSQL > conn = connect(Postgres, "localhost", "user", "word", "table") > > Ideas? > > Isn't ODBC just fo

Re: [julia-users] Can't add PostgreSQL

2016-05-03 Thread Jacob Quinn
I don't think the PostgreSQL.jl package was ever officially registered. You could try Pkg.clone("https://github.com/JuliaDB/PostgreSQL.jl";) to manually download/install it; you may need to do Pkg.build("PostgreSQL") as well after cloning. Alternatively, you might try the latest master of https://g

[julia-users] [ANN] Major Breaking Release/Overhaul for ODBC.jl

2016-05-03 Thread Jacob Quinn
Hey everyone, A new release is imminent for the ODBC.jl package (will be released later today). As a quick history: - ODBC.jl was the first package I ever worked on with Julia (indeed, the first commit is from January 2013) - A lot of refinements

Re: [julia-users] Cloning private package with 0.5

2016-04-24 Thread Jacob Quinn
Note that it's currently possible to clone private GitHub repos using "personal access tokens" from Github. If you go to your profile/settings, you can generate private access tokens that allow access to private Github repos and then from Julia, you can clone with the following format: Pkg.clone("

Re: [julia-users] promotion vs. specialization

2016-04-21 Thread Jacob Quinn
There's also been discussion around doing this specifically for keyword arguments, which if I remember has generally had pretty good reception. It would make the following pattern much more friendly: f(x; parameter_arg::Nullable{Int}=Nullable{Int}()) = ... f(x; parameter_arg = 1) (since the 1 wo

Re: [julia-users] MethodError: '+' has no method matching +(::DateTime, ::Int64)

2016-04-04 Thread Jacob Quinn
just document to everythings more clear. On Mon, Apr 4, 2016 at 10:49 AM, Milan Bouchet-Valat wrote: > Le lundi 04 avril 2016 à 10:27 -0600, Jacob Quinn a écrit : > > Hmmm.yeah, it's not ideal, I guess. Dates.day(::Integer) is > > indeed an internal method that takes th

Re: [julia-users] MethodError: '+' has no method matching +(::DateTime, ::Int64)

2016-04-04 Thread Jacob Quinn
t; On Monday, April 4, 2016 at 11:21:47 AM UTC-4, Jacob Quinn wrote: > > Dates.day is the accessor funciton, returning the day of month for a >> Date/DateTime. >> >> Dates.Day is the Period type representing the span of one day. >> >> So you'll want somethi

Re: [julia-users] MethodError: '+' has no method matching +(::DateTime, ::Int64)

2016-04-04 Thread Jacob Quinn
Dates.day is the accessor funciton, returning the day of month for a Date/DateTime. Dates.Day is the Period type representing the span of one day. So you'll want something like: now() + Dates.Day(1) -Jacob On Mon, Apr 4, 2016 at 5:48 AM, Josh wrote: > When trying to increment and decrement

Re: [julia-users] DataFrame from string

2016-03-21 Thread Jacob Quinn
You should be able to wrap the string in an IOBuffer, which satisfies the general IO interface. e.g. io = IOBuffer(csv) readtable(io) -Jacob On Mon, Mar 21, 2016 at 9:28 AM, jw3126 wrote: > I have a string which is secretly a csv like > """ > 1, 7.6 > 2, 45.6 > 3, 12.1 > ... > """ > > I want

Re: [julia-users] Re: ANN: A potential new Discourse-based Julia forum

2016-02-19 Thread Jacob Quinn
+1; let's switch over. On Feb 19, 2016 9:00 AM, "Jonathan Malmaud" wrote: > Hi guys, > Discourse can be used as a mailing list just as Google Groups can, and it > should be possible to import the current subscribers to this email list to > Discourse. So it would be a pretty seamless transition. T

Re: [julia-users] Inverse of `bits`?

2016-02-16 Thread Jacob Quinn
There is the parse(*type*, *str*[, *base*]) function that will parse *integers* of a given base (link to doc: http://docs.julialang.org/en/release-0.4/stdlib/numbers/?highlight=binary#Base.parse), but floats are always parsed as decimal. But using reinterpret, you could do julia> str = bits(1.0f0)

Re: [julia-users] Re: Nullable{Date}

2016-02-08 Thread Jacob Quinn
The problem with that proposition is that it introduces type instability. i.e. the user would be tempted to write code like Michael's original example like LeapDay(yr) = isLeapYr(yr) ? Date(yr,2,29) : Nullable{Date}() where the function `LeapDay` can actually return two different, distinct types:

Re: [julia-users] load a Julia dataframe from Microsoft SQL Server table

2016-02-04 Thread Jacob Quinn
That's a big part of the "remodel" I've been working on to always call the "W" version of the functions and use UTF8 consistently (see here: https://github.com/JuliaDB/ODBC.jl/blob/jq/remodel/src/API.jl). I would certainly welcome those willing to test various configurations/setups. -Jacob On Thu

Re: [julia-users] How to convert Int64 to Date

2016-01-23 Thread Jacob Quinn
I've created a pull request to clarify the usage here and add documentation. https://github.com/JuliaLang/julia/pull/14775 -Jacob On Sat, Jan 23, 2016 at 9:36 AM, Min-Woong Sohn wrote: > I want to convert an Int64 value 735685 to Date type (2016-1-22). > convert(Date,735685) does not work. Do

Re: [julia-users] How to convert Int64 to Date

2016-01-23 Thread Jacob Quinn
The easiest way right now is to do Date(Dates.UTD(735685)) It's a bit awkward, and I think we should have a better default option. Perhaps we should define `convert(::Type{Date}, x::Int64)` defined for this. On Sat, Jan 23, 2016 at 9:36 AM, Min-Woong Sohn wrote: > I want to convert an Int64 va

Re: [julia-users] Get the OS

2015-12-08 Thread Jacob Quinn
See here: http://docs.julialang.org/en/latest/stdlib/base/?highlight=windows#Base.@windows There are also the @windows_only ...code... @unix_only ...code @osx_only ...code @linux_only code... Or the variable name `OS_NAME` that will return the OS name as a symbol. Plenty of options

Re: [julia-users] using a JSON REST API from Julia

2015-11-14 Thread Jacob Quinn
You got it. Requests.jl is the current standard, unless you felt more comfortable calling a python library with PyCall. Requests.jl has gotten a lot of love lately from Jon Malmaud and is 0.4 ready. -Jacob On Sat, Nov 14, 2015 at 7:10 AM, Christof Stocker < stocker.chris...@gmail.com> wrote: >

Re: [julia-users] Enums in Julia

2015-10-30 Thread Jacob Quinn
Eric, Currently in Julia, officially supported Enums can only take on integer values. This excludes the ability to use an arbitrary type as values for enum members. You could, however, use enums as a part of a solution: @enum Country Brazil China Canada USA etc. immutable CountryData field1:

Re: [julia-users] Re: [ANN] DataStreams.jl, CSV.jl, SQLite.jl New Releases

2015-10-27 Thread Jacob Quinn
hreadInitThunk at C:\Windows\system32\kernel32.dll (unknown line) > RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line) > ERROR: LoadError: Failed to precompile DataStreams to > C:\Users\workstation\.juli > a\lib\v0.4\DataStreams.ji > in error at error.jl:21 > while

Re: [julia-users] 900mb csv loading in Julia failed: memory comparison vs python pandas and R

2015-10-26 Thread Jacob Quinn
a tiny file though (40 lines or >> > > so). >> > > I do get a dataframe, but when I show it (by simply typing df, or >> > > dump(df)) Julia crashes... >> > > >> > > Bernhard >> > > >> > > >>

[julia-users] [ANN] DataStreams.jl, CSV.jl, SQLite.jl New Releases

2015-10-26 Thread Jacob Quinn
Hey everyone, I know it's been mentioned here and there, but now it's official: two new packages have been officially released for 0.4, DataStreams.jl and CSV.jl. SQLite.jl has also gone through a big overhaul to modernize the code and rework the data processing interface. DataStreams.jl is a

Re: [julia-users] What does sizehint! do, exactly?

2015-10-21 Thread Jacob Quinn
> On Wednesday, October 21, 2015 at 12:32:04 PM UTC-7, Jacob Quinn wrote: >> >> I believe it stays allocated until the object is removed. There's an old >> issue about providing a way to "shrink" the underlying storage: >> https://github.com/JuliaLang/julia

Re: [julia-users] What does sizehint! do, exactly?

2015-10-21 Thread Jacob Quinn
lot of values onto a >> vector, you can avoid the cost of incremental reallocation by doing it once >> up front. >> >> On Wednesday, October 21, 2015, Jacob Quinn wrote: >> >>> The way I came to understand was to just take a peak at the [source >>&g

Re: [julia-users] What does sizehint! do, exactly?

2015-10-21 Thread Jacob Quinn
The way I came to understand was to just take a peak at the [source code]( https://github.com/JuliaLang/julia/blob/ae154d076a6ae75bfdb9a0a377a6a5f9b0e1096f/src/array.c#L670); I find it pretty legible. The basic idea is that the underlying "storage" of a Julia Array{T,N} can actually be (and often i

Re: [julia-users] 900mb csv loading in Julia failed: memory comparison vs python pandas and R

2015-10-13 Thread Jacob Quinn
ight be intermediate results that are freed by the GC. > Also, from the output of @time, it looks like 0.4. > > > > > On Wednesday, October 14, 2015 at 2:28:09 AM UTC+5:30, Jacob Quinn wrote: > >> > >> I'm hesitant to suggest, but if you're in a bind,

Re: [julia-users] 900mb csv loading in Julia failed: memory comparison vs python pandas and R

2015-10-13 Thread Jacob Quinn
I'm hesitant to suggest, but if you're in a bind, I have an experimental package for fast CSV reading. The API has stabilized somewhat over the last week and I'm planning a more broad release soon, but I'd still consider it alpha mode. That said, if anyone's willing to give it a drive, you just nee

Re: [julia-users] Combining arrays in an R enlist like manner

2015-10-12 Thread Jacob Quinn
Yeah, you're not going to do much better than that: julia> function unlist{T}(vec_of_vecs::Vector{Vector{T}}) i = 0 for vec in vec_of_vecs i += length(vec) end final = Array(T, i) i = 1 for vec in vec_of_vecs for element in vec

Re: [julia-users] convert a list of ASCIIString into Any

2015-10-12 Thread Jacob Quinn
I'd probably do something like: julia> x = Any["abc", "10"] 2-element Array{Any,1}: "abc" "10" julia> for (i,v) in enumerate(x) parsed = tryparse(Int,v) x[i] = isnull(parsed) ? v : get(parsed) end julia> x 2-element Array{Any,1}: "abc" 10 On Mon, Oct 12, 2015 at 8:

Re: [julia-users] How to define function f(x::(Int...)) in Julia 0.4?

2015-10-11 Thread Jacob Quinn
I believe the current way to do this is: julia> t(x::Tuple{Vararg{Int}}) = sum(x) t (generic function with 1 method) julia> t((1,1)) 2 julia> t((1,1,1)) 3 julia> t((1,1,1,1)) 4 Though I recall there being an open issue or two on syntax to make this nicer. (something like `t(x::{Int...})` ) -J

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-10-08 Thread Jacob Quinn
x27;t need a df but a custom data structure I created. I will > do the conversion when I find time to do so. > > Coincidentally I created an inexcat error in mmap 126 with a 3GB file. I > don't have time to find the line which caused it right now though. > > Bernhard > >

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-10-08 Thread Jacob Quinn
nction writefield(io::Sink, val::AbstractString, col N) > > > > Am Mittwoch, 7. Oktober 2015 16:36:52 UTC+2 schrieb David Gold: >> >> Yaas. Very excited to see this. >> >> On Wednesday, October 7, 2015 at 6:07:44 AM UTC-7, Jacob Quinn wrote: >>> >>> Haha, nic

Re: [julia-users] Re: The status of Julia's Webstack

2015-10-07 Thread Jacob Quinn
Jon, I think you mean Morsel and Meddle are deprecated? While Mux is actually maintained? On Wed, Oct 7, 2015 at 7:04 AM, Jonathan Malmaud wrote: > Mux and Morsel are formally deprecated at this point and have no > maintainers. They were designed early on in Julia's life and don't have a > desi

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-10-07 Thread Jacob Quinn
your proposal for string >> handling end up playing with the current Julia data ecosystem. >> >> On Saturday, June 6, 2015 at 1:17:34 AM UTC-4, Jacob Quinn wrote: >>> >>> @David, >>> >>> Sorry for the slow response. It's been a busy

Re: [julia-users] Re: META: What are the chances of moving this forum?

2015-09-09 Thread Jacob Quinn
I know I've heard chatter around about moving google groups to Discourse. I think people would generally be favorable, the problem is just having someone to own it, set it up, maintain, etc. I'm not even sure what the overhead for something like Discourse is vs. google groups. If someone feels stro

Re: [julia-users] Re: Convert datetime string that has AM/PM to datetime, without using Calendar.jl

2015-09-08 Thread Jacob Quinn
I'm not seeing the error on the latest master _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Ve

Re: [julia-users] Re: Recent developments in JuliaWeb

2015-09-06 Thread Jacob Quinn
The switch will happen automatically; no need to change any user code. We'll make the switch and tag a new release and next time you run Pkg.update() it'll download and install MbedTLS.jl. Sent from my iPhone > On Sep 6, 2015, at 5:45 PM, jock.law...@gmail.com wrote: > > Iain these are positiv

Re: [julia-users] Re: Dates and typemax error

2015-08-31 Thread Jacob Quinn
Where yy is defined as the >>> two digit year. >>> >>> On Friday, August 28, 2015 at 11:51:14 AM UTC-4, Stefan Karpinski wrote: >>>> >>>> The safest option is probably to raise an error. >>>> >>>> On Fri, Aug 28, 2015 at 1

[julia-users] Re: Dates and typemax error

2015-08-28 Thread Jacob Quinn
Hm...it's not entirely clear to me what we should do here. On the one hand, when you ask to have the typemax(Date) formatted, it's currently doing what you asked, "formatting the year with 4 digits". Because your year in this case is greater than 4 digits, that results in truncation, wh

Re: [julia-users] Inheriting from Real works, from AbstractFloat does not?

2015-08-24 Thread Jacob Quinn
When you subtype AbstractFloat, it's going to try to use the `grisu.jl` code to do the showing. The grisu code has all sorts of requirements to work, most of it semi-hard-coded for Float16, Float32, and Float64. Your best bet would probably be to define Base.show(io::IO, x::SubtypeAbsFloat) = show

Re: [julia-users] Re: Get time between two DateTime values in hours (and minutes if simple)

2015-08-15 Thread Jacob Quinn
Yeah, it's forthcoming. I left it out originally just to be conservative in code and function, but it's come up enough that we should add it in for TimePeriods. A good "up for grabs" kind of PR if anyone's feeling up for it. -Jacob On Sat, Aug 15, 2015 at 10:59 AM, Ian Butterworth wrote: > Than

Re: [julia-users] Pass an array of values to SQLite query

2015-08-04 Thread Jacob Quinn
You probably want something like query(db,"insert into tbl values ($(join(vals,',')))") to do a single row. Also note that the `create` and `append` methods are supplied to handle uploading "table"-like datastructures (i.e. anything that supports size(A) and getindex(A, i, j)). -Jacob On Tue,

Re: [julia-users] Re: MongoDB and Julia

2015-07-13 Thread Jacob Quinn
; alternatives, but probably won't follow with ODBC. I appreciate the help. > > On Monday, July 13, 2015 at 4:02:25 PM UTC-3, Jacob Quinn wrote: >> >> You may also try Pkg.add("ODBC") if you can find a working ODBC driver >> for mongo. I feel like I've heard of p

Re: [julia-users] Re: MongoDB and Julia

2015-07-13 Thread Jacob Quinn
You may also try Pkg.add("ODBC") if you can find a working ODBC driver for mongo. I feel like I've heard of people going this route. -Jacob On Mon, Jul 13, 2015 at 9:23 AM, Kevin Liu wrote: > Hey Stefan, thanks for replying. I have not opened an issue on Github's > pzion/Mongo.jl. I will, and I

Re: [julia-users] Re: Too many packages?

2015-07-13 Thread Jacob Quinn
Note there's also an open issue for requiring a higher overall standard for officially registered packages in the JuliaLang/METADATA.jl package repository. It's a big issue with a lot of work required to get to the proposal, but it would lead to (hopefully) instilling more confidence in users knowi

Re: [julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Jacob Quinn
On Fri, Jul 10, 2015 at 8:11 AM, Tom Breloff wrote: > as Tom, Yes, the method I proposed won't work retroactively since the method for getting the current local offset from GMT is `now() - now(Dates.UTC)`. If you were to run that every second crossing over the daylight savings moment, you'd se

Re: [julia-users] Help to eliminate Calendar.jl dependence

2015-07-08 Thread Jacob Quinn
TimeZones.jl isn't quite ready for public consumption yet (enough public clamor will eventually get me to fix it up). How about the following? function calcSecondsEpochToMidnight(secondsSinceEpoch::Integer) utc = DateTime(Date(Dates.unix2datetime(secondsSinceEpoch))) adjustment = Dates.Se

Re: [julia-users] how to determine if a particular method signature defined

2015-07-06 Thread Jacob Quinn
http://docs.julialang.org/en/latest/stdlib/base/#Base.applicable On Mon, Jul 6, 2015 at 11:25 AM, Simon Byrne wrote: > If I have a generic method foo, is there a way I can tell if a particular > signature has been defined? > > Note that I don't want method_exists (which simply determines if some

Re: [julia-users] JuliaCon Hacking

2015-06-26 Thread Jacob Quinn
They actually just kicked us out for the night, so we're calling it a night. Looking forward to some more hacking tomorrow! -Jacob On Sat, Jun 27, 2015 at 1:11 AM, Scott Jones wrote: > Are you all still up hacking?

[julia-users] JuliaCon Hacking

2015-06-26 Thread Jacob Quinn
A few of us are hacking tonight at the Hyatt Regency hotel for JuliaCon. We're on the 2nd floor at the end of the hall in the "Aquarium" room if anyone wants to join us. -Jacob

Re: [julia-users] subtracting two uint8's results in a Uint64?

2015-06-17 Thread Jacob Quinn
This has been changed on 0.4. https://github.com/JuliaLang/julia/issues/3759 -Jacob On Wed, Jun 17, 2015 at 4:33 PM, Phil Tomson wrote: > Maybe this is expected, but it was a bit of a surprise to me: > > julia> function foo() > red::Uint8 = 0x33 > blue::Uint8 = 0x36

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-06-05 Thread Jacob Quinn
lude, say, a bunch of delimiters. That is, what sort of parsing *does* > SQLite do, and when? > > On Monday, June 1, 2015 at 1:48:16 PM UTC-4, Jacob Quinn wrote: >> >> The biggest single advantage SQLite has is the ability to mmap a file and >> just tell SQLite which poin

Re: [julia-users] IJulia: Swap shift-enter for enter?

2015-06-03 Thread Jacob Quinn
If you go into the "IJulia" package in your Sublime packages directory (there's a menu item to "Browse Packages", you'll fine keymapping files for each platform. Just find the one that says "shift+enter" and change it to "enter" and save. Done. -Jacob On Wed, Jun 3, 2015 at 12:56 AM, RecentConve

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-06-01 Thread Jacob Quinn
rhead from DataFrames is not much. > > Thank you again! > > On Monday, June 1, 2015 at 1:06:50 PM UTC-4, Jacob Quinn wrote: >> >> I've been meaning to clean some things up and properly release the >> functionality, but I have a new way to read in CSV files that be

Re: [julia-users] DataFrames' readtable very slow compared to R's read.csv when loading ~7.6M csv rows

2015-06-01 Thread Jacob Quinn
I've been meaning to clean some things up and properly release the functionality, but I have a new way to read in CSV files that beats anything else out there that I know of. To get the functionality, you'll need to be running 0.4 master, then do Pkg.add("SQLite") Pkg.checkout("SQLite","jq/updates

Re: [julia-users] SharedArray definition and assignation of values. Is this behavior a bug?

2015-05-18 Thread Jacob Quinn
I'm not able to reproduce the above behavior with my latest changes to #11280, so that's a good sign! If you're feeling ambitious/able, feel free to give that PR a spin to see if it fixes it for you as well. -Jacob On Mon, May 18, 2015 at 8:55 PM, Jacob Quinn wrote: > I

Re: [julia-users] SharedArray definition and assignation of values. Is this behavior a bug?

2015-05-18 Thread Jacob Quinn
I'm actually just about to do another round of windows testing on #11280, so I'll test this out as well. Thanks for the report! -Jacob On Mon, May 18, 2015 at 6:27 PM, Sebastian Souyris < sebastian.souy...@gmail.com> wrote: > It seems that there is a bug when you define several SharedArray in on

Re: [julia-users] Best way in Julia to build a set of unique values?

2015-05-18 Thread Jacob Quinn
You could also take a look at JudyDicts.jl, which wrap the corresponding C library. Supposedly, it's one of the most highly optimized Dict implementations anywhere. I think the Julia package may need an update, however. https://github.com/tanmaykm/JudyDicts.jl -Jacob On Mon, May 18, 2015 at 4:07

Re: [julia-users] how do we convert an array{Float64,1} in a Float64?

2015-05-15 Thread Jacob Quinn
You'll have to clarify what you're looking for; it's not really clear from your brief description. Perhaps sharing the code you're working with would be easier? -Jacob On Fri, May 15, 2015 at 3:18 PM, Lytu wrote: > Someone know how to convert an array{Float64,1} in a Float64? > Thank you >

Re: [julia-users] `include()` vs `require()`

2015-05-08 Thread Jacob Quinn
Also see the issue logged here: https://github.com/JuliaLang/julia/issues/8000 On Fri, May 8, 2015 at 2:19 PM, Stefan Karpinski wrote: > help?> reload > search: reload prevfloat parsefloat > > Base.reload(file::AbstractString) > >Like "require", except forces loading of files regardless of >

Re: [julia-users] storing @time

2015-05-07 Thread Jacob Quinn
http://docs.julialang.org/en/latest/stdlib/base/#Base.tic On Thu, May 7, 2015 at 1:00 PM, Edward Chen wrote: > To whom it may concern: > > I am interested in testing the performance of my code. > > I am familiar with using @elapsed in the following way: > > metric = Float64[] > push!(metric,@ela

Re: [julia-users] Panel Data using DataFrame (or other method?)

2015-05-05 Thread Jacob Quinn
Remember, the world is your oyster! Take a stab at creating a package and sharing it! I'm sure you'd get some interest/feedback. -Jacob On Tue, May 5, 2015 at 10:53 AM, Nils Gudat wrote: > Hm, that's a shame - I was hoping for something better than pandas' panel > implementation in Julia, as I'

Re: [julia-users] Julia Web Development "Morsel" Package

2015-05-04 Thread Jacob Quinn
Might be GnuTLS.jl, on which Requests has a dependency on and loads a C library. On Mon, May 4, 2015 at 12:39 PM, George Thomas wrote: > Hi - > I get a server segmentation fault immediately as I connect to the server > via URL `localhost:8000/hello/name/` from a browser (firefox or chrome). I >

Re: [julia-users] Get GMT time

2015-05-04 Thread Jacob Quinn
Yeah, the second one is a little obscure, because of a couple of issues. -`UTC` isn't exported from the Dates module, so you'll have to use `Dates.UTC` -`UTC` is a *type* instead of a instance of a type, (that's what the ::Type{UTC} means) So the correct way to call this is now(Dates.UTC) On Mo

Re: [julia-users] readtable produce wrong column name

2015-04-30 Thread Jacob Quinn
DataFrame column names must be valid Julia identifiers, so readtable does the conversion when reading data in. -Jacob On Thu, Apr 30, 2015 at 12:43 PM, Li Zhang wrote: > hi all, > > I first use writetable to write a dataframe to a csv file. some of the > column names are "(somename)", or "name

Re: [julia-users] Re: Naming convention

2015-04-27 Thread Jacob Quinn
Official Julia issue to deprecate *, ^: https://github.com/JuliaLang/julia/issues/11030 On Mon, Apr 27, 2015 at 10:19 AM, François Fayard wrote: > So let's forget about ~ as it is already used by DataFrames which is a > very important package. > > I just found that the project Coq is using ++ fo

Re: [julia-users] Julia stuck at large floating point number array from source code

2015-04-13 Thread Jacob Quinn
Can you share the script? It's hard to troubleshoot this kind of problem without seeing exactly what you're running. On Mon, Apr 13, 2015 at 9:37 PM, Siyi Deng wrote: > No, I'm copy and pasting the array, from a text editor to the REPL, and it > hangs there. > > On Monday, April 13, 2015 at 7:53

[julia-users] Efficient Data Transfer via HTTPS

2015-03-29 Thread Jacob Quinn
So I'm building a program that does the following: * Have data stored either in a file (CSV or gzipped CSV) or a Julia structure (Array{T,2}, or other structures that support getindex(A,i,j)) * Need to do a POST request over HTTPS with "Content-Type: text/csv", and ideally always as "Content-Enc

  1   2   3   4   >