Showing entries 7893 to 7902 of 44050
« 10 Newer Entries | 10 Older Entries »
Understanding Percona XtraDB Cluster threading model

In this blog, we’ll discuss how the Percona XtraDB Cluster threading model works.

Percona XtraDB Cluster (PXC) creates a different set of threads to service its operations. These threads are in addition to existing MySQL threads. Let’s understand what these threads are and how they’re used. There are three main groups of threads:

  1. Applier thread(s)
    1. Applier threads are meant to apply write-sets that the node receives from other nodes (through cluster). (write-message is directed through
      gcv_recv_thread
      .)
    2. The number of applier threads is controlled using the
      wsrep_slave_thread
       configuration. (The default value is 1, so at least one wsrep applier thread …
[Read more]
How to Get Last Executed Query in Laravel

We have been many time need to get executed query log or you want to get last executed query or maybe if you want to diaplsy sql query from laravel query builder then you can do it that so i have three example for display executed query in Laravel 5 when you are working on laravel application at t

How to Get URL Segment in Laravel

Whenever you need to get current url segment then you can get using Request facade I give you example one for using Request facade so you can get segment from url and how you can see both examplestrongExamplestrongpre classprettyprint langphpextendslayoutsappsectioncont

How to Get Current Route Name in Laravel

Whenever you need to get current route name then you can get using Request or Route facade I give you two example one for using Route facade and another for Request facade so you can get route name both way and how you can see both examplestrongUsing Requeststrongpre classprettyprint

Jquery ajax request example

If you are very fresher in jquery and you dont know how to work post ajax request then bellow example can help you i gave you the example of POST ajax request with json you can also easily modify this example you also fire GET ajax request using this example bellow example is a pretty simple to

Install python and pip as local user on shared Linux

A few days ago, I was struggling to install python on a Linux machine, in which I had no root permission. That machine was shared with many other users and there was only an old python version already installed on the machine. After a bit of search and trial, I was able to install a newer version of python on this machine to my local directory.

My goal was to run a program developed under python 2.7 on the Linux server which already had python 2.6 installed. As you can see, it was impossible for me to upgrade python on the system because I had no root permission. The only solution was to install the python 2.7 into my local directory and override the necessary environment variables. Even though this blog aims for python 2.7, I believe it should also be the same for python 3.0. The detailed steps are as follows:

  1. Install python to local directory

Firstly, I create a folder in my home directory, download the …

[Read more]
Git error failed to push some refs to git resolve

I fetch this error i was working on my php project and when i need to add that project on my bitbucket account so first i create repository on my bitbucket account and clone that repo but when i push first time my projects i found following errorpreerror failed to push some refs to httpsi

Laravel Localizationtrans helper tutorial example

First Laravel 5 introduce localization for laravel application Localization is very pretty intrsting topic added on laravel 5 Localization through we can manage multiple language message i mean you can manage multiple languages within your application for example you have one title like Home Pa

Pre-conference preparation breakage

Just a quick post to help others who get stuck on the problem I solved today that could save a lot of time!

Introduction

Of course it’s Saturday (what else is there to do?!), and there is a little over a week before I present on running a Galera Cluster MySQL on Kubernetes and while trying to record the demo, everything was apparently broken. Here’s the tale of woe in a nutshell.

Initial problem

So, when trying to run my kubernetes cluster, when running the following:

patg@kubernetes-master001:~$ ./kubectl exec pxc-node2-hjjrw -i -t -- mysql -u root -p -h pxc-cluster
Content-Type specified (plain/text) must be 'application/json'

[Read more]
How to enable rewrite mode for apache in ubuntu

Whenever you need to rewrite indexphp file from url you can find solution here you can easily enable rewrite mode using bellow terminal command when i create one virtualhost for my laravel application and open in browser and open my created virtual url but when i click on login i found following

Showing entries 7893 to 7902 of 44050
« 10 Newer Entries | 10 Older Entries »