Collections Counter over a list of Tuples

I’m trying to get the Python Counter work over a list of tuples. ListOfTuples = [(‘Good’, ‘Bad’, ‘Ugly’),(‘East’, ‘West’, ‘South’), (‘Good’, ‘Bad’, ‘Ugly’), (‘NewYork’, ‘Berlin’, ‘Austria’),(‘Good’, ‘Bad’, ‘Ugly’)] What I am looking for is a simple counter which throws out : (‘Good’, ‘Bad’, ‘Ugly’) = 3 (‘East’, ‘West’, ‘South’) = 1 (‘NewYork’, ‘Berlin’, ‘Austria’) =…

Details

Jenkins URL issue

I need some customisation on Jenkins URL site.If I pass URL :- http://xx.xxx.94.92:8080/job/CS_DEPLOY/alert(1) Its returning me all my system details and sever details. HTTP ERROR 404 Problem accessing /job/CSbox/%3Cscript%3Ealert(1)%3C/script%3E. Reason: Not Found Instead I wanted in a custom message like Contact admin like that. I have hosted Jenkins on Apache.Is there a way where can…

Details

Jenkins URL issue

I need some customisation on Jenkins URL site.If I pass URL :- http://xx.xxx.94.92:8080/job/CS_DEPLOY/alert(1) Its returning me all my system details and sever details. HTTP ERROR 404 Problem accessing /job/CSbox/%3Cscript%3Ealert(1)%3C/script%3E. Reason: Not Found Instead I wanted in a custom message like Contact admin like that. I have hosted Jenkins on Apache.Is there a way where can…

Details

Magento 2 standalone script

Hi am trying to export my order deatils in magento 2 programatically using standalone script the location of my script is magento2installationdir orderexp.php <?php require_once (“app / Mage . php”); Mage::app(); Mage::app()->getStore() ->setId(Mage_Core_Model_App::ADMIN_STORE_ID); $orders = Mage::getModel(‘sales/order’)->getCollection(); $orders->addAttributeToFilter(‘grand_total’, array( ‘gt’ => ‘0.00’ )); $orders->addAttributeToFilter(‘status’, Mage_Sales_Model_Order::STATE_COMPLETE); $fp = fopen(‘orders.csv’, ‘w’); foreach ($orders as $order) { $countryCode =…

Details