howto - remove CrLF from file
tr -d '\r' < myFileWithCrLF > m'tr' is a cli tool to translate or delete characters. Option '-d' is used to delete the evil carrage return '\r'. For more information take a look into the man page.
tr -d '\r' < myFileWithCrLF > m'tr' is a cli tool to translate or delete characters. Option '-d' is used to delete the evil carrage return '\r'. For more information take a look into the man page.
Following are my notes to sebastians bergmann presentation. The presentation was quite good (you can add "as usual" if you have seen sebastian bergmann more than once :-)).
#120825 sebastian bergmann
_general - he found at least 10, some ready for production - php core is threadsafe, problems are linked in extensions
_php - bytecode-based interpreter (interpiler) - php->php-bytecode->execution - "the" (official) implementation of the php language ->currently no official specification exists
phpruntime - token base - reads file character by character (scanner) - tries to figure out what to do with the words (parser) ->compilekit shows you how your code looks when it is compiled as bytecode - bytecode is is not optimized
_hiphop (only productive alternative) - tries to save power (cpu usage) and also speed up "some things" ->main reason is saving powercosts
sebastian knows two companies that are working with hiphop.
_hippyVm - php interpreter implemented using PyPy - faceboog sponsored study by 1 person and 2 months - get as close to php as possible - is it feasible to implement a php runtime using PyPy ->it is possible to implement 80 percent of php in 20 percent of the time
_DaVinci Machine Project (MLVM) - Multi-Language renaissance for the JVM - First-Class Architectural support for languages other than java - Facebook is working on (or at least thinking about) PHP on MLVM - Isn't the first (and not the last) php runtime implementation on jvm
_HappyJIT - academic investigation - PHP Interpreter implemented using PyPY - PHP->Zend Parser->PHP Bytecode->APC->BcParser->HappyJIT Bytecode - tries to optimize php bytecode - they have to use APC to get the bytecode
_php.js - php interpreter implemented in java script - same 80/20 rule
_phalanger - php->common intermediate language (CIL - microsoft .net code) - rewrite underway to leverage the dynamic language runtile (dlr) - started as reasearch projcet
_php compiler (phc) - academic investigation - php->native binary - static analysis: abstract syntax tree in xml
_rose (rosecompiler.org) - framework for source-to-source transformation and static analysis - strated at a military laboratory - php support based on phc - php->AST in PHP XML->
_Roadsend PHP - PHP->Native binary - No longer maintained
_Roadsend PHP: Raven (RPHP) (available on github) - Based on LLVM, C++ Runtime - Reuses code from phc
_Pipp - php->parrot bytecode - looks dead
_Quercus - Implementation of php 100% in java
_ibm webspheare smash (projectzero.org/php) - php->java bytecode - c-level php extensions can be used via the nava native interface - support for DBGp debugging protocol
_talaria runtime (talariatech.com) - currently in private beta - claims 10 times faster - clains support for real-world applications such as drupal and wordpress - currently no information in what they implement php
_trade-off - use all or some php features - time to implement vs runtime
//reflectionApi practical php reflection | how to use php reflection api | Die Reflection Api
If you are searching for an alternative of winmerge that works quit fine on linux and other operation systems, take a look to meld. This tool provides you the ability to make a well visual diff from two files (preferred text files ;-)). It supports tabs, so you can diff multiple files. It is fast and it looks like the memory footprint is quite nice and small. By the way, merge also supports the main version control systems git, svn etc.
You try something like
DELETE FROM `my_table` AS `t` WHERE ...and you get back an error. The problem is, that you are using an alias for your table and mysql can not figure out where to delete from. The solution/fix is simple
DELETE `t` FROM `my_table` AS `t` WHERE ....
I found the answere here