Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rahul Rajat Singh

@Rahul Rajat Singh
About
Posts
279
Topics
50
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • To work from home....
    R Rahul Rajat Singh

    How silly. One could get such a picture from anywhere. Incomplete solution it is. The complete solution would be: 1. Provide a Rental/Lease/Ownership agreement containing the address for your home. 2. Search that address in maps and attach screenshots clearly showing the Lat-Long for the house. 3. While taking picture ensure that GPS tagging of picture is enabled. 4. Two witnesses clearly visible in the picture along with a declaration that they will be held accountable if the pic was not taken at home. 5. Specification of lock on the door so that the kids and wife can be kept out of the room while working from home. There you have the complete solution. Please propose this to the respective team. Tell them - Either this or nothing.

    The Lounge

  • department name
    R Rahul Rajat Singh

    How about "Potpourri"??

    The Lounge design sales collaboration question

  • 2017 MVP awards
    R Rahul Rajat Singh

    I have my fingers crossed. Let's hope the machine still spits out my name. It has been a rather slow year for me so little doubtful :(

    The Lounge regex architecture

  • Why is article view count 0 in RSS feed?
    R Rahul Rajat Singh

    I am not sure if this is a bug or is it by design. But when I look at the RSS feed of someone's articles', I see the views field value as 0 always.

    0

    Could anyone shed some light on whether is it a bug or is this behavior by design?

    Site Bugs / Suggestions design help question

  • What a comment !!!
    R Rahul Rajat Singh

    I will definitely not stop posting. As a matter of fact I am also getting benefited a lot by the valuable comments I get from others. CodeProject is simply awesome. I can safely say that codeproject is one of the best places to learn from the community and I would like to keep doing what I do here for the near foreseeable future.

    The Lounge csharp asp-net com tutorial question

  • Twitter feed
    R Rahul Rajat Singh

    I was just looking at the profile page and It just hit me. We already are asking users to provide their twitter handle so that we can redirect the visitors to their twitter accounts. Why not have a small portion on this page showing the members twitter feed. A small Javascipt app embedded in this page which will just use the members twitter handle and pulls out the latest tweets. Perhaps there are some plugins that are already available for integration.

    Site Bugs / Suggestions hardware

  • What a comment !!!
    R Rahul Rajat Singh

    I have reported the comment as abusive and the member as abusive too. I was just wondering about the extent to which some people go to vent out their frustrations and thus posted here. But i guess your words sums it up very nicely and i should keep them in mind before taking such petty issues seriously.

    OriginalGriff wrote:

    morons breed on the internet, and some of them find their way here regardless of what we do...

    The Lounge csharp asp-net com tutorial question

  • What a comment !!!
    R Rahul Rajat Singh

    Surprised to see so much energy in demeaning and insulting the article and author. Check out this comment - Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^] I wonder why someone would write anything like this. Perhaps I am overreacting but these kind of comments do make me wonder whether I should even be doing all this article/Q&A stuff at all.:confused::confused::confused: P.S. How the heck the religion comes in this context. I guess some people are too shallow to think anything else.

    The Lounge csharp asp-net com tutorial question

  • mmmm Salty passwords
    R Rahul Rajat Singh

    I was having a code review session and found out that the password is just being hashed and stored in the db. The db had a field for salt when i designed it and I specifically asked to use the salted hashes. So i suggested the developer to use the salted hash and he agreed. Later i asked him and he said he implemented it. Now 3 months later I am working on some query optimization and during this i run a query on the user table and to my surprise the salt field contains "mmmmmm Salty passwords..." for all the records. And when i checked the code, the code contains this hard coded string in register action method (asp.net MVC). Good thing is that the developer left the organization otherwise I would have been serving a life sentence for killing him.

    The Weird and The Wonderful asp-net database csharp algorithms cryptography

  • How sleeping 6 times a day helped the founder of WordPress build a billion-dollar company
    R Rahul Rajat Singh

    Why is every Billionaire tech company owner is trying to prove that they do some mundane things differently and this they are successful. This strip is right on the money I guess: http://dilbert.com/strip/2015-02-14[^]

    The Insider News php com tools

  • What the heck does this mean?
    R Rahul Rajat Singh

    This reminds me of a an old story. Once an interviewer told me - "I want to know whether you understand the difference between VB and .Net properly" and surprisingly it was in 2008 so he was not talking about VB6, He was talking about VB.NET. And I was like :omg:

    The Lounge csharp java php ruby com

  • What the heck does this mean?
    R Rahul Rajat Singh

    Marc Clifton wrote:

    "wants to make sure that your strategies align more with Ruby best practices as opposed to a more traditionally .NET approach."

    I think this statement is a preemptive strike from the the interviewer. What he really is trying to say is - If you try to outsmart me with your knowledge, i'll throw in a "this is not how its done in Ruby" trump card and save my ego.

    The Lounge csharp java php ruby com

  • Asp.net
    R Rahul Rajat Singh

    From the app perspective, The key is just another password. Instead of having user type complete password in one box, you will be asking him to split in two and then app will append it. As for the encryption. Passwords should never be stored encrypted. they should be hashed and stored. Better yet if you salt them before hashing. Following article will give you all you need to achieve this. A Beginner's Tutorial for Understanding and Implementing Password Hashing and Salting[^]

    ASP.NET csharp asp-net database wpf wcf

  • ASP.Net MVC 4 Question
    R Rahul Rajat Singh

    One way to achieve this would be to have a cookie based authentication where when a user calls the login method a cookie is sent to the user and this cookie can be used to authenticate the user. But the above mentioned approach is not recommended as the cookies don;t gel well with complete restful services. If we have a mix of website and rest api then it works well as we can ask the user to login from the web page and the api can simply check for authentication cookie. So the recommended approach is to have a token based authentication. when a user logs in, generate a token for the user and send it back to the client. the client will then have to send this token back in the header with every request. following article shows how this can be done - http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api[^]

    Web Development question asp-net csharp json architecture

  • I swear to God, Code First databases are the worst idea out of Redmond since the DataSet
    R Rahul Rajat Singh

    The code first approach is only best where the database is only used a mere persistence mechanism for some model information. If we want an application that is heavily data-centric and there are a lot of database operations involved, code first is definitely not the way to go. In such cases database first should be used. So all enterprise grade applications should not even think about code first we they want to have a decent database structure. Database is something that DBAs should worry about and it should never be at the mercy of developers(if its a large application). P.S. I try to stay away from code first for large applications. Its bad enough that I have to deal with the bad code of others. If I use code first, I will also have to worry about the bad database too.

    The Lounge database

  • When you have no choice but to give your personal information....
    R Rahul Rajat Singh

    The only thing needed by the landlord is: ID Proof Permanent address proof. If these guys are asking so much information then I think you should stay clear from them. I smell something fishy here.

    The Lounge agentic-ai tools question

  • Can i develop mvc5 application without entity framework?
    R Rahul Rajat Singh

    Short Answer - Yes. Long answer - MVC 5 is a framework for developing Web applications. Entity Framework is an Object relational Mapper which will ease up your data access layer creation. So if your application does not need a database or an ORM you should be able to use MVC5 without Entity Framework. You are also free to chose any database and/or ORM of your choice. The default template of MVC5 application comes with Entity Framework but that can easily be removed or perhaps an Empty MVC5 website can be created to avoid these EF references and code.

    ASP.NET question

  • I Love CodeProject; Hate StackOverFlow
    R Rahul Rajat Singh

    +5. Could not have put it in better words. Perfect comment.

    The Lounge help question

  • Shortlisted in MakeItHappen Campaign
    R Rahul Rajat Singh

    I participated in Microsoft Lumia #MakeItHappen campaign in December. Yesterday I recieved an email saying that I was shortlisted(among total of 31) guys. They asked me to provide my Mailing address and contact number. Any idea what these guys must be up to. Will I be getting something from Microsoft. LET THE SPECULATION BEGIN. Lets see if someone could guess it correctly (We will know the result once i get something from them). P.S. Really hoping to get a MSFT Band. I just love that thing.

    The Lounge

  • Suggest me a good domain name for my new personal web site
    R Rahul Rajat Singh

    :^) I was just trying to make a point. It seems CP editor changed it to a link. #facepalm

    The Lounge algorithms question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups