Thursday, November 29, 2012

Simple Student Information System using ASP.NET MVC4 (w/ C#)

I created a practice project where I use my new knowledge on Entity Framework Code First, the Repository and Unit of Work patterns with ASP.NET MVC4 and Unit Testing including mocking with Moq.

I published it on GitHub.
(Not yet finished)(I think I am finished with the thing I wanted to practice on - using the Repository and Unit of Work patterns)

There are functionalities that are not yet implemented in this project:
1. Updating the list of Degrees
2. Updating the list of Subjects
3. Updating the list of Semesters, Periods and Levels
4. Roles and permissions - for now, anybody can register, login and update student records.
(also, Unit Testing is not yet completed)

I have to set aside this project for a while because there are other things I need to study.

If you are interested, you can view/download/fork it from here: https://github.com/jboyflaga/StudInfoSys.AspNetMvc4.git






Wednesday, October 31, 2012

Error in Connecting to a Sitecore Web site through Sitecore Rocks


When I tried to create a new Sitecore Rocks connection to a Sitecore web site with the values specified in the image below, the following error occured:

The Web site does not respond.

It looks like the server address is a local web site. If the web site is running on ASP.NET Development Server, the server may not have been started yet.

Do you want to retry?


You might have already guessed the reason for this error.

But if you are like me who is not yet very experienced with configuring websites and who sometimes forgets what a "host name" is, here is the solution to that problem:
The "host name" here is the same as the "host name" of your website in IIS

Tuesday, October 30, 2012

Object of type 'System.Int32' cannot be converted to type 'System.Web.Security.Cryptography.Purpose'


After installing Visual Studio 2012 and .NET Framework 4.5 an error occurs when logging in in Sitecore (Version 6.4):

Object of type 'System.Int32' cannot be converted to type 'System.Web.Security.Cryptography.Purpose'

To fix this, change this setting in the web.config file from true to false:

<setting name="Login.RememberLastLoggedInUserName" value="false" />



This fix is from the comments section of this blog post: http://kamranicus.com/Blog/Posts/45/sitecore-and-net-framework-45

also: http://truncatedcodr.wordpress.com/2012/06/20/fix-sitecore-and-net-framework-4-5/

Tuesday, October 16, 2012

My First KnockoutJS Excercise

I am currently practicing KnockoutJS

Take a look at it: http://jsfiddle.net/jboyflaga/uhSmM/4/

I've updated my first knockout exercise to make use of control of flow binding: http://jsfiddle.net/jboyflaga/uhSmM/7/


Saturday, September 1, 2012

After Evolution, What's Next


Today, if you do not believe in evolution you are considered unscientific by many intellectuals.

But some intellectuals today are starting to realize that what they observe today does no agree with evolution.

Because humans have the tendency to invent things just to convince themselves that God does not exists - What's next, then, to (macro)evolution?

I think what's next will be this: Intelligent Design where the intelligent designer are extraterrestrials (or aliens from outer space).

The next generation is being brainwashed into this kind of thinking. People are trying to create STORIES (no real evidence) that are very convincing to make themselves and others believe that aliens from other planets exist.



(Dr. Greg Bahnsen presented a very compelling evidence on the existence of the God of the Bible on

The Great Debate: Does God Exist?)




Monday, May 21, 2012

ASP.NET MVC 3 (w/ C#): Student Information System


This is a simple Student Information System I created using ASP.NET MVC 3 and C#.

You can download the zip file here.


Because I'm new to ASP.NET MVC, I will list some interesting things for beginners that I used in this project:
  1. Adding attributes to entity classes generated by Entity Framework
  2. Creating AJAX search form
  3. Using Html.DropDownListFor() helper
  4. Using jQuery UI Datepicker

Saturday, May 19, 2012

Simple Student Information System Using .NET WinForms & DataSet



This is a simple Student Information System I created using the .NET Framework
 - Windows Forms for the GUI and DataSet for data access.
 - .NET language used: VB.NET

You can download this on Google Docs

You don't need to install the database used in this project because the Visual Studio Solution is configured to copy the database in the "Debug" folder and the application is configured to look for the database in the directory where the executable is located.

Username: admin
Password: admin

Happy coding!!!