Sunday, July 20, 2014

Apache TCPMon Axis2 [How To]

  1. Download the TCPMon-bin zip and extract 
  2. Go to tcpmon-1.0-bin/build path
  3. There you see and tcpmon.bin files to run tcpmon-1.0.jar easily
  4. If you are using Linux version first make it as executable file sudo chmod +x
  5. Run the jar file using sudo ./ 
  6. Go to Admin panel in TCPMon app 

    • Change the Listen port to anything eg: 8081 instead of your default listen port 8080
    • Change the Target port to 8080
    • And click Add button it will create a new tab
  7. Now the TCPMon will listen to 8081 port and handle the communication with the default port 8080
  8. Start the apache tomcat server and make sure instead of using localhost:8080 use TCPMon Listen port localhost:8081
  9. Simply navigate to the service or run the client application and explorer the result

Saturday, January 18, 2014

Unity3D and Webcam using WebCamDevice, WebCamTexture with C#, JavaScript

C# solution 

using UnityEngine;
using System.Collections;

public class WebCam : MonoBehaviour {

    void Start () {
        WebCamDevice[] devices = WebCamTexture.devices;
        if (devices.Length > 0) {
            WebCamTexture webcamTexture = new WebCamTexture(devices[0].name ,320, 240, 10);
            renderer.material.mainTexture = webcamTexture;

JavaScript solution 

function Start () {
    var devices : WebCamDevice[]  = WebCamTexture.devices;
    if (devices.length > 0) {
        var webcamTexture : WebCamTexture = WebCamTexture(320, 240, 10);
        renderer.material.mainTexture = webcamTexture;

Saturday, April 13, 2013

Visual c++ Converting String ^ to std::string (basic string)

private:string toString(String ^ s){
                string n;
                using namespace Runtime::InteropServices;
                const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer();
                n = chars;
                return n;

Tuesday, April 2, 2013

Oracle server & Oracle sqldeveloper installation on windows

Setting up oracel server

  1. Download Oracle SQL Express Edition 11g Click Here
  2. Unzip the downloaded file open DISK1 folder and run the setup.exe
  3. While installation enter a password for System (administrator) account **(important)**
  4. After installation is done Go to Start -> Run -> services.msc in windows
  5. Check the service called OracleServiceORCL if there is nothing called OracleServiceORCLservice
  6. Start -> Run -> cmd type on cmd to create the service c:\ORADIM -NEW -SID ORCL
  7. Again navigate to services.msc and select OracleServiceORCL service and start the service
  8. Again navigate to cmd it's good that you restart cmd prompt type c:\sqlplus system@orcl on cmd
  9. Then it will ask to Enter password: so enter the password that you entered while installation process (3rd step)
  10. Then cmd will ask to Enter user-name: system default user name is system
  11. Again Enter password: -> and enter
  12. Finally this is the success message Connected to:Oracle Database 11g Express Edition Release - Production
  13. Open the desktop icon called Get Started With Oracle Database 11g Express Edition
  14. Server installation DONE!

Setting up oracle sqldeveloper

  1. Download the oracle sqldeveloper Click Here
  2. Extract and open sqldeveloper.exe
  3. Tick all the file types, then click OK button
  4. Then right click on Connections and click New Connection
  5. Inside New Connection enter any connection name
  6. Enter username as default one called system
  7. Enter password as server password that you entered while oracle server installation
  8. Test the connection if succeeded, Save and Connect DONE!