[julia-users] Re: OptionTypes.jl

2014-07-31 Thread Jacques Rioux
Another +1 for Nullable type as opposed to Option type. Option type does not convey any specific meaning. Jacques

Re: [julia-users] Adding a row to a DataFrame

2014-05-27 Thread Jacques Rioux
Let me add a thought here. I also think that adding a row to a dataframe should be easier. However, I do not think that an array would be the best container to represent a row because array members must all be of the same type which brings up Any as the only options in your example. I think

Re: [julia-users] Re: Package list for the latest version

2014-05-01 Thread Jacques Rioux
Or may I suggest simply calling Pkg.available() in the Julia REPL directly. You get the list right there for you.to browse and inspect. And it is always up to date. On May 1, 2014 3:20 PM, Iain Dunning iaindunn...@gmail.com wrote: I see. Well, I guess in that case the list at

[julia-users] Re: Function naming idioms in Julia

2014-04-11 Thread Jacques Rioux
Yes, but unfortunately, the piping operator, |, can only be applied to functions taking a single argument. I really wish it could be applied to functions of any number of elements.

[julia-users] Re: Online Database + IDE for Julia

2014-04-09 Thread Jacques Rioux
Did I miss a link in your post? Is there any place to interact with or see your progress online now? Good luck in your endeavour

Re: [julia-users] Re: Online Database + IDE for Julia

2014-04-09 Thread Jacques Rioux
I did see that post after but I still fail to see the connection between the two.

Re: [julia-users] Re: Online Database + IDE for Julia

2014-04-09 Thread Jacques Rioux
Ah! Ok, now I get it. I was starting to wonder Am I really that thick? I may be but we will have to wait a lttle longer for confirmation... ;-) Thanks

[julia-users] What is the pattern of use of watch_file?

2014-04-07 Thread Jacques Rioux
I posted a similar question a week or 10 days ago without a reply. I am giving this a try again. I was able to get the call to work at home with something like the following: When I would change the file println's below would display the information in the console. However, I had no access to

[julia-users] Re: What is the pattern of use of watch_file?

