Showing entries 8251 to 8260 of 44047
« 10 Newer Entries | 10 Older Entries »
How to get last inserted id in Laravel

Its very common need to get last insert id in programming field if you are working on laravel framework and you want to fetch last created id i mean max id then you do easilylaravel provide method to get last inserted idIf you are working with DBtable then you have to use insertGetId fo

MySQL Community Awards 2016: Call for Nominations!

The 2016 MySQL Community Awards event will take place, as usual, in Santa Clara, during the Percona Live Data Performance Conference, April 2016.

The MySQL Community Awards is a community based initiative. The idea is to publicly recognize contributors to the MySQL ecosystem. The entire process of discussing, voting and awarding is controlled by an independent group of community members, typically based of past winners or their representatives, as well as known contributors.

It is a self-appointed, self-declared, self-making-up-the-rules-as-it-goes committee. It is also very aware of the importance of the community; a no-nonsense, non-political, adhering to tradition, self criticizing committee.

The Call for Nominations is open. We are seeking the community’s assistance in nominating candidates in the following categories:

MySQL Community Awards: Community Contributor of the …

[Read more]
Associating git hooks with php syntax check

Many a times we have faced this problem that when we commit something and it breaks something on the server due to some syntax error.
I know that these can be caught by IDEs and good editors, but sometimes there might be an syntax error introduced after a code merge conflict resolution and commit.
To address this, we can use git pre-commit hooks to check for any syntax errors in the to be committed files.

There is a good script I found which does this at https://github.com/ReekenX/phpcheck-git

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

(Issue …

[Read more]
Finding and deleting orphaned rows in MySQL

If you store data with a parent-child relationship in MySQL tables, then you may want to identify and/or delete orphaned rows from the child table. An orphaned row is defined as a child row that references a non-existant parent row. If you enforce the parent-child relationship with a foreign key constraint on the child table then orphans are less likely to occur, but you can still end up with orphans; for example if a user disables foreign_key_checks in a session and deletes a parent row. If you choose not to create foreign keys in your database in order to avoid the performance overhead, then you are at higher risk of having orphaned rows.

Finding orphaned rows

Finding orphaned rows is fairly simple either using an exclusion join or a NOT EXISTS query.

Using the sakila database, here are two queries to …

[Read more]
Measuring Percona Server Docker CPU/network overhead

Now that we have our Percona Server Docker images, I wanted to measure the performance overhead when we run the database in the container. Since Docker promises to use a lightweight container, in theory there should be very light overhead. We need to verify that claim, however. In this post I will show the numbers for CPU and network intensive workloads, and later I will take a look at IO.

For the CPU-bound load, I will use a sysbench OLTP read-only workload with data fitting into memory (so there is no IO performed, and the execution path only goes through the network and CPU).

My server is 24 cores (including hyper-threads), with Intel(R) Xeon(R) CPU E5-2643 v2 @ …

[Read more]
MySQL Cluster 7.5 — the First Milestone Is Here!

I’m happy to announce that the first Development Milestone Release (DMR) of MySQL Cluster 7.5 is now available!

Some highlights of this first milestone release of MySQL Cluster 7.5 are:

[Read more]
MariaDB JIRA is moving

The MariaDB JIRA instance that currently is in use for project and issue tracking will change. The current instance is hosted in Atlassian’s cloud and it has worked well, but we have hit the maximum user limit of 2000 users. It’s fantastic to see how many of you actually report bugs and other issues in the MariaDB […]

The post MariaDB JIRA is moving appeared first on MariaDB.org.

Select only one checkbox at a time using Jquery

If you need to select one checkbox at a time in multiple checkbox i mean you want to allow anly one checkbox user can check then you can do easily using jquery jquery prop through you can give attribute value checked equel to true or falseif you have banch of checkbox like as example and if

MySQL Connector/Python currently not available from PyPI

With PEP 470 now requiring files to be hosted on PyPI, you may have noticed that MySQL Connector/Python is now no longer available using the pip-tool.

The MySQL Engineering team at Oracle really would like to have the connector available through PyPI and have been talking with the Python Foundation towards that. We know users and developers of OpenStack, for example, have requested this as well as lots of other Python users.

For now we suggest to download the latest Connector/Python directly from the MySQL homepage:

  • Download: http://dev.mysql.com/downloads/connector/python/
  • Using MySQL repository (APT/YUM/..): http://dev.mysql.com/downloads/repo/

Going forward …

[Read more]
MVVM pattern as applied to Javascript


MVVM stands for Model, View and ViewModel pattern.
Application: Used in knockout.js library.
Role of each part:
Model - Handles the application's persisted data that is the data which the view page receives through an ajax request from the server(GET or POST). It can also be used to store the data which is passed to the page when the page is loaded for the first time with some data content, to be used later on client(browser) side.
View - It simply represents the html content. Each View is associated with a ViewModel. View changes according to changes in ViewModel(It's next in list).
ViewModel - It is basically a model for the view. It is a code representation of the data and the supported …

[Read more]
Showing entries 8251 to 8260 of 44047
« 10 Newer Entries | 10 Older Entries »