text:
SIM card not detected

My XZ3 was working fine with SIM  card in, the last time I wanted to use an SD card to restore a modified backup tar from XA2 to XZ3. The modified backup tar had only Notes and Calendar contents.
It seemed to work fine, but later I noticed no sim card was detected, I run few reboots swapping sim cards, the XZ3 seems to ignore them. I've recreated /var/lib/ofono and compare it with my XA2, they are almost identical.
[root@Sailfish lib]# journalctl -u ofono
-- Logs begin at Thu 2020-01-09 14:03:22 GMT, end at Thu 2020-01-09 14:07:50 GMT. --
Jan 09 14:05:37 Sailfish systemd[1]: Stopping Telephony service...
Jan 09 14:05:37 Sailfish ofonod[25865]: Terminating
Jan 09 14:05:37 Sailfish ofonod[25865]: SMS History Remove for modem: 0x77ac30
Jan 09 14:05:37 Sailfish ofonod[25865]: Exit
Jan 09 14:05:37 Sailfish systemd[1]: Stopped Telephony service.
Jan 09 14:07:32 Sailfish systemd[1]: Starting Telephony service...
Jan 09 14:07:32 Sailfish ofonod[31970]: oFono version 1.22
Jan 09 14:07:32 Sailfish systemd[1]: Started Telephony service.
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding udev hardware detection
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Novatel modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Sierra modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding ZTE modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Icera modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Huawei modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Calypso modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding MBM modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Telit modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding HSO modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Infineon modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding STE modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Dialup modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Hands-Free Profile Driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding SpeedUp modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Phone Simulator driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding CDMA AT modem driver
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding External Hands-Free Profile Plugin
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding Dial-up Networking Profile Plugins
Jan 09 14:07:32 Sailfish ofonod[31970]: Excluding CDMA provisioning Plugin
Jan 09 14:07:32 Sailfish ofonod[31970]: Initializing RIL binder transport plugin.
Jan 09 14:07:32 Sailfish ofonod[31970]: Register Profile interface failed: /bluetooth/profile/hfp_ag
Jan 09 14:07:32 Sailfish ofonod[31970]: [gbinder-radio] Connected to android.hardware.radio@1.0::IRadio/slot1
Jan 09 14:07:32 Sailfish ofonod[31970]: slot1 version 100
Jan 09 14:07:32 Sailfish ofonod[31970]: SIM card OK
Jan 09 14:07:32 Sailfish ofonod[31970]: Requested file structure differs from SIM: 6fb7
Jan 09 14:07:32 Sailfish ofonod[31970]: SMS History Probe for modem: 0x4e66c8
Jan 09 14:07:32 Sailfish ofonod[31970]: Registered interface org.ofono.NetworkTime, path /ril_0
Jan 09 14:07:32 Sailfish ofonod[31970]: nw select automatic
Jan 09 14:07:32 Sailfish ofonod[31970]: data reg changed 0 -> 2 (searching), attached 0

and
[root@Sailfish lib]# systemctl status ofono.service
● ofono.service - Telephony service
   Loaded: loaded (/lib/systemd/system/ofono.service; disabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-01-09 14:07:32 GMT; 24min ago
 Main PID: 31970 (ofonod)
   CGroup: /system.slice/ofono.service
           └─31970 /usr/sbin/ofonod -n --nobacktrace --noplugin=,he910,dun_gw_bluez5,hfp_bluez5,cdma_provision,isimodem,n900,u8500,qmimod...

Jan 09 14:19:41 Sailfish ofonod[31970]:   Password: ''
Jan 09 14:19:41 Sailfish ofonod[31970]: Name: 'Giffgaff MMS'
Jan 09 14:19:41 Sailfish ofonod[31970]:   APN: 'giffgaff.com'
Jan 09 14:19:41 Sailfish ofonod[31970]:   Type: OFONO_GPRS_CONTEXT_TYPE_MMS
Jan 09 14:19:41 Sailfish ofonod[31970]:   Username: 'giffgaff'
Jan 09 14:19:41 Sailfish ofonod[31970]:   Password: ''
Jan 09 14:23:48 Sailfish ofonod[31970]: Requested file structure differs from SIM: 6fb7
Jan 09 14:24:48 Sailfish ofonod[31970]: registration failed, ril result 2
Jan 09 14:24:48 Sailfish ofonod[31970]: Unable to read mailbox identifies from SIM
Jan 09 14:24:49 Sailfish ofonod[31970]: export_entries_one_storage_cb with ME failed

I am now running out of options, I will try sfos reset, and possibly reflash android?

I am blank on it. No idea what does the backup restore do. I would assume that its mainly about /home/nemo and shouldn't touch the rest. Personally, I am using rsync for these tasks.
If you are willing to reflash, that would give an indication of what's wrong. If reflash of SFOS will not be sufficient, then we will have to test Android as well to make sure its not hardware issue.

I doubt restore did that, anyway, it seems I have to do a re-flash. Is there any procedure, or any logs that can be collected?

This once or twice happened for me too. But for some reason turning off the wifi made the sim/phone functionality recover. (I know it sounds wonky)

I have seen it with 1+X SFOS port and might have had it in the beginning of the port as well, but not as bad as described here.
Re logs: let's switch off wifi (@ljo suggestion), boot into SFOS and see if the card appears. If not, shutdown or reboot. After reboot, you will have set of logs at /root/shutdown that would be good to keep. Get them off device (ssh wifi?) and see if there is something strange in logcat. If nothing jumps out, we should probably reflash.
Don't paste full logs here  as you may disclose your IMEI or some private data. If needed its better to send them by email.

I tried all that for nth time, not working. I've also took logs from /root. The system can read SIM card /var/lib/ofono correctly, in comparison to XA2 those contents are almost identical.
CSD tool shows SIM card PASS

Just to be sure: if you put that SIM card into another phone, all works. And you have tested it after the issue started?
As we had, by chance, one of the operators having problems with the service...

yes, I tested that before started the issue, I've also tested another sim (data only) and it does not work.

So, CSD passed SIM card test. Does it show whether its present? If present, does it show card identifier?

yes it shows card identifier, subscriber numbers: N/A

I can try to ask around tomorrow evening or Saturday - then I will have to get logs by email - or you could try to flash SFOS, and if it fails, AOSP to proceed faster. Its late over here ...

thanks for your help, I can reset/flash the phone at any time, if you think it's worth investigating the problem more I can wait and send you the logs, just let me know. thanks again.

Maybe we should flash to be sure its not hardware/firmware issue. So, try to

flash SFOS again
if SFOS doesn't work, flash AOSP9
if AOSP9 doesn't work, flash stock Android 9 (not 10). You can use Newflasher for it from Linux or Sony's tool

Let me know how it goes. Keep the used backup file in case if we need to test whether we can reproduce the issue.

In addition, make screenshot from CSD with SIM test - for the record. In case if we need it.

OK i will try later today, what is the used backup file? Or how to get it?

Let me know how it goes. Keep the used backup file in case if we need to test whether we can reproduce the issue

The one you used to restore Calendar, as in the original message

it started working again this morning, i.e. i will avoid re-flashing or even worse some h/w damage, phew!
After turning on/off, swapping sim cards, restarting ofono.service, switched to "Preferred 3G" since yesterday afternoon,  i removed the sim card and switched off the phone last night. This morning I put back the sim card and turned on the phone, after booting still no cellular connection shown, not impressed. 5min later I turned the screen on and a full 3G signal bar was shown, automagically.
I still do not know what caused the problem but I will close this issue here. I still have boot and shutdown logs if anyone is interested, thanks for your support.

it seems that I closed the issue a bit early, cellular connection has automagically disappeared again, the phone was on all time, no reboot or sim card swapping.

That is all strange. Reopening.

we might have to rename the issue to cellular connection dropped, there are many similar references in TJC. The sim card is detected and read correctly, so it might be the old SF connectivity issue?
There is a harbour ofono logger app that collects logs for telephony troubleshooting which can be sent directly to Jolla, but I doubt if they are interested much for an unofficial device. Re-flashing SFOS might still be an option.

Could be that issue. What I have seen is #35 , frequency maybe once a week. But its not full blown disconnect - I can probably still call. And has a simple cure - press mobile network icon twice to disable/reenable. Your case seems to way more problematic.
Maybe will need to reflash if you cannot restore it.

I think we should close this issue, as sim card detection and cellular network connections are not the same, besides the actual problem is cellular network connection dropouts.
For sim card detection the test is simple, csd tool sim test pass.

Agreed. Closing, open another one or use #35 if appropriate

authors: ljo pagism rinigus

repo: sailfishos-sony-tama/main


text:
Restructure and add information about I18n

Restructures the sections on Internationalisation to distinguish more clearly between Platform and Application configurations. Adds additional information (largely taken from our internal wiki) on best practice for how to handle internationalisation on Sailfish OS.

Rebased; normalised use of .spec and .yaml.

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
Background location updates are not triggered

Steps to reproduce:

Set an anchorage
Put the app in the background
Exit the anchorage region
Note that alarm does not sound
Open App and see alarm triggered

Likely cause:
Currently all the location update monitoring happens in the ViewController, but I think to handle it properly, it must be initialized and handled in the AppDelegate for background handling to work:
https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/handling_location_events_in_the_background

I think dc9cc006675046b4d1e2cc3cef1fc685be163fac will fix this for now.

source: gharchive/issue

repo: sailplan/anchor-watch


text:
Sliding window related problem (leetcode hard)

[Here](https://leetcode.com/problems/find-substring-with-given-hash-value/)
Please assign me the task with hacktoberfest tagline

@sainik-khaddar have a look at my pr

Hi @sainik-khaddar can you please assign the issue to me? I want to code it in C++.
Thank You.

Please assign me this task.

repo: sainik-khaddar/MY-LEETCODE-SOLUTIONS


text:
[GSSOC' 21] [ENHANCEMENT] Improving dark mode

Proposal
I would like to enhance the modes of the site i.e improving light and dark mode, below are some pictures for reference:
Light Mode:

Dark Mode:

Transitions between modes:
https://user-images.githubusercontent.com/32588231/115418830-6eb16880-a217-11eb-9e52-e3c321ee9470.mp4
@sairish2001 I would like to work on this issue please assig me this issue, thank you!

Go ahead
Deadline 25 April,2021 11:59 PM IST

Try to change color of light mode

@sairish2001 sir could you please tell me what type of color u want me to use in light mode, as many colors are creating conflicts with the heading color


text:
Make exe file location configurable

At my company, we're using AppLocker to lock down the executables people can run on their Windows machines. There are just some limited paths where I'm allowed to run things. The user profile folder isn't one of those locations unfortunately.
Would it be possible to make the location for executables on the windows host system configurable?

Another thing: If that could be added, could it also be backported to 2.x? I can't use 3.x because McAfee considers wsl-gvproxy.exe to be a trojan.

In v0.3.x, you can copy wsl-gvproxy.exe to another location in the Windows side, then set GVPROXY_PATH to that path in the config file at youruserprofiledir/wsl-vpnkit/wsl-vpnkit.conf.
In v0.2.x, you can set VPNKIT_PATH in the config file.

Thank you!
I'm going to expand a little on your comment, so others like me - let's say less-than-enlightened people ;) - might not fall into the same traps I did along the way.
I had to set VPNKIT_PATH and NPIPERELAY_PATH for version 0.2.5. The paths are evaluated inside WSL, so they must be WSL paths, not Windows paths.
Example $USERPROFILE\wsl-vpnkit\wsl-vpnkit.conf:
VPNKIT_PATH=/mnt/C/wsl-vpnkit/vpnkit.exe
NIPERELAY_PATH=/mnt/C/wsl-vpnkit/npiperelay.exe


text:
bullets appear in confirmation save messages and in popover messages

Confirmed!

Bullets still seem to be appearing in a couple of confirmation messages (namely, those in Settings and Permissions).
Settings:

Permissions:

Confirmed.

repo: sakaiproject/sakai


text:
npm onoff

Magicmirror start correctly, i have the red square but the buton on GPIO 4 do nothing.
Commande "gpio read 4" report 1 or 0 when i press it.
I try to launch "npm start dev" to debug, i have an error.
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'onoff'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-alexa/node_helper.js:15:28)
    at Socket.<anonymous> (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:98:10)
    at emitTwo (events.js:106:13)
    at Socket.emit (events.js:191:7)
    at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:503:12 code: 'MODULE_NOT_FOUND' }