2014-04-07 Thread Jacques Rioux
Ok, I figured it out: julia wf = watch_file((fn, ev, st) - begin println(File Name : *string(fn)) println(Event : *string(ev)) println(Status: *string(st)) end, c:\\Bits\\watch.txt) FileMonitor(Ptr{Void}

Re: [julia-users] Re: The then keyword

2014-04-05 Thread Jacques Rioux
Amen to that!

Re: [julia-users] Re: ANN: TestImages

2014-04-04 Thread Jacques Rioux
So what is the state of things? Still no luck on Windows for me this morning. I did Pkg.update(), Pkg.checkout(ZipFile), Pkg.build(TestImages) in various combinations and got the same results, no download. I looked in the presumably updated build.jl file, I still see the same call to

Re: [julia-users] Re: ANN: TestImages

2014-04-04 Thread Jacques Rioux
Ok, I'll do that tomorrow.

Re: [julia-users] Re: ANN: TestImages

2014-04-03 Thread Jacques Rioux
I had diagnosed that the problem was with the download function myself and I put some println statements in there to see at which precise point it was failing but none of those ever appeared so I was a little confused. Now that you say it is not available on Windows, it makes sense. So I am

Re: [julia-users] Re: ANN: TestImages

2014-04-03 Thread Jacques Rioux
Replying to myself. The exports are in share/julia/base/exports.jl and the download function is exported for all platforms. So I guess what you meant was that it simply does not work on Windows.

Re: [julia-users] Re: ANN: TestImages

2014-04-03 Thread Jacques Rioux
Thanks Avik.

[julia-users] Re: ANN: TestImages

2014-04-03 Thread Jacques Rioux
So should this not be reported as an issue? Not the problem with this package but the fact that the standard library function download is not supported on Windows. Is it an issue already?

[julia-users] Re: ANN: TestImages

2014-04-02 Thread Jacques Rioux
Here it is running the pertinent lines in the REPL. It seems like the download does not work I think. julia fname = joinpath(tempdir(), standard_test_images.zip) C:\\Users\\Jacques\\AppData\\Local\\Temp\\standard_test_images.zip julia

Re: [julia-users] Re: ANN: TestImages

2014-04-02 Thread Jacques Rioux
() and try again? --Tim On Wednesday, April 02, 2014 07:13:24 PM Jacques Rioux wrote: I get errors building it. julia Pkg.build(TestImages) =[ ERROR: TestImages]== spawn: no such file or directory (ENOENT) while loading C

Re: [julia-users] What is the Julia equivalent of the MATLAB function: nargin()

2014-04-01 Thread Jacques Rioux
I don't know Matlab but I believe what you are after is length as used below. function demo (x...) length (x) end demo(3, 4, 5) 3 On Apr 1, 2014 7:14 AM, Adrian Torrie adriantor...@gmail.com wrote: As the title says, is there an equivalent? If not, would setting optional args to a

[julia-users] Weird syntax code in generate.jl

2014-04-01 Thread Jacques Rioux
I am reading the code in the Pkg internal package. In there, I see a function, genfile defined with the prototype below. function genfile(f::Function, pkg::String, file::String, force::Bool=false) This is the only definition of a genfile function/method I can find in all of Julia's source

[julia-users] Re: Numeric Type Parameter

2014-04-01 Thread Jacques Rioux
As I understand it, for any given n, ModInt{n} is a different type. The type knows about n but n is not a slot in the type. The type only has one slot, k. So you can't have a constructor with two parameters as you are declaring it.

Re: [julia-users] Weird syntax code in generate.jl

2014-04-01 Thread Jacques Rioux
Ah! The world is right again. Now that you point me to it, I remember reading it. I guess it had not really registered. Now, it is engraved for good in my brain. Sincere thanks.

[julia-users] How do you cancel a watch_file call?

2014-03-31 Thread Jacques Rioux
I am going through the standard library documentation and trying out various functions to make myself familiar with them. I tried the watch_file function to which you provide a callback function that is called whenever the file changes. The question I have is how do I stop watching? Of course

Re: [julia-users] Re: Build errors for ICU, Nettle and GnuTLS on Windows 7

2014-03-29 Thread Jacques Rioux
Still failure but now it is different. Completely wiped out Pkg.dir() Reinstalled the latest version 0.3 from julialang.org. Then I only addressed what I care for now: julia Pkg.add(Requests) ... lots of chatter but sucess! julia using Requests Warning: redefining constant iculib julia

[julia-users] Simplest web client on Windows 7

2014-03-28 Thread Jacques Rioux
I have tried a number of packages (on a couple of machines) to build a simple Web client in Julia on Windows 7. Every single package I tried to install or used had a problem installing some supporting library or failed otherwise. So rather than ask for help in debugging my issues on a package

[julia-users] Re: Simplest web client on Windows 7

2014-03-28 Thread Jacques Rioux
On Friday, March 28, 2014 4:38:28 PM UTC-4, Jacques Rioux wrote: I have tried a number of packages (on a couple of machines) to build a simple Web client in Julia on Windows 7. Every single package I tried to install or used had a problem installing some supporting library or failed

[julia-users] Re: Simplest web client on Windows 7

2014-03-28 Thread Jacques Rioux
Ok, thanks for your reply. I refreshed everything at home and now I don't seem to have install errors. That's a start. I am initially trying to use the Request object like: julia rq = Request(GET, http://julialang.org/;, (String=String)[], ) But now, what do I do with it? I look in the code

[julia-users] Build errors for ICU, Nettle and GnuTLS on Windows 7

2014-03-28 Thread Jacques Rioux
This is my second thread on trying to build a simple web client on Windows 7. As I said in my first, I have tried various packages with no success at all. I was able to seemingly get HttpCommon to install correctly but I can't see what to do with HttpCommon.Request. If I ask for methodswith on

[julia-users] Re: [UCIMLRepo] New package for downloading datasets from UCI ML repositories

2014-03-19 Thread Jacques Rioux
Siddhant I am taking a look at your package this morning. A couple of issues to get started cloning your repos. Yuour instructions are slightly wrong in your README.md file. You say run the following command: *Julia*Pkg.Clone(git://github.com/siddhantjain/UCIMLRepo.jl.git) 1) The clone call

[julia-users] Re: [UCIMLRepo] New package for downloading datasets from UCI ML repositories

2014-03-19 Thread Jacques Rioux
Ok, I guess this package is not for me. It does not seem to be meant to be running on Windows 7. As I look at the errors more closely as I am posting this, I see your package calls HTTPClient. Can someone tell em whether that package is Windows 7 compatible? julia using UCIMLRepo julia

Re: [julia-users] getting initial seed?

2014-03-19 Thread Jacques Rioux
Ethan, You do not even need to do that. In fact, it is a bad idea. If you just want to simulate randomly without being able to reproduce the result, do away with the seed. If you need reproducibility then you need to know the seed. In that case, that random draw is not helping you either

Re: [julia-users] getting initial seed?

2014-03-19 Thread Jacques Rioux
Sorry, I had missed the point that you were storing the randomly generated seed. On Mar 19, 2014 2:54 PM, Ethan Anderes ethanande...@gmail.com wrote: I forgot to say that in addition to seed = rand(1:1) I then do srand(seed)...which does allow me to reproduce the results. As I was saying,

Re: [julia-users] getting initial seed?

2014-03-18 Thread Jacques Rioux
What is it that you are trying to do? You don't need to call stand with a mysterious number. Pick your favorite number srand(53) and do your thing. If you want to change your model but use the same seed, you know it already. If you want the same model with a different seed, just pick 67 or

Re: [julia-users] Dubious malformed param list?

2014-03-17 Thread Jacques Rioux
Fil, Isn't the problem simply that you are defining a function that takes no parameters yet you assert that this non existant parameter is of type T? That does not seem like a good idea. On Feb 19, 2014 1:35 AM, Fil Mackay f...@vertigotechnology.com wrote: Is there anything fundamentally wrong

Re: [julia-users] Introducing jlbox - a tool to bootstrap julia projects and watch/test julia files as they are changed

2014-03-14 Thread Jacques Rioux
Hi Christopher, thanks for your reply. I figured out that it was an issue with the version of npm on my machine. I reinstalled npm and after that I was able to install jlbox and zmq but in both cases I get warnings about conversion from __int64 to int, uint64_t to int32_t, and so on. I kept

Re: [julia-users] Introducing jlbox - a tool to bootstrap julia projects and watch/test julia files as they are changed

2014-03-14 Thread Jacques Rioux
So where is that file that contains those npm install calls? I am asking because perhaps I could be able to edit it and add some debugging info in it to help me figure out what is going wrong in my particular case. I doubt very much that it is a path issue because I call npm install directly

Re: [julia-users] Introducing jlbox - a tool to bootstrap julia projects and watch/test julia files as they are changed

2014-03-13 Thread Jacques Rioux
Christopher, I am excited about your tool. I tried setting it up this morning on my Windows machine. I could not get number to install jlbox successfully. Always some incompatible version on various packages. I did install some of those dependencies individually and was able to pass some of

Re: [julia-users] Introducing jlbox - a tool to bootstrap julia projects and watch/test julia files as they are changed

2014-03-13 Thread Jacques Rioux
What I meant was I could not get npm to install jlbox successfully. On Mar 13, 2014 8:46 AM, Jacques Rioux jacques.ri...@gmail.com wrote: Christopher, I am excited about your tool. I tried setting it up this morning on my Windows machine. I could not get number to install jlbox successfully

[julia-users] How to shell run a file in Windows

2014-03-12 Thread Jacques Rioux
I am trying to figure out how to launch a file in Windows 7 64bit, without knowing what the programs to be running would be. A *.txt file will launch in Notepad or some other editor, a *.htm file will launch in a browser. I just want the same behavior as if I typed the name of the file on a

[julia-users] Re: How to shell run a file in Windows

2014-03-12 Thread Jacques Rioux
Thanks Tony. In fact, spawn(`explorer C:\\myfile.txt`) seems to be what I was looking for. But I owe you for pointing me in the right direction. For calling batch files, your solution does seem to work as is. Thanks again. Jacques

Re: [julia-users] Re: How to shell run a file in Windows

2014-03-12 Thread Jacques Rioux
a function: function osopen(filename) # open the file on Mac or on Windows @osx? run(`open $filename`) : spawn(`cmd /C $filename`) end On Wednesday, March 12, 2014 7:44:14 AM UTC-7, Jacques Rioux wrote: I am trying to figure out how to launch a file in Windows 7 64bit, without

Re: [julia-users] Is it possible to create function in composite types

2014-03-12 Thread Jacques Rioux
I am clearly late to this party. When you say there is no such thing, you probably mean it is not common or perhaps not idiomatic. However, there is no technical reason to not being allowed to have a field of type Function. On Mar 9, 2014 12:11 AM, Isaiah Norton isaiah.nor...@gmail.com wrote: