enkafan

+ friends- friends
5,845 link karma
8,348 comment karma
send messageredditor for 3 years
what's this?

TROPHY CASE


Three-Year Club

reddit is a source for what's new and popular online. vote on links that you like or dislike and help decide what's popular, or submit your own!

What's your "go-to" conversation starter?

enkafan 1 point2 points 5 hours ago[-]

The one I heard was saying "Fat Penguin" and when they say "Huh?" you say "Just looking for something to break the ice"

semi-official Emacs emulation for VS 2010

enkafan 2 points3 points 6 hours ago[-]

The Visual Studio Team's weblog posted about this yesterday. The OP could have found it elsewhere, but I've found their blog to be worth adding to my RSS reader for stuff like this.

Any kind soul want to help me wrap my head around MVC?

enkafan [S] 0 points1 point 1 day ago[-]

Ah, the MVVM was the key to unlocking it in my mind I think.

I ended up with basically this as my model:

PostCommentsNewCommentModel {
    string Title;
    string Content;
    string PostDate;
    IEnumerable<Comment> Comments;
    NewCommentModel NewComment;
}

Then in my controll I had my [HttpGet] Index() that displays everything, and [HttpGet] Index (PostCommentsNewCommentModel model) that handles the adding of new comments.

I wasn't 100% the best way to do something like this though:

if (ModelState.IsValid) {
    if (_userRepository.IsEmailBlocked(model.NewComment.Email)) {
        ModelState.AddModelError("", "Sorry we can't take comments from you anymore");
        PopulateModel(model); // sets the post data and comments
        return View(model)
    }
}

That look about right for error handling?

Cat Door

enkafan 24 points25 points 1 day ago[-]

Weird how the second part of the video was apparently one minute prior to the first part according to the time

I played my first game this Sunday, we lost 4-1 but it was a lot of fun.

enkafan 0 points1 point 1 day ago[-]

I started playing 3 years ago. I grew up watching the game, but being from the south hockey wasn't very accessible. I now coach in a league for players who have never played in a game before. It is awesome. If anyone has any questions I'd love to help.

fitness [NSFW]

enkafan 2 points3 points 2 days ago[-]

Ah, I was wondering what was up with the Times New Roman applied via MS Paint

Reddit, tell me about the first time you felt old...

enkafan 1 point2 points 3 days ago[-]

I just assumed that my two day hangover was due to such an awesome 30th birthday party.

I was wrong

A person I knew in Middle School (srsly.) is coming to my work and being a shit head. What do?

enkafan -1 points0 points 5 days ago[-]

I went through this whole thread trying to find where you said you were female. I'm not sure how so many people on here missed that - part of the joys of being a dude is not having to worry about this stuff.

Anyways, I bet if you had made that known right away you'd have a thread going in a total different direction.

My advice is that you may be over thinking it. Girls do some fucked up shit to each other, but going out of their way because someone they used to know works at a starbucks is pretty fucked up.

If not, she may think she's hot shit right now but the fact of the matter is she's gonna be leaving school into a flooded market with a ton in student loans. Not the best situation for someone that seems to be a crazy c-word.

Hey Chefs, what's the best off the shelf pasta sauce?

enkafan 0 points1 point 5 days ago[-]

I really, really enjoy Scarpetta' Tuscan Vodka Sauce. I will grab some penne and mix in some italian sausage. It's quite good.

Vote Yes on FREE KARMA

enkafan 1 point2 points 5 days ago[-]

I'd be curious to see a graph of the use of the "hide" feature over the past few hours. It had to have absolutely skyrocketed

What is the ultimate Professor farnsworth quote?

enkafan 2 points3 points 6 days ago[-]

Ah, a'doy.

For some reason I thought the teacher referred to this as Heisenberg's uncertainty theorem though. It has been 16 year and lord knows I got a C in that class anyways.

I was thinking that our experiment applied because we were changing the results by measuring it. But in this case they are looking at the particles which would be Heisenberg's uncertainty theorem.

SimCity 4 rageface. I don't even...

enkafan 6 points7 points 6 days ago[-]

Don't worry, Cities in Motion has been announced that will surely build my hopes up only to crush them like Cities XL

What is the ultimate Professor farnsworth quote?

enkafan -2 points-1 points 6 days ago[-]

We covered this in high school chemistry. Dumbed it down to the "when you stick a cold thermometer in a warm glass of water you are changing the temperature" kind of way. Pretty much first week stuff at the same time we learned how to use the bunsen burners to boil water

Any kind soul want to help me wrap my head around MVC?

