Friday, 16 September 2016

Some MB2-711 Microsoft Dynamics CRM 2016 Installation Exam Questions

a friend of mine recently passed this exam and he gave the some of questions he remembered
there were more question on email configuration and server configuration, here they are:

  • steps to delete a organization from CRM deployment manager? 
  • minimum rights on Active Directory Domain Controller to install MS Dynamics CRM 2016? 
  • hardware requirements on MS SQL SERVER machine?
  • benefits of server-side synchronization, email router, CRM for outlook client? there were questions on these with different combinations
  • questions on browser compatibility?
  • minimum CRM version to upgrade to CRM 2016?
  • if we have CRM 2011 with update roll-up 12, what is the minimum CRM version so we can update to CRM 2016?
  • where should you run bulk-email? which server role?
  • where bulk delete can be run?
  • type of certificates needed for IFD?
  • how to upgrade Report server extension?
  • benefit of froward mailbox?
  • how folder level tracking works? benefits? how to set up? for each individual user or multiple?
  • questions on version of MS SQL SERVER, supported for different CRM versions? what service pack?
  • questions on email router on-premises and CRM server online/on-premises compatibility? versions?
  • version of ADFS for different kind of deployments? 
 Questions from MS training kit
  • Which service handles data imports?
  • which versions of MS SQL Server are not supported? 
  • does MS SQL Server Reporting Services required for MS Dynamics CRM installation?
  • which components will be installed during MS Dynamics CRM installation is they are not installed?
  • what is the default website URL during MS Dynamics CRM installation?
  • What is report Authoring Extension?
  • which type of reports are available if reporting Extension hasn't been installed?
  • reasons to redeploy MS Dynamics CRM?
  • Tasks that cannot be done in CRM Deployment Manager?
  • how to change trial version to licensed version?
  • how to change organization display name?
  • different scenario-type questions on what is the best option when you are doing migration?
  • what is the best option about  existing MS SQL Server 2012, if we want to upgrade to MS Dynamics CRM 2016?
  • when doing upgrade to CRM 2016, which components can be upgraded to newer versions, which one cannot and needs to be uninstall -> install new version?
  • purpose of email correlation?
  • which features are supported by server-side synchronization but not by email router?
  • which deployment are not supported by server-side synchronization?(CRM2016 on-premise with Exchange online)
  • outgoing emails are being processed for all users except one, using server -side synchronization, what could be the reason?
  • working offline with 2 or more organization considerations and limits? 
  • MS Dynamics CRM for outlook is installed on a computer without offline capability, what should a user do to make offline available?
  • what should admin configure to prevent notes on contacts in outlook being copied to CRM?
  • which setup requires IFD?
  • which features are mandatory for enabling IFD?
  • you need to change the account that is being used by MS Dynamics CRM Asynch Processing Service, what to do?
  • after importing an organization, you are not able to create an email server profile to specify a user name and password, what to do?
  • what to do to delete more than 5000 completed system jobs older than 1 year?
 other advice, which you can find on exam description as well:
  • 48 questions, all multiple choice
  • some questions needs you to choose more than one, two or three choices
  • time is more than enough, so don't be anxious or get panic. 
  • book your exam early, don't waste your time read the material, 2 weeks is enough.
  • passing score is 700, you don't need to aim for higher score, just passing that damn thing is enough, unless you are kind of show off person or like high score...
  •  I might add more if i come across more.
  • these are here to give you ideas. i don't seek any benefit from these.they might help or not, so don't get back on me.
  • good luck.
pamador out

Tuesday, 8 December 2015

Reverse a String in Java

I recently asked about how to reverse a String using java.
there are couple of ways for doing this.
  1. Using StringBuilder or StringBuffer. former one is the newer and it's common now. you can read more about both on StringBuilder and StringBuffer. they are almost doing same thing.
  2. not using option 1...:)by saying that i mean like traversing the given string, character by character and just save it in reverse order from end toward the beginning. 
 Here is the code for both:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package reverseString;

public class Reverse {

 public static String reverseV1 (String input) {
  StringBuilder reversed = new StringBuilder(input.length());
  for (int i=input.length()-1; i>=0 ;i--) {
   reversed.append(input.charAt(i));
  }
  return reversed.toString();
 }
 
 public static String reverseV2 (String input) {
  String reversed ="";
  for (int i=input.length()-1; i>=0;i--) {
   reversed = reversed + input.charAt(i);
  }
  return reversed;
 }
 
