Monday, 22 August 2016
Sunday, 21 August 2016
How to use Tomcat 8.5.x and TomEE 7.x with Eclipse?
ou've to change the
Then change the following code in
ServerInfo.properties file of Tomcat's /lib/catalina.jar file.ServerInfo.properties file contains the following codeserver.info=Apache Tomcat/8.5.4
server.number=8.5.4.0
server.built=Jul 6 2016 08:43:30 UTC
Just open the ServerInfo.properties file by opening the catalina.jar with winrar from your Tomcat's lib folderServerInfo.properties file location in catalina.jar is /org/apache/catalina/util/ServerInfo.properties
Notice : shutdown the Tomcat server(if it's already opened by cmd) before doing these things otherwise your file doesn't change and your winrar shows error. Then change the following code in
ServerInfo.properties
server.info=Apache Tomcat/8.0.8.5.4
server.number=8.5.4.0
server.built=Jul 6 2016 08:43:30 UTC
Restart your eclipse(if opened). Now it'll work.Sunday, 14 August 2016
bash: ./lmgrd: /lib64/ld-lsb-x86-64.so.3: bad ELF interpreter: No such file or directory
this is the problem you will face while "Configuring a License Server on Linux/UNIX for Mentor Graphics VLSI tools":
You will need to install the redhat-lsb library by running this command :
# yum -y install redhat-lsb
Wednesday, 6 July 2016
Blocking (immediate) and Non-Blocking (deferred) Assignments in Verilog
Blocking assignments- Blocking assignments (=) are done sequentially in the order the statements are written.
- A second assignment is not started until the preceding one is
complete. i.e, it blocks all the further execution before it itself gets
executed
moduleBlocking(inputa,// Assume a=1 initialized at time '0'inputb,// Assume b=0 initialized at time '0'outputregc,outputregd);initialbegin#50c = a|b;// waits for 50 time units, and execute c = a|b=1d = c;// Time continues from last line, d=1=c at t=50c = #50a&b;// Time continues from last line, a&b = 0 at t = 50, c = 0 = a&b at t=100#20d = c;// Time continues from last line, waits for 20 time units. c = 0 at t = 120, d = 0 = c at t = 120endendmoduleNon-Blocking assignments
- Nonblocking assignments (<=), which follow each other in the code, are started in parallel.
- The right hand side of nonblocking assignments is evaluated starting from the completion of the last blocking assignment or if none, the start of the procedure.
- The transfer to the left hand side is made according to the delays. An intra- assignment delay in a non-blocking statement will not delay the start of any subsequent statement blocking or non-blocking. However normal delays are cumulative and will delay the output.
- Non-blocking schedules the value to be assigned to the variables but the assignment does not take place immediately. First the rest of the block is executed and the assignment is last operation that happens for that instant of time.
moduleNon_Blocking(inputa,// Assume a=1 initialized at time '0'inputb,// Assume b=0 initialized at time '0'outputregc,outputregd);initialbeginc <=0;#50c <= a|b;// a|b executes at t=0 then wait for 50 units, and execute c=1d <= c;// The RHS value ‘c’ is ‘0’ at time t=0. Assignment time continues from last line, d=0 at t=50c <= #50a&b;// a&b=0 execute at t=0. For assignment time continues from last line, c=0 = a&b at t=100endendmodule
Q-1. What is meant by noise figure? What does it signify?
A :
Noise Figure or NF is defined as the ratio of output noise power to the
thermal noise in the input terminal at the standard noise temperature
(290 K) or simply the ratio of input SNR to output SNR. It is a measure
of degradation of Signal to Noise Ratio (SNR) which is caused by the
components in RF (Radio Frequency) signal chain.
Q-2. What is Standing Wave Ratio (SWR)? SWR = 1 signifies?
A :
SWR is used for impedance matching of load to the characteristic
impedance of a transmission line carrying RF signals. SWR=1 signifies
that the load impedance is equal to the characteristic impedance of the
line.
Q-3. What is Voltage Standing Wave Ratio (VSWR) and Power Standing Wave Ratio (PSWR)?
A :
SWR is generally used in terms of the maximum and minimum level of AC
voltages in a transmission line thus called VSWR. PSWR is the square of
VSWR as power is related to the square of voltage.
Q-4. Name a component that is generally used to sample a portion of energy transmitted in a line.
A : Directional Coupler.
Q-5. What is the change in transmitted power when modulation index in AM is changed from 0 to 1?
A : The transmitted power is decreased by 50%.
Q-6. When is FM equal to AM?
A : FM (Frequency Modulation) is equivalent to AM (Amplitude Modulation) when the FM index is very less than 1.
Monday, 17 August 2015
Thursday, 23 July 2015
Auto Filling the Column
1. Shortcut for moving between excel sheets
CRTL + pgup or pgDn
2. Shortcut Auto numbering in column
Select column from starting cell having starting number with
Shift + Down arrow
press Ctrl + D
then Alt + E+I+S
CRTL + pgup or pgDn
2. Shortcut Auto numbering in column
Select column from starting cell having starting number with
Shift + Down arrow
press Ctrl + D
then Alt + E+I+S
Wednesday, 15 July 2015
FTP server
Here we download data from FTP link
1. Make sure yum server is working on your RHEL machine
2. install vsftpd, ftp pakages
yum install vsftpd or
#rpm -ivh rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64.rpm
yum install ftp or
#rpm -ivh ftp-0.17-54.el6.x86_64.rpm
3. make firewall off
#iptables -F
4. make enforcing permissible
# getenforce
[root@localhost packages]# getenforce
Enforcing
the setenforce 0
it is temporary solution to make enforcing permanently off do the changes under Selinux policy
5. service vsftpd restart
#service vsftpd status
to make service on permanently
#chkconfig vsftpd on
6. #getsebool -a | grep ftp
#setsebool -ftp_home_dir 1
#service vsftpd restart
#service ftp restart
to check working of ftp
[root@localhost ~]# ftp 198.182.52.51
Connected to 198.182.52.51 (198.182.52.51).
220-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> binary
200 Type set to I
ftp> cd /pub/outgoing
250 CWD command successful
ftp> get CDC2015.tar.gz
local: CDC2015.tar.gz remote: CDC2015.tar.gz
227 Entering Passive Mode (198,182,52,51,143,50).
150 Opening BINARY mode data connection for CDC2015.tar.gz (51047711 bytes)
226 Transfer complete
51047711 bytes received in 92.6 secs (551.33 Kbytes/sec)
ftp> quit
221 Goodbye.
1. Make sure yum server is working on your RHEL machine
2. install vsftpd, ftp pakages
yum install vsftpd or
#rpm -ivh rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64.rpm
yum install ftp or
#rpm -ivh ftp-0.17-54.el6.x86_64.rpm
3. make firewall off
#iptables -F
4. make enforcing permissible
# getenforce
[root@localhost packages]# getenforce
Enforcing
the setenforce 0
it is temporary solution to make enforcing permanently off do the changes under Selinux policy
5. service vsftpd restart
#service vsftpd status
to make service on permanently
#chkconfig vsftpd on
6. #getsebool -a | grep ftp
#setsebool -ftp_home_dir 1
#service vsftpd restart
#service ftp restart
to check working of ftp
[root@localhost ~]# ftp 198.182.52.51
Connected to 198.182.52.51 (198.182.52.51).
220-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> binary
200 Type set to I
ftp> cd /pub/outgoing
250 CWD command successful
ftp> get CDC2015.tar.gz
local: CDC2015.tar.gz remote: CDC2015.tar.gz
227 Entering Passive Mode (198,182,52,51,143,50).
150 Opening BINARY mode data connection for CDC2015.tar.gz (51047711 bytes)
226 Transfer complete
51047711 bytes received in 92.6 secs (551.33 Kbytes/sec)
ftp> quit
221 Goodbye.
Tuesday, 14 July 2015
Saturday, 11 July 2015
Solution for: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
First of all yum server should be properly installed and working:
for installation of of "libexpat.so.0" you can go for
# yum install libexpat.so.0
this will install "libexpat" for 32 bit OS
for the installation in 64 bit os
# yum install compat-expat1
Package compat-expat1-1.95.8-8.el6.x86_64 already installed
to check version of redhat OS
#uname -a or
#uname -r
for installation of of "libexpat.so.0" you can go for
# yum install libexpat.so.0
this will install "libexpat" for 32 bit OS
for the installation in 64 bit os
# yum install compat-expat1
Package compat-expat1-1.95.8-8.el6.x86_64 already installed
to check version of redhat OS
#uname -a or
#uname -r
Solution of :: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
here target package is libtermcap.so.2
so commands are:
1. # rpm -qf /lib/libtermcap.so.2 -->> this will produce following result on terminal
compat-libtermcap-2.0.8-49.el6.i686
2.# rpm -qa | grep compat-libtermcap --->> this will produce the following results on terminal
compat-libtermcap-2.0.8-49.el6.i686
from i686 it is clear that this package is for 32bit OS
3. # find /lib -name libtermcap.so.2
TO INSTALL its 64bit version ::
first of all yum server should be properly working if it is working then use the following command for installation of libtermcap.so.2:::
# yum install compat-libtermcap
(
In Red Hat 6 the library name has changed to compat-libtermcap. If you try to install just libtermcap via Yum it will fail saying "No package libtermcap available." If you try to install libertermcap.so.2 (based on the error message) via Yum it will only install the 32-bit library by default "compat-libtermcap-2.0.8-49.el6.i686"
But,
because we are using the 64-bit installer, we need the 64-bit
compat-libtermcap library installed. The command to install
compat-libtermcap on Red Hat 6 is "yum install compat-libtermcap" This will install the correct library you need "compat-libtermcap-2.0.8-49.el6.x86_64"
)
so commands are:
1. # rpm -qf /lib/libtermcap.so.2 -->> this will produce following result on terminal
compat-libtermcap-2.0.8-49.el6.i686
2.# rpm -qa | grep compat-libtermcap --->> this will produce the following results on terminal
compat-libtermcap-2.0.8-49.el6.i686
from i686 it is clear that this package is for 32bit OS
3. # find /lib -name libtermcap.so.2
TO INSTALL its 64bit version ::
first of all yum server should be properly working if it is working then use the following command for installation of libtermcap.so.2:::
# yum install compat-libtermcap
(
In Red Hat 6 the library name has changed to compat-libtermcap. If you try to install just libtermcap via Yum it will fail saying "No package libtermcap available." If you try to install libertermcap.so.2 (based on the error message) via Yum it will only install the 32-bit library by default "compat-libtermcap-2.0.8-49.el6.i686"
)
Subscribe to:
Posts (Atom)
