DCSIMG
BI Olap MDX ,PL-SQL , SQL, Windows Metro App Direct3d 11.1 , Desktop Win 8 App Dany seban

Dany seban

Certified Microsoft MCPD ,MCTS Programmer Unmanaged languages C, C++ , Dot.net Sharepoint BI

MDX , Get days of current month without specific day recursive

Use function   Weekday for determine index day of week 

CREATE
SET CURRENTCUBE.[Specific days Month] as

Filter([Current Month Days],

Weekday([MEASURE].[Calendar Year].CurrentMember.Properties( "name" ))<>1

);

how to get solution package wsp from central admin sharepoint 2010 with power shell

$farm = Get-SPFarm
$file = $farm.Solutions.Item("namesolution.wsp").SolutionFile
$file.SaveAs("C:\namesolution.wsp")

the source  http://blogs.msdn.com/b/kaevans/archive/2011/12/05/extract-a-wsp-solution-from-sharepoint-2010.aspx

hoe to get assembly dll

for get assembly dll from  gac 

go to the folder C:\WINDOWS\assembly\GAC_MSIL\assemblyName.dll

send mail hebrew or string text hebrew

when you want to send an email in hebrew and you can not encode in Hebrew characters you must specify the encoding of the mail 

message.SubjectEncoding =

Encoding.Default;

message.BodyEncoding =

Encoding.Default;

unable to compile and deploy with vs 2010 to sharepoint 2010

if you try to compile and deploy a webpart without success or other element with visual studio and you receive this error message

nameProjectDLL.pdb: The process cannot access the file because it is being used by another process. etc..

and that, having tried everything it still does not
you can try to close the process msvsmon.exe (started by devenv.exe)
and it should run by open  Task Manager of windows

 

here the source that help me http://stackoverflow.com/a/9119297