How to search and replace multiple lines in ZendStudio / Eclipse

  1. Edit the file
  2. Type [cmd + F]
  3. Among the Options, tick Regular expressions
  4. Type [esc]
  5. (Type and) select in the file the Replace with lines of text
  6. Type [cmd + F] [cmd + X] [tab] [cmd + V] [esc]
  7. (Type and) select in the file the Find lines of text
  8. Type [cmd + F] [tab] [down arrow] [down arrow] [enter]

Mac AppStore forces me to the Spanish site

  1. My ID is associated to the Spanish site because my credit card is from there.
  2. Now I’m in Holland but I do not speak Dutch.
  3. In the AppStore I can select the country, but not the language!!
  4. When I shop for something I want to read reviews about it.
  5. Spanish reviews are not available. (most of the times)
  6. I select the USA site.
  7. Changing country logs me out!!
  8. Now I have many reviews to browse. (I knew it!!)
  9. If I want to buy something, I click the Buy button.
  10. It wants me to login again, but…
  11. …it results in an error. (Translation: this Apple ID can only be used in the Spanish App Store)
  12. After accepting the error, I get redirected to the home of the Spanish site.
  13. Now I have to find that app again…

 

How to clean the quarantine flag

In a Mac, anything downloaded from the Internet, gets tagged with a security flag, the com.apple.quarantine flag. This is really useful because it later allows the user to authorize a program to run, and avoid unwanted possibly dangerous actions to be performed.

The flag is also applied to the contents of downloaded files, so when I downloaded the WordPress installation ZIP file, and extracted it to my htdocs folder, each and every WordPress file got flagged. Really no big problem, up to when I tried to edit files from within the WordPress admin panel. Not possible…

To get rid of the quarantine flag on all WordPress files at once I used these commands:

cd wordpress
xattr -r -d com.apple.quarantine ./*