Sunday, 30 November 2014

AUD/USD December 2014 Monthly Report

AUD Primary Cycles
 
As I've been saying for a while now, the AUD is heading down into the 2014 lows (now reached), and likely to follow a double Primary Trend into the 2015 Lows.
 
The 2015 lows will complete the double Primary wave pattern that will help under pin the AUD for a few quarters.

Friday, 28 November 2014

Create Android Options Menu Programatically

In this post we are going to learn about how to show an android menu without using a separate menu layout xml file. You can create a menu in two ways.
1. Create the menu by inflate an xml file located in the menu folder using the MenuInflater object.
2. Add the menu items dynamically (by writing code) to menu using the add() method.

Here I demonstrate how to add the menu items dynamically to an options menu.

Step 1:  Override the onCreateOptionsMenu in the MainActivity.java file.
  @Override  
public boolean onCreateOptionsMenu(Menu menu) {
// TODO Auto-generated method stub
}
Ads by Google


Step 2: Add each menu items to the menu using the add() method and the Menu object.
            add(arg1, arg2, arg3, arg4);
            The add method takes three arguments.
            arg1  =  Indicates the group id. You can pass Menu.NONE if there is no group available.
            arg2  =   Indicates the item id. 
            arg 3 = Indicates the order number in witch the item appear in the menu. You can pass                                      Menu.NONE if you not consider the item order.
            arg 4 = Indicates the title of the menu item.
 MenuItem it1 = menu.add(Menu.NONE, send_email, Menu.NONE, "Send Email");  
MenuItem it2 = menu.add(Menu.NONE, make_call, Menu.NONE, "Make Call");
MenuItem it3 = menu.add(Menu.NONE, send_cloud, Menu.NONE, "Send Cloud");

Step 3: Add an icon for the menu using setIcon( )  method.
 it1.setIcon(R.drawable.ic_action_email);  
it2.setIcon(R.drawable.ic_action_call);
it3.setIcon(R.drawable.ic_action_cloud);

Step 4: You can make the menu items visible on the Action bar using the setShowAsAction() method.
 it1.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);  
it2.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
it3.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);

Handling the click events

For handling the click events of the options menu, you need to override the onOptionsItemSelected() method. You can get the selected item id using the MenuItem object.
  @Override  
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
switch (item.getItemId()) {
case send_email:
Toast.makeText(getBaseContext(), "You select the email option ", Toast.LENGTH_SHORT).show();
return true;
case make_call:
Toast.makeText(getBaseContext(), "You select the call option ", Toast.LENGTH_SHORT).show();
return true;
case send_cloud:
Toast.makeText(getBaseContext(), "You select the cloud option ", Toast.LENGTH_SHORT).show();
return true;
default:
return false;
}

Here is the full source code
 package com.menutest;  
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
public class MainActivity extends Activity {
private static final int send_email = 0;
private static final int make_call = 1;
private static final int send_cloud = 2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// TODO Auto-generated method stub
MenuItem it1 = menu.add(Menu.NONE, send_email, Menu.NONE, "Send Email");
MenuItem it2 = menu.add(Menu.NONE, make_call, Menu.NONE, "Make Call");
MenuItem it3 = menu.add(Menu.NONE, send_cloud, Menu.NONE, "Send Cloud");
it1.setIcon(R.drawable.ic_action_email);
it2.setIcon(R.drawable.ic_action_call);
it3.setIcon(R.drawable.ic_action_cloud);
it1.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
it2.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
it3.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
switch (item.getItemId()) {
case send_email:
Toast.makeText(getBaseContext(), "You select the email option ", Toast.LENGTH_SHORT).show();
return true;
case make_call:
Toast.makeText(getBaseContext(), "You select the call option ", Toast.LENGTH_SHORT).show();
return true;
case send_cloud:
Toast.makeText(getBaseContext(), "You select the cloud option ", Toast.LENGTH_SHORT).show();
return true;
default:
return false;
}
}
}

create dynamic menu in android


                                  Click Here to view the video tutorial of this topic.



Thursday, 27 November 2014

Xonotic community frag movie and other FOSS arena FPS news

Very nice new movie from the Xonotic community:


