[julia-users] Re: timing question on 'read' binary..

2015-12-02 Thread Rajn
, 2015 at 12:56:48 AM UTC-5, Rajn wrote: > > I am reading a binary file with a structure. Matlab takes long and I > wanted to run Julia for speed improvement. > It reads camera frames, each with certain bytesize and each frame > consisting of parameters of certain byte size and T

[julia-users] timing question on 'read' binary..

2015-12-01 Thread Rajn
I am reading a binary file with a structure. Matlab takes long and I wanted to run Julia for speed improvement. It reads camera frames, each with certain bytesize and each frame consisting of parameters of certain byte size and Type. frames: is declared Int64 and runs from 1:frames PACKSIZE is

[julia-users] Converting String to DataType - don't quite get it!!

2015-11-29 Thread Rajn
Hi, I am trying to read a binary file by doing the following: read(fid, DataType[i], Numelements[i]). I would like to extract DataType from a user input which is read from a column (whose header is 'type') of DataTable which is a string array. For example DataTable[1,:type] = "uint8"

[julia-users] Re: equivalent of fseek?

2015-11-29 Thread Rajn
Thanks James for pointing it out. It did work. Is there a need for a C++ like function fseek in that case at all? On Saturday, November 28, 2015 at 1:00:14 PM UTC-5, Rajn wrote: > > Is there an fseek in Julia which returns to an offset from the beginning > of the buffer during a binary

[julia-users] Re: Converting String to DataType - don't quite get it!!

2015-11-29 Thread Rajn
by defining all parameters in read() without dynamic conversions if possible! Or is there a way to replace the column of strings with Types? When I try to do that I get an error about convert i.e. cannot convert string to DataType... Thanks On Sunday, November 29, 2015 at 10:24:46 PM UTC-5, Rajn

[julia-users] equivalent of fseek?

2015-11-28 Thread Rajn
Is there an fseek in Julia which returns to an offset from the beginning of the buffer during a binary file read? Would seekstart followed by seek or skip work? I understand that stream is not the same as file in read()? Thanks

[julia-users] Median filter

2015-11-10 Thread Rajn
I was wondering if a 'median filter' algorithm is available in Julia? There was some discussion on this topic in 2013. Wonder if someone built it eventually. I am looking for something similar to medflt1 of Matlab. Thanks

[julia-users] help needed with Julia install on Centos

2014-10-14 Thread Rajn
I am behind a firewall and cannot access the repo file as I see that connection is getting timed out. I could not use git - git clone git://github.com/JuliaLang/julia.git I get an error connection reset by peer. I did not try https clone because I do not know much about it and have to read up

[julia-users] Re: help needed with Julia install on Centos

2014-10-14 Thread Rajn
Also forgot to mention that my machine OS is Centos 6.5 Thanks On Tuesday, October 14, 2014 3:23:53 PM UTC-4, Rajn wrote: I am behind a firewall and cannot access the repo file as I see that connection is getting timed out. I could not use git - git clone git://github.com/JuliaLang

Re: [julia-users] Re: help needed with Julia install on Centos

2014-10-14 Thread Rajn
: Building from github tar files isn't supported. Can you try git cloning via https or ssh? On Oct 14, 2014, at 3:27 PM, Rajn rjngr...@gmail.com javascript: wrote: Also forgot to mention that my machine OS is Centos 6.5 Thanks On Tuesday, October 14, 2014 3:23:53 PM UTC-4, Rajn wrote: I am

Re: [julia-users] Re: help needed with Julia install on Centos

2014-10-14 Thread Rajn
, October 14, 2014 4:18:53 PM UTC-4, Rajn wrote: I will try Elliot' s suggestion because https cloning did not work - I qualify this statement - it did work in the sense it downloaded the files properly but make gives me the same errors as before. So it must be due to old compiler that I pointed

[julia-users] repmat :comparison with Matlab/Octave - 6x slow?

