[julia-users] Re: DBI: Generic database access in Julia

2014-01-29 Thread Randy Zwitch
What are the types of skills needed to get this off the ground? I know ODBC.jl is a bunch of wrapping of C functions, is that's what's required here as well? On Monday, January 27, 2014 12:30:22 PM UTC-5, John Myles White wrote: I've been intentionally holding off on announcing this work

Re: [julia-users] Help with Requests.jl/adding data to POST request

2014-02-05 Thread Randy Zwitch
should fix that. regards, Bassem On Wed, Feb 5, 2014 at 9:18 AM, Randy Zwitch randy@fuqua.duke.edujavascript: wrote: I'm trying to work through the application-only authentication for Twitter (https://dev.twitter.com/docs/auth/application-only-auth), but I can't seem to get the POST

[julia-users] Turning off scientific notation?

2014-02-08 Thread Randy Zwitch
I'm trying to use the time() function within string interpolation, but it's not producing the desired result: julia time() 1.391893797590157e9 julia $(time()) 1.391893808023869e9 How do I get the float representation?

Re: [julia-users] Turning off scientific notation?

2014-02-09 Thread Randy Zwitch
Thanks Andreas. Do you know if this is the expected design pattern? Meaning, it seems weird to need a macro to print out a float. On Saturday, February 8, 2014 4:16:35 PM UTC-5, Andreas Noack Jensen wrote: You can use @sprintf, e.g. @sprintf(%f\n,1.3e9). 2014-02-08 22:10 GMT+01:00 Randy

[julia-users] Function, Macro or something else? (Need help with refactoring code)

2014-02-14 Thread Randy Zwitch
I've been working on making a package for the Twitter API. To build methods, I've been copying code between functions, so that every function nearly has the same pattern: #No default argument function get_help_configuration(; options = Dict()) endpoint =

[julia-users] ANN: Twitter.jl

2014-03-08 Thread Randy Zwitch
Hey everyone - Twitter.jl is now available in METADATA. This is still a bit of a work-in-progress, but the current version of the package has functions for nearly all Twitter v1.1 REST API methods. Streaming API methods will be added shortly. For those of you who have used Twitter modules

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

2014-03-08 Thread Randy Zwitch
the wrapping is the same each time, just changing the function name. The versions of +/-/etc that take more than 2 arguments are defined in a for loop, for example. -- Leah On Sat, Mar 8, 2014 at 8:12 AM, Randy Zwitch randy@fuqua.duke.edujavascript: wrote: Hey everyone

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

2014-03-08 Thread Randy Zwitch
with handling pages? What calculations need to be done to get the id, as you mentioned in your original email? -- Leah On Sat, Mar 8, 2014 at 10:46 AM, Randy Zwitch randy@fuqua.duke.edujavascript: wrote: Thanks for the hints Leah! The reason why I use a Dict is so that I can loop over

Re: [julia-users] IJulia example on documentation doesn't work.

2014-04-03 Thread Randy Zwitch
`Data` is a holdover from before in the RDatasets package; the command is now `dataset` using RDatasets iris = dataset(datasets, iris) neuro = dataset(boot, neuro) On Thursday, April 3, 2014 1:58:28 PM UTC-4, vfclists wrote: @Ivar Nesje - I was able to get the Pkg issue sorted out. Thanks

[julia-users] juliabloggers.com is now live!

2014-06-16 Thread Randy Zwitch
Hey everyone - Several posts had popped up over the past few month about creating a centralized location for Julia content. I'm proud to announce that http://www.juliabloggers.com/ is now live! This is still very much a work-in-progress, as the theme is fairly vanilla and I need to work out

[julia-users] Re: juliabloggers.com is now live!

2014-06-16 Thread Randy Zwitch
to the site, I get that content too. // T On Monday, June 16, 2014 1:17:47 PM UTC+2, Randy Zwitch wrote: Hey everyone - Several posts had popped up over the past few month about creating a centralized location for Julia content. I'm proud to announce that http://www.juliabloggers.com/ is now

Re: [julia-users] juliabloggers.com is now live!

2014-06-16 Thread Randy Zwitch
under the post title? On Monday, June 16, 2014 11:05:02 AM UTC-4, John Myles White wrote: Looks great, Randy. Thanks for doing this. — John On Jun 16, 2014, at 5:52 AM, Randy Zwitch randy@fuqua.duke.edu wrote: Nothing shady about it at all and a good reminder I need to add a visible

Re: [julia-users] juliabloggers.com is now live!

2014-06-16 Thread Randy Zwitch
the source blog under the post title? On Monday, June 16, 2014 11:05:02 AM UTC-4, John Myles White wrote: Looks great, Randy. Thanks for doing this. — John On Jun 16, 2014, at 5:52 AM, Randy Zwitch randy@fuqua.duke.edu wrote: Nothing shady about it at all and a good reminder I need

