sdn - mininet openflow tutorial - sdn

I am new to mininet and trying to follow the tutorial on mininet/openflow https://github.com/mininet/openflow-tutorial/wiki/Learn-Development-Tools
I have a problem with the Wireshark. Here in the tutorial it is said that:
open Wireshark:
> $ sudo wireshark
Now, set up a filter for OpenFlow control traffic, by typing 'of' in
Filter box near the top:
Press the apply button to apply the filter to all recorded traffic.
I did this, but I encounter this error:
"of" isn't a valid display filter: "of" is neither a field nor a protocol name.
What's wrong?

If you want to filter out openflow packets just type openflow instead of or you can generate expression by choosing from the window that gets popped up when you click on expression button

Related

Ho to fix odoo report missing PDF Layout?

I have customized the layout of sales order template ( added footer and header, formatted content etc. ). For this i created a new module and installed it. When i use this module locally (mac os), i am receiving the sales order document as pdf in the way i set it up. When using this module on a server and all changes do not apply at all. I can see that the module is installed, loaded and also if i switch the PDF-Report to HTML i can see that the Layout is set.
There are no 404 Errors in Logfile, so i am somehow stuck
As far as i understood the PDF File is a rendered HTML-File, therefore i am obviously missing some information here.
So my question is, where can i check what layout is used to generate the PDF-File?
Thanks for any help on that!
After finally finding something via more searches i found the solition which i want to share:
It is important to understand that if odoo is running public on any other port than 8069 ( portforwarding etc. ) this issue will always occur.
Generating the pdf will try to find needed assets on the public port which will not lead where needed.
The Solution is so easy but somehow i wasnt able to find it easily:
All you need to do is to set a proper url for report generation.
Goto -> Settings -> Parameters -> System Parameters
and add:
key: report.url
value: http://localhost:8069
localhost is here the correct domain, do not change this, so the machine will call the report url on itself.
Can you check your report layout in Settings ->Technical Settings ->Actions->Reports then search for your report and check qweb views
I also faced the same problem, struggled for a long period. After reading #patrick.tresp explanation I understood the reason.
For my case, I made made the odoo port (8069) as the default port, which made the base url as the localhost (domain.com) without the port number. However report url is not detecting the port, hence the problem occurs.
When I explicitly defined the report url, the problem get sorted.
i.e., Goto
Settings -> Parameters -> System Parameters
and add:
key: report.url
value: http://domain.ext:8069

Set "Notes" in Device Info via MQTT on Cumulocity

While registring a new Machine with static templates via MQTT I couldn't find a way to put something into the "Notes" Field at Device Profile in the Device Info.
Is there a template or another way to put some additional Information in that Textbox?
There is no static template for setting the notes but you can create your own inventory PUT template. The fragment for this text box is simply c8y_Notes which is a string.
To use the template you would send:
123,<serialOfDevice>,"My device notes"
I recommend to use quotes for longer strings to handle line breaks etc. correctly.

Send WhatsApp messages automatically with Automate-App

I want to send a WhatsApp message to a specific contact with the Automate-app. How can do I do this?
This is the link to the app:
https://play.google.com/store/apps/details?id=com.llamalab.automate
I know this is pretty late reply.
You can make use of below blocks and build
App start block and choose activity class as
com.whatsapp.ContactPicker
Use Interact blocks for searching, selecting and messaging
Extend with Variable for searching contact and for message text
I have been trying different ways but many of them fall short of full automation.
currently, I am using blocks to send a message to (unsaved) contact. This skips the contactPicker window.
the flow blocks:
[start flow] --> [view content] --> [interact]
that's it!
in view content, you will need to specify the content uri (change number and msg):
https://api.whatsapp.com/send?phone=+966xxxxxxxxx&text=msg
in interact block, specify the (proceed) when element appeared.
the (action) is click.
and (XPATH):
fn:reverse((.//[{("android.widget.ImageButton") = null ? "true()" : "fn:choose(#class,string(#class),name())={"android.widget.ImageButton";xpathEncode}"} and {("com.whatsapp:id/send") = null ? "true()" : "#android:id={"#" ++ ("com.whatsapp:id/send");xpathEncode}"}])[1]/ancestor-or-self::)
that's it.

Xcode 7 (iOS 9) Communications error: <OS_xpc_error: <error: 0x10a1abb40>

Can any one help me to figure out the following error I get when I run my application?
Communications error: <OS_xpc_error: <error: 0x10a1abb40> { count = 1,
contents = "XPCErrorDescription" => <string: 0x10a1abef0> { length =
22, contents = "Connection interrupted" } }>
If you are running your app in iOS simulator it uses XPC Services API for interprocess communication and any breakpoint or other interruptions can cause such an error.
You can refer to this Apple Doc
In the section Handling Errors
Interruption handler—called when the process on the other end of the connection has crashed or has otherwise closed its connection.
The debugging of app on device should not have such problems.
I had the same problem when running my app and keyboard extension (I'm building a custom keyboard). Since you do not provide enough information we don't know when this happens to you exactly.. so I'll leave this here in case you are working in an extension too, if not.. hope this will be useful to someone else.
Open the info.plist from your Keyboard Target.
Set Value "Yes" for key "RequestsOpenAccess"
Run your App on device
Go To Settings, General, Keyboard, Keyboards
Select your keyboard
Change "Allow Full Access" to True.
Please pay attention how often you are accessing to the Database.
I also have the same problem. I am working with chat using Firebase. So in my case I made a mistake when I too often get/put data from/into DB.

ghcjs-dom-hello world does not respond to mouse clicks - ghc 7.10.1

I suppose this example should respond to mouse clicks: https://github.com/ghcjs/ghcjs-dom-hello , right ? But when I try it with GHC 7.10.1 under Firefox and Chrome nothing happens when I click on the page.
Any ideas ? I haven't tried it with GHC 7.8.4 yet. But I will.
One thing it could be is that ghcjs-dom-hello currently uses onclick on the body of the document. Not all of the window will be clickable. Try clicking on the Hello World text.
The new version of ghcjs-dom in github (currently requires the imporved-base version of ghcjs) includes document events (I left them out of the old version by mistake). I'll update ghcjs-dom-hello to use them once improved-base is merged into master and the updated ghcjs-dom is in hackage.