Another +1 for Nullable type as opposed to Option type.
Option type does not convey any specific meaning.
Jacques
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
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
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.
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
I did see that post after but I still fail to see the connection between
the two.
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
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
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}
Amen to that!
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
Ok, I'll do that tomorrow.
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
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.
Thanks Avik.
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?
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
() 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
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
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
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.
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.
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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:
42 matches
Mail list logo