[julia-users] Re: Calling a function when type field changes.

2016-05-08 Thread Yonghee Kim
I've ended up creating this macro macro log(ex) local field = eval(ex.args[1].args[2]) local var = ex.args[2]

[julia-users] Re: Calling a function when type field changes.

2016-05-05 Thread Yonghee Kim
Thank you for your advise! I will try this

[julia-users] Calling a function when type field changes.

2016-05-04 Thread Yonghee Kim
I'd like write a simple log when type field value has changed something like this type Item id::Int32 count::UInt32 # function for writing a log end

[julia-users] Calling a function when field of type changes?

2016-05-04 Thread Yonghee Kim
I'd like write a simple log when type field value has changed something like this type Item id::Int32 count::UInt32 # function for writing a log end

Re: [julia-users] Chipmunk package build on windows

2016-04-11 Thread Yonghee Kim
I tried running the commands line by line as you suggested. turns out that I was using visual studio as generator for cmake which doesn't generate 'makefile'. so I ran cmake -G "MSYS Makefiles" and which generated 'makefile' but still fails to build at different stages of build. I'm

[julia-users] Chipmunk package build on windows

2016-04-06 Thread Yonghee Kim
I'm trying to install "Chipmunk " Package on windows7 building "Chipmunk" requires `cmake` and `make` command So I installed cmake and MinGW to use those commands on windows command prompt. But I still

[julia-users] strange behavior with float value multiplication

2015-12-28 Thread Yonghee Kim
I wrote simple code like this -- a = 0.2 for i in 1:10 println(a * i) end --- and what I got is not 0.2, 0.4, 0.6, 0.8, 1.0 but this. 0.2 0.4 0.6001 0.8 1.0 1.2002 1.4001 1.6 1.8 2.0 println(0.2 * 3)

Re: [julia-users] strange behavior with float value multiplication

2015-12-28 Thread Yonghee Kim
Dear Pranit Bauva Thanks for your kind explanation! your answer helped me a lot.

[julia-users] Re: strange behavior with float value multiplication

2015-12-28 Thread Yonghee Kim
oating point, you get the wrong answer > (0.03), but with decimal floating point, you get the correct answer (the > one the tax authorities will want you to give them). > > Depending on your particular use case, you can either use the default IEEE > binary floating point numbers in Ju

[julia-users] Re: vlookup function in DataFrame?

2015-10-02 Thread Yonghee Kim
2015년 10월 2일 금요일 오후 12시 19분 39초 UTC+9, Tony Fong 님의 말: > > try > join( df1, df2, on = :colname, kind = :left ) > > On Thursday, October 1, 2015 at 10:34:30 PM UTC-4, Yonghee Kim wrote: >> >> I conldn't find excel "vlookup" equivalent function in DataFram

[julia-users] Re: vlookup function in DataFrame?

2015-10-02 Thread Yonghee Kim
I think this seems better. function vlookup(a::Any, df::DataFrame, lookup_col::Symbol, find_col::Symbol) c = df[df[lookup_col] .== a, [find_col]][1, 1] return c end

[julia-users] vlookup function in DataFrame?

2015-10-01 Thread Yonghee Kim
I conldn't find excel "vlookup" equivalent function in DataFrame package So I made one myself function vlookup(a::Any, df::DataFrame, lookup_col::String, find_col::String) b = findfirst(df[symbol(lookup_col)], a) b != 0 ? c = df[b, symbol(find_col)] : c = 0 return c end And