From Troy Hunt – The beginners guide to breaking website security…

This post should motivate some people to be more security minded.  I know I am not perfect but I did not realize all of the capabilities that are shown in this post.  Mainly the ability for it to use the name of one of your trusted networks.

http://www.troyhunt.com/2013/04/the-beginners-guide-to-breaking-website.html

Installing Flash Player without admin rights - [En]

Reblogged from Overmind of Borg's Sector:

Lots of people in various situations don't have administrative rights so they can't install Flash Player on computers they use.
Here's how you install it with standard user rights for various browsers.
1. Get the files here: http://www.mediafire.com/?jd467y5c1q4qb4b
2. Unzip them.
3. Copy them to the required location:

3.a. - For Opera, copy the unzipped .dll to program\plugins inside Opera installation directory.

Read more… 110 more words

This is a very useful bit of information. I am not always in an environment where I have administrator rights to the machine I am using.

How To Create A Console Application In Visual Studio Express 2012 For Web

If you use the Web Express version of Visual Studio 2012, you will notice one thing missing; creating a console application.  The solution is fairly simple.  I found a blog post at Possibly the most boring blog ever that explains it perfectly.  So instead of rehashing what has already been posted, I will let you use that link above.

In a nutshell though, you will create a new class library.  In its property page set its output type to Console Application.  Please see the original post for screen shots and more details.

Renaming Your Team Foundation Service Account

Brian Harry made a post that some people might find very useful.  How to rename your Team Foundation Service account.  Apparently, in the past, you basically deleted your account and created a new one.

Instead of rewriting it, or copying and pasting it I will give you the link to his post.  It is very straight forward, and a nice addition to the service.

http://blogs.msdn.com/b/bharry/archive/2013/01/09/renaming-your-team-foundation-service-account.aspx

How To Move An Off-Screen Window Into View

Isn’t it nice to have dual 21″ or larger wide-screen monitors in the office?  Don’t you wish you had them at home, especially when an application opens itself off-screen?

Well, this won’t magically give you your nice in office setup, but it will bring that pesky program into view.  There are two basic ways.

First is to alt tab to that program and right-click it in the task bar.  From this menu pick Move.  Use your arrow keys to slide it into view.  Then a simple left click of the mouse or hit your enter key and you’re done.

The second method can be used all of the time.  The reason for this one is because some programs do not offer that move option.  In this case, you still alt tab to the program.  Next you hit Alt + Space + M.  That puts it in move mode, so now you just use your arrow keys to move that window into view.  Finally, like in the first method, you can hit your enter key or do a left click of the mouse.

Ubuntu for Phones, Tablets, and Everything

Yesterday Ubuntu made an announcement, which on the surface might seem like not a big deal.  They are releasing their operating system for phones and tablets.  The really neat stuff is in the details.  Watch to the video by Mark Shuttleworth, if that link does not work you can go to this page and use their link.

Like I said, on the surface it doesn’t seem like a big deal.  In fact a lot of it kind of reminded me of what Microsoft is doing with Windows 8.  Let me put this out there first, I do like Windows 8.  In fact I purchased a new Alienware M17x R4 that came with Windows 8.  I also like Ubuntu, but it is not a practical choice of operating system for me at this time.  Also on the surface what they are doing sounds a lot like what another phone company did with docking their phone and trying to use it like a computer.

The big difference is really where the phone is concerned.  When you dock a phone running Ubuntu, you do not get a phone operating system, you are on full-blown Ubuntu.  This is really neat, and much better than trying to use a phone operating system as a computer.  Another neat thing is how the UI will work with phone.  It appears they really are trying to let your applications and what not take front and center on the phone with everything else just a swipe away.

Does this remind me of Windows 8, sure it does.  Does it remind me of a Windows 8 phone, not really.  The most outstanding feature to me is being able to use a phone like a full-blown computer.

They have a page about Ubuntu for Android; being an Android phone user I would really like to give that a spin some time.

MVC Regex Phone Numbers and Emails

This is just a quick bit on Phone Numbers and Emails in MVC.  Well, at least MVC3.  The [DataType(DataType.PhoneNumber, ErrorMessage = "You must provide a valid phone number.")] and [DataType(DataType.EmailAddress, ErrorMessage = "You must provide a valid email address.")] apparently does not perform the actual validation for you.  Don’t fret though, you can add the RegularExpression annotation to it.

Here are two examples, you can use any regex expression, these worked for my needs.  I also left some other annotations in there.

[Required(AllowEmptyStrings = false, ErrorMessage = "You must provide a supervisor email.")]
[StringLength(50, ErrorMessage = "A supervisor email cannot exceed 50 characters.")]
[Display(Name = "Supervisor Email")]
[DataType(DataType.EmailAddress, ErrorMessage = "Please enter a valid supervisor email address.")]
[RegularExpression("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$", ErrorMessage = "You must provide a valid supervisor email address.")]
public string SupervisorEmail { get; set; }

[Required(AllowEmptyStrings = false, ErrorMessage = "You must provide your home phone number.")]
[Display(Name = "Home Phone")]
[DataType(DataType.PhoneNumber, ErrorMessage = "You must provide a proper phone number.")]
[RegularExpression("^\\D?(\\d{3})\\D?\\D?(\\d{3})\\D?(\\d{4})$", ErrorMessage = "You must provide a proper phone number.")]
public string HomePhone { get; set; }

The WebGrid In MVC

Something that new comers to MVC may wonder about, is how to create something like a GridView in MVC.  I know this was something I ran into, but quickly found the answer.  Meet the WebGrid.  The WebGrid is just that, it will create a grid of your tabular data to display nice and neatly on your view.

To make use of a WebGrid you have to perform two basic steps; new up a WebGrid object, and invoke that object’s GetHtml method.

When we new up a WebGrid we can provide some basic details for it.  Things like the source of the data, the columns you will display. how many rows per page, if it allows paging and if it allows sorting.  Lets provide an example,this example uses a model that contains: EmployeeName, SupervisorName, and Submitted.

Read the rest of this entry

Free ebook: Programming Windows 8 Apps with HTML, CSS, and JavaScript

Microsoft Press has finally made the epub and mobi versions of this free ebook available.  You can go to the link to download the format that works for you; pdf, mobi, epub.  The link also contains links to the companion content.

This should prove to be a great resource for those wanting to do Windows 8 applications.  Of course there are other ways of doing it; C# with XAML for example, but this version will probably appeal to most people.

This was a great extension for Visual Studio 2010 so I am certain it will be for Visual Studio 2012.

http://blogs.msdn.com/b/visualstudio/archive/2012/11/07/productivity-power-tools-2012.aspx

Follow

Get every new post delivered to your Inbox.

Join 166 other followers