Configure Dropbox in RHEL/Centos/Fedora and File Upload From Linux To Dropbox

Dropbox is a free file hosting service operated by Dropbox, Inc. that lets you bring your photos, docs, and videos

dropbox2from anywhere and share them easily. Dropbox allows users to create a special folder on their computers, which Dropbox then synchronizes so that it appears to be the same folder (with the same contents) regardless of which computer is used to view it. Files placed in this folder also are accessible through a website and mobile phone applications.

Follow the below steps to configure Dropbox:

Step:1 Create an account on www.dropbox.com

Step:2 Login your Linux System

Step:3 we need to install dependency packages

# yum install curl bash

Step:4 Now go to /tmp directory and download dropbox up loader script and give appropriate permission to run script

test@localhost:~$ cd /tmp
test@localhost:~$ wget https://raw.github.com/andreafabrizi/DropboxUploader/master/dropbox_uploader.sh
test@localhost:~$ sudo cp dropbox_uploader.sh /usr/local/bin/droptobox
test@localhost:~$ sudo chmod +x /usr/local/bin/droptobox

Step:5 Now you can run the program anywhere from the terminal by running droptobox command

1
test:~$ droptobox

Here will ask you for the “App Key and App secret”,
Then create it from the Dropbox web and copy below url and paste in browser
# https://www.dropbox.com/developers/apps
Here we click “app” button and create an app. Give “Full Access” while filling the App details.
It will display an “App Key” and “App Secret” after successful creation.
Copy both App key and App Secret key and go to terminal and paste and give “f” in the access option.
# App key: xxxxxxxxxxxxxx
# App secret: xxxxxxxxxxxxxxx
# Access level you have chosen, App folder or Full Dropbox [a/f]: f
Then it will display a Link, Copy and paste it on the web browser and Allow the API access.

How to upload file from Linux terminal to dropbox:

Here we can use ” /usr/local/bin/droptobox ” or ” droptobox ”
## List Directory
# /usr/local/bin/droptobox list
## Upload a file to drop box
# droptobox upload file1
## Upload the files to your drop box /Test directory
# droptobox file1 Test/file1
## Delete a file “file1″ in “Test” directory in dropbox
# droptobox delete Test/file1
## Download a file “file1″ in “Test” directory in dropbox
# droptobox download Test/file1

See also : Andolasoft launches “Patia” – Free App to Find your file in Dropbox & Google Drive

Hope you liked the blog. It would be great if you can share your valuable comments with us.

How to monetize your Android application through In-App Billing?

In-App-Billing1What is In-app Billing ?

In-app products are the digital goods that you offer for sale from inside your Android application to your app users. You cannot use In-app Billing to sell personal services, physical goods, or anything that requires physical delivery.

Product types

The Version 3 API supports managed in-app products and subscriptions to give you flexibility in how you monetize your application. You can specify these types of products by using the Google Play Developer Console.

  • Managed in-app products:
    When a managed in-app item is purchased by an user, Google Play stores the purchase information for each item on a per-user basis.
  • Subscriptions :
    In In-app Billing, subscription plan offered you to sell content, services, or features to users from inside your app with recurring monthly or annual billing.

I will demonstrate a small example with In-app Billing,

To implement in app billing in your android project follow the below steps:

Step# 1: Installing the Google Play Billing Library
Before proceeding, verify you have installed the library by launching the Android SDK Manager by selecting the Eclipse Window -> Android SDK Manager option. Once loaded SDK Manager, scroll down to the Extras section and the Status column next to the Google Play Billing Library
Step# 2: Adding Billing Permission to the Manifest File
Add the following line in your AndroidManifest.xml file in order to make your app eligible to use in-App billing.

<uses-permission android:name=”com.android.vending.BILLING” />
Step# 3: Adding the Utility Classes to the Project
Find out the “TrivialDrive” sample project that was installed into the android SDK as part of the Google Play Billing library, includes a set of classes intended specifically for in-app billing implementation.

Locate the IInAppBillingService.aidl file in “TrivialDrive” sample project and add it to the package named “com.android.vending.billing”.

