Wednesday, November 22, 2017

Error copying .CR2 files from memory card - "The finder can't complete the operation because some data in..."

I mostly copy all my photos to external drive and later have a look at them. The copying files from CF card of new Canon M-IV to my macbook pro in the Finder takes place using CMD+C in the card directory and pasting to my external drive using CMD+V. I have been using RAW files for many years, and doing this copying process many times I never had an issue. But recently, this error poped-in saying:
"The finder can't complete the operation because some data in can't be read or written. (Error code-36)" 
After this message, copying stops.

My thought was that some files got corrupted.so I shall still copy other files that are not. I started to copy files individually and realised that there are lot of files which cannot be copied.
While looking at those .CR2 files which cannot be copied, I realised their previews were totally dark or half of the photo with random patterns.  This observation brought an attention to the fact that none of the uncopyable files had previews, but has a normal large file size (20mb to 35mb) for RAW files from new DSLRs. This happened because there were many files and it takes sometimes for Finder to read the contents and possibly create previews for each file. For some reason, it could not copy these files without knowing the contents?!?!?
Anyways, what I planned was to make a copy of rest of the files without stopping in case of error.
My option was to use Terminal, and use -Rp option to copy the folder from CF card to external drive. Reading man page of cp,:

Using following command did the trick: 
cp -Rp "/Volumes/< source Volume name > / < source folder name >/" "/Volumes/< destination Volume name >/< destination folder name > /"

One easy way to easily put folder location would be to drag the corresponding folder while writing source and destination folder address, For example, type cp-Rp, space, drag source folder to Terminal, the press space, and drag and drop the destination folder. Press Enter.

This command starts the slow but good process of copying files with their original atributes and cotinue copying even if there is an error. After sometimes the command ended with error mentioning that two (named) files were not copied. I changed the command and tried this:
cp -Rp "/Volumes///                                                                                                                                                                " "/Volumes//"
cp -Rp "/Volumes/< source Volume name > / < source folder name >/ **" "/Volumes/< destination Volume name >/< destination folder name > /"

With that, I was able to copy all the files. Just out of curiosity, I tried to copy the whole folder to new location and it did copy it smoothly without error. This means that the time I was copying the files using terminal, Finder had managed to create a preview of all the files and thus copy went without error.

I hope that this process will help others as well. Let me know if you have similar experience and your solution for this issue,

Tuesday, November 10, 2015

Filezilla - pause and continue

Have been using Filezilla for so long, but one feature I was missing was to pause and resume upload feature. It was not missing but with just different name "Process Queue"

You can find this feature in the Transfer menu (in mac version):

To Pause: During the transfer, go to "Transfer" menu and uncheck "Process Queue"
To Resume: Go to "Transfer" menu and check the "Process Queue"

As I understood, this "resume" feature should work even after you quit Filezilla after the "pause" and later open the application.

Have you tried this feature before? Hopefully someone else find this useful as well.

Saturday, November 7, 2015

Mac's application (un)installation issue : APP DOES NOT WORK

There are situations when I have some application which was running completely fine and one just fine morning, it just doesn't work, for some reason. Sometimes the configuration file is corrupted, port misconfiguration, installation files corrupted and a list can go on.In any case, you try to make it work by changing settings, installing-uninstalling, restarting but still IT DOES NOT WORK. Recently I had this situation with one SIP app which I have been using for long and even though it had its glitches it worked after a while but not this time.

I tried all solution searching from different forums but nothing. The solution came only after a "complete and clean uninstall". If you didn't know what it is, don't blame yourself. Many of us, as being mac users, we fancy going to application folder and removing an application by CMD + DEL; and most of the time it works. But some applications do have special files and service files that do not get removed with simple removal of an application file. Sometimes cleaners, like what I use CCleaners, are good in finding residual files but not always. Anyways, there are several clean uninstallers out there, but for me this free "AppCleaner" did its task.



  • After installation from App-store and allowing permission to Application folder on my mac, it listed all the application installed. 
  • I clicked on the application which was having a trouble, it listed all folders and files related to selected application. 
  • I selected all files and press "Remove selected files" button. 
  • Then I went to "Applications" folder in  finder and remove the app with usual CMD+DEL (You can also remove the main application from pro-version of AppCleaner. )
  • The after secure empty trash, I restart the computer.
  • Then I reinstall my app, and it just started to work as it was before. 

System: OS X Yosemite, 10.10.5, MacBook Pro

Did this tip helped you in anyways? Do you have any other tips or similar application configuration solution, please leave it in comments below.

Thursday, January 29, 2015

PhoneGap App connect error

I hope this solves some of your problem too. If your PhoneGap app says that "Server is running" with given IP Address and port, chances are that the app is serving the files through it server well.


 I didn't need internet in my mobile device so I was working offline. However, my device when I try to connect through Phonegap Developer app in mobile device gives: "Error" .... "Time Out" message. Obviously some problem with connection? 

