Thanks, will look into it.
On May 26, 2014 11:20 AM, "Stefan Karpinski" <[email protected]> wrote:

> I would highly recommend Sublime Text <http://www.sublimetext.com/> –
> it's a powerful editor, but unlike vim or emacs, if you just want to use it
> in a completely naïve fashion, you can.
>
>
> On Mon, May 26, 2014 at 9:58 AM, Ivar Nesje <[email protected]> wrote:
>
>> You should probably install a decent text editor, that actually stores
>> your files as you type them. There are lots of options.
>>
>> kl. 15:49:12 UTC+2 mandag 26. mai 2014 skrev Alexander Dubbs følgende:
>>
>>> Scratch that, the Julia code works if I copy-paste it into the command
>>> line, so there must be something about the file types that's messing me up.
>>>  Darned Mac operating system.
>>>
>>> On Monday, May 26, 2014 9:21:38 AM UTC-4, Alexander Dubbs wrote:
>>>>
>>>> I changed the file type to .txt and it didn't help. If I change the
>>>> file type to .jl, my text editor changes it back to .rtf whenever I open 
>>>> it.
>>>>
>>>> On Thursday, May 22, 2014 3:04:39 PM UTC-4, John Myles White wrote:
>>>>>
>>>>> This is probably a problem because you're using an RTF file, which
>>>>> likely contains mostly garbage rather than the actual code you want to 
>>>>> run.
>>>>>
>>>>>  -- John
>>>>>
>>>>> On May 22, 2014, at 12:02 PM, Alexander Dubbs <[email protected]>
>>>>> wrote:
>>>>>
>>>>> The following code gives the following error, and I have no idea why.
>>>>>  There are no comprehensions.  I write require("loaddataju.ju.rtf"),
>>>>> which is below, and get the error:
>>>>>
>>>>> ERROR: syntax: invalid comprehension syntax
>>>>>  in include at boot.jl:238
>>>>>  in include_from_node1 at loading.jl:114
>>>>>  in reload_path at loading.jl:140
>>>>>  in _require at loading.jl:58
>>>>>  in require at loading.jl:46
>>>>> at /Users/alexdubbs/Dropbox/Kaggle/model6/loaddataju.ju.rtf:12
>>>>>
>>>>> loaddataju.ju.rtf is as follows:
>>>>>
>>>>> Xin = cell(23)
>>>>> n = cell(23)
>>>>> y = cell(16)
>>>>>
>>>>> for i = 1:16
>>>>>             Xin[i] = readcsv(@sprintf("X%d.txt",i))
>>>>>             n[i] = int(readcsv(@sprintf("n%d.txt",i)))
>>>>>             y[i] = readcsv(@sprintf("y%d.txt",i))
>>>>>             @printf("%d ",i)
>>>>> end
>>>>>
>>>>> for i = 17:23
>>>>>             Xin[i] = readcsv(@sprintf("X%d.txt",i))
>>>>>             n[i] = int(readcsv(@sprintf("n%d.txt",i)))
>>>>>             @printf("%d ",i)
>>>>> end
>>>>>
>>>>> X = cell(23)
>>>>> for i = 1:23
>>>>>             X[i] = reshape(Xin[i],n[i][1],n[i][2],n[i][3])
>>>>> end
>>>>>
>>>>>
>>>>> Thanks all.
>>>>>
>>>>> AJD
>>>>>
>>>>>
>>>>>
>

Reply via email to