The tech evangelism you are talking about is akin to PR or promoting a
piece of tech to attract users to it. Online judge systems have to do
exclusively with education (basic, intermediate, advanced) to teach
algorithmics. This is an intellectual debugger, a sort of.
2016-06-29 13:58 GMT+10:00
This would be one form of tech evangelism. I wonder if there are any
communities set up for Julia evangelism?
I am trying to write a function that I can use to recode values into a new
variable of Int8 type:
function recode!(df::DataFrame, old::Symbol, new::Symbol, coding::Dict)
df[new] = DataArray([isna(x) ? NA : coding[x] for x in df[old]])
end
recode!(df,:race,:race3,Dict(1=>5,2=>6,3=>7,4=>8))
Answered my own question after a few more hours of sweat and tears. I had
mis-understood the documentation, and what I said previously was correct.
The cluster manager must maintain the stdout IO stream and pass it to the
WorkerConfig.io field.
+1
On Tuesday, June 28, 2016 at 11:44:13 PM UTC+8, mmh wrote:
>
> Hi Viral, we have an eta on when the talks will be up on youtube?
>
> On Wednesday, June 22, 2016 at 11:13:25 AM UTC-4, Viral Shah wrote:
>>
>> Live streaming was too expensive and we did not do it this year, but we
>> certainly
Is it the case that the cluster manager must continue to redirect stdout to
the master after the master/slave handshake has been completed?
I noticed this line in the documentation:
- The cluster manager captures the stdout’s of each worker and makes it
available to the master process
I've launched workers on remote servers using my own cluster manager. It
appears to be configured correctly, the workers launch, I can execute
remotecall on them. But when I try to run a remote `println` command I get
a broken pipe. `stdout` doesn't seem to forward to the master as I would
On Tue, Jun 28, 2016 at 7:17 PM, Oscar Blumberg wrote:
> https://github.com/JuliaLang/julia/blob/master/src/julia.h#L588
Oh, sorry, this thread fall off my reply list twice
> Yichao, could you explain why this is unsafe?
Yes, exactly what Oscar said. The results of
https://github.com/JuliaLang/julia/blob/master/src/julia.h#L588
On Monday, June 27, 2016 at 2:16:01 PM UTC-4, Stephen Chisholm wrote:
>
> Yichao, could you explain why this is unsafe? Do you know of an
> alternative which is safe?
>
> On Monday, 20 June 2016 16:31:29 UTC-3, Yichao Yu wrote:
>>
It's worth discussion. Should be simple enough to find the error and submit
a pull request with any proposed changes:
$ git grep -n "failed to create a precompiled cache file"
base/loading.jl:339:warn("require failed to create a
precompiled cache file")
base/loading.jl:366:
Sorry for the noise, but this was just a programming error of me.
Back to the orignal question: Would it be possible to improve the following
error message:
ERROR: LoadError: __precompile__(true) but require failed to create a
precompiled cache file
Such that it says:
Please try to restart
Ok, I restarted Julia, tried to include my program again. It failed again.
Did another Pkg.update() and tried to include my program again.
It failed again, but now with a different error:
julia> include("Plotting.jl")
ERROR: LoadError: LoadError: LoadError: LoadError: MethodError: `*` has no
Strangely though, if I modify the put! function as:
function put!(D::DictChannel, k, v)
D.d[k] = v
notify(D.cond_take)
Println(keys(D.d))
D
end
And run this I get
Any[2,3,1]
(I added keps in that order), i.e. This works
So it seemed the function definition of keys does not
I believe you need to "fetch" the value in the RemoteRef. This should return
your Dict that you can then use keys on.
Strangely makning a function
function keys(D::RemoteRef{DictChannel})
keys(D.d)
end
Gives also error:
LoadError: type RemoteRef has no field d
Also, for the function put! That does work the function looks like:
function put!(D::DictChannel, k, v)
D.d[k] = v
notify(D.cond_take)
I just found in the same time ... Thank you :)
Le mardi 28 juin 2016 17:48:34 UTC+2, Henri Girard a écrit :
>
> I don't see any command to get rid of axis in Plots or hide them
> I tried axis=false axes =false idem with none but nothing works...
>
>
Solved
Le mardi 28 juin 2016 17:48:34 UTC+2, Henri Girard a écrit :
>
> I don't see any command to get rid of axis in Plots or hide them
> I tried axis=false axes =false idem with none but nothing works...
>
>
Answering myself, after reading I noticed I wasn't using the good command :
Axis was wrong...
They are border =false and ticks = false
x=linspace(-2,2)
t=linspace(-pi/4,pi/4)
f(x) = sqrt(4-x^2)
g(x) = -sqrt(4-x^2)
You might also want to express your perspective on why a function such as
invoke is needed here https://github.com/JuliaLang/julia/pull/13123.
On Tuesday, June 28, 2016 at 5:26:16 PM UTC+2, Bill Hart wrote:
>
> We have hit an issue that we can't seem to find a workaround for. Our only
> working
Try 'ticks=nothing, border=nothing'
On Tuesday, June 28, 2016, Henri Girard wrote:
> I don't see any command to get rid of axis in Plots or hide them
> I tried axis=false axes =false idem with none but nothing works...
>
>
There is some discussion on invoke on github:
https://github.com/JuliaLang/julia/pull/13123
maybe you want to weight in.
On Tue, 2016-06-28 at 19:19, 'Bill Hart' via julia-users
wrote:
> You are a life saver. This is *precisely* what we need. Thank you for
>
You have defined a keys method for a DictChannel but the error message is for a
RemoteRef{DictChannel} which you have no method for.
Yes, that's correct. To use the RORACLE package in R, you need to have the
Oracle client installed also. But it seems that's also the case with ODBC
according to the first reply to this post.
I totally understand this is low on the priority of the things that could
be implemented since there
You are a life saver. This is *precisely* what we need. Thank you for
solving a very difficult problem for us. We were really pulling our hair
out after searching for a solution.
julia> module Nemo
import Base: det
abstract MatElem
function det(a::MatElem)
I've managed to mess up the PyPlot package and cannot manage to get it
straightened out. I am trying to plot from a script, but now get:
ERROR: MethodError: 'show' has no method matching show()
I installed a new python environment using Anaconda and attempted to switch
Julia to use the new
Another possibility: introduce a special "extends" syntax to Julia, e.g.
module Hecke
type SpecialMat <: Nemo.MatElem
end
function det(a::SpecialMat)
if blah
# do whatever
else
Nemo.det
end
end
extends det Nemo.det # tells Julia to somehow treat the det implementation
By the way, here are some potential things that could solve this for us:
1) Allow individual methods to be callable, as in Julia 0.4 (so long as we
can look the methods up at "compile time" in a module and assign them to a
const in the module so that they can be called). As far as we can see,
You could try some of the intro materials at http://julialang.org/learning/,
especially in the "Tutorials" section.
On Tue, Jun 28, 2016 at 11:12 AM, Adrian Felismino <
adriantfelism...@gmail.com> wrote:
> I got lost even I read the julia manual. I have Python Basics Programming
> Language but I
Hi Viral, we have an eta on when the talks will be up on youtube?
On Wednesday, June 22, 2016 at 11:13:25 AM UTC-4, Viral Shah wrote:
>
> Live streaming was too expensive and we did not do it this year, but we
> certainly want to next year.
>
> -viral
> On Jun 22, 2016 10:33 AM, "Gabriel
I got lost even I read the julia manual. I have Python Basics Programming
Language but I can't comprehend simple things in julia like input("")
function in python.
any advise?
the dictchannel is in the julia package as an example of Channels
https://github.com/JuliaLang/julia/blob/master/examples/dictchannel.jl
We have hit an issue that we can't seem to find a workaround for. Our only
working workaround is no longer supported by Julia 0.5.
The issue
We implement determinant for various kinds of matrix types in Nemo and
Hecke (two computer algebra/number theory packages). To do this, we
I have great use of the dictchannel.jl example. I wanted to add the method keys
to it so I thought that I simply add the function:
function keys(D::DictChannel)
keys(D.d)
end
as well s add the function name in the import (I tried also without adding the
"keys") :
import Base: put!, wait,
I think `plot!` is your friend here:
plot(h,fill=g, -2,2,aspect_ratio=1)
plot!(h,fill=f, -2,2,aspect_ratio=1)
On Tuesday, June 28, 2016 at 10:12:28 AM UTC-4, Henri Girard wrote:
>
> How to put them toghever to have only one picture ?
> plot h,g,f gives me only the curves not the fill...
> Any
How to put them toghever to have only one picture ?
plot h,g,f gives me only the curves not the fill...
Any help
HG
using Plots
function h(x)
if x<0
return sqrt(-x^2-2*x)
else
return -sqrt(-x^2+2*x)
end
end;
x=linspace(-2,2)
t=linspace(-pi/3,pi/3)
f(x) = sqrt(4-x^2)
Thanks, I am doing yin-yang but have problems to color,
I want it red and grey :
using Plots
function h(x)
if x<0
return sqrt(-x^2-2*x)
else
return -sqrt(-x^2+2*x)
end
end;
x=linspace(-2,2)
t=linspace(-pi/3,pi/3)
f(x) = sqrt(4-x^2)
g(x) = -sqrt(4-x^2);
d=plot(h,
Ok I don't think you need recipes for this... just a simple call to 'plot'
with the attributes you want. See the "attributes" page of the docs for
descriptions of what's available.
On Tuesday, June 28, 2016, Henri Girard wrote:
> Well... It's here I got your examples :
>
Well... It's here I got your examples :
https://github.com/tbreloff/ExamplePlots.jl/blob/master/notebooks/apply_recipe.ipynb
I just wanted to try it...
My next aim is to use ODE with plots to do my portrait phase and RLC from
pyplot to Plots --pyplot-
I think you must be looking at an old example? Can you tell me where you
found it so I can update? '_apply_recipe' doesn't exist, and you shouldn't
have to import it anyways.
Let me know what your end goal is and I can help. I understand the docs
need better organization.
On Tuesday, June 28,
Restart Julia and try again. (This is because the old Compat module was
already loaded, so the new precompiled one couldn't load.)
Hi Mauro,
no, that's *exactly* what I was looking for... thanks a lot :)
Best regards,
Ferran.
On Tuesday, June 28, 2016 at 10:37:46 AM UTC+2, Mauro wrote:
>
>
> julia> Vector[rand(3), rand(3), rand(3)]
> 3-element Array{Array{T,1},1}:
>
julia> Vector[rand(3), rand(3), rand(3)]
3-element Array{Array{T,1},1}:
[0.08082297930289717,0.4831571293164978,0.7227686419871842]
[0.7376841239302636,0.6150435898281146,0.1474762464521686]
[0.9699744293150396,0.19770809574045556,0.638619038137211]
julia> hcat(ans...)
3x3 Array{Float64,2}:
Hi,
probably simple question but can't find the answer. I have a vector of
vectors like this one
chi2_mods
3-element Array{Array{Float64,1},1}:
[7245.87,7242.98,7240.08,7237.18,7234.28,7231.39,7228.49,7225.59,7222.7,7219.81
…
That's what I get,any help :
Pkg.checkout("Plots")
Pkg.checkout("PlotRecipes")
using Plots, PlotRecipes
pyplot()
import Plots: _apply_recipe, KW
immutable F
f::Function
end
getf(f::F) = f.f
WARNING: could not import Plots._apply_recipe into Main
44 matches
Mail list logo