Skip to content

Instantly share code, notes, and snippets.

View krisives's full-sized avatar
🤣

Kristopher krisives

🤣
  • United States
View GitHub Profile
DB connect took 0.00020384788513184 micro seconds
Query took 0.80785202980042 micro seconds
DB connect took 0.00020909309387207 micro seconds
Query took 1.2487790584564 micro seconds
DB connect took 0.0001981258392334 micro seconds
Query took 3.9527161121368 micro seconds
DB connect took 0.00019598007202148 micro seconds
[Thu Jun 27 15:25:04 2013] [error] [client 199.27.128.205] PHP Fatal error: Uncaught exception 'Mage_Core_Exception' with message 'Mage registry key "_resource_helper/core" already exists' in /var/www/vhosts/bitcoinstore.com/httpdocs/app/Mage.php:596\nStack trace:\n#0 /var/www/vhosts/bitcoinstore.com/httpdocs/app/Mage.php(224): Mage::throwException('Mage registry k...')\n#1 /var/www/vhosts/bitcoinstore.com/httpdocs/app/Mage.php(564): Mage::register('_resource_helpe...', false)\n#2 /var/www/vhosts/bitcoinstore.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(534): Mage::getResourceHelper('core')\n#3 /var/www/vhosts/bitcoinstore.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(520): Mage_Core_Model_Resource_Db_Collection_Abstract->_prepareSelect(Object(Varien_Db_Select))\n#4 /var/www/vhosts/bitcoinstore.com/httpdocs/lib/Varien/Data/Collection/Db.php(566): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()\n#5 /var/www/vhosts/bitcoinstore.com/h
  • Eggs
  • Flour
  • Milk
Subscribe for Baby and Children\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[root@u16917046 kris]# yum downgrade php-common
Loaded plugins: fastestmirror, priorities
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
* remi: mirrors.mediatemple.net
* rpmforge: mirror.team-cymru.org
* webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-common.x86_64 0:5.4.17-2.el6.remi will be a downgrade
# Time: 130627 20:32:54
# User@Host: mikaela2[mikaela2] @ localhost []
# Query_time: 12.415518 Lock_time: 0.000463 Rows_sent: 1500 Rows_examined: 2200826
SET timestamp=1372379574;
SELECT `e`.*, IF(at_status.value_id > 0, at_status.value, at_status_default.value) AS `status`, IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) AS `visibility`, `at_price`.`value` AS `price`, IF(at_name.value_id > 0, at_name.value, at_name_default.value) AS `name`, IF(at_short_description.value_id > 0, at_short_description.value, at_short_description_default.value) AS `short_description`, `stock`.`qty`, `stock`.`is_in_stock`, `stock`.`manage_stock`, `stock`.`use_config_manage_stock`, `url`.`request_path`, `categories`.*, GROUP_CONCAT(categories_index.category_id) AS `categories_ids`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `price_index`.`final_price` FROM `catalog_product_entity` AS `e`
INNER JOIN `catalog_product_website` AS `product_website` ON product_w
SELECT `e`.*
FROM `catalog_product_entity` AS `e`
INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = '1'
INNER JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = '273') AND `at_status_default`.`store_id` = 0
LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = '273') AND (`at_status`.`store_id` = 1)
INNER JOIN `catalog_product_entity_int` AS `at_visibility_default` ON (`at_visibility_default`.`entity_id` = `e`.`entity_id`) AND (`at_visibility_default`.`attribute_id` = '526') AND `at_visibility_default`.`store_id` = 0
LEFT JOIN `catalog_product_entity_int` AS `at_visibility` ON (`at_visibility`.`entity_id` = `e`.`entity_id`) AND (`at_visibility`.`attribute_id` = '526') AND (`at_visibility`.`store_id` = 1)
INNER JOIN `catalog_product_entity
<?
class Stack {
public function push($value) {
$stack = new Stack();
$count = rand(1, 100*Learn::difficulty());
for ($i=0; $i < $count; $i++) {
$magic = rand();
$stack->push($magic);
$matchingNodes =& $xmlDoc->getElementsByTagName("Postage");
if ($matchingNodes != null) {
for ($i = 0; $i < $matchingNodes->getLength(); $i++) {
$currNode =& $matchingNodes->item($i);
$serviceName = $currNode->getElementsByTagName("MailService");
$serviceName = $serviceName->item(0);
$serviceName = $serviceName->getText();
$serviceName = html_entity_decode($serviceName);
$serviceName = str_replace("<sup>&reg;</sup>", "", $serviceName);
//if service in XML is contained in active service array add as option
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<RateV3Response>
<Package ID="0">
<ZipOrigination>97128</ZipOrigination>
<ZipDestination>97128</ZipDestination>
<Pounds>1</Pounds>
<Ounces>1</Ounces>
<Container/>
<Size>REGULAR</Size>
<Machinable>FALSE</Machinable>