Tech giant Apple has acquired Tuplejump, a Hyderabad based machine learning startup. Tuplejump, with its unique software, helps companies to store, process and visualize heavy or bulk data. It relies on Apache Lucene full-text search software. Apple was interested in ‘FiloDB’, a project which Tuplejump was building to efficently apply machine learning concepts and analytics to complex data.
Monthly Archives: September 2016
Yahoo data breach: 500mn accounts hacked
Tech giant Yahoo on Thursday confirmed that a massive attack on its network in 2014, Continue reading Yahoo data breach: 500mn accounts hacked
Google launches WhatsApp’s rival – Allo
Google has launched a new smart messaging app ‘Allo’ for Android and iOS. Continue reading Google launches WhatsApp’s rival – Allo
Google’s Project Soli is the most advanced technology ever!
Google’s Project Soli is something that you have never seen before. imagine operating Continue reading Google’s Project Soli is the most advanced technology ever!
String to Hex & Hex to String Conversion in PHP
Hi Guys I just gone through a situation need to convert string to Hex but unfortunatly not found any Pre-build function in PHP but don’t worry today I would like to share you a function which solve the purpose in either way
String to Hex Function
/** * CodeZone.in * Author: Dineshkumar * Contact : hi@codezone.in */ function string2hex($string){ $hex = ''; for ($i=0; $i<strlen($string); $i++){ $ord = ord($string[$i]); $hexCode = dechex($ord); $hex .= substr('0'.$hexCode, -2); } return strToUpper($hex); }
Hex to String Function
/** * CodeZone.in * Author: Dineshkumar * Contact : hi@codezone.in */ function hex2string($hex){ $string=''; for ($i=0; $i < strlen($hex)-1; $i+=2){ $string .= chr(hexdec($hex[$i].$hex[$i+1])); } return $string; }
Usage:
Include function in your PHP script and call them with required parameters to get your converted output.
Happy Coding….