Archive

Posts Tagged ‘discussion’

Why to use log4j instead of java classical logging

January 22nd, 2011 No comments

log4j makes your logging not only easier but efficient too. You are supposed to write less code. And can set its parameter at run time without changing actual code.

Read the below features which can make you use log4j.

  • log4j is thread-safe.
  • log4j is optimized for speed.
  • log4j is based on a named logger hierarchy.
  • log4j supports multiple output appenders per logger.
  • log4j supports internationalization.
  • log4j is not restricted to a predefined set of facilities.
  • Logging behavior can be set at run time using a configuration file.
  • log4j is designed to handle Java Exceptions from the start.
  • log4j uses multiple levels, namely ALL, TRACE, DEBUG, INFO, WARN, ERROR and FATAL.
  • The format of the log output can be easily changed by extending the Layout class.
  • The target of the log output as well as the writing strategy can be altered by implementations of the Appender interface.
  • log4j is fail-stop. However, although it certainly strives to make sure delivery, log4j does not guarantee that each log statement will be delivered to its destination.

What project you are planning to develop in this semester

January 11th, 2011 No comments

I observed that in most of the colleges, distribution of projects (as a college assignment) is very much similar every year, as it is given below.

Project Name Group size Popularity in %
Library Management 4 20
Hotel Management 3-4 15
HR Management 7-8 30
Cyber cafe Management 2 5
Transportation management 2 5
Other application like antivirus, dictionary etc 2 each 3 – 5
Other Management projects 3-4 each 20-30
Inventory management 3-4 20
Payroll management 2-3 15
School or college management 3-4 20

*This table is applicable only for computer branch students. And it might not be fit for some colleges.

All the projects which I mentioned are generally developed every year. And their understanding and documents flow from seniors to juniors like heirloom.

Ideas for project planning

Why don’t you try something different in this semester?

If you are deeply interested to design only management projects, It is not necessary that your project must have database. You may go beyond of this.

  • Make a network based application like a chat messenger which supports video chatting.
  • Or a FTP client that let you uploads & downloads files from a server.
  • You may either go for your own SMTP server or a mail server.

If you had set up your mind for standalone applications but not network based application then you may refer these topics as well

  • Mobile based dictionary
  • Or mobile based local bus timetable.
  • You also can develop a rich text editor
  • Or a traffic monitor system

Have a look on some web based applications

  • Develop a web based application to manage your appointments. Who can remind you and can present a calendar view.
  • You can develop an application which let user submit their message to various online social networking sites.
  • You can redesign your college website. So that it can be controlled fully from the back end.

Why to develop management type of project

These projects increase your understanding in a particular domain. You can highlight your domain knowledge in your resume. Further you can easily join a firm or an organization belongs to a particular domain like banking, finance or something else. All management based application use database. So their development shall increase your database knowledge as well. Database knowledge is primary to get selected in an offline campus. I’ll support if you do some certification in a particular domain parallel with your study. It’ll definitely help you in project development and campus selection as well.

Why not to develop management type of project

Application like network or mobile based applications, increases your knowledge in a particular technology. They give you confidence to work independently. You can make many of open source applications to weight up your resume. Moreover, If you are working on something different application or project then it’ll definitely fetch attention of your whole class and teachers as well.

Who is responsible?

December 15th, 2010 No comments

baby on bikeI shocked a night when I was hearing XXX FM. This was around 11 pm of 25 Feb 2010. There was a program running with very romantic songs neath the cool wind directly coming from window fondling my neck. And I immersed into …….. stop…. stop…. stop. Don’t go very ahead. I was set on my bed to study.

Well! on the right moment, Something happened on the FM which distracted me. And make me write this article. One school girl who was giving 12th board exam, called to the RJ Ms xxxx.

This program, running on FM, was basically related to people who are searching for a partner.

A girl, I am not announcing her name here, who was having exam after 4 days were also looking for a partner. If you see & feel this was a very romantic pal which was infusing an excitement inside many other people.

Here, the role of RJ was to notice listener’s request about their partner and announcing it on the FM. In the same way, a school girl, sneaking from her mother, called to RJ and gave her a little description about her looking, height etc, requests to a partner. RJ announced it on the FM and received 3 responses. All the boys described something about them self. Unluckily, her mother came and stood back right behind her at the moment.

RJ just asked her to reply in yes & no only. She opted the third boy who was from commerce side and was giving the 12th board exam too. After some questions, Finally RJ asked to her “Are you ready to exchange your number with him?”. And she whispered “yes”. And one romancing song started on FM to low down my notions.