I try to install all dependancy "onoff" with the command "npm install" but after, i had this error
Error: The module '/home/pi/MagicMirror/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or`npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at bindings (/home/pi/MagicMirror/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/pi/MagicMirror/node_modules/epoll/epoll.js:1:192)

I try npm rebuild or npm install but nothing work. Have you got an idea ?

@bbreton09 did you find any solution? if not there were bunch of commands that I was using, I can try to find it

repo: sakirtemel/MMM-alexa

license: mit

license_source: bigquery


text:
AoT compilation fails because of CookieOptions

When I try to compile an angular 2 application with CookieService using the AoT compiler, it doesn't compile because of the following error:
..../app.module.ngfactory.ts(436,82): error TS2346: Supplied parameters do not match any signature of call target.

When I take a look at that line, it looks like this:
if ((this.__CookieService_54 == (null as any))) { (this.__CookieService_54 = new import36.CookieService(); }

According to IntelliSense, the CookieService takes one required argument named defaultOptions, but it isn't provided by the compiled code. In my NgModule, I provide CookieService like this:
@NgModule({
    imports: [
        BrowserModule,
        SharedModule,
        FormsModule,
        routing
    ],
    declarations: [
        AppComponent,
        ...frameworkComponents,
        ...viewComponents,
        LoginComponent],
    providers: [
        appRoutingProviders,
        CookieService
    ],
    bootstrap: [AppComponent]
})

Thank you for the detailed report, I will inspect this as soon as possible.

Solved by #20

authors: DirkWillem salemdar


text:
Bug: Not able to assign Product from  Collection Modification page.

What are you trying to achieve?
From Collection Modification page, unable to assign the collection to a product which is not having any variant.
Steps to reproduce the problem

Open Saleor GraphQL Playground or POSTMAN. Use TokenCreate API to get Token.
Use the token generated to call CreateProduct API.
Create a new product (eg; "New Product") without variant.
Use the token generated to call CreateCollection API.
Create a new collection (eg; "New Collection").
Try to assign the previously created Product to the Collection using CollectionAssignProduct API.
We will get error "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT".

What did you expect to happen?
We should be able to assign Collection to a Product without Variant.
Logs
Please find below CollectionAssignProduct mutation, input and response,
mutation CollectionAssignProduct($collectionId: ID!, $productIds: [ID!]!, $first: Int, $after: String, $last: Int, $before: String) {
collectionAddProducts(collectionId: $collectionId, products: $productIds) {
collection {
id
products(first: $first, after: $after, before: $before, last: $last) {
edges {
node {
...CollectionProduct
__typename
}
__typename
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
__typename
}
__typename
}
__typename
}
errors {
...CollectionError
__typename
}
__typename
}
}
fragment CollectionProduct on Product {
id
name
productType {
id
name
__typename
}
thumbnail {
url
__typename
}
channelListings {
...ChannelListingProductWithoutPricing
__typename
}
__typename
}
fragment ChannelListingProductWithoutPricing on ProductChannelListing {
isPublished
publicationDate
isAvailableForPurchase
availableForPurchase
visibleInListings
channel {
id
name
currencyCode
__typename
}
__typename
}
fragment CollectionError on CollectionError {
code
field
message
__typename
}
{
"first": 20,
"collectionId": "Q29sbGVjdGlvbjox",
"productIds": [
"UHJvZHVjdDoxMw=="
]
}
Response of mutation,
{
"data": {
"collectionAddProducts": {
"collection": null,
"errors": [
{
"code": "CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT",
"field": "products",
"message": "Cannot manage products without variants.",
"__typename": "CollectionError"
}
],
"__typename": "CollectionAddProducts"
}
},
"extensions": {
"cost": {
"requestedQueryCost": 100,
"maximumAvailable": 50000
}
}
}
Environment
Saleor version: 3.18.10
OS and version: Ubuntu 22.04.3 LTS

Hi Team, please let me know if any further details are required regarding this issue or to recreate the issue.

Hi @jyo-this,
This is expected behavior. You cannot update the product without any variant.

authors: IKarbowiak jyo-this jyothis-moz

repo: saleor/saleor


text:
migration failed due to importError

Hi,
I am trying to install saleor on my local machine. I followed the instructions carefully here http://saleor.readthedocs.io/en/latest/installation.html#installation. I even have a virtual environment as recommended by the Docs.
However, I cannot seem to have it up and running. I am using python 2.7, Django 1.10, pip 9.0.1. The first time I ran a migration, I go this error
ImportError: No module named dj_database_url. I proceeded to install it and other several modules that appeared as an import error when I tried to migrate but could not. I finally reached this module
dj_cache_url but I get this error when i try to install it via pip
Could not find a version that satisfies the requirement dj_cache_url (from versions: )
No matching distribution found for dj_cache_url
Now I cannot pass the migration stage because this module has an issue. What could be the problem?

Hi,
@HawiCaesar did you ran pip install -r requirements.txt? It looks like you missed this step and you don't have correct requirements installed.

@artursmet I did run it.
There were several issues like so
"
Failed building wheel for cryptography
...
Failed building wheel for psycopg2
....
Failed building wheel for uwsgi
...
"
and the compilation terminated
compilation terminated.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Have I missed an instruction or critical step with my own install of django?

Could you share some details about your platform? Which OS are you using?
You can also try with pip install -r requirements.txt --no-binary wheel

It looks like your machine is lacking the necessary compiler tools. Can you try to install them and give us the name of the distribution and the package names so that I can put them in the docs?

sorted it out. cache_url package
However, I get this error
ImportError: No module named storages

@HawiCaesar It's because of failed requirements installation, so not all packages were installed correctly.
Depending on your operating system, you'll have to install additional tools, like development headers for the postgresql client, development headers for cryptography libs.
It really depends on your operating system, if you paste whole log from pip installation, we will be able to help you.

@HawiCaesar please provide your operating system/Linux distribution name.

Thank @artursmet I got it working.
I dont where to post this here but I get a session cache warning.
WARNINGS:
saleor.W001: Session caching cannot work with locmem backend
HINT: User sessions need to be globally shared, use a cache server like Redis.
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/core/management/init.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 83, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/migrations/executor.py", line 20, in init
self.loader = MigrationLoader(self.connection)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 52, in init
self.build_graph()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/migrations/loader.py", line 203, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", line 52, in ensure_schema
if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 204, in _cursor
self.ensure_connection()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 171, in connect
self.connection = self.get_new_connection(conn_params)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
connection = Database.connect(**conn_params)
File "/home/hawi/Downloads/saleor/local/lib/python2.7/site-packages/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  password authentication failed for user "saleor"
FATAL:  password authentication failed for user "saleor"
Must I use a cache server on my local machine?

@HawiCaesar On your local machine no - this is only warning to remind you to enable global cache, when you're deploying the store somewhere else.
Do you use docker for the deployment or do you have a local potgresql server on your machine?
With docker, the default credentials should work fine, but when you use a separated database server, you have to create on your own.

Hi, I ran into this error while trying to get saleor running on DigitalOcean. I followed the installation instructions along with pip install -r requirements.txt
I also installed postgres. When I tried to migrate "python manage.py migrate" I get this error. Perhaps I have to create a saleor user as well as a database on postgres?
I am using a ubuntu 14.04 droplet on DO.
Thanks!

Hey, been having issues at nearly every step of the way unfortunately whilst trying to get saleor up and running... I'm following the official saleor documentation and I'm on the 5th python manage.py migrate step and have encountered the following error:
$ python manage.py migrate
System check identified some issues:

WARNINGS:
saleor.W001: Session caching cannot work with locmem backend
        HINT: User sessions need to be globally shared, use a cache server like Redis.
Traceback (most recent call last):
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 199, in ensure_connection
    self.connect()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 171, in connect
    self.connection = self.get_new_connection(conn_params)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\postgresql\base.py", line 176, in get_new_connection
    connection = Database.connect(**conn_params)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\psycopg2\__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL:  password authentication failed for user "saleor"

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\core\management\__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\core\management\__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\core\management\base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\core\management\base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\core\management\commands\migrate.py", line 83, in handle
    executor = MigrationExecutor(connection, self.migration_progress_callback)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\migrations\executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\migrations\loader.py", line 52, in __init__
    self.build_graph()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\migrations\loader.py", line 203, in build_graph
    self.applied_migrations = recorder.applied_migrations()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\migrations\recorder.py", line 65, in applied_migrations
    self.ensure_schema()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\migrations\recorder.py", line 52, in ensure_schema
    if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 231, in cursor
    cursor = self.make_debug_cursor(self._cursor())
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 204, in _cursor
    self.ensure_connection()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 199, in ensure_connection
    self.connect()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\utils\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 199, in ensure_connection
    self.connect()
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\base\base.py", line 171, in connect
    self.connection = self.get_new_connection(conn_params)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\django\db\backends\postgresql\base.py", line 176, in get_new_connection
    connection = Database.connect(**conn_params)
  File "C:\Cygwin\home\ddl_9\saleor\lib\site-packages\psycopg2\__init__.py", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  password authentication failed for user "saleor"

Any ideas on what's happening? Running Windows 10, Python 3.5 and Django 1.10
Thanks!!

The docs need to put more stress on proper database configuration. Saleor used to work with SQLite but now requires some extra work to be put in setting up PostgreSQL before using it.

This postgres configuration (in bash and postgres cli) works for me. Most likely it is not as secure as it could be.
`sudo su - postgres
psql
\password
CREATE DATABASE saleor;
CREATE USER saleor WITH PASSWORD 'saleor';
GRANT ALL PRIVILEGES ON DATABASE saleor TO saleor;
\q
psql -h localhost
ALTER USER saleor with password 'saleor';
\q
psql -d postgres
ALTER USER saleor WITH SUPERUSER;
\q
exit`

I am facing the same issue. I have checked both Redis and Django-Redis have been installed within the virtual environment. I think the issue is the following check in the settings file:
if os.environ.get('REDIS_URL'):
    CACHES['default'] = {
        'BACKEND': 'django_redis.cache.RedisCache',
        'LOCATION': os.environ.get('REDIS_URL')}

So the REDIS_URL environment variable is not set. Do we need to explicitly set this ?

@kaustubhrpatil @patrys Hi. Iam trying to setup saleor. I am using Windows 7, python 3.6 and django. I have installed Cygnix in my Windows Terminal as well. facing this issue.

(DjangoSaleor) C:\Users\125\Django_saleor_project\saleor>python manage.py migrat
e
System check identified some issues:

WARNINGS:
saleor.W001: Session caching cannot work with locmem backend
HINT: User sessions need to be globally shared, use a cache server like
Redis.
Traceback (most recent call last):
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 213, in ensure_connection
self.connect()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 189, in connect
self.connection = self.get_new_connection(conn_params)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\postgresql\base.py", line 176, in get_new_connection
connection = Database.connect(**conn_params)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\psycopg2_in
it_.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL:  password authentication failed for user "sale
or"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\core\m
anagement_init_.py", line 364, in execute_from_command_line
utility.execute()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\core\m
anagement_init_.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\core\m
anagement\base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\core\m
anagement\base.py", line 330, in execute
output = self.handle(*args, **options)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\core\m
anagement\commands\migrate.py", line 83, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\mig
rations\executor.py", line 20, in init
self.loader = MigrationLoader(self.connection)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\mig
rations\loader.py", line 52, in init
self.build_graph()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\mig
rations\loader.py", line 209, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\mig
rations\recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\mig
rations\recorder.py", line 52, in ensure_schema
if self.Migration._meta.db_table in self.connection.introspection.table_name
s(self.connection.cursor()):
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 254, in cursor
return self._cursor()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 229, in cursor
self.ensure_connection()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 213, in ensure_connection
self.connect()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\uti
ls.py", line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\utils
six.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 213, in ensure_connection
self.connect()
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\base\base.py", line 189, in connect
self.connection = self.get_new_connection(conn_params)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\django\db\bac
kends\postgresql\base.py", line 176, in get_new_connection
connection = Database.connect(**conn_params)
File "C:\Users\125\Anaconda3\envs\DjangoSaleor\lib\site-packages\psycopg2_in
it.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: FATAL:  password authentication failed for use
r "saleor"
If this is a problem related to assigning username and password for postgresql, can you please guide me to resolve this issue. Thanks.

Hey! This is not an error, but a warning. You can (should) totally ignore this error, as you are using a development environment.

can anyone help me connecting saleor to postgres on windows 7?

DATABASES = {
'default': dj_database_url.config(
default='postgres://saleor:saleor@localhost:5432/saleor',
conn_max_age=600)}
above is in my settings.py

Click on "PostgreSQL 10" (under "Servers (1)") and look if the port is 5432 on the right column.

Sure I check now.

NyanKiyoshi,
Thank you very much as it has port 5433 and now connecting.If something more I will catch you NyanKiyoshi.

Awesome! Version 10 of postgres seems to be defaulting to 5433 I noticed.

any idea for this errs?

You need to run this on a bash shell (you can get one simple to install here).
For more information, see #1860 and #2143.

can anyone help me with this?

Hi i am using windows 7 so where can i find bash shell?

Like said above: here

how can i add products from backend locally after installation?

@prabhatb2000np depends.

If you ran populatedb --createsuperuser, you can login as admin@example.com with admin as password;
If you did not ran with --createsuperuser, you can run manage.py createsuperuser (don't forget to set the SECRET_KEY before running this command).

here i am confused.when i click make payment can i get email with order info?how can i do that?

(Question was handled).

This postgres configuration (in bash and postgres cli) works for me. Most likely it is not as secure as it could be.
`sudo su - postgres
psql
\password
CREATE DATABASE saleor;
CREATE USER saleor WITH PASSWORD 'saleor';
GRANT ALL PRIVILEGES ON DATABASE saleor TO saleor;
\q
psql -h localhost
ALTER USER saleor with password 'saleor';
\q
psql -d postgres
ALTER USER saleor WITH SUPERUSER;
\q
exit`

I tried doing this but the user is being changed to postgres and there are no files in the directory as shown in the image. How to migrate after this?

Hi, you need to change your working directory to where Saleor is located/installed.

Hi, you need to change your working directory to where Saleor is located/installed.

Hey that worked!
Thanks a lot

During the migration I am getting this issue.

What if at the very begining, you don't use the username saleor, but myOwnUserName instead??

authors: DDiran HawiCaesar Namrata7199 NyanKiyoshi TeslaDevX amyth artursmet jiapei100 kaustubhrpatil malisaroj patrys prabhatb2000np


text:
Fix fetch checkout info resolver for checkout

port of  #13727
Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations

Docs

[ ] Link to documentation:

Pull Request Checklist

[ ] Privileged queries and mutations are either absent or guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migrations are either absent or optimized for zero downtime
[ ] The changes are covered by test cases

@jakubkuc We need to:

Move changes from PR https://github.com/saleor/saleor/pull/13759 to this one
Create a port for 3.15

authors: jakubkuc maarcingebala


text:
Switch to a more efficient means of building the dependency graph

We currently rely a lot on an aspect to derive the data we need for the dependency graph for each target in each package. It works, but it is really slow.
Ideas:

Switch to use Bazel query more (would it be faster?)
Provide an external command line tool to generate the dependency graph into a metafile. User could optionally provide that for import. This would enable just one team member in a repo to take the hit to run it and all coworkers would then have a fast import. (would want to have BEF keep it up to date from there on out)

Import was slow but manageable until #104. That PR required us to switch from package level dep info (ran the aspect once per package) to target level dep info (run the aspect per java target per package). For many packages this is now a 5-10x performance degradation as there tends to be a lot of java_test rules.
In #4 we successfully ordered the projects on import such that the classpath need only be computed once per project during import, but that didn't move the import performance needle that much because of this issue.

Though slow, it was working for us. But now its very intermittent.
Even with latest eclipse, and latest plugin this is what I can observe:

Sometimes the dialogue to select the project to import is shown after 4-5 mintures.
But sometimes even after 2-3 hours no window is shown. Eclipse CPU usage is > 100% .

A big issue with using aspects is that they are generated by a bazel build on each imported package. If the workspace state is dirty, import can be held up for a long time while the builds get run, especially if big assets like base Docker images need to be downloaded. Because the BEF command line is slightly different, I have found empirically that local disk cache results from non-BEF command line builds aren't used (not sure if this is always the case, but at least in some cases).

@plaird we should figure out how we can make the BEF cmdline args such that they are similar enough to not invalidate any cache.  If I have built on the cmdline and then I run BEF, the BEF build should be very fast because no work should be done by bazel.  Ideally.  What do you think?

Right now I am trying to take bazel out of the picture during import (going with your metafile idea).  I think this will be a useful exercise even if we don't go with that solution in the end.

I am also looking into what IJ is doing.  Probably we should be strongly inspired by IJ.

Yes, after we remove the aspects, I think the command line issue goes away 🚀 . We will be doing just plain old 'bazel build xyz' commands. As long as the bazel workspace is correctly configured to be hermetic (host_javabase and javabase configured in .bazelrc) I think then BEF will not need to recompile anything if the workspace state is clean.

The other hope I have about this is to analyze the test targets en masse in the package. With bazel query this should be possible. Gather the deps of all java_library targets in the package in one query, gather the deps of all java_test targets in another query...
Then JDT main classpath is the results of the first, the JDT test classpath is the (second - first). Even if the user does not recompute into meta files, this should be reasonably quick.

Just an update:I decided to first refactor the import code because it is a bunch of static methods in a single class and somewhat hard to follow.  The refactoring also helps me understand what is going.  So, progress, just slowly.

@plaird I think what have now is "good enough for the next 6-12 months".  If you agree, let's close this issue.

@simontoens yes I agree. Can you write a summary of the work you did in this Issue, and then close.

Summary of changes that improved performance:

Do not call methods that end up running bazel (loading aspects, querying) in a tight loop, since each bazel invocation, even if bazel doesn't do any work, if expensive. Instead, pass the all arguments into the methods (typically list of targets) and run the methods only once.
Refactor bazel aspect caching so that when running with a package wildcard target ("*"), the cache is populated for all concrete targets also.
Run aspect loading and querying once for all projects being imported, instead of once per project being imported (this doesn't matter if we only import 3 projects, but it has an impact when we import 30+)

authors: asmittal plaird simontoens

repo: salesforce/bazel-eclipse


text:
Docs website offline

Describe the bug
When I navigate to the documentation for this project, the site cannot be reached.
To Reproduce
Steps to reproduce the behavior:
Navigate to https://sp-api-docs.saleweaver.com/ on any browser
Expected behavior
Should open the documentation.
Desktop (please complete the following information):
Chrome and Safari iOS
Additional context
Not sure if this is an issue with the saleweaver.com domain or the docs themselves. Readthedocs build page for this project shows an error message with the build of the documentation because .readthedocs.yaml is missing. I will add this file in a PR, just in case this is the issue

I merged the PR, I'm currently away, docs go back online next week. Sorry for the inconvenience

@saleweaver any update on docs availability?

authors: michaelc197-sh saleweaver tgehrs

repo: saleweaver/python-amazon-sp-api


text:
🛑 RAÄ Kringla is down

In 84bceec, RAÄ Kringla (https://www.kringla.nu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RAÄ Kringla is back up in 4c4bcb4 after 8 minutes.


text:
Added animated heart

Description
It's An animated heart
Fixes #44
Insert the image of the art below

Checklist:
To fill the checklists, put x inside the brackets. [x]

[x] My code follows the guidelines of this project
[x] I have tested my code and it works properly
[x] I have added just one folder that includes my Art files (jsx and css)
[x] I have not edited App.js file
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] This is my original code and I have NOT copied the code from anywhere else.

Im sorry @sonalisonawane, I'll have to close this PR as the code is plagiarised. I would suggest you open a new issue if you are interested in working on any other art.

authors: salil-naik sonalisonawane

repo: salil-naik/css-art-gallery


text:
Bug: Creating db constraints that are already violated

If you create a jointly unique constraint which is already violated at the time of creating it, you're given the error could not create unique index "{constraint name}". The constraint is not enforced, but it is added to the list of constraints in the UI. If you delete the constraint in the UI, it says constraint "{constraint name}" of relation "{table name}" does not exist.

What do you think would be generic solution:

Create constraint with initially disable clause.
In case of this happens show additional page to choose what to do:

as now - create only record in _sc_constraints
create constraint with initially disable clause
don't create constraint at all

I'm strongly against "always fail to create constraint".

repo: saltcorn/saltcorn


text:
Issue With Area 51 ROM

When i try to play the original Are 51 game this is what i get and of course it does not run the game due to the missing files. The sequel works just fine though. Is this something on my end or is this a global issue for everyone with this game? This is the first and only game ive had any issues getting to run thus far and ive been using MAME-ao for close to 6 months would now i would
I have an unrelated question while I'm here how does one bind a mouse movement and mouse buttons in the same way they are default bound in sequel to area 51. I accidentally changed the default mouse button 1 to something else and for the life of me i cannot get any of the mouse buttons to rebind again, When i attempt to bind the button there is nothing registering when i click the mouse button but when i hit any other key it successfully binds to that specific keyboard key or button of my PS5 Dual Sense controller I use with many other games. Thanks for the help and hopefully you can do whatever needs to be done to fix Area 51 to work properly.
AREA 51 Error When I attempt to run the game is below.....
                     #                                          Everything looks good to run MAME                                          #

#######################################################################################################################
Name:           area51
Description:    Area 51 (R3000)
Year:           1996
Manufacturer:   Atari Games
Status:         good
isbios:         no
isdevice:       no
ismechanical:   no
runnable:       yes
#######################################################################################################################
Starting MAME
C:\Program Files\MAME Arcade Machine Emulator ver. 1.77 (64bit)\0265\mame.exe
area51
#######################################################################################################################
2-c_area_51_hh.hh NOT FOUND (tried in area51)
2-c_area_51_hl.hl NOT FOUND (tried in area51)
2-c_area_51_lh.lh NOT FOUND (tried in area51)
2-c_area_51_ll.ll NOT FOUND (tried in area51)
jagwave.rom NOT FOUND (tried in area51)
area51.chd NOT FOUND (tried in area51)
Fatal error: Required files are missing, the machine cannot be run.
MAME Shell Exit BAD: 2

Hello @Seahawkamafia
Are you running the latest version of MAME-AO? https://github.com/sam-ludlow/mame-ao/releases
I ran area51 on a clean install it worked fine. (It says a CHD missing but that's a bug it is not).
Your issue looks like its just the machine ROMs.
After you ensure MAME-AO is on the latest version can you supply the full output from the console, like so:
#######################################################################################################################
Remote command recieved
area51
#######################################################################################################################
#######################################################################################################################
Asset Acquisition
#######################################################################################################################
=======================================================================================================================
=                                                     Machine ROM                                                     =
=                                                       area51                                                        =
=                                              required machines: area51                                              =
Checking machine ROM: False     69da54ed6886e825156bbcc256e8d7abd4dc1ff8        area51  2-c_area_51_hh.hh
Checking machine ROM: False     9b4945bc04f8a73161638a2c5fa2fd84c6fd31b4        area51  2-c_area_51_hl.hl
Checking machine ROM: False     ae377a6803a4f7d1bbcc111725af121a3e82317d        area51  2-c_area_51_lh.lh
Checking machine ROM: False     4b5f45ee140b03a6be61475cae1c2dbef0f07457        area51  2-c_area_51_ll.ll
Checking machine ROM: False     58117e11fd6478c521fbd3fdbe157f39567552f0        area51  jagwave.rom
Downloading machine rom: 'area51' size:2.5 Megabytes (MiB) url:https://archive.org/download/mame-merged/mame-merged/area51.zip ........done
Download rate: 86.276s = 0.028 MiB/s
Extracting machine rom: 'area51', C:\Users\Admin\AppData\Local\Temp\tmp6E19.tmp.dir\archive.zip ......done
ROM Store Import: True 69da54ed6886e825156bbcc256e8d7abd4dc1ff8 machine rom: 'area51' \2-c_area_51_hh.hh
ROM Store Import: True 9b4945bc04f8a73161638a2c5fa2fd84c6fd31b4 machine rom: 'area51' \2-c_area_51_hl.hl
ROM Store Import: True ae377a6803a4f7d1bbcc111725af121a3e82317d machine rom: 'area51' \2-c_area_51_lh.lh
ROM Store Import: True 4b5f45ee140b03a6be61475cae1c2dbef0f07457 machine rom: 'area51' \2-c_area_51_ll.ll
ROM Store Import: True 58117e11fd6478c521fbd3fdbe157f39567552f0 machine rom: 'area51' \jagwave.rom
ROM Store Import: True 21864b4281b1ad17b2903e3aa294e4be74161e80 machine rom: 'area51' \area51a\136105-0000a.3k
ROM Store Import: True 90cf848a4195c51b505653cc2c74a3b9e3c851b8 machine rom: 'area51' \area51a\136105-0001a.3m
ROM Store Import: True dadc4be5a442dd4bd17385033056555e528ed994 machine rom: 'area51' \area51a\136105-0002a.3p
ROM Store Import: True 5d36cae792dd349faa77cd2d8018722a28ee55c1 machine rom: 'area51' \area51a\136105-0003a.3h
ROM Store Import: True cbed65463dd93eaf945750a9dc3a123d1c6bda42 machine rom: 'area51' \area51t\136105-0000-q_k.3k
ROM Store Import: True f95ef428be18adafae65e35f412eb03dcdaf7ed4 machine rom: 'area51' \area51t\136105-0001-q_m.3m
ROM Store Import: True 01a781b42b61279e09e0cb1d924e2a3e0df44591 machine rom: 'area51' \area51t\136105-0002-q_p.3p
ROM Store Import: True 9e96db5a4ff90800685a5b95f8d758d211d3b982 machine rom: 'area51' \area51t\136105-0003-q_h.3h
ROM Store Import: True a54552e3ac5c4f481ba4f2fc7d724534576fe76c machine rom: 'area51' \area51ta\136105-0000c.3k
ROM Store Import: True 2d9660f240b14481e8c46bc98713e9dc12035063 machine rom: 'area51' \area51ta\136105-0001c.3m
ROM Store Import: True 7c6c50372d45dca8929767241b092339f3bab4d2 machine rom: 'area51' \area51ta\136105-0002c.3p
ROM Store Import: True 39dabf6bf3dc6f717a587f362d040bfb332be9e1 machine rom: 'area51' \area51ta\136105-0003c.3h
Place machine ROM: True 69da54ed6886e825156bbcc256e8d7abd4dc1ff8        area51  2-c_area_51_hh.hh
Place machine ROM: True 9b4945bc04f8a73161638a2c5fa2fd84c6fd31b4        area51  2-c_area_51_hl.hl
Place machine ROM: True ae377a6803a4f7d1bbcc111725af121a3e82317d        area51  2-c_area_51_lh.lh
Place machine ROM: True 4b5f45ee140b03a6be61475cae1c2dbef0f07457        area51  2-c_area_51_ll.ll
Place machine ROM: True 58117e11fd6478c521fbd3fdbe157f39567552f0        area51  jagwave.rom
=                                                                  Machine Disk                                                                   =
=                                                                     area51                                                                      =
Checking machine Disk: False    3b303bc37e206a6d7339352c869f050d04186f11        area51  area51
Downloading area51/area51.chd size:475 Megabytes (MiB) url:https://archive.org/download/MAME_0.225_CHDs_merged/area51/area51.chd ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done
Download rate: 510.113s = 0.930 MiB/s
!!! Unexpected downloaded CHD SHA1. It's wrong in the source and will not work. expect:machine disk: 'area51/area51.chd' actual:3b303bc37e206a6d7339352c869f050d04186f11
Disk Store Import: True 3b303bc37e206a6d7339352c869f050d04186f11 area51/area51.chd
Place machine Disk: True        3b303bc37e206a6d7339352c869f050d04186f11        area51  area51
###################################################################################################################################################
Machine Information

Everything looks good to run MAME
###################################################################################################################################################
Name:           area51
Description:    Area 51 (R3000)
Year:           1996
Manufacturer:   Atari Games
Status:         good
isbios:         no
isdevice:       no
ismechanical:   no
runnable:       yes
###################################################################################################################################################
Starting MAME
C:\MAME-AO\0265\mame.exe
area51
###################################################################################################################################################
MAME output:Average speed: 35.91% (16 seconds)
MAME Shell Exit OK.
MAME Shell (0265)>

Hello,
Here is what you requested. Thanks for the help.
1.87
'##::::'##::::'###::::'##::::'##:'########:::::::'###:::::'#######::
###::'###:::'## ##::: ###::'###: ##.....:::::::'## ##:::'##.... ##:
####'####::'##:. ##:: ####'####: ##:::::::::::'##:. ##:: ##:::: ##:
### ##:'##:::. ##: ## ### ##: ######::::::'##:::. ##: ##:::: ##:
##. #: ##: #########: ##. #: ##: ##...::::::: #########: ##:::: ##:
##:.:: ##: ##.... ##: ##:.:: ##: ##:::::::::: ##.... ##: ##:::: ##:
##:::: ##: ##:::: ##: ##:::: ##: ########:::: ##:::: ##:. #######::
..:::::..::..:::::..::..:::::..::........:::::..:::::..:::.......:::
   Please wait the first time it has to prepare the data

     The Web User Interface will pop up when ready

          See the README for more information
         https://github.com/sam-ludlow/mame-ao

#######################################################################################################################
Initializing
#######################################################################################################################
MameVersion: 0265
=                                                        MAME                                                         =
=                   https://github.com/mamedev/mame/releases/download/mame0265/mame0265b_64bit.exe                    =
Creating machine performance caches......done
Creating software performance caches......done
Getting all database SHA1s......done.
=                                                   Machine Genres                                                    =
=               https://raw.githubusercontent.com/AntoPISA/MAME_SupportFiles/main/catver.ini/catver.ini               =
Loading Genres......done
Version:        0.266
=                                                   Machine Samples                                                   =
=                 https://raw.githubusercontent.com/AntoPISA/MAME_Dats/main/MAME_dat/MAME_Samples.dat                 =
Version:        0.265
#######################################################################################################################
Remote Listener ready for commands
http://localhost:12380/
e.g. http://localhost:12380/api/command?line=a2600 et -window
#######################################################################################################################
#######################################################################################################################
Shell ready for commands
#######################################################################################################################
MAME Shell (0265)>
#######################################################################################################################
Remote command recieved
area51
#######################################################################################################################
#######################################################################################################################
Asset Acquisition
#######################################################################################################################
=======================================================================================================================
=                                                     Machine ROM                                                     =
=                                                       area51                                                        =
=                                              required machines: area51                                              =
Checking machine ROM: True      69da54ed6886e825156bbcc256e8d7abd4dc1ff8        area51  2-c_area_51_hh.hh
Checking machine ROM: True      9b4945bc04f8a73161638a2c5fa2fd84c6fd31b4        area51  2-c_area_51_hl.hl
Checking machine ROM: True      ae377a6803a4f7d1bbcc111725af121a3e82317d        area51  2-c_area_51_lh.lh
Checking machine ROM: True      4b5f45ee140b03a6be61475cae1c2dbef0f07457        area51  2-c_area_51_ll.ll
Checking machine ROM: True      58117e11fd6478c521fbd3fdbe157f39567552f0        area51  jagwave.rom
Place machine ROM: True 69da54ed6886e825156bbcc256e8d7abd4dc1ff8        area51  2-c_area_51_hh.hh
Place machine ROM: True 9b4945bc04f8a73161638a2c5fa2fd84c6fd31b4        area51  2-c_area_51_hl.hl
Place machine ROM: True ae377a6803a4f7d1bbcc111725af121a3e82317d        area51  2-c_area_51_lh.lh
Place machine ROM: True 4b5f45ee140b03a6be61475cae1c2dbef0f07457        area51  2-c_area_51_ll.ll
Place machine ROM: True 58117e11fd6478c521fbd3fdbe157f39567552f0        area51  jagwave.rom
=                                                    Machine Disk                                                     =
=                                                       area51                                                        =
Checking machine Disk: True     3b303bc37e206a6d7339352c869f050d04186f11        area51  area51
Place machine Disk: True        3b303bc37e206a6d7339352c869f050d04186f11        area51  area51
#######################################################################################################################
Machine Information

Everything looks good to run MAME
#######################################################################################################################
Name:           area51
Description:    Area 51 (R3000)
Year:           1996
Manufacturer:   Atari Games
Status:         good
isbios:         no
isdevice:       no
ismechanical:   no
runnable:       yes
#######################################################################################################################
Starting MAME
C:\Program Files\MAME Arcade Machine Emulator ver. 1.77 (64bit)\0265\mame.exe
area51
#######################################################################################################################
2-c_area_51_hh.hh NOT FOUND (tried in area51)
2-c_area_51_hl.hl NOT FOUND (tried in area51)
2-c_area_51_lh.lh NOT FOUND (tried in area51)
2-c_area_51_ll.ll NOT FOUND (tried in area51)
jagwave.rom NOT FOUND (tried in area51)
area51.chd NOT FOUND (tried in area51)
Fatal error: Required files are missing, the machine cannot be run.
MAME Shell Exit BAD: 2

i am so sorry i do not why it enlarged parts of the copy paste, it was all the same size when i copied and when i pasted it but as soon as i hit submit or comment or whatever it enlarged a portion of the message for some odd reason. i apologize. that was not intended.

No worries you want to put 3 back-ticks above and below it. I've edited it for you go, if you go to edit you can see.
Hmmm it looks like mame-ao is reporting it placed the files OK but mame itself don't find them.
Have you been messing with the rom location config?

My output looks the sane as yours suggesting all files are in place.
What you got in: C:\My Program Filesw\MAME Arcade Machine Emulator ver. 1.77 (64bit)\0265\roms\area51
this is all it needs to boot

If those files are there then it must be mame rom location config.
Also "C:\Program Files" probably isn't the best place the permissions can be restrictive.

Hey, OK ill uninstall it and re install in its own directory but the part way down at the bottom of my screen shot says multiple files are missing and when I checked it is right there are only like 3 or 4 symbolic links in the folder for area 51 yet according to the error message there are several files that are missing.  Does that also say the same thing for you when you try and use area51? Ill update you after I remove and install in its own directory and see if that changes anything for me. I don't have a dedicated emulator setup or cabinet or anything fancy like that im just using my HP "Gaming" PC and I emphasize the quotes heavily. LOL  Anyways, knowing that do you suggest I install it its own directory on the C Drive? I do have several other drives installed that have a decent amount of space on them if that would work better....
From: Sam Ludlow @.>
Sent: Wednesday, June 12, 2024 1:01 PM
To: sam-ludlow/mame-ao @.>
Cc: Seahawkamafia @.>; Mention @.>
Subject: Re: [sam-ludlow/mame-ao] Issue With Area 51 ROM (Issue #32)
My output looks the sane as yours suggesting all files are in place.
What you got in: C:\My Program Filesw\MAME Arcade Machine Emulator ver. 1.77 (64bit)\0265\roms\area51
this is all it needs to boot
image.png (view on web)https://github.com/sam-ludlow/mame-ao/assets/47115020/d0a0cf6a-89fc-44ec-b052-4d519b6263a2
If those files are there then it must be mame rom location config.
Also "C:\Program Files" probably isn't the best place the permissions can be restrictive.

Reply to this email directly, view it on GitHubhttps://github.com/sam-ludlow/mame-ao/issues/32#issuecomment-2163801911, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMIGZKCYA3W3USTH5BTPYILZHCSIXAVCNFSM6AAAAABJAURHDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTHAYDCOJRGE.
You are receiving this because you were mentioned.Message ID: @.@.>>

If you want to start a clean install just copy the old _STORE & _STORE_DISK directories to the new.
So you don;t have to download stuff again, everything else will be created fresh.

Hello
This Area 51 issue is a weird one, you're not an alien abductee or something are you?
I have added asset placing reports, please update to the latest version of MAME-AO. Then switch it on here.

Then run "area51" and attach the report from the "_REPORTS" directory here.
This is what mine looks like. (You have to ZIP it)
2024-06-21T13-14-57_Place Assets area51.zip
Cheers
Sam

Hey Sam,
So I actually ended up getting it to work. When I originally was trying to play the game I just used the search bar and only one version of the area 51 game popped up and then a sequel I believe popped up as well. Well I was looking for other games to play and I ended up just using the genres menu and found my way to the games under the Gun listing and accidentally ran into the area51 games which  had several listed. When I attempted to play from those listed games everything worked fine and I was able to play the game all the way thru without any issues. Thanks again for your help with everything. It was much appreciated. I did have one other quick question. How do I use my mouse to play the shooting games with a crosshair, right now I don't own a gun style controller so im having to use my DualSense controller which works just fine but it isn't quite as easy to aim and I know I can do better in the game if I was able to use my mouse to move the crosshair and mouse button to shoot. Any help or a push in a direction for me to look would help greatly. Ive searched youtube and such but all the videos deal with the vanilla version of MAME and I cant seem to find a way to access the same UI Menus as it shows in the videos when using the MAME-UI because they are the ones you access prior to entering a game which I believe you so kindly have done all the configuration for us as part of your MAME-AO build, from my limited knowledge of how all this works I assume this to be the case but I could very wrong as well as im not well versed in MAME or writing code and programming software. Just wanted to mention that I am in no way complaining about not having the access to those menus as I actually like your build quite a lot better as its easier to get in and enjoy some games without having to configure everything ourselves and who knows how messed up id have things if I were to be required to do all the setting up myself. As a small side note I am able to hit the TAB key and access the in game menu once I have booted a game up but I cant seem to figure out how to map my mouse movements within said menus or im doing something incorrect. Either way any info you could bestow upon me would be huge help as ive not been able to find much in the way of help on that subject anywhere online.
Also is there a way to set the controls globally so I don't have to assign the inputs to my controller instead of the keyboard each time I play a game that I have not played before by chance? Not a big issue just a convenience type of question.  Sorry to take up so much of your time. I appreciate all your help everything has been working flawlessly and have not had any other issues other than the area 51 thing that I ended up working out anyways so kudos on such a cool thing you've provided the emulation community.
PS
I don't think I am an alien abductee, but im guessing if I were they would have wiped my memory of it so I wouldn't rememeber it so I dont go and attempt to ruin their plans for global domination, that's at least what id like to think cause im rather certain id prefer to not remember aliens doing experiments or whatever it is aliens do to their abductees! LOL!
Have a great day!
James
From: Sam Ludlow @.>
Sent: Friday, June 21, 2024 5:17 AM
To: sam-ludlow/mame-ao @.>
Cc: Seahawkamafia @.>; Mention @.>
Subject: Re: [sam-ludlow/mame-ao] Issue With Area 51 ROM (Issue #32)
Hello
This Area 51 issue is a weird one, you're not an alien abductee or something are you?
I have added asset placing reports, please update to the latest version of MAME-AO. Then switch it on here.
image.png (view on web)https://github.com/sam-ludlow/mame-ao/assets/47115020/d0ed1690-3857-41d2-8f38-0c792ab504e4
Then run "area51" and attach the report from the "_REPORTS" directory here.
This is what mine looks like. (You have to ZIP it)
2024-06-21T13-14-57_Place Assets area51.ziphttps://github.com/user-attachments/files/15927667/2024-06-21T13-14-57_Place.Assets.area51.zip
Cheers
Sam

Reply to this email directly, view it on GitHubhttps://github.com/sam-ludlow/mame-ao/issues/32#issuecomment-2182641354, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMIGZKEABGPCSPTOZ7WYEODZIQKVDAVCNFSM6AAAAABJAURHDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSGY2DCMZVGQ.
You are receiving this because you were mentioned.Message ID: @.@.>>

Hello @Seahawkamafia
Glad you got Area 51 working went round the houses a bit but no worries.
Re. mouse control - this a general MAME query, pretty sure I had it working myself a while back with a mouse I'd have to look it up myself. I'll have a play at some point if I remember and let you know here.
Closing ticket.
Cheers
Sam

authors: Seahawkamafia sam-ludlow

repo: sam-ludlow/mame-ao


text:
DB_PORT may contain full tcp:// URI if db alias is 'db', prompting sed error

If the database alias is passed in to the container as 'db', the DB_PORT variable is not from the user but rather from Docker, which is treating this as _PORT. In that case, it contains slashes, which screws up sed at https://github.com/sameersbn/docker-redmine/blob/master/assets/init#L245 This is pretty easily avoidable but in the same breath, "db" is a very common alias for a database and this fails rather inelegantly.
I can probably put together a pull request on this sometime soon but thought I'd open a ticket in the meantime in case this trips up anyone else.

@bradjones1 you have to use the link alias as mysql when linking a mysql container or use the alias postgresql when linking a postgresql container. A side effect of using a different alias name is that it allows me to easily figure out the database server in use and appropriately set the DB_TYPE parameter in the entrypoint script
Regarding use of db the alias. Initially I was trying to use this, but since my entrypoint uses DB_PORT variable it would conflict with the <alias>_PORT variable created by docker. This is essentially the issue you are seeing. To be able to use the alias db would require that the DB_* configuration options be changed to something like DATABASE_*. This will create an issue for existing installations and additionally users will have to specify the type of database in use.

I get that, though this probably could be avoided with some better documentation (I'll submit a PR today) since "should be called mysql" is very different from "can't be called db." You can name the alias whatever you like if you also specify the DB_TYPE, so there is definitely some room for error if you're used to using the same aliases on all your containers.
Thanks for the reply and for an awesome project.

@bradjones1 this is already documented in the linking container sections of the readme https://github.com/sameersbn/docker-redmine#linking-to-mysql-container. However the documentation can surely be improved.

I am seeing this issue as well. I have not found a combination of aliases which will allow a successful redmine launch. If I alias my link:
links:

mysql:mydb

and set DB_TYPE: mysql
redmine will not start as it cannot find the db host.
If I set my alias to "db":
links:

mysql:db

then I receive the 'sed' error noted above.

Please refer to my first comment in this thread.

Please refer to my first comment in this thread.

As I understand your comment- the alias should simply be "mysql", as in:
links:

mysql:mysql

If the above is correct, this still fails, as redmine gets stuck "Waiting for database server to accept connections..".
The same error exists if I specify the DB_HOST and DB_PORT.

@mklatsky the --link mysql:mysql should work. Can you please share your docker run commands to start mysql and redmine?

Closing due to old age

authors: bradjones1 jcormier mklatsky sameersbn

repo: sameersbn/docker-redmine


text:
backup storing POSIX tar archives with .tar.gz extension

backup_create() has a minor issue, I think: the following three files are stored with .tar.gz extension, although they are uncompressed plain POSIX tar archives:
dotfiles.tar.gz
plugins.tar.gz
themes.tar.gz
The relevant code seems to be the following in backup_create():
backup_dump_directory ${REDMINE_DOTFILES_DIR} .tar.gz
backup_dump_directory ${REDMINE_PLUGINS_DIR} .tar.gz
backup_dump_directory ${REDMINE_THEMES_DIR} .tar.gz

I think it should read
backup_dump_directory ${REDMINE_DOTFILES_DIR} .tar
backup_dump_directory ${REDMINE_PLUGINS_DIR} .tar
backup_dump_directory ${REDMINE_THEMES_DIR} .tar

Thanks, Tom

Confirmed that tar doesn't auto compress unless -a is provided.
root@d4468fc25baf:/home/redmine/redmine# tar -cf /tmp/test.tar.gz plugins/
root@d4468fc25baf:/home/redmine/redmine# file /tmp/test.tar.gz
/tmp/test.tar.gz: POSIX tar archive (GNU)
root@d4468fc25baf:/home/redmine/redmine# tar -czf /tmp/test2.tar.gz plugins/
root@d4468fc25baf:/home/redmine/redmine# file /tmp/test2.tar.gz
/tmp/test2.tar.gz: gzip compressed data, from Unix, last modified: Tue Jun 19 20:43:49 2018
root@d4468fc25baf:/home/redmine/redmine# tar -caf /tmp/test3.tar.gz plugins/
root@d4468fc25baf:/home/redmine/redmine# file /tmp/test3.tar.gz
/tmp/test3.tar.gz: gzip compressed data, from Unix, last modified: Tue Jun 19 20:44:18 2018
root@d4468fc25baf:/home/redmine/redmine# tar -cf /tmp/test4.tar plugins/
root@d4468fc25baf:/home/redmine/redmine# file /tmp/test4.tar
/tmp/test4.tar: POSIX tar archive (GNU)

And similarly tar -xaf can be used to auto-detect compression when extracting the tarball.
So I'd prefer we just update the tar commands to auto-detect the compression using -a

For cleanness, I'd prefer not to have .gz files in the backup that are no gz file.

Would you be okay with them if they were actually gz compressed archives?

of course, just constistency between name and contend :-)

Testing changes:
 $ docker-compose run redmine app:backup:create
Starting dockerredmine_postgresql_1 ...
Starting dockerredmine_postgresql_1 ... done
Initializing logdir...
Initializing datadir...
Symlinking dotfiles...
Installing configuration templates...
Configuring redmine...
Configuring redmine::database..
Configuring redmine::unicorn...
Configuring redmine::secret_token...
Generating a session token...
Note:
  All old sessions will become invalid.
  Please specify the REDMINE_SECRET_TOKEN parameter for persistence.
  **SHOULD** be defined if you have a load-balancing Redmine cluster.
Configuring redmine::max_concurrent_ajax_uploads...
Configuring redmine::sudo_mode...
Configuring redmine::autologin_cookie...
Configuring redmine::backups...
Configuring nginx...
Configuring nginx::redmine...
Dumping PostgreSQL database redmine_production...
Dumping files...
Dumping dotfiles...
Dumping plugins...
Dumping themes...
Creating backup archive: 1529422289_redmine_backup.tar...
 $ ls /srv/docker/redmine/redmine/backups/
1529422289_redmine_backup.tar
 $ cd /tmp/
 $ tar xavf /srv/docker/redmine/redmine/backups/1529422289_redmine_backup.tar
backup_information.yml
database.sql.gz
files.tar
dotfiles.tar.gz
plugins.tar.gz
themes.tar.gz
 $ file *.tar*
dotfiles.tar.gz: gzip compressed data, last modified: Tue Jun 19 15:31:29 2018, from Unix
files.tar:       POSIX tar archive (GNU)
plugins.tar.gz:  gzip compressed data, last modified: Tue Jun 19 15:31:29 2018, from Unix
themes.tar.gz:   gzip compressed data, last modified: Tue Jun 19 15:31:29 2018, from Unix

 $ docker-compose run redmine app:backup:restore
Starting dockerredmine_postgresql_1 ... done
Initializing logdir...
Initializing datadir...
Symlinking dotfiles...
Installing configuration templates...
Configuring redmine...
Configuring redmine::database
Configuring redmine::unicorn...
Configuring redmine::secret_token...
Generating a session token...
Note:
  All old sessions will become invalid.
  Please specify the REDMINE_SECRET_TOKEN parameter for persistence.
  **SHOULD** be defined if you have a load-balancing Redmine cluster.
Configuring redmine::max_concurrent_ajax_uploads...
Configuring redmine::sudo_mode...
Configuring redmine::autologin_cookie...
Configuring redmine::backups...
Configuring nginx...
Configuring nginx::redmine...

‣ 1529422289_redmine_backup.tar (created at 19 Jun, 2018 - 21:01:29 IST)

Select a backup to restore: 1529422289_redmine_backup.tar
Unpacking 1529422289_redmine_backup.tar...
Restoring PostgreSQL database...
...
Restoring files...
Restoring dotfiles...
Restoring plugins...
Restoring themes...

authors: dla-meyer jcormier


text:
decode Amino-encoded node-rpc response

Hi,
I use python-binance-chain library. when I request to node-RPC server to get balance or anything else, I get response in Amino-encoded format.
Does anybody know how to decode this format?
Thanks,

Finally I found the solution, thanks to @aghamir.
amino_decoder

repo: sammchardy/python-binance-chain


text:
RuntimeError: dictionary changed size during iteration

Hi, I've got this error below when using websocket for streaming market depth.
Traceback (most recent call last):
  File "inago-simulation-BTCUSD-realtime-linux.py", line 118, in <module>
    if len(depth_cache.get_bids()[:5]) > 0:
  File "/home/soichiro_tsuda/miniconda3/lib/python3.6/site-packages/binance/depthcache.py", line 75, in get_bids
    return DepthCache.sort_depth(self._bids, reverse=True)
  File "/home/soichiro_tsuda/miniconda3/lib/python3.6/site-packages/binance/depthcache.py", line 114, in sort_de
pth
    lst = [[float(price), quantity] for price, quantity in vals.items()]
  File "/home/soichiro_tsuda/miniconda3/lib/python3.6/site-packages/binance/depthcache.py", line 114, in <listco
mp>
    lst = [[float(price), quantity] for price, quantity in vals.items()]
RuntimeError: dictionary changed size during iteration

My code was pretty simple --- read depth_cache every 1s
dcm = DepthCacheManager(client, 'BTCUSDT', refresh_interval=0) # disable refresh
depth_cache = dcm.get_depth_cache()

while True:
    if len(depth_cache.get_bids()[:5]) > 0:
        curr_bids = depth_cache.get_bids()[:5]
    else:
        curr_bids = ""
    if len(depth_cache.get_asks()[:5]) > 0:
        curr_asks = depth_cache.get_asks()[:5]
    else:
        curr_asks = ""
    time.sleep(0.6)

I've got the above error on Windows (7 or 10) as well as on Linux (GCP), both with Anaconda Python 3.6. python-binance was installed via pip (ver 0.6.4).
As a workaround, I changed vals.items() to list(vals.items()) in depthcache.py as follows:
lst = [[float(price), quantity] for price, quantity in list(vals.items())]

I don't have the above error message any more after this modification, although I'm not 100% sure if it's the right way as I'm still a noob.

a little update: I still got the error even after the modification in the code... although it was significantly less to see the error.

repo: sammchardy/python-binance


text:
Series B and F missing ACSCII Superscript Characters

Both the Series B and F are missing 3 superscript characters to complete the 0-9 range characters.
The remaining series have the missing characters.
Unicode values need addressing:
U+00B2, U+00B3, U+00B9
Included in a rendering of each of the super/subscript character across each of the series fonts.
Note each of the font has a "1", which maps to SUPERSCRIPT LATIN SMALL LETTER I: U+2701

The good news is the glyphs are actually all there.
The bad news is they do not have the proper Unicode codes applied.
Unicode code points which do not exist in the standard are being used.
Some are marked wrong to another character.
Some are multi-mapped to the correct codes - in the ones you do see as "correct."
So the codes need to be corrected in all the fonts.
Then they will appear as expected in any character map.
OpenType Superscript and Subscript features should be added for easier access.
There are a couple other easy-to-fix issues here in the tracker.
This project appears to be dead.
Maybe I will fix these and post them in another repo.

Ahh ... I was looking at all the forks and I see you already forked and fixed the codes.

I am not an expert with font creation, and managed to identify the issue illustrated in the picture by doing a comparison between the series glyphs...
I wouldn't know where to start with finding/identifying these issues with FontForge.
Any tips on where to start?

authors: Jimmyson kenmcd

repo: sammdot/roadgeek-fonts


text:
[BUG] [Fabric] Players seem to be teleported after entering a wrong password and joining the server again

Mod Loader

[x] Fabric
[ ] Forge

Versions

SimpleAuth 1.6.1
Fabric API 0.23.0+build.410

Describe the bug
For some reason, players are teleported to a different position from the one that they logged out from (probably a position stored on the database). As far as I know, this has only happened after updating the mod to 1.6.
To Reproduce
Steps to reproduce the behaviour:
(Probably you won't be able to reproduce it like this, but this is how the player that reported the issue to me reproduced it)

Enter a server, move around a bit and leave it until the session expires, repeat.
Enter the server and try logging with a wrong password.
Enter the server again.
See that the position you left is different from the position you are on.

Expected behaviour
The player should not be teleported to another position after entering a wrong password
Additional context
Note that we moved from SimpleAuth 1.5, so that could be related to the issue.
We have maxLoginTries set to 1 on the config.
Here is a log of the situation
[00:46:06] [Server thread/INFO]: FrancixX[/] logged in with entity id 850303 at (1137.2919169802237, 58.0, 2390.6704544124805)
[00:46:06] [Server thread/INFO]: FrancixX joined the game
[00:46:11] [Server thread/INFO]: FrancixX lost connection: §4Wrong password!
[00:46:11] [Server thread/INFO]: FrancixX left the game
[00:46:11] [Server thread/WARN]: handleDisconnection() called twice
[00:46:15] [Server thread/INFO]: FrancixX[/] logged in with entity id 850602 at (1132.1919952388205, 63.5, 2392.721017794696)
[00:46:15] [Server thread/INFO]: FrancixX joined the game

Yep, there's a problem with updating to 1.6 😢 , I don't know if it's worth to release a bugfix though, since coordinates are then no longer stored in DB ...

authors: ByMartrixx samolego

repo: samolego/SimpleAuth


text:
Does not work with latest Balzor and .net core

Errors:

Component 'reCAPTCHA' starts with a lowercase character. Component names cannot start with a lowercase character.
Component parameter 'Something.Client.reCAPTCHA.OnExpired' should be public.
Component parameter 'Something.Client.reCAPTCHA.OnSuccess' should be public.
Component parameter 'Something.Client.reCAPTCHA.SiteKey' should be public.
The name 'DotNetObjectRef' does not exist in the current context

Can you please fix it?
Thanx,
DiNo

Thank you for your report!
I upgraded this sample code for .NET Core 3.1 Preview 1, at commit 8f7ffa70800b99bc397fa5f47762fba10347e45c.
Please check it out!

authors: dinonovak jsakamoto

license: Unlicense


text:
Add support for SELinux systems

This is the other half of the changes we talked about last week: Since we're running the new VM with RHEL, we need some adjustments for SELinux. These are ignored on systems without it.
Adding Z allows this container (and only this one) to access the bind mount. This seems to be only needed for files in /srv, because RHEL ships a special label for this folder.
This is also why /srv/docker/bridgehead/bridgehead can be run manually, but not from a systemd service.
We additionally had the slight problem that with Podman, /var/run/docker.sock, being a symlink to /var/run/podman/podman.sock, was owned by root:root. Changing this to root:docker worked, but I'm not quite sure where to put it in the existing scripts. (docker is the usual Docker cli.)
@Threated

Thanks a lot for the PR ❤
Which volumes need the Z flag I saw you only added it to volumes that point to /srv/docker/bridghead/* so I guess /etc/bridghead/* is fine?
Also in other projects we have mounts in /tmp/bridgehead/* and /var/cache/bridgehead/* (I also changed the dnpm docker volumes to be fs mounts to that dir today as it was requested by Martin in the other PR) I assume that is problematic as well?
I wonder if we can get away with just executing a few commands as root when running sudo ./bridgehead install <project> to fix all the SEL specialties without needing to remember to add the z flag to each volume or not being able to use docker secrets 🤔

authors: Threated YtvwlD

repo: samply/bridgehead


text:
"beet move -p" lists non-moves for all tracks in library?

If I run beet move -p, the head of the output looks like this
Moving 2442 items.
/home/dowcet/my/music/all/+One/Bare Necessities/01 Sticker.mp3
  -> /home/dowcet/my/music/all/+One/Bare Necessities/01 Sticker.mp3
/home/dowcet/my/music/all/+One/Bare Necessities/02 Nibble.mp3
  -> /home/dowcet/my/music/all/+One/Bare Necessities/02 Nibble.mp3

As far as I can tell, these are non-changes, while some actual changes are buried in a long list of these not-very-helpful lines. What I would expect instead is that only actual file moves should be listed.
Am I missing something? Can I do something differently to get what I want (i.e. a list of actual file moves that would occur without -p)?

Please see #1583.

authors: dowcet sampsyo

repo: sampsyo/beets


text:
Conflict with async functions and Ember's run loop

Hi guys 👋
First time I open a ticket here, and also this issue is very confusing to me, so please bear with me while I try to make sense of it 🙏
I'm also not sure if this is purely because of ember-cli-mirage, or if this is an issue with qunit/ember-data. If that's the case, please point it out!
I managed to create a basic Ember repo to reproduce the error I got:
https://github.com/manudwarf/ember-cli-mirage-async
Here are the relevant snippets:
I started from this code:
  successPromise() {
    this.get('model').save()
      .then(() => this.get('model').set('name', 'New Name!'));
  },

Which works, and then I rewrote it using new Javascript async goodness:
  async failAsync() {
    await this.get('model').save();
    this.get('model').set('name', 'New Name!');
  },

But this fails in acceptance tests. However, if I use this code:
  async successAsync() {
    this.set('saving', true);
    await this.get('model').save();
    this.set('saving', false);
    this.get('model').set('name', 'New Name!');
  },

It all works fine.
Here is the acceptance test:
  test('fail with async', async function(assert) {
    await visit('/sample');
    await click('#fail-async');
    assert.ok(true);
  });

Here is the error that is thrown:
Error: Assertion Failed: You have turned on testing mode, which disabled the run-loop's autorun. You will need to wrap any code with asynchronous side-effects in a run

This comes from the model.set(...) statement, more specifically this._internalModel.send('didSetProperty', ...), in the recordDidChange function.
Moreover, you'll notice the difference with set('saving', ...). This test case fails if I remove the <span> from the template:
https://github.com/manudwarf/ember-cli-mirage-async/blob/master/app/templates/components/sample-form.hbs

Not sure, will have to dig into it. Thanks for the repro!

Isn't this simply the autorun assertion by ember, which is not yet removed? https://github.com/emberjs/ember.js/pull/16797 https://discuss.emberjs.com/t/readers-questions-why-does-ember-still-use-rsvp/14736

I upgrade Ember Data to 3.3.1 and that fixed the text. Looks like it was an ED bug!

Feel free to post if you have any more questions :)

authors: FrenchHipster jelhan samselikoff

repo: samselikoff/ember-cli-mirage


text:
Add support for abstractions

Currently, abstractions don't work properly because they are never loaded into the temporary directory. There's a few ways that I can think to fix this.

Parse abstraction dependencies out of patches and extract any patch dependencies when loading a patch.
Have the user specify dependencies and load them when loading a patch.
Load every imported patch in the project when Pure Data is loaded (as far as I can tell, every imported file gets included in the exported project whether it is used or not, so they just need to be extracted).

An ideal solution would support embedding patches and abstractions in scenes and would only load abstractions when they are needed.

I got a basic implementation of solution 2 implemented by creating a PureDataAbstraction node that, when parented to a PureDataPatchInstance, will have its patch loaded into the temporary filesystem before the parent patch is loaded.

repo: samsface/godot-pure-data


text:
Add ansible lint testing

https://github.com/samsung-cnct/k2/issues/251 handles lint testing ansible as a pre-commit. Add lint testing to the CI tests.

blocked by CI

details of work completed for this are in samsunc-cnct/k2#254

this has been added to kraken-lib.  there is nothing in kraken-tools that should be getting linted (ie no original code, only deps)

authors: coffeepac joejulian


text:
ResNet50 Permutation Spec Is Incorrect (Typo)

Hi,
Thanks for your work and the accessibility of this repo! Very useful in our experiments :)
I believe there is a typo on lines 145 & 146 in the weight_matching.py file:
shortcutblock = lambda name, p_in, p_out: {
      **conv(f"{name}/conv1", p_in, f"P_{name}_inner1"),
      **norm(f"{name}/norm1", f"P_{name}_inner1"),
      #
      **conv(f"{name}/conv2", f"P_{name}_inner1", f"P_{name}_inner2"),
      **norm(f"{name}/norm2", f"P_{name}_inner2"),
      #
      **conv(f"{name}/conv2", f"P_{name}_inner2", p_out),
      **norm(f"{name}/norm2", p_out),
      #
      **conv(f"{name}/shortcut/layers_0", p_in, p_out),
      **norm(f"{name}/shortcut/layers_1", p_out),
  }

I believe you've accidentally referred to conv2 and norm2 twice. Instead the second mention should be conv3 and norm3:
shortcutblock = lambda name, p_in, p_out: {
      **conv(f"{name}/conv1", p_in, f"P_{name}_inner1"),
      **norm(f"{name}/norm1", f"P_{name}_inner1"),
      #
      **conv(f"{name}/conv2", f"P_{name}_inner1", f"P_{name}_inner2"),
      **norm(f"{name}/norm2", f"P_{name}_inner2"),
      #
      **conv(f"{name}/conv3", f"P_{name}_inner2", p_out),
      **norm(f"{name}/norm3", p_out),
      #
      **conv(f"{name}/shortcut/layers_0", p_in, p_out),
      **norm(f"{name}/shortcut/layers_1", p_out),
  }

Thanks!

Hi @gstoica27, thanks so much for bringing this to our attention! Indeed, you're absolutely right that this is a typo! As it turns out (and thankfully for the sake of our camera ready!) this was actually pseudocode that didn't end up getting used in our final ResNet50 experiments. Due to having to switch machines between experiments, the ResNet50 results were implemented and run on a separate machine and with a different PermutationSpec implementation.
This was a very confusing, and I should've done a cleaner job with the code releaese. You're absolutely right for raising this issue. In an attempt to remedy this, we've merged #11 which should bring the source up-to-date and include the correct ResNet50 PermutationSpec implementation.
Apologies for the confusion!

Hi @samuela
No worries at all!
Thank you so much for adding the new permutation spec and code - it is so helpful for us :)
Thanks so much again, we are also able to confirm that the implementation is working for our experiments on our end as well. :)
Thanks again!
All the best,
George

repo: samuela/git-re-basin


text:
How to access background script public function

In my popup.js i used to do: bg = chrome.extension.getBackgroundPage() to get access to the background page. Then I could do bg.xxx() ...
However, with this setup, i am getting:
Uncaught (in promise) TypeError: bg.xxx is not a function

Any clue?

In my popup.js i used to do: bg = chrome.extension.getBackgroundPage() to get access to the background page. Then I could do bg.xxx() ...

Try chrome.runtime.getBackgroundPage instead of chrome.extension.getBackgroundPage
Also you can use messages to/from background page:
popup.js
chrome.runtime.sendMessage({purpose: "ping"}, function(response) {   console.log(response.resolution); });
background.js
chrome.runtime.onMessage.addListener(   function(request, sender, sendResponse) {   console.log(request.purpose);     if (request.purpose == "ping")       sendResponse({resolution: "pong"});   });

This happens because the background page in this setup is a module, so you can't access the methods from this module with this direct approach because the module encapsulates everything instead of defining everything in the global scope (which allowed you do this access).
Access directly to the methods from other contexts is a slightly bad practice, so the suggested method by @SzpakLabs is the recommended way to do this.

This is also somewhat bad practice, but if you really need to make your function global to the window object and access it with getBackgroundPage, you can do so by directly setting window.xxx = xxx;

authors: SzpakLabs redochka samuelsimoes scitronboy


text:
Support for embedding Twitter threads

The embedding of single tweets is great, but there doesn't seem to be a way to render an entire thread. Thoughts?
One option: support for embedding threads a la thread reader.
[Twitter link](https://twitter.com/tannerc/thread/1539248244823404544)
or with an attribute.
[Twitter link|thread](https://twitter.com/tannerc/status/1539248240159334406)

Yes, this would be great. Unfortunately, the first-party Twitter embed does not support showing entire threads. I haven't been able to find any alternative that could easily do this, but I'll keep my eyes open.

authors: samwarnick stoweboyd

repo: samwarnick/obsidian-simple-embeds


text:
What to do about customHelper removal?

I noticed 1.0.0 removes customHelper, what is the upgrade path for existing custom helpers?

@kmiyashiro, there are multiple ways to move away from customHelper, it depends for what you are using it, can you show a particular case you might be worried about?
WIth 1.0.0, we have changed the way we generate PageObjects completely. The idea is that user would move away from customHelper to building their own Ceibo descriptors (all existing properties of the project have been moved to that format). This will give users all the necessary power to build whatever they need.

I use customHelper to add a keyEvent and triggerEvent helpers
/* global keyEvent */

import PageObject from '../../page-object';

function _keyEvent(selector) {
  return function(eventName, keyCode) {
    return keyEvent(selector, eventName || 'keypress', keyCode || 13);
  };
}

export default PageObject.customHelper(_keyEvent);

@kmiyashiro we have the same code on one project I found this very funny :smile:
You can build a propery in the v1 one, for example: https://github.com/san650/ember-cli-page-object/blob/master/test-support/page-object/properties/fillable.js.
export function _keyEvent(selector, options = {}) {
  return {
    isDescriptor: true,

    value(eventName, keyCode) {
      let processedSelector = buildSelector(selector, options);
      /* global keyEvent */
      return keyEvent(selector, eventName || 'keypress', keyCode || 13);
    }
  }
}

On this exampe I'm using the buildSelector helper build a selector based on where the Ceibo descriptor is within the PageObject definition and also allows the usage of options suchs scope, resetScope and at.
You can see how that works over here: com/san650/ember-cli-page-object/blob/master/test-support/page-object/helpers.js#L88
Anyway, we are aiming to write about this on the site so users know how can they do this.
Hope this is helpful.

I see. And you call these things properties now?

On the page object project we have properties that are Ceibo descriptors. Example: clickable property is build using Ceibo we say it is a Ceibo descriptor.

@kmiyashiro we have finally released v1, I added this example to the official documentation. You can join the ember-cli-page-object channel in slack if you have more doubts. I'm closing this issue.

@kmiyashiro I add a helper to do this in another project, https://github.com/san650/tajpado/blob/9e34624bd60251f2163614aaa41555027ff975a4/tests/pages/activity.js#L3-L11
Also, as Juan said, this link has an example http://ember-cli-page-object.js.org/docs/v1.0.x/components#customhelper
Maybe we could add the a keyEvent property action to ember-cli-page-object, What do you think @kmiyashiro

@san650 I think adding a keyEvent action would be a good idea, key events are almost as common as clicks when testing apps.

@kmiyashiro I have thought about adding event actions on every component might be a good idea. keyEvent, blur and other.
@san650 what do you think?

authors: juanazam kmiyashiro san650


text:
Global styles manipulate styles of website

Hi, the global styles e.g. in viewer.css are changing styles of other vue elements outside of your component. (*, html, body, input, button, select,.. which are defined in your viewer.css) Please restrict them to your own container.. e.g. with a custom class on your main container?! Or you could use a shadow dom? Thanks! :)

Sorry the global styles are from pdfjs viewer 😏

Do you have any workaround for this issue or can you recommend other libraries?

I will fix it this weekend
Other libraries: https://github.com/vuejs/awesome-vue#pdf

Четверг, 25 февраля 2021, 10:55 +03:00 от armie-isla notifications@github.com:

Do you have any workaround for this issue or can you recommend other libraries?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly,  view it on GitHub , or  unsubscribe .

С уважением, Андрей Сергеев
e-mail: adid62@mail.ru

Thank you

authors: Alexxk1982 aislaapps armie-isla sandanat

repo: sandanat/vue-pdf-app