Re: [julia-users] Re: juliabloggers.com is now live!

2014-06-17 Thread Randy Zwitch
/feed/juliabloggers.com Entered url doesn't contain valid feed or doesn't link to feed. It is also possible feed contains no items. On 06/16/2014 08:52 PM, Randy Zwitch wrote: Nothing shady about it at all and a good reminder I need to add a visible RSS icon. Here's the feed

Re: [julia-users] juliabloggers.com is now live!

2014-06-17 Thread Randy Zwitch
/ there should be the same attribution as on the front page. On Tuesday, June 17, 2014 1:19:48 AM UTC+1, Randy Zwitch wrote: Ok, there is now more obvious attribution on each post, with the author name and link of the original post prominently displayed before the article. If anyone else has any

Re: [julia-users] juliabloggers.com is now live!

2014-06-17 Thread Randy Zwitch
a link there + maybe remove the dublicated posts. Cheers, Tobi Am Dienstag, 17. Juni 2014 14:39:46 UTC+2 schrieb Randy Zwitch: I think this is just a caching issue, the attribution should be on all pages. On Tuesday, June 17, 2014 3:44:47 AM UTC-4, Mauro wrote: Thanks for putting

Re: [julia-users] juliabloggers.com is now live!

2014-06-17 Thread Randy Zwitch
up feeds, so if anyone has any good ideas about alternate setups, I'm all ears. I have no attachment to feedburner. On Tue, Jun 17, 2014 at 9:33 AM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: I did add the julialang.org/blog feed to Julia Bloggers already. The attribution

[julia-users] Gadfly: switching colors for boxplot

2014-06-21 Thread Randy Zwitch
In the Gadfly documentation (http://dcjones.github.io/Gadfly.jl/geom_boxplot.html), it makes mention that behind the scenes, these aesthetics are used: Aesthetics used directly: - x - middle - lower_hinge - upper_hinge - lower_fence - upper_fence - outliers It's clear

Re: [julia-users] Re: juliabloggers.com is now live!

2014-06-24 Thread Randy Zwitch
://www.g2reader.com) and can't subscribe to this. Don't know why. It complains about: Entered url doesn't contain valid feed or doesn't link to feed. It is also possible feed contains no items. On 06/17/2014 08:38 PM, Randy Zwitch wrote: My apologies, I think the link got mangled last time. Here

[julia-users] Question about surprising behavior of zip/using multiple columns in data frame

2014-07-01 Thread Randy Zwitch
I have a data frame where the year, month, day, hour, etc. are in different columns. I want to use Datetime.jl to make timestamps, then do some processing. I tried to attack the problem like the following (which is to say, Python-style), but it didn't work: test[:start_date] =

Re: [julia-users] Question about surprising behavior of zip/using multiple columns in data frame

2014-07-01 Thread Randy Zwitch
Sorry, not following...try value how? On Tuesday, July 1, 2014 9:40:46 PM UTC-4, Isaiah wrote: Try value... On Tue, Jul 1, 2014 at 9:37 PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: I have a data frame where the year, month, day, hour, etc. are in different columns. I

[julia-users] Re: Lowering the (mostly social/psychological) barriers to sharing packages?

2014-07-01 Thread Randy Zwitch
This doesn't seem like a great idea to me. I felt a great sense of accomplishment when I had my first package listed on METADATA, as I felt like I made a tangible contribution to the community (in the same way I'm proud of having a CRAN package). So for me, I'd question the value of having a

Re: [julia-users] Question about surprising behavior of zip/using multiple columns in data frame

2014-07-01 Thread Randy Zwitch
the parens around the second (year,month,day) On Tue, Jul 1, 2014 at 9:44 PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: Sorry, not following...try value how? On Tuesday, July 1, 2014 9:40:46 PM UTC-4, Isaiah wrote: Try value... On Tue, Jul 1, 2014 at 9:37 PM, Randy

