Showing posts with label General. Show all posts
Showing posts with label General. Show all posts

Wednesday, August 3, 2011

YOU LIVE ONLY ONCE.............

An elderly man in Mumbai calls his son in New York and says,

'I hate to ruin your day son, but I have to tell you that your mother and I are getting a divorce; 35 years of marriage... and that much misery is enough!'

'Dad, what are you talking about?' the son screams.

'We can't stand the sight of each other any longer,' the old man says.

'We're sick of each other, and I'm sick of talking about this, so you call your sister in Hong Kong and tell her!'

Frantic, the son calls his sister, who explodes on the phone.

'Like heck they're getting divorced,' she shouts, 'I'll take care of this.'


She calls Mumbai immediately, and screams at the old man, 'You are not getting divorced. Don't do a single thing until I get there. I'm calling my brother back, and we'll both be there tomorrow. Until then , don't do a thing, DO YOU HEAR??' and she hangs up.


The old man hangs up his phone and turns to his wife. 'Okay', he says, 'It's all set. They're both coming for our anniversary and paying their own airfare!!'



MORAL:

No man / woman is busy in this world all 365 days.

The sky is not going to fall down if you take few days LEAVE and meet your dear ones.

OFFICE WORK IS NOT EVERYTHING IN LIFE and MONEY MAKING IS NOT EVERYTHING IN LIFE.

10 Rules for Driving on Indian Roads

Alright people, print this out and stick it on a wall in front of your desk. Print bumper stickers if you like. Forward this to all friends, foes and colleagues.


The following tips will save your life. They will make you the king of Indian roads. Nobody will ever overtake you again. Not in life. Not on the road. Here’s 10 rules for driving on Indian roads. Based on careful analysis derived from personal experiences, market research and interviews, primarily with myself.

Read, and remember. And rule.

1. In a road accident, the one with the cheaper vehicle wins by default. If a BMW hits a rickshaw, it must be the fault of the rich brat most likely on cocaine.

2. It is perfectly acceptable to suddenly go across 3 lanes if you suddenly remember that you need to take a right turn. What else will you do?

3. Drunk driving is fine, as long as you have the connections.

4. If at an intersection you fail to move within a second of the light turning green, the person behind has the right to shoot you.

5. Backing down halfway from flyovers is acceptable.

6. If going wrong side saves you anything more than 200m worth of distance, then it is allowed. Rickshaws are exempted from this limit.

7. No rules apply to motorbikes. Really. Overtake from any side. Drive on the road. On the pavement. Over people. It is all ok.

8. Cyclists must pray to their respective gods before leaving the home. No other way out.

9. When in doubt, use the horn. [Which truly must be the best human invention since the mobile phone.]

10. Work like you don’t need money, Love like you’ve never been hurt, dance like no one’s watching, and drive like no one’s waiting back home.

LUCK Matters !!!

LUCK Matters !!!

With a pile of 300 resumes on his desk and a need to pick someone quickly, my boss told me to make calls on the bottom 50 and toss the rest.
"Throw away 250 resumes?" I asked, shocked.

"What if the best candidates are in there?"
"You have a point," he said.
"But then again, I don't need people with bad luck here."

:O

Thursday, September 17, 2009

ATTITUDE

If
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

is equal to
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Then,
Hard Work
H+A+R+D+W+O+R+K
8+1+18+4+23+15+18+11 = 98%
Knowledge K+N+O+W+L+E+D+G+E
11+14+15+23+12+5+4+7+5 = 96%
Love
L+O+V+E
12+15+22+5 = 54%
Luck L+U+C+K
12+21+3+11 = 47%
most of us think this is the most important ??? )
Then what makes 100% ?
Is it Money ? .. NO ! ! !
M+O+N+E+Y
13+15+14+5+25 = 72%
Leadership ? .... NO ! ! !
L+E+A+D+E+R+S+H+I+P
12+5+1+4+5+18+19+9+16 = 89%
Every problem has a solution, only if we perhaps change our attitude.
To go to the top,
to that 100% ,
what we really need to go further... a bit more...
ATTITUDE A+T+T+I+T+U+D+E 1+20+20+9+20+21+4+5 = 100%
It is OUR ATTITUDE towards Life and Hard Work that makes OUR Life very close to 100% Success! ! !
ATTITUDE matter...