 public static void main(String[] args) {
  
  System.out.println ("\"super\" in reverse (using V1): " + reverseV1("super"));
  System.out.println ("\"super\" in reverse (using V2): " + reverseV2("super"));
 }
}

Hope this helps.

Saturday, 11 April 2015

How to resize the root partition in Kubuntu 14.10?

you can resize your root directory in following steps:
  1. back up your data first and always since machines fails and you like your data more than anything
  2. have a bootable usb stick with ubuntu on it. i think i have a post about dual booting, you can check that one out on how to create one or a simple search on internet can help you on that.
  3. restart your machine and boot from the bootable usb you have.
  4. be patient
  5. you'll be presented with a window with 2 option : 1- Try ... 2- Install ... (...) means the name of your operating system, in my case is Kubuntu, however the procedure is the same(almost)
  6. choose "Try ..." 
  7. you'll see the desktop
  8. now,  navigate to "System" and execute "KDE Partition Manager". you might have something a bit different in your version, but look for something similar.
  9. while inside the partition manager, you need to make some space next to your root partition, either side is fine.
  10. then you right click on your root partition and select "Resize/Move".
  11. you'll be presented with a window to extend your root partition to the unallocated space that you created in step 9. it can be on left or right side of the root. 
  12. and that's it.
Some Notes:
  • always back up
  • click "Apply" after each change in Partition manager
  • you can also use GParted". almost same procedure
  • unallocated space must be next to the partition you want to extend. 
  • there are some cases which you might need to shrink you "swap" partition or other partition not next to your "root" or the one you want to extend, simple search can help you on that. it's easy.
  • you might damage your GRUB in the process. don't panic.
  • you need to boot from a live cd or bootable usb and execute some command in shell prompt. here is the link for complete explanation Fix GRUB.
I hope this helps, sorry for not including any images. i just wanted to share my experience.

Sunday, 31 August 2014

Simple Step by Step testing in Ruby on Rails Using RSpec

Straight to the point.
open up terminal and create a new Rails project, simple_test:

    $ rails new simple_test --skip-test-unit
    $ cd simple_test

option --skip-test-unit, tells Rails not to generate a test directory associated with Test::Unit framework. this is because we want to use another testing framework named RSpec to write our tests.

then we need to include RSpec Gem in 'Gemfile' in your project root directory

    group :development, :test do
      gem 'sqlite3', '1.3.8'
      gem 'rspec-rails', '2.13.1'
    end

    group :test do
      gem 'selenium-webdriver', '2.35.1'
      gem 'capybara', '2.1.0'
    end
  
This includes rspec-rails in a development environment so that we have access to RSpec-specific generators, and it includes it in test mode in order to run the tests. We don’t have to install RSpec itself because it is a dependency of rspec-rails and will thus be installed automatically. We also include the Capybara gem, which allows us to simulate a user’s interaction with the sample application using a natural English-like syntax, together with Selenium, one of Capybara’s dependencies.

    $ bundle install

it might be better to update the gems with bundle update to make sure the versions match, and then run bundle install to make sure the Gemfile.lock file is fully up-to-date.
Next, we need to configure Rails to use RSpec in place of Test::Unit.

    $rails generate rspec:install

you should see:

    create  .rspec
    create  spec
    create  spec/spec_helper.rb
if you're using sublimeText, you can open the entire project by navigating to your project directory and then

    $ subl .

or any other editor.
ok, now we set to start developing. since we're following MVC pattern here, I jut give an short overview about that. model is your data access layer. view is your presentation layer, and controller is your business logic layer. business layer i.e. controllers, are between those 2 other layers.
it means, if some data needs to be shown by presentation layer, i.e. views, it can't access the model (data access layer, or database side) by itself. it needs to go through the business layer i.e. controllers.
now if you opened the entire project in your editor, and then go into 'app' folder in project root directory you'll see folders related to these layers, models, views, controller. there are some convention here which makes the development easier, which you can search it for yourself.
now lets make a controller:

    rails generate controller StaticPages home help --no-test-framework

--no-test-framework option suppresses the generation of the default RSpec tests, which we won’t be using. Instead, we’ll create the tests by hand. this will generates a controller, StaticPages, with 2 action methods : home and help, which both represent 2 pages(look into app/view/static_pages). now, since i just want to show how TDD works, i don't go into details on how writing tests for the existing code. instead suppose i want to add another page, About.
In test-driven development, we first write a failing test, represented in many testing tools by the color red. We then implement code to get the test to pass, represented by the color green. Finally, if necessary, we refactor the code, changing its form (by eliminating duplication, for example) without changing its function. This cycle is known as “Red, Green, Refactor”.
because here, i'll do integration testing we need to run following command:

    $ rails generate integration_test static_pages
      invoke  rspec
      create    spec/requests/static_pages_spec.rb

