This is a followup from my two previous posts on php and js git pre-commit syntax check where I had
mentioned how to check for php and js syntax independently using
pre-commit with git.
But what if we wanted to check for both php and js syntax at same
time while committing. So, I used the scripts used for both and
combined them. …
MySQL 5.6 includes support for microsecode timestamp resolution, which is a
great new feature.
To get the current timestamp in MySQL 5.5 you could use NOW(),
SYSDATE() or CURRENT_TIMESTAMP.
mysql_5.5> SELECT NOW(),SYSDATE(),CURRENT_TIMESTAMP;
+---------------------+---------------------+---------------------+
| NOW() | SYSDATE() | CURRENT_TIMESTAMP |
+---------------------+---------------------+---------------------+
| 2013-10-26 15:46:24 | 2013-10-26 15:46:24 | 2013-10-26 15:46:24 |
+---------------------+---------------------+---------------------+
1 row in set (0.01 sec)
If we run the same statement in MySQL 5.6 the output is the same.
This is great for compatibility, but what if we want those
microsecond timestamps?
…[Read more]
After speaking about the topic the Developer Week 2013 in
Nürnberg this week, due to some scheduling coincide I repeated it
today for our codecentric "Dev-Friday" in which internal or external speakers
present some topic to the whole company.
For a while we have been recording these for colleagues on
vacation or otherwise occupied during the talk to watch it later.
Several of them are available on codecentric's YouTube channel publicly. As of a
few moments ago, so is my "Man in the Middle? – No, thank
you!" talk on the possibility of – and countermeasures
against – man in the middle attacks against SSL
connections.
For your convenience, here is the video:
The …
Fresh on the codecentric blog is my new post about using SOAP web services from an iOS client application.
It features a short comparison of the current state of frameworks and tools with the Java world, and then focusses on the sudzc open source library that takes a very interesting approach in generating web service client artifacts by transforming the service's WSDL into Objective-C classes using XSL transformations.
The post is available in German as well.
A short while ago I posted an article on the codecentric blog about why good metrics can be, but need not be equal to good software quality. As I wrote earlier, I will add links to this blog whenever I post something of interest to the company site.
The post is available in both English and German at http://blog.codecentric.de/en/2011/10/why-good-metrics-values-do-not-equal-good-quality.
I chatted today about VMware's Cloud Foundry with Roger Bodamer, the EVP of products and technology at 10Gen. 10Gen's MongoDB is one of three back-ends (along with MySQL and Redis) supported from the start by Cloud Foundry.
If I understand Cloud Foundry and VMware's declared "Open PaaS" strategy, it should fill a gap in services. Suppose you are a developer who wants to loosen the bonds between your programs and the hardware they run on, for the sake of flexibility, fast ramp-up, or cost savings. Your choices are:
An IaaS (Infrastructure as a Service) product, which hands you an emulation of bare metal where you run an appliance (which you may need to build up yourself) combining an operating system, application, and related services such as DNS, firewall, and a …
[Read more]In this post I’m going to talk about how TokuDB’s implementation of auto increment works, and contrast it to the behavior of MyISAM and InnoDB. We feel that the TokuDB behavior is easier to understand, more standard-compliant and offers higher performance (especially when implemented with Fractal Tree indexes).
In TokuDB, each table can have an auto-increment column. That column can be used as any part of a key, but it doesn’t have to be part of any key. The value produced by auto incrementing is always greater than the previous maximum value for that column. There are some cases where auto-incremented values are skipped, such as when a transaction aborts, which “uses up” auto-incremented values.
This behavior is close to that required for SQL:2003 (see SQL:2003 at wikipedia), which specifies that each table provides one unnamed sequence which behaves essentially in the way we implemented …
[Read more]
I've known about the INFORMATION_SCHEMA
views (or
system tables) in SQL Server for a while, but I just leared
recently that they are actually part of the SQL-92 standard and
supported on other database platforms.
The INFORMATION_SCHEMA
views provide meta data
information about the tables, columns, and other parts of your
database. Because the structure of these tables are standardized
you can write SQL statements that work on various database
platforms.
For example suppose you want to return a resultset with a list of
all columns in a table called employees
SELECT table_name, column_name, is_nullable, data_type, character_maximum_length FROM INFORMATION_SCHEMA.Columns WHERE table_name = 'employees'
Quite a handy feature, but it's hard to find what versions the of various database platforms started supporting this feature, here's a quick list:
- Microsoft …