Where do I find the SmartGit trash? - smartgit

When deleting untracked files in SmartGit (on Windows) you have to option to actually delete or "Move to trash". Often I use "Move to trash" when I am not 100% sure about deleting something.
I just did "move stuff to trash" which I now need back, but where the **** do I find that trash?
Even a Google search on "SmartGit trash" or "SmartGit recycle bin" does not bring me anywhere.
I looked in the Windows Trashbin, I searched in the AppData dirs... not a clue.
Does anyone have a clue?

After some debugging and with a little help from SmartGit's support I found out that the problem is a Windows-problem (not a SmartGit problem) and it is by design.
If a Git-repository is on a local disk the Move To Trash functionality works like expected: it moves the file to the Windows trashbin.
If though - as in my case - the repository is on any mounted disk (network or VM) it doesn't work.
Then I found out that if I simply create a file on such a disk, navigate to it in Windows Explorer and delete it from there, Windows asks if I want to delete it permanently (it is never moved to the trashbin).
So case closed.

Related

Any ways to remove a corruped x-wav file?

So, i decided to download Terraria's Dungeon Spirit death sound for a GD texture pack, i was dumb enough to use windows renaming feature to change the file extension from .x-wav to .ogg. Now the file is corrupted, when i try to rename it or the folder its residing in, Windows Explorer crashes. When i try to delete it, the deletion message pops up but never gets anywhere.
Ive tried sfc /scannow, nothing found. Windows Defender scanning, antimalware service executable makes my cpu a frying pan and Windows Defender lags out when it gets to the file. Deleting i mentioned earlier. Renaming (includes back to its original format) i also mentioned earlier. Shredding the file crashes the shredder. Situation is looking pretty hopeless.

Cannot delete a link (Windows 7)

I have a file here on an NTFS which is not owned by me. It's a .LNK file and points to a file that does no longer exist. Right clicking on the file and opening the security tab doesn't work since the actual file doesn't exist any more. I tried with the so called "Take Ownership" registry hack which is available as a download from various sites. But at the moment I have even the problem of getting this "take Ownership" tool working under Windows 7. It simply doesn't show up in the explorer popup menu as it is supposed to do.
I was about to delete my post but now I decided to share what I did. First I created a physical file in the location where the .LNK was pointing to.
This allowed me to right click and select the security tab. Don't ask me what I actually did now. Somehow I managed to enable read/write/delete for Everone and finally I was able to delete the file.
The Explorer pop up menu item "Take Ownership" doesn't show on every file or folder when you hat the registry hack installed. It didn't show on this orphaned link nor did it when the physical file it was pointing to had been established (faked). That must be a peculiarity of "Take Ownership" by itself.

How do you uninstall / remove MarkLogic 7 on MacOS X?