It gives a pretty good idea about the vanilla game mode, although the very popular (some say too popular) "Minstagib" (one shot kills) and the total conversion mod Overkill (All new player-models and weapons, with team-spawn etc.) are also shortly shown.
Not shown are the popular vehicle mod and the recently added lightning gun (still WIP), but you can try everything yourself easily by getting the auto-downloader of the latest development build here.

As with most FOSS games, they are looking for more developers (& players) and if you have some cash to spare you can currently also pledge for the creation of some NPC characters for a single-player or COOP-mode here.

Speaking of FOSS crowd-funding, another great FOSS arena shooter, Red Eclipse this currently preparing a campaign for porting their somewhat aging Cube2 engine to the much nicer Tesseract (which is technically something like Cube3).
Oh and a new version (1.5) but still with the old engine should be out very soon ;)

Happy fragging!

Abdul Kalam Quotes on Work, Dreams and Life

Abdul Kalam is one of the most known Indian President among students of India. His popularity among young generation made him a living legend. He is well known as "Missile Man" of India. Here we are bringing some of the best Quotes of Dr. APJ Abdul Kalam about Work, Dreams, Life and Education. Some of them will must inspire you. If we follow the quotes of Abdul Kalam then it will lead to learning best from education and fulfilling all of our dreams with our hard work and living a quality life full of achievements.


Abdul Kalam Quotes on Work


  • Love your job but don’t love your company, because you may not know when your company stops loving you.
  • If you salute your work, you do not have to salute anybody. If you pollute your work, you have to salute everybody.
  • Thinking is the capital, Enterprise is the way, Hard Work is the solution.
  • Confidence and Hard-work is the best medicine to kill the disease called failure. It will make you a successful person.
  • Be active! Take on responsibility! Work for the things you believe in. If you do not, you are surrendering your fate to others.

Abdul Kalam Quotes on Dreams


  • Great dreams of great dreamers are always transcended who dream and work.
  • Dream is not what you see in sleep... is the thing which does not let you sleep.
  • You have to dream before your dreams can come true.

Abdul Kalam Quotes on Life


  • Life is a difficult game. You can win it only by retaining your birthright to be a person.
  • A Fool can become a genius when he understands he is a fool. But; A genius can become a fool when he understands he is a genius!
  • We should not give up and we should not allow the problem to defeat us.
  • LIFE and TIME are the world's best teachers. LIFE teaches us to make good use of TIME and TIME teaches us the value of LIFE.
  • Happiness, Satisfaction, and Success in life depend on making the right choices the winning choices, There are forces in life working for you and against you. One must distinguish the beneficial forces from the malevolent ones and choose correctly between them.
  • It is very easy to DEFEAT someone, but It is very hard to WIN someone.
  • When your signature becomes an autograph that's a success.
  • Difficulties in your life do not come to destroy you, But to help you realize your hidden potential and Power, Let difficulties know that you too are difficult.

The Abdul Kalam Quotes provided above are the best tricks to achieve success in life. If you follow them you will fulfill all of your dreams.

Wednesday, 26 November 2014

How to Replace a Word in complete Blogger Blog

Today i was struggling to find a way to search and replace a word in my complete blog. Actually i have a blog on blogger and i have used its name "*.blogspot.com" several times in various posts. Now i have purchased a domain name, so i want to change all appearances of "blogspot.com" to ".com" . Its a tough job if i have to change it in almost 100 posts manually.
So i was trying to find a trick to get do it using some app or plugin, but found nothing for blogger platform. When i was about to end my search and do it manually, i found something that worked for me.

I found an app developed by a software engineer "Adam Lewis" to do find and replace work for me. That app did this task for me within 5 minutes. Isn't it great ! But that app asks for the permission to access your google account to make changes in blogger. In the beginning i was hesitating as it could be possible h**k. But then i found that i can revoke the app access once the work is done. So i granted the permission to that app and completed my find and replace on blogger blog within 5 minutes. After that i  revoked the access of that app. I have explained this process in detail below.