Then Select all nine Java files within “com.example.android.trivialdrivesample.util” package and copy and paste them into the <domainname>.inappbilling.util package of your InAppBilling project.

Step# 4: Designing the User Interface
Design your UI according to your need. This is a sample design developed to demonstrate the In-App Billing.

In-App-Billing-181x300

 

 

 

 

 

 

 

 

 

Step# 5: Obtaining the Public License Key for the App
Google Play billing must be identified by a unique public license key. The only way to get a public license key is to register an application within the Google Play.
Go to http://play.google.com/apps/publish Once you are logged in, In home page of the Google Play Developer Console, click the Add new application button, which specifying the default language and a title of InAppBilling. Once the above information has been entered, click the Upload APK button:
This APK file upload is not necessary at this point, so once the application has been registered, click on the Services & APIs option to display the Base64-encoded RSA public key for the application.

Step# 6: Creating a New In-app Product
Select the In-app Products menu item from the left hand panel of the developer console.To add a new product, click on Add new product button and, in the result panel, set the product type to Managed product and enter a Product ID (in this case com.andolasoft.testInApp). Click on Continue and in the second screen By entering a title, description and price for the item. Change on the menu at the top of the page to Activate.

Step# 7: Implementing “Purchase” Button click

public class MainActivity extends Activity {
 
    private static final String TAG = "<your domain>.inappbilling";
    IabHelper mHelper;
     
    private Button clickButton;
    private Button buyButton;
    private static final String TAG = "com.andolasoft.testInApp";
    IabHelper mHelper;
    static final String ITEM_SKU = "android.test.purchased";
.    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 
        buyButton = (Button)findViewById(R.id.buyButton);
         
        String base64EncodedPublicKey =
                                       "<your license key here>";
         
            mHelper = new IabHelper(this, base64EncodedPublicKey);
         
            mHelper.startSetup(new
            IabHelper.OnIabSetupFinishedListener() {
                    public void onIabSetupFinished(IabResult result)
             {
                       if (!result.isSuccess()) {
                         Log.d(TAG, "In-app Billing setup failed: " +
                    result);
                       } else {             
                           Log.d(TAG, "In-app Billing is set up OK");
                              }
                      }
            });
    }
public void buyClick(View view) {
             mHelper.launchPurchaseFlow(this, ITEM_SKU, 10001,   
                    mPurchaseFinishedListener, "mypurchasetoken");
/*The developer payload token string. This can be any string value and is used to identify the purchase. For the purposes of this example, this is set to “mypurchasetoken”.*/
 
    }
@Override
protected void onActivityResult(int requestCode, int resultCode,
     Intent data)
{
      if (!mHelper.handleActivityResult(requestCode,
              resultCode, data)) {     
        super.onActivityResult(requestCode, resultCode, data);
      }
}
IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener
    = new IabHelper.OnIabPurchaseFinishedListener() {
    public void onIabPurchaseFinished(IabResult result,
                    Purchase purchase)
    {
       if (result.isFailure()) {
          // Handle error
          return;
     }      
     else if (purchase.getSku().equals(ITEM_SKU)) {
         consumeItem();
        buyButton.setEnabled(false);
    }
           
   }
};
public void consumeItem() {
    mHelper.queryInventoryAsync(mReceivedInventoryListener);
}
     
IabHelper.QueryInventoryFinishedListener mReceivedInventoryListener
   = new IabHelper.QueryInventoryFinishedListener() {
       public void onQueryInventoryFinished(IabResult result,
          Inventory inventory) {
 
                       
          if (result.isFailure()) {
          // Handle failure
          } else {
                 mHelper.consumeAsync(inventory.getPurchase(ITEM_SKU),
            mConsumeFinishedListener);
          }
    }
};
IabHelper.OnConsumeFinishedListener mConsumeFinishedListener =
      new IabHelper.OnConsumeFinishedListener() {
       public void onConsumeFinished(Purchase purchase,
             IabResult result) {
 
     if (result.isSuccess()) {                
            //Here user paid for the app so write your logic to show the content to user
     } else {
             // handle error
     }
  }
};
 
