Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Saturday, December 17, 2022

Book : How to Stay Smart in a Smart World

 AI is the buzzword in Software Industry these days. Recently there has been lot of buzz on ChatGPT . It is definitely a fun application which makes you feel as if you are chatting with an all knowing person in a very human friendly way.

So when I got my hands on this Book (How to Stay Smart in a Smart World), I was very excited.

Here are the main storylines of this book

  • Finding love through AI assisted matchmaking sites such as Match.com or any other such app or site is dubious and misleading. The main reason behind their failure is that people are not profile they create. Human nature is very complex and people are not very truthful in expressing what they are and what they want in these apps. Thus no wonder AI is a failure here.
  • In a stable world scenarios such as game of Chess or Go, AI can definitely outperform humans. Also that is not because of Intelligence rather the fast computational capability. 

Friday, September 7, 2012

Google App Engine and Java Session

In JEE web application, we are used to keeping objects required in session, so that it can be retrieved in some other call flow. But by default GAE doesn't support session management.

To enable it you have to do following.
Open WEB-INF/appengine-web.xml

Enable session by uncommenting

true

But to make it work on hosted app engine, all the objects which you are planning to put in session must implement Serializable interface.

Now app engine will put your session data into storage system (Bigtable). You can see it by viewing your datastore viewer. Search by kind _ah_SESSION

Wednesday, November 24, 2010

A Sample Web Application - 1

I am trying to learn technologies using a practical approach. Right now my focus is to create a sample e-commerce web application using Java Technologies.

The technologies of focus are

1) Spring : For dependency injection
2) Struts2 : For MVC framework
3) Hibernate : For persistence
4) Maven: For build management
5) Tomcat 6 : Servlet Container
6) SVN: Source code managemnt

Since building a full scale e-com app is not in scope for small scale learning approach, i am going to take baby steps.
My first step is

Create a login funcitonality
Allow user to enter username and password. Right now the system will just say a successful validation if both username and password are same. It doesn't involve DB interaction and still able to use Spring and Struts 2 integration.

Build Instructions

Use this command to anonymously check out the latest project source code:

# Non-members may check out a read-only working copy anonymously over HTTP.

svn checkout http://amj-ecom.googlecode.com/svn/trunk/ amj-ecom-read-only

You will need a svn client for this. I am using Tortoise SVN.

To build it you just need to run ($mvn package from your command prompt). It will create a war file ecom.war in target directory. I have created a small script cleandeploy.bat for easy deployment of app to a tomcat container. You will need to edit this file to point to the correct path of tomcat dir as per your system.

Any suggestion and feedback is welcome.

I intend to add more posts as and when i add more functionality in this project.