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

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] =>...

Back Up SQL Express database - Software

I was looking for simple script to Back Up SQL Server Express database hosted on one of my servers. There are many articles explaining how to configure it to be done with SQL scripts and scheduled tasks, but what I found was much more useful (at least for me) Here is very powerful Backup, Zip and FTP Utility SQLBackupAndFTP software. It even has free version for those who don't need to schedule more than 2 DB backups.

All Paypal Payment Methods Explained

Paypal own documentation about different payment methods is terrible. There are too many resources, different version and too many similar name. Following article explain in simple words all Paypal Payment Methods - http://www.codeproject.com/KB/aspnet/paypal_c_aspnet.aspx#PayPalIntroduction This also includes C# code examples.

Top Pirated Software

I was surprised to know that the top pirated software on the Internet includes anti-virus programs followed by AutoCAD and Adobe Photoshop. Following are most popular searches: Adobe Photoshop CS4 extended Uniblue Registry Booster 2009 ADOBE ACROBAT Nero 9 9.2.6.0 Full Adobe Photoshop CS4 Windows XP Pro SP3 Microsoft Office Professional 2007 Photoshop CS4 parallels desktop 4.0.1.3810 adobe photoshop cs2 Aperture Adobe Photoshop CS3 kaspersky internet security 2009 VMware Workstation Microsoft Office Home and Student 2007 Driver Detective serials for all Nero v9 products and plugins If you sort this list by companies this will looks like this: Symantec Adobe Autodesk Microsoft Roxio Nero

Free software from Microsoft

Great news for small startup companies. Microsoft has launched a program called WebSiteSpark for individual developers and small web startup companies (less than 10 employees). Following are software licenses which will be given for 3 years for free 3 licenses of Visual Studio 2008 Professional Edition 1 license of Expression Studio 3 (which includes Expression Blend, Sketchflow, and Web) 2 licenses of Expression Web 3 4 processor licenses of Windows Web Server 2008 R2 4 processor licenses of SQL Server 2008 Web Edition DotNetPanel control panel (enabling easy remote/hosted management of your servers) More of information at: http://www.microsoft.com/web/WebSiteSpark

Does .Net applications code can be secure

If you are writing windows application in .Net you should know that your code is not secure. Using free and popular tools like .NET Reflector anyone can easy understand any part of your code. Do you still have something to do with it? Not too much. Here is articles that have good overview of problems described before: http://www.improve.dk/articles/dotnet/securing-dotnet-code/ http://www.yoda.arachsys.com/csharp/obfuscation.html http://www.howtoselectguides.com/dotnet/obfuscators/ Does .Net applications is insecure

Free Links Checker Tool

Whatever you are developing I'll recommend to run this tool agains your site. It's free, fast and doing exactly what I expected from tool that should look for broken links. The description of the tool is saying " Xenu's Link Sleuth (TM) checks Web sites for broken links."

Credit Card Validation in JavaScript

Using simple algorithm the credit card number can be validated. Each credit card type has his own rules for numbers to start from and for lengh of the number. IssuerIdentifier Card Number Length Diner's Club/Carte Blanche 300xxx-305xxx,36xxxx, 38xxxx 14 American Express 34xxxx, 37xxxx 15 VISA 4xxxxx 13, 16 MasterCard 51xxxx-55xxxx 16 Discover 6011xx 16 Following article explains in details what means digits in credit card numbers. More full example with source code can be found here .

Manage Custom Fields in the Database

There a lot of debates about how to store custom fields in database. Here is some interesting links that help me to get decision (in my case is EVA solution :-)) Storing Custom Fields in the Database (see also comments) - http://blog.springframework.com/arjen/archives/2008/01/24/storing-custom-fields-in-the-database/ Thread from forum - http://osdir.com/ml/bug-tracking.bugzilla.devel/2005-01/msg00191.html Guide to the EAV (FAD) - http://weblogs.sqlteam.com/davidm/articles/12117.aspx http://en.wikipedia.org/wiki/Entity-Attribute-Value_model The circumstances where you would need to go beyond standard row-modeling to EAV are listed below: The data types of individual attributes varies (as seen with clinical findings). The categories of data are numerous, growing or fluctuating, but the number of instances (records/rows) within each category is very small. Here, with conventional modeling, the database’s Entity-Relationship Diagram might have...

Asynchronous pages in C# - When to Use It?

When do we need asynchronous page in ASP.net. Suppose you have a website with two web pages. One is your home page which display's a greeting, and the second page displays a large dataset from a database. You have 25 threads in your thread pool. 25 people simultaneously are accessing the database query page, and one additional person comes onto the site to see the home page which has static content on it. http://davidjberman.com/blogs/csharp/archive/2007/08/13/how-to-create-asynchronous-asp-net-pages-using-c.aspx

How to Send Many Parameters to the Thread

There are some ways to send number of parameters to the new created thread. 1. Creating a new instance of a class, and using that instance to store the information 2. Using ThreadPool to send parameters 3. Calling a delegate asynchronously More detailed information can be found at: http://www.yoda.arachsys.com/csharp/threadstart.html