I want use the "--ipv4-timeout" option in the vlc activex,but it does not work,here is my code:
id = vlc.playlist.add(rtspURL, null, "--ipv4-timeout=20000");
please try this
:network-caching=1000 :ipv4-timeout=25000
example:
var options = new Array(":network-caching=", ":ipv4timeout=25000");
vlc.playlist.add(mrl,"test",options);
vlc.playlist.playItem(itemId);
Related
I'm trying to do the same as
query = new CB.CloudQuery('Class');
query.include('columnName');
But using CloudSearch, SearchQuery or SearchFilter. Is it possible? For example:
var cs = new CB.CloudSearch(Class);
cs.searchFilter = new CB.SearchFilter();
cs.searchQuery = new CB.SearchQuery();
cs.include('columnName');
// or
cs.searchQuery.include('columnName');
Thanks!
It's actually, cs.searchFilter.include('columnName');
I'm trying to do it like this
function btnChangeDirClick(){
var fromNode = document.getElementById("linkMenuLinkFrom").value;
var toNode = document.getElementById("linkMenuLinkTo").value;
chart.addData({
links:[{id:document.getElementById("linkMenuLinkid").value,
from:toNode,
to:fromNode
}]
});
}
but my console returns
Changing link from,to not supported
Of course it's possible to delete and recreate, but are there any alternatives?
One alternative is to store a direction flag in data and assign from and to decorations depending on it.
I suggest using delete/recreate for now. Link reconnection support will come.
Finally I ended up implementing is as follows, which works fine:
function btnChangeDirClick(){
var fromNode = document.getElementById("linkMenuLinkFrom").value;
var toNode = document.getElementById("linkMenuLinkTo").value;
chart.removeData({links:[{id:document.getElementById("linkMenuLinkid").value}]});
chart.addData({
links:[{
"id":document.getElementById("linkMenuLinkid").value,
from:toNode,
to:fromNode,
"style":{label:document.getElementById("linkMenuLinklabel").value}
}]
});
nextId += 1;
document.getElementById("linkMenuLinkFrom").value = toNode;
document.getElementById("linkMenuLinkTo").value = fromNode;
}
I have a textbox field with id="textbox1". How do I set its value?
This is what I tried:
query('#textbox1').text = 'test 123';
But it did not work.
InputElement input = querySelector("#textbox1");
input.value = "test123";
Tips : When you use querySelector(selector) you can type the result with what you expect (a InputElement here). Thus, editor will provide content assist to help you.
Note that query is now deprecated. For all those that find this through Google as I did, here is updated
InputElement input = querySelector("#textbox1");
input.value = "test123";
If I insert the values into the corresponding tables of RightFax, does it FAX automatically or do i need to write the following code for that?
RFCOMAPILib.FaxServerClass faxserver = new RFCOMAPILib.FaxServerClass();
faxserver.ServerName = "ServerName";
faxserver.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
faxserver.UseNTAuthentication = RFCOMAPILib.BoolType.True;
faxserver.OpenServer();
RFCOMAPILib.Fax fax = (RFCOMAPILib.Fax) faxserver.get_CreateObject(RFCOMAPILib.CreateObjectType.coFax);
// set up your 'fax' object the way you want it, below is just some sample options
fax.ToName = "John Doe";
fax.ToFaxNumber = "4255551111";
fax.ToVoiceNumber = "4255550000";
fax.ToCompany = "ACME";
fax.FromName = "My Company";
fax.FromVoiceNumber = "4255552222";
fax.Send();
Can you please provide me sample code for attachments? If RightFax sends the FAX automatically then which tables do I need to fill-in in order to do that?
Thanks
the below code is vb.net but will show you how to send a fax and add attachment as well, hope this helps. I've written a post about this here but here's the code below ....
Dim FaxAPI As RFCOMAPILib.FaxServer
Dim fFax As RFCOMAPILib.Fax
FaxAPI = New RFCOMAPILib.FaxServer
FaxAPI.ServerName =something
FaxAPI.Protocol = RFCOMAPILib.CommunicationProtocolType.cpTCPIP
FaxAPI.UseNTAuthentication = RFCOMAPILib.BoolType.False
FaxAPI.AuthorizationUserID = something
FaxAPI.AuthorizationUserPassword = something
FaxAPI.OpenServer()
fFax = FaxAPI.CreateObject(RFCOMAPILib.CreateObjectType.coFax)
fFax.Attachments.Add(“D:\FilePickupIn\2222222222-20110322142718-01.tif”)
fFax.HasCoversheet = RFCOMAPILib.BoolType.False
fFax.ToFaxNumber = something
fFax.ToName = something
fFax.Send()
FaxAPI.CloseServer()
FaxAPI = Nothing
fFax = Nothing
happy to help if you get stuck with anything...
I am generating a report using OpenXML and exporting it to excel. I want to protect the excel sheet except for a particular cell.
If anyone has worked on this before, kindly help
Thanks,
Amolik
PageMargins pageM = worksheetPart.Worksheet.GetFirstChild<PageMargins>();
SheetProtection sheetProtection = new SheetProtection();
sheetProtection.Password = "CC";
sheetProtection.Sheet = true;
sheetProtection.Objects = true;
sheetProtection.Scenarios = true;
ProtectedRanges pRanges = new ProtectedRanges();
ProtectedRange pRange = new ProtectedRange();
ListValue<StringValue> lValue = new ListValue<StringValue>();
lValue.InnerText = "A1:E1"; //set cell which you want to make it editable
pRange.SequenceOfReferences = lValue;
pRange.Name = "not allow editing";
pRanges.Append(pRange);
worksheetPart.Worksheet.InsertBefore(sheetProtection, pageM);
worksheetPart.Worksheet.InsertBefore(pRanges, pageM);
ref : http://social.msdn.microsoft.com/Forums/en-US/a6f7502d-3867-4d5b-83a9-b4e0e211068f/how-to-lock-specific-columns-in-xml-workbook-while-exporting-dataset-to-excel?forum=oxmlsdk
Have you tried using the OpenXML Productivity Toolkit?
from what I can see you have to add a
new CellFormat
with attribute
ApplyProtection = true
to
CellFormats
append
new Protection
with attribute
Locked = false
to the the CellFormat you created.
CellFormat is a element of CellFormats which is a element of Stylesheet
then to the Worksheet you add a
new SheetProtection(){ Password = "CC1A", Sheet = true, Objects = true, Scenarios = true };
I havent tried this, but it should be easy enought to find out what you need to do with the Productivity Toolkit. I hope this points you and anyone trying to do this in the right direction.