Posts

Return Client Specific Response from the Same REST Endpoint in Spring 4

Image
This article is about my research related to the question which I posted on Stackoverflow -  https://stackoverflow.com/questions/44004602/return-client-specific-response-from-the-same-rest-endpoint-in-spring-4 I wanted a way to customize my response from a Spring Rest Controller based on the client which made the request. Client identification can be done via a lot of things, but I had to do it via the scopes. Now, the way I will have to eventually proceed is by creating separate end-points for the clients for unmentionable reasons whatsoever, but I couldn't help myself writing down here so that somebody might just find useful and a better use-case for it. So, here is what I wanted things to work. Let me draw a picture. That would really help to make you understand. Here are the three challenges for me to achieve this: How to get the scope in my code somewhere so that I can do something about it? I needed a way to to intercept/filter the JSON response that was sen

एक नया साल फिर आया है|

मेरे जीवन कि पोथी के,   365   पन्ने लिखकर , कुछ किस्से ,   कुछ बातें करके, कुछ प्यारी सी यादें देकर ; कुछ खास   chapters   को लिखकर, करके कदमताल चला गया , एक और साल चला गया | कुछ अपने थे ,   कुछ सपने थे ,   कुछ अपनों के भी सपने थे , कुछ पूरे हुए ,   कुछ नहीं हुए ,   पर जो जो थे सब अपने थे ; जीवन के पहिये को धकेल ,   बनके भूतकाल चला गया, एक और साल चला गया | कुछ पा लेने की ख्वाहिश थी, कुछ बन जाने का सोचा था, जब पंडित जी के पास गए, तो सुना ग्रहों में लोचा था; यहाँ घिस घिस के मर गए और वो, मस्तानी चाल चला गया, एक और साल चला गया | कहते हैं जिंदगी सफर है एक, लोग आते जाते रहते हैं, कुछ नए मिले, कुछ छूट गए, पर याद सब आते रहते हैं; गहरे रिश्तों को झिन्झोड़कर, करके बेहाल चला गया, एक और साल चला गया | जो बिछुड गया वो बिछुड गया, कुछ नहीं मिला तो नहीं मिला, Garden   सूना नहीं होता है, जो एक फूल कोई नहीं खिला; सब शिकवों, गिलों को दफनाकर फिर मैंने कदम बढ़ाया है, एक नया साल फिर आया है | कहते हैं जो कोशिश करते हैं, उनकी कभी हार नहीं होती, चाहे किस्मत

Masks

People use masks to hide from the world Many use masks to cover their true selves Some uses masks to hide what’s underneath Almost everyone uses masks over their faces You can tell that people are wearing masks by looking into their eyes Their eyes are glazed over in broken spirit Their eyes are dulled from the pain Their eyes don’t hold any spark of what they had before Their eyes is like eye of a corpse You can tell that people are wearing masks By being their friends When you watch them its like watching a robot When they smile it doesn’t reach their eyes When they laugh its like a mocking cackle Their movements are cautious and lithe Their body language responds to every sound, and touch Whatever they do, it matches the mask they have on The main masks for people to use are: Happiness, because they don’t have it Alertness, because they don’t want to endure what they’ve been through again Shyness, because they fear others The most common mask is: Blank, nothing, no emotions what-so

An apt quote

I feel like I am not anyone's first choice. Neither their favourite. Even if people tell me I'm important to them or I mean a lot to them, I know there is always someone they prefer to be with. Someone they chose over me. And that's hurt... a lot.

Truely IIM

Lynx today showed me a video of IIMA which showcases the infrastructure and facilities and life and social culture of IIMA. Its truly a wonderful video and the Alumni folks who prepared it did true justice to it. Kudos to them to for taking time out of their busy schedules to think and present something of this sort. They actually make time for it by bunking some lectures and dedicated night outs for it. Congratulations to the entire team for a job well done and a truly deserved one. (I will link the video here when I have it handy). But then, this is my blog and not a single perspective till now. Going off the topic here, but I will surely agree with Samar that he ignited fires of perspective and philosophy in our hearts and today we are really getting good at it. Sorry if that makes you feel a little insecure and I would always be thankful and grateful for this precious gift among so many others. OK, back to perspective. After seeing the video, a simple straight question came to my

The Wish

Happy birthday, my friend I hope you have a happy one One filled with love and happiness But I know that you are missing someone Someone special to you Someone who you wish is there with you now So I give you a gift A simple one, really But I know that a gift you'd really enjoy Is to be with your special someone But this will have to do for now This mere piece of poetry But if you think about it Contemplate it deeply Think it through Looking into your mind Around every corner You'd see it The many gifts you receive Each so valuable and precious Tenderly given to you As if taking your hand And placing their heart Into your palm Indeed, that is what it is Their hearts to you From far away they give They give their emotions Their feelings And their minds They think so fondly of you And they hold your feelings Like a treasured jewel And what they give... Love, care, affection ...is more precious than what I can give

Ignored

Deep in thought, Not really there. I wonder why people don't care. Wondering why they just stop and stare. Sometimes I think it isn't fair. They Look at me like some kind of freak, Every time I go to speak. They love to chat, they love to glisten, but when it comes to me they just don't listen. like I"m a ghost, like I'm the wind, They ignore me like I was sinned. ~ sweetydusty