Converting DateTime.Ticks into a Unix timestamp in PHP

I needed a way to convert the number of ticks from the DateTime.Ticks property in .NET into a Unix timestamp in PHP. So I wrote up this solution that makes this possible. The solution works by taking the number of ticks that I want to convert into a Unix timestamp and subtracting it with the number of ticks of the Unix epoch. To figure out the number of ticks of the Unix epoch, I used C# (it is possible to do this in a different ....

November 30, 2010

How to Revert Your SVN Repository on Assembla

There is no simple way to revert your repository to a previous revision on Assembla. However, a reversion is possible by following these steps. First, export the SVN repository in your space. This can be done under the Import/Export section of your repository. It’ll take a minute for the dump to be created. Once that has completed, download the repository dump. Then, extract the contents of the ZIP file to a temporary directory, then run the following commands in the temporary directory:...

July 25, 2010