How to open iCloud CDT file - plist

I found this site which details iCloud a bit more, on it, it talks about .CDT files and how they can be 'unzipped' and read as a .plist. As I am having issues with iCloud I thought I could at least see what was in them and see what exactly is being uploaded.
However, when right-clicking on the .CDT files there is no option to unzip them, nor do they open in Xcode.
Thanks for any replies!

They're zip files all right, but the cdt extension makes Mac OS X think they're something else. You can either
Copy them somewhere and change the "cdt" extension to "zip", or
Unzip them at the command line, using "unzip".
They contain a binary property list file named "contents".

Related

How to clear searchable history database in RStudio

In addition to the .Rhistory file,
RStudio maintains a database of all commands which you have ever entered into the Console. You can browse and search this database using the History pane. (source)
This one appears to still be searchable even when .Rhistory has been deleted.
How can I empty it? Cleaning it up might be necessary after, for example, installing from a private repo using a password, when I know other users have access to the computer. For example, I was a bit anxious seeing this popping up, after entering pass into the search field... (ノ゚0゚)ノ~
Thanks to Phann's hint, I found:
Deleting history_database seems to do the job. An empty database file is automatically recreated when starting RStudio again (tested on MacOS and Linux). The folder where to find history_database depends on your os and is described for the more general case here.
MacOS and Linux
~/.rstudio-desktop
Windows Vista, 7 and 8
%localappdata%\RStudio-Desktop # (i.e. Phann's path, I guess)
Windows XP
%USERPROFILE%\Local Settings\Application Data\RStudio-Desktop
Linux RStudio-Server
~/.rstudio
On my Win7 system, I found the file history_database within C:/Users/../AppData/Local/RStudio-Desktop. It has a unix-like time stamp per line followed by a command.
I would guess that if you empty this file, the history is cleared. But I haven't tried the solution yet, so better make a copy of the file to be on the save side.
The file should be in a similar folder in Win10.

RStudio R File Corruption

I had a R script open in RStudio. The file was saved many times over the course of several weeks and worked perfectly fine when RStudio was opened and closed. However, today, I restarted my computer and when I opened RStudio and more specifically the script that I mentioned, all of the R code vanished, leaving a single long row of "....." with red highlighting.
When I tried to open the R file in other text processors such as Sublime Text and Notepad++, only a line of zeroes was visible. None of my other R files were affected. I'm currently running Windows 8.1 and have the latest version of R and RStudio. What can I do to recover the code in the file and prevent something like this from happening again?
It might be an old thread and it might have been covered in 'user4458796' answer in suggestion #1 ("Use the history..."), but:
My friend had the same problem and we managed to recover the code from a 'history_database' files located on Windows at:
'C:\Users\%user%\AppData\Local\RStudio-Desktop\'
I assume there is an equivalent location in Linux in general.
Hopefully I won't get downvoted, just sharing my 2cents.
Ben.
It's not clear what happened to corrupt your file (and thus how to fix it if possible) and it is kind of ominous that you're just seeing 0's in other text editors, but I'll give you my best suggestion and some tips.
Suggestions for Attempting Recovery
Since your other R files were unaffected, you should have a messy record of your code in the history. Use the history to reconstruct your code.
Access a copy of your file from any version control, cloud, or offline backup you may have used -- git, SVN, iCloud, SugarSync, Dropbox, etc (I realize you probably wouldn't have posted this question if that were an option, but I had to throw it out there).
Use a Hex or sector editor to try to recover the data.
Use a data recover program to find an old version of your file.
Inspect your trash or recycling bin to see if it has an old version. Depending on your OS and the settings of how you (insecurely or securely) delete files, then you may be able to undelete a deleted version, even if it's not immediately available.
Try different methods of recovering text data from corrupted text files like OpenOffice's and Microsoft's suggestions.
Tips for the Future
I know that hindsight is 20/20, but a few quick tips for good measure:
Use version control. Git is supported in RStudio's GUI interface.
Have more than one version of your file. Many professors and professionals recommend writing/storing code in a text editor and using your IDE only for the working copy.
Make backups. Distinct from #2, you should backup your files to a hard drive, flash drive, or cloud service like Dropbox or Spideroak.

Locating and opening/ updating the Rprofile.site file in MAC

Running RStudio in MAC (not server) and would like to know where to locate the Rprofile.site file in my working directory. Yes I have read ?Startup and I know exactly what I want to do with it (provided I find the file first) and yes I know where my getwd() is.
I have also gone through a bunch of posts in SO already which vaguely touch on/ answer this. Surely this will keep coming up so I will ask the question: Is there a literal file we can open and update with all the great start up code that has been shared and if so, where is it located in a MAC directory OR is there something more to it as I cannot locate this file.
1 answer I found mentions to create a text file then use terminal to copy visible contents of text file to invisible Rprofile? INVISIBLE??
Rprofile.site and .Rprofile are different files. Only files with a lead "." are treated as invisible by the Mac Finder. You didn't specify which OSX version you're using. If it's pre-Mountain Lion, you can IIRC use System Preferences to choose to display invisible files in Finder windows. Apparently it's more difficult in MountainLion. There are third-party tools like Onyx which allow you do set invisibility as well.
Given all that, I recommend you check the FAQ and forums at RStudio for specific info on where RStudio's installation expects to see these files.

Location of the program in the JDK that opens .jar files(double-click)

I would like to know the LOCATION of the .exe in the JDK that opens .jar files. What I mean is this: Which .exe in C:\Program Files\Java\jdk*version number*\jre\ opens the .jar files, so that they can be opened using a double click? I used to be able to do that, when I newly installed the JDK+JRE. Unfortunately, Nokia PC Suite has made itself the default program for opening .jar files, so that it can install them on my Symbian. Which program do I 'Open With' to get back the old functionality? I already know how to do it from the command line, but this is easier.
There is no specific program to run jar files.
It is java.exe only with the -jar option
For eg.--> java -jar "foo.jar"
Right Click on a jar file and go to its properties. Change the default opening program to java.exe.
I hope that should work.
use javaw.exe if you don't want the command window.
This convention is widely followed by others like perl/python/ruby as well.
I know how frustrating this issue is. I looked all over the internet forums before I finally found the problem...Here is the answer below :
"The root cause for the problem above is, that a program has stolen the .jar association. If you have installed the Java Runtime Environment the first time, the file type called "jar" is assigned to javaw.exe correctly. "jar" is an abbreviation for "java archive" and javaw.exe is the correct program to execute a .jar. However, on Windows any program can steal a file type at any time even if it is already associated with a program. Many zip/unzip programs prefer to do this, because a jar is stored in the .zip format. If you doubleclick on a .jar, your pack program opens the file, rather than javaw runs the program, because your pack program ignores the meta information which are also stored in a .jar."

Aptana studio with file lost

I did a project with my friend using aptana sync by FTP.
Today when i save file on FTP my connection lost.i open file.php again There are 455 line from 600 line.i didn't sync with git and my friend don't open aptana yet.Can i recover it? Have a temp file or history? ;(
I would suggest Eclipse Local History as your first step: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-55.htm
On linux I was able to recover the file from /tmp folder (it has a gibberish name there so you have to digg a little). hope it helps someone in the future.
Never say never, I just lost my 2 days work after out-of-mind checkout with lot of ucommitted changes and ended up here... I couldn't get it from local history in Aptana, /tmp was empty but I could find all the files in .metadata hidden dir in workspace. I guess git makes the local history act differently in Aptana itself, but it's still stored here .metadata/.plugins/org.eclipse.core.resources/.history

Resources