@Override
public void onDestroy() {
    super.onDestroy();
    if (mHelper != null) mHelper.dispose();
    mHelper = null;
}
 
}

Step#8 : Upload the “APK”
Create the signed APK of your project and upload it in your added Application in Google Play Developer Console

Step# 9: Adding In-app Billing Test Accounts
Unfortunately, Google does not allow developers to make test purchases from their own Google accounts app billing, Other Google accounts used as testing accounts. . From ths ipoint on, in order to test in-app,  the users of these Google accounts must load your application onto their devices and make test purchases. To add a test user account, click Settings icon located on the left hand side of your Google Play Developer Console home screen and on the account details screen scroll down to the License Testing section. In the corresponding text box, give the Gmail accounts for the users who will be performing the in-app testing on your behalf before saving the changes.

Note: This email Id should be the primary account of an android device where this app is to be tested. Check with Google policy before publishing the app to the android market place.

Conclusion: I hope you find this post useful to sell your android in-app products and services, make transaction smoother and easier, and improve your revenue. If you are looking for any assistance regarding android application development or other android integration, then you can contact us.

See Also: How to monetize your iOS app through Apple In-App Purchase integration

Like this blog? I’d love to hear about your thoughts on this. Thanks for sharing your comments.

 

5 Reasons Why Web Development is Faster With Ruby On Rails

Ruby on Rails aka “RoR” is an open-source MVC framework built using the Ruby programming language.

It is considered as the epitome of the latest generation of high-productivity, open source web development tool. The growing demand for Ruby on Rails has been driven by successful RoR development companies like Andolasoft, who benefit from the speed and agility of building applications in Rails, which results in increased productivity and company growth.

1. Framework Built on Agile Methodology

RoR is faster because the framework was built based on Agile development methodology, best practices are emulated so web development is done with high quality and speed.

RoR framework includes support programs, compilers, code libraries, tool sets, and application programming interfaces (APIs) that bring together the different components to enable development of a project or solution.

Never miss an update from us. Join 10,000+ marketers and leaders.

It’s possible to build sites that used to take 12 weeks in just 6 weeks using Ruby on Rails. It means you can save 50% on your development expenses.

2. Less Code Writing

Rails creates a skeleton for an application or module by executing all the code libraries. You must write some commands to accomplish this. This is what makes the process of web development faster.

Rails makes database deployments simpler than any open, or proprietary solution by allowing for migrations.

  • Adopting principle of DRY

    It also adopts the principle of “Don’t Repeat Yourself”. So all information can be retrieved from a single unambiguous database which tends to easier development.

  • Easy Configuration

    A key principle of Ruby on Rails development is convention over configuration. This means that the programmer does not have to spend a lot of time configuring files in order to get setup, Rails comes with a set of conventions which help speeding up development.

  • Modular Design

    Ruby code is very readable and mostly self-documenting. This increases productivity, as there is little need to write out separate documentation, making it easier for other developers to pick up existing projects.

  • Designer Friendly Templates

    HTML templates is a core feature of Rails. It allow templates to be composed of a base template that defines the overall layout of the page,the base template is called a “layout” while the individual page templates are “views”. The Rails application retrieves the list of tags from the database and makes it available to the view.The section of the view that renders these category is:

    <%= render :partial => 'category' %>

    This refers to a Ruby partial, a fragment of a page, which is contained in _category.html.erb. That file’s content is:

<h3>categories</h3>
<p class="categorylist">
<%= render :partial => 'categorylist', :collection => @category %>
</p>
  • This generates the heading then refers to another partial, which will be used once for each object in the collection named “categorylist”.

3. Third Party Plugin/Gem Support

Mature plugin architecture, well used by the growing community. Rails plugins allows developer to extend or override nearly any part of the Rails framework, and share these modifications with others in an encapsulated and reusable manner.