Digital rights mgmt : remove-DRM-protection

Well this is definitely not about one of those xRM solutions that Dynamics CRM Team boasts about.. he.. he.. (in case u saw their video)

Digital rights mgmt. technology limits on how users may make and distribute copies of digital files and physical media like CDs/DVDs. nothing new and interesting.. ;-)

But its just that came across a few solutions/products from MS that i thought i will share you with.. :-) 

The Windows Media DRM tech. got started in 1999 and is adopted in computing as well as in consumer electronics ind. namely by Nokia, Motorola, Verizon Wireless, and NTT DoCoMo. Recently MS came up with MS PlayReady which is more than what a DRM does. It caters to mobile ind. also and other than microsoft audio/video formats, it also supports games, ringtones, images, etc. And a typical MS PlayReady ecosystem looks like this:

clip_image002

Microsoft PlayReady supports wide rage of business model subscription scenarios with flat rate to access any and all content under 3 diff. mechanism i.e. timely subscribtion renewal, metering and license chaining. It also supports pay-per-view scenarios, pay-per-track scenarios, rental scenarios by supporting time-based licenses, gifting scenarios like one person effectively paying for another person to accessing content.

Also it has wide range of content distribution options like basic progressive downloads, streaming, side loading from PC to mobile, MMS, WiFi, bluetooth sync., etc

So if it interests you.. do go and read more abt. it here...

Why i 'm just talking abt. only MS based ones?? its like asking why lowest dangling fruits are plucked first.. ;-p

technically they are always easy to install, deploy and use.. just do next, next and next.. but yes the same doesn't go well as far as price is concerned (its costing approx $30000 for the SDK and $30000 per processor for service deployment license)

So then out of curiosity i just bing'ed (not googled.. :) to see how easy is it to crack DRM protected files.. and i found plenty of such tools that too FREE!!!

http://undrm.info/remove-DRM-protection/

http://www.instantfundas.com/2008/01/how-to-remove-drm-from-media-files.html

not sure if these tools do work what they claim to and whether PlayReady managed content will crack proof???

Happy Reading...

even if question remains open on whether To DRM or Not to DRM!!! ;-)

HTTP protocol based progressive streaming

 

In its efforts to provide streaming services, M$ has come long way as from NetShow Services under Windows NT 4.0 to Windows Media Services 2008 to smooth-streaming under IIS7.

So you see a very gradual shift from traditional streaming protocols (RTSP, MMS, RTMP, etc.) to basic HTTP protocol based progressive streaming to now what is called as adaptive streaming which is enabled in IIS7 by installing Smooth Streaming IIS extension and a similar product by Move Networks' Adaptive Stream.

The HTTP based progressive streaming is widely used by YouTube and many similar video sharing sites. Even though its has benefits over traditional streaming protocols, but it has its own disadvantages which is very much addressed by adaptive/smooth streaming (won't bore u lot, so leaving up to u to find/read it.. he.. he..)

There is a nice demo uploaded at http://www.iis.net/media/experiencesmoothstreaming which show how smooth-streaming dynamically detects current network and local PC conditions, and based on it switches the video quality that Silverlight client plays.

To prove this new power of IIS, M$ did coverage for Democratic National Convention under its SilverLight client framework at http://gallery1.demconvention.com/ (u might hv to download MoveNetworks' player too) and later again did it for 2008 Beijing Summer Olympic Games at http://www.nbcolympics.com/video/ (though now you will have to search for it there as they are now getting ready for 2010 Winter Olympic Games in Vancouver ;-)

Then again M$ also teamed with Akamai to show case some of the best HD quality videos at http://www.smoothhd.com/

To encode such smooth-streaming videos MS Expression Encoder 2 (SP1) can be used, which has built-in templates too to enable smooth-streaming in any SilverLight app. So you, the flash lover designer, get up, jagooo, bcoz its time learn few new tools... ;-p

Its quiet interesting to understand how this adaptive streaming works and the benefits/complexities that comes with it, so do read more about it...

Happy Streaming!!!

;-)

Tuesday, August 18, 2009

Caffeine :: Google's answer to Microsoft's Bing!!!!

Its still in its beta, running at below link.

It claims to be faster than its classic ver., much accurate and subjective with new algo

http://www2.sandbox.google.com/

On 40th anniversary of apollo 11 mission

Whether that trip was actually faked or not nobody knows but this website has a real-time simulation of that entire Apollo 11 mission, divided into 11 phases with 103 hours of audio from NASA tapes. Animation really cool... check it out here at

http://www.wechoosethemoon.org/

Saturday, October 4, 2008

for all game lovers

Hi all,

today while browsing i got interacted with a new site mazefrenzy here i found a realy exciting maze game on the internet, in that you have to click on the tiny red dot and guide it through the white part of the maze. Watch out for the moving objects. If you go off the path you will have to start all over from the beginning. it seems quite simple but is really great.

once you cleared it there is another version of it is also available at mazefrenzy2

try it once, its really good.

good luck.

Wednesday, August 20, 2008

Download Vishalswami Toolbar

Hi all ,

Now you all can always stay in touch with the new developments of this site, by having the new vishalswami toolbar in your browser.
With that you will get :

1. The Best of Our Site
Get our freshest content delivered directly to your browser,no matter where you are on the Web.

2. Hand-picked Links
Check out all of our favorite places on the Web.

3. Google-Powered Search Box
Search the Web, our site, and other useful engines.

4. Alerts to Your Desktop
Receive our most important news and announcements instantly.

download and install the browser toolbar from here.

Wednesday, July 2, 2008

What is equivalent for regsvr32 exe in .NET?

Regasm

What are types of compatibility inVB6?

There are three possible project compatibility settings: - No compatibility - Project compatibility - Binary compatibility No Compatibility With this setting, new class ID’s, new interface ID’s and a new type library ID will be generated by VB each time the ActiveX component project is compiled. This will cause any compiled client components to fail(with error 429!) and report a missing reference to the `VB ActiveX Test component’ when a client project is loaded in the VB IDE. Note: Use this setting to compile the initial release of a component to other developers. Project Compatibility With this setting, VB will generate new interface ID’s for classes whose interfaces have changed, but will not change the class ID’s or the type library ID. This will still cause any compiled client components to fail(with error 429!)but will not report a missing reference to the `VB ActiveX Test component’ when a client project is loaded in the VB IDE. Recompilation of client components will restore them to working order again. Note: Use this setting during the initial development and testing of a component within the IDE and before the component is released to other developers. Binary Compatibility VB makes it possible to extend an existing class or interface by adding new methods and properties etc. And yet still retain binary compatibility. It can do this, because it silently creates a new interface ID for the extended interface and adds registration code to register the original interface ID but with a new forward key containing the value of the new interface ID.COM will then substitute calls having the old ID with the new ID and hence applications built against the old interface will continue to work(assuming the inner workings of the component remain backward compatible!). With this settings, VB will not change any of the existing class, interface or type library ID’s, however in order that it can do so, VB requires the project to specify an existing compiled version that it can compare against to ensure that existing interfaces have not been broken.

How do you do object pooling in .NET?

COM+ reduces overhead by creating object from scratch. So in COM+ when object is activated from its pool and when it’s deactivated it’s pushed back to the pool. Objects pooling is configured by using the “ObjectPoolingAttribute” to the class.

How to implement DTC in .NET?

DTC is implemented using COM+. Following are the steps to implement COM+ in .NET: - “EnterpriseService” namespace has all the classes by which we can implement DTC in .NET. You have to add reference “EnterpriseService” namespace. - Your class must derive from “Service Component” object. - Then you have to define your class with the transaction attribute - After the class level transaction type is defined, its time to define at the method level the AutoComplete attribute. AutoComplete attribute says that if no exception is thrown then mark its part of the transaction as being okay. This helps cut down on the amount of code required. If the implementation sets AutoComplete to false, or omits it all together, then we would need to manage the transaction manually. To manually control the transaction you will need to use the ContextUtil class and its static members.

