Archive

Archive for the ‘Other’ Category

वक्त का लिबास उड़े

September 11th, 2011 53 views No comments
Wqat ka libaas ude hindi urdu poem by Amit Azeez

Wqat ka libaas ude

तगाफ़ुल – negligence/indifference/apathy

फ़िगार  – wounded/sore/afflicted/confused

मक्नूं  – hidden/concealed

परी पैकर – pari ki tarah sundar

महरम – rhasya jaanne wala

माह वश – having a face as beautiful as the moon

ज़ीस्त – life

Note: Image and literature both are under copyright

My favorite dance stars

August 7th, 2011 73 views No comments

Prince from dance india dance

Prince

Hrithik Bollywood actor

Hrithik

Adam G Sevani hollywood actor

Adam G Sevani

Categories: Other Tags:

How to integrate Rupee or other currency symbol on your webpage without images

April 26th, 2011 117 views No comments

You would have seen many websites showing text with stylish fonts, even if those fonts are not available on client site.
It’s very simple. Just copy paste a CSS code somewhere in HEAD tag.

If you are aware with my new font amty currency then you can do it in next 2 steps very easily.

  1. You need fonts(various format) to keep on your web server. You can download them from the download link given in the end of this article.
  2. Use the following CSS code in your CSS file or on your webpage
