Odoo - PosBox Less Printer Disconnect - raspberry-pi

I have installed to develop the Odoo Point of Sale. I have in the same raspberry the Odoo Point Of Sale and the Posbox Less(to manage printer).
At moment the Odoo Point Of Sale is running fine and the Posbox Less too. I can see in http://IP:8069/hw_proxy/status the printer
The problem is to print tickerts from Odoo Point Of Sale. It's display an icon to LAN disconnect and the printer isn't print.
In the official documentation doesn't talk about any configuration file or whatever:
https://www.odoo.com/documentation/user/10.0/point_of_sale/overview/setup.html#id2
I am a bit confused and I would appreciate help with this topic.
Thanks!

Related

Unusual email sent in Moodle (reports/insights)

I have Moodle server configured to password reset using a Gmail account. Recently I had to migrate all the Moodle websites to a new CentOS 7 server (The Postfix was active with default configurations). Suddenly all the teachers were received thousands of emails subjected "Students at risk in 'Course Name'" with the body,
>Hi "Teacher name",
>A number of students in "Course Name" have never accessed the course.
>
>View insight (this is a link to 'https://my.moodle.url/report/insights/insights.php?modelid=4&contextid=14517')
One Teacher informed me this is happened due to Insights module and he deactivated the same module. I also deactivated the Postfix. Then everything was fine for about a week.
Today from another Moodle website in the same server has sent an email to another teacher subjected 'Upcoming courses have no teachers or students' and the body,
Hi 'Teacher name',
Courses with start dates in the next week have been
identified as having no teacher or student enrolments.
View insight (Linked to
https://my.moodle.url/report/insights/insights.php?modelid=2&contextid=1)
Reading this in an email? Download the mobile app and receive
notifications on your mobile device. (Linked to
'https://download.moodle.org/mobile?version=2019111803.02&lang=en&iosappid=633359593&androidappid=com.moodle.moodlemobile')
Please kindly support me to solve this issue. Is my server/ Moodle websites hacked?
Server configurations:
CentOS 7 (Linux my.host.name 3.10.0-1127.8.2.el7.x86_64 #1 SMP Tue
May 12 16:57:42 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux)
Nginx 1.16.1
php 7.2.31
Moodle 3.8
Thank you,
This is due to a setting that must be still activated in Moodle adminitration. You can search for the key-word enableanalytics and turn this setting off.
The server may not send any of those emails after that.
The documentation of this tool can be found here : https://docs.moodle.org/38/en/Analytics_settings

Is it possible to host a Realm-Database on my own for free?

We are doing a project which include that we have a PC-Application and an App on a Android Tablet.
The PC should be able to change/create data and the tablet should be able to receive it. We decided to use Realm as a database, or we would like to do this, however: we are students and do not have the financials to buy a Realm Cloud to host this, however, we do have a server where we could self host this.
We think that the self-host of Realm was discarded in 2018, we arn't a 100% sure however, and would be very thankful if anyone could take their time to explain.
Thank you in advance.
You can run the server on your own however you can't do it for free anymore. Here is the documentation for running your own realm server:
https://docs.realm.io/server/manage
Also, there is a student/long term development license for their realm cloud that is only $10 a month. It's not too much but I do understand trying to find a free version.
The self-hosting ability of a Realm-Database was taken away, 2018.
Now you are only able to host your database of their cloud services.

When and how should DAPI and SAPI be used?

I`m totally new to Bloomberg and using Bloomberg api in python/flask
I tried to read all the documentation provided by the windows SDK
I understand that DAPI is only for local applications using localhost and default port
but actually I am confused about the usage of SAPI Installation and usage...
First:
after installing sapi on machine with bloomberg terminal and letting the sapi process up , I will write an application by python code that import blbapi and use the sapi
should this application be on the same machine , or it can be on another machine and give it the ip and port of the sapi process and should the other machine have bloomberg terminal too?
second:
what about the client side, any browser which open this application should the clients have bloomberg terminal too??
Excuse my naive question ..
Thanx in advance
Python application machine doesn't have to have a Bloomberg terminal installed. You will only need Bloomberg libraries installed (but not terminal) software.
You need to provide "ip of terminal pc" + "uuid" when making a connection to SAPI.
Also, the user/terminal must be logged in.
Check and be very careful with licensing. You can try asking your account manager.
Don't take this as licensing advice, but different exchanges and data sources can have different rules around the data so it depends what data you pulling. As I understand the data pulled by a user/script is for that specific terminal owner only.
Different terminal "owners" with the same access might not be allowed to see the data pulled by other scripts/users.
SAPI allows you to use BBG data off the machine where the user is logged in HOWEVER this data can not be viewed by anyone but the logged in user - for legal reasons rather than technical ones.
The typical use case for SAPI is there complicated calculatios (be it exotic pricing or realtime portfolio risk) is being performed that aren't practical on the desktop.
Be aware that all BBG data and calculations are tied to the user, the data can't be given to anyone else...

relation between simulator SUMO and Matlab via Traci4Matlab

I am new sumo user.
I am trying to tutorials (inter_palmas) for SUMO 0.26 in Windows (7 32 bit) and Traci4matlab (2015).
The status message shows in SUMO: Loading configuration..done , Starting server on port 8813 and doesn't proceed.
Even though I work for a week, I could not find a solution.
Thanks,
I noticed that in the recent traci4matlab source code they have changed the default port from 8813 to 8873. I changed my port in the .sumocfg file and now it works as intended.

iPhone Simulator - Simulate a slow connection?

Is there a way to slow down the internet connection to the iPhone Simulator, so as to mimic how the App might react when you are in a slow spot on the cellular network?
How to install Apple’s Network Link Conditioner
These instructions current as of October 2019.
Warning: If you just upgraded to new version of macOS, make sure you install the very latest Network Conditioner (in Additional Tools for Xcode) or it may silently fail; that is, you will turn it on but it won’t throttle anything or drop any packets.
Update: As of Xcode 11, there may be an even simpler way to simulate network conditions on tethered devices; see this blog post. For how to affect simulated devices, continue below, as before.
Install Xcode if you don’t have it.
Open Xcode and go to Xcode › Open Developer Tool › More Developer Tools…
Download Additional Tools for Xcode (matching your current Xcode version)
Open the downloaded disk image and double-click the Network Link Conditioner .prefpane under “Hardware” to install it.
There we go!
Be sure to turn it on. You need to select a profile and enable the network conditioner.
Caveat
This won't affect localhost, so be sure to use a staging server or co-worker's computer to simulate slow network connections to an API you’re running yourself. You may find https://ngrok.com/ helpful in this regard.
"There's an app for that!" ;) Apple provides "Network Link Conditioner" preference pane that does the job quite well.
for Xcode versions prior to 4.3, the pane installer can be found in your Developer folder, e.g. "/Developer/Applications/Utilities/Network Link Conditioner", after installation, if daemon fails to start and you don't want to reboot your machine, just use sudo launchctl load /system/library/launchdaemons/com.apple.networklinkconditioner.plist
if you are already done with Developer folder, you can install the pane as a part of "Hardware IO Tools for Xcode" package available via Mac Dev Center additional downloads section.
Link to download page (you must log in with your Apple ID): https://developer.apple.com/downloads/index.action
(credits to #nverinaud)
An app called SpeedLimit
https://github.com/mschrag/speedlimit
Works great.
chris.
It also worth mentioning that Xcode also has a built in way for devices, not simulator.
Just go 'Devices and Simulator' (cmmd+shift+2)
Select your device
Scroll down til you find 'Device Conditions'
Set your desired profile
Hit Start
To have this working you need to install 'Network Link Conditioner' on your Mac. See steps mention in Alan's answer
I would argue that a slow connection isn't enough to simulate real-work mobile data network behaviour - since there is also much more packet loss, higher latencies and more dropped connections too.
Here is a handy script I found to configure the firewall to emulate these parameters:
http://pmilosev-notes.blogspot.com/2011/02/ios-simulator-testing-over-different.html
#!/bin/sh
if [ "$#" -ne "3" ]
then
echo "Usage:\n$0 <bandwidth in kpbs> <delay in ms> <packet loss ratio>";
exit 1
fi
BW=$1
DELAY=$2
PLR=$3
sudo ipfw pipe 1 config bw ${BW}Kbit/s delay $DELAY plr $PLR
sudo ipfw add 1 pipe 1 all from me to not me
sudo ipfw add 2 pipe 1 all from not me to me
echo "RETURN to stop connection noise"
read
sudo ipfw delete 1
sudo ipfw delete 2
exit 0
Some suggested values you can use:
Scenario
Bw (Kbit)
delay (ms)
pr (ratio)
2.5G mobile
(GPRS)
50
200
3G mobile
1000
200
0.2
VSAT
5000
500
0.2
Busy LAN on VSAT
300
500
0.4
There isn't a direct way to emulate a slow connection, unlike, say, the nice network connection emulator that blackberry developers enjoy. However, since your simulator's connection goes through your computer - you can simply focus on slowing down your computer's connection.
You'll want to achieve two things (depending upon your circumstances):
throttle your bandwidth
increase your latency
Maybe this will point you in right direction:
http://www.macosxhints.com/article.php?story=20080119112509736
There are some good open source solutions, too, but I so can't remember their names.
This question might help: How to throttle network traffic for environment simulation?
You can do it in really device through Xcode(14) settings
Debug -> Induce Device conditions -> Network Link -> select the Network you want