Internet Bandaid   [RSS Feed]

Archive for December, 2010

Can’t delete time machine – operation not permitted

without comments

I recently had a lot of trouble deleting time machine files off of an external HD that once ran the mac osx software.   Everytime I tried to delete something, I got operation not permitted error, even when I ran as sudo commands or logged in as su.

Someone wrote a solution to the problem, which I repost here:

4 – The Nightmare Scenario

If all of the above methods fail, the offending files my have the System Immutable flag set. Such files are locked Fort Knox style. The System Immutable flag cannot be changed by root. Only by super-root – the super-duper-user. What!?!

When your Mac is up and running in multi-user mode (the normal operating mode) it is running at level 1. Some operations even root can’t do at level 1, such as turn off the System Immutable flag. You must run at level 0. Switching into single user mode will allow one to run at level 0 and thus change the System Immutable flag.

Do this.

Close all applications and issue the command:

% sudo shutdown +0 "Bye bye"

to shutdown multi-user mode and enter single user mode. You will lose all services such as network connectivity while in single user mode. Alternatively, you can reboot your Mac, then startup with both the Command (Apple) key and the ‘s’ key held down.

% cd /Users/your-name-here/.Trash
% chflags -R noschg *

Then hit control-d to return to multi-user mode. You should now be able to delete the trash with the Finder, or by reapplying the steps above.

Note: when you enter single user mode, type:

% whoami

if the answer is not root type:

% su

and type control-d twice when you exit.

Other Trashes

On some occasions, trash is placed at the root level of your system disc or another partition or drive. The directory is:

/.Trashes/501

and

/Volumes/disc-name-here/.Trashes/501

See if they are empty by listing them.

% sudo ls -al /.Trashes/501
...

’501′ is the User ID of the user who did the trashing.

% sudo ls -al /.Trashes

may reveal several such 50x directories.

You can check your own User ID (uid) by issuing the command:

% id

and substitute this if it is not 501.

You can then apply all the techniques given for ~/.Trash to /.Trashes/501.

And Finally

If you still have problems, and you have re-applied the above steps as necessary, you probably have a corrupt file system.

Firstly, enter single user mode and issue:

% fsck

and answer the prompts, or else have ‘fsck’ run automatically with:

% fsck -y

You can also try commercial disc repair programs.

Happy trashing, and

Enjoy :-)

Written by John Lai

December 28th, 2010 at 7:08 pm

Rotate video – Linux

without comments

I accidentally recorded some videos on my ipod upside down. Here’s how you can rotate them 180 degrees using a program called avidemux on ubuntu.

  1. install avidemux by opening up terminal, and typing “sudo apt-get install avidemux”
  2. open avidemux
  3. open the video file you want to fix
  4. go to left hand side where it says “Video” and select a rendering format from the drop down (I arbitrarily chose mpeg-4 asp xvid)
  5. select filters button
  6. select “Rotate” from the middle panel and select your angle
  7. press close
  8. save your video and it will render a new rotated video for you

Written by John Lai

December 15th, 2010 at 10:02 pm

Posted in Uncategorized

Groupon Clone – deal of the day

without comments

We all know how popular Groupon is.   For those of you looking for a clone of the application, you can check out the following:

http://groupscript.net - which costs about $400

http://agriya.com – not sure about the costs

If you’re thinking about starting a deal of the day web business, this would be a cost effective starting point to see if your idea will fly.

Written by John Lai

December 13th, 2010 at 2:05 pm

Posted in Uncategorized

Integrating Post Affiliate Pro with Magento

without comments

I didn’t use the magento connect feature to integrate Post Affiliate Pro.  Instead, I followed these steps:

  1. I signed up with a hosting plan with Post Affiliate Pro here: http://www.qualityunit.com/postaffiliatepro/hosting/
  2. I downloaded a free Post Affiliate Pro module from here: http://www.priacta.com/code/magento-affiliate/magento-post-affiliate-pro.php
  3. I unzipped the Post Affiliate Pro module to the root directory my magento website.
  4. I logged into my magento CMS.
  5. I went to System>Cache Management and pressed Flush Magento Cache.
  6. I went to System>Permissions>Roles and added a new Role called Post Affiliate Pro. I made sure the Role Resources>Resource Access was set to “All”. I pressed save.
  7. I went to System>Permissions>Users and assigned the Post Affiliate Pro role to myself and every other administrator.
  8. I went to System>Configuration. On the left hand rail, I went to Sales>Post Affiliate Pro. I filled out the Username, Password and Domain Name with the relevant values as given in the confirmation email that Post Affiliate Pro gave me when I signed up. I saved the settings.
  9. I logged out of the CMS and logged back in.
  10. Now I can go to Sales>Affiliate Orders and use the page.

Written by John Lai

December 12th, 2010 at 8:15 pm

Posted in Uncategorized

Tagged with ,

Response decoding failed: not array. Received text:

without comments

I got this error while integrating Post Affiliate Pro with Magento:

Response decoding failed: not array. Received text:

I realized the problem was because I didn’t complete my integration.  So I re-installed magento and then followed these steps to integrate Post Affiliate Pro.

  1. I signed up with a hosting plan with Post Affiliate Pro here: http://www.qualityunit.com/postaffiliatepro/hosting/
  2. I downloaded a free Post Affiliate Pro module from here: http://www.priacta.com/code/magento-affiliate/magento-post-affiliate-pro.php
  3. I unzipped the Post Affiliate Pro module to the root directory my magento website.
  4. I logged into my magento CMS.
  5. I went to System>Cache Management and pressed Flush Magento Cache.
  6. I went to System>Permissions>Roles and added a new Role called Post Affiliate Pro.  I made sure the Role Resources>Resource Access was set to “All”. I pressed save.
  7. I went to System>Permissions>Users and assigned the Post Affiliate Pro role to myself and every other administrator.
  8. I went to System>Configuration.  On the left hand rail, I went to Sales>Post Affiliate Pro.  I filled out the Username, Password and Domain Name with the relevant values as given in the confirmation email that Post Affiliate Pro gave me when I signed up.  I saved the settings.
  9. I logged out of the CMS and logged back in.
  10. Now I can go to Sales>Affiliate Orders and use the page.

Written by John Lai

December 12th, 2010 at 8:10 pm

Posted in Uncategorized

Tagged with ,