Tuesday, 9 February 2016

Bundle Class in Xamarin.Android


bundle class.jpg
Hello All,
In this we will discuss about one of the most important part of the building blocks of Xamarin.Android, and that is Bundle class.
A Bundle class. in nothing but a mapping from values of String types to various other types that can be Parcelable. While transitioning between the states of life cycle of an Activity class, there is a built in functionality to save the states of the application or to save certain aspects of our application and that is with the help of Bundle but Bundle can also be used in many other ways as we saw earlier that while calling the OnCreate() Method, we passes a Bundle and one way to check whether your application is just started again or its just a initial run of your application, we can check that by the value of the Bundle which is initially null, when your application runs for the first time.
  1. protected override void OnCreate(Bundle initialBundle)
  2. {
  3.  base.OnCreate(initialBundle);
  4. }
So Bundle can also be think of a simple ways to save the state data and simple peace of data of primitive types. So for the example of that we can run below code and check the value of the bundle.
  1. protected override void OnSaveInstanceState(Bundle Initialbundle)
  2. {
  3.     Initialbundle.PutInt("Count", 1);
  4.     base.OnSaveInstanceState(Initialbundle);
  5. }


To view the Full Blog about Bundle Class in Xamarin.Android visit FindNerd.

Also visit Findnerd to read and post tech blogs and can also Ask tech Query over Findnerd.

Monday, 8 February 2016

How to play video on click of CollectionView Cell


uicollection view.jpg
Hi,
The tutorial will help you to set an image on collectionView Cell and when you click on any image play the video.
  1. //
  2. //  ViewController.m
  3. //  YouTubeVideo
  4. //
  5. //  Created by lalit on 4/7/15.
  6. //  Copyright (c) 2015 lalit. All rights reserved.
  7. //

  8. #import "ViewController.h"
  9. #import <XCDYouTubeKit/XCDYouTubeKit.h>

  10. static int count;

  11. @interface ViewController ()<UICollectionViewDataSource,UICollectionViewDelegate>

  12. {
Here is not the end. To view the full Blog about How to play video on click of CollectionView Cell visit Findnerd.

Sunday, 7 February 2016

How to Add Managers to Google Plus Page


GOOGLE.JPG

As you already know that most of the internet marketers hardly make you of Google plus platform for marketing any brand, product, local business or a community because Google plus social media channel is not so popular among online marketers and its user interface is less attractive. This is the only reason why most of the people are not much aware of the functionalities, settings and other aspects which are needed for managing this social account and as a result of this, people don't even know how to add or assign a manager role to any Google plus page. At the same time it is also true that Role of Google+ in Social media marketing platform provide huge benefits for the search ranking because this social media is Google’s product and Google give priorities to the content shared on Google Plus platform. So it is always recommended to use and know everything about Google Plus social media platform from marketing strategies to its settings and functionalities.

Add Manager to Google Plus Page

Step 1: Open your Google plus business page and Click on the Settings as shown.

To view the full Blogabout How to Add Managers to Google Plus Page visit FindNerd.

Also visit Findnerd for such more Blogs on Digital Marketing at our Digital Marketing Blogs Section at Nerd Digest.

Thursday, 4 February 2016

How to change Facebook profile picture


facebook.jpg
If you would like to change your facebook profile picture with php or jquery. You can use below code for the same.
Please download facebook.js from Facebook SDK.
  1. <script src="//code.jquery.com/jquery-latest.min.js"></script>
  2. <script src="//connect.facebook.net/en_US/all.js"></script>
  3. <script src="<?= BASE_URL ?>/js/facebook.js"></script>

  4. // Additional JS functions here
  5.   window.fbAsyncInit = function () {
  6.       FB.init({
  7.           appId: fbAppId, // App ID
  8.           status: true, // check login status
  9.           cookie: true, // enable cookies to allow the
  10.           // server to access the session
  11.           xfbml: true, // parse page for xfbml or html5
  12.           // social plugins like login button below
  13.           version: 'v2.0', // Specify an API version                  
  14.       });

  15.       // Put additional init code here

View full Blog about How to change Facebook profile picture at FindNerd.

Wednesday, 3 February 2016

Physics Engine in Games

3871.jpg

Over past few Years there is a boom in Gaming industry, we have seen and played some most anticipated games which have enlightened us not just because of their astonishing Graphics but due to their gameplay as well, and physics Engine has a vital role in the success of a game. Some of the popular game titles are FIFA, PES, Half Life, Portal, Crysis, Halo, Split second, Need for Speed, Batman, GTA,Call of Duty, and Battle field. If you have played these kind of games then you must have experienced the real world simulation in many aspects, Like cloth simulation, water and smoke simulation, collisions , Building destruction etc.

lets get in to details of a physics engine used in games today, As a Gamer we all want to experience a real world simulation and physics in games.

How it works-

In games most objects interact with each other like they do in real world not completely accurate but providing a perceptually correct approximation , In real world Its because of presence of certain forces and and energy forms due to which we see the physics play its part in nature, like falling objects due to gravity, recoil of gun after shooting due to Newtonian forces and so on.

Here is not the end… See full Article here about Physics Engine in Games

Also visit Findnerd for such more articles on Gaming, Unity 3D, etc.

ENABLE_BITCODE in xcode 7


bitcoin.jpg

Bitcode refers to an intermediate representation of a compiled program. The installation of iOS, tvOS, and watchOS apps by tailoring app delivery to the capabilities of the user’s particular device. Apple called this optimization,"app thinning". Note: Sliced apps are supported on devices running 9.0 and later; otherwise, the App Store delivers universal apps to customers. If you came across error like this:-
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

To view more about How to enable Bitcoin in Xcode-7 visit Findnerd.

Also visit Findnerd to read and post tech blogs and can also Ask tech Query over Findnerd.

Monday, 1 February 2016

One2One fields in Odoo-9


01-b.png

There is one field that since v6 and above was deleted and no longer used, ie one2one relations field.
If we tried to make it in v6 the error will definitely occurs. OpenERP provides a solution 'combine' to the field many2one but here there is little difference. If the automatic update feature table one2one is a 'destination' when we enter from the table 'source' while it did not happen on the field many2one.

For example you can see below code -

  1. class hr_employee(osv.osv):
  2.    _inherit = 'hr.employee'
  3.    _columns = {
  4.        'partner_id': fields.many2one('res.partner','Partner'),
  5.    }
  6.    def onchange_partner_id(self, cr, uid, ids, partner, context=None):
  7.        self.pool.get('res.partner').write(cr, uid, [partner], {'employee_id': ids[0]})
  8.        return True
  9.     
  10. hr_employee()
To view the full article about One2One fields in Odoo-9 please visit Findnerd.

You can also post tech blogs at Findnerd. Also visit Findnerd for such more tech Blogs like Android,Java, Javascript,C,C++,Ios Development Blogs etc.