[julia-users] Re: Build failing with: `libopenspecfun.so.0': File exists

2014-07-11 Thread Randy Zwitch
Thanks, this got me this morning On Friday, July 11, 2014 12:29:22 AM UTC-4, Pontus Stenetorp wrote: Everyone, I read the GitHub activity as well as julia-dev and build Julia on a daily basis, but I have not seen any mention of this error. Since it dodged the standard `make cleanall`, I

[julia-users] Semi-OT: Finding optimal k in k-means

2014-07-28 Thread Randy Zwitch
I'm about to undertake a clustering exercise for a lot of data (Roughly 100MM rows*12 columns for every week, mixed floats/ints, for as many weeks as I choose to use). I was going to attempt to downsample to 1MM events or so and use the Clustering.jl package to try and pre-gather some idea of

[julia-users] Re: Julia call to Seaborn library

2014-07-29 Thread Randy Zwitch
Interesting question. I obviously didn't evaluate that as part of the blog post, but it seems like it could be possible. The one hiccup could be that Seaborn seems to be a wrapper around matplotlib, so that Seaborn code can be used interchangeably with matplotlib within Python. Not knowing how

[julia-users] Semi-OT: Recommendations for learning just enough C for Julia

2014-08-15 Thread Randy Zwitch
I know the standard recommendation of KR for people who want to learn C. But what would people's recommendations be to learn *just enough* C to be comfortable using C libraries from within Julia? For example, the manual states: The code to be called must be available as a shared library. Most

Re: [julia-users] Semi-OT: Recommendations for learning just enough C for Julia

2014-08-15 Thread Randy Zwitch
simplified or overcomplicated things, but I think these are the basic concepts one would need to write code that uses a shared library. -- João Felipe Santos On Fri, Aug 15, 2014 at 1:15 PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: I know the standard recommendation of KR

Re: [julia-users] JuliaLang Logo usage

2014-08-28 Thread Randy Zwitch
Since we're talking about it...what font is the logo in? On Thursday, August 28, 2014 4:24:09 AM UTC-4, Andreas Lobinger wrote: btw: is the logo stored somewhere? I see a .svg version included in the julialang.org webpage, but i guess that's not the normative source. On Thursday, August 28,

[julia-users] Help with Clang.jl for a C beginner

2014-08-31 Thread Randy Zwitch
Hi all - I've been trying to learn more about C and how Julia interacts and decided to play around with Clang.jl. I decided I was going to wrap liboauth from here: http://liboauth.sourceforge.net/oauth_8h_source.html I downloaded the C source, which resided in my OSX Downloads directory.

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread Randy Zwitch
for more details on that. -- João Felipe Santos On Sun, Aug 31, 2014 at 8:17 PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: Hi all - I've been trying to learn more about C and how Julia interacts and decided to play around with Clang.jl. I decided I was going to wrap

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread Randy Zwitch
oauth_sign_hmac_sha1(m::Ptr{Uint8},k::Ptr{Uint8}) ccall((:oauth_sign_hmac_sha1,liboauth),Ptr{Uint8},(Ptr{Uint8},Ptr{Uint8}),m,k) end What modifications do I need to make to the Clang Julia code to run this test? On Monday, September 1, 2014 8:54:59 AM UTC-4, Randy Zwitch wrote: Thanks

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread Randy Zwitch
). -- João Felipe Santos On Mon, Sep 1, 2014 at 9:55 AM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: To make it a bit more concrete, the C library has this test function: testurl = GEThttp%3A%2F%2Fphotos.example.net%2Fphotosfile%3D vacation.jpg%26oauth_consumer_key

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-01 Thread Randy Zwitch
). bytestring converts a C string from a pointer to an ASCIIString, which is what you want. -- João Felipe Santos On Mon, Sep 1, 2014 at 4:24 PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: Thanks for the suggestions everyone. Unfortunately, neither the code from Ivar nor João worked

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-09 Thread Randy Zwitch
if you've started as I need the functionality. Want to throw up what you have in a repo and collaborate? -Jacob On Monday, September 1, 2014 6:10:49 PM UTC-4, Randy Zwitch wrote: Kevin, adding const in front gave me this error: type: ccall: expected Symbol, got Ptr{None} while

Re: [julia-users] Help with Clang.jl for a C beginner

2014-09-10 Thread Randy Zwitch
Jacob and I are now collaborating on wrapping the liboauth library, if anyone else is interested: https://github.com/randyzwitch/OAuth.jl On Tuesday, September 9, 2014 8:41:49 AM UTC-4, Randy Zwitch wrote: Yes I do want to collaborate Jacob, because I probably need some of the functionality

[julia-users] Re: [ANN] Yelp.jl package

2014-09-10 Thread Randy Zwitch
the search and business version 2.0 APIs. Feel free to check it out. A thanks to Randy Zwitch and his Twitter.jl package for the quick and dirty OAuth code to get this up and running. https://github.com/quinnj/Yelp.jl -Jacob

Re: [julia-users] Re: [ANN] Yelp.jl package

2014-09-10 Thread Randy Zwitch
PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: Nice. Does Yelp not require sorting the parameters in alphabetical order like Twitter? On Wednesday, September 10, 2014 1:57:43 PM UTC-4, Jacob Quinn wrote: Hey everyone, If anyone else needs access to the Yelp API, I put

[julia-users] How to allocate Ptr{Ptr{Ptr{Uint8}}} with ccall?

2014-09-15 Thread Randy Zwitch
Continuing on my attempt to learn Julia ccall by wrapping liboauth...I have the following code that was mostly generated by Clang.jl: https://github.com/randyzwitch/OAuth.jl/blob/master/src/OAuth.jl#L248-254 function oauth_split_url_parameters(url::String,argv::Ptr{Ptr{Ptr{Uint8}}})

[julia-users] Re: How to allocate Ptr{Ptr{Ptr{Uint8}}} with ccall?

2014-09-15 Thread Randy Zwitch
**arg) to clean up. Ivar kl. 16:47:44 UTC+2 mandag 15. september 2014 skrev Randy Zwitch følgende: Continuing on my attempt to learn Julia ccall by wrapping liboauth...I have the following code that was mostly generated by Clang.jl: https://github.com/randyzwitch/OAuth.jl/blob/master/src

[julia-users] Re: How to allocate Ptr{Ptr{Ptr{Uint8}}} with ccall?

2014-09-15 Thread Randy Zwitch
kl. 16:47:44 UTC+2 mandag 15. september 2014 skrev Randy Zwitch følgende: Continuing on my attempt to learn Julia ccall by wrapping liboauth...I have the following code that was mostly generated by Clang.jl: https://github.com/randyzwitch/OAuth.jl/blob/master/src/OAuth.jl#L248-254 function

[julia-users] Re: How to allocate Ptr{Ptr{Ptr{Uint8}}} with ccall?

2014-09-15 Thread Randy Zwitch
return as an array? On Monday, September 15, 2014 2:27:57 PM UTC-4, Randy Zwitch wrote: No problem, I'll test it out...that's what VM's are for :) On Monday, September 15, 2014 2:22:31 PM UTC-4, Ivar Nesje wrote: I should probably not post this untested code, but it is way too tempting when I

Re: [julia-users] Re: How to allocate Ptr{Ptr{Ptr{Uint8}}} with ccall?

2014-09-15 Thread Randy Zwitch
parameters are in the string. Is there a way to just return as an array? On Monday, September 15, 2014 2:27:57 PM UTC-4, Randy Zwitch wrote: No problem, I'll test it out...that's what VM's are for :) On Monday, September 15, 2014 2:22:31 PM UTC-4, Ivar Nesje wrote: I should probably

[julia-users] Re: Current state of 3rd party APIs in Julia?

2014-09-21 Thread Randy Zwitch
Julia and Postgres works fine using the ODBC.jl package; I know there is also a Postgres-specific package in the works. I've used the AWS.jl package to download from S3, but haven't used it enough to say it just works. I'm not aware of Google package APIs. On Sunday, September 21, 2014 4:25:15

[julia-users] Re: This week in Julia

2014-10-13 Thread Randy Zwitch
Matt - If you're ok with it, I can add this to juliabloggers.com and it will automatically get tweeted out to the community. Thanks, Randy On Monday, October 13, 2014 9:02:25 AM UTC-4, Rick Graham wrote: Very cool! Any chance of emitting a Tweet and/or Google+ entry when there are new

[julia-users] Re: This week in Julia

2014-10-13 Thread Randy Zwitch
! On Monday, October 13, 2014 9:15:07 AM UTC-4, Randy Zwitch wrote: Matt - If you're ok with it, I can add this to juliabloggers.com and it will automatically get tweeted out to the community. Thanks, Randy On Monday, October 13, 2014 9:02:25 AM UTC-4, Rick Graham wrote: Very cool! Any

[julia-users] Metaprogramming: what's going on here/is there a better way?

2014-11-17 Thread Randy Zwitch
I've seen this type of function generation in other packages, and wanted to try it for myself. This file in Twitter.jl has 5 functions with the same overall structure: https://github.com/randyzwitch/Twitter.jl/blob/master/src/help.jl Here's what I ended up doing, which works, but I've got no

Re: [julia-users] Metaprogramming: what's going on here/is there a better way?

2014-11-17 Thread Randy Zwitch
, Nov 17, 2014 at 9:35 PM, Randy Zwitch randy@fuqua.duke.edu javascript: wrote: I've seen this type of function generation in other packages, and wanted to try it for myself. This file in Twitter.jl has 5 functions with the same overall structure: https://github.com/randyzwitch

Re: [julia-users] Metaprogramming: what's going on here/is there a better way?

2014-11-18 Thread Randy Zwitch
Thanks for all of the input everyone, I think I get what's going on now! On Tuesday, November 18, 2014 7:19:44 AM UTC-5, Mike Innes wrote: Ah ok, that's a nice trick too – I didn't know you could do that (although it makes perfect sense). Note that this also constructs the string at

Re: [julia-users] Re: home page content

2014-12-10 Thread Randy Zwitch
Note that the framework is in place via juliabloggers.com. If someone wanted to pick up this task, but didn't want to dedicate creating a blog, I'm willing to create an author account to post directly. On Wednesday, December 10, 2014 1:46:03 PM UTC-5, John Myles White wrote: As always in

Re: [julia-users] Re: home page content

2014-12-10 Thread Randy Zwitch
I think it would please everyone if you moved daily televised scrums. On Wednesday, December 10, 2014 4:53:50 PM UTC-5, John Myles White wrote: Stefan, I shared your moment of terror about the idea of posting plans (essentially all of which will be invalidated) to the home page. Although

[julia-users] Re: Almost at 500 packages!

2015-01-22 Thread Randy Zwitch
Geez, had I known there would be a race to 500, I'd have submitted my OAuth 1 package (per Stefan's point though, I'm sans documentation and tests at the moment) On Tuesday, January 20, 2015 at 3:39:33 PM UTC-5, Viral Shah wrote: I wonder what the 500th package will be. -viral On Tuesday,

[julia-users] Re: how to paste png into ipython julia notebook?

2015-03-13 Thread Randy Zwitch
True. I share my notebooks as GitHub repos, so I've always passed the images along. On Friday, March 13, 2015 at 11:50:32 AM UTC-4, Steven G. Johnson wrote: On Friday, March 13, 2015 at 11:44:57 AM UTC-4, Randy Zwitch wrote: You can also use plain HTML in a markdown cell. Yes, you can

[julia-users] Re: Getting people to switch to Julia - tales of no(?) success

2015-03-05 Thread Randy Zwitch
I'm like you Seth in that I don't use most of the stuff that people on this list talk about. I also have no frame-of-reference to MATLAB, just a Python/R/SQL guy (and recovering SAS user). For me, the language is plenty stable, but I also appreciate a challenge. But for my common workflow, I

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

2015-02-24 Thread Randy Zwitch
Submitted. Looking forward to making it to JuliaCon this year, speaker or otherwise! On Monday, February 23, 2015 at 9:46:57 PM UTC-5, Jiahao Chen wrote: On behalf of the JuliaCon 2015 Program Committee, it is my pleasure to announce that the *Call for Participation **for JuliaCon 2015 is

[julia-users] Re: Julia blogging and contributions

2015-03-23 Thread Randy Zwitch
I set up juliabloggers...being worried, I checked the site and it still checks the blogs of those that submitted their domains; strangely, everyone just stop blogging at the same time I guess (including myself). Not sure what to make of that, other than people just being busy. If anyone

[julia-users] JuliaCon: Software expectations / attendance lists?

2015-06-18 Thread Randy Zwitch
Two thoughts as a workshop presenter: 1) What version of Julia should we be using, both so that the presenter knows and anyone following along has a similar environment? 2) Along the lines of #1, are all of the talks just going to be a free-for-all of attendance? I'm not suggesting that

[julia-users] Re: New article about Julia, Viral Shah

2015-06-01 Thread Randy Zwitch
New by way of 2013? :) On Monday, June 1, 2015 at 3:15:27 AM UTC-4, Scott Jones wrote: http://analyticsindiamag.com/interview-viral-shah-co-creator-of-julia/

[julia-users] Re: Juliacon 2015 videos?

2015-07-01 Thread Randy Zwitch
They were all recorded. Be patient, everyone is a volunteer :) On Wednesday, July 1, 2015 at 8:07:18 AM UTC-4, Hans-Peter wrote: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.

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

2015-07-17 Thread Randy Zwitch
Great job Avik! I can confirm that JDBC.jl works on Teradata on OSX. On Friday, July 17, 2015 at 9:05:51 AM UTC-4, Avik Sengupta wrote: I am pleased to announce the availability of JDBC.jl. Available via your favourite package repository: Pkg.add(JDBC) or at https://github.com/aviks/JDBC.jl

[julia-users] Re: Google releases TensorFlow as open source

2015-11-10 Thread Randy Zwitch
For me, the bigger question is how does TensorFlow fit in/fill in gaps in currently available Julia libraries? I'm not saying that someone who is sufficiently interested shouldn't wrap the library, but it'd be great to identify what major gaps remain in ML for Julia and figure out if

[julia-users] Re: Google releases TensorFlow as open source

2015-11-11 Thread Randy Zwitch
Sure. I'm not against anyone doing anything, just that it seems like Julia suffers from an "expert/edge case" problem right now. For me, it'd be awesome if there was just a scikit-learn (Python) or caret (R) type mega-interface that ties together the packages that are already coded together.

[julia-users] Anyone interested in H20.ai package?

2015-11-17 Thread Randy Zwitch
I've been using H2O quite a bit at work, because it does a few things well (I mostly use it for random forest and GBM) and is easy to use. I talked with the company at length about creating a Julia package and the company is supportive of open-source contributions, so I created a stump of a

Re: [julia-users] Anyone interested in H20.ai package?

2015-11-17 Thread Randy Zwitch
https://github.com/randyzwitch/H2O.jl/issues/1 On Tuesday, November 17, 2015 at 11:03:23 AM UTC-5, Randy Zwitch wrote: > > I guess it depends on how you look at it, but I was using the Requests > library (which uses HttpParser). So we wouldn't have to deal with the > BinDeps issu

Re: [julia-users] Interesting: Plotly has become open source

2015-11-17 Thread Randy Zwitch
Plot.ly already has a Julia package, so it seems like just a matter of not calling the API and instead doing the JS calls. I think the bigger question is whether the company has a plan to update their package yet. I'd (probably) be interested in fixing the package, assuming it didn't take

[julia-users] Setting default values in Composite Type definitions

2015-11-03 Thread Randy Zwitch
I've been working on understanding some macro code I inherited, which (I believe) essentially does this: type VegaAxis2 _type::Union{AbstractString, Void} = "x" scale::Union{AbstractString, Void} = "x" orient::Union{AbstractString, Void} = nothing title::Union{AbstractString,

[julia-users] Re: Setting default values in Composite Type definitions

2015-11-04 Thread Randy Zwitch
Thanks Kristoffer and Cedric, these both get to the heart of the question that I am asking. Stephen, your idea of the macro does achieve what I'm trying to do, except for the fact I already have a macro doing that which I'm trying to get OUT of my code :) It's good to know the reason why the

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

2015-10-07 Thread Randy Zwitch
I'm sure if you submitted a pull request to any of the packages mentioned to fix the holes, it would be accepted with open arms. On Tuesday, October 6, 2015 at 5:05:10 PM UTC-4, Mohammed El-Beltagy wrote: > > It seems that Morsel.jl and Meddle.jl are quietly dieing away. I noticed > that after

[julia-users] Re: ANN: Julia v0.4.0 released!

2015-10-09 Thread Randy Zwitch
By building from the release branch, I was robbed of all the excitement! :) HQSML-146932:julia rzwitc200$ julia *_* *_** _ **_**(_)**_** | A fresh approach to technical computing* *(_)** | **(_)* *(_)**| Documentation: http://docs.julialang.org* * _

Re: [julia-users] Interesting: Plotly has become open source

2015-11-17 Thread Randy Zwitch
Uh, I take that back. The latest update to the Plotly package references 0.2.1 and is mostly API calls. I don't time for a whole re-write. https://github.com/plotly/Plotly.jl On Tuesday, November 17, 2015 at 2:00:02 PM UTC-5, Randy Zwitch wrote: > > Plot.ly already has a Julia packa

Re: [julia-users] Interesting: Plotly has become open source

2015-11-18 Thread Randy Zwitch
Eric, are you the person who I should talk to about getting Vega.jl to render inside Atom/Juno? I already render natively inside Jupyter Notebook, and to browser from the REPL, so it seems like it shouldn't be much effort to get Atom support. On Tuesday, November 17, 2015 at 5:16:07 PM UTC-5,

[julia-users] Including JavaScript libraries for Jupyter Notebook/IJulia

2015-08-30 Thread Randy Zwitch
Hi all - I have an open issue on the IJulia tracker, but I didn't want to leave the burden to just Matthias. If you can help me re-add Jupyter Notebook support back to the Vega.jl master branch, it would be greatly appreciated. The current version of Vega on METADATA works through the

Re: [julia-users] [ANN] Plots.jl, a plotting interface

2015-09-14 Thread Randy Zwitch
Daniel, this is the approach that I'm taking with Vega.jl; trying to make simple things obvious to change and crazy interactivity from Vega accessible *somehow* (still working on that!). Not sure how that will fit into a common plot interface, but once I'm further along, hopefully I can

Re: [julia-users] [ANN] Plots.jl, a plotting interface

2015-09-14 Thread Randy Zwitch
ers, > Daniel. > > On 14 September 2015 at 16:02, Randy Zwitch <randy@fuqua.duke.edu > > wrote: > >> Daniel, this is the approach that I'm taking with Vega.jl; trying to make >> simple things obvious to change and crazy interactivity from Vega >> accessible

Re: [julia-users] [ANN] Plots.jl, a plotting interface

2015-09-14 Thread Randy Zwitch
t you're looking > to accomplish with your "interactivity interface"? There could be more > overlap than you think... > > On Mon, Sep 14, 2015 at 11:02 AM, Randy Zwitch <randy@fuqua.duke.edu > > wrote: > >> Sure, I was just speaking in generic terms. My goals

[julia-users] Re: 'in' should carry out more typechecking

2015-09-10 Thread Randy Zwitch
How do you enumerate all of the cases that are "oddball"? *julia> **[1,2,3] in Any[[1],[2],[3],[1,2,3]]* *true* *julia> **[1,2,3] in [[1],[2],[3],[1,2,3]]* *false* In the first case, because I declare the array of type "Any", I have an Array of Arrays (Array{Any, 1}). In that case, the

[julia-users] Re: What are the "strengths" of the Julia "ecosystem" (e.g. for bio and quants/finance)? This is not a very specific question (while sub-questions are), you've been warned..

2015-09-23 Thread Randy Zwitch
Julia is as capable as any of the languages you have mentioned as far as I'm concerned. When I read "people want to get work done", I read that as "people want SOMEONE ELSE to do the work". Julia probably isn't the place for them now, if they are looking for someone else to have already

Re: [julia-users] Proposal: NoveltyColors.jl

2015-12-02 Thread Randy Zwitch
On Wednesday, December 2, 2015 at 3:12:36 AM UTC-5, Tomas Lycken wrote: > > Also, the naming discussion here is not *only* on naming; it's also on > the possibility of including *more things *in the package. I would be all > for having a package like Palettes.jl, which would include both >

[julia-users] Re: Julia career advice question (x-post r/julia)

2015-12-01 Thread Randy Zwitch
Practice both, it will make your programming that much better. I think you'd be hard-pressed to find anyone here that ONLY knows Julia. In fact, I bet a majority of people here know at least 3 languages. That's not meant to be a discouraging thought, but rather, as a practical matter you're

Re: [julia-users] Setting values of composite types using metaprogramming

2015-12-29 Thread Randy Zwitch
gt; ec.title.show = show > ec.title.zlevel = zlevel > ec.title.z = z > > Otherwise use `setfield!`: > > function f(t;kws...) >for (s,v) in kws >setfield!(t, s, v) > end > end > > On Tue, 2015-12-29 at 20:34, Randy Zwitch <randy@fuqua.d

Re: [julia-users] Re: Juno bundles for Julia v0.4

2015-12-22 Thread Randy Zwitch
Thanks Mike. I'll keep my eye on the Atom development, and I'm sure we'll figure out something. On Tuesday, December 22, 2015 at 7:29:26 AM UTC-5, Mike Innes wrote: > > Randy – for the detection you could try `isdefined(Main, :Jewel)`. > Unfortunately we don't have a good approach to

[julia-users] Re: Juno bundles for Julia v0.4

2015-12-19 Thread Randy Zwitch
Thanks Mike. Tangent: what's the right way to programmatically detect being in the Juno environment? In the Vega plotting package, I have inline plotting working in Jupyter Notebook, but in Juno I get an error because load all my JavaScript using requirejs in Jupyter (but requirejs is not

Re: [julia-users] Setting values of composite types using metaprogramming

2015-12-29 Thread Randy Zwitch
I ended up figuring out what I need using optional varargs: function title!(ec::EChart; kwargs...) for (k, v) in kwargs ec.title.(k) = v end return ec end Thanks for the help everyone! On Tuesday, December 29, 2015 at 3:36:24 PM UTC-5, Randy Zwitch wrote: > > The lef

[julia-users] Re: Proposal: NoveltyColors.jl

2015-11-24 Thread Randy Zwitch
NoveltyColors.jl it is. Figured I can make whatever mess I want, we can always merge to Colors.jl later if the palettes are popular enough. On Tuesday, November 24, 2015 at 5:08:35 PM UTC-5, Randy Zwitch wrote: > > Since the Julia ecosystem is getting bigger, I figured I'd propose this

[julia-users] Re: Proposal: NoveltyColors.jl

2015-11-25 Thread Randy Zwitch
Novelty, as in non-rigorous. These color schemes may or may not be aesthetically pleasing, without any provided research to their "correctness" for journal printing, colorblind compatible, or any of the other features that Colors.jl currently provides. On Wednesday, November 25, 2015 at

[julia-users] Re: Pre-ANN: PlotlyJS.jl

2015-11-24 Thread Randy Zwitch
"The same concept should work with Vega.jl in Juno." I don't use Juno, but I'm happy to accept a pull request to Vega.jl if there are people who want to integrate Juno as well. The behavior from the REPL is to generate a standalone webpage and open a browser, and plot inline in Jupyter

[julia-users] Proposal: NoveltyColors.jl

2015-11-24 Thread Randy Zwitch
Since the Julia ecosystem is getting bigger, I figured I'd propose this here first and see what people think is the right way forward (instead of wasting people's time at METADATA) In the R community, they've created two packages of novelty color schemes: Wes Anderson

Re: [julia-users] Proposal: NoveltyColors.jl

2015-11-24 Thread Randy Zwitch
uld prefer a single package. >>> Put all them tasty, wacky colors in one place! >>> >>> >>> On Tuesday, 24 November 2015 14:08:35 UTC-8, Randy Zwitch wrote: >>>> >>>> Since the Julia ecosystem is getting bigger, I figured I'd propose this

[julia-users] Re: Proposal: NoveltyColors.jl

2015-11-30 Thread Randy Zwitch
rulean blue, etc). I was originally going to stick it in a different >> package, but there might be a nice way to separate these names in Colors.jl >> >> -A >> >> On Tuesday, November 24, 2015 at 2:08:35 PM UTC-8, Randy Zwitch wrote: >>> >>> Since the Jul

[julia-users] Re: Interactive graph visualization in Julia

2015-11-30 Thread Randy Zwitch
This is also on my roadmap for Vega.jl On Monday, November 30, 2015 at 7:25:40 AM UTC-5, Weijian Zhang wrote: > > Dear all, > > I really like the force-directed graph example in d3 . > See http://bl.ocks.org/mbostock/4062045 > A user can drag the nodes and move the graph

Re: [julia-users] Proposal: NoveltyColors.jl

2015-12-01 Thread Randy Zwitch
mber 1, 2015 at 3:32:19 PM UTC+1, Randy Zwitch wrote: >> >> +1 Tom. >> >> It's on METADATA now, so only focus now is to improve the package, the >> name isn't going to change. >> > > I can not track it down right now (i think it was on the Color/Colors,jl &

Re: [julia-users] Proposal: NoveltyColors.jl

2015-12-01 Thread Randy Zwitch
t;> available. >> >> On Tuesday, December 1, 2015 at 9:17:04 AM UTC+8, Randy Zwitch wrote: >>> >>> A tangent to the current tangent: >>> >>> https://github.com/randyzwitch/NoveltyColors.jl now on METADATA. Would >>> love any feedback or contributions. >>> >>

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

2016-03-19 Thread Randy Zwitch
This is great Frederic, you beat me to it! Although, I was more thinking about how to incorporate it into the Vega.jl library, not expose the Vega Lite API as you have. I look forward to cross-contributing with you between Vega.jl and VegaLite.jl! On Tuesday, March 15, 2016 at 5:39:56 PM

[julia-users] Re: Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread Randy Zwitch
"Also, there's a good reason to ask "why fuss with distributions when anyone could just add the packages and add the import statements to their .juliarc?" (though its target audience is for people who don't know details like the .juliarc, but also want Julia to work seamlessly like MATLAB)." I

[julia-users] Re: Why was a fundamental indexing inconsistency introduced in 0.5?

2016-09-25 Thread Randy Zwitch
As someone who has never used repmat, I can't comment on that, but the "automatic squashing" makes perfect sense to me. The first syntax simplifies the structure down to a 1-D instead of a 2-D array with only one row (repmat aside, why would I want to keep the extra dimension if it doesn't

[julia-users] Re: New Julia-Focused Blog: Pkg Update

2016-10-06 Thread Randy Zwitch
As a small other update, this is now the 40th blog added to Julia Bloggers... On Thursday, October 6, 2016 at 5:16:44 AM UTC-4, Chris Rackauckas wrote: > > Hey, > I am happy to announce Pkg Update, a new blog focused on summarizing the > large changes throughout the Julia package ecosystem.

[julia-users] Understanding Nullable as immutable

2016-09-21 Thread Randy Zwitch
I frequently have a design pattern of Union{Title, Void}. I was thinking that I could redefine this as title::Nullable{Title}. However, once I try to modify fields inside the Title type using setfield!(ec.title, k, v), I get this error message: LoadError: type Nullable is immutable while

Re: [julia-users] Understanding Nullable as immutable

2016-09-21 Thread Randy Zwitch
, September 21, 2016 at 9:49:44 AM UTC-4, Yichao Yu wrote: > > On Sep 21, 2016 9:42 AM, "Randy Zwitch" <randy@fuqua.duke.edu > > wrote: > > > > I frequently have a design pattern of Union{Title, Void}. I was thinking > that I could redefine this as tit

Re: [julia-users] Understanding Nullable as immutable

2016-09-21 Thread Randy Zwitch
title). Like setfield!(get(ec.title), k, v). In short scripts, I > often define getindex(x::Nullable) = get(x) so that I can write ec.title[] > instead of get(ec.title), but type piracy is bad practice. This method > should really be in Base. > > On Wednesday, September 21, 2016 at 9:5

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-19 Thread Randy Zwitch
Does the problem go away if you run gc()? On Monday, September 19, 2016 at 3:55:14 PM UTC-4, K leo wrote: > > Thanks for the suggestion about valgrind. > > Can someone please let me first understand the expected behaviour for > memory usage. > > Let's say when I first starts Julia REPL it

  1   2   >