This creates the static_pages_spec.rb in the spec/requests directory. As with most generated code to use the Capybara you need to add the following line in  spec/spec_helper.rb

    .
    .
    .
    RSpec.configure do |config|
      .
      .
      .
      config.include Capybara::DSL
    end

checkpoint: now we have a controller, static_pages_controller, it has 2 action methods, home, help and we want to add another one, about. we have RSpec installed, and we execute the rails generate integration_test static_pages, which generated spec/requests/static_pages_spec.rb for us. we put our test inside that file.

Actual TDD

We’ll start the testing cycle by writing a failing test for the About page.

    in spec/requests/static_pages_spec.rb

    require 'spec_helper'

    describe "Static pages" do
      describe "About page" do

        it "should have the content 'About Us'" do
          visit '/static_pages/about'
          expect(page).to have_content('About Us')
        end
      end
     end

if you run the RSpec using

    $ bundle exec rspec spec/requests/static_pages_spec.rb

the output is very informative. it includes:

    No route matches [GET] "/static_pages/about"

this means we need to add /static_pages/about to routes file in config/routes.rb

    get "static_pages/about"

now running the test again

    $ bundle exec rspec spec/requests/static_pages_spec.rb

complains that

    The action 'about' could not be found for StaticPagesController

go to app/controllers/static_pages_controller.rb and add action for about, same as home and help actions
      
    def about
    end

now running the test again

    $ bundle exec rspec spec/requests/static_pages_spec.rb

says that we are missing a “template”, i.e., a view:

    Missing template static_pages/about

To solve this issue, we add the about view. This involves creating a new file called about.html.erb in the app/views/static_pages directory with following content:   

<h1>About Us </h1>

Running the test again

    $ bundle exec rspec spec/requests/static_pages_spec.rb

it should show us the green.
to see the page you created, run the rails server in terminal:

    $rails server

then in your browser navigate to

    0.0.0.0:3000/static_pages/about

and you should see the about view you created.
now suppose we want to write test to check the page title. we want the "About page" has the title "About Us". we write the test first:

    it "should have the title 'About Us'" do
      visit '/static_pages/about'
      expect(page).to have_title("About Us")
    end

if you run the test

    $ bundle exec rspec spec/requests/static_pages_spec.rb

it should fail

    expected #has_title?("About Us")

The test uses the *have_title* method, which checks for an HTML title with the given content. In other words, the code

    expect(page).to have_title("About Us")

to pass the test you just need to change the title of about page to "Abut Us" in its relevant view file in app/views folder, which is easy

some side notes: 
these tests are technically integration tests, however writing unit tests are similar. you just test the data based on your model, for example for invalid data, or password length. etc.
  • I tried to be more detailed and descriptive, sorry if that's so long.
  • all the steps have been tested on Kubuntu 14.04
  • this was adopted mostly from http://www.railstutorial.org/
  • if you see any errors, leave a comment please 

Wednesday, 9 July 2014

How to Install genymotion on Kubuntu14.4

you know what the genymotion is. simply, it's emulator to run android app.
straight to the point:

1- Install virtualbox. the easiest way is to install it via Software Center. just search for it and then install
you have other options: navigate to VirtualBox  website, find your system installer package then install it, simple
or you can use 'wget' command.

2- install Genymotion. you need to sign up to be able to download, which is free. to install genymotion open up terminal(CTRL+T) then run the following commands:
  • you are in your home directory: cd Dowloands
  • give executable permission to installation file. you might have different version: chmod +x genymotion-2.2.2_x64.bin
  • run the installer:  ./genymotion-2.2.2_x64.bin
  • move the directory to your home directory:                                                mv geymotion ~/.genymotion
  • add this executable path to make your life easier:  echo 'export PATH="/home/$USER/.genymotion:$PATH"' >> /.bashrc                       you don't have to add this but then you have to go to its directory and run it from there.
now you can simply run it by : genymotion

