Mathematica on Raspberry Pi cannot read simple text file - wolfram-mathematica

Raspberry Pi question.
I ported a working notebook from my computer to RPi where Mathematica was pre-installed. It starts nicely, but stops as it tries to read a simple text file. The very first lines are these:
$HomeDirectory
/home/pi
dict0 = ToString /# ReadList["sv_JSPFirefoxRensadCRUTF-8.txt"]
ReadList::noopen: Cannot open sv_JSPFirefoxRensadCRUTF-8.txt.
$Failed
I have also contacted the Wolfram community, a lot of readers, no answer. I am turning into desperation mode.
I have not changed anything, same text file etc. Any suggestions would be much appreciated. Thank you very much in advance.

$HomeDirectory returns your home directory but does not set your working directory to that directory. DirectoryStack shows you what directories have been set. $Path is also useful here. You need to use SetDirectory.
SetDirectory[]
or
SetDirectory[$HomeDirectory]
You should see the Directories & Directory Operations guide for more information.
Hope this helps.

Related

.jff File Conversion OSX

I've been scowering the internet for a good portion of the morning trying to figure this out:
Using OSX, is there a way to either 1) Open a .jff file directly using a third-party software or 2) Is there any terminal command that has proven successful in converting such a file to a type recognizable to OSX?
#ShotgunNinja, you're correct on filling out the form. Thank you so much!

Characters conversions between Windows and OSX

Premise
I was not able to give a proper title to the question, please help if you can improve it. I would also like some help with tags.
Question
I'm in MATLAB (Win 8.1) trying to read files from another hard disk, which is a HFS+ drive with OSX.
for k = 1:10000 //%lot of files
load(['D:\Users\user\Desktop\mats\Some file à',num2str(k),'.mat'])
end
Console says that files are not really there, but I know they are. After some time I got the problem resides in the à charachter, that is present in every single filename.
If I go:
cd('D:\Users\user\Desktop\mats\');
ls
I see that the à character is seen by Windows as a simple a followed by a backtick, a`. However, if I call
load('D:\...\Some file a`.mat)
It doesn't work either. Is there something I can to to bypass this problem? I can't load and rename each file because, well, I can't read them. And I would avoid logging into the OSX drive, since it does not belong to me and would bring non-programming, but annoying, issues.
Any ideas, or notions about how characters are converted from OS to OS?
Edit
I add that I know files are there because there is One lucky file.mat that has no à whatsoever, and I can easily load it. With help from #horchler in comments I verified that, for à files, MATLAB refuses the filenames it just listed out, which looks totally weird to me.

PowerPack printform produce an incorrect postscript file

I am using again a VB10 application a write months ago who produce postscript files through printform object and powerpack. It has always worked well.
But the ps files I write now are incorrect, or at least not recognized by Paintshop who give the following message: undefined in HP-PCL.
I guess that the problem is I have upgraded from XP to Win7 ...
Any idea what can I do ?
thanks in advance
David Remotti
I have found the solution, so I think it's good to share it.
The problem was simply the default printer. For some reason it was defined as an old HP printer that I do not have anymore. So it has been enough to define PDFcreator as the default printer to have back my nice postscript files.

.bat Set FontSize - Windows Command Line

Intro:
I swear have searched around for sometime before posting, but have been unable to find an answer for this..
Question:
Regarding Windows Command Line:
is there some way to set the font/text-size via an actual windows command line in a .bat file?
-Not through going to Properties -> etc. (I understand that quite sufficiently :P)
--Plz no PowerShell.
Additional Notes:
Reason: Thinking of business system based Command Line front-end, PHP back-end.
Thanks in advance.
Without using PowerShell, the only way I can think of would be to modify the registry values under HKCU\Console. See the relevant Technet documentation. However, changes made to the registry values will not update already running console windows. You won't see your changes until you spawn a new console.
As far as how to make changes to the registry, reg /help for more info.

Time Machine API / Command-line scripts?

I need the reference, if it exists, to Time Machine's API or simply some commands that can change the disk in use with Time Machine and back!
I'd like the script I'm going to write to do the following:
Change from disk A to disk B
Force Time Machine backup
Change from disk B back to disk A
Thank you!
Lion added tmutil, a command line interface into Time Machine.
https://apple.stackexchange.com/questions/17759/what-tiny-thing-in-lion-makes-you-smile-or-has-caught-you-off-guard/18665#18665
If AppleScript is fine with you have a look at this post with script. It should serve as a basis for your own.
Apple time capsules include an 'archive' command that can back-up the time capsule disk to an external USB-attached disk.
If I knew what to put there, it seems the file to edit is /Library/Preferences/com.apple.TimeMachine.plist.
You can achieve the correct configuration using "defaults write" to overwrite the relevant settings, although it seems like you have to modify the BackupAlias, which seems to be a hexdump of something I couldn't quite decipher. It does contain the path to my TimeMachine disk, though.
The sanest solution would be to copy the original settings, and then swap files whenever needed.
This Krypted.com blog post has a good list of the main command line use cases.
Also, if you are interested in anything Time Machine the place to start is the unofficial pondini FAQ.

Resources