I've a collection in viewmodel binded to listbox. I want to hide a particular type from the collection.
Here is the code:
public ObservableCollection [YZModeModelView] YZModeModelView
{
return this.XModelVIew.YZModelViewCollection;
}
I want to a particular type of model view's from YZModelViewCollection. eg. ModelView's with property abc set to null.
Any suggestions ...
I want to run a cmd exe using a python script.
I have the following code:
def run_command(command):
p = subprocess.Popen(command, shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
return p.communicate()
then i use:
run_command(r"C:\Users\user\Desktop\application\uploader.exe")
this returns the option menu where i need to specify additional parameter for the cmd exe to run. So i pass additional parameters for the cmd exe to run.
How do i accomplish this. I've looked at subprocess.communicate but i was unable to understand it
I have a License class.There are 50 boolean properties and some timestamp properties. I want to inform user in case all of these 50 properties are false.
One way is to use 50 if and if conditions.other way is reflection which seems overkill for this thing. Please suggest some other way. I am using .Net framework 3.5
I need "get_ancestors_recursively" function.
A sample run can be
>>> dump(tr)
<anc1>
<anc2>
<element> </element>
</anc2>
</anc1>
>>> input_element = tr.getiterator("element")[0]
>>> get_ancestors_recursively(input_element)
['anc1', 'anc2']
Can somebody help me with this ?
See i have just completed my Secondary level exams and have long holiday which i want to utilized in something. What should i learn? i want to go in computer field in future. so which is best now in my level to learn.
Please suggest me i am 16 year old boy.
Do b trees and b+ trees only store data at their leafs? I am assuming that they use their internal nodes to search the required data.
Is that the case or do they store data in every node?
I stored a object in viewstate on Page. Now when i access the same viewsate object on usercontrol,it shows as null. I even tried creating the same viewstate with same name in usercontrol and page.Both holds different value.
I understand that viewstate is a protected property. How does this thing implement in above scenerio or is there any other reason for this behaviour.
I have a entity class RenderingTemplates. Inside this i have a property List which holds all versions of rendering template. RenderingTemplateVersion has a property VersionName which stores version name as "Version 1.0".
I am creating a new version and want to find last version no.so that i can append it by 1 and make new VersionName as "Version 2.0".
To accomplish this i have
LatestVersion = template.RenderingTemplateVersionList.OrderByDescending(e => e.VersionName.Split(new char[] { ' ', '.' })[1]).First()
LatestVersion is a integer. How to convert this to integer.Please help or suggest some other way.
I have a custom treeview which i create programmatically as there is a need of specific layout which is not achievable using asp.net treeview.It is on a master page.When i click on treenodes the content area refreshes after a postback.There is a page category.aspx which is a content page of this master page.I have a user control in that content area named products.aspx.Now i want to use ajax to prevent the postback which happens when i click on treenode.I tried putting user control in updatepanel and treeview as well in updatepanel but to no awail.
How to use updatepanel in this scenerio.
Here is a typical sequence of events that occur :
Host device opens a service ( Host device accepts and opens all incoming connections)
A remote device connects to host device.
Now, we have a slave connection open at host device.
At host device, I want to know the bluetooth address of remote device.
I can always pass it as data from remote to host device, but
can I extract it from connection object somehow without any data transfer?
Thanks in advance...
hi i wanna make a retail store software for my family retail store ....
can anyone help me out with which language to use and just give me some basic ideas
I'm an engineering student and have good knowledge of ASP, HTML, CSS, VBSCRIPT and have gone through java , c ,c++.
please help me anyone
I have to store versionName of a template. VersionName is autoincremented.If last versionName is "Version 1.0", next should be "version 2.0". First time when a template is created, I have to store "Version 1.0".
I am using
VersionName = "Version "+((LatestVersion+1).ToString())
LatestVersion holds the last version which is 0 in case added for first time.
This seems to be a ugly workaround and doesnot even yield Version 1.0. it yields Version 1. I Tried with Version class as well,it does not work. How to accomplish this.Please suggest
Hi,
I am doing a project in which i require btree or b+tree data structure. but its not an important part of project. it would take my time to write a code for it. I googled it but didn't get anything....
So, can anyone provide java code for btree or b+tree implementation (with insert, delete, search algorithms)??????
it should accept string as input and form btree or b+tree of these string.
hi,
why i am getting undefined label error in following code??
i am ignoring code as it is of no use...
loopLabel:
for(i=0;;i++)
{
{ some code;
}
{ come code;
}
}
if(condition)
{
if(condition)
{ some code }
else
{
some code;
continue loopLabel;
}
}
I have to create a db design to store blacklisted fax numbers. I have created a table and one column of this table is customerID which is a foreign key to table Customer. Now i want to have a faxnumber which is blacklisted for all customers. How should i proceed with this. Should i use Null in this case. Please provide options
Is there any way of removing unused references to assemblies, in a C# project, without the help of Resharper? The MSDN documentation does outline something for Visual Basic, but I couldn't find the same dialogs for C#.
This is the IF -Else ladder which I have created to focus first visible control on my form.According to the requirement any control can be hidden on the form.So i had to find first visible control and focus it.
if (ddlTranscriptionMethod.Visible)
{
ddlTranscriptionMethod.Focus();
}
else if (ddlSpeechRecognition.Visible)
{
ddlSpeechRecognition.Focus();
}
else if (!SliderControl1.SliderDisable)
{
SliderControl1.Focus();
}
else if (ddlESignature.Visible)
{
ddlESignature.Focus();
}
else
{
if (tblDistributionMethods.Visible)
{
if (chkViaFax.Visible)
{
chkViaFax.Focus();
}
else if (chkViaInterface.Visible)
{
chkViaInterface.Focus();
}
else if (chkViaPrint.Visible)
{
chkViaPrint.Focus();
}
else
{
chkViaSelfService.Focus();
}
}
}
Is there any other way of doing this. I thought using LINQ will hog the performance as i have to tranverse the whole page collection. I am deep on page which has masterpages.Please suggest.
I am implementing the highlight procedure of line .
If the user click the checkbox it will highlight whole line by yellow. User can make as this any number of line. So it is possible to highlight the whole line when user click the checkbox?
Please check my picture I select all text when I click the checkbox (because you will understand my problem)
I am trying here in this fiddle
<div>
<button id="next">next
</button>
<button id ="previous">previous
</button>
</div>
Checked rows: <span id="checkedRows"></span>
<div id="content">
<div id="left">
<div class='cb'>
<input type="checkbox" />
</div>
</div>
<div id="realTimeContents" class="left realtimeContend_h"></div>
</div>
hi i have to upload a video.but i want to gives permission only authenticate user to download .but i have a problem in that.because if any body type the video detail in browser.(ex http://sitename/folder_name/videoname) then browser download that video.but i don't want this .please suggest me how can i resolve this problem.either i should generate the video name randomly or make a temporary folder in which video reside only for specific time,after this video will be delete.
Or if any other ideas you have please let me know
Thanks in advance