Posts

Showing posts from July, 2017

How to Embedding a live RTSP stream video URL in a webpage

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="400" height="300" id="vlc" events="True"> <param name="Src" value="rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/_definst_/mp4:bigbuckbunnyiphone_400.mp4">   </param> <param name="ShowDisplay" value="True"></param> <param name="AutoLoop" value="no"></param> <param name="AutoPlay" value="yes"></param> <embed type="application/x-google-vlc-plugin" name="vlcfirefox" autoplay="true" showdisplay="True" loop="no" width="400" src="rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/_definst_/mp4:bigbuckbunnyiphone_400.mp4" height="300"> </embed>

What is Port Forwarding ?

Port Forwarding Port forwarding or port mapping allows remote computers to connect to a specific computer or service on a private network. This allows you to run a web server, game server or a service of your choosing from behind a router. In a typical network the router has the public IP address and computers/servers obtain a private IP address from the router that is not addressable from outside the network. When you forward a specific port on your router, you are telling your router where to direct traffic for that port. This utility can verify the success of that process. Please refer to your routers manual or manufacturer for assistance in setting up port forwarding. Blocked Ports Most residential ISP's block ports to combat viruses and spam. The most commonly blocked ports are port 80 and port 25. Port 80 is the default port for http traffic. With blocked port 80 you will need to run your web server on a non-standard port. Port 25 is the default

How to fire AJAX Request on Regular Time Interval

