Minggu, 17 Juli 2016

Top 50 Xamarin Cross Platform Development Interview questions (C# - Xaml)

Introduction:
It is time to learn xamarin cross platform development and people are already started in so many organizations, because of we can deliver native iOS, Android, and Windows apps using existing skills, teams, and code(C#, xaml ) with free of cost. Many company's are started hiring the Xamarin developers, and if you are good at xamarin, they are ready to give bigger packages for you as much as possible. If you are looking for Xamarin developer position in new company and you may need to face interview questions on Xamarin Technology. Here I am going to explain you most common interview questions with answers and also please correct me if any wrong content found in this article. Also pleases note that for accuracy purpose I visited Xamarin official website and googling as well to adapted some content.

1. What is the difference between Native App and Cross Platform APP?
  • Native App: If we want to develop native apps, we need to choose the specific native language (C#, Objective-C, Swift, and Java) for developing specific native app for Windows, Android, iOS.
  • Cross Platform App: This is the way to develop all three mobile apps using single code base wrapped in a native application layer, but it always requires customization of interfaces to native languages.
2. What is Xamarin?
It is cross platform development technology, where we can build native user interfaces for iOS, Android and Windows Phone using single codebase with C#.

3. Xamarin history?
  • Xamarin is a Microsoft-owned San Francisco, California based software company founded in May 2011 by the engineers that created Mono, Mono for Android and MonoTouch .
  • Novell had granted a perpetual license for Mono on july 2011 for MONO 
  • On May 16, 2011: Miguel de Icaza announced on his blog that Mono would be developed and supported by Xamarin,
  • December 2012, Xamarin released Xamarin.Mac which allows developers to build C#-based applications for the Apple OS X operating system and package them for publishing via the Apple App Store.
  • Xamarin 2.0 was released in February 2013 Xamarin.Android and Xamarin.iOS that make it possible to do native Android, iOS and Windows development in C#, with either Visual Studio or Xamarin Studio.
  • Xamarin.forms: Introduced in Xamarin 3 on May 28, 2014 and allows one to use portable controls subsets that are mapped to native controls of Android, iOS and Windows Phone.
  • On February 24, 2016: Microsoft announced it signed a definitive agreement to acquire Xamarin
  • On March 30, 2016: Microsoft acquired the xamarin. And made it for all with free of cost.
4. Mono vs. Monodevelop vs Xamarin
Mono: It is a framework and an open source implementation of Microsoft’s .NET Framework based on the open standards of European Computer Manufacturer's Association (ECMA) for the C# language and the Common Language Runtime. And Mono allows C# developers to write cross platform code targeting Windows, Mac OS X, Linux, Android, and iOS. 
MonoDevelop: It is an open source integrated development environment (IDE) for Linux, OS X, and Windows. Its primary focus is development of projects that use Mono and .NET frameworks.
Xamarin: a subsidiary of Microsoft - is a company founded by the engineers who created Mono. Xamarin is the primary maintainer and commercial sponsor of Mono. It provides professional developer tools that make cross platform code easier to author, test, and maintain.

5. What are the programming languages that support Xamarin Development?
  • Xamarin is unique in this space by offering a single language – C#, class library, and runtime that works across all three mobile platforms of iOS, Android, and Windows Phone (Windows Phone’s native language is already C#)
  • Also offers xaml support for creating user interface.
6. Why Xaml in Xamarin.Forms?
  • XAML(Extensible Application Markup Language) allows developers to define user interfaces in Xamarin.Forms applications using markup rather than code.
  • XAML defines the visual appearance of a UI, and an associated code-behind file defines the logic. The UI design can be adjusted without necessarily making changes to the logic in code-behind. XAML in this role simplifies the workflow between individuals who might have a primary visual design responsibility and individuals who are responsible for app logic and information design.
7. What are disadvantage of Xaml in Xamarin.Forms?
  • XAML cannot contain code. All event handlers must be defined in a code file.
  • XAML cannot contain loops for repetitive processing. (However,ListView —can generate multiple children based on the objects in its ItemsSource collection.)
  • XAML cannot contain conditional processing (However, a data-binding can reference a code-based binding converter that effectively allows some conditional processing.)
  • XAML generally cannot instantiate classes that do not define a parameterless constructor. (However there is sometimes a way around this restriction.)
  • XAML generally cannot call methods. (Again, this restriction can sometimes be overcome.)
8. What are the IDE's we can use for Xamarin App Development?
Xamarin Studio: This is Xamarin’s C# developer environment that runs on both Windows and Mac. Xamarin Studio has many of the features of Microsoft’s Visual Studio and uses exactly the same formats as Visual Studio: solutions (.sln) and C# projects (.csproj).
Visual Studio: Xamarin offers a Visual Studio extension/plugin for visual studio 2012, visual studio 2013 update 1. And now Xamarin development is directly available from Visual studio 2015.

9. What was the major advantage of Xamarin Development?
  • We can deliver native iOS, Android, and Windows apps using existing skills, teams, and code(C#, xaml )
  • We can take full advantage of Native API’s with Xamarin Technology . And Xamarin.Forms elements map to native controls and behaviors
  • Xamarin Component Store allows adding high-quality components to your app directly from your IDE, including controls, web service APIs and more.
  • PCL/ Shared projects makes very easy for developers to share the same code base across different projects.
10. What are difference between Xamarin Studio and Visual Studio?
Notes:
  • We can't create Windows Phone, Windows & UWP from Xamarin Studio.
  • Xamarin Studio in Mac can allows you to develop iOS & Android apps.
  • Xmarin Studio in Windows can allows you to develop Android apps only. And it encourage Windows users to move to Visual Studio.
  • Xamarin for Visual Studio supports any VS 2015, VS 2013 Update 2 and Visual Studio 2012 with non-Express editions. And visual studio can't install on Mac machine.
  • To test iOS app on Windows OS with VS, must be a Mac computer accessible on same network.
  • To develop Xamarin.Forms apps for the Universal Windows Platform (UWP) requires Windows 10 with Visual Studio 2015
11. What are the life cycle's of Xamarin.forms app development?
Life-Cycle means a specific sequence of the application from start to finish of the application. So there are three important states in the life cycle of a Xamarin app development.
OnStart: Called when the application starts.
OnSleep: Called each time the application goes to the background.
OnResume: Called when the application is resumed, after being sent to the background.
Note:
There is no method for application termination. Under normal circumstances (ie. not a crash) application termination will happen fom the OnSleep state, without any additional notifications to your code.

12.How many ways we can create Xamarin applications?
There are two ways to deliver native iOS, Android, and Windows apps using Xamarin Technology
Traditional Xamarin approach: This approach can provide direct access to platform-specific API’s. And we can create platform specific apps such as using Xamarin.iOS for iOS applications, using Xamarin.Android we can create Android applications.
Xamarin.forms: This architecture is the same as that of traditional cross-platform apps. The most used method is to implement Portable Libraries or Shared Projects to save the shared code, and then create specific applications for each platform that will consume this shared code. 

13. When to use Xamarin.Forms vs Xamarin Native?
Xamarin.Forms:
  • Apps that require little platform-specific functionality.
  • Apps where code sharing is more important than custom UI.
Xamarin.IOS,Xamarin.Android:
  • Apps that require specialized interactions.
  • Apps with highly polished design.
  • Apps that use many platform-specific APIs.
  • Apps where custom UI is more important than code sharing.
14. What are different extension output files generated from xamarin.forms?
If we run the Xamarin app, it can generate following application packages for different platforms
.xap/.Appx for windows phone 8, Windows, UWP
.ipa file for IOS
.apk file for Android

15. What are the different application package running modes in Xamarin?
When you compile an application, you usually choose between below two modes:
Debug: Debug mode pads the executable file with extra information used for debugging purpose. After your application is bug-free and feature-complete, there's no longer any need to keep the debug information.
Release: Compiling in Release mode gives you a more compact (and even slightly faster) executable that doesn't include unnecessary internal debugging symbols
Note: Packages should be in release mode, which would be provided to an App store.

16. How does Xamarin.Android(Mono for Android) work?
On Android, Xamarin ships a fully functional implementation of the .NET runtime, called Mono, bundled with your app so that your code executes with all of the power of C# and .NET, including JIT-compilation, memory management, reflection, and the .NET base class libraries. Developers can use any native features by interacting with .NET class libraries that provide one-to-one mappings to all of the native APIs on Android.

17. What is the difference between Xaml & axml in Xamarin Technology?
  • AXML and XAML are two different XML specifications.
  • AXML is just supported/available for Xamarin.Android.
  • XAML is the way Xamarin Forms could standardize Cross Platform UI based on XML specification.
  • XAML is the way Xamarin Forms could standardize Cross Platform UI based on XML specification.
  • If you are using native Xamarin Android you will do UI using axml, if using Forms then using XAML.
18. How does Xamarin.IOS work?
On iOS, Xamarin uses Mono, a fully functional implementation of the .NET runtime, to fully compile your app into a native ARM executable ahead of time (AOT) so that your code executes with all of the power of C# and .NET, including memory management, reflection, and the .NET base class libraries. Developers can use any native features by interacting with .NET class libraries that provide one-to-one mappings to all of the native APIs on iOS, while complying with Apple's security restrictions which prevent execution of dynamically generated code on device.

19. What is the project structure of Xamarin.Forms?
If we create App with xamarin.forms project using xamarin studio or visual studio. Then created project will have bellow structure:
  • Shared: Shared Project containing the code common to all projects and it will be either PCL or Shared Project.
  • AppAndroid: Xamarin.Android application project.
  • AppiOS: Xamarin.iOS application project.
  • AppWinPhone: Windows Phone application project.
  • AppWindows: Windows application project.
  • AppUWP: Universal Windows Platform application project.
20. What are the different code sharing techniques in xamarin.forms?
There are two alternative methods for sharing code between cross-platform applications:
  • Portable Libraries(PCL)
  • Shared Projects
The goal of a code-sharing strategy is to support the architecture, where a single codebase can be utilized by multiple platforms.

21. Difference between Portable Class Library (PCL) & Shared Projects?
Portable Class Library (PCL):

- Produce libraries that can be shared across multiple platform.
- Targeting specific platform includes interfaces
- Refactoring operations always update.
 Shared Projects:

- Shared code can be branched based on the platform using compiler directives( eg. using #if __ANDROID__, #if __IOS__, #if WINDOWS_PHONE_APP, #if WINDOWS_APP..etc)
- No output assembly.
- Refactoring operations ,not update automatically.

22. What does Pages in Xamarin.Forms?
The Page class is a visual element that occupies most or all of the screen and contains a single child. And pages in xamarin.forms are directly mapped to like below:
  • In iOS  it is a View Controller
  • In Windows Phone it is a Page.
  • In Android it is a Activity.
23. What are the different kinds of Pages in Xamarin.Forms?
Fortunately Xamarin.Forms support multiple page representations, And every representation is having its own purpose like below:
  • ContentPage: A Page that displays a single View, often a container such as a StackLayout or a ScrollView.
  • MasterDetailPage: A Page that manages two panes of information.
  • NavigationPage: A Page that manages the navigation and user-experience of a stack of other pages.
  • TabbedPage: A Page that allows navigation between children pages, using tabs.
  • TemplatedPage: A Page that displays full-screen content with a control template, and the base class for ContentPage.
  • CarouselPage: A Page allowing swipe gestures between subpages, like a gallery.
24. What are the layout controls available in Xamarin.Forms?
Layout is the process of sizing and positioning child elements in UI.
  • ContentPresenter: A layout manager for templated views. Used within a ControlTemplate to mark where the content to be presented appears.
  • ContentView: An element with a single content. ContentView has very little use of its own. Its purpose is to serve as a base class for user-defined compound views.
  • Frame: An element containing a single child, with some framing options. Frame have a default Xamarin.Forms.Layout.Padding of 20.
  • ScrollView: An element capable of scrolling if it's Content requires.
  • TemplatedView: An element that displays content with a control template, and the base class for ContentView.
  • AbsoluteLayout: Positions child elements at absolute requested positions. User assigned anchors and bounds defines the position and size of the control.
  • Grid: A layout containing views arranged in rows and columns.
  • RelativeLayout: A Layout that uses Constraints to layout its children.
  • StackLayout: A Layout that positions child elements in a single line which can be oriented vertically or horizontally. This layout will set the child bounds automatically during a layout cycle. User assigned bounds will be overwritten and thus should not be set on a child element by the user.
25. What is Views?
Views are commonly known as controls of widgets. And they can refer to visual objects such as Label, Button, Entry, Image, BoxView, ListView, TableView..etc. All UI elements are typically are sub-classes of View.

26. What is is the difference between ListView & TableView?
  • The ListView and TableView controls are so similar, you can think of them as a single control. The major difference between the two is the manner in which they lay out their items, and it’s easy to change the layout so each control emulates the other.
  • The ListView control displays its data stacked vertically, much like a standard listbox. Use this control to display an ordered list of data, especially long lists that require scrolling like a list of email messages, a list of contacts, or search results.
  • The TableView control displays its data stacked horizontally in rows (although you can alter this behavior and have it displayed in columns first, as well). You use this control when you need more space for rich visualization of each item to be displayed.
  • One of the big differences is ListView provides you a ItemsSource and a Itemtemplate and TableView does not. So items must be added as children manually.
27. How to draw rectangle in Xamarin.Forms?
BoxView is used to draw a solid colored rectangle. So below source code can create Accent colored rectanlge with width ->200 & Height->100
  1. <BoxView Color="Accent"  WidthRequest ="200"  HeightRequest = "100"/>  

28. What is the difference between Editor & Entry?
Both views are helpful for user to enter text, but there is a small difference is Entry only has one line, whereas a Editor usually has multiple lines that allows user to press ENTER.

29. What is Cell in Xamarin.Forms?
Simple it is not a visual element, but it just describes a template for creating a visual element. And one important note is that Cells are elements designed to be added to ListView or TableView controls.

30. What is difference between Entry and EntryCell in Xamarin.Forms?
  • Entry is a visual element, where user can enter single line text. 
  • EntryCell is not visual element, it is subtype of Cell and it describes a template for label and a single line text entry field. It is normally for use in a ListView or TableView.
31. What is difference between Margin & Padding property?

  • Margin is applied to the outside of you element hence effecting how far your element is away from other elements.
  • Padding is applied to the inside of your element hence effecting how far your element's content is away from the border.
32. How to display alert in Xamarin.Forms?
It is very common UI task is displaying an alert or asking a user to make a choice. So to display alert in Xamarin.Forms, we can use the DisplayAlert method on any Page like below:
  1. DisplayAlert ("Alert", "You have been alerted", "OK");  

33. What is difference between DisplayAlert and DisplayActionSheet?
  • Xamarin.Forms has two methods on the Page class for interacting with the user via a pop-up: DisplayAlert and DisplayActionSheet. They are rendered with appropriate native controls on each platform.
  • DisplayAlert presents an alert dialog to the application user with a single cancel, and it does not having importance to collect information from the user.      public Task DisplayAlert (String title, String message, String cancel) 
  • DisplayActionSheet displays a native platform action sheet, allowing the application user to choose from several buttons. Example: await DisplayActionSheet ("ActionSheet: SavePhoto?", "Cancel", "Delete", "Photo Roll", "Email");  
34. Why we need write platform specific code in Xamarin Forms?
Xamarin Forms can almost provides 90-95% of share code for all three mobile platform projects (Windows, Android, iOS). However, there are going to be cases where you need to get at something that really isn’t generic, something that’s done a little differently on each platform. That could be something relatively significant (like a custom “renderer”) or something as simple knowing the platform-specific path for local storage, geolocation,text-to-speech..etc.

35. How to write platform specific code in PCL project of Xamarin.Forms?
We already know compiler directives concept (#ifdef option) is not available in PCL . But in alternative we have majorly there are three ways to create platform specific code in PCL project.
  • DependencyService: It can allows apps to call into platform-specific functionality from shared code. This functionality enables Xamarin.Forms apps to do anything that a native app can do.
  • Device: It is a class contains a number of properties and methods to help developers customize layout and functionality on a per-platform basis. (Ex:Device.OnPlatform, Device.OS, Device.Idiom..etc)
  • Custom Renderers: By default each page, layout, and control in xamarin.forms are rendered differently on each platform, using a Renderer class that in turn creates a native control, arranges it on the screen, and adds the behavior specified in the shared code. But using Custom renderers, developers can be used for small styling changes or sophisticated platform-specific layout and behavior customization.
36. How does DependencyService work in Xamarin.Forms?
DependencyService can useful for accessing native mobile features (local storage, geolocation,text-to-speech..etc). But we need to follow below four steps to use DependencyService:
  • Interface: The required functionality is defined by an interface in shared code.
  • Implementation Per Platform: Classes that implement the interface must be added to each platform project.
  • Registration: Each implementing class must be registered with DependencyService via a metadata attribute. Registration enables DependencyService to find the implementing class and supply it in place of the interface at run time.
  • Call to DependencyService: Shared code needs to explicitly call DependencyService to ask for implementations of the interface.
37. How does Custom Renderers work in Xamarin.Forms?
Custom Renderers can be used for small styling changes or sophisticated platform-specific layout and behavior customization. But we need to follow below three steps:
  • Create a subclass of the renderer class that renders the native control.
  • Override the method that renders the native control and write logic to customize the control. Often, the OnElementChanged method is used to render the native control, which is called when the corresponding Xamarin.Forms control is created.
  • Add an ExportRenderer attribute to the custom renderer class to specify that it will be used to render the Xamarin.Forms control. This attribute is used to register the custom renderer with Xamarin.Forms.
Below image represents steps for Customizing an Entry with Custom Renderer
38. How to use Device.OnPlatform in xaml and C#?
Device.OnPlatform is a generic method that has three optional parameters: iOS, Android, and WinPhone. It can be used to provide platform-specific values. For example if we want to set different padding values for different platform we can use like below:
In Xaml:

  1. <ContentPage.Padding> 
  2. <OnPlatform x:TypeArguments="Thickness" iOS="0, 20, 0, 0" Android="0" WinPhone="0"/> //left and right padding: 0; top padding: 20 (only on iOS)  
  3. </ContentPage.Padding>  
In C#:
On page constructor
  1. Padding = new Thickness (0, Device.OnPlatform(20,0,0), 0, 0);  //left and right padding: 0; top padding: 20 (only on iOS)  

39. What are list of compiler directives available in Shared Asset Project(SAP) ?
Compiler directives are only available in Shared projects and not in PCL. And these are useful to write platform specific code using C# preprocessor directives #if, #elif, #else, and #endif with conditional-compilation symbols defined for the three platforms, as list of compiler directives shown below:
  • __IOS__ for iOS
  • __ANDROID__ for Android
  • WINDOWS_UWP for the Universal Windows Platform
  • WINDOWS_APP for Windows 8.1
  • WINDOWS_PHONE_APP for Windows Phone 8.1
For example, to get operating system in windows phone 
  1. #if  WINDOWS_PHONE_APP  
  2.   
  3. EasClientDeviceInformation devInfo = new EasClientDeviceInformation(); 
  4. versionLabel.Text = devInfo.OperatingSystem; //To get device operating system.
  5.  
  6. #endif
40. What is Data Binding in Xamarin?
  • Data binding is a technique to automatically synchronize a user interface with its data source. When a binding is established and the data or your business model changes, then it reflects the updates automatically to the UI elements and vice versa. 
  • Data binding connects two objects, called the source and the target. The source object provides the data. The target object, which must be a bindable property, will consume (and often display) data from the source object. It is also possible to bind, not to a standard data source, but to another element on the page.
41. What are different type of Data Binding modes in Xamarin?
Data binding connects two objects, called the source and the target. So the relationship between target and source is defined by members of the BindingMode enumeration and there is four kinds of binding modes are available in Xamarin.Forms.
  • Default (Optional & not considered)
  • OneWay — changes in the source affect the target (normal).
  • OneWayToSource — changes in the target affect the source.
  • TwoWay — changes in the source and target affect each other.
Note: If you don’t specify anything, the default binding mode is OneWay

42. What are the different scenarios to use Data Binding in Xamarin.Forms?
Not only with data source, we can also use Data Binding concept in various scenarios like below:
*View-to-View Bindings: This is the scenario, when we want to link properties of two views on the same page. In this case, you need to set the BindingContext of the target object using the x:Reference markup extension. 
*Backwards Bindings: A single view can have data bindings on several of its properties.
*Binding with Model: Here the scenario is like, a view property is binding with specific class object.
*Binding with Collections: It is scenario, where we want to bind list of objects to view. For example ListView defines an ItemsSource property of type IEnumerable, and it displays the items in that collection.

43. How to make View-to-View Data Binding in Xamarin.Forms with Xaml?
Sometimes we may need to link one property of view with another property of view. For example below Xaml program can describes the scenario is like when we want to control Opacity value of Lable with Silder control Value. 
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="CustomEntry.ViewtoViewBinding">  
  3.     <StackLayout VerticalOptions="Start" Padding="20,70,20,0" >   
  4.         <Label Text="Lable Opacity Demo" FontSize="Large" VerticalOptions="CenterAndExpand" HorizontalOptions="Center"  Opacity="{Binding Source {x:Reference Name=slider}, Path=Value}" />  
  5.         <Slider x:Name="slider" VerticalOptions="CenterAndExpand" />   
  6.     </StackLayout>  
  7. </ContentPage> 

44. Why we need to use Model-View-ViewModel(MVVM) pattern in Xamarin?
The Model-View-ViewModel pattern can be used on all XAML platforms. Its intent is to provide a clean separation of concerns between the user interface controls and their logic.


Benefits:
  • During the development process, developers and designers can work more independently and concurrently on their components. The designers can concentrate on the view, and if they are using Expression Blend, they can easily generate sample data to work with, while the developers can work on the view model and model components.
  • The developers can create unit tests for the view model and the model without using the view. The unit tests for the view model can exercise exactly the same functionality as used by the view.
  • It is easy to redesign the UI of the application without touching the code because the view is implemented entirely in XAML. A new version of the view should work with the existing view model.
  • If there is an existing implementation of the model that encapsulates existing business logic, it may be difficult or risky to change. In this scenario, the view model acts as an adapter for the model classes and enables you to avoid making any major changes to the model code.

45. What is use of ICommand in Xamarin.Forms?
Typically, when you write an application without using the MVVM pattern, to manage the user’s interaction with the user interface (for example, he clicks on a button) you subscribe to a event handler: this way, a new method will be generated in code (C#) behind, which will contain the code that will be execute when the event is raised.

This approach is that it creates a strong connection between the View and the code: event handlers can be managed only in code behind, but you can’t simply move it to a ViewModel. The solution is to use commands, which are special objects (that implement the ICommand interface) that define the operation to perform when the command is executed.

46.What is NuGet and how it can help in Xamarin App Development?
NuGet is the most popular package manager for .NET development. It is built in to Xamarin Studio 5 and Visual Studio. You can easily search for and add packages/third party libraries to your Xamarin.Forms using either IDE.

47. What does behaviors in Xamarin.Forms?
Behaviors are very important and useful to add functionality to user interface controls without having to subclass them. Instead, the functionality is implemented in a behavior class and attached to the control as if it was part of the control itself. For example adding an email validator to an Entry, controlling an animation, adding an effect to a control.
Xamarin.Forms supports two different styles of behaviors:
  • Xamarin.Forms behaviors: classes that derive from the Behavior or Behavior<T> class, where T is the type of the control to which the behavior should apply.
  • Attached behaviors: static classes with one or more attached properties

48. What are uses of DataPages in Xamarin.Forms?
Data pages allow developers to quickly and easily consume a supported data source and render it using built-in UI scaffolding that can be customized with themes.
Note: Xamarin.Forms DataPages were announced at Evolve 2016

49.How to increase rows & columns space of Grid in Xamarin.Forms?
Yes, we can set space between rows in the Grid using RowSpacing. And also we can sets the distance between columns in the Grid using ColumnSpacing .
  1. <Grid Name="GridSpaceDemo" RowSpacing="3" ColumnSpacing="2"  >  
  2.           <Grid.RowDefinitions>  
  3.             <RowDefinition Height="Auto"/>  
  4.             <RowDefinition Height="Auto"/>  
  5.           <RowDefinition Height="Auto"/>  
  6.           </Grid.RowDefinitions>  
  7.       <Grid.ColumnDefinitions>  
  8.         <ColumnDefinition Width="Auto"/>  
  9.         <ColumnDefinition Width="Auto"/>  
  10.         <ColumnDefinition Width="Auto"/>  
  11.       </Grid.ColumnDefinitions>  
  12.           <!--Grid child items-->  
  13.     
  14.   </Grid>  

50.What is the difference between Modal pages and Modeless pages?
Modal Page: We’ll use modal pages when your application needs some information from the user and you don’t want the user to return to the previous page until that information is provided. Below C# code is used to navigate to specific page name is DetailPage. 
  1. async void ModelPageNavigation ()  
  2. {  
  3.    
  4.     await Navigation.PushModalAsync (new DetailPage ()); //Navigate to Details Page  
  5. }  
Modeless Page: The difference between modal and modeless pages mostly involves the user interface that the operating system provides Back button on the page to return back to the previous page.


  • async void ModelessPageNavigation ()  
  • {  
  •    
  •     await Navigation.PushAsync (new DetailPage ()); //Navigate to Details Page, will create Back button navigation page  
  • }  


  • In next article, I will explain more Xamarin advanced interview questions. And also suggested to read all previous UWP, Windows Phone (Both silverlight and WinRT) interview questions from below links

    1. Top Windows 10 UWP App Development Interview questions (C#-Xaml) – Part1
    2. Top Windows Phone interview questions c# - Part1
    3. Top Windows Phone interview questions c# - Part2 
    4. Windows App Development Tips:Top Basics for Beginners(C#-XAML)
    All the very best for your interview :)

    FeedBack Note:
    Please share your thoughts,what you think about this post,Is this post really helpful for you?I always welcome if you drop comments on this post and it would be impressive.

    Follow me always at @Subramanyam_B
    Have a nice day by  :)

    Selasa, 17 Mei 2016

    Windows App Enterprise Code Signing: Install & Export Symantec Certificate

    Introduction:

    Enterprise or company distribution is the great feature introduced from Windows Phone 8 is the ability to self-publish and distribute applications within an organization. Users can install apps published by their company only after they enroll their phones for app distribution from their company, and only users that are enrolled for app distribution from the company can install the company apps.
    There are some general steps that companies must follow to establish a company account, enroll devices, and distribute apps to their enrolled devices. The following sections provide an overview of this process:

    • The company registers a company account on Windows Phone Dev Center and acquires an enterprise certificate from Symantec and export it to local machine.
    • The company creates an application enrollment token (AET).
    • The company develops a Company Hub Windows app.
    • The company prepares their apps for distribution by signing with Symantec Certificate.
    • The company need to deploy the signed build in MDM/Mobile Iron, (or) they can also upload it to trusted website (or) email.
    • Employees (or other users) enroll for company app distribution on their phones(Using Apps@Work) and install the company apps by using the Company Hub app.
    However in this article, I am going to explain you about below concepts:
    1.Register with windows phone dev center account and acquiring the enterprise certificate
    2. How to Install & Export Symantec Certificate 
    • Installing the Root and CA certificates
    • Installing Symantec Enterprise certificate
    • Export (or Backup) Symantec certificate for Enterprise Code Signing
    1. Register with windows phone dev center account and acquiring the enterprise certificate
    In order to acquire an enterprise-signing certificate, you first need a Windows Phone Store account. Sign up for a new account at dev.windows.com/join, or access your account at dev.windowsphone.com/dashboard. Be aware of a catch here: Your account needs to be a company account, not an individual -- make sure you select the right box, as it's extremely difficult to change it at a later stage.
    Once you have created this developer account you can buy an Enterprise Mobile Signing Certificate from Symantec. Currently we only support Symantec certificates to sign your corporate Windows Phone applications.
    A code-signing certificate can only be purchased from Symantec. You'll need both your Symantec Publisher ID and the Primary Email Address of your Windows Phone Store account. These can be found by logging into your Windows Phone Store account and navigating to the account tab

    Once you have paid Symantec they also do some validations and they will create the certificate for you and you will get confirmation email.

    And Make sure you request and download the certificate from the same machine with same browser (preferred browser is Internet explorer) where you made the certificate request. And the certificate is valid for 1 year.
    Click on the links in the certificate confirmation e-mail to install both the root and intermediary certificates. These need to be added to the Trusted Root Certification Authorities and Intermediate Certification Authorities stores, respectively, on the machine, not the default store, on a PC.

    2. How to Install & Export Symantec Certificate 

    We have to follow below three major steps to make Symantec certificate request, and export it to your local computer.
    • Installing the Root and CA certificates
    • Installing Symantec Enterprise certificate
    • Export (or Backup) Symantec certificate for Enterprise Code Signing
    Step 1. Installing the Root and CA certificates
    Your Enterprise certificate is issued by a private Microsoft Root and CA, and is not inherently trusted by your computer. Please ensure that you install and trust the Root and CA certificates before installing your Enterprise certificate (newer Windows operating systems will not allow you to install your Enterprise certificate properly if the issuing chain is not already trusted).

    To Install the Symantec Enterprise Mobile Root for Microsoft certificate:
    1. Download the Root certificate: Symantec Enterprise Mobile Root for Microsoft.cer Save the file to your Desktop for easy retrieval (You may download to any directory but remember where it goes.)
    2. If you are using Windows 7 OS click the Windows Start buttonIn the Search Programs and Files field, type mmc and click Enter (or) if it is windows 8.1 OS click (Windows Start button +R ) and type mmc . And you may need to click Yes to confirm that you wish to allow changes to your computer.
    3. A Console1 - [Console Root] window will appear
    4. Click File > Add/Remove Snap-in
    5. From the Available snap-ins list, click Certificates Click Add > Computer account  > Next >  Finish > Ok.
       NOTE: You may not be prompted to select an account.  If not, just click Ok.
    6. From the left pane, under Console Root in blue, expand Certificates (Local computer or current user) Expand Trusted Root Certification Authorities Right-click Certificates > All Tasks > Import A certificate import wizard will appear Click Next. 
    7. Click Browse and browse to the location of the Symantec_Enterprise _Mobile_Root_for_Microsoft.cer which is located in your desktop.
      Double-click on the file (or click and Open) Click Next > Next > Finish > Ok
    8. You may close the Console1 window.  Click No unless you wish to save the setup
    To Install the Symantec Enterprise Mobile CA for Microsoft certificate:
    1. Download the Root certificate Symantec Enterprise Mobile CA for Microsoft.cer Save the file to your Desktop for easy retrieval (You may download to any directory but remember where it goes.)
    2. If you are using Windows 7 OS click the Windows Start buttonIn the Search Programs and Files field, type mmc and click Enter (or) if it is windows 8.1 OS click (Windows Start button +R ) and type mmc. And you may need to click Yes to confirm that you wish to allow changes to your computer.
    3. A Console1 - [Console Root] window will appear
    4. Click File > Add/Remove Snap-in
    5. From the Available snap-ins list, click Certificates Click Add > Computer account  > Next >  Finish > Ok.
       NOTE: You may not be prompted to select an account.  If not, just click Ok.
    6. From the left pane, under Console Root in blue, expand Certificates (Local computer or current user) Expand Intermediate Certification Authorities Right-click Certificates > All Tasks > Import A certificate import wizard will appear Click Next.

    7. Click Browse and browse to the location of the Symantec_Enterprise_Mobile_CA_for_Microsoft_Cert which is located in your desktop. Double-click on the file (or click and Open) Click Next > Next > Finish > Ok

      Double-click on the file (or click and Open) Click Next > Next > Finish > Ok
    8. You may close the Console1 window.  Click No unless you wish to save the setup
    Step 2: Installing Symantec Enterprise certificate
    So in previous step, you installed and trust the Root and CA certificates which are helpful for installing your Enterprise certificate.
    If you are using Windows 8 / IE 10 to pick up your certificate, please put your browser into "compatibility mode".

    Click on the link to retrieve the certificate and make sure it opens in the browser that made the certificate request (IE).

    Click on “Continue” button to install the signing certificate into the certificate store (PC) At this point open the certificate (run certmgr.msc on a PC or open the keychain manager on a Mac) and verify that it's fully trusted. 

    Step 3: Export (or Backup) Symantec certificate for Enterprise Code Signing
    Once the certificate is installed, we need to Export the certificate to a .PFX file for Enterprise Code Signing.
    The following solution provides steps for how to export your Windows Mobile Enterprise Code Signing certificate from Internet Explorer.
    1. Open Internet Explorer and right click on top of the browser and choose Menu bar, click on Tools and then Internet Options. Click on the Content tab and then Certificates. Locate the certificate you wish to back-up and click Export.
    2. The Certificate Export Wizard should open. Select the option, Yes, export the private key and click next.
      Note: If this option is not selected, a proper back-up file will not be created
    3. In the Export File Format window, ensure the option for Personal Information Exchange  - PKCS#12 (.pfx) is selected Check the box, Include all certificates in the certificate path if possible. And click Next buttonNote: If you do not select the Include all certificates in the certificate path if possible option, your back-up certificate may not be recognized as the issuer of the certificate will not be included in the back-up file
    4. Enter and confirm a password to protect the .pfx file and click Next. Choose a file name and location for the export file (do not include an extension in your file name; the wizard automatically adds the PFX extension).
    5. Pay special attention to where you save the file click Next. Read the summary and verify that the information is correct. Click Finish and complete the wizard
    Wow! Now Symantec certificate is successfully export to your desktop or mentioned browse path.

    References:

    FeedBack Note:
    Please share your thoughts,what you think about this post,Is this post really helpful for you?I always welcome if you drop comments on this post and it would be impressive.

    Follow me always at @Subramanyam_B
    Have a nice day by  :)

    Jumat, 06 Mei 2016

    Cara Memasang Script Anti Ctrl + U Dengan Halaman Peringatan

    Cara Memasang Script Anti Ctrl + U Dengan Halaman Peringatan

    BLOGGINGPASURUAN.Sebelumnya saya telang membahas,baca juga “Cara Memasang Script Ctrl+U dengan EfekRedirect URL” dan kali ini saya akan memberikan tutorial “ Cara Memasang Script Anti URL dengan Halaman Peringatan”. Tutorial ini mirip dengan pembuatan ERROR PAGE atau halaman error 404, namun kali ini saya modifikasi sedemikian hingga dapat digunakan pada script Anti Ctrl+U.

    Saya jelaskan sedikit bagaimana cara kerja script Anti Ctrl+u dengan Halaman Peringatan. Ketika pengunjung atau pengguna ingin melakukan Ctrl+u dengan tujuan yang tidak jelas atau tujuan plagia/copy paste kode template Anda, maka akan langsung diarahkan pada halaman peringatan yang kita buat….jadi script tidak akan muncul namun akan digantikan oleh halaman peringatan.... seperti gambar diatas !

    Atau lihat DEMO
    setelah Anda masuk di halaman DEMO silahkan coba tekan tombol Ctrl+U 

    Langsung aja disimak cara pemasangan kodenya seperti dibawah ini :

    Penjelasan dibawah ini adalah cara membuat Halaman Peringatan terlebih dahulu,Caranya seperti dibawah ini :

    1. Log in Blogger
    2.Klik Laman, Laman baru
    3.Copy kode di bawah lalu paste di bagian HTML laman, bukan Compose

    Javascript - BLOGGINGPASURUAN

    <b:if cond="data:blog.pageType == &quot;error_page&quot;">
    <style>
    #error-halaman { position: fixed; z-index: +1000000; top: 0px; left: 0px; width: 100%; height: 100%; background: #d7d7d7; color: #555555; text-align: center; text-shadow: 0px 2px 0px #ccc; font-family: Open Sans, sans-serif; font-size: 14px; color: #3c3c3c; background: #eee url(https://3.bp.blogspot.com/PLFnauscpKE/Vy17FSKOS_I/AAAAAAAAC9s/JLrFdyatq9UTD1GMSvKZXsdm3M0iT7XbgCLcB/s1600/GB2.jpg) repeat top left; } @keyframes go3d { 0% { text-shadow: 0px 0px 2px #686868; } 100% { /***** 3D TRANSFORMATION *****/ text-shadow: 0px 0px 2px #686868, 0px 1px 1px #ddd, 0px 2px 1px #d6d6d6, 0px 3px 1px #ccc, 0px 4px 1px #c5c5c5, 0px 5px 1px #c1c1c1, 0px 6px 1px #bbb, 0px 7px 1px #777, 0px 8px 3px rgba(100, 100, 100, 0.4), 0px 9px 5px rgba(100, 100, 100, 0.1), 0px 10px 7px rgba(100, 100, 100, 0.15), 0px 11px 9px rgba(100, 100, 100, 0.2), 0px 12px 11px rgba(100, 100, 100, 0.25), 0px 13px 15px rgba(100, 100, 100, 0.3); }; } @-webkit-keyframes go3d { 0% { text-shadow: 0px 0px 2px #686868; } 100% { /***** 3D TRANSFORMATION *****/ text-shadow: 0px 0px 2px #686868, 0px 1px 1px #ddd, 0px 2px 1px #d6d6d6, 0px 3px 1px #ccc, 0px 4px 1px #c5c5c5, 0px 5px 1px #c1c1c1, 0px 6px 1px #bbb, 0px 7px 1px #777, 0px 8px 3px rgba(100, 100, 100, 0.4), 0px 9px 5px rgba(100, 100, 100, 0.1), 0px 10px 7px rgba(100, 100, 100, 0.15), 0px 11px 9px rgba(100, 100, 100, 0.2), 0px 12px 11px rgba(100, 100, 100, 0.25), 0px 13px 15px rgba(100, 100, 100, 0.3); }; } @-moz-keyframes go3d { 0% { text-shadow: 0px 0px 2px #686868; } 100% { /***** 3D TRANSFORMATION *****/ text-shadow: 0px 0px 2px #686868, 0px 1px 1px #ddd, 0px 2px 1px #d6d6d6, 0px 3px 1px #ccc, 0px 4px 1px #c5c5c5, 0px 5px 1px #c1c1c1, 0px 6px 1px #bbb, 0px 7px 1px #777, 0px 8px 3px rgba(100, 100, 100, 0.4), 0px 9px 5px rgba(100, 100, 100, 0.1), 0px 10px 7px rgba(100, 100, 100, 0.15), 0px 11px 9px rgba(100, 100, 100, 0.2), 0px 12px 11px rgba(100, 100, 100, 0.25), 0px 13px 15px rgba(100, 100, 100, 0.3); }; } @-ms-keyframes go3d { 0% { text-shadow: 0px 0px 2px #686868; } 100% { /***** 3D TRANSFORMATION *****/ text-shadow: 0px 0px 2px #686868, 0px 1px 1px #ddd, 0px 2px 1px #d6d6d6, 0px 3px 1px #ccc, 0px 4px 1px #c5c5c5, 0px 5px 1px #c1c1c1, 0px 6px 1px #bbb, 0px 7px 1px #777, 0px 8px 3px rgba(100, 100, 100, 0.4), 0px 9px 5px rgba(100, 100, 100, 0.1), 0px 10px 7px rgba(100, 100, 100, 0.15), 0px 11px 9px rgba(100, 100, 100, 0.2), 0px 12px 11px rgba(100, 100, 100, 0.25), 0px 13px 15px rgba(100, 100, 100, 0.3); }; } @-o-keyframes go3d { 0% { text-shadow: 0px 0px 2px #686868; } 100% { /***** 3D TRANSFORMATION *****/ text-shadow: 0px 0px 2px #686868, 0px 1px 1px #ddd, 0px 2px 1px #d6d6d6, 0px 3px 1px #ccc, 0px 4px 1px #c5c5c5, 0px 5px 1px #c1c1c1, 0px 6px 1px #bbb, 0px 7px 1px #777, 0px 8px 3px rgba(100, 100, 100, 0.4), 0px 9px 5px rgba(100, 100, 100, 0.1), 0px 10px 7px rgba(100, 100, 100, 0.15), 0px 11px 9px rgba(100, 100, 100, 0.2), 0px 12px 11px rgba(100, 100, 100, 0.25), 0px 13px 15px rgba(100, 100, 100, 0.3); }; } .go3d { -webkit-animation: go3d 2s; -moz-animation: go3d 2s; -ms-animation: go3d 2s; -o-animation: go3d 2s; animation: go3d 2s; } .comingcontainer { width: 100%; } .checkbacksoon { width: auto; height: 100%; padding-top: 10%; } .checkbacksoon p { text-shadow: none; font-weight: bold; color: #222; font-family: Arimo, sans-serif; display: block; margin: auto; margin-top: 10px; text-align: center;} .checkbacksoon p span { color: #fff; font-family: Arimo, cursive; font-size: 200px; line-height: 220px; letter-spacing: 1px; cursor: pointer; -webkit-transition: all 0.1s linear; -moz-transition: all 0.1s linear; -o-transition: all 0.1s linear; -ms-transition: all 0.1s linear; transition: all 0.1s linear; /***** 3D TRANSFORMATION *****/ text-shadow: 0px 0px 2px #686868, 0px 1px 1px #ddd, 0px 2px 1px #d6d6d6, 0px 3px 1px #ccc, 0px 4px 1px #c5c5c5, 0px 5px 1px #c1c1c1, 0px 6px 1px #bbb, 0px 7px 1px #777, 0px 8px 3px rgba(100, 100, 100, 0.4), 0px 9px 5px rgba(100, 100, 100, 0.1), 0px 10px 7px rgba(100, 100, 100, 0.15), 0px 11px 9px rgba(100, 100, 100, 0.2), 0px 12px 11px rgba(100, 100, 100, 0.25), 0px 13px 15px rgba(100, 100, 100, 0.3); } .checkbacksoon p span:hover { text-shadow: 0px 0px 2px #686868; -webkit-transition: all 0.1s linear; -moz-transition: all 0.1s linear; -o-transition: all 0.1s linear; -ms-transition: all 0.1s linear; transition: all 0.1s linear; } .error-bro { font-size: 16px; width: 700px; max-width: 90%; line-height: 2em; letter-spacing: 1px; } .error-bro a { text-decoration: none; color: #000; } .error-bro a:hover { color: #FF7F00; } @media only screen and (max-width: 1200px) { } @media only screen and (max-width: 959px) { } /* Tablet Portrait size to standard 960 (devices and browsers) */@media only screen and (min-width: 768px) and (max-width: 959px) { } /* All Mobile Sizes (devices and browser) */@media only screen and (max-width: 767px) { } /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */@media only screen and (min-width: 480px) and (max-width: 767px) { .checkbacksoon p span { font-size: 150px; line-height: 160px; }; } /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */@media only screen and (max-width: 479px) { .checkbacksoon p span { font-size: 150px; line-height: 160px; }; } .tombol { display: inline-block; text-decoration: none; outline: 0; cursor: pointer; font: 700 12px/1em HelveticaNeue,Arial,sans-serif; padding: 8px 11px; color: #555; text-shadow: 0 1px 0 #fff; background: #f5f5f5; background: -webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#f0f0f0)); background: -moz-linear-gradient(top,#f9f9f9,#f0f0f0); border: 1px solid #dedede; border-color: #dedede #d8d8d8 #d3d3d3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 2px #eaeaea,inset 0 1px 0 #fbfbfb; -moz-box-shadow: 0 1px 2px #eaeaea,inset 0 1px 0 #fbfbfb; box-shadow: 0 1px 2px #eaeaea,inset 0 1px 0 #fbfbfb; } .tombol:focus,.tombol:hover { color: #555; background: #efefef; background: -webkit-gradient(linear,left top,left bottom,from(#f9f9f9),to(#e9e9e9)); background: -moz-linear-gradient(top,#f9f9f9,#e9e9e9); border-color: #ccc; -webkit-box-shadow: 0 2px 1px #e0e0e0,inset 0 1px 0 #fbfbfb; -moz-box-shadow: 0 2px 1px #e0e0e0,inset 0 1px 0 #fbfbfb; box-shadow: 0 1px 2px #e0e0e0,inset 0 1px 0 #fbfbfb; } .tombol:active { position: relative; top: 1px; color: #555; background: #efefef; background: -webkit-gradient(linear,left top,left bottom,from(#eaeaea),to(#f4f4f4)); background: -moz-linear-gradient(top,#eaeaea,#f4f4f4); border-color: #c6c6c6; -webkit-box-shadow: 0 1px 0 #fff,inset 0 0 5px #ddd; -moz-box-shadow: 0 1px 0 #fff,inset 0 0 5px #ddd; box-shadow: 0 1px 0 #fff,inset 0 0 5px #ddd; } .tombol.bulat { padding: 8px 15px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } button.tombol,input.tombol { *width: auto; *overflow: visible; } .tombol img { border: none; vertical-align: bottom; } .tombol.kecil { padding: 5px 11px; font-size: 11px; font-weight: 400; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .tombol.kecil.bulat { -webkit-border-radius: 11px; -moz-border-radius: 11px; border-radius: 11px; } .tombol.besar { padding: 12px 15px; font-size: 20px; font-weight: 400; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .tombol.besar.bulat { padding: 12px 22px; -webkit-border-radius: 23px; -moz-border-radius: 23px; border-radius: 23px }
    </style>
    <link href="https://fonts.googleapis.com/css?family=Changa+One" rel="stylesheet" type="text/css"></link>
    <link href="https://fonts.googleapis.com/css?family=Arimo:400" rel="stylesheet" type="text/css"></link></b:if><br />
    <div id="error-page">
    <!-- Halaman Error --><!-- #Ctrl _ U --><br />
    <div id="error-halaman">
    <div class="comingcontainer">
    <div class="checkbacksoon">
    <span class="go3d">Ctrl</span><span class="go3d">+</span><span class="go3d">U</span><span class="go3d">!</span><br />
    <div class="error-bro">
    Peringatan ! Ctrl + U tidak tersedia!
    Dilarang COPY SCRIPT didalam template ini.
    Silahkan kembali ke....<a class="tombol" href="https://www.blogger.com/" style="box-shadow: none; color: #444444;">Halaman Utama</a></div>
    </div>
    </div>
    </div>
    <!-- #Ctrl + U --></div>

    4. Kemudian Simpan Laman Anda

    Catatan: Anda Bisa mencoba untuk preview halaman… ingat cuma preview halaman saja, belum pada tahap redirect URL ke template Anda.

    Langkah Menbuat Redirect URL ( Mengalihkan URL) ke halaman Anda Sendiri

    1.Masuk ke akun Blogger
    2.Masuk ke Template >> Edit HTML
    3. Cari kode </body> lalu letakkan kode dibawah ini, diatas kode </body>

    jQuery - BLOGGINGPASURUAN

    <script type='text/javascript'>
    //<![CDATA[
    shortcut={all_shortcuts:{},add:function(a,b,c){var d={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(c)for(var e in d)"undefined"==typeof c[e]&&(c[e]=d[e]);else c=d;d=c.target,"string"==typeof c.target&&(d=document.getElementById(c.target)),a=a.toLowerCase(),e=function(d){d=d||window.event;if(c.disable_in_input){var e;d.target?e=d.target:d.srcElement&&(e=d.srcElement),3==e.nodeType&&(e=e.parentNode);if("INPUT"==e.tagName||"TEXTAREA"==e.tagName)return}d.keyCode?code=d.keyCode:d.which&&(code=d.which),e=String.fromCharCode(code).toLowerCase(),188==code&&(e=","),190==code&&(e=".");var f=a.split("+"),g=0,h={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},i={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},j=!1,l=!1,m=!1,n=!1,o=!1,p=!1,q=!1,r=!1;d.ctrlKey&&(n=!0),d.shiftKey&&(l=!0),d.altKey&&(p=!0),d.metaKey&&(r=!0);for(var s=0;k=f[s],s<f.length;s++)"ctrl"==k||"control"==k?(g++,m=!0):"shift"==k?(g++,j=!0):"alt"==k?(g++,o=!0):"meta"==k?(g++,q=!0):1<k.length?i[k]==code&&g++:c.keycode?c.keycode==code&&g++:e==k?g++:h[e]&&d.shiftKey&&(e=h[e],e==k&&g++);if(g==f.length&&n==m&&l==j&&p==o&&r==q&&(b(d),!c.propagate))return d.cancelBubble=!0,d.returnValue=!1,d.stopPropagation&&(d.stopPropagation(),d.preventDefault()),!1},this.all_shortcuts[a]={callback:e,target:d,event:c.type},d.addEventListener?d.addEventListener(c.type,e,!1):d.attachEvent?d.attachEvent("on"+c.type,e):d["on"+c.type]=e},remove:function(a){var a=a.toLowerCase(),b=this.all_shortcuts[a];delete this.all_shortcuts[a];if(b){var a=b.event,c=b.target,b=b.callback;c.detachEvent?c.detachEvent("on"+a,b):c.removeEventListener?c.removeEventListener(a,b,!1):c["on"+a]=!1}}},shortcut.add("Ctrl+U",function(){top.location.href="http://imbledoz.blogspot.co.id/p/blog-page.html"});
    //]]>
    </script>


    4. Kemudian Simpan Template

    Catatan: ganti yang saya warnai kuning dengan URL laman yang anda buat tadi pada langkah pertama ( paling awal) 

    Selesai dan lihat hasilnya……

    Cara testnya : Silahkan buka halaman Blog Anda lalu, coba lakukan Ctrl+U

    Semoga bermanfaat…

    Cara Memasang Script Anti Ctrl+U Dengan Efek Redirect URL


    Cara Memasang Script Anti Ctrl+U Dengan Efek Redirect URL


    BLOGGINGPASURUAN, Artikel kali ini adalah tentang “ Cara Agar Blog Anda tidak Bisa di Ctrl+U oleh Pengunjung Blog disertai fungsi redirect ( mengalihkan URL ) “ intinya kita menghindari pengunjung untuk melakukan aktifitas pencurian kode (script) template Blog Anda, disini saya menggunakan Java script untuk me-non aktifkan penggunaan tombol Ctrl + U Dengan Efek Redirect ( Pengalihkan URL)

    Saya akan jelaskan sedikit tentang fungsi atau effect redirect link ( mengalihkan URL ), script yang nanti saya bagikan dibawah berfungsi ketika seorang pengunjung melakukan Ctrl+U atau Ctrl+S untuk melihat isi script dari template blog Anda,jadi fungsi dari script akan langsung mengalihkannya ke halaman utama (home) dari blog Anda tanpa menampilkan kode template secara keseluruhan, artinya pengunjung tidak dapat melihat apapun isi kode (script ) template Anda.

    Langsung saja yang ingin tau script DISABLE Ctrl+U dengan efek redirect silahkan lihat tutorial cara pemasangannya di blog seperti dibawah ini :

    1.Masuk ke akun Blogger Anda
    2. Klik Template >>Edit HTML
    3. Cari kode </body>
    4. Copy kode dibawah ini, lalu Paste diatas kode </body>

    <script type='text/javascript'>
    //<![CDATA[
    shortcut={all_shortcuts:{},add:function(a,b,c){var d={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(c)for(var e in d)"undefined"==typeof c[e]&&(c[e]=d[e]);else c=d;d=c.target,"string"==typeof c.target&&(d=document.getElementById(c.target)),a=a.toLowerCase(),e=function(d){d=d||window.event;if(c.disable_in_input){var e;d.target?e=d.target:d.srcElement&&(e=d.srcElement),3==e.nodeType&&(e=e.parentNode);if("INPUT"==e.tagName||"TEXTAREA"==e.tagName)return}d.keyCode?code=d.keyCode:d.which&&(code=d.which),e=String.fromCharCode(code).toLowerCase(),188==code&&(e=","),190==code&&(e=".");var f=a.split("+"),g=0,h={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},i={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},j=!1,l=!1,m=!1,n=!1,o=!1,p=!1,q=!1,r=!1;d.ctrlKey&&(n=!0),d.shiftKey&&(l=!0),d.altKey&&(p=!0),d.metaKey&&(r=!0);for(var s=0;k=f[s],s<f.length;s++)"ctrl"==k||"control"==k?(g++,m=!0):"shift"==k?(g++,j=!0):"alt"==k?(g++,o=!0):"meta"==k?(g++,q=!0):1<k.length?i[k]==code&&g++:c.keycode?c.keycode==code&&g++:e==k?g++:h[e]&&d.shiftKey&&(e=h[e],e==k&&g++);if(g==f.length&&n==m&&l==j&&p==o&&r==q&&(b(d),!c.propagate))return d.cancelBubble=!0,d.returnValue=!1,d.stopPropagation&&(d.stopPropagation(),d.preventDefault()),!1},this.all_shortcuts[a]={callback:e,target:d,event:c.type},d.addEventListener?d.addEventListener(c.type,e,!1):d.attachEvent?d.attachEvent("on"+c.type,e):d["on"+c.type]=e},remove:function(a){var a=a.toLowerCase(),b=this.all_shortcuts[a];delete this.all_shortcuts[a];if(b){var a=b.event,c=b.target,b=b.callback;c.detachEvent?c.detachEvent("on"+a,b):c.removeEventListener?c.removeEventListener(a,b,!1):c["on"+a]=!1}}},shortcut.add("Ctrl+U",function(){top.location.href="https://bloggingpasuruan.blogspot.com"});
    //]]>
    </script>

    5.Klik Simpan Template

    Catatan : Ganti yang saya warnai dengan blok warna PUTIH dengan URL Blog Anda.

    Dengan menggunakan script DISABLECtrl + U diatas setidaknya akan meminimalisir pencurian kode dari blog Anda.

    Semoga Bermanfaat...

    Senin, 02 Mei 2016

    Cara Cepat Menemukan dan Menghapus Broken Link ( Link Rusak )

    Cara Cepat Menemukan dan Menghapus Broken Link ( Link Rusak )


    BLOGGINGPASURUAN – Salam Blogger, kali ini saya akan bagikan artikel Cara Cepat Menemukan dan Menghapus Link Rusak ( Broken Link ). Artikel ini saya tulis base on true experience ( berdasarkan pengalaman sendiri ). Mungkin banyak dari kita yang belum tahu cara mencari dan menemukan broken link atau link rusak kemudian bagaimana cara menghapusnya ?


    Ok… Mungkin kita tahu dengan ERROR 404di Blog, yaaa… ERROR  404ini yang muncul akibat broken link atau link rusak, jika ini tidak segera ditangani maka akan menjadi masalah serius dengan Blog Anda ( ini sudah terjadi pada Blog saya sendiri “ http://bloggingpasuruan.blogspot.co.id ).


    Mungkin yang umum kita dengar adalah istilah Crawl Error ( Ingat..! crawl error banyak diciptakan oleh link rusak ) dan ini bisa kita lacak pada Webmaster tool-nya Google, kemudian umum juga diketahui bagaimana cara memperbaiki-nya. Namun Google butuh waktu yang tidak sebentar dalam memperbaiki Crawl Error, ini fakta ! bisa diperbaiki oleh Google namun waktu yang dibutuhkan relativ lebih lama.


    Penyebab umum broken link muncul di Blog Anda.


    Saya akan menjelaskan apa yang menjadi penyebab umum munculnya broken link atau link rusak di Blog Anda.

    1. Link URL posting yang pernah Anda hapus.

    2. Link URL Komentar yang di tinggalkan oleh pengunjung Blog Anda.

    Pada intinya kedua penyebab di atas adalah sama sama disebut sebagai LINK URL yang tadinya ADA kemudian di HAPUS ( delete oleh pemiliknya ). Naaa…. Ketika mesin pencari Google merayapi Blog Anda dan menemukan LINK tersebut masih menempel di Blog, maka Google mengatakan bahwa ini adalah URL RUSAK ( broken links ).

    Maksudnya adalah URL link tersebut ADA karena masih menempel di BLOG namun sebenarnya adalah URL LINK RUSAK,  jika di KLIK oleh pengunjung Blog Anda maka pengunjung akan di arahkan pada halaman ERROR 404.



    Cara Menemukan Link Rusak ( broken link ) dan Bagaimana Cara Menghapusnya

    1. Silanhkan masuk pada : Broken Links Checker

    2. Anda akan langsung menuju pada halam seperti dibawah ini :




    Cara Cepat Menemukan dan Menghapus Broken Link ( Link Rusak )


    Keterangan

    1. Masukkan URL Blog Anda yang ingin di chek BROKEN LINKS link rusak-nya.
    2. Masukkan chapta ( dengan benar )
    3. Lalu " Klik " pada  Find broken links now !  tunggu poses pencarian link rusak, selesai !
        
              
     Lihat URL pada tanda  no.3  >> http://tipblogku.blogspot.com/2014......xxxxxx


    4. Kemudian tekan " SRC "
    5. Tunggu beberapa saat untuk menampilkan broken link-nya, seperti gambar di bawah ini :


    Cara Cepat Menemukan dan Menghapus Broken Link ( Link Rusak )


    Keterangan :

    Yang saya tandai warna biru adalah broken link-nya, dan link rusak ini terkait dengan artikel Blog/Posting Blog ...silahkan cari kata-kata yang saya tandai pada kotak warna merah >> yang terkait dengan artikel Anda...begini caranya !

    1. Masuk ke Blogger >> Dashboard >> Post 

    2. Pada All Label , Pada kolom pencarian tanda panah merah " tuliskan  kalimat yang terkait pada kata-kata yang sudah saya tandai kotak warna merah di atas." lalu enter.



    Cara Cepat Menemukan dan Menghapus Broken Link ( Link Rusak )


    3. Setelah ketemu JUDUL POSTING  artikel tersebut.

    4. Tekan " EDIT " lalu pilih HTML ( jangan compose ) lihat pelan pelan jika sudah ketemu URL-nya silahkan di hapus !



    Bagaimana jika itu broken link dari kolom komentar ?


    1. Setelah Anda tekan SRC pada masing masing link rusak ( lihat gambar awal )

    2. Jika mucul seperti gambar dibawah in, lihat tag <div id:"comment-holder" >


    Cara Cepat Menemukan dan Menghapus Broken Link ( Link Rusak )

    3. Sudah bisa dipastikan penyebabnya dari KOLOM KOMENTAR

    4. Pertanyaannya, Pada Artikel saya yang mana ? pengunjung meninggalkan link rusak !

    5. Langkah mencarinya sama seperti cara sebelumnya ( di atas ) masuk ke Dashboard >> Post kemudian pada kolom All Label ketikkan judul posting seperti pada tanda biru

    6. Cara penulisan judul posting tanpa tanda sambung ( - ) , seperti contoh milik saya : 
    " cara mengatur ukuran gambar secara......." lalu tekan enter.
    7. Judul Posting akan muncul, kemudian Anda lihat komentar apa saja yang di tinggalkan oleh pengunjung Blog Anda, lalu HAPUS !.... 


    Kesimpulan

    Lakukan satu persatu terhadap LINK yang sudah terindikasi RUSAK. Cara ini lebih efektif dan gampang bagi Blogger yang sudah mengerti akan HTML coding. Namun untuk pemula mungkin akan sedikit sulit.

    Bagi pemula saya sarankan untuk membaca tutorial di atas sekali lagi ( berulang ). Agar benar benar paham antara gambar dengan keterangan yang saya berikan. Insha Allah akan mudah dipahami...

    Selamat mencoba , semoga berhasil......