How to fix Visual Studio Could not evaluate Expression

October 11, 2016 at 1:16 PMMadestro

Sometimes you will come across a situation where you debug in Visual Studio and you are unable to look at the variables. You simply get a message that reads:

"Could not evaluate Expression"

Long story short, one of the reasons this happens is corrupt breakpoints.

Pull up your Breakpoint window and erase every single breakpoint you have. Compile and set your breakpoints again.

Problem solved. :-)

Posted in: ASP.NET MVC | General Development | Visual Studio

Tags:

Configuring BlogEngine.NET with GoDaddy

September 6, 2016 at 1:04 AMMadestro

If you are reading this, chances are you have figured out by now that GoDaddy does not allow external mail relay.

In other words, if you try to use an external mail server to send e-mail, it won't work.

Fortunately, the solution is simple:

Use their mail relay.

If you are like me, however, you are probably confused as the GoDaddy relay server uses network delivery which means it does not use a username and password.

To get this to work, use the following settings:

  • E-mail Address: someaddress@godaddyhosteddomain.com
  • SMTP server: relay-hosting.secureserver.net
  • Port Number: 25
  • Username: [BLANK]
  • Password: [BLANK]

([Blank] = Do not enter anything, leave empty)

Good luck!

Posted in: Everything else | General Development | Web Development

Tags:

Toggling Orphan Rows in BeyondCompare 4

June 23, 2016 at 9:51 AMMadestro

Recently, I was comparing two CSV files. I wasn't interested in orphan rows (rows that existed in one file but not the other). I only wanted to see what had changed in records that existed in both.

I found a few articles but they were all outdated. I eventually figured it out so I thought I would share it with you:

  1. Right click on the toolbar on top (bar with icons like Next Diff)
  2. Select Toggles

You should now see additional buttons on the toolbar that allow you to show/hide orphan rows on either side, among a few other things.

So apparently the bar that loads by default is the "Favorites" one. Counter-intuitive if you ask me.

Awesome product, nevertheless.

Posted in: Everything else | General Development

Tags:

Bracket styles: Allman vs. K&R

February 28, 2012 at 3:37 PMMadestro

I have been coding for a number of years now and most of the code I have come across (I would say 98%, no exaggeration) is in Allman's format.

For those of you who are not familiar with these bracket styles (or maybe you are but don't associate the name with the style), Allman's format is about putting the brackets each in its own line:

if (a == b)
{
     return true;
}
else
{
     return false;
}

While K&R is about putting the bracket at the end of the control statement:

if( a == b) {
     return true;
} else {
     return false;
}

I personally like Allman's. In my opinion it's totally easier to read. This of course is my personal preference. Either method [obviously] works and produces the same result, but I do find having to read K&R style annoying. So annoying in fact that I decided to write this post... :-)

Thoughts?

Posted in: General Development

Tags: