Saturday, August 12, 2017

Python-Bootcamp: Functions and Methods

Study Today on 8/12/2017 (Sat)

Write a function that computes the volume of a sphere given its radius.

def vol(rad):
    return (4.0/3)*(3.14)*(rad**3)


Write a function that checks whether a number is in a given range (Inclusive of high and low)

def ran_check(num,low,high):
    #Check if num is between low and high (including low and high)
    if num in range(low,high+1):
        print " %s is in the range" %str(num)
    else :
        print "The number is outside the range."



Write a Python function that checks whether a passed string is palindrome or not.

Note: A palindrome is word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run.

def palindrome(s):
    s = s.replace(' ','') # This replaces all spaces " " with no space ''. (Fixes issues with strings that have spaces)
    return s == s[::-1] # Check through slicing



Write a Python function to check whether a string is pangram or not.

Note : Pangrams are words or sentences containing every letter of the alphabet at least once.
For example : "The quick brown fox jumps over the lazy dog"
Hint: Look at the string module

import stringd

def ispangram(str1, alphabet=string.ascii_lowercase):
    alphaset = set(alphabet)
    return alphaset <= set(str1.lower())


Wednesday, February 10, 2016

HotFix for Enterprise Portal on SharePoint 2013

Applies To:

  • Microsoft Dynamics AX 2012 R3
  • Microsoft Dynamics AX 2012 R2

Microsoft TechNet
Link: Enterprise Portal on Microsoft SharePoint 2013 [AX 2012]


Below notes from the contents:

Important
Currently SharePoint 2013 is supported only with Microsoft Dynamics AX 2012 R2.

Install required hotfixes on R2 servers

You must install one of the following updates if you plan to run Enterprise Portal on either Microsoft SharePoint Foundation 2013 or Microsoft SharePoint Server 2013 (required for Microsoft Dynamics AX 2012 R2 or earlier; not required for Microsoft Dynamics AX 2012 R3). Choose an update that matches the SharePoint version on which you plan to deploy Enterprise Portal
  1. After you install an update, you must run the SharePoint 2013 Products Configuration wizard.
  2. Download and install the Microsoft Dynamics AX 2012 R2 setup hotfix (KB2830441) (required for Microsoft Dynamics AX 2012 R2 or earlier; not required for Microsoft Dynamics AX 2012 R3).
  3. Download and install the Microsoft Dynamics AX 2012 R2 claims-mode authentication hotfix (KB2824690) (required for Microsoft Dynamics AX 2012 R2 or earlier; not required for Microsoft Dynamics AX 2012 R3).
  4. Reboot the server and then install Enterprise Portal. For more information about how to install Enterprise Portal or Enterprise Search, see Install Enterprise Portal and Install Microsoft Dynamics AX Enterprise Search

-End-


Tuesday, February 2, 2016

DHCP Failover Event ID 20292

I got this error with "BAD_ADRESS" in DHCP scope for Wi-Fi segment.
This error on scope occur on Chromebooks. According to web sites, there are same issues reported and it looks like related between Windows Server DHCP feature and Chrome OS.

You might want to apply Windows Update and Hot-fix as much as possible and blow are the list of updates and some information.


The blow updates could not solve 100% but when I configure Wi-Fi network and DHCP to allow Chromebook access only one DHCP Scope (Wi-Fi VLAN segment), the issue stopped...

<Japanese: 日本語>
完全には直らないようだが、Chromebook を特定の DHCP Scope (Wi-Fi VLAN segment) にのみアクセスできるようにすると、この現象がほとんど見られなくなった。。。


Event ID 20291 is logged in the System log when a client computer is moved to a different IP network
Symptoms
Consider the following scenario:
  • You have two DHCP servers that are running Windows Server 2012 R2.
  • You configure the servers as a failover cluster.
  • You set up multiple DHCP scopes and multiple IP networks.
  • You put a client computer on one of the IP networks and confirm that it receives an IP address from one of the scopes.
  • You move the client computer to a different IP network.

In this scenario, an Error event that resembles one of the following Event ID 20291 events is logged under the "Applications and Services Logs/Microsoft/Windows/Microsoft-Windows-DHCP Server Events" path in Event Viewer:
The fix that resolves this problem is included in the November 2014 update rollup for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2.

