MVC4 and Simple messaging system

 

MVC4  Developer preview with mobile support just released. And, because best way to deal with is within an application, I decide to create a simple messaging system for any site that is made with MVC.

Description:

I begin with a registered user. What he can do:

1. Create messages ( subject + body ) to send to another registered user. The list of the users on the system will be taken either from database, either from an Application variable. The message will be recorded to a database( configured by the owner of the site )  with the possibility to be send also by email

2. When login, the registered user can see the list of messages and replies send to/by him. Also, if he has unread messages he can see an advertisement.

3. The application could be seen also from a mobile device.

What should be done also:

4. The install of the application should be easy for any developer ( xcopy or some package – like Nuget or recipe)

Wish me luck to finish !

Sql developer versus C#(.NET ) developer

I am not very well yet from my operation – so I can not write yet a tutorial.

But I want to propose you the following difference: Sql developer versus C# developer.

In my opinion , nowadays, if you program some application , you MUST have some database. More, the retrieving of data from the dtabase is a matter of relative speed to be seen by the user. So , for me, every .NET programmer should know about indexes / schema / foreign keys / users and so on. More, it has to know about connection pooling and stored procedures.

So, in my opinion ,  you can not be a .NET programmer without knowing much about databases.

What do you think, dear reader?

( This post is generated from a discussion in that the guy says that “I’m a C# developer, not a SQL developer.” and then leaving hints like “Any organization that follows a business practice of SQL users on databases needs to fire their DBA and find someone with the knowledge and foresight of how to scale security in db roles and filter the access through the domain admins (i.e., adding users to a user group in AD).”  and then “was the primary DBA for a number of years covering SQL7-SQL 2005. “)

What do you think about the discussion ?  And about the sql developer versus .net developer?

Programmer Explorer setting in windows 7

This is the first part of a series of multiple posts about how to have the explorer configured right(ok, my way)in Windows 7.

Please left click on “Organize (push button)” in “Computer”

clip_image001

Please left click on “Folder and search options (menu item)”

clip_image002

Please left click on “Open each folder in its own window (radio button)” in “Folder Options”

clip_image003

Please left click on “Show all folders (check box)” in “Folder Options”

clip_image004

Please left click on “Automatically expand to current folder (check box)” in “Folder Options”

clip_image005

Please left click on “View (page tab)” in “Folder Options”

clip_image006

Please left click on “Always show menus (check box)” in “Folder Options”

clip_image007

Please left click on “Display the full path in the title bar (Classic theme only) (check box)” in “Folder Options”

clip_image008

Please left click on “Show hidden files, folders, and drives (radio button)” in “Folder Options”

clip_image009

Please left click on “Hide empty drives in the Computer folder (check box)” in “Folder Options”

clip_image010

Please left click on “Hide extensions for known file types (check box)” in “Folder Options”

clip_image011

Please left click on “Hide protected operating system files (Recommended) (check box)” in “Folder Options”

clip_image012

Please left click on “Yes (push button)” in “Warning”

clip_image013

Please mouse drag start on “Position (indicator)” in “Folder Options”

clip_image014

Please left click on “Launch folder windows in a separate process (check box)” in “Folder Options”

clip_image015

Please left click on “Restore folder windows at logon (check box)” in “Folder Options”

clip_image016

Please left click on “Show encrypted or compressed NTFS files in color (check box)” in “Folder Options”

clip_image017

Please mouse drag start on “Position (indicator)” in “Folder Options”

Please mouse drag end on “Position (indicator)” in “Folder Options”

Please left click on “Search (page tab)” in “Folder Options”

clip_image018

Please left click on “Always search file names and contents (this might take several minutes) (radio button)” in “Folder Options”

clip_image019

Please left click on “Include compressed files (ZIP, CAB…) (check box)” in “Folder Options”

clip_image020

Please left click on “OK (push button)” in “Folder Options”

clip_image021

That will be all!

Programmer Visual Studio(Visual Web Developer Express) settings

Please left click on “Tools (menu item)” in “Start Page – Microsoft Visual Web Developer 2010 Express”
clip_image001[13]
Please left click on “Options… (menu item)”
clip_image002[12]
Please left click on “Show all settings (check box)” in “Options”
clip_image003[11]
Please left click on “Projects and Solutions (outline item)” in “Options”
clip_image004[11]
Please left click on “General (outline item)” in “Options”
clip_image005[11]
Please left click on “Track Active Item in Solution Explorer (check box)” in “Options”
clip_image006[11]
Please left click on “Always show solution (check box)” in “Options”
clip_image007[11]
Please mouse drag start on “Position (indicator)” in “Options”
clip_image008[11]
Please mouse drag end on “Position (indicator)” in “Options”
clip_image009[11]
Please left click on “Text Editor (outline item)” in “Options”
clip_image010[11]
Please left click on “HTML (outline item)” in “Options”
clip_image011[11]
Please left click on “HTML (outline item)” in “Options”
clip_image012[11]
Please left click on “Tabs (outline item)” in “Options”
clip_image013[11]
Please left click on “Formatting (outline item)” in “Options”
clip_image014[11]
Please left click on “Insert attribute value quotes when typing (check box)” in “Options”
clip_image015[11]
Please mouse drag start on “Position (indicator)” in “Options”
clip_image016[11]
Please mouse drag end in “Options”
clip_image017[11]
Please left click on “OK (push button)” in “Options”
clip_image018[11]

Programmer settings – Add shortcuts to “send to”

In this tip I will show how to add a “send to” notepad menu item(you can add for another programs too)

Please keyboard input [… Win-R]
clip_image001[6]
Please keyboard input in “Run” [Enter]
clip_image002[6]
Please right click on “Items View (list)” in “C:\Users\andrei ignat\AppData\Roaming\Microsoft\Windows\SendTo”
clip_image003[6]
Please left click on “New (menu item)”
clip_image004[6]
Please left click on “Shortcut (menu item)”
clip_image005[6]
Please keyboard input in “Create Shortcut” […]
clip_image006[6]
Please left click on ” (push button)” in “Create Shortcut”
clip_image007[6]
Please keyboard input in “Create Shortcut” […]
clip_image008[6]
Please left click on “Finish (push button)” in “Create Shortcut”
clip_image009[6]

Backup application for Windows Azure

I have written( with Vunvulea Radu and Catalin Gheorghiu)  a backup application for Azure. It is made with MVC + Azure Tables.

It was made initially for a contest, but I intend to work further and progress .

You can play at http://backupapp.cloudapp.net/

The code source is on http://myazurebackup.codeplex.com/ – and you can add also your feedback at http://myazurebackup.codeplex.com/workitem/list/advanced

And , if you are a programmer, you can also improve it – just leave a comment on codeplex!

Thank you,

Programmer Settings – Winmerge

Please click Edit-Options

clip_image001

 

Please left click on "General (outline item)" in "Options (Shell Integration)"

clip_image002

 

Please left click on "Automatically scroll to first difference (check box)" in "Options (General)"

clip_image004

 

Please left click on "Disable Splash Screen (check box)" in "Options (General)"

clip_image005

 

Please left click on "Compare (outline item)" in "Options (General)"

clip_image006

 

Please left click on "Ignore blank lines (check box)" in "Options (Compare)"

clip_image007

 

Please left click on "Ignore case (check box)" in "Options (Compare)"

clip_image008

 

Please left click on "Ignore time differences less than 3 seconds (check box)" in "Options (Compare)"

clip_image009

 

Please left click on "Editor (outline item)" in "Options (Compare)"

clip_image010

 

Please left click on "Archive Support (outline item)" in "Options (Editor)"

clip_image011

 

Please left click on "Shell Integration (outline item)" in "Options (Archive Support)"

clip_image012

 

Please left click on "Add to context menu (check box)" in "Options (Shell Integration)"

clip_image013

 

Please left click on "Include subfolders by default (check box)" in "Options (Shell Integration)"

clip_image014

 

Please left click on "Add Shell menu to context menu (check box)" in "Options (Shell Integration)"

clip_image015

 

Please left click on "Enable advanced menu (check box)" in "Options (Shell Integration)"

clip_image016

 

Please left click on "OK (push button)" in "Options (Shell Integration)"

clip_image017

 

Jquery and multiple Ajax

I have had 2 occasions where I need to know when the ajax call have been finished:
  1. When in the beginning of page I have to load specific items that the user have been seen last time
  2. When the page was full with ajax call  – and there was also a “submit” button that should send the information (saved already ) that the user have finished entering the fields .
So – jquery have 2 methods: ajaxStart and ajaxStop.
Code:
Put 2 divs on the page :
<div id=”divWait” style=”display:none”> Please wait…</div>
<div id=”divOK” style=”display:none”> All data submitted</div>
And put this on javascript:
$(“#divWait”).ajaxStart(function() {
$(“#divWait”).show();
$(“#divOK”).hide();
});
 $(“#divWait”).ajaxStop(function() {
$(“#divWait”).hide();
$(“#divOK”).show();
});