Skip to main content

Posts

Bookmark to specific account in Google Drive

In case you have more than one account in Google (which is probably most of developers), you probably faced an issues when you found your self with list of docs in Google Drive that you can't recognize. The reason in most cases is that Google just getting you to Drive with your other account. The solution is pretty simple. The link to the Google Drive (GMail as well) support authuser parameter. So using the following link will always log  you in to Drive as specified account https://drive.google.com/drive/u/? authuser=myprivateemail@gmail.com As I told - same will work also for Gmail - https://mail.google.com/mail/u/? authuser= myprivateemail@gmail.com
Recent posts

Hosts file not working - How to debug

After few hours of breaking my head, the following is a summary of things to do when HOSTS files changes are not applied to the browser behavior. 1. Make sure you didn't add a .txt extension when edited the file in the Notepad 2. Make sure you don't put http:// or https:// before the domain 3. Run cmd and them type ipconig /flushdns 4. Close browser and open it again after each change Happy debugging :-)

Amazon Pricing in Simple Words

Here is a summary of services with relevant links to the pricing details. File and Media Storage Amazon S3 Reduced Redundancy Storage  (RRS), starts at $0.076 per GB. Learn more about  Storage on AWS  or find  storage management software  on AWS Marketplace. Development and Test Environments on AWS Set up and configure development and test environments as you need them.  Amazon EC2  Micro Instances start at $0.02 per hour. Learn more about  Development and Test  on AWS or find  development and testing tools  on AWS Marketplace. Running a Website or Blog Reserve an Amazon EC2 Micro Instance  for a year and only pay $62 upfront and $3.66 per month. Learn more about  Web Apps on AWS  or find great content management software including  WordPress ,  Drupal , and  Joomla  on AWS Marketplace. Running a Static Website Use  Amazon S3  and  Amazon CloudFront  to run a static website an...

Post on behalf of Facebook Page using Graph API

Assuming someone would like to give your permissions to post on his Facebook Pages :-), you need to do following things: Ask for the publish_stream and manage_pages using Facebook Authentication Dialog Get Page Access Token. Such access token can be retrieved by issuing an HTTP GET to /USER_ID/accounts with the manage_pages permission. This will bring you list of the pages and access tokens of such pages. You also can you /PAGE_ID?fields=access_token request to get access token for specific page. (Reference - https://developers.facebook.com/docs/reference/api/page/) Once you have page access token you will be able to post. Posting can be done using following parameters: curl -F 'access_token={ACCESS_TOKEN}' \ -F 'message={MESSAGE TO POST}' \ https://graph.facebook.com/{PAGE}/feed

Magento API: SOAP vs XML-RPC

Some time ago our company consults to our clients that started working on Facebook Store application that should be able to integrate with Magento. After quick overview of Magento API documentation it was clear that we need to select one of the two API methods provided by Magento - SOAP or XML-RPC. First version of Magento Facebook App was developed with SOAP version of API. And then it starts ... Since application should be able to communicate with different installation of Magento, we've learned a tons of bugs for each major Magento version. After more than half year of fighting with SOAP and become an experts in Magento API bugs, we decided to give a try to XML-RPC. And here was very nice surprise that we already didn't expected from Magento developers :-). Almost no bugs related to Magento installaion ... So for everyone checking Magento API - SOAP vs XMLRPC - the absolute winner is XMLRPC.

Paypal Sandbox - The link you have used to enter the PayPal system is invalid.

When paying with recurring payments on Paypal Sandbox I've got following error message - "The link you have used to enter the PayPal system is invalid. Please review the link and try again." It take me too long to figure is out but the problem was that the account was not verified. To make recurring payments work on Sandbox Paypal account, in additions to having your account to be upgraded to business account, you have you verify the sandbox account email address. Good luck

Magento API Filter operators and list of fields for Product.List

Following are operators you can use when create filter for Magento Api calls: from returns rows that are after this value (datetime only) to returns rows that are before this value (datetime only) eq returns rows equal to this value neq returns rows not equal to this value like returns rows that match this value (with % as a wildcard) nlike returns rows that do not match this value (with % as a wildcard) in returns rows where the value is in this array (pass an array in) nin returns rows where the value is not in this array (pass an array in) is null returns rows that are null notnull returns rows that are not null moreq gt returns rows greater than this value lt returns rows less than this value gteq returns rows greater than or equal to this value lteq returns rows less than or equal to this value finset And following are the lits of fields you can filter on using Product.List api call [0] => entity_id [1] => entity_type_id [2] => attribute_set_id [3] => type_id [4] =>...