Wednesday, November 16, 2016

Windows 10 update and WIFI , Network not shown in the network list

I have a Asus laptop and it used to have windows 7 and as Microsoft update is enabled on my laptop, Microsoft updated the operating system from windows 7 to windows 10.

Guess what? I do not see my wifi network in the network list.

I followed the below steps and it worked for me.

Don't see your Wi‑Fi network name at home?
Make sure your router is set to broadcast the network name:
  • Connect your PC to your router by an Ethernet cable.
  • Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)
  • Sign in with your user name and password, then make sure an option labeled Enable SSID Broadcast, Wireless SSID broadcast, or something similar is turned on. This setting is often on a Wireless Settings page.
I have Arris router/modem and opened the login page of router by going to http://192.168.0.1/
username: admin
password: password

Enable the Band Steering


Wednesday, August 17, 2016

Adobe CQ5 / AEM Debug

Please add the following command to quickstart or start bat file and listen on the port in eclipse / crxde to hit the debug console.

-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n

Wednesday, January 22, 2014

Regular Expression


Following is a javascript function using regex to convert HTML BR tags to "\n" new lines.


function replaceHTMLBR(inputMesg) {

var retMesg = inputMesg.replace(/(<br\s*[\/]?>)|(&lt;br\s*[\/]?&gt;)/ig, "\n");
return retMesg;


}


I found this website very useful to check syntax errors of regular expression.

http://regex101.com/#Javascript

Monday, February 25, 2013

Viewing a SQL SERVER user defined SQL function:

Enter following command to see the sql code : 

sp_helptext 'functname'

Monday, September 24, 2012

JBoss AS 7.1

JBoss AS 7.x

JBoss directory structure has been changed completely compared to earlier versions (for example JBoss 5.x).

Deployment of a JAR, WAR, EAR :

There are two modes in JBoss 7.x (1) standalone (2) domain

I have deployed some sample jar, war files to standalone/deployments/ folder and successfully accessed the web pages.

EJB:

JBoss 7.x replaced the JBoss.xml with JBoss-ejb3.xml.

Excerpt from JBoss AS 7.1:

Replace the jboss.xml deployment descriptor file

The jboss-ejb3.xml deployment descriptor replaces the jboss.xml deployment descriptor to override and add to the features provided by the Java Enterprise Edition (EE) defined ejb3-jar.xml deployment descriptor. The new file is incompatible with jboss.xml, and the jboss.xml is now ignored in deployments.

Tuesday, July 24, 2012

CRON expressions


I change the cron expressions for the local development and here is the useful information.

CRON Expressions :

Cron expressions are used to schedule a job to execute at specific intervals of time.

Cron Expressions Allowed Fields and Values
Name Required Allowed Values Allowed Special Characters
Seconds Y 0-59 , - * /
Minutes Y 0-59 , - * /
Hours Y 0-23 , - * /
Day of month Y 1-31 , - * ? / L W C
Month Y 0-11 or JAN-DEC , - * /
Day of week Y 1-7 or SUN-SAT , - * ? / L C #
Year N empty or 1970-2099 , - * /

Examples:

Expression Means
0 0 12 * * ? Fire at 12:00 PM (noon) every day
0 15 10 ? * * Fire at 10:15 AM every day
0 * 14 * * ? Fire every minute starting at 2:00 PM and ending at 2:59 PM, every day
0 0/5 14 * * ? Fire every 5 minutes starting at 2:00 PM and ending at 2:55 PM, every day
0 0/5 14,18 * * ? Fire every 5 minutes starting at 2:00 PM and ending at 2:55 PM, AND fire every 5 minutes starting at 6:00 PM and ending at 6:55 PM, every day
0 0-5 14 * * ? Fire every minute starting at 2:00 PM and ending at 2:05 PM, every day

Courtesy : Google, Oracle

XML to PDF :

To get a space &nbsp; in XML:
use the following Decimal value code:  &#160;