Recent Posts

Monday, February 4, 2013

Get Legitimate Photoshop for free from Adobe itself right here



Guys, I found out that Adobe is giving its older version of Adobe Photoshop CS2 and all contents within creative suite for free.

It is good for Photoshop learners who just want to learn and trial it out and not go into advanced functions which obviously if they think they need it can purchase latest version of Photoshop.

This is way good for the students learning Photoshop and who are tired of using free crappy photo software.

Here you go guys get your free copy from the ADOBE DOWNLOADS website, all you need to have is Adobe free Account which you don't mind creating to get a free copy. Enjoy happily........ 


Read more!

Wednesday, January 30, 2013

Fix for An unexpected error occurred while searching for plugins in Wordpress site hosted locally in Wamp server.

I came across unusual error while trying to install the plugins in wordpress development site hosted locally in Wamp server within our company network:

The error said:
“An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums”

It was few hours search which directed me to change the timeout in httpconfig.php and others as well and I tried all of them and finally I found out the blog to fix it which was:


The main culprit of the issue was the “proxy” being used for the connection within our company.

To get around the proxy we need to enter the proxy information in wp-config.php as below as mentioned in above link.

If the problem is happening when you search plugins or themes its probably because your connected to a proxy and you need to configure it on your wp-config.php
/** EXAMPLE - proxy settings */
define('WP_PROXY_HOST', 'proxy.url.com');
define('WP_PROXY_PORT', '1234');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');
Thanks to mario.andrade




Read more!

Wednesday, January 16, 2013

Using Entity Framework Code First and ASP.NET Membership Together A great article by Imar Spaanjaars

I was stuck when Asp membership tables were being deleted when working on Entity Framework code First approach and by looking around got hold of this great article that explained and fixed the exact problem i was having.

The link is below for the guys who are still searching for the fix. 

Using Entity Framework Code First and ASP.NET Membership Together

Some time ago I was involved as a software designer and developer in an MVC 3 project that used Entity Framework Code First 4.1 in a repository layer. During development we postponed dealing with security as requirements were pretty simple (simple logons with a single Administrators role plus the requirement that users should only be able to see their own data). When we were close to deployment, we ran the aspnet_regsql tool against the database that EF had created for us to create the SQL schema and data that the Application Services such as Membership and Roles require. We also added an additional userName parameter to a Get method in the repository to filter records for the currently logged in user. Finally, we added Authorize attributes to a number of controllers to make sure they are only accessible for users that are logged in. We then deployed the application and database, created a number of users using the MvcMembership section we had added to the site, and announced the presence of the site. All of this worked great, but we ran into issues when started work on the next version of the application.


Read more!

Wednesday, October 24, 2012

.vbproj cannot be opened for web projects created in VS 2005 after installing later versions of Visual Studio - Fixed

I just don't want to waste your time and come to conclusion on how this can be fixed so that you can focus on work rather than searching for google and scrolling through the blog posts.

 To fix this i downloaded and installed following components


 1. Download VS80sp1-KB926601-X86-ENU.exe from Micrsoft download page or from direct link below and install it :


 http://download.microsoft.com/download/6/3/c/63c69e5d-74c9-48ea-b905-30ac3831f288/VS80sp1-KB926601-X86-ENU.exe


 AND



 2. Download http://download.microsoft.com/download/9/0/6/906064ce-0bd1-4328-af40-49dca1aef87c/WebApplicationProjectSetup.msi from Microsoft download page or from direct link below and install it:

  http://download.microsoft.com/download/9/0/6/906064ce-0bd1-4328-af40-49dca1aef87c/WebApplicationProjectSetup.msi


This should fix your problem........Enjoy Coding !!!


Read more!

Wednesday, August 22, 2012

How to include people picker in Microsoft infopath 2010 (Step by Step)

I have started working on InfoPath 2010 and since it is new to me I was looking for ways to work with the People Picker control in Microsoft infopath 2010 so that it picks up the employee information from the Sharepoint server and that will in-turn provides people information that is stored in active directory.

So in this hunt of articles for me to help I found this brilliant article on the web called: Creating a people picker form in InfoPath 2010 by Alan

So I couldn't resist the article and published it here as well, hope he doesn't mind as i have used all his screenshots

Duty Swap

We decided to go with the duty swap form to start with, its currently a paper form that staff complete when they swap a duty with someone. The paper form is supposed to be a reminder that the swap has taken place and a copy goes to the duty team leader
Let me show you the finished article and then I can explain each step.
image

Creating The Form

Open InfoPath, in my case its InfoPath 2010
image
Select SharePoint Form Library and click Design Form
image
You can now edit all the headings etc to suit your needs and then lets add a people picker control and text box

Adding Controls

To access the controls, expand the control section on the menu bar and select them from the list
image
Your screen will now look like this
image
On the right hand side you will now have a list of the fields you have just added, however they are not named very well
image
Double click the field heading and change the names to something relevant
image

Testing The Form

With these two controls added we can test the form, to do this click on the Preview button at the end of the ribbon
image
If you type into the people picker control however, you will get an error
image
This is because the control has nothing to talk to. During runtime it will talk to the SharePoint site the form is published to and use the user profiles service to retrieve users details. To overcome this issue while we design the form we need to tell it the URL of the SharePoint site. To do this double click on the people picker control and select Control Properties
image
Click on the SharePoint Server tab and enter the address of the server
image
Now when you preview you the form it will return the username
image

Creating A Formula

We now need to fill in the text box with the email address of the user. This is going to require a formula to take details from the people picker control
If you look at the people picker control it pulls through the following data
  • DisplayName
  • AccountId
  • AccountType

We can use the AccountId to produce the email address, if you use InfoPath to complete the form you can use the AccountId to send the email but we are going to fill the form in using a web browser so we need to produce a full email address.
Double click on the text box control and select control properties from the ribbon
image
Click on the fx button
The AccountId will be returned from the system in the format of domain\username we need to take this and use just the username to add to the email address. For this we will need to use two functions
  • substring-after – This function looks at the AccountId field and only uses the text after the \
  • concat – This function concatenates (joins together) the selected text from the AccountId and the rest of the email address

Here is the code and as it should appear on the screen
concat(substring-after(AccountId, "\"), "@westhatch.essex.sch.uk")
image
So now lets see what happens when we use the people picker to search for a user
image

Submit The Form

Our form now has enough information in it for it to be submitted to someone by email. In this example it will be setup to submit an active view of the form to the user selected in the people picker
To do this we need to create a data connection to submit the form
From the ribbon select the Data tab and then click on To E-mail
image
Click on the function key next to the To: text box
image
Click on Insert Field or Group and select the text box field that will contain the email address
image
Select the option to send only the active view of the form
image
Give the data connection a name and then click Finish
image
Now lets preview the form again only this time click Submit once you have selected someone in the people picker
image
Once you click on Submit you should receive an email with the active view of your form like the one below
image
So we have a form that will allow the user to find people from within the organisation and then submit the form as an email to that user. That’s great but it doesn’t really do anything else. Part 2 of this series will add more controls and as well as submit the form as an email will save the data to SharePoint for further analysis.

Thanks Alan can't wait for your part 2 and if i figure this out then I will try to post the part 2 version of this asap.

Cheers


Read more!