enkafan [S] 0 points1 point 6 days ago[-]

Yeah, I'm not too worried about DI. I've been using that for a couple of years now. It's weird, it seems like the "hard" part of MVC for most people has come easy for me, but some simple tasks I just can't get a good grasp on.

So here's my project as it stands. It kind of works, but I don't like it one bit. It's all dummy in memory data that I threw together, but it has the gist of what I'm doing

I've commented out the route that feels like it should work, but I can't master it.

I really appreciate this. It's been a while since I've felt this silly when learning something.

Any kind soul want to help me wrap my head around MVC?

enkafan [S] 1 point2 points 6 days ago[-]

Well, this is purely fictional right now. My real app has some specific implementation details related to my company I'd rather not get into.

I will try and throw something together this weekend that matches up with what I'm trying to accomplish

Any kind soul want to help me wrap my head around MVC?

enkafan [S] 1 point2 points 6 days ago[-]

Yeah, that also worked until I started worrying about validation.

When I went with a SetModelError, saying for example the e-mail address wasnt a valid address or maybe the comment looked spammy, I started getting into weird issues because the "model" I was working with was not the ultimate model being displayed

Any kind soul want to help me wrap my head around MVC?

enkafan [S] 1 point2 points 7 days ago[-]

Sorry, I may be using the wrong terminology.

I've been calling PartialActions the things that MVC 2 renders with Html.RenderAction or Html.Action. Instead of using the parent view's model, they execute a separate controller action. That seems to be the way to go for the comment and it'd have a nice separation of concerns I'd think. And it worked too, until I tried to redirect from the damn thing. It seems like it's main use is for things like a side bar shopping cart or "recent comments" - things on a page that aren't necessarily related to the view.

Any kind soul want to help me wrap my head around MVC?

enkafan [S] 2 points3 points 7 days ago[-]

That's what I started out with, actually.

But I'm struggling with the main portion of the View being tied to the Post model, and then the sub portion using a Comment model. Setting up the form and all that to post to the comments controller was a piece of cake, but it knows nothing about the comment model.

That's why I went to the PartialAction, but it barked about the RedirectToAction back to the Post.

PartialAction really feels like the right way to go, but maybe I'm missing something on its intended use. My other thought was to create a PostNewCommentModel or some crap like that to handle the whole thing. That would probably work out, but it still smells to me

Reddit: I need help. What would you do if you found your husband/wife was keeping a secret file on you?

enkafan 17 points18 points 7 days ago[-]

Totally unrelated, but this reminds me of a story.

I was looking at her families computer because it was running kind of slow when I noticed a folder with my name on it. Kind of freaked me out. I opened it up only to find a folder full of pictures. Now, this was pre picture messages and all that so I knew I hadn't been sending her stuff, and neither one of us had a digital camera either so I had no clue what they could possibly be.

Curiosity got the better of me and I opened one up. It was full of MS Paint doodles that she would draw while talking to me on the phone. They all had hearts and "I love (my name)" written all over them.

Things turned out better than expected.

Do you know why 20% of Americans call Barack Obama a Muslim?

enkafan 7 points8 points 7 days ago* [-]

Once fooled around with some girl because of some misplaced racism. I was out of town hanging out with some girls I had met the night before and the girl I was chasing after was talking with some guy that was really putting some serious effort into getting this girl to like him. He seemed like a nice enough guy, he was asking her out on a date and probably had better intentions than I did so I decided not to be a jerk and not cock block him.

It warrants mentioning that he's Serbian.

Anyways, I tell the girls that I'm gonna take off. Soon I start getting text messages from her friends saying I need to get back because she's upset I left. Well, ok then. Once I get there her friend looks me right in the eye and says "No way are we gonna let her date some GOD DAMN MUSLIM, she should date someone from around here." Now keep in mind I lived 1000 miles away, and this dude lived in the same city.

But this girl was really pretty attractive so I didn't have the heart to tell them that Serbians are generally not only christian, but they tried to ethnically cleanse the Muslims. I mean, this girls should LOVE this guy. But logic was not to be used this night. With him out of the picture thanks to ignorance and racism, negotiations went quickly.

Later, I ended up having to break off communication with the girl when she told me she didn't watch "House Hunters" anymore because they push a gay agenda.

Scientists create 'Dry Water'. It may sound like a contradiction in terms, but scientists have created ''dry water''.

enkafan 2 points3 points 7 days ago[-]

Huh, and here I thought it sounded like a contradiction but you repeating it has sealed the debate on that one.

view more: next