Wednesday, August 26, 2009

Text not scaling properly during animation in Silverlight

If you are facing the problem where you text is not scaling properly and the animation is not coming smooth then in this kind of situation you have to use something which can find the nearest neighbor and convert the values in accordance with this nearest neighbor.

If you are using Silverlight then you can do this very easily by typing just one line of code.

For Silverlight 2 you have to type

RenderOptions.TextRenderingMode = “RenderForAnimation”

For Silverlight 3 you have to type

TextOptions.TextHintingMode = "Animation"

Both of these ensure that the text animation is proper, if you don’t use these properties then you will find sometime when you are applying some scaling or any other rendering transformation on any container which also contains some text element then this text element inside the container will also scale.

I will give main emphasis on Silverlight 3 property i.e TextOptions.TextHintingMode

This property takes one of two possible values: Animated or Fixed.

“Animated optimizes for animation by using a more efficient, but less visually precise, smoothing algorithm. Text is still readable and the loss of precision is not that severe.”

Fixed uses an algorithm that is optimized for visually precise text smoothing, but can lead to performance issues. For example, when animations are applied to properties of a text element, in particular FontSize, you might see jitters. When transforms, positioning, or projections are applied to text elements, you might see performance issues. Fixed is the default.

You can apply this property to a layout container and the setting will apply to any text element within that container. However, in general, you should apply this property directly to a text element, such as a TextBlock, TextBox, or Glyphs, where the animations applied will only affect the text.

Happy Programming!!!!!!!!!!!!!!!

Monday, August 24, 2009

Deleting User Alerts in Sharepoint (MOSS 2007)

Setting alerts in MOSS 2007 is very easy just go to any list or library right click on Actions Tab and the last option available is the Alert Me feature. Configuring these alerts is very simple and is a child’s play but customizing the alert emails which are sent and sending list specific email alerts and stuffs like this are little bit tricky.

Don’t worry here we are not discussing those horrifying issues but here we are simply going to discuss on how to delete the alerts which user has set on a particular list. There is a very simple process to do this you don’t need to write code for that but i am sharing this with you as for the novice programmer it’s a tedious task to find actually where to go to delete these alerts.

  • Just go to “Site Actions” on the top right corner of your sharepoint site and then click “Site Settings”.

 

  • Now look for the Site Administration section under that look for the User Alerts.

 

 

  • Once the User Alerts page is opened select a user for which you want to delete the alert, as you select the username from the dropdown list then all the alerts related to that user will be displayed.
  • Now you can select single or multiple alerts and click on the “Delete Selected Alert” link to delete the selected alert.

Stay tuned for more articles on Sharepoint (MOSS 2007)

Happy Programming!!!!!!!!!!!!!!!!!!!

Thursday, August 20, 2009

Finding and changing the default timer interval for timer jobs in Sharepoint

Many times we need to change the default timer settings either by increasing the default time or by decreasing the default time of the timer jobs for a particular sharepoint site.

Particularly if you want to send an email as soon as an action is performed within the sharepoint, in such a scenario you will need to decrease the default timing of the timer job.

There are two commands by which you can achieve this very easily:-

  1. Finding the default time of the timer job, the delay in sending mails could be due to the default timing of the timer jobs which is by default 5 minutes.
  2. Decreasing the default time of the timer job to 1 minute.

That’s all you need to do to adjust the default timer job timing delays.

Happy Programming!!!!!!!!!!!!!!!!!

Wednesday, August 19, 2009

Smallworkarounds on Mobile

Hi readers, i am pleased to announce that Smallworkarounds has been launched for the mobile platform using Mobify.Me service.

You can find the mobile version of Smallworkarounds at www.smallworkarounds.mobify.me

Now you can view your favourite new articles on your mobile set.There will be few more upgrades in future for this mobile site.

I came across mobify.me through Woork and as soon as i used it, i started liking this service.

I highly recommend you to go through this article on Woork to follow the steps to mobify your website.

