The Brief
The Client’s mystery shopping programme consists of visits to
each of the client’s ten locations, grouped into five different
areas. Each location receives a single visit each month, but on
occasion a visit may not take place.
On the completion of each visit, a questionnaire is completed by
the mystery shopper that is used to rate the service they
received during the visit. The completed questionnaire is
assigned a score, which is calculated based on the number of
points achieved over the number of points available, normally
expressed as a percentage.
Points Achieved x 100 Points Available
= % Score
PHP Development Test
The Client has requested that an end of year report is
generated to summarise the data collected over the previous year.
The report should be easy to understand and show as much useful
information as possible.
Test Requirements
A PHP application should be …
I need help with this. I had a dream… Well, not so much as a dream, maybe a “It’d be cool to…”
I thought it’d be nice to discover new photos on flickr using your favorite photos and the people who also favorited those photos, and the favorite photos of those who also favorited my pictures. Still with me?
It’s actually a quite simple code (about 500 lines, check it on github: discovr), but it’s terribly slow. Some possible reasons:
- Way too much data. I’ve found people with around more than 18000 favorites, and there are photos with more than 2k fans. After limiting to 50 last …
I had a sad time this year when I missed the MySQL conference, since I had much fun last year in Santa Clara. I can’t miss it next year.
As a MySQL partner, and after almost 2 years doing MySQL training, I sure have interesting things to tell in the conference, but I’m not sure about what.
I will be thinking about this in the next weeks, but I’d appreciate some help. What topics are you interested in?
Slave delay can be a nightmare. I battle it every day and know plenty of people who curse the serialization problem of replication. For those who are not familiar with it, replication on MySQL slaves runs commands in series – one by one, while the master may run them in parallel. This fact usually causes bottlenecks. Consider these 2 examples:
- Between 1 and 100 UPDATE queries are constantly running on the master in parallel. If the slave IO is only fast enough to handle 50 of them without lagging, as soon as 51 start running, the slaves starts to lag.
- A more common problem is when one query takes an hour to run (let's say, it's an UPDATE with a big WHERE clause that doesn't use an index). In this case, the query runs on the master for an hour, which isn't a big problem because it doesn't block other queries. However, when the query moves over to the slaves, all of them start to lag because it plugs up the single …
Please help save Ivan, son of Andrii Nikitin (MySQL
Support Engineer), who needs a bone marrow transplant. Andrii's
message is below:
"My family got bad news - doctors said allogenic bone marrow
transplantation is the only chance for my son Ivan.
"8 months of heavy and expensive immune suppression brought some
positive results so we hoped that recovering is just question of
time.
"Ivan is very brave boy - not every human meets so much suffering
during whole life, like Ivan already met in his 2,5 years. But
long road is still in front of us to get full recover - we are
ready to come it through.
"Ukrainian clinics have no technical possibility to do such
complex operation, so we need 150-250K EUR for Israel or European
or US clinic. The final decision will be made considering amount
we able to find. Perhaps my family is …
I tend to use MySQL from the interactive command line shell quite
a bit (SSH to your db server and type the command
mysql
to start). I noticed today that there is a
pretty extensive built in help system in this command.
You can access it by typing help COMMAND
,
so for instance if you type help ALTER TABLE
you get
a quick reference for constructing an ALTER TABLE
statement.
If you can't remember what command you want to use, then typing
help contents
is your friend. It will output:
For more information, type 'help item', where item is one of the following categories: Administration Column Types Data Definition Data Manipulation Functions Geographic features Transactions
So if your looking for that command that outputs all the columns
in a table, but don't know what it's called, you might now try
help administration
…