Hi everyone. A programmers notebook started out as a place for me to post things that I find on the internet for myself. I guess you could say that these have proven to be beneficial to everyone. Enjoy!
Monday, January 31, 2011
When bad coding goes wrong
Tuesday, January 11, 2011
Visual Studio & Windows 7 IIS Configuration
Installing the ASP.NET component of IIS 7.0 in Windows Vista enables ASP.NET Web applications to run as local IIS Web sites. To enable Visual Studio to create and use local IIS Web sites, you must enable metabase compatibility. This lets Visual Studio interact with the IIS metabase and with the IIS 7.0 configuration store.
If IIS is enabled on your computer before you install the .NET Framework version 4, ASP.NET 4 is automatically registered with IIS. However, if IIS is not enabled on the computer when you install the .NET Framework, you must manually register ASP.NET with the appropriate version of IIS by running the ASP.NET IIS Registration tool. For more information, see ASP.NET IIS Registration Tool (Aspnet_regiis.exe).
You must have administrative permissions to install IIS 7.0. |
To enable ASP.NET on Windows Vista for debugging
-
In , open Control Panel and then click Programs.
-
Under Programs and Features, click Turn Windows features on or off.
Note
If Control Panel is set to display in Classic view, click Programs and Features, and
in then in the left pane, click Turn Windows features on or off.
The Windows Features dialog box is displayed.
Note
If User Account Control (UAC) is enabled, it might display a message when
you try to access the Windows Features dialog box. Click Continue to access the
dialog box. For more information, see User Account Control.
-
Expand Internet Information Services.
-
Expand Web Management Tools, expand IIS 6 Management Compatibility, and then select the IIS 6 Metabase and IIS 6 configuration compatibility check box.
-
Expand World Wide Web Services, expand Application Development Features, and then select the ASP.NET check box.
Note
The options that are required for Web application development will
automatically be selected.
-
Expand World Wide Web Services, expand Security, and then select the Windows Authentication check box.
To enable Visual Studio to debug applications, you must configure IIS 7.0 with the Windows Authentication module. By default, the module is not configured as part of IIS.
-
Click OK to start the IIS and ASP.NET installation process.
-
When the configuration process finishes, close Control Panel.
Monday, December 13, 2010
NOTES FROM THE WEEKEND: 12/10/2010 – 12/12/2010
THE C PROGRAMMING LANGUAGE
NOTES FROM THE WEEKEND: 12/10/2010 – 12/12/2010
Mobile Development environments:
Android | BREW | Symbian |
Blackberry | Palm | Windows |
iOS | | |
Technologies:
C# | CSS3 | Javascript |
Perl | Java | Ajax |
PHP | HTML5 | Ruby |
Python | Rails | |
This weekend I started studying the C language again. It’s not too different from C# except it isn’t object oriented. It’s procedural.
The thing that I found most important about the language is described in my writings here. The question that always played in my mind is how important is it to learn C again or to know it well.
I’m finding that Microsoft’s languages have not been the language of choice when it comes to changing the world. It has been C and other open source languages. Facebook, Google, jobs in those areas require knowledge in C.
Facebook is having a hacker contest and they stated that Microsoft Languages is not a consideration for the contest.
What I did on the weekend is wrote C on the windows platform and ported that code to the Linux and compiled it. ANSI C is the language of choice here and if we use Microsofts explicitly I run into compiler problems. There are libraries that MS has, which are not standard libraries in C. Which means, what I write become platform depended.
That’s currently the problem with porting applications from the .NET framework in Windows, to MAC, to Linux in the Mono world.
There are framework namespaces supported on windows not supported on other platforms. So I could develop for Windows and not be able to move that code to MAC or Linux without recoding the project.
ANSI C is the goal and purpose for me learning now. I’m going to continue this writing later, but want to port this information here to my journal.
Chat later.
Monday, December 6, 2010
Programming is not hard, we make it hard.
Say, the C# language from building nothing but ASP.NET web sites to creating console apps, then moving from that to web forms. Many of the instructors I've listened too do not take a simple approach to explaining how to do that, which makes programming for a beginner extremely difficult.
Programming is not hard.
What makes learning to program difficult is that no one programmer thinks exactly alike. Although there are standards in programming and such. Every person approaches solving a problem differently. What is factored into solving the problem is the layer of knowledge that the person draws from to solve the problem.
If the problem requires the out put of data to the screen and the programmer has only built console applications, then they will most likely develop from that perspective. A web developer would choose a web interface and a Windows Form developer a desktop application.
When I teach courses to students learning to develop I tell them that it is best to purchase books from a single author on a particular language than to get them by title or subject only. Because each author will take a different approach to solving the same problem, the beginning programming may become confused.
Another problem with teaching programming languages is the learning curve. None of my instructors in college, or programming DVD or CD's I've purchased taught from a perspective that would shorten the learning curve. They simply taught. I would hear words like inheritance, delegates and my mind would go, I know these terms but what do they have to do with programming.
Teaching programming from a natural perspective will bring more people into the development world. Helping people make a connection between what they know already and what they are learning about programming will make programming fun and not mysterious.
Growing Interest in WebOS and .NET
Since HP and Palm have become one my interest have elevated to great enthusiasm. That excitement is leading me to think of other ways to use the environment, such as connecting it to my .NET development environment and porting over apps to it.
I think this can work.
Installing Windows Phone 7 on XP
Since the license purchase included Windows XP, I hit a button and XP was installed on the machine. The machines that followed came with XP pre-installed, thank God!
Anyway a few years have passed, the database Admin still has Vista on his machine and for a number of years was unable to get security updates from our WSUS server until we later purchased a license from Microsoft and upgraded.
I'm still running windows XP on my development machine and seem to run into problems developing for Windows Phone 7. Since Microsoft officially retired XP back in April of 2009 there is no support. I searched the Microsoft blogs and the Microsoft employees seem to be in a rage with those who are running XP and insist on getting support for Windows Phone 7 development on the OS.
One person on the web posted a solution and I am testing it to see if it works. Here is what they say:
Workaround for installing Windows Phone 7 CTP on Windows XP:
1.Download the Windows Phone Developer Tools CTP Refresh
2.Extract the contents of the setup package by running vm_web.exe /x and choosing a path to extract to
3.Go to the folder you extracted to in step 2 and open the file baseline.dat in notepad
4.Look for the section named [gencomp7788]
5.Change the value InstallOnLHS from 1 to 0
6.Change the value InstallOnWinXP from 1 to 0
7.Save and close baseline.dat
8.Run setup.exe /web from the folder you extracted to in step 2
What I did was right click on the vm_web.exe file I got from microsoft and extracted that into a folder.
I then right click and choose New > Text Document and opened that document.
I entered setup.exe /web in the first line and renamed the file setup.bat and double clicked the file to launch the install.
We will see if it works.