Android Design Site

29 January 2012 | View comments (0)

Design site has just launched by Googe

it’s a must read for all android Developers

visit the site now

 

creative_vision_main

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 | View comments (0)

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 | View comments (0)

 

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 | View comments (0)

 

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 | View comments (0)

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 | View comments (0)

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 | View comments (0)

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

SQL Server Management Studio Row Limit

08 August 2011 | View comments (0)

Management Studio

 

 

if you are tired of the limit of editing and selecting rows in Management studio this is how you can change it. from tools menu select options and this is how you can change it.

know that loading a lot of rows affects the client machine memory to say the least not to mention locking rows in case of editing.

Solved : An unsecured or incorrectly secured fault was received from the other party.

08 August 2011 | View comments (0)

after reading a loooot of articles about security of wcf and impersonation of web applications we finally found out that the problem is caused by server and client does not have the same clock time.

 

so we simply fixed the time on the client machine and the problem disappeared.

Switch URL to Youtube video, Switch URL to Hyperlink using c#

02 July 2011 | View comments (0)

a friend of mine (who is not a developer) has told me that facebook is somehow affiliated with youtube and his reason was that if you type a video URL in the post box in facebook it automatically appears as video

it took me 10 minutes to build this demo,

this demo takes a block of text “post text ” which presumably includes a youtube URL and turns it into a youtube video in a webpage

 

   1: private const string FIND_URL_REGEX = "http://([\\w+?\\.\\w+])+([a-zA-Z0-9\\~\\!\\@\\#\\$\\%\\^\\&amp;\\*\\(\\)_\\-\\=\\+\\\\\\/\\?\\.\\:\\;\\'\\,]*)?";
   2: private const string YOUTUBE_TEMPLATE = "<object width=\"425\" height=\"355\"><param name=\"movie\" value=\"http://www.youtube.com/v/{0}&amp;hl=en\"><embed src=\"http://www.youtube.com/v/{0}&amp;hl=en\" type=\"application/x-shockwave-flash\" width=\"425\" height=\"355\"></object>";
   3: private const string URL_TEMPLATE = "<a href=\"{0}\">{0}</a>";
   4:  
   5:  
   6: protected string MakeLinks(string txt)
   7: {
   8:     Regex regx = new Regex(FIND_URL_REGEX, RegexOptions.IgnoreCase);
   9:     MatchCollection mactches = regx.Matches(txt);
  10:     foreach (Match match in mactches)
  11:     {
  12:         if (match.Value.ToLower().Contains("youtube.com"))
  13:         {
  14:             try
  15:             {
  16:                 txt = txt.Replace(match.Value, string.Format(YOUTUBE_TEMPLATE, match.Value.Split('=')[1].Split('&')[0]));
  17:             }
  18:             catch { }
  19:         }
  20:         else
  21:         {
  22:             txt = txt.Replace(match.Value, string.Format(URL_TEMPLATE, match.Value));
  23:         }
  24:     }
  25:     return txt;
  26: }
  27:  
  28:  

the previous code takes a block of text assuming this is what the user has posted and switches and text that looks like a URL to a hyper link and any youtube URL to video block