"I am your college professor that you requested, with a doctorate in Mathematics. I will break this down as simply as possible and end this debate as approx. 10 students have already asked me this today. The problem as it is written is 6÷2(1+2) , the ÷ cannot be substituted with a fraction bar because they have different ranks on the order of operations. It is an illegal math move to do this. The bar ranks with parentheses, ÷ is interchangeable with . therefore the problem must be solved as 6÷2(1+2) NOT 6 (over) 2(1+2) we do the parentheses first, so 6÷2(3), the parentheses are now no longer relevant, because the number inside is in it's simplest form. Every single number has implied parentheses around it. 6÷2(3) (6) ÷(2)(3) 6÷23, or even converting the division to multiplication by a reciprocal (a legal math move) (6)(1 (over) 2)(3) are all correct ways to write this problem and mean exactly the same thing. Using pemdas, where md and as are interchangeable, we work from left to right, so (3)(3) or 3*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//... | |
public function setCollection($collection){ | |
//... | |
$collection->joinAttribute('hohlkammern', 'catalog_product/hohlkammern', 'entity_id', null, 'right'); | |
$collection->joinAttribute('hohlkammern_alt', 'catalog_product/hohlkammern_alt', 'entity_id', null, 'right'); | |
$collection->joinAttribute('ausreissteg', 'catalog_product/ausreissteg', 'entity_id', null, 'right'); | |
$whereStatement = " | |
at_hohlkammern.value = {$hohlkammern} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script> | |
function translate_bing(text, sl, tl, success, complete){ | |
if(typeof(complete) != 'function') | |
complete = function(){}; | |
jQuery.ajax({ | |
url: 'http://api.bing.net/json.aspx?JsonCallback=?', | |
dataType: 'jsonp', | |
data: { | |
'AppId' : 'F3A5B8832ED2798D80A77717B631E18229AD3A84', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SomeClass { | |
public function somefunction() | |
{ | |
$orderId = 1; // some order id for example | |
$order->load($orderId); | |
$vars['order_id'] = $order->getIncrementId(); | |
$vars['order_date'] = $order->getCreatedAt(); | |
$vars['order_day'] = date('d', strtotime($order->getCreatedAt())); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @var $order Mage_Sales_Model_Order */ | |
$order = Mage::getModel('sales/order'); | |
$order->load($orderId); | |
/** @var $shipment Mage_Sales_Model_Order_Shipment */ | |
$shipment = Mage::getModel('sales/order_shipment'); | |
$shipment->setOrder($order); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$order = new Mage_Sales_Model_Order(); | |
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId(); | |
$order->loadByIncrementId($incrementId); | |
/** @var $order Mage_Sales_Model_Order */ | |
$cookieModel = Mage::getModel('core/cookie'); | |
// Save order ad origin as order field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$("#contactForm").submit(function(){ | |
return $("#contactForm").validate(); | |
}) | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function related_posts_shortcode( $atts ) { | |
extract(shortcode_atts(array( | |
'limit' => '5', | |
), $atts)); | |
global $wpdb, $post, $table_prefix; | |
if ($post->ID) { |