Slopjong
A geek discovering the World, Tech & Science
Latest Posts
Programming
Mac
Linux
WordPress
Hardware
Howtos
Nerd Trash
Programming Archive
0
Convert accent characters to standard ASCII
Posted on September 3, 2015
Example: http://de.wikipedia.org/wiki/%C5%A0 utf_decode can’t handle that character because what that function does is converting utf-8 characters to latin-1.
Continue Reading
9
Set global constants and variables in AngularJs
Posted on September 1, 2015
Using the root scope // app.js angular.module('myApp', [ 'ngCookies', 'ngResource', 'ngSanitize', [...]
Continue Reading
0
How to output a debugging message in MySQL?
Posted on August 1, 2015
select concat ("Updated ", row_count(), " rows") as ''; #DATE(DATE_SUB(NOW(), INTERVAL ROUND(RAND(1)*10) DAY)); select concat ("Random date: ", DATE(DATE_SUB(NOW(), INTERVAL ROUND(RAND(1)*100) DAY))) as ''; Examples Output a random date: select addtime(concat_ws(' ','1964-12-25' + interval rand()*20000 [...]
Continue Reading
2
How to use unix domain sockets with the Zend Framework
Posted on April 29, 2015
Using the client $client = new Client(); $client->setUri('unix:///run/docker.sock:/v1.13/version'); $client->setOptions(array( 'maxredirects' => 0, 'timeout' => 30 )); $response = $client->send(); echo $response->getContent(); {"ApiVersion":"1.14","Arch":"amd64","GitCommit":"fa7b24f","GoVersion":"go1.3.1","KernelVersion":"3.16.1-1-ARCH","Os":"linux","Version":"1.2.0"} Using the socket $uri = new [...]
Continue Reading
0
Jenkins: XUnitPublisher aborted due to exception. The types section is required.
Posted on October 15, 2014
Jenkins is an extendable open source continuous integration (CI) server, developed by Sun Microsystems and also known as the former Hudson project. A CI toolchain helps you automate repetitive tasks [...]
Continue Reading
Next Page »