Rails community provides a wealth of plugins as Ruby Gems that you simply add to your project Gem-file and install. This significantly accelerates development and maintenance time as you’re not trying to integrate disparate libraries, it’s already done for you.

4. Automated Testing

Rails has developed a strong focus on testing, and has good testing suit in-built within the frameworks.

Rails makes it super easy to write your tests. It starts by producing skeleton test code while you are creating your models and controllers.

I’ve worked with the team at Andolasoft on multiple websites. They are professional, responsive, & easy to work with. I’ve had great experiences & would recommend their services to anyone.

Ruthie Miller, Sr. Mktg. Specialist

Salesforce, Houston, Texas

LEARN MORE

Rails ships with a built-in test suite. There are many tools available in the market for testing Rails application as mentioned below with other web apps from many different aspects.

  • Rspec
  • Cucumber
  • Test Unit
  • Shoulda
  • Selenium (not really a ruby thing but more of a web thing)

But if you are new to testing we highly recommend you start with learning Rails own testing suite before start using other tools

5. Easier Maintenance

Once site launches, future modifications to your site (e.g., adding new features, making changes to the data model) can be made more quickly, for the same reasons noted above.
New features can be added quickly and maintaining applications over time can also be more cost-effective.

If you like this one, you might also like Why Rails framework popular among Ruby developers and The Best practices for Rails App Development .

Andolasoft launches “Patia” – Free App to Find your file in Dropbox & Google Drive

Now-a-days usage of cloud storage services like Google Drive, Dropbox are very popular. In general it is too hard to find a specific file from large heap of files in these cloud storages. We at Andolasoft released of a new FREE app named Patia to make your life easy.

Patia is designed to help you search Google Drive and Dropbox to find the shared files and documents from cloud storage without having to check them individually.

How does Patia work?

With Patia, you can type a keyword in the search bar and it will scan your Google Drive and Dropbox account for relevant files using the search term.

getpatia-1024x458

Setting Up Patia

To set-up Patia, you just need to run GetPatia.com in your browser.

Just tap into the ‘Signup’ link and it requires only email address and password.

gp_sign_up-1024x495

Setting Up Patia

To set-up Patia, you just need to run GetPatia.com in your browser.

Just tap into the ‘Signup’ link and it requires only email address and password.

 

gp_GoogleDrive-1024x453(1)

Once you are linked with your accounts, simply click on the search bar and enter what you are searching for. Patia will quickly scan the integrated accounts to find the items matching the term you entered.

You can narrow down your search by selecting specific options.
For example, if you would like to search a file from the Google Drive then just select the “Google Drive” button and start search.

gp_srch-1024x456

If you would like to disconnect the Google Drive from Patia, then simply click on ‘Unlink Google Drive’ under Setting menu. It will unlink your Google Drive account. Do the same for Dropbox to unlink from Patia.

gp_Unlink-1024x453

Patia requires no installation and you can access it using your Smartphone or Tablet on the go.

Check out some of our free apps and  free responsive web templates.

If you have any questions/comments we will be happy to get them in the comments section.

 

We are ranked TOP #1 for iPad Development

Hooray! We are the TOP #1 company in world, this time for iPad development

We are elated to declare that just we are ranked #1 by the bestwebdesignagencies.com

We dedicate this honor to our patrons without whom it would not have possible to be here.

as_top_ipad-1024x585

The credit goes to the good job done by our top-notch iOS app developers, who have been providing excellent services to our valued clientele.

How We Can Help

If you have an idea for an iPad/iPhone app, Andolasoft’s expert staff can help you turn that concept into a reality. We also have experience in rescuing troubled projects or improving

existing apps. No matter what stage your app is at, Andolasoft can help you bring it to market.

What You Get:

  • Easy-to-use iPad app with rich and engaging user experience
  • Step-by-step guidance and suggestions to you from building an app till publishing to App-Store
  • We provide perfect technical resources, support for your  needs
  • We follow the  Industry Best Practices
  • Timely delivery matching your budget
  • We follow Agile methodology and Scrum to facilitate rapid iPad app development
  • Quick turnaround service

