Posts

module not found error: no module named 'mysql'

Image
put the jar file in the project's library folder.

NotImplementedError: Cannot convert a symbolic Tensor (2nd_target:0) to a numpy array

NotImplementedError: Cannot convert a symbolic Tensor (2nd_target:0) to a numpy array  I got this error when I was having NumPy version - 1.20 and I downgraded it into NumPy version -1.19 (Tensorflow version - 2.3 and python version - 3.8)

My Experience with CloudKasthiram 2020

Image
First, what is Cloud Kasthiram? I never knew what the CloudKasthiram is when I was registering for the challenge. So I think there might be students like me and this is the best time I can share what I know about this CloudKasthiram . Basically, CloudKasthiram is a challenge which is based on the Google Cloud Platform organized by GDG Sri Lanka. The challenge was to complete only 6 labs of 11 labs which were provided by the CloudKasthiram team within the given time period. After completing a lab they are providing a badge and that is the certification of completion. So that means to complete the challenge, six badges must be collected. Other than that, if anyone wants to get all the badges they can also complete all the quests. From where did I get to know about CloudKasthiram and how did I register for the challenge? I got to know about CloudKasthiram from the GDG Sri Lanka Facebook page. Then I registered myself for the challenge using the provided google form and received thei...

configure maria db to create crystal report (to get values from phpmyadmin to make crystal reports)

Image
'MUST' download version 2 of maria db connector (if it is 32 bit it will be helpful even your laptop supports 64bit) from https://mariadb.com/downloads/?showall=1&tab=connectors&group=mariadbconnectors&product=ODBC%20connector#connectors go to control pannel > Administrative tools >ODBC Data Sources (32-bit) then  go to System DSN add new select mariodb  odbc 2.0 driver  give a custom name like test or what ever you want add your server name add the user name and password of PHPMyAdmin login then select your database next, all the rest of the interfaces then finish now go to the visual studio create a crystal report then go to field explorer select database explorer right-click and select the database expert then create new connection select OLE DB (ADO) now add Microsoft OLE DB ODBC provider for ODBC driver now select the name of your created System DNS name (ex: test) give your User name and password of PHPMyAdmin login then finish keep in mind to down...

Setup Apache Tomcat Server on eclipse

Image
For specific project Create a new web project:  File > Dynamic Web project > Cerate new one Setup server: Go to Window > Preference > Server > Runtime Environment > Add  Then Select Apache Tomcat Server > Next > Add the source directory of pre-installed Apache Tomcat (not the bin folder) Comment : when starting server if it shows an error saying Starting Tomcat v9.0 Server at localhost has encountered a problem, like bellow 1) Double click on the server tab 2) Change the port numbers which you haven't used for other running servers 3)Start again

Express JS(Part 02)

Image
Express JS   ( Part 02) What I s   Express JS  ? Express JS  is a web application framework. It provides a simple API to build websites  ,  web apps and back  ends . This provides the minimal interfaces to build the applications . It is flexible with the numerous modules available on  npm . Express JS  was developed by  TJ Holowaychuk  and is maintained by the Node . js . How To Setup And Configure? As the very first step, we need to install the express-generator module on the system.  it is very simple. Type  npm install -g express-generator on command prompt and press enter to install. As the next step create new express project using newly installed express generator . For example, now you can try printing hello world in your project. Try An Example To Print "Hello World" In this image the first line has imported the express to our file . So that we have access ...

REST Services And Express JS

Image
REST Services And ExpressJS ( Part 01) What is  the REST Services? Simply it is the abbreviation of the  RE presentational S tate T ransfer P rotocol. This is the architectural style for distributed hypermedia systems. REST also has its own guiding constraints which must be satisfied if an interface needs to be referred as RESTful like other architectural styles. As guiding principles of REST, there are 6 principles. Those are   Client-server ,  Stateless,  Cacheable,  Uniform interface,  Layered system,  Code on demand (optional) Client-Server   :   Separates the user interface and services Uses URI to make the connection between the client and the user HTTP stack is the communication platform Client is portable S erver stands independent from different user interfaces. Stateless   :   Self-containing messages, no client state on the server For the pa...