@font-face {
	font-family: 'Conv_AmtyCurrency';
	src: url('fonts/AmtyCurrency.eot');
	src: local('?'),
	url('fonts/AmtyCurrency.woff') format('woff'),
	url('fonts/AmtyCurrency.ttf') format('truetype'),
	url('fonts/AmtyCurrency.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}
Please note this

  1. Different browsers support different version of font. So we must to keep and reference all type of fonts on web server
  2. Amty Currency font is open source. So it can be used by any organization
  3. Remember that @font-face increase one extra http request since required font are not referred from client cache.
  4. Referring images instead of font could be a good option since images are stored in client cache. And they decrease http requests. In addition images can be merged with other images. And it can be used as image sprite.
  5. Using font is better than images since you can re-size it, color it as per your need. For every symbol of font you need not to create a separate image.

Sample Demo & required files

This area is protected to registered users only.

ज़रा बैठ, थोड़ी देर

February 13th, 2011 215 views 3 comments

This is my first published poem. I had converted it into an image. So that non supportable browser can also show it perfectly. I wrote it on 13th Feb 11. I hope you’ll like it….

ज़रा बैठ, थोड़ी देर

Jara Baith... Thodi Der

Literature is under copyright. Use of this literature on any hard or soft copy without my permission is strictly prohibited

Simplest Shortest Sweetest Servlet tutorial – Part 2

February 8th, 2011 84 views No comments

You can request to a web server from html form using two methods GET & POST. So Our servlet class has two methods doPost() and doGet(). Our web servers automatically call appropriate method. So you need not to worry about internal mechanism this time.

< form method="get" action="/alias name of servlet">
:
< /form>

I hope the above discussion and the part1 has cleared you that a servlet is nothing but a java class accessorized with some extra classes to handle request, response etc. You can explore the servlet sea with your syntactical knowledge.

To increase you syntatically knowledge, here I am introducing you some commonly object, their use and their concept to handle not only J2EE but any web based application

Request

With Http request object

  1. You can read what is written in request header.
  2. Data submitted through the html form say form parameter
  3. Clients IP address, host address etc.

Refer sample servlet, web.xml and sample html page to know how to use request object.

Response

A servlet can response in either character form or in binary form. Giving response in binary format is similar to write data onto output stream. And responding in character format is similar to System.our.println() statement.

Character Data


response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("< html>");
:
out.close();

Binary Data


FileInputStream fis = new FileInputStream(new File("article-stack.pdf"));
response.setContentType("application/pdf");
ServletOutputStream servletOut = resp.getOutputStream();
byte[] read;
int bytes = 1024;
while((read=fis.read(bytes))!=-1)
	servletOut.write(bytes,0,read);
servletOut.close();

Example servlet
With the above small discussion and sample servlet, you should be able to design basic servlets like;

  • Submit a HTML Form to servlet. And display its data back.
  • Requesting a servlet to download a file.

Let me tell you one more point as a bonus

There is a very basic difference in attributes and parameters. When you pass something to a servlet then is called parameter. But when a servlet or JSP set some variables for their communication then it is called attribute.

spectrum of 12 apple flavors

October 16th, 2010 58 views No comments

Before this, I never seen such variety of apples. I hardly seen 3-4 types of apple. And I was not really aware that all the varieties may have a name.

Just see the spectrum of apple flavors


spectrum of 12 apple flavour

*open link in new window in case you are not able to see big size poster.

Eco friendly signature

October 11th, 2010 298 views No comments

Using green accessories might be helpful to spread “Go green” message among the people. But it’ll be better if you explain it to people about how to go green. It doesn’t require any effort. You just need to replace existing go green images in your signature with the images given below.

My sister (Manisha Gupta) made all below images to give words for “Go Green” message. These all images and messages are self explanatory. Just use them in your mail signature or wherever you can.

Use cycle avoid bike for short distances

Avoid rickshaws support car pooling use public transportation

*open above images in new browser

Best suitable for your signature

Use cycle avoid bike for short distances  signature image

Avoid rickshaws support car pooling use public transportation signature image

*Please suggest if you have some other ideas.

I had launched mobile version of article-stack.com

September 10th, 2010 15 views No comments
article-stack mobile theme

Hi friends,

I had launched mobile version for my site today. Now you can visit it directly from your mobile. Lite version of the site will be loaded to your mobile. That will let your surf fast. And will not eat your bandwidth.

If you want to visit its mobile version on your PC you need to surf http://article-stack.com/?mobile once. After this you can visit any article on this site as you are surfing on mobile. To visit normal version you will have to delete cache of your browser.

Since the site loads with minimal contents, less size of images so you might not feel high quality surfing while you are surfing its mobile version on your PC.

Moreover, since many plugins & widgets are not loaded to keep mobile version liter, so you might face appearance problem while reading an article.

I’ll try to fix all issues soon.

Categories: Other Tags: , ,

Ganesha Symbolism

August 21st, 2010 149 views No comments

This is an image i found over the net. I find many students who ever search for this image. So i am sharing it here.

lord ganesha symbolism

Powerset vs Google, who is better?

July 30th, 2010 33 views 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 28 views 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: , , , , ,

Google powered youtube hacked!!

July 8th, 2010 31 views No comments
youtube google logo

I surprised after hearing that youtube is redirecting their users to some adult sites. Hackers placed some JavaScript and HTML code in the comments section of targeted videos. When someone starts watching targeted video, code would run automatically and redirects visitor to some adult sites.
Google says the problem was fixed within only two hours of being reported, according to the BBC.

“We took swift action to fix a cross-site scripting (XSS) vulnerability on youtube.com,” a spokesperson said.

“Comments were temporarily hidden by default within an hour, and we released a complete fix for the issue in about two hours.

youtube hacked screenshot

“The thing with a cross-site scripting attack is that it will appear that it is a message being posted by that website, which gives it a certain legitimacy, Graham Cluley of security firm Sophos told BBC News.

“It could be used to show a message that tells you to update your password; it could link to a malicious website; or it could attempt to phish you.”

amty thumb recent is now amty thumb posts

June 28th, 2010 10788 views 70 comments

Well!! I had updated this article and deleted blah blah detail about this plugin. It makes me bore. Even though you can visit amtyThumb Post for more detail, features, FAQ, how to use it etc.

Why I deleted details from here?

With the version 7.0, amty thumb post has been changed a lot. You must have been read enough about it on wordpress plugin repository. If you miss something there, comment here. I’ll solve your problems

Why do you like this plugin?

Fully customizable plugin to show Recently written, Recently viewed, Random, Mostly & Rarely Viewd, Mostly Commented posts with thumbnail.

You can customize it in whatever way you want. It’s appearance depends on your imagination. Even if there is something which limits you, just comment here. I’ll add that feature ASAP.
download

Supportable plugin: amtyThumb

Screen Shots:

amty thumb post screenshotamty thumb post screenshot

amty thumb post screen shotamty thumb post screen shot

amty thumb post screenshotamty thumb post screen shotamty thumb post screen shot

More images

Welcome

June 26th, 2010 77 views No comments

Welcome to article-stack!! This is Amit Gupta (amty) returned back with new domain name, new look, new ideas and new contents. Let me tell you about this site and how it helps you. I designed this site is with the aim of sharing knowledge. There is no money matter behind this. Although to run this site healthier i would like to display some ads in some decent way. So they will not disturb your reading. I’ll tell later about how to display ads on this site. I am managing this site with my younger sister’s help. And with support of my family and friends.
About contents

My aim is to provide contents which are suitable to all age of group. You will get lots of charts, snippets, time lines , and muck more which will create and increase your interest to improve your knowledge. Its all about interactive learning. You would get ready to use code, database files to download, reviews over online services or products that i already handed out.

If you want to be updated with article-stack you may get its subscription by providing your email in right side bar.

All the contents on this site whether it is text or image or animation or any stuff for downloading, can be used freely by any for study & learning purpose. But publishing the same contents or stuff with other name is prohibited. You need to take prior permission to display any contents directly taken from this site.

I’ll appreciate if you visit my other site Think Zara Hatke. On the TZH, you can post your own articles with your name and can share on other sites. Only the problem is, your contents must not be common and the title of your article must be attractive.

Categories: Other Tags: ,