The bestwebdesignagencies.com is an autonomous body that identifies and lists out best design and development companies in the world. The purpose is to help customers to pick the best ones from the lot. They adopt a stringent evaluation process to determine the quality of work delivered by a company to their customer satisfaction.

Top 10 simple tools you should know for working with remote team

remote_development_work-123There has been a sharp increase in Remote Development team in different parts of world, who provide product development, support and maintenance services.

Looking into current demand for skilled pool of Dedicated Developers, it is efficient to hire skilled developers and designers who are located at remote locations and use the right tools to chat, video conference, share screen and keep all the tasks in single place to develop your product efficiently and cost-effectively.

Here are the 10 must have tools to set up a virtual office and work with your remote team:

1. Skype:

Skype_logo

 

 

 

Skype is a voice and text based Instant messaging system that works on the VOIP technology. If you have a microphone and speaker, you can make phone free calls from your computer to other people on Skype and make cheaper calls to landlines and cell phones. Other features include instant messaging, file transfer, video conferencing and screen sharing. Skype also has an Internet connection box that lets you convert your regular telephone to use the internet for telephone service.

 

2. Google+ Hangouts:

Google_Hangouts

 

 

 

It is a free video chat service that offers both ‘one-on-one’ and group chats with up to ten people at a time. It focuses more on “face-to-face-to-face” group interaction as opposed to one-on-one video chats, and makes use of sophisticated technology to seamlessly switch the focus to the person currently chatting. It provides a ‘Hangouts on Air’ to broadcast live video conversation which are accessible to anyone with web browser.

3. join.me

join.me_image

 

 

 

 

join.me is a free one click screen sharing and conferencing tool. Just download the app, run and share the URL and you’ve got instant screen sharing along with text chat, voice conferencing as well as mouse sharing (if you allow it). You can also voice chat while watching the demonstration on the shared screen and even share files.

4. Cisco WebEx:

CiscoWebex_image

 

 

 

It is an on demand collaboration, web conferencing, online meeting and video conferencing app.  It is a full-fledged service that offers Screen sharing, audio and video recording, meeting scheduling and future event scheduling tools for both presenters and participants.

5. Orangescrum:

OrangeScrum_new_logo

 

 

 

 

There are numerous project collaboration tools available. However, we used Orangescrum which is developed by our development team. It is a project collaboration tool for project handling and effective communication between the developers and customers. It facilitates file attachments of any size and format; assigning tasks to a group. Set e-mail alerts as well as prioritize and target them to the concerned team members. It has got everything that a project collaboration tool demands.

 

6. Google Docs:

Google_logo

 

 

 

 

Google Docs is a free web based application in which documents and spreadsheets can be created, edited at the real time. Files can be accessed remotely form any PC with an internet connection and a Web browser. Users can import and edit docs and spreadsheets in various fonts, formats, formulas, lists, tables and images. Multiple users can work together in real time from remote locations.

 

7. DropBox:

Dropbox_image

 

 

 

 

 

DropBox is a personal cloud storage service which is used for file sharing and collaboration. It automatically updates the file changes across multiple devices which can be accessed from the DropBox repository. It can also be used with Android, iOS and windows mobile devices. Along with file sharing it also offers file versioning which are saved automatically.

 

8. Google Calendar:

Google_logo

 

 

 

Google Calendar app facilitates users to create private and public calendars. It store the calendars within its own servers hence, can be accessed from anywhere through a Web browser. This is probably the best app for scheduling and managing your events and meetings.

 

9. Sqwiggle:

sqwiggle1

 

 

 

 

Sqwiggle is browser-based group video chat service. They also have a stand-alone client for OS-X. According to TechCrunch- “It’s got the office-like immediacy that Skype lacks, but without the noise of a Google Hangout”

 

10. HipChat:

HipChat

 

 

HipChat is a private chat and instant messaging service that allows users to create and join chat rooms and send one-on-one messages with other users. Other primary features include searchable chat history, sharing images, uploading files and also SMS messaging for one-to-one conversation.