Can I finalize the WebPreferences in twiki like I can in foswiki?
yup. See the Main.TWikiPreferences topic.
Related
this question mainly comes due to my lack of understanding of the ROS and inability to find exactly the topic.
For turtlesim, the topic is turtle1/cmd_vel to publish command velocity messages to
For turtlebot3, what is the topic to publish cmd_vel messages to?
I have done something like this for turtlesim
command_topic_velocity = '/turtle1/cmd_vel'
publisher_velocity = rospy.Publisher(command_topic_velocity, Twist, queue_size=10)
what would command_topic_velocity be for Turtlebot3 on ROS melodic?
you shoud use cmd_vel
pub = rospy.Publisher('cmd_vel', Twist, queue_size=10)
https://github.com/ROBOTIS-GIT/turtlebot3/blob/master/turtlebot3_teleop/nodes/turtlebot3_teleop_key
and you can use rostopic nameoftopic show
There are a lot of examples on the internet on how to do this with the old JobHost, but none I can find with HostBuilder.
Thanks,
George
For now I didn't found detailed documentation on the new HostBuilder.
However looks like we could use this code to do it. You could find it on github.
.ConfigureServices(services =>
{
// add some sample services to demonstrate job class DI
services.AddSingleton<ISampleServiceA, SampleServiceA>();
services.AddSingleton<ISampleServiceB, SampleServiceB>();
}
And there is an answer about it, which uses the same service to implement it, you could try it.
Is it possible to change any of the email message dates (sent, received, modified...) through MAPI properties? I'm looking at the IMessage interface and don't see anything related to that. Am I looking in the wrong place?
https://msdn.microsoft.com/en-us/library/office/cc842097.aspx
IMessage : IMAPIProp
IMessage::CreateAttach
IMessage::DeleteAttach
IMessage::GetAttachmentTable
IMessage::GetRecipientTable
IMessage::ModifyRecipients
IMessage::OpenAttach
IMessage::SetReadFlag
IMessage::SubmitMessage
Yes, all properties except for PR_CREATION_TIME and PR_LAST_MODIFICATION_TIME can be modified. You need to use IMessage::SetProps (that method is inherited from the IMAPIProp interface).
I'm having an unexpected issue with a c++ quickfix client application using FIX 4.4. I form marketdatarequest and populate it and then call send which returns true. The message is not found in the message or event log files.
No error seems to be reported - what could be happening?
FIX44::MarketDataRequest request(FIX::MDReqID(tmp)
, FIX::SubscriptionRequestType('1')
, FIX::MarketDepth(depth)); // 0 is full depth
FIX::SubscriptionRequestType subType(FIX::SubscriptionRequestType_SNAPSHOT);
FIX44::MarketDataRequest::NoRelatedSym symbolGroup;
symbolGroup.set(FIX::Symbol(I.subID));
request.addGroup(symbolGroup);
FIX::Header &header = request.getHeader();
header.setField(FIX::SenderCompID(sessionSenderID));
header.setField(FIX::TargetCompID(sessionTargetID));
if (FIX::Session::sendToTarget(request) == false)
return false;
My FixConfig looks like:
[DEFAULT]
HeartBtInt=30
ResetOnLogout=Y
ResetOnLogon=Y
ResetOnDisconnect=Y
ConnectionType=initiator
UseDataDictionary=Y
FileLogPath=logs
[SESSION]
FileLogPath=logs
BeginString=FIX.4.4
DataDictionary=XXXXX
ConnectionType=initiator
ReconnectInterval=60
TargetCompID=tCompID
SenderCompID=sCompID
SocketConnectPort=123456
SocketConnectHost=XX.XX.XXX.XX
SocketConnectProtocol=TCP
StartTime=01:05:00
EndTime=23:05:30
FileLogPath=logs
FileStorePath=logs
SocketUseSSL=N
thanks for any help,
Mark
Mark, just couple of notes not really related to your question but which you may found useful:
you dont have to explicitly set TargetCompId/SenderCompId for each message, engine will do it for you.
Do not place logic into callbacks(like you did with market data subscription in onLogon). Better create additional thread which will consume events from you listener, make decisions and take an action.
Is anyone using Castle MonoRail and ELMAH with success?
We are using a number of Resuces to present users with friendly error messages, but if we do this the exceptions never get as far as ELMAH as the MonoRail rescue intercepts them.
Ideally we want the user to see the rescue, but for the exception to be logged in ELMAH.
Any ideas/pointers?
Cheers,
Jay.
After looking at the links Macka posted, I wrote this simple monorail exception handler:
public class ElmahExceptionHandler : AbstractExceptionHandler {
public override void Process(IRailsEngineContext context) {
ErrorSignal.FromCurrentContext().Raise(context.LastException);
}
}
Then I registered it in web.config, monorail section:
<monorail>
<extensions>
<extension type="Castle.MonoRail.Framework.Extensions.ExceptionChaining.ExceptionChainingExtension, Castle.MonoRail.Framework"/>
</extensions>
<exception>
<exceptionHandler type="MyNamespace.ElmahExceptionHandler, MyAssembly"/>
</exception>
...
</monorail>
And that's it.
After also posting on Google Groups it looks like Atif may have pointed me in the right direction.
You might want to look into error
signaling in ELMAH. It is designed for
scenarios where you want to pass an
exception through ELMAH's pipeline
even if it is being handled/swallowed.
Here are some pointers to get started
with error signaling:
http://code.google.com/p/elmah/wiki/DotNetSlackersArticle#Error_Signa...
http://code.google.com/p/elmah/wiki/DotNetSlackersArticle#Signaling_e...
-Atif