November 2011 Blog Posts

Fixed: Sharepoint 2010 The timer job for this operation has been created, but it will fail because the administrative service for this server is not enabled

30 November 2011 |

I was using installing WSPs and I got this error

Error

The timer job for this operation has been created, but it will fail because the
administrative service for this server is not enabled. If the timer job is sched
uled to run at a later time, you can run the jobs all at once using stsadm.exe -
o execadmsvcjobs. To avoid this problem in the future, enable the Microsoft Shar
ePoint Foundation administrative service, or run your operation through the STSA
DM.exe command line utility.

FIX

to continue installing my tome jobs I typed this in sharepoint console

   1: stsadm -o execadmsvcjobs

 

for this not to happen again

Sharepoint 2010

make sure this service is running

“SharePoint 2010 Administration”

 

Sharepoint 2007

make sure that this service is running

“Windows SharePoint Services Administration service”

Install SharePoint 2010 Language Pack on windows 7

29 November 2011 |

 

Download

first download language pack from this link

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3411

 

Extracting the Package

to extract the package open command prompt  and navigate to the folder that has the package and then type in

ServerLanguagePack.exe /extract:c:\FolderName

where FolderName is where you want the extracted files to be

Modify package configurations

we need to modify package configuration file to skip the check for windows 2008

to do that

navigate to

c:\FolderName\Files\Setup\

and open this file Config.xml

   1: <Configuration>
   2:     <Setting Id="OSERVERLPK" Value="1"/>
   3:     <Logging Type="verbose" Path="%temp%" Template="SharePoint 2010 Products Language Pack Setup(*).log"/>
   4:     <Setting Id=”AllowWindowsClientInstallValue=”True/>
   5: </Configuration>

I have added the highlighted line to the file and saved it.

Install the package

 

now go to c:\FolderName\setup.exe and insatll it

 

Configurations wizard

 

in the end run sharepoint 2010 configurations wizard in the end.

Problems running SharePoint 2010 Configurations Wizards for the first time

27 November 2011 |

 

I Just installed SharePoint on my machine now and I got two consecutive errors the first one was

 

Could not load file or assembly ‘Microsoft.IdentityModel

An exception of type System.IO.FileNotFoundException was thrown.  Additional exception information: Could not load file or assembly ‘Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified.

 

and the fix was to install this package

Windows6.1-KB974405-x64.msu

From the URL

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17331

 

and the second problem was

Failed to call GetTypes on assembly Microsoft.Office.Server.Search

An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

and the fix was

Install this (MS Char component)

http://go.microsoft.com/fwlink/?LinkID=122517

Android Splash Activity removed from history

20 November 2011 |

I usually have a splash activity either to load and prepare variables for execution or just to check for latest updates to the application and its data.

I just don’t want the users to be able to click back on their mobiles and go back to that splash activity

I looked at a lot of internet posts but this is the simplest

I have added the noHistory Attribute to the splash activity in the manifest file

   1: <activity
   2:     ...
   3:     android:noHistory="true">
   4:     <intent-filter >
   5:         ...
   6:     </intent-filter>
   7: </activity>
   8:   

Edit Android database on your pc

19 November 2011 |

Because Android Databases are SQLite Database it’s pretty standard so when you are developing your android application you can go in and explore your device to the database location and copy the database to your PC and start playing with it.

Getting the Database

In Eclipse as you have an emulator active and connected you will be able to browse all files on the device

you can do that by using the Android File Explorer if you can not see it go to window => show View => other and then in the Android Group Select File Explorer

 

image

 

when you select it you will be able to browse files

now go to

Data ==> Data ==>com.yourpackage

and in there you can find the database you created.

 

image

 

then on the top of this window click export

at that point you have your database field now what you need a tool that can edit and view your database

Editing the Database

the tool is Sqlite Browser that you can find on source forge

once you download that just double click it and open the database that you just imported and run all sql statements that you need on that.

the tool supports UTF-8 as the database ofcourse

image

in another post I’ll explain how you can include a database to your android app package.

Convert Flash to HTML5 [Swiffy]

19 November 2011 |

Google has recently released Swiffy

Swiffy is a tool that acts as a Flash extension and allows compiling your flash projects into HTML 5 files.

 

 

and then you can export the flash projecs instea of SWF to HTML

 

Download Link is here

http://www.google.com/doubleclick/studio/swiffy/extension.html

 

Google has also provided samples here including projects with action scripting

Here you go check this link

http://www.google.com/doubleclick/studio/swiffy/gallery/example3.html