Surendra Sharma

Surendra Sharma

Search This Blog

Friday, September 5, 2014

Asa Kyo

This is my second poem 'Asa Kyo'

Kyo tere bare me mai din bhr sochta hu,
Kyo tere liye mai din-raat aanhe bhrta hu,
Kyo tere liye mai din rat bin pani machli sa tdpta hu,
Kyo tujh pe duniya ka sara pyar lutane ko jee chahta hai,
Kyo hr pl ek teri hi kmi mhsus hoti hai,
Kyo tujhe pa lene ke bavjud tujhe khone ka dr lga rhta hai,
Kyo ye mera dil ek tera hi hona chahta hai,
Kyo subh se sham, sham se subh ek tera hi dil pe phra rhta hai,
Kyo ek tere sath hi jeene ki dil mera dua mangta hai,
Kyo ye mera mn ek tere liye hi bekrara rhta hai,
Mai na janu ye kya hai, ye kyo hai,
Agar pyar yhi hai , to mujhe ye hua hai, tujh se, Anu se,
Or tu hi mera pyar hai, tu hi mera pyar hai.

TUM

I started to write a poem ( Kavita ) for my dear one.
Let me know about my first attempt to write a poem in Hindi. Your suggestions are welcome for motivation.

Registan Ki tpti dhoop me thndi chanv ka ahsas si lgti tum,
Bhtke smndr me kinara lgane vali kshti si lgti tum,
Ucche aasman me timtimate tare si lgti tum,
Badlo se brse pani ki phli fuhar si lgti tum,
Gulista ke ghne drkhto ki hriyali si lgti tum,
Thnd me grmi ka ahsas si lgti tum,
Andhere me ummid ki roshni ka ahsas si lgti tum,
Chmn ke phulo ki tbssum si lgti tum,
Driya ke bhte pani ki kl-kl ki aavaj si lgti tum,
Pahado pe Uncche jhrno ke trnnum si lgti tum,
Mujhe mere hi hone ka ahsas si krati tum,

Mere khud ka 'Anu' ke ho jane ki khvaish puri si krati tum.

My Shayaris - II


1.    Koi h jisko hum yaad karte hai ...
koi hai jisse milne ki rb se fryad krte hai..
jld vo mil jaye to jindgee svr jaye,
uske bina ek ek pl jeena mushkil hai

2.    koi mere mhboob ko mere naam ka chirag la de,
koi mere mhboob ko mere naam ka chirag la de,
ki mai uski yaado ka gulam bn chuka hu

3.    Bandhan rishtoo ka nhi..ahsas ka hota h
Jaha ahsas hota h vhi pyar hota h

4.    tere pyar me mera koi thikana nhi rha hai,
pta koi puchta hai to hm teri gliyan btate hai

5.    Aaine ki jrurt nhi hai mujhe,
Aaine ki jrurt nhi hai mujhe,
hmare liye to hmare dilbr ki aakhen hi kafi hai.


6.    tu mere baichen dil ka sukun hai,
tu mere baichen dil ki aarzoo hai,
tere bina na mera koi mukkml jahan,
jeene ki mere sirf tu hi jrrut hai

Thursday, August 14, 2014

Sybase IQ error Syntax error near 'SET' on line

Many times you may get Sybase IQ error like Syntax error near 'SET'. Suppose if I am trying to execute below statements

SET TEMPORARY OPTION Temp_Extract_Column_Delimiter =',';
SET TEMPORARY OPTION Temp_Extract_Row_Delimiter = '';
SET TEMPORARY OPTION Temp_Extract_Name1='\\\\XYZServer\\Backup\\test.txt';
SELECT column1, column2, column3 FROM tblTest
SET TEMPORARY OPTION Temp_Extract_Name1='';
commit;

Then Sybase IQ display below error

ERROR[42000][Sybase][ODBC Driver][Sybase IQ]Syntax error near 'SET' on line 5

Solution:

It simply means end SELECT query with semicolon “;”.
Every statement in Sybase IQ should be end with semicolon.

SELECT column1, column2, column3 FROM tblTest;
SET TEMPORARY OPTION Temp_Extract_Name1='';


Please leave your comments or share this tip if it’s useful for you.

Wednesday, August 6, 2014

How to show multiple messages in alert box in JavaScript?

An alert box is used to pop up the information where user has to click “OK”.

alert("This is single line message.");

Generally we are showing single line message in alert box. But do you know how to show multiple message in single alert box?

Trick is to use “\n” after every message to separate one message with other like

alert('-1. Tajmahal in India. \n\n-2. Pyramids in Egypt. \n\n-3. Great wall of China.');

Here I want separation of two lines between each message, so I used “\n\n”.

So finally it should look like this




Please leave your comments or share this tip if it’s useful for you.

Tuesday, July 22, 2014

column Id is constrained to be unique. value is already present

If you are working with dataset in .NET and facing error as "column Id is constrained to be unique. value is already present."
Then simply set

datasset.EnforceConstraints = false;

It does not check the constraints at .net side. When you are going to update dataset records into database, all constraints fire at database level.

Please leave your comments or share this tip if it’s useful for you.

Tuesday, June 24, 2014

Quick guide to install and use NCache in .NET application

NCache is a distributed in-memory object cache for mission .NET applications which are hosted on web farm environment.

Here are quick steps to install and use NCache in .NET application.

·         Download and install Ncache express from http://www.alachisoft.com/download.html#ncache

·         Open C:\Program Files\NCache Express\config and change cache.config name="mytestreplicatedcache" in config.ncconf file.

·         In client.ncconf, change cache id ="mytestreplicatedcache".

·         Open Perfmon from Run window and test the Ncache counter for object mytestreplicatedcache.

·         Start cache on all nodes, one for Local Cache & two for Replicated Cache. Startcache.exe is located in “%InstallDir%\NCache Express\bin\tools” folder. Do this once for each cache server:
Startcache  cache-id /s serverName

C:\Program Files\NCache Express\bin\tools > Startcache  mytestreplicatedcache /s SERVERNAME

·         Run “AddTestData” command-line program provided with NCache to add some test data to the cache. It is located in “%InstallDir%\NCache Express\bin\tools” folder. Following command adds 100 items of size 1024 bytes each:

AddTestData  cache-id /c 1000 /s 1024

C:\Program Files\NCache Express\bin\tools > AddTestData  mytestreplicatedcache /c 1000 /s 1024

·         Check Green marked Additions/sec counter in performance counter that, it is showing value for addition of 1000s items.

·         After 5 min., check blue marked Expirations/sec counter in performance counter that, it is showing items going to expire.

·         If the above operations succeed, then you can rest assured that you’ve configured the cache correctly. You can either let the “test data” expire in 5 minutes of manually clear the cache with the following command (again in “%InstallDir%\NCache Express\bin\tools”)

ClearCache cache-id

C:\Program Files\NCache Express\bin\tools > ClearCache mytestreplicatedcache

·         Open web application in visual studio add reference of "Alachisoft.NCacheExpress.Web.dll" from C:\Program Files\NCache Express\bin\assembly\clr20

·         Mark all entities that need to be cached as [Serializable].

Please leave your comments or share this guide if it’s useful for you.