How to Replace a Word in complete Blogger Blog


  • Copy and open the URL of the app in a new tab: http://www.adamwlewis.com/articles/blogger-find-replace
  • Ensure that you have opened it in the same browser in which you blogger account is logged in.
  • You may read the app page that i have provided to ensure that it will do the same task.
  • Now go to "Transfer me to Google so I can authorize this tool" . Once you visit this, it will ask you to authorize it to make changes to your blogger account through google access.
  • Once you have authorized it, then you can choose the blog name from a dropdown list and make find and replace to your blogger blog. It might take some time depending on the size and number of posts in your blog.
  • After it done go to your google account and open the security setting. I have provided its direct URL: https://security.google.com/settings/security/permissions 
  • From this page you can revoke the access you have provided to that app.
  • I hope now your work is done. 

Enjoy blogging on Blogger.

Note: You can't undo the changes you have made using the above tool, unless you are smart enough to run find and replace in reverse order if possible. 

Monday, 24 November 2014

Samsung Ponders Executive Shakeup As Galaxy S5 Sales Fall 40% Short Of Expectations

Samsung is looking long and hard at its top executive team with changes in mind, the Wall Street Journal reports, following Galaxy S5 devices sales that have underperformed company expectations by as much as 40 percent. The total sales for the S5, this year’s Samsung flagship device, are at around 12 million, compared to 16 million for the Galaxy S4.

As a result of the lacklustre performance, Samsung is said to be looking at stripping co-CEO and mobile leader J.K. Shin of his chief executive title, and putting him solely in charge of the mobile unit. Overarching mobile wing supervision would then fall to co-CEO B.K. Soon, who currently heads up Samsung’s home appliance and TV business, which continues to be a strong area for the Korean company.



A more unified management team could help bring together the various elements of Samsung’s business, including its recent SmartThings acquisition with its Galaxy line of devices. And while Samsung would indeed be simplifying its executive team, it wouldn’t be streamlining things entirely – a third co-CEO, Kwon Oh-hyon, who overseas the company’s semiconductor and display panel supply businesses, would reportedly remain where he is.

Samsung is said to still be selling strong in the U.S., but other key markets, including China, are seeing negative growth in new device sales. The firm needs to do something to shake up its mobile business – despite the fact that it’s still a market leader, short-term growth is trending downwards and mid- to long-term performance has seen stagnating sales at best.

Part of Samsung’s answer to this problem will reportedly be paring back its Galaxy line to simplify costs and choices for consumers. Diversification of its offerings to suit different sub-groups of market segments has helped Samsung grow its business in the past, but at this point, its ever-expanding lineup of devices could be doing more damage than good in terms of diluting the Galaxy brand overall, and leaving consumers unsure of where to look in choosing their next hardware upgrade.

Article resource:  Samsung Ponders Executive Shakeup As Galaxy S5 Sales Fall 40% Short Of Expectations

Sunday, 23 November 2014

Samsung Galaxy Note 4 vs iPhone 6 Plus: Optical Image Stabilization comparison


Both Samsung and Apple scored a first with their new phablets: Optical Image Stabilization. That's right, both the Samsung Galaxy Note 4 and the iPhone 6 Plus are equipped with the gizmo, promising to minimize and correct for shake and tremor during video capture. 

Sure, an OIS module's usefulness extends beyond just video – if the software is optimized for it, it'll also free up the camera to go for slower shutter speeds, and that's beneficial when shooting in dark environments, as the tiny sensor can use any help it can get taking in as much light as possible. This is achievable, because the stabilizing contraption will essentially nullify tremor in your hands (yes, they tremble even if you think you're keeping perfectly still), and thus, side-step blur. In other words, while OIS is, strictly speaking, hardware, it is of little use if it receives no proper support from the camera software. 

Starting with Samsung, the company calls its particular implementation "Smart OIS", which is just a marketing term that refers to the joined efforts of the aforementioned widget and Digital Image Stabilization on the software side. Much the same arrangement is also true with the iPhone 6 Plus – OIS is implemented alongside software stabilization, which Apple chose to call Cinematic Video Stabilization.

So how do these two handle themselves, and is one better than the other? The truth is that they're about equally good in stabilizing shaky footage, but they different in terms of the kind of scenarios they handle best. For example, in our experience, the Note 4 was better at minimizing small to medium amounts of shake, while the iPhone 6 Plus outdid it when real jerky movements were involved (arguably less common). Even with that distinction, though, we still think that we have a situation close to a stalemate at our hands, but we ended up liking the Note 4 just a bit more. Take a look.