Posts

Showing posts from October, 2013

How to migrate from Twitter API version 1 to version 1.1

If you have a twitter API widget on your website using Twitter API version 1 that is no longer working, its probably because Twitter recently launched API version 1.1. The response body that you will get for API version 1 will look like "{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}" Now, How to migrate from Twitter API version 1 to version 1.1 The upgrade process is different for everyone. It's best to look at how you're using the API today and compare that to the documentation for API v1.1. Some API methods have changed paths. Some no longer exist. There are also newer ones. All requests require a form authentication, for which you can either use Obtaining access tokens  or  Application-only authentication . There are docs for these topics throughout this site, but admittedly they speak mostly to programmers. App-...

Key differences between MyISAM and InnoDB databases in MySQL

The main differences between InnoDB and MyISAM ("with respect to designing a table or database" you asked about) are support for "referential integrity" and "transactions". If you need the database to enforce foreign key constraints, or you need the database to support transactions (i.e. changes made by two or more DML operations handled as single unit of work, with all of the changes either applied, or all the changes reverted) then you would choose the InnoDB engine, since these features are absent from the MyISAM engine. Those are the two biggest differences. Another big difference is concurrency. With MyISAM, a DML statement will obtain an exclusive lock on the table, and while that lock is held, no other session can perform a SELECT or a DML operation on the table. Those two specific engines you asked about (InnoDB and MyISAM) have different design goals. MySQL also has other storage engines, with their own design goals. So, in choosing between InnoDB...

Code to Quit or Exit Android Application

Question I have an application where on the home page I have buttons for navigation through the application. On that page I have a button "EXIT" which when clicked should take the user to the home screen on the phone where the application icon is. How can I do that? Solution Android's design does not favor exiting an application by choice, but rather manages it by the OS. You can bring up the Home application by its corresponding Intent: Intent intent = new Intent ( Intent . ACTION_MAIN ); intent . addCategory ( Intent . CATEGORY_HOME ); intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ); startActivity ( intent ); I added the following code to my quitGame function in my MainActivity.java file and it worked /** Called when the user clicks the Quit Game button */   public void quitGame(View view)  { // Do something in response to button  Intent intent = new Intent(Intent.ACTION_MAIN);  intent.addCategory(Intent.CATEGORY_HOME);   intent.set...

How To Set Background Image in Android Application

Image
How To Set Background Image in Android Application I t's quite simple to set background image for your android application. Below I have an example code for this as well. Now, just follow the steps.. 1. Create a new android application in Eclipse. (click  here  if you need some help) 2. Copy your image file to /res/drawable directory. You will need to access the worksplace file directory directly. This should be in your C Drive eg. C:\users\<username>\workspace\<appname>\res\drawable-mdpi This directory should already have your app icon image file in it.    3. Open your  layout xml file activity_main.xml     and add below line;    android:background="@drawable/bg"   Here 'bg' is the name of the image without extension So final layout file will look like;

Value Stream Mapping Current State Mapping for a call center

Image
The first step in Value Stream Mapping is the Current State Mapping . In this step, the current process is documented as a diagram. The flow of the entity through the process is recorded. The volume of entities processed at each step of the process is also documented. Here is a sample current state diagram for a BPO call center that I created from a project that I worked on where "ticket" is the entity that passes through the process. The ticket volumes are recorder at each step. If you do not have the exact volumes, use a best guess estimate. The processing time and lead times are measured and calculated for each step. Click on the current state map image below to see full size image. This diagram was created using Microsoft Visio. Please leave any questions in the comments section below.

Free PMP exam simulator questions

Rita Mulcahy book recommends that anyone appearing for the PMP or CAPM certification test , take atleast two full PMP simulation exams to get a feel of the exam environment. The book recommends that unless you get atleast 70% in the two simulation tests, you are not ready to take the actual exam. So here's a site I found that offers a three day free simulation of PMP exam questions  http://free.pm-exam-simulator.com  They also offer 110 free questions at   http://www.free-pm-exam-questions.com. The following PMP® exam sample question is taken from the Free PMP Exam Simulator  ------------------------------ To calculate the total project cost, you use a technique that uses input values selected at random from probability distribution of possible cost. Which of the following options best describes this method? A) Automated Schedule Development   B) Monte Carlo Analysis   C) Schedule Risk Analysis   D) e-Pert -----------------------------...

Free PMP exam prep questions

Free PMP exam prep questions Preparing for the PMP exam, you should answer "tons of sample questions" in order to: gain routine with answering difficult questions review your current level of knowledge* find gaps that need to be filled compare your level of preparation with PMP exam requirements *: Score 75% or more in difficult questions and you are probably well prepared. See:  www.oliverlehmann.com/pmp-self-test/75-free-questions.htm#providers_ 75 free sample questions  as an online test with timer.   Links to  over 3,000 free sample questions (PMI members: 4,000)   For download: 175 more free sample questions  (PDF 1.4 MB). Note: Questions and references are aligned with the 5th Edition of the  PMBOK® Guide . German language aid  (PDF, 1 MB).   Further downloads: New test prep questions from time to time in the Google+ group “ PMP® Preparation ”. First chapter of my seminar handout   (see for application, preparation and examina...