I had some problems after installation:
  1. Error while opening log file: /home//.Genymobile/genymotion.log what i did to solve this problem was that i created a hidden folder in the directory in error message and then just create a log file with that name. you need to replace the with your own user name
      • cd home/
      • mkdir .Genymobile
      • cd .Genymobile
      • touch genymotion.log  
     
  2. Cannot mix incompatible Qt library i searched a lot to solve this problem, there were many solutions but the one actually worked was that just try to remove everyfile in genymotion instalation directory that are related to qt. you jut need to find files in every folder in installed directory with qt in their names and just delete them. that's it. now you can run genymotion by: genymotion  in terminal.
  3. after installation you can do whatever you want with it, it's simple and it's just configuring what you want and hitting next or ok.
Goodluck

Monday, 30 June 2014

USYD - INFO3315 - Mid term exam questions - 2013

 Last year assignment and tutorials was about FitBit. every students got one of this wireless FitBit device and every tutorial, assignment and quiz were around that. they might change it this year but it gives you overall view on how it looks like or what they assess in exam. i also wanted to put my assignment here but it's too long and I think you'll do better.
here's the questions:

Question 1(10 marks) 

(2 marks) What is one important affordance of the FitBit?

(2 marks) For your project this semester, you aim to create an interface that enables people to exploit their FitBit data so they can observe changes in their inactivity over time. Explain how the affordance of the FitBit are useful for this?

(2 marks) Suppose we had the perfect sensor for the project goal, state one key affordance would it have that the FitBit does not have.

(2 marks) Explain how  think aloud evaluation has the potential to give insight into the user's mental model?

Question 2(10 marks) 

(6 marks) For the project this semester, a friend drafted the following single sentence statement to describe the goal of their interface:
  • A sedentary worker ill be able to determine the average number of minutes per work-day that they were inactive during work-hours over the last full calendar month.
 There is missing key elements of the single sentence statement. What are the missing elements?

To help your friend understand how to improve their single sentence statement, amend the following copy, writing on an example of each missing part.
  •  A sedentary worker will be able to determine the average number of minutes per work-day that they were inactive during work-hours over the last full calendar month.

(2 marks) In the week 4 lab you saw the following question based on a standard questionnaire:
  • During the last 7 days, how much time in total did this user usually spend sitting on a week day?      ---------------hours ---------------- minutes
In light of your lecture on design of questionnaire, what is a serious weakness of this question?

(2 marks) The week 5 reading, Lewis et al(2013) UMUX-LITE when there's no time for SUS, provided evidence of the value of just 2 usability questions, rather than the full SUS. what is the main reason to use SUS, even though it takes the user longer to answer?

Question 3(10 marks) 

In the week 4 lb you studied the screen shot below, from the FitBit interface. It shows activity of a hypothetical user called Alex. The user has their mouse over the bar for the time 11.15 - 11.30am. If the user moves their mouse away from the bars, the bubble disappears.



Suppose you are designing the tasks for a think aloud usability evaluation, to access whether users can make effective use of this interface to access their level of activity

(4 marks) State one important weakness in the following task:
  • Use your mouse to hover over the tallest bar in the chart to see how many steps this user took at that particular time?

(2 marks) Write a better version of the question that avoids this weakness.

(2 marks)  State what Fitts' Law predicts about the effect of the size of the click-target where the target is 5 centimetres  from the current position of the mouse cursor.
  
(2 marks) In a desktop GMOS analysis, P ranges from 0.8 to 1.5, according to Fitts' Law. Is this directly applicable to a tabletop touch interface?
    Yes/ No
Justify your answer in terms of the relationship between Fitts' Law and the way it relates to the value of P in a GOMS analysis.

Question 4 (10 marks)

In the space below, draw a concept map. it should answer the question:
  • What are the characteristics of Think-Aloud usability evaluation?
Use only the concepts and links listed below.(They are in alphabetic order)
Use just 7 of the most important concepts to create just 6 of the most important propositions.

Concept list
efficiency
expert-users
learnability
memorability
monitoring
no-user method
novice-users
qualitative-method
quantitative-method
satisfaction
think-aloud
user method
user-errors

Link names:
evaluates
is-a(n)
is-important-for
is-suited-to

p.s: course website INFO3315 ... they changed it a lot
       please don't ask for answer. I even didn't have the questions

Wednesday, 11 June 2014

How to insert code snippet into your blog...easy way

ok, recently I was trying to copy paste some code into my blog. i tried different methods, and i found this method explaining Here the easiest and efficient way. you have other options if you don't like the logo at the bottom of your code snippet, which is just adding JavaScript and CSS files to your template. the only reason I used that method mentioned in that blog was that it gave me what I wanted and I didn't mind the logo, plus it was straight forward