// Ascending order
Partner::model()->findAll(array('order' => 'company'));
// We need to understand how to organise this piece of code better | |
var Delivery = (function () { | |
var selectedCityName, | |
$textDelivery, | |
$textNoDelivery; | |
function init() { | |
initElements(); | |
initVars(); |
I tried to install Ubuntu 18 on my Windows 10 PC using Virtualbox.
I saw problem with screen when I selected "Install Ubuntu on PC" item on the installation menu.
Solution: Just press this combinations of keys on your keyboard:
Ctrl + Alt + F1
Ctrl + Alt + F7
Docker compose is a tool that is used for defining and running multi-container Docker apps in an easy way.
It provides docker-compose.yml
configuration file that can be used to bring up an app and the suite of services it depends on
with just one command.
docker compose up
- start all services fromdocker-compose.yml
docker compose up db
- start only servicedb
docker compose up --build
- rebuild all images and run containersdocker compose restart db
- restartdb
service
You have a client with a website. Client wants to add new feature or fix some bug.
-
Listen carefully what client needs
-
Describe current logic that we need to modify. If logic is complex draw scheme on the sheet of paper. Don't describe details yet, forget about table names, class' names on this step.
Dear programmer, I need your help to build a simple CRM named Sheldon CRM. Here you can find tasks that will help us to create it. You can use any programming language you want. All I want is a website with my Sheldon CRM.
I have several partners. On our CRM website I need a page for creating new partners.
Each partner has name
and email
. Also I need a page for editing each partner's information
and a page where I can browse all partners' info.
<?php | |
/** | |
* This class allows us to run only one instance of the process | |
* | |
* Example: | |
* | |
* $uniqueProcess = new UniqueProcess('/var/tmp/some_process_name.lock'); | |
* if (!$uniqueProcess->begin()) { | |
* die(); |