Does anyone know how to completely remove MarkLogic 7 on MacOSX?
I've read their documentation which says:
To entirely remove MarkLogic, remove the following directories:
~/Library/MarkLogic
~/Library/Application Support/MarkLogic
~/Library/StartupItems/MarkLogic
~/Library/PreferencePanes/MarkLogic.prefPane
But I don't have those folders. I have no idea where it's been installed!
Then it says:
To make Mac OS X completely forget it ever had a MarkLogic installation, run the following command from a terminal window:
sudo pkgutil --forget com.marklogic.server
But that didn't seem to do anything. I still have it in my System Preferences.
My guess is that when you say you don't have those folders, you mean that you don't see ~/Library when you open Finder (please comment if that's not the case). You can make the Library directory appear by:
Open Finder
Click on your home directory
Click the Settings icon (gear)
Click Show View Options
Check the Show Library Folder option
Now you should be able to see the Library folder and you'll be able to remove those directories.
Note: I don't know your background, so forgive me if this is too basic, but the ~/Library directory contains a bunch of stuff that OS X uses to make your system run. It's hidden because making mistakes in there can cause problems that are tricky to fix. If the contents of ~/Library are not familiar to you, you might want to un-check that option when you're done.
Dave is probably right. But just in case, you can use that prefpane to stop MarkLogic, then use the Error Log button to open the log. Start MarkLogic and the first new line in the log will tell you where it is:
Notice: Starting MarkLogic Server 7.0-3 x86_64 in /Users/${USER}/Library/MarkLogic
with data in /Users/${USER}/Library/Application Support/MarkLogic/Data
Also, don't delete ~/Library/PreferencePanes/MarkLogic.prefPane, but remove the preference pane by right-clicking on it in System Preferences. It will then be deleted, but you can't remove its icon from System Preferences if you have deleted the preference pane.

Lost code lines when Notepad++ crashed

I was working on a .js file this morning on Notepad++, as usual, when the program just crashed. So I ended it, and re-opened it to see that all my code lines in my .js file, had disappeared, and now all I have left is the file with a size of 0kb because there's nothing left in it. How the hell is that even possible ? It erased everything I typed and saved the file as if there's nothing in it.
Do you know a way to get my code back ? Or did something like this ever happened to someone ? :/ I'm kinda worried because there was a lot of work there and I don't feel like re-typing it all...
When that option is enabled (and it is by default), Notepad++ keeps a backup copy of files you edit.
You can find the backups in the directory %APPDATA%\Notepad++\backup under the format filename#datetime.
I lost four unsaved files when my Notepad++ crashed, I searched through net and found another way to retrieve unsaved files other than backup folder
C:\Users\{username}\AppData\Roaming\Notepad++\backup
Hope it can help others who face the same problem as me. You can try to locate the dump files at
C:\Users\{username}\AppData\Local\Temp\N++RECOV
There will be .dump file inside, this is where I found my unsaved files. You can open the dump file with Notepad++, and see your unsaved works.
This has happened to me a few times lately and I've found a few solutions that make it possible to recover the lost code.
For Windows 7 and probably other modern Windows versions:
Find the file in File Explorer. The size will be 0KB. Right click on it and then choose Properties from the context menu.
Choose the Previous Versions tab. There's a good chance you will find a fairly recent version saved during the latest Restore point. If it's a bit old, it's still probably better than the current 0KB.
Click the Restore button.
My personal optimal solution:
Since this happened to me a few times and the Windows Previous Version was not always up to date, I looked for a different solution that could always give me the latest, most up-to-date version before the 0KB crash.
I discovered that I already had the solution installed on my computer. I have a SugarSync account that always backs up my work files to the cloud. The great part of the service is that SugarSync always keeps the last 5 versions in the cloud, so while the current version will be 0KB, you can download the next to last version and update your file on your computer.
If you have some other backup program, you can check if that service also keeps different versions that you can recover.
I've used notepad++ without any backup for years. One day this happen to me, too.
Here is what I've found as possible solutions:
http://buffernow.com/notepad-plus-crash-recover-your-lost-file/
(similar to Indrajit answer) - not much help. I didn't find my file there.
I have recovered my file one week ago as per answer of Hvck
Same problem here. Same answers:
https://superuser.com/questions/390204/how-to-restore-a-previous-version-of-file-in-notepad
One lesson learned: Use the backup!
use a plugin:
http://www.ilovefreesoftware.com/12/windows/two-plugins-auto-save-files-notepad-auto-save-autosave2.html
use notepad++ backup
http://allinworld99.blogspot.ca/2015/01/notepad-backup-files.html
** UPDATE **
It happened to me again!!! Another way to recover my file: View source on my browser and resave the file to other location. If you are lucky enough to have the file loaded in your browser :) It worked for me for a css file and for a js file.
Comparing the files: what N++ backed-up and the file from browser and files are matching. OMG!
GO to Taskbar click and run %APPDATA%, click to Notepad++ click to backup.
Your files saved by filename.extensionname#year-month-date_time
I know it's too late to answer this, but maybe my answer will help others.
I've encountered the same problem recently. Then it became regular. I did not find a solution to the problem itself, plus it may be caused by many different reasons, so probably no universal solution exists.
However, there is a way to save your files while notepad++ is not closed. Even if the backups folder is empty.
First of all, do not close notepad++. Open a taskmanager, find the notepad++ process and locate the Dump or Create dump file option. Click it. This will create a whole memory dump of the process. This dump will contain the documents you had opened. However you may need to find this data, plus it may be in a different encoding. I guess it is in UTF8 most of the time, but I am not completely sure.
The dump file can be examined with simple programs like notepad++ itself or with a hex editor.
Notepad doesn't auto-save its open file so unfortunately you have lost your work.
On next time you can use Notepad++ it retrieves file automatically
Refer this link may it help you Notepad++ recovery
I tried all the above solutions but nothing was working for me.
But luckily I have opened files one day earlier in eclipse as well. Eclipse and all other IDEs maintain a cache of all the files. You can get the copy of the file from that cache. To get copy from the eclipse.
Right Click on the file Name
Go to Replace With - Previous from the Local History
This answer applies to more recent versions of NotePad++:
Go to the folder of the file, see if there is a subfolder called nppBackup. Recently I've found sometimes the backup wasn't created in %AppData%/Notepad++/backup but it always seems to get created here, with the following file name format [original file name][date stamp]_[time stamp].bak

Cannot delete, a file with that name may already exist

This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-content.
Now when I try to delete this file I can get two errors. I've tried in Windowx Explorer (FTP) and the Web Control Panel's File Manager. Here's some error shots:
As you can see my File manager thinks the file is a Symbolic Link. While it scares me that
my web server is host to an obviously religoious artifact I'm also heavily confused by the situation.
I've tried renaming the file.
I've refreshed the FTP view.
I've tried moving the file to another dir (which worked, no success on deletion though).
I've tried editing the file and then deletion.
And I'm at a loss. Is there a special way to delete SymLinks? I've never heard of them, until now.
edit
Oho Windows you really are a magician of sorts. I decided to take a look at my FTP via command prompt and guess what? The file doesn't exist. Whether ftp ignores symlinks I don't know but I'm about to give up :P
First of all, try emailing your webhost either for SSH-access or to remove the symlink for you.
If you get SSH-access, use:
unlink index.php
Or if neither works: Create a PHP file there (for instance remove.php) that contains:
<?php unlink("./index.php") ?>
Then open that file in your browser, afterwards remove the remove.php file.

Resources