Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Wednesday, October 3, 2018

Error: Brew update Error: Xcode alone is not sufficient


Problem:
While running brew update  command, mac responded with error message:

Brew update Error: Xcode alone is not sufficient...
Install the Command Line Tools:
  xcode-select --install


Solution:

Run the command:
  xcode-select --install




Tuesday, October 2, 2018

How To Install Python On Mac


1) The latest version of Mac OS X, High Sierra, comes with Python 2.7 out of the box.

2) You do not need to install or configure anything else to use Python 2. These instructions document the installation of Python 3.

3) The version of Python that ships with OS X is great for learning, but it’s not good for development. The version shipped with OS X may be out of date from the official current Python release, which is considered the stable production version.

4) Before installing Python, you’ll need to install GCC. GCC can be obtained by downloading XCode, the smaller Command Line Tools (must have an Apple account) or the even smaller OSX-GCC-Installer package.

Note:
If you already have XCode installed, do not install OSX-GCC-Installer. In combination, the software can cause issues that are difficult to diagnose.

Note:
If you perform a fresh install of XCode, you will also need to add the commandline tools by running xcode-select --install on the terminal.

5) Install Homebrew,

5.1) open Terminal or your favorite OSX terminal emulator and run.

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

5.2) Once you’ve installed Homebrew, insert the Homebrew directory at the top of your PATH environment variable. You can do this by adding the following line at the bottom of your ~/.profile file

export PATH=/usr/local/bin:/usr/local/sbin:$PATH

6) install Python 3

$ brew install python

Note:
Since Mac is pre-bundled with Python 2, your new python and its pip executable may require number 3 after their names

ie

python3

pip3


REFERENCE:
https://docs.python-guide.org/starting/install3/osx/



Wednesday, May 23, 2018

Web Scraping With Java


Web scraping, web harvesting, or web data extraction is data scraping used for extracting data from websites. Web scraping software may access the World Wide Web directly using the Hypertext Transfer Protocol, or through a web browser. While web scraping can be done manually by a software user, the term typically refers to automated processes implemented using a bot or web crawler. It is a form of copying, in which specific data is gathered and copied from the web, typically into a central local database or spreadsheet, for later retrieval or analysis.
  1. Introduction to Web Scraping with Java
  2. Jaunt - Java Web Scraping & JSON Querying
  3. Web-scraping with Java
  4. Professional Web Scraping with Java | Udemy
  5. Web Scraping in Java Using jsoup and OkHttp - DZone Web Dev

Saturday, February 3, 2018

What is Tilde in Programming?



.
This symbol (in English) informally means "approximately", "about", or "around", such as "~30 minutes before", meaning "approximately 30 minutes before".

It can mean "similar to", including "of the same order of magnitude as", such as: "x ~ y" meaning that x and y are of the same order of magnitude.

In Computer Programming such as C, Java and JavaScript,  Tilde symbol (~) represents an operator.

For example, in JavaScript, it represents a NOT Bitwise Operator.

Read the following texts for further explanation.

.
The following table summarizes JavaScript's bitwise operators:
OperatorUsageDescription
Bitwise ANDa & bReturns a 1 in each bit position for which the corresponding bits of both operands are 1's.
Bitwise ORa | bReturns a 1 in each bit position for which the corresponding bits of either or both operands are 1's.
Bitwise XORa ^ bReturns a 1 in each bit position for which the corresponding bits of either but not both operands are 1's.
Bitwise NOT~ aInverts the bits of its operand.
Left shifta << bShifts a in binary representation b (< 32) bits to the left, shifting in 0's from the right.
Sign-propagating right shifta >> bShifts a in binary representation b (< 32) bits to the right, discarding bits shifted off.
Zero-fill right shifta >>> bShifts a in binary representation b (< 32) bits to the right, discarding bits shifted off, and shifting in 0's from the left.
.

Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators

Monday, January 1, 2018

101 ionic1 firebase login


.

ionic1 firebase login


note:

  1. create firebase account at https://console.firebase.google.com
  2. create a project e.g. notaraziproject
  3. go to authentication section, select sign-in method = email. add your authorised domain (the domain that you will use to run login scripts and communicate with the firebase server)
  4. in authentication section, click web setup to get your [firebase web config codes]
  5. copy the source codes below, replace with your [firebase web config codes]


codes:

See the Pen 101 ionic1 firebase login by notarazi (@notarazi) on CodePen.