How to recove corrupted XAML (encryption) - xaml

Today I opened my Xamarin project, but my main XAML file looks like this!
Not all files look like this, the editor is ok.
I have no backup file for this one, is there any way to fix the file?

Bite the bullet, recreate the view.
Next time use a version control service such that you always have a version of your code to fall back to. Github and other services provide free private repositories if you don't want your code to be public.
Always back up...

Related

Texmaker: Is there a way to compile main.tex eventhough some child-texfile is opened in the editor?

The main.tex file in my project is the one to be opened in editor view in order to successfully compile the pdf-document. It has several child-files like e.g. content.tex where I write the actual thesis text.
Every time I want to compile the document in order to view the changes I have to change the editor-file to main.tex. Otherwise the process ends with errors.
I already tried the Ctrl+0 base file setting, but it did not show any changes.
The LaTeX project is based on a template provided by my university and though has to stay untouched in regards of the project structure itself (why so ever...).
I managed to do as I strived to. Don't know whether I'd just been too clumsy or if it relates to the problems I faced during the \input{...} integration, but if anyone wonders how to do so too:
It in fact has been the way I already tried - set the main-document to master-document.
Nevertheless I switched to use TexStudio meanwhile.
Thank you for your response #Gowachin

Vb.net project save not opening from anywhere by its original source

I've made a program for my assingment, and code it entirely from home. Obviously I need to submit it and work on it from college, i've got about 13 hours until it's due and I cannot for the life of me figure out what these errors mean, I'm guessing its something to do with the paths of the files. To make it clear, the program does not open and it is not the original copy. I do have other copies and I have tried the same approach with the exact same luck. Thank you in advance.
Okay, an update. As I said, I copied it from home, and pasted it in the folder location that it is calling below, however, it's calling an older version of the game which has no relevence to the game(number guessing game), from a location two files up from the actual vb files. Is there a way i can change what the project opens?
In your second picture just drag 'Form1.vb' to the solution Explorer. That way it can recognize your form. I have encountered this problem before and I just did what I said above.

In Intellij IDEA how do I reload file content's from disk?

In vim I can type :e and reload a file's contents from disk overwriting any changes I've made. It's a nice way to reset in case I've gotten lost or just want to undo all my changes. This obviously doesn't take into account any kind of refactoring, I just want to nuke all changes to buffer. Not even closing and reopening a tab will work.
How do I do this with Intellij IDEA? I'm using Intellij IDEA Ultimate 13 and I've disabled any kind of auto save.
File > Synchronize (Ctrl+Alt+Y)
It will load the file from the file system. If you have unsaved changes, it will ask if you want to discard them.
⌥⌘Y - Synchronize for Mac users
What I do in a similar situation:
Simple - Ctrl+Z, Ctrl+Shift+Z many times to quickly navigate the editing history
VCS rollback - either for the whole file or for the area being edited (by clicking green areas on the left)
Local History. Well, yes, for you case it's granularity is not sufficient, so first might be an option
There is also an option to put a label into Local History if you need to rollback to a specific point in time.
For those who use autosave - it is being triggered when code editor loses focus. So doing Alt-Tab during long editing without compiling or running the code makes sense.
Open the file in another editor, make an insignificant change and save it. PHPStorm will ask you what to do because the file system and in memory copies of the file have diverged. Click "Load File System Changes".
Note, I was unable to use my undo history as it had become corrupt.
Since what I want isn't really possible I wrote an extension to do it for me:
https://github.com/btipling/DiskRead/
I'll add it to the Jetbrains plugin repository, it's called "DiskRead".
I wrote a blog post about how I created this if anyone is curious.

How to see a list of new non-version controlled files in IntelliJ

So I add new files to my project. At this point IntelliJ pops up a dialog asking me if I'd like to add these files to git/mercurial/svn etc.
I will always say No at this point because until I've fleshed the files out a little, perhaps got them to work with some context, perhaps decided to rename them, I'm not happy to add these new files to version control. Even if I can still rollback the 'add', I have to bare in mind the nuts and bolts of the underlying system. It's safer simply not to do it.
Now I'm ready to commit, I bring up the commit dialog box and the new files are nowhere to be found! If I go on a scouting expedition for them, I can add them individually from project files but this is error-prone.
How do I automatically get a list of all my new files which I previously delayed adding?
I found it, under the changes tab. I was looking for it only under the version control context menu from project files.

Storyboard will not save in Xcode

So, for an independent programming class I am working in Xcode. I am using stanford's iOS development course to create a calculator. However, recently, the item mainstoryboard.storyboard has been unable to save. I removed the entitlement, which allowed the other files to save, but the storyboard has still been unable to save. I looked around on the internet a good deal, and all I've been able to dig up is that the file might be corrupted. What do I do for this? Is there anything I'm missing? I don't know what kind of context I should be providing, so please tell me if there's something you want to see.
Try to clean your derived Data and try to clean and clean the build folder (you do this with alt+clean).
If you can't save the file again try to create a new project create a storyboard. If you can't create it on this way then you have to get to the Apple Dev Forums there is a bigger Problem then.
But anyway if you create Storyboard the App only runs on iOS 5+ Devices. Not the best option imho.
Clean all targets, close Xcode, reboot your mac. Then restart Xcode and create a new iPhoneStoryboard.storyboard and try again!
I've solved in this way this problem!
You can delete the storyboard by clicking on it in the left pane and press delete button. When prompted choose delete rather than removing reference only. Then use command+n and in the popped window, choose storyboard and name it as MainStoryboard (Xcode will add .storyboard for you).
Well, as it turns out, it was a problem with not having enough memory on the server. I've been looking at all the wrong things and can go back to working on my program. Thanks for all the help, too bad it was something else.