My FileUpload ASP.NET Function

I’m making a website for my family reunion. I found a couple good sites that had some examples of ASP.NET’s FileUpload control, but I’m going to post mine here so that anyone that finds it useful can use it. I’m using Visual Studio 2012 and ASP.NET 4.5.

I wanted to be able to have the family upload files and I wanted to have them automatically sorted by what year we had the reunion, and by content type. That would make it easier for me to set up ASP.NET membership security on the whole folder so that anonymous requested couldn’t view the content. It was also be easier to display the content later.

Keep reading

IIS 8 404 Error

Getting a 404 error on your newly configured ASP.NET website? When I went to /localhost/mywebsite/ I didn’t get anything, all I got was a 404 error.

If this is happening to you, make sure to go to:

Control Panel > Programs and Features > Turn Windows features on or off
Internet Information Services > World Wide Web Services > Application Development Features

Make sure your version of ASP.NET is checked (mine was ASP.NET 4.5). This will check a bunch of other things in the dropdown like ISAPI Filters and .NET Extensibility, that is fine.

Click ok and run iisreset. This should make the problem go away!

Fix ElementaryOS Button Layout

When I first installed elementaryOS Luna, the first critisism I had was “Where is my minimize button?”

After some Googling, I found a couple websites that told me to install dconf-tools. This approach wasn’t working for me, I would change org > pantheon > desktop > gala > appearance > button-layout to close, minimize:maximize, but nothing would change. Then I found a much easier way.

I installed elementary-tweaks as follows:

sudo apt-add-repository ppa:versable/elementary-update
sudo apt-get update
sudo apt-get install elementary-tweaks

Then I went to System Settings > Tweaks > Appearance and was presented with these options:

I of course chose the Windows layout, because that’s what I’m most comfortable with, but there are other options too, including OS X, Custom, Close Only, elementary, Minimize Right and Minimize Left.

If you want a good explaination on why the minimize button was left out of Luna, read What’s Up With Window Controls and What’s (Still) Up With Window Controls? by Daniel Foré, founder and lead designer of elementaryOS.

Roadtrip Starting Soon

Like I mentioned in my previous post, my girlfriend and I will be embarking on a roadtrip across the country soon. Starting in Columbus, OH and working all the say to Seattle, WA. Then going down to San Francisco, CA and all the way back home. Throughout, we’ll be trying to avoid major highways when nessecary and void all toll roads. In addition, we’ll be documenting the whole process (gas prices, food prices, activity prices, highlights, pitfalls, etc.), so that you the reader can benefit!

I look forward to making this information available to anyone else who is looking to do a cross country roadtrip. Be on the look out for daily/semi-daily updates along the way! Below is our route if anyone is interested.

Adobe Premiere Crashing on aticfx64.dll

I recently opened up Adobe Premiere to see that it was crashing. After debugging the error in Visual Studio, I found that it was crashing on aticfx64.dll. Not sure what this file does, but I know it’s for an AMD Radeon video card.

After Googling it for a little while, clearing old registry keys and uninstalling/reinstalling, it hit me. I have 3 monitors hooked up, my video card only has two outputs in the back so I must be using the onboard video card as well. Lo and behold when I unplugged the monitor that was using the on-board video card my problems were solved and it ran perfectly.

Hopefully this helps someone.

Family Reunions

This year will be my 22nd family reunion. That’s one for every year I’ve been alive. Family reunions are a like second nature to me. I’ve asked a lot of my friends if they have family reunions, most of them said no. Some commented that family was too far away to have a reunion every year, but I think it’s important enough to make the trek.

One of my great aunt’s husband comes to our family reunion every year. He has a large family tree that he manages and he brings it every year to write down updates. Deaths, births, marriages and divorces all get recorded. It’s nice to have that solid of a family history written down and able to be referenced. It gives me a great idea of where I come from and my place in the world. Hopefully one day I can take over updating the tree.

Recently, my family found out that one of our ancestors lied about their nationality on an immigration form in the early 1900s. Keep reading

Programming Ideas: Closed Source to Open Source

Today I was trying to rack my brain and think of some big programs that don’t really have an open source equivilent. I posed the question to one of my co-workers, at first he mentioned a couple of games. I quickly told him to forget about games and focus on software.

I said “Imagine if GIMP didn’t exist as an open source alternative to Adobe Photoshop, that would be a good example.”

He pondered for a minute and he couldn’t really come up with anything.

Do all programs have an open source alternative? Keep reading