Suddenly, my one friend said “Although this program may good for young people who are mature and can think, understand, and can take decision of their life very well. But It is not suitable for school students at all.”

I am not putting my opinion here. But something that i felt wrong.

Categories: Discussion & reviews Tags:

Is Google not safe for safe search

October 17th, 2010 1 comment

Google search banned During writing of Powerset vs Google, who is better?, I observed that google is not good in safe search. I found that if you search for some vulgar or spam words on google, it returns result which are not suitable for minors.

Now the question is,

if you don’t want unwanted result then why are you searching for those words?

Well! The answer is

As per the human mentality, a person ever try to search or discover the things or topics which are not clearly visible or available to them. But it doesn’t mean that you should serve them whatever they want.

For the sake of children career, their future and mental growth, parent control is required. Some days ago I wrote an article about some advertisements should be banned in public. Although the advertisements are first step of selling a product but sometimes they might be as harmful as an adult movie for children.

Please read, Why should you bane google on your home PC? if your child access that PC.

This is not only the point i wanted to discussion. Read Top 5 google fallouts to know “why indians are demanding google banned?”

Is Google not good for back link search?

October 15th, 2010 6 comments

A long time back when I searched for back links over google, I got 6 results. Which are decreased up to 4 when I searched today. On the other hand, Google webmaster tools tells me that there are total 12 back links for my site.


Google direct back link search

Google webmaster tools back link

Who is correct?

I raised this question on stackexchange (a QA site network). With other’s answers and my personal observation, I concluded that Google is not good in itself for back link search.

If you search

link:article-stack.com
and
link:article-stack.com site:some-domain.com

As per concept, 2nd query is the subset of 1st query. But practically 1st query returns only 4 results. While 2nd query returns more than 350 records.

DisgruntledGoat Says

regarding the fact the “subset” query shows more than the first query: It’s likely that the standard link: query only shows links without nofollow, whereas the subset simply includes all links from the specified site, whether they count or not.

I had checked manually all links on my site. No one is tagged as “nofollow”.

Moreover by the concept, “link:article-stack.com“ should not show results from my site itself.

But what if others sites ( referring to my site) are not cached or indexed by google? They also would not be counted and displayed in result. So I checked manually on google for all these pages which are referring my site. And I found that all the sites are indexed and cached at google end.

Finally, Simone Carletti suggested me one more online tool majesticseo. Just see back link search result on majesticseo.


majesticseo back link search

I am completely satisfied with the above result.

Why should you bane google on your home PC

October 10th, 2010 No comments

I agree with these two facts

  1. Most of the people use only google for searching. Even now the google has has taken place in English dictionary as a synonym of search.
  2. Most of the parent uses parent control software on their PC. So that their children would not have to face any unwanted contents knowingly or unknowingly.

But…

Have you forgotten to ban google on your PC?

I need not to say “why?”. You experience it yourself. Lets do some exercise;

Search for some images with some spam or vulgar keywords on bing, yahoo and google.

You’ll see that Bing and Yahoo will not show you results which are banned by the government. Even you set safe search off in Bing, you’ll not get inappropriate result. On the other hand Yahoo will not allow you to off the safe search. If you get some vulgar suggestion and click them, still those results will be banned. This search depends on country to country. At least these results are banned in INDIA as per Indian Information Act.

bing image search result

yahoo image search result

On the other hand, if you search same keywords on google, you’ll surely get inappropriate result which are suitable for your children. You’ll get these results even if safe search is on.


google image search result

*i cropped the above image. Because the previous image, even after hiding the hiding some place, was banned.

Remember that the google is not only the option for searching in contrast of study. Read Powerset vs Google, who is better? for this.

Advertisement Sensor board, mind outdoor boarding to save childhood

October 9th, 2010 No comments
Sensor board asked Mr. devang to cut some scenes from their movie otherwise release it with ‘A’ certificate. So people can decide whether they should take children to watch movie or not.

Don’t you think that there should be control on outdoors advertisement like ads on hoarding.


up skirt cloth hoarding advertisement

If you support these ads then you may say

If a lingerie or undergarments company will not advertisement them then who will buy them?

I agree that advertisement is first need to sell a product. But….

TVs are generally in parent control. Parents use parent guard. Internet surfing can also be controlled and monitored. So the advertisement on internet or on TV, might not be as harmful as outdoor ads.

A smiling face, beautiful location or the presence of a celebrity, might be enough for these ads.

One more question in support of lingerie ads

If lingerie ads and display is a problem … how will they deal with the temples in Khajuraho?

I don’t want to be the part of any argument or discussion. But as per my opinion, there are several unsocial places all over the world. But it doesn’t mean that we should support them. They might be correct on their place. But it doesn’t mean to advertise them in public.

This article is not inspired by any culture saving activity but this is just my opinion to save childhood.

What is AWK, an introduction

August 2nd, 2010 No comments

AWK is nothing but a simple and powerful UNIX filter command. You can use it to filter & format contents of a text file or to modify sometimes. For example;
count number of entries month wise from below file

	 10-Jul-10
	 23-Jul-10
	:
	 31-Jul-10
	 1-Aug-10
	:
	 4-Aug-10
	 5-Aug-10

Syntax idea:
Basic

awk 'NR==52 {print;exit}'

Complex

awk 'BEGIN {
		FS="^";OFS="^";
	}
	{
		for (i=1; i<=NF; i++) {
			gsub(/^[ t]+|[ t]+$/,"",$i);
		} print
	}'
	filename > file_name_new

You can call AWK as a programming language as well. Because, like other programming languages, it has control and conditional statements. It also let you create functions.

Instead of typing big syntax on command prompt, you can write AWK command in some file.

There are 3 versions of AWK:

AWK - the original from AT&T
NAWK - A newer, improved version from AT&T
GAWK - The Free Software foundation's version

I love to work in basic version only. Because it is having limited functions, some restriction over regular expression and lesser features than NAWK, GAWK. And you can explore your intelligence with this. Moreover, If you write a program in AWK then it’ll run in NAWK and GAWK as well.

Powerset vs Google, who is better?

July 30th, 2010 No comments
kangana on google

Database size of powerset search engine is very less than google. So it display limited search results. Still I prefer powerset. Specially when I don’t have exact word to search.
Searching over powerset is based on natural language processing. It can understands your question and arranges the results accordingly.


I searched for “kangana”. Powerset identifies it as people name. And gave little bibliography of the person. Then it displayed the rest results. While google takes it as a word only. Google doesn’t categorized or grouped the result.

kangana on powerset

Even though I prefer google. Why?
I prefer powerset when I am not having exact word to search. I searched over powerset, collects word and prepare new search query for more relevant search through google. I never prefer powerset for recent news or images or any activities. As per my opinion, powerset is very good search engine but for historical search only.
I feel powerset is just a very good replacement of wikipedia. If you are preparing reports or working on some case study then powerset can help you a lot.

What I missed in powerset…

Safe search off
There is no option to enable or disable safe search. Although the contents provided by powerset are filtered in itself.

Real time search
Powerset doesn’t search for current activities or news. It just searched over wikipedia.

Less data base size
Large database provide you better results. It also helps to bring most popular and relevant web pages in front of users. Even though powerset give most relevant search. Still the contents provided them are not sufficient to me.

Why powerset is best?

If you consider powerset and google as two people and whole world as library then I would say that powerset will bring you only the books you really required. On the other hand, google will bring many books which may or may not suite to your searches.

Why google is best?

Powerset searches over limited data. So the results are not rich enough. If you are searching for basic principal then one good book may be sufficient for you. But if you are searching for tips & tricks or some smarter ways to do the same task then you’ll have to refer other books and research papers as well. Google has huge amount of data. So it gives more result. Some of them may suggest you some different and better result which you might not expected. Moreover google scans all web periodically. So the contents provided by google are generally latest.

When to use powerset?

As I already had written above, If you are not having exact word what you are searching for, then you must prefer powerset. Moreover if you are doing some case study or preparing reports then powerset can help you a lot. Besides, google search for words in a statement but powerset can understand a question. So if you are writing a question like “Where is mumbai?”, then powerset can give you more relevant results.
Please note this
There is no comparison between google and powerset. It depends on what you are searching for.

irrelevant image search results

July 24th, 2010 2 comments

I tried to search “amty thumb” over various popular image search engines. I found that all search engines gives irrelevant results.
Bing suggested around 15 results. None of them were related to actual search.
Yahoo and altavista shown exactly same images. These images were also out of search.
Google returned highest quantity as usual. But none of them were useful.
NachoFoto returned no result.

amty thumb recent is a wordpress plugin that I made around 7 months ago. I wrote a post on this site around 2 months before for the same. I was expecting at least one search result from my site. I hadn’t submitted my site to any search engine. I just wanna see how relevant a search engine can search image or text without getting any submission from a site.

Categories: Other Tags: , , , , ,