Showing entries 9031 to 9040 of 44874
« 10 Newer Entries | 10 Older Entries »
How to get hours difference between two dates in Laravel

Whenever you need to get difference between two dates in hours in laravel 5 then you can get easily using Carbon Laravel by default provide Carbon class Carbon class throught you can calculate difference between two dates in hoursIn Following example you can see we have a two dates first to

How to add prefix in each key of PHP Array

Whenever you require to add one character or more to each and every key of array then most of the people would like prefer add key using for loop or foreach loop But we can do this without using any kind of loop using arraycombine arraykeys and arraymap through we can add prefix on each

Using git pre-commit hook for php and js syntax check

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. …

[Read more]
Associating git hooks with js syntax check

This is a followup article from my previous post.


Here we will be using git pre-commit to check for syntax error while committing in JavaScript files.

We will need nodejs in our system. Please check https://nodejs.org/en/ for downloading and install steps.

Note: I am using ubuntu 14.04 for this setup.

Steps to add pre-commit JavaScript syntax check with git:

1. Use npm to install jslint package globally in your system.

[Read more]
Planets9s - Download our whitepaper on automation & management of open source databases

Welcome to Planets9s, a weekly communication on all the latest resources and technologies that we create at Severalnines around automation and management of open source databases. I trust that these resources will be useful to you and would love to get your feedback on them.

Download our whitepaper on automation & management of open source databases

Whether you’re looking into ways to automate various aspects of administering your open source databases or to take better control of your data, this whitepaper covers what tools to build (or buy) for effective management, database deployment options beyond Chef or Puppet, important aspects of monitoring and managing open source database infrastructures and how ClusterControl enables a systematic approach to their operations.

Click here to …

[Read more]
How to get minimum key value of array in PHP

Sometimes you need to get minimum key value of your array but you try to get with loop and any function etc but in bellow example you can see we can get smallest key value from our php array by using min and arraykeys So lets try to use in your code this waystrongExamplestrongpr

How to store all record in laravel Cache

if you are work with large application which depend on large query and required large number of record at that time your application performence littel bit down that problem overcome with laravel Cache functionalityLaravel Cache provide to you store your large query in cache so your application

VividCortex Adds Query Analysis Features

VividCortex is all about optimizing your queries. Many of our users asked us to analyse their queries, searching for common errors and mistakes.

It's true that there are some excellent tools out there to perform the same tasks, such as pt-query-advisor from the great Percona Toolkit. But having this information available right in our web application is something we always wanted to do, too. And today we released that!

Today we added Query Analysis to our Profiler tool, so as of now, you will have less trouble finding your bad queries. Query Analysis analyzes queries with heuristics. It can find bad application patterns, SQL bugs, and all kinds of other obvious and subtle issues.

The notifications count in the Profiler now …

[Read more]
Measuring Docker IO overhead

This will be another post on using Percona Server via a Docker image. I want to follow up on my previous post regarding CPU/Network overhead in Docker “Measuring Percona Server Docker CPU/network overhead” by measuring  if there is any docker IO overhead on operations.

After running several tests, it appears (spoiler alert) that there is no Docker IO overhead. I still think it is useful to understand the different ways Docker can be used with data volumes, however. Docker’s philosophy is to provide ephemeral containers, but ephemeral does not work well for data – we do not want our data to disappear.

So, the first pattern is to create data inside a docker container. This …

[Read more]
Log Buffer #460: A Carnival of the Vanities for DBAs

This Log Buffer Edition covers blog posts from Oracle, SQL Server and MySQL for this week.

Oracle:

APEX shuttle item with one direction

Wondering about which tasks and work products are essential for your project?

Using Spark(Scala) and Oracle Big Data Lite VM for Barcode & QR Detection

Cloning 10.2.0.3 Oracle Home on fully patched 11.31 HP-UX hangs

An UNDO in a PDB in …

[Read more]
Showing entries 9031 to 9040 of 44874
« 10 Newer Entries | 10 Older Entries »