There are many cases when require to update certain part of the web page on the regular basis. For example – showing live cricket or football score, display latest news feeds,etc. There are two ways to send AJAX request on specified time – By setInterval() and By setTimeout() JavaScript functions. Both do the same work but they are reliable for certain cases, which I discuss in this tutorial. 1.  Using setInterval() setInteval() It repeatedly calls the function on the given interval for stop you need to clear the interval using  clearInterval()  or close the window. Syntax – setInterval(function, milliseconds); Example Creating a function which calls the AJAX request and using this function in setInterval() and set Interval for 5 sec. Now the function executes on every 5 seconds and fetches new data from the server. function fetchdata(){  $.ajax({ url: 'fetch_details.php', type: 'post', success: function(response){ // Perform opera

Steps To Create Java Web Application With Tomcat Server With AWS Elastic Beanstalk

What is AWS Elastic Beanstalk AWS Elastic Beanstalk is an even easier way for you to quickly deploy and manage applications in the AWS cloud. You simply upload your application, and Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring. At the same time, with Elastic Beanstalk, you retain full control over the AWS resources powering your application and can access the underlying resources at any time. >>   Click here to view steps

Reddit Voting System With Java, Jquery And Mysql

Reddit voting consists of up voting  and down voting. These votes decide rank of the post, which ultimately decides the position of the story link. Here in this article, we are going to see simple architecture and database structure to implement reddit voting system.  >>   Click here to view source code with sample database

Login With Social Site Using Java Working code.

Social login is a single sign-on (SSO) technology that allows users to authenticate themselves on various applications and sites by connecting through a social media site rather than typing a separate ID and password on each website. The sites most commonly associated with social login are Facebook, LinkedIn, Google and Twitter. When the user visits a site that offers social logins, they have the option to register, log in with their regular ID and password or through a widget or plug-in that connects the site to their choice of social platform. >>   Update Twitter Status Using Java >>   Login With Twitter Using Java >>   Login With GitHub Using Java >>   Login with Google using Java

Essential Sublime Text Plugins For All Developers

We need plugins to fully customize Sublime Text rather than config customizations and tweaks. I am currently using Sublime Text version three but going to give alternatives for version two, too. There are two different ways to install packages to Sublime Text. First, you can download package repository zip file from package's github page then extract folder to Sublime Text Packages folder. (For Windows: {{ User name }}\AppData\Roaming\Subllime Text {{ version }}\Packages\ ) Second which is easier way, you can install through Sublime Text official Package Control manager. Navigate to page by clicking the link and grab the code that belongs to which Sublime version you have. Then, go back to Sublime Text window and paste copied code to Sublime Text Console (ctrl+"). You need to restart Sublime Text after installation complete. And lastly, open commands window, (ctrl + shit + p) then type Package Control: Install Package to install a package. After you install a

How to setup tomcat 7 in Ubuntu 14.04 ?

Step 1 »  Install any latest JDK  before installing tomcat. Step 2 »  Download Any latest tomcat version from below URL.                   http://archive.apache.org/dist/tomcat/              Step 3 »  Extract the downloaded package Step 4 »  Go to bin directory of tomcat folder and run below command.                sh startup.sh Step 5 »  Now open http://serve-IP:8080 in your browser.

How to install Oracle 11gR2 on Ubuntu 14.04?

This article describes the installation of Oracle Database 11g Release 2 (R2=11.2) (64-bit) on Oracle Ubuntu (64-bit).  Step 1:  Download  Oracle Database Express Edition. Step 2: Instructions before install Oracle Copy the downloaded file and paste it in home directory. Unzip using the command: unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip Install required packages using the command: sudo apt-get install alien libaio1 unixodbc Enter into the Disk1 folder using command: cd Disk1/ Convert RPM package format to DEB package format (that is used by Ubuntu) using the command: sudo alien --scripts -d oracle-xe-11.2.0-1.0.x86_64.rpm Create the required chkconfig script using the command: sudo pico /sbin/chkconfig The pico text editor is started and the commands are shown at the bottom of the screen. Now copy and paste the following into the file and save: #!/bin/bash # Oracle 11gR2 XE installer chkconfig hack for Ubuntu file=/etc/init.d/oracle-xe if [[ ! `tail -n

How to install Jaspersoft Studio on Eclipse

What is Jaspersoft Studio ?              Jaspersoft Studio is the new Eclipse-based report designer for JasperReports and JasperReports Server. It is a full rewrite of iReport Designer, available as Eclipse plugin, and as a standalone application. Jaspersoft Studio allows you to create sophisticated layouts containing charts, images, subreports, crosstabs and much more. You can access your data through JDBC, TableModels, JavaBeans, XML, Hibernate, CSV, and custom sources, then publish your reports as PDF, RTF, XML, XLS, CSV, HTML, XHTML, text, DOCX, or OpenOffice.                      Jaspersoft Studio's primary goal is to provide the features in the well-known Jaspersoft Report Editor, available as a port of iReport Designer. Installation Steps 1)  Go to Help->Eclipse Marketplace... 2)  Type "Jaspersoft Studio" in search field and press enter 3)  Click on "install" button in Jaspersoft Studio 4)  Follow the process

How to Installing WindowBuilder on Eclipse

What is WindowBuilder ?                    WindowBuilder is composed of SWT Designer and Swing Designer and makes it very easy to create Java GUI applications without spending a lot of time writing code. Easily add controls using drag-and-drop, add event handlers to your controls, change various properties of controls using a property editor, internationalize your app and much more.   Inatallation Steps   To install WindowBuilder in Eclipse go to :          Eclipse Help-> Install New Software. In the textbox for add enter this URL :         http://download.eclipse.org/windowbuilder/WB/integration/4.6/   Tick the Window Builder and click Add . Complete the installation.

How to Install TeamViewer on a Ubuntu system

1) Download TeamViewer.deb file from below site as per your system os (32/64) https://www.teamviewer.com/en/download/linux/ 2) Open terminal and login with root sudo su Enter password for root user 3) Go to Download Directory cd Download 4) Change file permission using below command chmod 777 TeamViewer.deb 5) Install package using below command dpkg - i TeamViewer.deb 6) Search TeamViewer in search area

How to Install or Upgrade Google Chrome to latest version in Ubuntu

Step 1: Adding Google Chrome PPA $ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - Now add the PPA url to /etc/apt/sources.list.d/google.list 64-Bit Systems: $ sudo sh -c 'echo " deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main " >> /etc/apt/sources.list.d/google.list' 32-Bit Systems: $ sudo sh -c 'echo " deb http://dl.google.com/linux/chrome/deb/ stable main " >> /etc/apt/sources.list.d/google.list' Step 2: Install or Upgrade Google Chrome $ sudo apt-get update $ sudo apt-get install google-chrome-stable Step 3: Start Google Chrome After completing step 2 the Google Chrome has been installed successfully on our system. Let start Google Chrome using the desktop menu or using one of the following commands. $ google-chrome & [or] $ google-chrome-stable &

How to Install AnyDesk remote desktop client on Ubuntu

1)  Download AnyDesk.deb file from below site as per your system os (32/64)           https://anydesk.com/download 2) open terminal and login with root sudo su Enter password for root user 3) Go to Download Directory           cd Download 4) Change file permission using below command   chmod 777 anydesk.deb 5) Install package using below command           dpkg - i anydesk.deb 6) Search AnyDesk in search area