Note:
Before you install this update, you have to first remove the failover relationship, install the update to both DHCP nodes and restart them, and then reestablish the failover relationship.


[Install #: 21-24]
November 2014 update rollup for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2
Important When you install this update (3000850) from Windows Update, updates 3016437, 3003057, and 3014442 are included in the installation.
Update for Windows Server 2012 R2 (KB3000850)

* To apply this update, you must first install update 2919355 on Windows 8.1 or Windows Server 2012 R2


[Install #: 11 - 17 ]
Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 update: April 2014
Important When you install this update (2919355) from Windows Update, updates 2932046, 2937592, 2938439, 2934018, and 2959977 are included in the installation.

Windows Server 2012 R2 Update (KB2919355)
Note The updates must be installed in the following order:
clearcompressionflag.exe, KB2919355, KB2932046, KB2959977, KB2937592, KB2938439, and KB2934018.

* Prerequisites
To apply this update, you must have the following update installed on Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2:
2919442 A servicing stack update is available for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2: March 2014


[install #: 01 ]
A servicing stack update is available for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2: March 2014
Method 1: Windows Update
This update rollup is provided as an important update from Windows Update. If you turn on automatic updating, this update is automatically installed.

Update for Windows Server 2012 R2 (KB2919442)



Blog Tech Net:

DHCP Failover fixes in KB 2919393 for Windows Server 2012 and KB 2919355 for Windows Server 2012 R2



Good Luck!!

-End-

Wednesday, January 27, 2016

Hadoop, Amazon EMR, VMware


Hadoopとビッグデータ
http://www.cloudera.co.jp/hadoop/what-is-hadoop.html
Cloudera の Hadoopとビッグデータについて


Amazon Elastic MapReduce (Amazon EMR)
http://aws.amazon.com/jp/elasticmapreduce/
Amazonの仮想サーバでHadoopの処理を行えるサービス


Windows/Mac環境用(VMware)
・Yahoo!から配布されている「Hadoop 0.20.S Virtual Machine」ダウンロードZIPファイル。
 解凍 → hadoop-appliance-0.20.S.vmx


Tuesday, January 19, 2016

Cisco Meraki Webinar and Demo site information


Cisco Meraki webinar and demo site information

Cisco Meraki services and products are based on Cloud Management.
You may be able to manage all the Switch (Core and distributed) and AP.

Original Meraki site is [ meraki.cisco.com ]


Must see following site to know how to setup Wi-Fi through Meraki.

Link:[ Watch Cloud Managed WiFi : The Next Step in Wireless Evolution ]




Live product demos and Q&A from Meraki experts.
You can see recorded webinar of Meraki service and product.

Link:[ Meraki Webinars ]


Also YouTube sites are good resources:
( it will start Video when site is opened )

Link:[ https://www.youtube.com/user/milesmeraki ]


Some of developers' quick guide for API are on:

Link:[ developers.meraki.com ]


- End -

Thursday, December 17, 2015

Guide on Install SharePoint 2013

SharePoint 2013

Must Check Links below:

Hardware and software requirements for SharePoint 2013

SharePoint 2013: Install Prerequisites Offline or Manually on Windows Server 2012 - A Comprehensive Guide


On 12/17/2015 (Thu), the below prerequisites application were downloaded and installed on my test environment.

- Microsoft Identity Extensions
  http://download.microsoft.com/download/0/1/D/01D06854-CA0C-46F1-ADBA-EBF86010DCC6/rtm/MicrosoftIdentityExtensions-64.msi

- Microsoft Sync Framework Runtime v1.0 SP1 (x64)
  http://go.microsoft.com/fwlink/p/?LinkID=224449

- Windows Server Appfabric. Install Windows Server Appfabric and re-run setup.
  http://download.microsoft.com/download/A/6/7/A678AB47-496B-4907-B3D4-0A2D280A13C0/WindowsServerAppFabricSetup_x64.exe
   Note: Install All Features

- Cumulative Update package 1 for Microsoft Appfabric 1.1 for Windows Server (KB2671763)
  http://download.microsoft.com/download/7/B/5/7B51D8D1-20FD-4BF0-87C7-4714F5A1C313/AppFabric1.1-RTM-KB2671763-x64-ENU.exe

- Microsoft WCF Data Services 5.0
  https://www.microsoft.com/en-us/download/details.aspx?id=29306

- Microsoft Information Protection and Control Client (MSIPC).
  http://go.microsoft.com/fwlink/p/?LinkID=219568



Install SharePoint 2013 on a single server with SQL Server
  https://technet.microsoft.com/en-us/library/cc262243
  Run the Microsoft SharePoint Products Preparation Tool, which installs all prerequisites to use SharePoint 2013.
  In the folder where you downloaded the SharePoint 2013 software, locate and then run   prerequisiteinstaller.exe.

After you complete the Microsoft SharePoint Products Preparation Tool, you must also install the following:

Issue during the prerequisites installation by Preparation Tools:

I had an error whenever runs prepration tools as below:

[Error]
  The tool was unable to install Application Server Role. Web Server (IIS) Role
  - Application Server Role. Web Server (IIS) Role: configuration error

<In Log File>
2015-12-18 11:48:03 - "C:\Windows\system32\ServerManagerCmd.exe" -inputpath "C:\Users\HSALNY~1\AppData\Local\Temp\Pre4BC9.tmp.XML"
2015-12-18 11:48:03 - Error: Unable to install (2)
2015-12-18 11:48:03 - Error: [In HRESULT format] (-2147024894)
2015-12-18 11:48:03 - Last return code (2)

Actually, there is no "ServerManagerCmd.exe" module under system32 folder, but "ServerManager.exe".

It was almost solved by helps on Chris (ChristopherW) Blog but still having issues on "Application Server Role. Web Server (IIS) Role: configuration error"
Server 2012 R2 and SharePoint 2013: The tool was unable to install Application Server Role, Web Server (IIS) Role

Point: Run his PowerShell script, reboot system and rerun preparation tool.

Some of the user could solve the issue by his solution, though.


- End -

Upgrade path from PAN-OS 6.0.4 to PAN-OS 6.1.6

This is a note on upgrading from PAN-OS 6.0.4 to PAN-OS 6.1.6

1. Save running configuration and export it to external location.
  Export config file to PC's local drive.

2. Make sure the firewall is running Content Release version 454 or later.

3. Download PAN-OS on PaloAlto device console

1) Select version "6.1.0" and Download.
  <Normal Result Window>
  Operation: Download
  Status: Completed
  Result: Successful
  Details: Successfully downloaded
               Preloading into software manager
               Successfully loaded into software manager

  If Download cannot be done due to network failure, you can
  Download PAN-OS from PaloAlto Support Site to local PC
    Link:[ https://support.paloaltonetworks.com ]
    Tools --> Software Update
    Find version and download firmware:
    a. for PA200
        e.g. "6.1.0  10/25/2014  PanOS_200-6.1.0  318.2 MB"
    b. for PA3020
        e.g. "6.1.0  10/25/2014  PanOS_3000-6.1.0  391.7 MB"

  Note:

  •    Downloadable firmware OS depends on registered products.
  •    Link to "Release Notes" and "Download" on PaloAlto devices may not be usable, due to network failure.

  Upload Firmware from PC to PaloAlto
    Version 6.1.0
    In [Device] tab --> Select at "Software" in left pane
    Use Upload in the bottom menu.
    Confirm uploaded firmware status

  Note:

  • If error "upload file size exceeds system limit" occurs, you might require to delete old firmware. 

2) Select version "6.1.6" or supported version, and Download.
    Supported by Hitachi Solutions Ltd. ( as of 12/15/2015 )

 PANOS 6.1.6
 弊社評価を完了し、
 2015/9/1
リリースしました。
 PA-200/500/2000/3000/4000/
 5000
シリーズ用
 PANOS 6.1.5
 弊社評価を完了し、
 2015/8/21
リリースしました。
 PA-200/500/2000/3000/4000/
 5000
シリーズ用
 PANOS 6.1.4
 弊社評価を完了し、
 2015/7/31
リリースしました。
 PA-200/500/2000/3000/4000/
 5000
シリーズ用
 PANOS 6.0.11
 弊社評価を完了し、
 2015/10/1
リリースしました。
 PA-200/500/2000/3000/4000/
 5000
シリーズ用
 PANOS 6.0.8
 弊社評価を完了し、
 2015/2/20
リリースしました。
 PA-200/500/2000/3000/4000/
 5000
シリーズ用


- End -