Indexes Help... A Lot
I just brought 4 queries from 15 seconds to less than 1 second by adding indexes to the columns in the ON() portion on the join.
Indexes help… A lot.
I just brought 4 queries from 15 seconds to less than 1 second by adding indexes to the columns in the ON() portion on the join.
Indexes help… A lot.
Set public $responsiveCss = false; to public $responsiveCss = true;
http://mahmudahsan.wordpress.com/2008/08/27/mysql-the-group_concat-function/
This seems like it will be super useful.
If you’re using “group by” and you still want to get data out of the grouped rows, then you can use this to combine multiple rows into a single row.
This was totally not very intuitive. I was expecting something like this:
foreach($array as $sub) {
echo(key($sub));
}
Instead, it’s this:
foreach ($decodedOutput as $key => $value) {
echo $key;
}
grep -rl "search_for_this_string" /var/www
PHPExcel_Shared_Date::ExcelToPHPObject($value)->format("m/d/y")
The suds library is the easiest way I found to consume .NET SOAP web services from Python, with Python acting as the web service client. I first picked it up from Jan Sipke’s tutorial.
Here’s an example of my simple client:
from suds.client import Client
client = Client("http://xxx.xxx.xxx.xxx/API/Info.asmx?WSDL")
client.service.getInfo("05/12/2013", "05/12/2013")
CRUD
An example of a CRUD application would be something that tracks orders in a database. All 4 actions are going to be necessary to track those orders. CRUD: The basic database operations.
I made a google spreadsheet which pulls data from two other workbooks using “importRange” and QUERY function. You can use either one if you just want to pull a few columns from another spreadsheet. QUERY provides more flexibility by allowing you to use a SQL statement. Here is an example of a query which pulls 2 columns from another workbook and filters out the blank rows in column 41:
=QUERY(importRange("yourSpreadsheetKeyHere", "Donations!A3:BB200000"), "select Col41, Col2 WHERE Col41!='' ", 1)
One of the biggest pains during the entire process was google spreadsheet’s vlookup. I learned the vlookup function only searches for a value in the first column in the Array. It’s also helpful if you format the results of your vlookup as “Plain Text” under the numbers format drop-down. Of course, something formatted as a number won’t match something formatted as plain text.
You could use this technique if you have a list of customer id’s with names, and a separate spreadsheet with more customer information. With this, you could combine that information.
https://github.com/SheetJS/sheetjs
That’s an impressive project that allows parsing excel files in the browser.