Re: [julia-users] using or import a specific package version

2016-11-04 Thread Alex Mellnik
I'm really looking forward to this -- knowing that all my existing projects and tools will continue to operate in the same way after running Pkg.update() will be very welcome. On Friday, November 4, 2016 at 4:03:45 PM UTC-7, Stefan Karpinski wrote: > > In Pkg3, if your script uses a

[julia-users] Re: Webapp Deployment

2016-11-01 Thread Alex Mellnik
Hi Reuben, I largely work in this space. I can walk through a few possible architectures that I have used: 1) If the data pull and processing is fairly decoupled from the display, it is often easiest to use Julia only on the back end. I have a few systems that pull new data every hour and

[julia-users] Re: Writing a subset DataFrame to file is 220 times slower than saving the whole DataFrame

2016-10-27 Thread Alex Mellnik
I'm not sure what's wrong with sub, but don't use it -- it's definitely worse than just making a copy of the subset you want to write. s = df[df[:rank_PV].<=r_max,:] @time write_results(s, name, "significant", sep, h) On Thursday, October 27, 2016 at 5:07:31 AM UTC-7, Fred wrote: > > Hi, >

Re: [julia-users] Can't overwrite some methods in 0.5.0

2016-10-20 Thread Alex Mellnik
Thanks, after seeing https://github.com/JuliaLang/julia/issues/265#issuecomment-243056854 I have a better idea of what's going on and why it doesn't occur in 0.5. On Wednesday, October 19, 2016 at 11:59:08 PM UTC-7, Yichao Yu wrote: > > > > On Wed, Oct 19, 2016 at 10:33 PM,

Re: [julia-users] Can't overwrite some methods in 0.5.0

2016-10-19 Thread Alex Mellnik
Yichao, I'm afraid I'm not following -- could you expand on that a bit? Thanks, Alex On Wednesday, October 19, 2016 at 4:41:30 PM UTC-7, Yichao Yu wrote: > > On Oct 19, 2016 7:26 PM, "Alex Mellnik" <a.r.m...@gmail.com > > wrote: > > > > Here's my bizarre

[julia-users] Can't overwrite some methods in 0.5.0

2016-10-19 Thread Alex Mellnik
Here's my bizarre find of the day. Most functions can be overwritten without problems: function add7(i) 7 + i end Out[1]: add7 (generic function with 1 method) In [2]: add7(0) add7(0) Out[2]: 7 In [3]: function add7(i) 9 + i end function add7(i) 9 + i end Out[3]: add7 (generic

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

2016-10-13 Thread Alex Mellnik
Hi JĂșlio, If you're just interested in using an arbitrary function to filter on rows you can do something like: df = DataFrame(Fish = ["Amir", "Betty", "Clyde"], Mass = [1.2, 3.3, 0.4]) filter(row) = (row[:Fish][1] != "A")&(row[:Mass]>1) df = df[[filter(r) for r in eachrow(df)],:] Is that what

