Wednesday, August 27, 2014

How to integrate command prompt and File Manager in an client server application

How to integrate command prompt in an client server application?






Command prompt integration consists of 2 parts; Telnet Client in Web and on server system it uses Microsoft Telnet Service. 


Telnet Client allows a computer to connect to a remote Telnet server. Telnet Client can be developed in Java Applet which connects to build in Microsoft Telnet Service.


On Windows, each Telnet command prompt session consists of two processes: TlntSess.exe and Cmd.exe. TlntSess.exe is responsible for managing the Telnet session. Cmd.exe is the command interpreter, or shell program, that runs commands, programs, or scripts on the host

Challenges/ Problems

  • The Microsoft Telnet Service which is running on the server system user may have security concerns. Also it was separate service running on the server.


  • On client side, updating the Java version with new on client side was blocking applets from run.    



Solution

Hence, You replaced the Microsoft Telnet server with the KPYM server  and integrated the server module in application, so that the telnet server is running under the same process and running separate service on the server was no more required.



Also you will need to provided the signed JAR applets by adding the Trusted information inside the Metadata file to avoid the security error message coming with after Java version update.





How to integrate File Manager in an client server application?

File Manager allows to transfer the files from Local to server system and Vice-versa. The User can access this functionality similar to  the Windows Explorer. He/she can do Copy, Paste, delete, drag-drop with single/multiple files and folders.

It has 2 components :

1]  Web Client to show file List on client side as well as file system from remote system

2]  Server component running on server system

Challenges/ Problems
Application is hosted on IIS Express; IIS Express do not support the FTP where as IIS has support for FTP.

We can use the ActiveX control which runs only on IE, for Firefox, we have to use the java Applet which increase the code duplication.

Solution
You can overcome the challenge by implementing the File Manager server and client components. Use FTP / HTTP protocol to transfer file from server to client and vice-versa.

This technology support to get client side file explorer using java applet and can transfer files using FTP protocol. Server side component can be developed using .net technology. Client side component can be developed using java applet so that it will supports Internet Explorer, Firefox and Chrome browser as well.

 

Mobile - How to

  • How To Take Screenshots with the BlackBerry PlayBook?
To take a screenshot on the PlayBook, just press both volume buttons on the top of the device at the same time. It will snap a screenshot and put it in your Pictures folder.
  ----------------------------------------------------------------------
  • How to Factory reset Black Berry smart phone?
  1. On the BlackBerry smartphone, select Options from the home screen.
  2. Select Security Settings, then Security Wipe.
  3. Specify what items will be wiped during this process by checking off the boxes.
  4. Enter “blackberry” (field is not case-sensitive) and select Wipe.
  5. The BlackBerry smartphone will reset a few times, and after this process is complete, it will no longer contain any of your personal data.

Mobile Development Environment - Issues

Problem#A1:
When Android Development Toolkit (ADT) for x86_64 version installed on Windows 7 x64 and starting Eclipse shows message
'A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location C:\Eclipse\adt-bundle-windows-x86_64-20130522\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH



Even if JDK or JRE is installed in C:\Program Files (x86)\Java

Solution:
Download and install ADT for adt-bundle-windows-x86-20130522 solves the problem

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

Problem#A2:
Creating Andriod Virtual Device (AVD) for Google Nexus 7 with RAM 1024 show error message
'Starting emulator for AVD 'Google_Nexus_7_4.2'
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.'

Solution:
1. Reduce the RAM to 512
OR
2. Edit C:\Users\<user_name>\.android\avd\<device_name>.avd\config.ini change hw.ramSize=1024 to hw.ramSize=1024MB


----------------------------------------------------------------------------
Problem#A3:  
When new android application project is created in eclipse and tried to run that application its throwing an error message 'AndroidManifest.xml file is missing'.
Solution:  
  • Manually delete the bin and gen directory, 
  • Right click the project and select Android Tools->Fix Project Properties, then using Project->Build All.
---------------------------------------------------------------------------

Problem#B1:
BlackBerry JDE show windows cannot find javaw

Solution:
Append this one to your PATH variable:
C:\Program Files (x86)\Java\jdk1.7.0_06\bin

---------------------------------------------------------------------------
 
Problem#B2:
BlackBerry Packaging Problem Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified
 
Solution: 
Right Click My Computer -> Select Properties-> Select Advanced System Settings Tab -> Environment variables 
Click on new button and Add
Variable Name : JAVA_HOME Variable Value : C:\Program Files\Java\jdk1.7.0\bin

---------------------------------------------------------------------------
Problem#B3:
BlackBerry jde 7.1 java.io.IOException: Cannot run program
 
Environment : BlackBerry JDE 7.1, Windows 7 64-bit
Solution: 
While Installing BlackBerry JDE, change default installation directory to 
C:/JDE/ 
Instead of
C:/Program Files (x86)/research in motion/
---------------------------------------------------------------------------

Problem#W1: 
Windows Phone Application Deployment shows Error failed to connect to device as it is pin locked

Solution: When deploying the app, make sure the phone screen is unlocked.
---------------------------------------------------------------------------

Problem#W2: 
The Windows Phone Emulator wasn't able to connect to the Windows Phone operating system. The emulator couldn't determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality may be disabled.
Solution: 
  1. Started Hyper-V manager
  2. Virtual Switch Manager
  3. Removed the “Windows Phone Emulator Internal Switch” from the list, and applied the changes.
  4. Start the emulator again.  The emulator required an elevation of privileges from the system in order to create the switch again. This will resolve any conflicts.
---------------------------------------------------------------------------

Problem#W3: 
Can't add GoogleAds.dll to Windows Phone 8 project;  Unzip downloaded file. Upon browsing to the DLL and selecting it as the reference, Visual Studio reported:
A reference to a higher version or incompatible assembly cannot be added to the project


Environment : Visual Studio 2012, Windows 8.1,Windows Phone 8 SDK


Solution: Right-click on the DLL file, choosing Properties and then clicking on the Unblock button. Once that is done, Visual Studio will allowed you to add the reference.
  
---------------------------------------------------------------------------
Problem#W4:  
When creating New Windows Phone project, Visual Studio reported:
Object reference not set to an instance of an object

Environment : Visual Studio 2012, Windows 8.1 x64,Windows Phone 8 SDK

Solution: Uninstall NuGet 
 .