Fix Failed Module Import in Sikuli Scripts

Sikuli IDE throws below error while importing the modules essentially with import subprocess Code: Error Message: [info] Sikuli vision engine loaded. [info] Windows utilities loaded. [info] VDictProxy loaded. [error] Stopped [error] An error occurs at line 3 [error] Error message: Traceback (most recent call last): File “C:\Users\GOVARD~1\AppData\Local\Temp\sikuli-tmp6393242728040316401.py”, line 3, in import subprocess  File “C:\Program Files\Sikuli […]

Posted in Web

How to determine a given web page/site is using HTML5 and not its older versions

  Requirement: You are a programmer/web developer/QA tester, you require to ensure that web page designed/tested is using HTML5.  How to find HTML version of Web page: Any browser detects the HTML version of the web pages by reading the very first line of a web page that is a declaration of <!DOCTYPE>.  The <!DOCTYPE> […]

How to access Database from JSP Web page running in Tomcat

Configure Database connection strings for Tomcat via Server.xml configuration file: …TomcatConfServer.xml   Configure DB connection entry in GlobalNamingResources and Realm tags   <?xml version=”1.0″ encoding=”UTF-8″?> <Server> <Listener className=”org.apache.catalina.mbeans.GlobalResourcesLifecycleListener”/> <Listener className=”org.apache.catalina.mbeans.ServerLifecycleListener”/> <GlobalNamingResources> <Environment name=”simpleValue” type=”java.lang.Integer” value=”30″/> <Resource auth=”Container” description=”User database that can be updated and saved” name=”UserDatabase” type=”org.apache.catalina.UserDatabase” pathname=”conf/tomcat-users.xml” factory=”org.apache.catalina.users.MemoryUserDatabaseFactory”/> <Resource name=”jdbc/myprod” type=”javax.sql.DataSource” driverClassName=”oracle.jdbc.driver.OracleDriver” password=”myP@ssw0rD” maxIdle=”5″ […]

Posted in Web

Understanding how user usernames and passwords are saved, retrieved and verified on websites

Environment: Lets consider you have a web site that is developed in PHP with MySQL DB in the backend and pages being served via the Apache Web Server.  All are freeware technologies with appropriate licensing terms.   End User input to Webpage and Webpage to Php script: A user login and/or registration page will prompt […]

Executing JavaScript .JS file

About JavaScript: is a Server side scripting language (as similar to php) files are saved with .js extension (which is ) is a Sun MicroSystems (and later Oracles) and NetScape team developed system Microsoft’s developed compatible version is called JScript   Executing JavaScript: You a browser to execute the JavaScript code That is, you can […]

Posted in Web