I connect back to mobile internet in device, but no, the problem still persists. Then I connect to my wifi network, and Problem Solved! Yes, I realised that the way it works is like a intranet. The reasons this happened was my computer and device were not in the same network, this does not have to be related to internet but just same network so that the IP address that Developer app is serving the files can be reached by device. Like simple server/client system, thats is only possible if they are in same network. Hopefully this solves few minutes of your wondering and pondering



Tuesday, July 12, 2011

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

This might happen when:
  • sometimes the computer is put for hibernate many times when the eclipse is still working or
  • resources gets called too early before the instance of workspace can be created, or
  • Eclipse did not shutdown correctly.

And eclipse might crash (freeze on splash) with messages like (check workspace\.metadata\.log)

!ENTRY org.eclipse.core.resources 2 10035 2011-07-12 00:32:14.925
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

It might need to starting everything with a new workspace and then set up all the projects again properly (takes hours to do). Some solutions that can be worth trying :
  1.  remove folder workspace\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes
    and restart Eclipse (Referenced here) . Good to rename rather than delete because some also metioned that there was some other problem after that.
  2.  Go to:
    \.metadata\.plugins\org.eclipse.core.resources and remove the file .snap

    Or remove file : .metadata\.plugins\org.eclipse.core.resources\.projects\<project>\.markers.snap . This is a large snapshot file which Eclipse constantly polls for some projects. (Referenced from here )
  3. The third solution (which worked for me) is  when workbench is restarted/quit, then its need to save the workspace, before existing the workbench then the above message comes.
    Overload the preWindowShellClose() method in your of WorkbenchWindowAdvisor. You can save the workspace by using ResourcesPlugin.getWorkspace().save(...) method. (Sited here)
    import org.eclipse.core.resources.ResourcesPlugin;
    import org.eclipse.core.runtime.CoreException;
    import org.eclipse.ui.application.WorkbenchWindowAdvisor;

    public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {

       // other methods...

       @Override
       public boolean preWindowShellClose() {
          try {
             // save the full workspace before quit
             ResourcesPlugin.getWorkspace().save(true, null);
          } catch (final CoreException e) {
             // log exception, if required
          }

          return true;
       }

    }

Thursday, September 23, 2010

Another day of "sigh"

This error/exception belongs to wrong Run Configurations in the project.:



osgi> !SESSION 2010-09-23 17:05:21.083 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product etdeltatm.rcp.ui.product
Command-line arguments: -product etdeltatm.rcp.ui.product -data C:\Documents and Settings\bkhanal\workspace/../runtime-etdeltatm.rcp.ui.product -dev file:C:/Documents and Settings/bkhanal/workspace/.metadata/.plugins/org.eclipse.pde.core/etdeltatm.rcp.ui.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console

!ENTRY org.eclipse.equinox.app 0 0 2010-09-23 17:05:22.614
!MESSAGE Product etdeltatm.rcp.ui.product could not be found.


!ENTRY org.eclipse.osgi 4 0 2010-09-23 17:05:22.661
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:236)

My setting was set with an product mode (Program to run:) , and it thus could not start. Changing the Program to run as Run as application and setting the "plugin" tabs to the default mode solved and saved the rest of day. I thought this was worth mentioning, as it was taking almost 3-4 hours of my time and googling the problems, even though there was no problem - just a mis configurations, sighhhh indeed.

Wednesday, September 22, 2010

RCP Resources: continued...

Here I will try to keep some helpful resources for the RCP development:

  • http://obscuredclarity.blogspot.com/2008/11/eclipse-rcp-tutorial-table-of-contents.html
  • http://callocorg.wordpress.com/2010/07/12/adding-eclipse-rcp-views-declaratively-into-ifolderlayout/
  • http://wiki.eclipse.org/index.php/Rich_Client_Platform
  • http://www.eclipse.org/articles/viewArticle/ViewArticle2.html
  • http://weblogs.java.net/blog/scottschram/archive/2005/03/nasa_explores_e.html
  • http://www.eclipse.org/eclipse/platform-text/development/rcp/examples/index.html
  • http://wiki.eclipse.org/Eclipse_RCP_How-to
  • http://wiki.eclipse.org/RCP_Custom_Look_and_Feel
  • http://www.eclipse.org/articles/Article-Forms/article.html
  • http://www.eclipse.org/articles/Article-Forms/article.html
  • http://help.eclipse.org/helios/index.jsp
  • http://sourceforge.net/projects/metaleclipse/
  • http://eclipse.org/community/rcp.php
  • http://www.eclipsezone.com/eclipse/forums/t53312.html
  • http://www.eclipse.org/swt/snippets/ - nice and simple examples of the tools we need.