Posts tagged Windows

General Category

Git – Revert Multiple Locally Changed Files

2

I use a windoze box at home and by default it uses the lame microsoft line endings vs linux line endings, which can wreck havoc on bash scripts. So I recently ran a command similar to the following:

find /path/to/files -type f -exec dos2unix {} \;

Much to my dismay, I found that it also converted binary files (.pngs, .gifs, etc), even though, according to the docs, it’s supposed to skip binary files by default. So I had to revert back all the binary files which were converted. Rather than do them one by one I tested and issued the following command (your mileage may vary):

gstatus | fgrep -is png | git checkout -- $(awk '{ print $3 }')

Zend Studio 5.5 on Windows 7

31

If you are reading this, then you have Windows 7 installed and gave Zend Studio 7.x the old college try, and found it to be quite cumbersome and annoying. After trying to adapt to Zend with Eclipse you opted to go back to Zend Studio 5.5 but found that it doesn’t work ‘out of the box’ on Windows 7. If you googled ‘Zend 5.5 Windows 7′ you probably found a response on Zend’s Forums where a savior post is located. At first read it is a bit confusing so I am going to attempt to make it a bit more clear here. Make no mistake, save for a few minor changes, the original author djvirgen (appended to by phliplip), are the true geniuses behind the work. You can find the original post @ http://www.zend.com/forums/index.php?t=msg&th=7855#21175

  1. Download and install the latest JRE for Windows 7: http://java.com/en/download/manual.jsp
  2. Download and install WinRAR (ensure you install with Explorer shell extension checked): http://rarlabs.com
  3. Download Zend Studio 5.5.1 (you will need Zend account): http://www.zend.com/products/studio/downloads-prev
  4. Extract Zend Studio 5.5.1
  5. Click into ZendStudio-5_5_1 directory after extraction
  6. Right mouse click on ZendStudio-5_5_1 executable, you will then see an option to ‘extract to (thanks to winrar shell extension), click it.
  7. After Zend Studio 5.5.1 has been extracted click into ZendStudio-5_5_1/Windows/resource
  8. You should see a dir named ‘jre’, rename this to ‘jre_came_with_zend’
  9. Copy ‘jre6′ from your Java install directory (typically C:\Program Files (x86)\Java) into the Zend Studio extracted directory (ZendStudio-5_5_1\Windows\resource)
  10. Rename ‘jre6′ to ‘jre’
  11. Click up one dir so you are in ZendStudio-5_5_1/ and click on ZendStudio-5_5_1.exe
  12. You will instantly know if you did not do the above steps correctly was windows 7 will inform you that you are attempting to run an app incompatible with Aero (this is because the jre packaged with zend is old, if so re-read above steps and try again)
  13. If everything went fine, you should now be faced with a message “Java Runtime Environment Not Found.” Don’t worry about it, install zend as you normally would.
  14. Zend Studio install should be finished, do not launch zend yet, we aren’t quite done.
  15. Copy the ‘jre_came_with_zend’ directory from the original extraction folder and paste it into your Zend install directory (the one you selected during install, default is: c:\Program Files (x86)\Zend\ZendStudio-5.5.1
  16. Rename the current ‘jre’ directory found in the Zend install directory to ‘jre_installed_with_zend’
  17. Rename the ‘jre_came_with_zend’ to ‘jre’
  18. Click into bin directory
  19. Right mouse click ZDE.exe
  20. Click properties
  21. Click the compatibility tab
  22. Click checkmark for ‘Compatibility Mode’ and select ‘Windows Vista’ from the dropdown menu
  23. Click apply
  24. Click ok
  25. Now, with any luck you can double click on the ZDE.exe file and Zend should start normally.

Took a few hours to get all this down, hope this helps anyone else out there wanting to use Zend Studio 5.5.x vs the new Zend /w Eclipse crap. Good luck!

Go to Top