Sunday, July 30, 2017

How to Install Apache Tomcat on Mac OS X







Tomcat is a Servlet container (Web server that interacts with Servlets) developed under the Jakarta Project of Apache Software Foundation.

Tomcat implements the Servlet and the Java Server Pages (JSP) specifications of Sun Microsystems

Tomcat is an open-source, non commercial project

Licensed under the Apache Software License

Tomcat is written in Java (OS independent)



Download and unzip the tar.gz:

http://tomcat.apache.org/download-70.cgi



install:



sudo mkdir /usr/local

sudo mv ~/Downloads/apache-tomcat-7.0.*  /usr/local

sudo ln -s /usr/local/apache-tomcat-7.0.*  /Library/Tomcat

sudo chown -R your-OSX-username  /Library/Tomcat

sudo chmod +x /Library/Tomcat/apache-tomcat-7.0.*/bin/*.sh



start:

/Library/Tomcat/bin/startup.sh



stop:

/Library/Tomcat/bin/shutdown.sh





------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT

Wednesday, July 26, 2017

Shell Scripting Tutorial





For more detailed Tutorial visit - https://goo.gl/bbvi0C



A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. A shell usually interprets a single line of input, but we can also create a file containing a number of lines of commands to be interpreted. This file is a program known as a shell script. The program can also contain control structures (if-then, loops). Shell scripts allow a sequence of commands to be executed automatically . Shell Scripting tutorial is designed to help beginners and professionals.



00:00:00 1 - Introduction

00:10:00 2 - using Variables and Comments

00:20:11 3 - Read User Input

00:31:37 4 - Pass Arguments to a Bash-Script

00:40:08 5 - If Statement ( If then , If then else, If elif else)

00:53:20 6 - File test operators

01:03:45 7 - How to append output to the end of text file

01:14:26 8 - Logical 'AND' Operator

01:21:01 9 - Logical 'OR' Operator

01:26:35 10 - Perform arithmetic operations

01:33:51 11 - Floating point math operations in bash | bc Command

01:46:06 12 - The case statement

01:53:53 13 - The case statement Example

02:02:26 14 - Array variables

02:12:51 15 - WHILE Loops

02:19:07 16 - using sleep and open terminal with WHILE Loops

02:23:59 17 - Read a file content in Bash

02:31:15 18 - UNTIL loop

02:35:38 19 - FOR loop

02:44:08 20 - use FOR loop to execute commands

02:50:44 21 - Select loop

02:57:41 22 - Break and continue

03:04:11 23 - Functions

03:13:48 24 - Local variables

03:22:09 25 - Function Example

03:34:16 26 - Readonly command

03:41:34 27 - Signals and Traps

04:03:08 28 - How to debug a bash script



-------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT

Saturday, July 22, 2017

Redis Tutorial for Beginners 6 - more commands (SETEX, SETNX, INCR, DECR...





SETEX key seconds value

Sets the value with the expiry of a key



SETNX key value

Sets the value of a key, only if the key does not exist



SETRANGE key offset value

Overwrites the part of a string at the key starting at the specified offset



STRLEN key

Gets the length of the value stored in a key



MSET key value [key value ...]

Sets multiple keys to multiple values



MSETNX key value [key value ...]

Sets multiple keys to multiple values, only if none of the keys exist



PSETEX key milliseconds value

Sets the value and expiration in milliseconds of a key



INCR key

Increments the integer value of a key by one



INCRBY key increment

Increments the integer value of a key by the given amount



INCRBYFLOAT key increment

Increments the float value of a key by the given amount



DECR key

Decrements the integer value of a key by one



DECRBY key decrement

Decrements the integer value of a key by the given number



APPEND key value

Appends a value to a key



-------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT

Redis Tutorial for Beginners 5 - Redis strings commands





1 SET key value

This command sets the value at the specified key.



2 GET key

Gets the value of a key.



3      DEL key

This command deletes the key, if it exists.



4 FLUSHALL

Delete all the keys of all the existing databases, not just the currently selected one.



5 KEYS pattern

Returns all keys matching pattern.



-------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT

Tuesday, July 18, 2017

Redis Tutorial for Beginners 3 - How To Install Redis On Ubuntu Linux





There are two ways to install Redis under Ubuntu Linux



1. usind apt-get install

----------------------------------------------------

$ sudo apt-get install redis-server



2 with followind commands:

-------------------------------------------------------------

$ sudo apt-get update

$ sudo apt-get install build-essential tcl

$ mkdir redis && cd redis

$ wget http://download.redis.io/releases/redis-4.0.0.tar.gz

$ tar xzf redis-4.0.0.tar.gz

$ cd redis-4.0.0

$ make

$ make test

$ sudo make install



-------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT

Sunday, July 16, 2017

Redis Tutorial for Beginners 1 - How To Install Redis On Windows





There are two ways to install Redis under Windows



1. Download the latest Redis .msi file from

https://github.com/MSOpenTech/redis/releases

and install it.



2. You can choose either from these sources



https://github.com/MSOpenTech/redis/releases or

https://github.com/rgl/redis/downloads

Personally I prepared the first option

- Download Redis-x64-2.8.2104.zip

- Extract the zip to prepared directory

- run redis-server.exe

- then run redis-cli.exe



-------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT

Redis Tutorial for Beginners 1 - Introduction







Redis is an open source, BSD licensed, advanced in-memory key-value store where keys can contain data structures such as strings,

 hashes, lists, sets, and sorted sets. Redis Can be used as Database, a Caching layer or a Message broker.

Following in the footsteps of other NoSQL databases,  such as Cassandra, CouchDB, and MongoDB, Redis allows the user to store vast amounts of data without the limits of a relational database.

 

 History - In Early 2009 - Salvatore Sanfilippo, an Italian developer,

 started the Redis project.At that time. He was working on a real-time web analytics solution and found that MySQL could not provide

 the necessary performance. June 2009 - Redis was deployed

 in production for the LLOOGG real-time web analytics website

 March 2010 - VMWare hired Sanfilippo to work  full-time on Redis (remains BSD licensed) Subsequently,  VMWare hired Pieter Noordhuis, a major Redis contributor, to assist on the project.



-------------------------Follow-------------------

My Website - http://www.codebind.com

My Blog - https://goo.gl/Nd2pFn

My Facebook Page - https://goo.gl/eLp2cQ

Google+ - https://goo.gl/lvC5FX

Twitter - https://twitter.com/ProgrammingKnow

Pinterest - https://goo.gl/kCInUp

Text Case Converter - https://goo.gl/pVpcwL

Epoch Timestamp Converter - https://goo.gl/Zedjo5

Decimal - Binary - Hexadecimal Converter - https://goo.gl/rkX3JE

8-bit Checksum Calculator - https://goo.gl/inxvIT
IT Certification Category (English)640x480

Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Top Online Courses From ProgrammingKnowledge

Python Course http://bit.ly/2vsuMaS
Java Coursehttp://bit.ly/2GEfQMf
Bash Coursehttp://bit.ly/2DBVF0C
Linux Coursehttp://bit.ly/2IXuil0
C Course http://bit.ly/2GQCiD1
C++ Coursehttp://bit.ly/2V4oEVJ
PHP Coursehttp://bit.ly/2XP71WH
Android Coursehttp://bit.ly/2UHih5H
C# Coursehttp://bit.ly/2Vr7HEl
JavaFx Coursehttp://bit.ly/2XMvZWA
NodeJs Coursehttp://bit.ly/2GPg7gA
Jenkins Course http://bit.ly/2Wd4l4W
Scala Coursehttp://bit.ly/2PysyA4
Bootstrap Coursehttp://bit.ly/2DFQ2yC
MongoDB Coursehttp://bit.ly/2LaCJfP
QT C++ GUI Coursehttp://bit.ly/2vwqHSZ