2014-10-13 Thread Rajn
Hi, I have two questions. First question: I have a fairly simple problem which can be solved in many ways. To begin I have a vector z1=Array(Float64,1,0) I have Z=1:0.01:100 I would like to generate a vector in which each element is repeated length(Z) times i.e., [1 1 1 1length(Z)

Re: [julia-users] Matlab versus Julia for loop timing

2014-01-30 Thread Rajn
White johnmyl...@gmail.comjavascript: wrote: Can you show the call to @time / @elapsed so we know exactly what's being timed? -- John On Jan 29, 2014, at 9:28 AM, Rajn rjngr...@gmail.com javascript: wrote: Now it takes even longer i.e., ~1 minute Does this make sense. Also I

Re: [julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-30 Thread Rajn
Ok bump anyone for this? I found the link which exactly refers to the errors I am getting during 'make' and is referred to as Haswell bug! However, from the link I am unable to understand what is the resolution to this problem. Can someone please point out to me the right direction? Thanks The

[julia-users] Re: Installing Julia on Ubuntu12.04

2014-01-29 Thread Rajn
Hi, On the Github (or perhaps on the download?) page of Julia there are instructions as to what you should do when 'make' fails. There is a procedure for BLAS failure mentioned there. You have to make a new file if it already does not exist called Make.user and then type in those commands. Then

[julia-users] Matlab versus Julia for loop timing

2014-01-29 Thread Rajn
Hi, I am importing an image - gray scale, size (1440,1776,1). I wrote a simple code for performing a running average with a square filter of size 2*f+1, with f as a variable. I am not performing running average over the boundaries i.e., neglecting boundary pixels. Leaving aside the time to

Re: [julia-users] Matlab versus Julia for loop timing

2014-01-29 Thread Rajn
. Check out the performance tips page in the Julia manual for other ideas: http://docs.julialang.org/en/latest/manual/performance-tips/ -Jacob On Wed, Jan 29, 2014 at 11:13 AM, Rajn rjngr...@gmail.com javascript:wrote: Hi, I am importing an image - gray scale, size (1440,1776,1). I

Re: [julia-users] Matlab versus Julia for loop timing

2014-01-29 Thread Rajn
Now it takes even longer i.e., ~1 minute Does this make sense. Also I am running this loop only once. I do not understand why writing in the function form would help. I read the manual but they suggest writing function form for something which is used many times. I=runave(S,A,f) showim(I);

Re: [julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-29 Thread Rajn
The error I am getting is osutils.jl Illegal instruction (core dumped) make[1]: *** [/home/rajan/julia/usr/lib/julia/sys0.bc] Error 132 make: *** [debug] Error 2 now I wonder if osutils.jl is corrupted on the git? Can some one please take a look at this and let me know if this is fine?

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajn
* in the installer? On Monday, January 27, 2014 1:02:48 PM UTC-5, Rajn wrote: PYTHONHOME is set to C:\Anaconda;C:\Anaconda\Scripts PYTHONPATH is set to C:\Anaconda\Lib (Normally, I thought it was just PYTHONHOME=C:\Anaconda)

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajn
not present any major problems. On Fri, Jan 24, 2014 at 10:08 PM, Rajn rjngr...@gmail.comjavascript: wrote: Well actually I tried linux too. I have latest Xubuntu 13.0 version and Julia does not even install (worse than Windows) when I try its repositories suggested in the download webpage

Re: [julia-users] Re: not loading python module

2014-01-27 Thread Rajn
up. On Monday, January 27, 2014 2:09:54 PM UTC-5, Rajn wrote: Yes, I did both. I tried just PYTHONHOME=C:\Anaconda did not work. Can you please advice me on the following please? 1. that while installing pyplot, the PYTHONHOME variable should already be set? 2. is there any way to print

Re: [julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-27 Thread Rajn
Hi, I am having good time coding in Julia on my Windows at work. However, at home Linux is not still able to work with Julia. Hope it gets resolved at some point - otherwise I am thinking of a fresh install of Ubuntu 13.10 (not Xubuntu which is my current system). Are there folks who are

[julia-users] Re: julia unable to install on Ubuntu 13.10

2014-01-26 Thread Rajn
Bump anyone? What does this mean? Next steps please? osutils.jl Illegal instruction (core dumped) make[1]: *** [/home/rajan/julia/usr/lib/ julia/sys0.bc] Error 132 make: *** [release] Error 2 On Friday, January 24, 2014 10:30:18 PM UTC-5, Rajn wrote: After my several failed attempts to run

[julia-users] Re: not loading python module

2014-01-24 Thread Rajn
wrote: On Thursday, January 23, 2014 3:30:00 PM UTC-5, Rajn wrote: I will appreciate some help here. And also I have only one python installation which is the Enthought edition. Also a related question, if I change something in *.jl such as what I changed above, I read that I have do reverse

Re: [julia-users] Re: not loading python module

2014-01-24 Thread Rajn
wrote: On Friday, January 24, 2014 3:59:38 PM UTC-5, Rajn wrote: Sorry Steve, There is no PYTHONPATH in the Windows environment variable. I have not set that variable. I miswrote earlier. There is only PYTHONHOME which is set to C:\Python27 You might try setting your PYTHONPATH variable, so

[julia-users] julia unable to install on Ubuntu 13.10

2014-01-24 Thread Rajn
After my several failed attempts to run PyPlot through Julia in Windows, I decided to give up and try Linux. Guess it was even worse. First I added to regular repository (not the nightlybuild) then added the dep-repository then updated and then installed julia Here's the latest: Unpacking

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-24 Thread Rajn
. It takes a while but if your PC is not that old you'll be done in less than an hour. -- João Felipe Santos On Fri, Jan 24, 2014 at 10:30 PM, Rajn rjngr...@gmail.com javascript:wrote: After my several failed attempts to run PyPlot through Julia in Windows, I decided to give up and try

[julia-users] not loading python module

2014-01-23 Thread Rajn
Hi I followed suggestions and looked up help and searched for earlier similar problem. Found few and tried those out. For example I set PYTHONPATH and PYTHONHOME variables (Python 2.7 is running because my path in windows was set to the bin for python). Then I restarted Julia but I am getting