could somebody explain me "
Covariance and Contravariance" in simple way
could somebody explain me "
Covariance and Contravariance" in simple way
Hi all, i am beginner and learning. below my sample code. demo is working and demo1 is not , what the mistake i have done
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<p id="demo1">
what the hell is going on.
</p>
<p id="demo">
JavaScript can react to events. Like the click of a button.
</p>
<script>
function myFunction()
{
document.getElementById("demo").innerHTML="Hello JavaScript!";
doucment.getElementById("demo1").innerHTML="This is not working";
}
</script>
<button type="button" onclick="myFunction()">Click Me!</button>
</body>
</html>
Thanks Joe
Hi friends Please help me where to start . I want a page to design in my report screen , in that screen i should allow the user to create a template (with some Formatting and excel function ) , and this page has to be exported excel and need to import from the excel without any loss of template( Formatting and functions Can you please suggest me..how to do that ? which is the best way ? any other third party controls available? Thanks joe
hi friends i found the answer 1. it is to set the level like(debu,Info,Warn,Error,fatal) 2.it is possible by setting (use any one of this code in said the specific appender) this will set the top level <threshold value="DEBUG"/> this will filter the level <filter type="log4net.Filter.LevelRangeFilter"> <levelMin value="DEBUG" /> <levelMax value="WARN" /> </filter> Thanks
hi. friends small clarification in log4net. i am new to log4net so any mistake correct me. i have small program that uses log4net, and i have two appenders like 1.LogFileAppender (writes log to file) 2.ADONetAppender (writes log to DB) then i have <root> <level value="DEBUG" /> <appender-ref ref="LogFileAppender" /> <appender-ref ref="ADONetAppender" /> </root> when i use this config..my logs written in both my question are 1. what is that "level value="DEBUG" or INFO " what dose it do and what is the different?? 2. i have to write my write debug and info log to my log file and other error,fatal & warning logs to db how can i do that?? any idia of like??? thanks joe
Dear peter Thanks for the reply, i have not only public variables and also public methods. i could not access anything. i do not know where is my mistake. is there anything i need to do to access the public method of c++ class? i just added the dll in my reference, then i specified in the Using namespace. Thanks
Dear john, thanks for reply Please check the second line in C++ class
Dear friends I have small clarification I have c++ Dll which contains a class like these
public class Vector3d {
public:
float x, y, z;
Vector3d()
{
}
}
when i try to access the class by adding reference in C# project I could only create object for Vector3d class i am unable to access variables (x,y,z) my Vector3d Metadata looks like these
[NativeCppClass]
[CLSCompliant(false)]
public struct Vector3d
{
}
i could not find the variables in metadata also... what is the mistake i have done??? And what i have to do get the values to access? Thanks Joe.I
Thank you very much ..... :laugh: :laugh: :laugh: i used Conditional compilation symbols Thanks
Dear friends i have a doubt i am having “#define Integrated” in my every class. Is it possible to have it in a common file are in a general place only once defined Any help or Idea? By Joe
Thanks for reply, My problem like these .. i have button and i specified size for the button in One screen size... when i change to other screen size ..the button size same i tried to by removing button size and just to specify the margin ...if i set margin the (then the margin space remains same) i do not know what to do? thanks
Dear friends, I am new to WPF and I have to design pages, and I do not know how to design pages that fits for many screen size Is it possible to design screen that fits in all the screen size? Then how? If not all the screen size I need to fix it for 4/3 screen resolution like 800 600 1024 768 1280 960 1600 1200 1792 1344 Any idea? Link? Thanks
Dear friends i have an doubt, i have Page 1,Page 2 and view model for both. now i have button in page 1 that is bound to a command and now when i click that button it goes to view model command (and now here i want to open the second screen but second screen in view) tel me how to access view objects in view model? any idea? link? by Joe.I
Dear friends i am having some clarification ..if some one can help me by explaining 1. What is the diffrence and relation ( Localization , Globalization,satellite assembly) i have read artical about globalization , as my understanding we need to create (Folder for Language and Resource File for each language placed insaide the folder) i understand that .net environment convets thar .resx files as Resource.dll my problem is i have text files for each language, that has key value pair and this files need to be convered resource.dll for globalization (note:my requirement is at any point of time User can go and edit the text file , by executing some command convet those files as resource.dll and these dll used for globalization) in .net 2005 there is some command like "D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\ResGen.exe" "C:\Inetpub\wwwroot\SNIF3.0\SNIF3\Web\SNIF\sniffiles\Config\Query.txt" C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\al.exe /t:lib /embed:"C:\Inetpub\wwwroot\SNIF3.0\SNIF3\Web\SNIF\sniffiles\Config\Query.resources" /out:"C:\Inetpub\wwwroot\SNIF3.0\SNIF3\Web\SNIF\sniffiles\Config\ReflectionCase.resources.dll" /title:"Queries" How to do this in 3.5?? is this the correct way for my problem?? give me some idea? link? Thank you Joe
Thanks Pete O'Hanlon, It works fine. Thank you by Joe
Dear friends, I have wpf application i could double click on the exe and N number of instance, but i want only one application to run. how to do that? any idea? suggestion? Thank You Joe.I
Thanks....for reply i got info form [^]
Dear friends, i have some problems like i need to create application , that "creates Database,Table,Views" and need to insert default values. at first i have created script file which contains all the operation, then i have Executed script with help of SMO, and everything was fine, but the SMO works only where SQL server components are installed. is it possible to create the DB,Tables, View in any other way ?? Thank you
i found the answer .... i have changed these two lines in my linq query
group new {patient, image} by new {patient.PatientStudyDataId, patient.DicomPatientName, patient.DicomPatientId, patient.DicomStudyDate, modality.Modality1 } into list
and
Count = list.Count(p =>p.image.ImageDataId ==p.image.ImageDataId)
i am getting answer... anyway thanks for reading my question and answer... by joe
Dear friends i have small clarification on linq to SQL, i am new to linq i have query like these
select p.PatientStudyDataId,p.DicomPatientName,p.DicomPatientId,p.DicomStudyDate,count(i.ImageDataId)
From dbo.PatientStudyData as p
join dbo.Modality as m on m.ModalityId = p.ModalityId
left join dbo.PatientSeriesData as s on s.PatientDataId =p.PatientStudyDataId
left join dbo.PatientImageData as i on i.PatientSeriesId =s.PatientSeriesId
group by p.PatientStudyDataId,p.DicomPatientName,p.DicomPatientId,p.DicomStudyDate
i was trying to convert to linq
var query = from patient in DataContext.Select()
join modality in DataContext.Select() on patient.ModalityId equals modality.ModalityId
join series in DataContext.Select() on patient.PatientStudyDataId equals series.PatientDataId
into JoinedSerieas
from series in JoinedSerieas.DefaultIfEmpty()
join image in DataContext.Select() on series.PatientSeriesId equals image.PatientSeriesId
into JoinedImages
from image in JoinedImages.DefaultIfEmpty()
group patient by new {image.ImageDataId,patient.PatientStudyDataId, patient.DicomPatientName, patient.DicomPatientId, patient.DicomStudyDate, modality.Modality1} into list
select new PatientStudyTransferObject
{
PatientStudyDataId = list.Key.PatientStudyDataId,
DicomPatientName = list.Key.DicomPatientName,
DicomPatientId = list.Key.DicomPatientId,
Modality = list.Key.Modality1,
DicomStudyDate = list.Key.DicomStudyDate,
Count = list.Count()
};
My Problem is inside the count in sql "count(i.ImageDataId)" like these how to do this linq? if you want to give your own linq query , you are most welcome please help me By Joe