How do we create DCOM objects in VB6?

Using the Create Object method you can create a DCOM object. You have to put the server name in the registry.

Can you describe IUKNOWN interface in short?

Every COM object supports at least one interface, the IUnknown interface. All interfaces are classes derived from the base class IUnknown. Each interface supports methods access data and performs operations transparently to the programmer. For example, IUnknown supports three methods, AddRef, Release (), and QueryInterface(). Suppose that printerf is a pointer to an IUnknown. Printerf->;AddRef() increments the reference count. Printerf->;Release() decrements the reference count, deleting the object when the reference count reaches zero. Printerf->;QueryInterface(IDesired, pDesired) checks to see if the current interface (IUnknown) supports snother interface, IDesired, creates an instance (via a call to CoCreateInstance()) of the object if the reference count is zero (the object does not yet exist), and then calls pDesired->;AddRef() to increment the reference count (where pDesired is a pointer to IDesired) and returns the pointer to the caller.

What is Reference counting in COM?

Reference counting is a memory management technique used to count how many times an object has a pointer referring to it. The first time is it created; the reference count is set to one. When the last reference to the object is nulled, the reference count is set to zero and the object is deleted. Care must be exercised to prevent a context switch from changing the reference count at the time of deletion.

How can we use .NET components in COM?Twist: What is CCW (COM callable wrapper)? Twist: How do we ensure that .NET component is compatible with COM?

.NET components can not be used in straight forward way with COM. You will need to create CCW in order that COM components communicate with .NET assemblies. Other way to create CCW is by using InteropServices attributes. Here interfaces are created automatically. Following are different types of attributes: -None: No class interface is generated for the class. This is default setting when you do not specify anything. -AutoDispatch: Interface that supports IDispatch is created for the class. However, no type information is produced. -AutoDual: A dual interface is created for the class. Type information is produced and made available in the type library. Below in the source code we have used the third attribute. Imports System.Runtime.InteropServices _ Public Class ClsCompliant End Class Other than class attributes defined up there are other attributes with which you can govern other part of assembly. Example “GuidAttribute” allows you to specify the GUID, “ComVisibleAttribute” can be used to hide .NET types from COM etc. -Once .NET assembly is created using either interface or using Interopservices method we need to create a COM type library using Type library export tool [Tlbexp (AssemblyName)] -The final thing is registering the CCW in registry using regasm tool. Regasm AssemblyName[Options] and that's it.

What'is difference between System exceptions and Application exceptions?

From the System.SystemException documentation:

This class is provided as a means to differentiate between exceptions defined by the system versus exceptions defined by applications.

So, consider it the opposite of ApplicationException. All Exceptions that are defined by the .NET Framework inherit from SystemException. All Exceptions that are defined by code that you write should derive from ApplicationException. Exception is the root class of ALL exceptions.

Friday, June 27, 2008

What is concept of strong names (Twist :- How do we generate strong names or what is the process of generating strong names , What is use of SN.EXE , How do we apply strong names to assembly ?

Strong name is similar to GUID(It is supposed to be unique in space and time) in COM components. Strong Name is only needed when we need to deploy assembly in GAC. Strong Names helps GAC to differentiate between two versions. Strong names use public key cryptography (PKC) to ensure that no one can spoof it. PKC use public key and private key concept. Following are the step to generate a strong name and sign a assembly :-

Go to “Visual Studio Command Prompt”. See below figure “Visual studio Command Prompt”. Note the samples are compiled in 2005 but 2003 users do not have to worry about it. Same type of command prompt will be seen in2003 also.

After you are in command prompt type sn.exe -k “c:\test.snk”.

After generation of the file you can view the SNK file in a simple notepad.

After the SNK file is generated it’s time to sign the project with this SNK file

Click on project -- properties and the browse the SNK file to the respective folder and compile the project.

Click on Use a key file to sign the assembly with strong name. and that’s it.