Saturday, August 15, 2009

O3D:- Google Releases 3D support open api for web browsers

O3D is an open-source web API for creating rich, interactive 3D applications in the browser. This API is shared at an early stage as part of a conversation with the broader developer community about establishing an open web standard for 3D graphics.

The latest release is  O3D Release 0.1.40.1

O3D is available in Internet Explorer, Firefox, Chrome, and Safari and works on any Linux, Mac, and Windows computer that meets the minimum hardware requirements.

You can watch the sample here http://o3d.googlecode.com/svn/trunk/samples/beachdemo/beachdemo.html

You can download O3D from http://code.google.com/apis/o3d/

MOSS 2007 :- Editing a user profile

There are times when you need to edit the user profiles and relate some meaningful data other then the default data which the user brings from its active directory or standalone profile.

For this task you need to know where exactly you can modify the user profile.

This article will tell you one possible way of modifying the user profile and relating an email address to the user.

1.Open the Central Administration and from the central administration select the Shared Service Provider link.

 

2.In the shared service provider open the User Profiles and properties link.

3.After clicking the User Profile link you will be redirected to a page where you will find profile and import settings.On this page click on the view user profiles link, clicking on this link will take you to a page where you will find all the details related to the user, you can edit and save changes inside many of the given user related properties.

4. View User Profile will redirect you to a page where you can find all the users now you can click on any of them and as soon as you click the dropdown around them you will find options saying Edit,Delete and Manage Personal Site, now just click on Edit link to start editing the user profile.

5.Now a detailed screen will be opened for you where you can edit any of the properties among several properties which are there.You can associate work phone,title,office,department, email and many other attributes to the selected user which we are editing.

 

6.After making all your changes, just click on the Save and Close button at the top of the Information to save your changes.

And that’s all what you need to change the user’s profile, this is one of the method to reach here there can of course be other ways to reach at the same section, i would love to know about some other ways by which you people are manipulating the user profiles.

Happy Programming!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Friday, August 07, 2009

Can't Uninstall SQL Server 2005 Express Tools:- Error while installing Sql Server Management Studio Express 2008

The SQL Server 2005 Express Tools are installed. To continue, remove the SQL Server 2005 Express Tools.

If you are getting the above error while installing Sql Server Management Studio 2008 then probably you might try the below given solutions one by one to fix this error.

I m not certain what will work for you but i have added all the options which i found after spending some time on the net which various people have given and for me the most common one worked which also i have listed below.

  1. Rename the key “HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90”. This worked for me i renamed the whole folder to “old” and then the installation started passing all the test. For x64 Windows Server 2008, the reg key needed is: “HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\90” ( Thanks to adam).

Once Sql server Management Studio is installed successfully, then restart your system sql server installation will automatically ask you for a restart.

After restarting you will see that your sql server 2005 instance will stop working because you played with the 90 directory and if you try to rename old to 90 then the system will not allow you to do so as it already created an entry name 90 for you having “Tools” and “Shell”.

So now we are in deep trouble what to do next, what i did was i again renamed the 90 entry which it created to 70 and the entry for sql server 2005 which we renamed as old, again back to 90 and voila everything works fine now.

Both sql server installations are running side by side and both management studios are also running side by side anyways we can open old database in SSMS 2008 so there is no need to have SSMS 2005 unless and until there is some special requirement.

This was the hit and trial method and it worked for me for the first time but i would not suggest this method to be done on any full fledged install although you may test this on your virtual pc or vmware installation as it might corrupt your sql server 2005 installation in some cases.

2.Try uninstalling any redgate products if you have installed any especially Red Gate Sql Prompt, this also caused issues to some users.

3.Try uninstalling sql server Management Studio 2005 before installing SSMS 2008

Above listed three ways will do the task for you, if you have resolved the problem in some other easy and concrete way then please do post your comment.

Happy Programming!!!!!!!!!!!!!!