find / -name php.ini
<? | |
class AppController extends Controller { | |
var $sslRequired = array('login', 'logout'); | |
var $sslAllowed = array('index'); | |
var $beforeFilter = array('ensureProperProtocol'); | |
private function sslRequired() { | |
return in_array($this->action, $this->sslRequired); | |
} |
<?php | |
if (!isset($modules)) { | |
$modulus = 11; | |
} | |
if (!isset($model)) { | |
$models = ClassRegistry::keys(); | |
$model = Inflector::camelize(current($models)); | |
} | |
?> | |
<div class="pagination"> |
<?xml version="1.0" encoding="utf-8"?> | |
<DieCutLabel Version="8.0" Units="twips"> | |
<PaperOrientation>Portrait</PaperOrientation> | |
<Id>Shipping</Id> | |
<PaperName>30323 Shipping</PaperName> | |
<DrawCommands> | |
<RoundRectangle X="0" Y="0" Width="3060" Height="5715" Rx="270" Ry="270" /> | |
</DrawCommands> | |
<ObjectInfo> | |
<TextObject> |
# Header 1 # | |
## Header 2 ## | |
### Header 3 ### (Hashes on right are optional) | |
#### Header 4 #### | |
##### Header 5 ##### | |
## Markdown plus h2 with a custom ID ## {#id-goes-here} | |
[Link back to H2](#id-goes-here) | |
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one |
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
rpm --install rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
yum install --enablerepo=rpmforge memcached | |
memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody | |
wget http://pecl.php.net/get/memcache-2.2.5.tgz | |
tar -xvf memcache-2.2.5.tgz | |
cd memcache-2.2.5 | |
phpize && ./configure --enable-memcache && make | |
cp /root/memcache-2.2.5/modules/memcache.so /usr/lib/php/modules/ | |
echo extension=memcache.so >> /etc/php.ini |
####Install PhoneGap IAP Plugin
plugman install --platform ios --project [directory] --plugin git://github.com/j3k0/PhoneGap-InAppPurchase-iOS.git
####Add StoreKit framework to XCode project
- Go to the Build Phases tab in your project target
- Expand the "Link Binary With Libraries" list.
- Click the plus button at the button
- Search for StoreKit and add the StoreKit.framework item.
#ACID
Atomicity requires that each transaction is "all or nothing": if one part of the transaction fails, the entire transaction fails, and the database state is left unchanged. An atomic system must guarantee atomicity in each and every situation, including power failures, errors, and crashes. To the outside world, a committed transaction appears (by its effects on the database) to be indivisible ("atomic"), and an aborted transaction does not happen.
##Consistency
The consistency property ensures that any transaction will bring the database from one valid state to another. Any data written to the database must be valid according to all defined rules, including but not limited to constraints, cascades, triggers, and any combination thereof. This does not guarantee correctness of the transaction in all ways the application programmer might have wanted (that is the responsibility of application-level code) but merely that any programming errors do not violate any defined rules.