[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

[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

Re: [julia-users] Set Data Structure

2016-08-29 Thread Alex Mellnik
Jared, You might be interested in what I consider the most useful Julia function that's not actually in Base: http://stackoverflow.com/questions/29661315/vectorized-in-function-in-julia vectorin(2, s) 0-dimensional Array{Bool,0}: true vectorin(s, 2) 3-element Array{Bool,1}: true

Re: [julia-users] Blob detection and size measurement in Julia?

2016-08-29 Thread Alex Mellnik
quot;Images")` > and test? > > Best, > --Tim > > On Friday, August 26, 2016 8:11:44 PM CDT Alex Mellnik wrote: > > Hi, > > > > I'm attempting to measure the size and position of roughly spherical, > > well-defined objects in images using Julia. I don't

[julia-users] Blob detection and size measurement in Julia?

2016-08-26 Thread Alex Mellnik
Hi, I'm attempting to measure the size and position of roughly spherical, well-defined objects in images using Julia. I don't have any previous experience working with images and was wondering if anyone could point me toward the appropriate library/function. I know that there's a blob_LoG

[julia-users] Re: web scraping with Julia

2016-08-01 Thread Alex Mellnik
Ivan, What sort of contents do you need to get? For simple things Requests.jl may work, but for more complex scrapes I would suggest using Selenium. You can install the Python package and call it with something like using PyCall @pyimport selenium.webdriver as webdriver driver =

[julia-users] Portland Julia users?

2016-07-04 Thread Alex Mellnik
Hello all, I know there's a few of us around, although probably not as many as in Seattle. Is there any interest in a quarterly meetup or similar? Best, Alex

[julia-users] Re: testing intrument Automation

2016-07-04 Thread Alex Mellnik
Hi Yared, This should be possible, but it could be less than ideal in some instances. What exactly are you hoping to automate? Like Isaiah, I don't know of a specific GPIB library for Julia, but if you are using the NI drivers you can call them directly from Julia (see

Re: [julia-users] DateTime conversion in DataFrames

2016-05-26 Thread Alex Mellnik
To expand slightly on what Milan said, while you can pass DateTime an array of strings and a format code, in some cases the conversion function you want to use may not accept arrays. In this case, you can do the same thing with array comprehension: df1 = DataFrame(V1 = DateTime[DateTime(d,

[julia-users] Re: Questions regarding to SQLite

2016-05-25 Thread Alex Mellnik
Yes to both! For the first one, you want to use Data.stream! to get a Data.Table from the result set, and then convert it to a DataFrame. For the second you need to do the opposite. I generally work with DataFrames so I wrote two convenience functions for doing this, which should give you

[julia-users] Re: Error installing hydrogen for Atom

2016-05-24 Thread Alex Mellnik
I had this exact same problem. What fixed it for me was using the nuclear option to force everything in the build to use python 2.7: I temporarily removed 3.5 from my path and replaced it with 2.7. I had previously tried setting the PYTHON environment variable to the 2.7 executable and

Re: [julia-users] Julia SQL

2016-05-09 Thread Alex Mellnik
To expand on what Jacob said, you can read a DataFrame into an in-memory SQLite table and then run SQL commands on that. However, unless you really need to use SQL there's probably a way to do the same operation faster (and with less code) using native DataFrame operations. If you can provide

[julia-users] Syntax highlighting for julia symbols in Notepad++?

2016-04-25 Thread Alex Mellnik
There's a Notepad++ configuration file provided in the distribution here . One limitation is that it doesn't highlight symbols (like *:something*) and always treats : as an operator. IJulia on the other hand is smart

[julia-users] Re: Using @pyimport inside a module

2016-04-07 Thread Alex Mellnik
t; export geteverything > > function geteverything() > return collect(numpy.eye(10)) > end > end > > TheModuleInJulia.geteverything() > > It worked for me. Does it work for you? > > On Wednesday, April 6, 2016 at 12:18:09 PM UTC-4, Alex Mellnik wrote: >&

[julia-users] Using @pyimport inside a module

2016-04-06 Thread Alex Mellnik
I rely on a small Python module which I am currently calling directly with @pyimport in a notebook: using PyCall @pyimport datetime @pyimport TheModule cursor = TheModule.connect() This works fine, but now I would like to wrap the Python module with some other functions in a julia package.

[julia-users] Re: ccall, dlopen when dll contains a class

2016-02-18 Thread Alex Mellnik
Sorry to reopen an old thread. I'm trying to do something similar and haven't been able to figure it out so far. Isaiah, I noticed that your COMCall.jl library is not on GitHub anymore. Is this code still floating around anywhere or is there a different suggested route? In my case, I have a

[julia-users] Re: Remove Gadfly gridlines?

2016-02-01 Thread Alex Mellnik
You are probably overwriting the theme later and the last one overwrites that setting. The following example works for me: -A On Monday, February 1, 2016 at 5:58:13 AM UTC-8, Jon

[julia-users] Every module recompiles every time?

2016-02-01 Thread Alex Mellnik
At some point since the release of 0.4.3 every module that I use started always recompiling whenever I first use it in a new kernel. If I'm using something with lots of dependencies like Gadfly this can lead to several-minute startup times. What determines when modules are recompiled and how

[julia-users] Re: Running a julia script on the web

2016-01-19 Thread Alex Mellnik
A fairly radical approach would be to use Escher.jl (http://escher-jl.org/) as your web server and write all the code in julia. Another method would be to write a simple webserver with Mux.jl (https://github.com/JuliaWeb/Mux.jl). If you can use it, I think the best method would be to have a

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

2015-11-30 Thread Alex Mellnik
On a related note, I've been thinking that it would be nice to include the results of the xkcd color survey in Colors.jl. Right now it has the CSS/SVG and X11 colors which is great for standardization, but sometimes you want to be able to get a RGB value

[julia-users] Re: Masters/PhD programs to continue work on Julia

2015-11-16 Thread Alex Mellnik
Agreed. I would also note that Julia might be used in a wide range of graduate fields, from linguistics to economics to computational physics to math, so if you're only interested in working in Julia you needn't limit yourself to Comp Sci/Eng unless that's the field you wanted to go into

[julia-users] Re: Custom parsing of csv files in DataFrames

2015-11-02 Thread Alex Mellnik
I think it may be easiest to do this conversion in your own program after using readtable: using DataFrames #Make some canned data instead of reading from a table df = DataFrame(datestring = ["12 Apr 1996", "05 Aug 2015"], moneystring = ["\$12.75", "\$0.69"]) df[:date] = Date() df[:money] = 0.0