improvement: save to flash on ESP32 device

Thank you for publishing this project.
I have a water meter that has 0.1 gallon per pulse output and everything seems to work as expected.
I am using an ESP32 development board as that is what I had available.
Since I use an ESP32 device, the esp8266_restore_from_flash instruction does not work and I cannot store permanently a starting number to the device.
I would like to store the number actually showing on the water meter as the starting count to the ESP device and send to HA the incremental changes. Any thoughts how to do this?

I think the ESP32 is supposed to save to flash by default, so that should not be an issue. But like I said in the documentation, you have to call:
esphome.water_flow_power_cycle_restore
to actually restore the last saved value, because I could not easily get it to work in the on_boot automation.
To set an "initial" water usage value, you can call:
esphome.water_flow_set_total_water_used { value : xxx }

thanks for your reply
by using the esphome.water_flow_set_total_water_used { value : xxx } service call I am able to set an initial value that increments with subsequent flow. If, however, I also use the  esphome.water_flow_power_cycle_restore service call regardless to what value was set earlier, the total water used sensor is returning to zero. I assumed that this happened since the write_to_flash instruction was commented out.
Will experiment more

Sorry, which write_to_flash instruction is commented out?
Also, since we want to reduce the number of times we write to flash, it will only save the value after ten more gallons have flowed. After 10 gallons have passed, you should be able to call that service and it should restore it to the last saved value.

I had to comment out the line below as would not compile for an ESP32 board
#  esp8266_restore_from_flash: true
thanks, L.
-----Original message-----
From: J-Pipe<EMAIL_ADDRESS>Sent: Wednesday, March 3, 2021 11:07 PM
To: J-Pipe/Whole-House-Water-Monitoring<EMAIL_ADDRESS>Cc: Lorant Leopold<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [J-Pipe/Whole-House-Water-Monitoring] improvement: save to flash on ESP32 device (#3)
Sorry, which write_to_flash instruction is commented out?
Also, since we want to reduce the number of times we write to flash, it will only save the value after ten more gallons have flowed. After 10 gallons have passed, you should be able to call that service and it should restore it to the last saved value.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, orunsubscribe.

Oh okay, sorry. Yeah that makes sense. So I think you should be able to test this by calling the set_total_water_used service with a value of like 19.9. Then run some water for a bit, until that number goes up to >20. Then call the restore service and you should see the usage be change to 25 gallons.

Hello,
So I can set the total_water_user counter to any value I like, but couple of time a day it resets to zero.
calling the restore service does not restore the value to what was.
Here is today in 2 graphs. ONe is showing the flow rate throughout the day, the other the cumulative gallons.
The day starts just over 1000 gallons and increases over time, but sometimes after 9AM was reset. I notices it at noon, and then adjusted back to that value. After 4PM it was reset again.
Do not see any errors regarding the ESP32 device, the wifi signal is not the best, so there are disconnects, but reconnects very quickly.
The device has battery and usb power from a 2A wallwart and have not lost power today.
It may be my device, did not see anything in the code that would case this.
Any thoughts?
Thanks a lot in advance.
-----Original message-----
From: J-Pipe<EMAIL_ADDRESS>Sent: Wednesday, March 3, 2021 11:31 PM
To: J-Pipe/Whole-House-Water-Monitoring<EMAIL_ADDRESS>Cc: Lorant Leopold<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [J-Pipe/Whole-House-Water-Monitoring] improvement: save to flash on ESP32 device (#3)
Oh okay, sorry. Yeah that makes sense. So I think you should be able to test this by calling the set_total_water_used service with a value of like 19.9. Then run some water for a bit, until that number goes up to >20. Then call the restore service and you should see the usage be change to 25 gallons.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, orunsubscribe.

I just now tested everything with an ESP32. Everything seems to work fine. When your ESP disconnects and reconnects to wifi, the water_used sensor will change to "unknown". Make sure you have setup an automation so that when the state is "unkown," it will call the "restore" service. Otherwise, the next time water starts running, it will reset the total_usage to 0.
You're problem is happening because, your ESP is not saving the global "saved_usage_count" to flash, for some reason. How old is your ESP32? Have you used it before? Maybe the flash is just be burnt out on it?


make sure a list of possible case-insensitive file names is send

not a dict where the key is the case sensitive file name
fixing #2001

Thanks for the fix. I'll add a test after merging


How to sign GCS Blob in Cloud Run?

Running a python image using the standard Service Account, I get an error trying to sign GCS blobs.
Is there a work around? The same service account works fine with the JSON file is mounted (when I run the container locally).

Exception Type: | AttributeError
-- | --
you need a private key to sign credentials.the credentials you are currently using <class 'google.auth.compute_engine.credentials.Credentials'> just contains a token. see https://googleapis.dev/python/google-api-core/latest/auth.html#setting-up-a-service-account for more details.
/usr/local/lib/python3.8/site-packages/google/cloud/storage/_signing.py, line 51, in ensure_signed_credentials

Please ask this on Stack Overflow. I believe this is either an issue with how you pass creds to the container –or something wrong with Python client libraries. Cloud Run provides a token in the container runtime just fine, and the rest is handled by client libraries. Maybe consider opening an issue in the relevant code repo. https://cloud.google.com/python/docs/reference

Here is the stackoverflow question in case anyone stumbles on this.
There is no documentation - that I can find on how to do this in Cloud Run. The same work arounds listed in https://github.com/googleapis/google-auth-library-python/issues/50 fail in Cloud Run, but work on a Compute Instance.
I think because you can set the allowed scopes on VM instance.
https://stackoverflow.com/questions/64234214/how-to-generate-a-blob-signed-url-in-google-cloud-run


⚠ API - Lens has degraded performance

In e5b30fa, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 400 ms

Resolved: API - Lens performance has improved in c777c7e after 6 minutes.


Introducing React Hooks

Description
There is no documentation part for basic React hooks such as useState, useEffect. This issue resolves documentation for basic for React hooks.
For more details  checkout here -
https://reactjs.org/docs/hooks-intro.html
Domain
MERN
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign

/assign


Cannot read property 'nInputPlane' of undefined

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

The error happens in the line bellow:
https://github.com/HighCWu/waifu2x-tfjs/blob/2a31b376d5d2f43c9890d335251cce9259bd6828/src/lib/predictor.ts#L116
Investigating it appears the issue is happening because of some weird behavior of the fetch-progress library and the condition bellow:
https://github.com/HighCWu/waifu2x-tfjs/blob/2a31b376d5d2f43c9890d335251cce9259bd6828/src/lib/predictor.ts#L151
Adding a log to the onProgress callback I'm seeing that the model is still being downloaded even after this._modelFetchProgress > 1.
onProgress: (progress) => {
    this._modelFetchProgress = Math.max(0, progress.transferred / progress.total - 0.001);
    console.log("onProgress", this._modelFetchProgress, progress.transferred, progress.total, progress.remaining, progress.percentage)
    this._modelFetchCallback(this._modelFetchProgress);
},

onProgress 0.8614218191299012 2097152 2431701 334549 86
onProgress 0.9012865064413758 2194091 2431701 237610 90
onProgress 1.0770272739123767 2621440 2431701 -189739 108
onProgress 1.579496944320046 3843296 2431701 -1411595 158
onProgress 1.9803402223381905 4818027 2431701 -2386326 198

So basically, predict being called when this._modelFetchProgress >= 0.999999 but the model is still being fetched results in the error above.
Adicional info:

URL of the model used in the log above

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

The error happens in the line bellow:
https://github.com/HighCWu/waifu2x-tfjs/blob/2a31b376d5d2f43c9890d335251cce9259bd6828/src/lib/predictor.ts#L116
Investigating it appears the issue is happening because of some weird behavior of the fetch-progress library and the condition bellow:
https://github.com/HighCWu/waifu2x-tfjs/blob/2a31b376d5d2f43c9890d335251cce9259bd6828/src/lib/predictor.ts#L151
Adding a log to the onProgress callback I'm seeing that the model is still being downloaded even after this._modelFetchProgress > 1.
onProgress: (progress) => {
    this._modelFetchProgress = Math.max(0, progress.transferred / progress.total - 0.001);
    console.log("onProgress", this._modelFetchProgress, progress.transferred, progress.total, progress.remaining, progress.percentage)
    this._modelFetchCallback(this._modelFetchProgress);
},

onProgress 0.8614218191299012 2097152 2431701 334549 86
onProgress 0.9012865064413758 2194091 2431701 237610 90
onProgress 1.0770272739123767 2621440 2431701 -189739 108
onProgress 1.579496944320046 3843296 2431701 -1411595 158
onProgress 1.9803402223381905 4818027 2431701 -2386326 198

So basically, predict being called when this._modelFetchProgress >= 0.999999 but the model is still being fetched results in the error above.
Adicional info:

URL of the model used in the log above

It looks like the server returned an incorrect file size. I haven't encountered this problem yet. Do you have any ideas on this issue. I just guessed that fetch did not get the correct file length

Since I'm using Github pages it would be a bug on Github's part if that was the problem. I'm not sure if that's the case. I doubled checked with curl and the returned gzipped size seems to be correct.
$ curl --head -H 'Accept-Encoding: gzip' https://gqgs.github.io/3x3-generator/tfjs_models/scale2.0x_model.json -o /dev/null  | grep content-length
content-length: 2431701

This is the correct value according to RFC2616.
It appears to me that the ReadableStream in fetch-progress is accumulating the size of the uncompressed data while the "Content-Length" header refers to the compressed size as described above. This would explain the values being returned by the library.
https://github.com/samundrak/fetch-progress/blob/86663472ac11ead82a6b2cfd62f5465161df02aa/index.js#L23
https://github.com/samundrak/fetch-progress/blob/86663472ac11ead82a6b2cfd62f5465161df02aa/Progress.js#L26

I created an issue upstream but I'm not sure if that library is being maintained anymore.

In this case, maybe I should judge the end of fetch directly instead of judging that the download is complete based on the progress.

Yeah I think that will work. Just awaiting the _modelFetchPromise unconditionally should fix the issue I think.

Thanks. I‘ll try to fix it later.


Installation/import problem -- 'xfeatures2d module is not available'

Discussed in https://github.com/MathOnco/valis/discussions/111

Originally posted by stevenjayfrank April  3, 2024
I've hit a dead end attempting to import Valis following installation.  Importing results in an AttributeError: module 'cv2' has no attribute 'xfeatures2d'.  This is not a new problem and the most common solution is to install opencv-contrib-python rather than opencv-python.  Unfortunately the xfeatures2d seems to be unavailable in any opencv distribution compatible with current (or even recent) version of Python.  I've tried installing under Windows 11 (which had even more problems) and Linux.  Suggestions appreciated.

Thanks for replying, Chandler!  I generally use Python 3.11 but have also tried 3.10, and have installed opencv-contrib-python as well opencv-contrib-python-headless and plain old opencv-python, followed by reinstallation of valis each time.  None of the opencv versions I've used seems to contain xfeatures2d.  All are based on opencv version <IP_ADDRESS>.  Could you tell me which version of opencv you're using successfully?
This StackExchange post reports that xfeatures2d works only on versions <IP_ADDRESS> or earlier, and those are no longer available for installation with pip.  I also tried cloning from , which does contain the function, but you can't install directly from the git -- you have to use CMake, and while I was able to make the build, I still haven't been able to make it visible to Python.

Hi @stevenjayfrank,
It looks like the version of opencv-contrib-python-headless I've been using is also <IP_ADDRESS>, so I'm not entirely what's going on. Could you try creating an environment using the  poetry.lock file? You can also check out the pyproject.toml, which can be found here, but you'll probably want to edit the info in the [tool.poetry] section, and remove line 8 (packages = [{include = "valis"}]), which looks for valis locally.  Creating the environment this way does require installing  poetry, but the lock file has the exact ("pinned") versions of each package for each OS. That lock file is used to create the virtual environments during testing, and many tests involve importing xfeatures2d. Testing is done locally on M1 mac, as well as on Ubuntu, Windows, and Intel Mac OS when the code gets pushed to github. All that to say that the lock file has been tested on different OS with Python 3.9-3.11, and so should create a virtual environment that includes xfeatures2d. Please try that out and let me know how it goes.
Best,
-Chandler

Thank you, I will try that.  In the meantime, I've been thinking maybe it's an Anaconda issue, so tried installing valis using PyCharm with Python 3.11 under Windows 11.  Installation using pip install valis-wsi' or pip install git+https://github.com/MathOnco/valis.gitnearly completes, but fails at the end when attempting to build a wheel forscikit-image-- even whenscikit-image` has previously been installed.

Hi Chandler -- I'm new to Poetry but have given it a whirl in Linux, and
created a new project called poetry-valis.  I don't know how to create an
environment solely from the poetry.lock file, so I included your
pyproject.toml file with line 8 removed, and ran install.  Everything seems
to have installed correctly, and I activated the environment with:
source $(poetry env info --path)/bin/activate.
If I now run Python or Jupyter Lab from within the environment (e.g.,
'poetry run python'), there's no valis package to import.  In fact, if I
list packages with 'poetry show', there are many installed packages but
valis isn't among them.  I'm probably missing something really obvious ...
Thanks,
Steve
On Fri, Apr 5, 2024 at 9:09 AM Chandler Gatenbee @.***>
wrote:

Hi @stevenjayfrank https://github.com/stevenjayfrank,
It looks like the version of opencv-contrib-python-headless I've been
using is also <IP_ADDRESS>, so I'm not entirely what's going on. Could you try
creating an environment using the poetry.lock
https://github.com/MathOnco/valis/blob/main/poetry.lock file? You can
also check out the pyproject.toml, which can be found here
https://github.com/MathOnco/valis/blob/main/pyproject.toml, but you'll
probably want to edit the info in the [tool.poetry] section, and remove
line 8 (packages = [{include = "valis"}]), which looks for valis locally.
Creating the environment this way does require installing poetry
https://python-poetry.org/, but the lock file has the exact ("pinned")
versions of each package for each OS. That lock file is used to create the
virtual environments during testing, and many tests involve importing
xfeatures2d. Testing is done locally on M1 mac, as well as on Ubuntu,
Windows, and Intel Mac OS when the code gets pushed to github. All that to
say that the lock file has been tested on different OS with Python
3.9-3.11, and so should create a virtual environment that includes
xfeatures2d. Please try that out and let me know how it goes.
Best,
-Chandler
—
Reply to this email directly, view it on GitHub
https://github.com/MathOnco/valis/issues/112#issuecomment-2039767678,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMFJEHH4BJHYI6NQGSUA2V3Y32PCLAVCNFSM6AAAAABFVCKPHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZZG43DONRXHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I'm new to Poetry but have given it a whirl in Linux, and created a new project called poetry-valis.  I don't know how to create an environment solely from the poetry.lock file, so I included your pyproject.toml file with line 8 removed, and ran install.  Everything seems to have installed correctly, and I activated the environment with source $(poetry env info --path)/bin/activate.
If I now run Python or Jupyter Lab from within the environment (e.g., poetry run python), there's no valis package to import.  In fact, if I list packages with poetry show, there are many installed packages but valis isn't among them.  I'm probably missing something really obvious ...

Hi @stevenjayfrank,
Sorry about that, I guess I my response had focused mainly on creating an environment that has opencv with xfeatures2d. To add valis to the environment, move to the directory that has the pyproject.toml and run poetry add valis-wsi in the terminal. That should install valis to the environment and also update poetry.lock and  pyproject.toml. Please try that out and let me know how it goes.
Best,
-Chandler

Thanks, Chandler, got it working (also needed to run poetry update) -- really appreciate your help!  Fantastic capabilities and extremely well documented.


Controllers from external libraries are not recognized

Hi, not sure if this is a known issue.
When I use a controller from an external library, such as this one, the LSP does not recognized it.
I'm loading this external library from an importmap btw.
This is the error I get in my erb file:
Stimulus LSP : "nested-form" isn't a valid Stimulus controller. Did you mean "site-selector"? [stimulus.controller.invalid]
Also, If I create my own controller and inherit from an external one, I'll get a similar error:
export default class MyController extends NestedForm {
   ...
}

Otherwise this is super useful so thanks for creating it!

I've noticed this as well with https://github.com/afcapel/stimulus-autocomplete
I'm using jsbundling-rails and sprockets-rails. I'm using Cursor.

index.js
import { Autocomplete } from 'stimulus-autocomplete'
application.register('autocomplete', Autocomplete)

Hey @smarquez1 and @kcdragon, thanks for reporting! I think I know what the issue is here. I'll take a look if I can fix it, thanks!


[tox4] pip_compile gets called twice sometimes

there's no reason to pip compile the same environment twice in a single session
the example/pyproj nodeps environment exhibits this bug

this occurs when using a non-standard index url or extra index url... since pip-compile doesn't seem to respect the PIP_INDEX_URL or PIP_EXTRA_INDEX_URL variable, these must be passed via pip_compile_opts, however this changes how tox 4 sees the venv characteristics from the newly generated lock file (since now the index is specified in a text file), forcing a rebuild.
the rebuild calls pip-compile again.
subsequent invocations only call pip-compile once, so i'm not convinced this is a critical bug at this point.


state.persist with defined default_value does not initialize pyscript.

Hello, I have a trouble with using a state.persist with a default value.
I expected, that whenever I register new state to be persistent, the attribute of pyscript module will be available. It looks like the attribute of the pyscript module does not get initialize if I do provide a default value, though.
import pyscript

DEVICE_ID = "xyz"

state.persist('pyscript.something_state', default_value=0)

@event_trigger("zha_event", f"device_id == '{DEVICE_ID}' and command == 'single'")
def switch_single(**kwargs):
    pyscript.something_state += 1
    log.info(f"Got clicked {pyscript.something_state} times")

Yields:
pyscript.something_state += 1
^
AttributeError: module 'pyscript' has no attribute 'something_state'

I suppose I might use try/except to initialize it on my own (as mentioned in https://github.com/custom-components/pyscript/issues/96#issuecomment-735214382 by @dlashua), but shouldn't it be done by state.persist(..., default_value=<value>)?

That is a python error. if you assign a value defined in an other scope this one is assumed local while if you only read it it's assume global by default.
Add the line bellow after your def
global pyscript.something_state
For more details, you can have a look at
https://docs.python.org/3/reference/simple_stmts.html#the-global-statement

Hey @dominig, that would be UnboundLocalError, wouldn't it?

Remember that state variable are typed as string.
To do math on them you must convert in as int
try with the global line
pyscript.something_state= int(pyscript.something_state)+1


Rename DataTree's "ds" and "data" to "dataset"

.ds is kept around as a soft-deprecated alias to facilitate the transition from xarray-contrib/datatree, though I verified that all tests pass without it.

[x] Closes https://github.com/pydata/xarray/issues/9458
[x] Tests added

@flamingbear this one is going to mess up your docs too 😅

@shoyer perhaps we should have left ds as a valid argument to DataTree, otherwise that's also a breaking change.

@shoyer perhaps we should have left ds as a valid argument to DataTree, otherwise that's also a breaking change.

You mean data?
I could add that back in, though I guess that will break much less code than the .ds rename. If we do that, we'll definitely want to add a FutureWarning.

You mean data?

Yes data, sorry.

I guess that will break much less code than the .ds rename.

Hmm yeah fair point - most users will probably be constructing using from_dict or open_datatree.


Fix zookeeper not exist key error

Signed-off-by: Chun Chen<EMAIL_ADDRESS>

The origin motivation of this PR is that libnetwork seems depend on store.ErrKeyNotFound, see https://github.com/docker/libnetwork/blob/master/bitseq/sequence.go#L58.

Hi @chenchun, thanks for the contribution. Just a minor comment but LGTM

@abronan Thanks for reviewing, updated the patch.

Thanks @chenchun! LGTM


Added Budget App

It solves issue #1239
It's working video,
https://user-images.githubusercontent.com/75881393/116991179-cceb4a80-acf1-11eb-89d2-8777fbf2faa5.mp4

Please @ridsuteri @urvashi-code1255 @991rajat review this PR.
And I have made the changes which you @ridsuteri  have said .

good work @K-jais :)


Update generate script to backup CHANGELOG files

You don't need to backup the root or core CHANGELOGs, right?

No, they are not overwritten


group_limit and page search parameters not give output

Description
Unable to use page , groupLimit etc as they asked int type in searchparameter but in response getting errors like
"Parameter `group_limit' must be an unsigned integer."
Steps to reproduce
add searchParameters with page: 1 and grouplimit: 1

Expected Behavior
it should give response based on page and group_limit screenshot added below

Actual Behavior

here in SearchParameters i added page: 1, groupLimit: 1 while generate search parameter like this
let searchParameters = SearchParameters(q: parameters.q, queryBy: "productName,brandTitle,categoryList.categoryName,colourName", sortBy: "availableQuantity:desc,_text_match:desc,popularScore:desc", page: 1, perPage: 10, groupBy: "parentProductId", groupLimit: 1, excludeFields: "embedding,product_name_vector,detailDescription_vector,searchAbleAttributes,detailDescription,images.extraLarge,images.large,images.small")
but while api call curl generate and it become true value for page and group_limit  and give error like
{
"message": "Parameter group_limit must be an unsigned integer."
}
and
{
"message": "Parameter page must be an unsigned integer."
}
Metadata
Typesense Version:
1.0.0
OS:
iOS Version 18.0.1

@phiHero  getting this error from logger
Request<PHONE_NUMBER>820: Request to https://xrvu2bd0fjqz3y8ep-1.a1.typesense.net:443/collections/staging_sold_products/documents/search?per_page=30&page=true&query_by=productName,brandTitle,categoryList.categoryName,colourName&group_limit=30&sort_by=availableQuantity:desc,_text_match:desc,popularScore:desc&exclude_fields=embedding,product_name_vector,detailDescription_vector,searchAbleAttributes,detailDescription,images.extraLarge,images.large,images.small&q=Men&group_by=parentProductId was made. Response Code was 400
Error searching products: clientError(code: 400, desc: "Request failed with HTTP code 400 | Server said: Parameter page must be an unsigned integer.")
for request i am passing page:1  and groupLimit: 30 which you can refer from below attachment

@NikunjChaudhari  Does this also happen when you set the value to an integer other than 1? I'm thinking if the number 1 is being converted to true and 0 converted to false.

OK found the bug! Fix should be right away

@NikunjChaudhari could verify with v1.0.0-rc.1?

@phiHero yes i verified its working fine here are success logs
Request<PHONE_NUMBER>631: Request to https://xrvu2bd0fjqz3y8ep-1.a1.typesense.net:443/collections/staging_sold_products/documents/search?exclude_fields=embedding,product_name_vector,detailDescription_vector,searchAbleAttributes,detailDescription,images.extraLarge,images.large,images.small&sort_by=availableQuantity:desc,_text_match:desc,popularScore:desc&group_limit=1&page=1&query_by=productName,brandTitle,categoryList.categoryName,colourName&group_by=parentProductId&q=Men&per_page=30 was made. Response Code was 200
@phiHero thank you for quick response and resolved it


List of previews can't be scroll on tablet browser

@Aplies reported in leaflet-extras/leaflet-providers#120:

Hello !!
On Android tablet, I can't scroll the previews list. It detects the scroll on the map and not on the previews list. I tried to play with the CSS "z-index", "overflow", ect... But it doesn't work. I know the previews implementation is just a demo but i'm not really good in CSS tricks.
(I tried on firefox android, chrome android, default android browser)
It's not really an issue but If someone has an idea to help me... thanks in advance.
possibly related: Leaflet/Leaflet#2882

Released<EMAIL_ADDRESS>


Update Skiko to 0.7.91

https://github.com/JetBrains/skiko/compare/v0.7.90...v0.7.91

Should be merged after beta02

Should be merged after beta02

Why? I thought after the beta it will be a version with m122

Why? I thought after the beta it will be a version with m122

To many changes to include them after a tested build (1.6.0-dev1405)


[Bug]: Improving the UI of Book Categories, New Arrivals, Top Trending Books and Featured Author section...

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The UI of these sections can be implemented with innovative cards having title, images...providing a carousel wherever needed...providing hover effects to each card..
Expected behavior
The UI of Book Categories, New Arrivals , Top Trending Books and Featured Author can be have cards with proper margins and spacing having border radius, hover effect, sliding motion in carousel with timeout function which is automated...
Add ScreenShots

On which device are you experiencing this bug?
Chrome
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

Is there an existing issue for this?

[x]  I have searched the existing issues

Describe the bug
The UI of these sections can be implemented with innovative cards having title, images...providing a carousel wherever needed...providing hover effects to each card..
Expected behavior
The UI of Book Categories, New Arrivals , Top Trending Books and Featured Author can be have cards with proper margins and spacing having border radius, hover effect, sliding motion in carousel with timeout function which is automated...
Add ScreenShots

On which device are you experiencing this bug?
Chrome
Record

[x]  I have read the Contributing Guidelines
[x]  I'm a GSSOC'24 contributor
[x]  I have starred the repository

Hello @tech-dhawal-03 , Go for it
All the Best

I have started working on the issue already...will complete asap....


Chat - Unexpected error when completing payment request.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to URL https://staging.new.expensify.com
Login with gmail account
Account A requests money from account B
Account B complete the requested payment.

Expected Result:
No error message should be displayed after complete payment.
Actual Result:
Unexpected error message occurs after payment is completed.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/214699532-f970485f-b4b0-430c-9324-6454ea283ede.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Could be the same root of cause https://github.com/Expensify/App/issues/14548

That does seem to be related. It should be fixed now though. Can you please retest?

@luacmartins
I am seeing this on Desktop now.. Related?
https://user-images.githubusercontent.com/43995119/214701946-5f283e5b-a8fe-4227-b019-0888124b22be.mp4

Reproducing locally with logs to see if this is a back end issue.

@luacmartins @Luke9389 I dont see anything in console, but in case you need logs, this is account used on my side<EMAIL_ADDRESS>

Thanks for that info @mvtglobally.
@luacmartins these are the logs I'm getting
2023-01-25T22:30:10.654318+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [hmmm] Throw ExpException - 0f7b9e631cada45edbf331aaf860f4a5 ~~ message: '402 Missing clientID' exceptionMessage: 'Auth PayMoneyRequest returned an error' exceptionFile: '/vagrant/Web-Expensify/lib/Auth.php' exceptionLine: '121' exceptionCode: '402'
2023-01-25T22:30:10.654443+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] StackTrace start
2023-01-25T22:30:10.654559+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 0/3. file '/vagrant/Web-Expensify/lib/Auth.php' function '_standardResponseHandler' line '6773'
2023-01-25T22:30:10.654649+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 1/3. file '/vagrant/Web-Expensify/lib/ReportAPI.php' function 'payMoneyRequest' line '4076'
2023-01-25T22:30:10.654685+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 2/3. file '/vagrant/Web-Expensify/lib/ReportAPI.php' function 'payMoneyRequest' line '4131'
2023-01-25T22:30:10.654713+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 3/3. file '/vagrant/Web-Expensify/api.php' function 'payMoneyRequestElsewhere' line '2843'
2023-01-25T22:30:10.654776+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] StackTrace end
2023-01-25T22:30:10.655258+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [warn] [OOPS!] API Threw: Auth PayMoneyRequest returned an error ExpException - 0f7b9e631cada45edbf331aaf860f4a5 ~~ message: '402 Missing clientID' exceptionMessage: 'Auth PayMoneyRequest returned an error' exceptionFile: '/vagrant/Web-Expensify/lib/Auth.php' exceptionLine: '121' exceptionCode: '402'
2023-01-25T22:30:10.655377+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [dbug] _send( expensidev2004.web.log.warn:1|c )
2023-01-25T22:30:10.671081+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] DB_Analytics - Connecting to database. ~~ attemptNumber: '1' host: '<IP_ADDRESS>' dbName: 'analytics'
2023-01-25T22:30:10.699538+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [benchmark] Stop timing 'DB Connect DB_Analytics' (took 0.0302 seconds)
2023-01-25T22:30:10.699621+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [dbug] DB_Analytics - INSERT INTO serverErrors( created, uuid, message, email, accountID, requestID, source ) VALUES( '2023-01-25 22:30:10', 'WARN_0e572d904e298e98b87914c754dd74f1', '[OOPS!] API Threw: Auth PayMoneyRequest returned an error ExpException - 0f7b9e631cada45edbf331aaf860f4a5'<EMAIL_ADDRESS>null, '8FwZ2U', 'api' );
2023-01-25T22:30:10.699659+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] Benchmark started:DB_Analytics - Executing query
2023-01-25T22:30:10.749430+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] Benchmark finished:DB_Analytics - Executing query ~~ time: '0.049474000930786'
2023-01-25T22:30:10.761684+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [push] Push_Service - Sending event ~~ channel: '[0: 'public-debugserverid5e9f713e07e22-7c516c908f6d4b57abbed4262e48a5ae']' eventName: 'debug' eventData: '{"level":"warn","message":"[OOPS!] API Threw: Auth PayMoneyRequest returned an error ExpException - 0f7b9e631cada45edbf331aaf860f4a5 ~~ message: '402 Missing clientID' exceptionMessage: 'Auth PayMoneyRequest returned an error' exceptionFile: '\/vagrant\/Web-Expensify\/lib\/Auth.php' exceptionLine: '121' exceptionCode: '402'"}'
2023-01-25T22:30:10.761779+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] StackTrace start
2023-01-25T22:30:10.761810+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 0/3. file '/vagrant/Web-Expensify/lib/Auth.php' function '_standardResponseHandler' line '6773'
2023-01-25T22:30:10.761865+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 1/3. file '/vagrant/Web-Expensify/lib/ReportAPI.php' function 'payMoneyRequest' line '4076'
2023-01-25T22:30:10.761927+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 2/3. file '/vagrant/Web-Expensify/lib/ReportAPI.php' function 'payMoneyRequest' line '4131'
2023-01-25T22:30:10.761952+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] 3/3. file '/vagrant/Web-Expensify/api.php' function 'payMoneyRequestElsewhere' line '2843'
2023-01-25T22:30:10.761964+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] [trace] StackTrace end
2023-01-25T22:30:10.762751+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] StoreUtils - Clearing all the stores.
2023-01-25T22:30:10.763715+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] TransactionStore cache fully cleared
2023-01-25T22:30:10.763903+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] ReportStore cache cleared
2023-01-25T22:30:10.764481+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] NVPStore - clear cache
2023-01-25T22:30:10.764593+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] NVPStore - clear cache
2023-01-25T22:30:10.767834+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] SharedInNVPStore - clear cache
2023-01-25T22:30:10.769021+00:00 expensidev2004 php-fpm: 8FwZ2U /api.php<EMAIL_ADDRESS>!ecash1.2.59-1! ?api? [info] ReportDuplicatedTransactionsStore - Cache cleared

Looks like we're failing to send a clientID with that request.

@Luke9389 Should we log a different issue for this or you want to track here ?

Let's track this one here until they're able to get some logs on the other issue.
I'm not convinced they're the same root cause yet.

Looks like we're failing to send a clientID with that request.

@Luke9389 I think this should have been fixed by https://github.com/Expensify/Auth/pull/7440, – clientID was made optional in PayMoneyRequest. Since that's been deployed, can we re-test this?

@roryabraham I am seeing it right now on this account across all requests. It seem to be specific to account. Since it's the same build, anything else I need to do to verify it?

@roryabraham that sure does seem related. @mvtglobally are you testing with a new payment request each time?

@Luke9389 Yes, Tried a brand new request from an account I didn't have requests from before just now. Tried to pay with<EMAIL_ADDRESS>and get the same blank screen

I'm unable to reproduce this issue on any platform
https://user-images.githubusercontent.com/22219519/214721902-3549911d-8ce5-4f54-9a6c-f16dbcbab85a.mov

Interesting @luacmartins, I don't see an option for you that says "I'll settle up elsewhere". Not sure why that's the case.
I'm also seeing quite a few of these errors in the logs from the past hour or so.
https://www.expensify.com/_devportal/tools/logSearch/#sort=desc&size=10000&query=blob%3A"402 Missing clientID" AND timestamp%3A[2023-01-25T00%3A00 TO 2023-01-26T23%3A59]
@roryabraham is it possible that PR didn't fix this after all? Or maybe we need a front end change as well?

@Luke9389 you can see that at around 0:19.
I couldn't find anything out of the ordinary in the logs for<EMAIL_ADDRESS>The logs Luke shared above do look suspicious

Actualyl @Luke9389 those logs are from earlier today, all before 2023-01-25 19:58 UTC. Auth deploy was done at around 2023-01-25 21:06 UTC and I can't find any more instances of that error in the logs after that time

Oh gotcha. Interesting. I just saw your ping in the thread so we'll discuss further there.

https://expensify.slack.com/archives/C07J32337/p1674693393153289?thread_ts=1674692873.600099&cid=C07J32337
Resolved with auth deploy

Thanks @thienlnam. It is true that the unexpected error bug that we saw in the original description has been resolved.
Later in the thread we began discussing a blank screen, which may or may not be related.
@mvtglobally, can you open a new issue for the blank screen problem with reproduction steps?
We feel it's best to separate these two issues.

sure. I will ask team if they can repro and log with the steps


Unable to run without error "failed to unshare namespaces"

I'm a brand new to img, and am trying to set up a platform that will build docker containers on AWS Fargate, as a Jenkins agent that build docker containers, runs AWS CLI, and Serverless.
When trying to use the prebuilt image, I get:
docker run -it r.j3ss.co/img pull ubuntu
nsenter: failed to unshare namespaces: Operation not permitted

When trying to use a vanilla ubuntu container and install img, I get:
root@841299bafb81:/# img pull ubuntu
Pulling ubuntu...
Error: failed to unmount /tmp/containerd-mount305145024: operation not permitted: failed to mount /tmp/containerd-mount305145024: operation not permitted

I have installed the tools required in the readme, but I must be missing something.

Hi @MikeKroell,
I think you missed the following docker run options :
docker run -it \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
r.j3ss.co/img pull ubuntu

See: https://github.com/genuinetools/img#running-with-docker

Thanks for the response. I was looking to run on fargate, but with the additional commands, I won't be able to as far as I know.

@MikeKroell I'm running into this issue in 2022! Do you have a workaround for building docker images on Jenkins Fargate agent?

I have also the same problem but during build.
I've opened the issue https://github.com/genuinetools/img/issues/364

@cristian98149  @MikeKroell Were you able to get this working with img on aws fargate?
i think, it fails due to the reason that fargate doesn't allow to run privileged containers.
https://aws.amazon.com/blogs/containers/building-container-images-on-amazon-ecs-on-aws-fargate/


commit 5-1

I get this list of errors and i cant do anything else and the only way to make it works again is to undo this step and "mrt remove iron-router" and "meteor remove iron-router"
Uncaught TypeError: Cannot read property 'prototype' of undefined helpers.js:140
Uncaught TypeError: undefined is not a function router.js:61
Uncaught TypeError: Cannot read property 'RouteController' of undefined global-imports.js?784bc180a149e4c10dff977a7f114df67d9952c6:3
Uncaught ReferenceError: Template is not defined template.layout.js?a661fe5e45ce239653a65a819a9d0f6d65b37dca:2
Uncaught ReferenceError: Template is not defined template.post_item.js?117ff25e45e84135568b431c39e8464515e2568c:2
Uncaught ReferenceError: Template is not defined template.posts_list.js?c76dc4345182d4f8cdf992ec6a3f871ddd7166df:2
Uncaught ReferenceError: Router is not defined router.js?66d9427c57526d5f237e08b82b6a7024e16c9743:1
Uncaught ReferenceError: Template is not defined post_item.js?53ea8992b1c61db7e7af3d8a1a46cc4950d6392b:1
Uncaught ReferenceError: Template is not defined posts_list.js?3ac39470eda3cad166ece566024945ce99a4828e:1
Uncaught ReferenceError: Meteor is not defined posts.js?84fb658b3c7edf2ab31caa27648e302502c71325:1
Uncaught ReferenceError: Meteor is not defined main.js?0828a50a027eb25fabd37fccb730e99cc80c48c5:1
Exception in defer callback: TypeError: Cannot read property 'insert' of undefined
    at Utils.extend.autoRender (http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1636:17)
    at http://localhost:3000/packages/iron-router.js?af9f4791b8af4582a37d93bcade1eed163a976a8:1465:16
    at _.extend.withValue (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:945:17)
    at http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:430:45
    at Object.<anonymous> (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:973:22)
    at onGlobalMessage (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:367:23) debug.js:41```

Thanks, was wondering why it wasn't working


Upgrade to Python 3?

Has there been any thought about implementing staNMF in python 3? I am assuming we are restricted to 2.7 because of SPAMS?

Yeah, that's one thing I've considered. It wouldn't be hard to implement it in python3 except for SPAMS. I'm pretty sure SPAMS is only available for python 2.7. There's also the possibility of trying to implement it in python 3 using a different NMF package, and comparing results


Global APT update (package update, automatic package update) causes memory to leak and eventual crash

I have been running this install for weeks, I've had this memory leak in proxmox since I first installed it, wondering if there is anyway I can disable automatic apt updates (this is done by cron I believe) as every time it updates the package list, my hassos vm's memory explodes causing several issues. this is just the apt update doing this, not even an upgrade.

I feel like I might have the same issue. My VM keep crashing at specific time, eg 8:00.

Woah, I have to say. I really, really truly though I was alone. Let me check my current build and see if it persisted. I FULLY rebuilt the stack, reflashed the media with proxmox, reinstalled hassio (home assistant) restored snapshot, and it persisted. I wiped away home assistant, then fully rebuilt home assistant. It seems to me that it has something to do with the dns of the hassos instance. I was setting up network wide dns on the hassos instance, and THAT was what was screwing it up. FUTHERMORE, uninstalling the dns, be it pi-hold or whatever, DID NOT SOLVE THE ISSUE... I had to rebuild the stack once more. New, fresh install of hassos, set EVERYTHING up how it was. (You can even have both instances open at once if you're tricky and change the port on one) move over your config files, BUT DO NOT TOUCH ANYTHING DNS RELATED LIKE PI-HOLE OR ADGUARD.
You should be fine.
You have know, you will go down this rabbit hole, and you may never come out of it. I nixxed alot of my auxillierary smart home stuff, just too much of a head ache. and after @whiskerz007 (knows) 9 months if it doing exactly as you and I have witnessed, and for me personally, zero other souls alive to help, or that could help....
I did what I had to do. @orditeck

Is Proxmox DNS configured to use the Home Assistant VM addon?

In my case it seemed very, very specific to my use case. I still hardly believe it but I don't see anything else and it does make sense.
I have CC2531 plugged to the host. The VM use this device for zigbee2mqtt. The USB device was in a metal electric box.
My only current hypothesis is that I know the USB dongle sparked at least once on the electric box, I saw it. I think that the host was dropping the USB connection to protect itself, leading in the VM to be hanging for a return from the host, leading it to become unresponsive.
I moved the dongle outside the box after I wrote here and never got an issue after that...


error TS5042: Option 'project' cannot be mixed with source files on a command line.

Executing task: tsc  -p "g:\WEB PRO\serve\tsconfig.json" <
error TS5042: Option 'project' cannot be mixed with source files on a command line.

Same here. Typescript version is 2.5.2

@cyl520134 Are you using our task system or typing the command in the terminal ?

hi @cyl520134!
I'm using task system.
Finally I solved the ussue by moving to the shell task:
{             "taskName": "build-ts",             "type": "shell",             "command": "tsc -p tsconfig.json",             "problemMatcher": [                 "$tsc"             ],             "group": {                 "kind": "build",                 "isDefault": true            },             "dependsOn": [                 "copy-json"             ] }

@andrew-veresov since tsc is a batch file (cmd) it needs to be executed as a shell task. Process tasks can only execute exe under Windows.
I will close the issue. @cyl520134 please ping if you still see the problem even when using a shell task.


Fix typos

Spell-checked all the things :-).

Awesome! :)

Done.

Great, I don't know English as well to review this PR though :)


issue in response while training

i have problem at the time of testing trained data.it shows me Response object but entities is a empty array and intent contains "text" as your query and "name" as "greet". how can i get the full response??

" http://localhost:8090/api/v2/rasa/parse?q= " this gives status 200(call success) but data in response is
{"entities":[],"intent":{"confidence":1,"name":"None"},"text":"developer here"}.
can you help me with this and let me what is the problem i am facing?

Were you able to run the same test directly to rasa_nlu and validate the response? I doubt it is the issue with ui.

in the taining page i am getting all the data. but in the aside page when we ask query the response is the problem

@akshaysm Is the response not showing up when you hit the rasa_nlu at 5000 port directly? This will tell if the issue is with rasa_nlu or rasa-ui. Can you check that?

Closing this due to inactivity


new module: table

code

[ ] add responsive variation with scroll and max-width
[ ] add responsive variation like this pen: http://codepen.io/dominikwilkowski/pen/eNvwXG

uikit 1

Design guide

Hey @dominikwilkowski I've created a PR #202 to address this.

While implementing the responsive table styles I noticed that if the column header was too long it would break the display on smaller devices. I added a small change to the responsive styles that will cause the label to appear as a block level element on it's own row on mobiles.
Issue

Fix

This will likely have limitations on how long th should be.

moved to: https://community.service.gov.au/t/table/92


Visual Studio Community 2015 crashes

Hi,
I installed the VisualRust extension for my Visual Studio Community 2015 Edition on Windows 10. I am just learning the Rust programming language so I wrote this little program:
use std::io;

fn main() {
    let mut stdin = io::stdin();
    let input = &mut String::new();

    loop {
        input.clear();
        stdin.read_line(input);
        println!("{}", input);
    }
}

I can start that program with Visual Studio but as soon as I close it, Visual Studio crashes. Is this something related to VisualRust or has it to do with Visual Studio in general?

VisualRust receives exit code "030000000472", which doesn't fit into UInt32, and crashes. It's a weird exit code, but really there's no need to crash the IDE... :-)

Thanks for the quick response! Nice to see that my first steps in Rust turn into something useful.
Looking forward to the fix! :smiley:

+1, have the same issue with the latest stable release (using exactly the same snippet found on SO). Is AppVeyor build already updated for this?

Sorry, this is not yet fixed in VisualRust. The problem seems to be in the original Microsoft/MIEngine code used by VisualRust to interact with VS. I'll try to open a pull request there soon...

Merged now. AppVeyor build 106 has the fix.


Firebird: Conversion of DECIMAL to INTEGER if a stored procedure parameter type

Description
As reported in Firebird repository, the problem seems to be related to DBeaver.
https://github.com/FirebirdSQL/firebird/issues/7457
DBeaver Version
22.3.1
Operating System
macOS Ventura 13.1 / Windows 11 Pro
Database and driver

Firebird <IP_ADDRESS>601
Jaybird JCA/JDBC 4.0.0

Steps to reproduce

Create procedure with above script
View scripts source with DBeaver explorer

Additional context
No response

Look like a maintainer of Firebird already found the issue with DBeaver:  https://github.com/FirebirdSQL/firebird/issues/7457#issuecomment-1400483932

See org.firebirdsql.jdbc.metadata.TypeMetaData#getDataTypeName for how Jaybird infers the type name for its metadata methods.

Thanks for the report.
Our FireBirdFieldType class is outdated.

@LonwoLonwo Can you tell if this will be fixed soon?

It definitely will not be fixed soon. We have much work to do. You can see the tickets count. Maybe three months, six.
But we are open to contributions :)


Changed the Placement of Dark Mode Toggle and CSS Fixes

Changes

Changed the Placement of Dark Mode Toggle.
Replaced a Few Images With Fontawsome Icons (It will decrease the size of the project and increase the page speed).
Added a Few Hover effects to make every button look more responsive on hover.

Happy Codding ❤

Nice


Error upgrading BeaconState

Describe the bug
There is a TODO when upgrading state from capella to deneb: https://github.com/ChainSafe/lodestar/blob/8ed9109ddd394e6406c3c4feefb9140d71e88082/packages/state-transition/src/slot/upgradeStateToDeneb.ts#L28
if we migrate this way:
stateDeneb.latestExecutionPayloadHeader.excessBlobGas = BigInt(0);
  stateDeneb.latestExecutionPayloadHeader.blobGasUsed = BigInt(0);

then got this error in spec test:
Error: LeafNode has no left node
 ❯ LeafNode.get left [as left] ../../node_modules/@chainsafe/ssz/node_modules/@chainsafe/persistent-merkle-tree/lib/node.js:109:15
 ❯ Object.getNodeAtDepth ../../node_modules/@chainsafe/ssz/node_modules/@chainsafe/persistent-merkle-tree/lib/tree.js:280:44
 ❯ CustomContainerTreeViewDU.set [as excessBlobGas] ../../node_modules/@chainsafe/ssz/src/viewDU/container.ts:193:52
 ❯ Module.upgradeStateToDeneb ../state-transition/src/slot/upgradeStateToDeneb.ts:34:56

Expected behavior
no error
Steps to reproduce
No response
Additional context
No response
Operating system
Linux
Lodestar version or commit hash
v1.18.0

this is because latestExecutionPayloadHeader in capella has 15 fields, deneb adds 2 fields which makes it 17 fields, which makes the merkle tree to grow to 1 more depth
the current way we do it is actually not a work around, it's a very nice way to create a fresh merkle tree for latestExecutionPayloadHeader considering how we implement toViewDU in CompositeType:
  toViewDU(value: V): TVDU {
    const node = this.value_toTree(value);
    return this.getViewDU(node);
  }

it creates a fresh merkle tree from the serialized Uint8Array https://github.com/ChainSafe/ssz/blob/3a1c8dc54a571dfed4cc426810472627b334e9b9/packages/ssz/src/type/abstract.ts#L95
value_toTree(value: V): Node {
  // TODO: Un-performant path but useful for prototyping. Overwrite in Type if performance is important
  const uint8Array = new Uint8Array(this.value_serializedSize(value));
  const dataView = new DataView(uint8Array.buffer, uint8Array.byteOffset, uint8Array.byteLength);
  this.value_serializeToBytes({uint8Array, dataView}, 0, value);
  return this.tree_deserializeFromBytes({uint8Array, dataView}, 0, uint8Array.length);
}

I'd remove the TODO and add this explanation instead of making any code change unless you have any better ideas @wemeetagain @g11tech

Yes we can manually edit the tree like so:
before:
          *
        /   \
      1 2 3 4 ...

after:
            *
           / \
          *   z(n)
        /   \
      1 2 3 4 ...

Something like
const oldHeaderNode = stateDeneb.latestExecutionPayloadHeader.node;
const oldHeaderNodeDepth = stateDeneb.latestExecutionPayloadHeader.type.depth;
const newHeaderNode = new BranchNode(oldHeaderNode, zeroNode(oldHeaderNodeDepth));

stateElectra.latestExecutionPayloadHeader = ssz.electra.ExecutionPayloadHeader.getViewDU(newHeaderNode);

nice, will add this to ssz so lodestar does not need to deal with this

super nice :+1:


iForm interface minimal requirements

What are the minimal assembly requirements for the iForm interface.  When I attempted to use it via nuget install it dragged in tons of assembly dependencies that totally bloated our heretofore simple and effecient .Net Core API. Also what's needed is an example that includes an HTML5 test harness, preferably using jQuery AJAX.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9a5cfa38-0e6c-4346-dafc-84ea5c513fcf
Version Independent ID: c6787f0f-3e9a-6efb-0e6e-5ccb957d3f4a
Content: File uploads in ASP.NET Core
Content Source: aspnetcore/mvc/models/file-uploads.md
Product: aspnet-core
GitHub Login: @ardalis
Microsoft Alias: riande

Hello @davidekarasek ... This topic is slated for attention on #5331, but we don't have an ETA on that work yet. I recommend you post your question to a support forum, such as Stack Overflow, or support chat, such as Gitter or Slack. I'll add your issue to #5331 so that your inquiry here can be taken into account when the topic is updated.

Please point me to ANY solution that works NOW that observes a separation of concerns HTML5 client and ASP.Net CORE 2.1 API. Thank you.

Thank you.  What was the standard way of posting files in the API before this latest tech?
Does that still work?

For me, it would have been using the old FileUpload server control in a webforms app. I mostly worked in webforms/VB before moving to MVC/C# not too long before getting into ASP.NET 5 lol .... er .... I mean ASP.NET Core. :smile:
Back in those days, I took full advantage of all the plug-n-play server controls and AjaxControlToolkit goodies that made it easy/fast to whip up apps. Since those don't exist for Core, that's not going to work.
I speculate that some of the third parties, like Telerik, have a plug-n-play AJAX control that can be dropped into an app. I'm very confident that there are blog posts out there that discuss file uploads with Core apps. There wasn't anything on Razor Pages at the time I wrote that topic :point_up:, but I would hazard guess that there are a few blogs out there that have broached the subject of file uploads for RP as well.
This convo is monitored by the other doc authors; so if they have anything to add, they'll jump in.

Thanks for the follow up. I’m saddened by the complexity of this when this
is a standard process that apps like FsceBook use in the web. To be blunt,
I really really don’t like Razor for many reasons, primarily because it
tightly couples UI and service layer, just like classic web forms in .Net.
I did finally find a clean API/no bound UI coding example where the API’s
iFormFile controller gets called from and returns a JSON result from/to a
javaScript handler, though I understand there are limits to doing this with
iFormFile as well as AJAX handling of multi-part form submits. I just need
to thoroughly understand what those limits are.
Another part of the puzzle is reducing file size on upload. People take
large size photos and want to upload these simply but on this site the
images need to be constrained to 72 pixels per inch and no bigger than what
can quickly display on any device in a phone viewport.
-David
On Fri, Aug 17, 2018 at 3:08 PM Luke Latham<EMAIL_ADDRESS>wrote:

For me, it would have been using the old FileUpload server control in a
webforms app. I mostly worked in webforms/VB before moving to MVC/C# not
too long before getting into ASP.NET http://ASP.NET 5 lol .... er
.... I mean ASP.NET http://ASP.NET Core. 😄
Back in those days, I took full advantage of all the plug-n-play server
controls and AjaxControlToolkit goodies that made it easy/fast to whip up
apps. Since those don't exist for Core, that's not going to work.
I speculate that some of the third parties, like Telerik, have a
plug-n-play AJAX control that can be dropped into an app. I'm very
confident that there are blog posts out there that discuss file uploads
with Core apps. There wasn't anything on Razor Pages at the time I wrote
that topic ☝, but I would hazard guess that there are a few blogs out
there that have broached the subject of file uploads for RP as well.
This convo is monitored by the other doc authors; so if they have anything
to add, they'll jump in.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/Docs/issues/8100#issuecomment-413961409, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGNQFQuyq9datFJwfIPpelRTUbzns5Xmks5uRxS5gaJpZM4V-hlx
.

--
David Evan Karasek
<EMAIL_ADDRESS>

I copied the sample code for https://docs.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-2.1#uploading-large-files-with-streaming and got an error message that says, "IOException: Unexpected end of Stream, the content may have already been read by another component." The following line triggers the exception:
var section = await reader.ReadNextSectionAsync();
Not sure what I am doing wrong here. I made sure that the "OnResourceExecuting" function in DisableFormValueModelBindingAttribute was called to disable the form value model binding, so I guess that can be ruled out as the cause. Any help would be appreciated. Thanks.

Thanks for contacting us.
We don’t have the resources to invest in this area, so we are closing the issue. Should your request generate enough  👍 responses, we’ll reconsider.

Thanks. We already implemented this.
On Mon, Feb 25, 2019 at 4:44 PM Rick Anderson<EMAIL_ADDRESS>wrote:

Thanks for contacting us.
We don’t have the resources to invest in this area, so we are closing the
issue. Should your request generate enough 👍 responses, we’ll reconsider.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/Docs/issues/8100#issuecomment-467195625, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGNQFY8hCS7uJURnZIc9_Ra-gG5U6_kRks5vRFlWgaJpZM4V-hlx
.

--
David Evan Karasek
<EMAIL_ADDRESS>


(+semver: fix) Remove circular dependency

Not actually used anywhere while building

Looks like version was used after all in building debian packages.


Update supervisor to v1.14.0

connects to #246

Changelog?

There, sorry :P

LGTM :+1:

Thanks @agherzan :cake:
Will merge after the Jenkins build succeeds.

Sounds good. Cheers!

LGTM


Come up with a style class naming strategy for use in design sample styles - bcgov specific or not?

Which is better:
.checkbox
or
.bc-gov-checkbox ?
Discuss.

Having some kind of specific prefix like bc or bc-gov would be needed so our styles don't get overwritten.
Do you know what best practices are? lower case us sentence case, underline vs dash?

Been looking into BEM (block element modifier) naming convention:
Block: bc or bcgov (I think I prefer bcgov)
Element: btn
Modifier: secondary
Australia uses the modifier with two dashes to distinguish between the modifier and a two worded element
call-out--warning vs call-out-warning
I prefer all lowercase with dashes instead of underlines

@sheaphillips I moved this into in progress since I'm technically now working on it by doing some research. I'd like to come to some decision on this by end of sprint so we don't need to go back and fix things as we develop more components. What do you think about my comment above?
@orinevares what are your thoughts?

I would agree that creating the most unique classes could be best so it does not interact with other common class names. I would say the two dashes for the modifier is unnecessary unless there is an actual technical reason behind this.
Therefore I would say that bcgov would be ideal so for secondary button
'bcgov-btn-secondary'

there's a longer discussion around why this shouldn't matter, but, if we do need a prefix, then developers would be most familiar lowercase chunks separated by dashes.

DOD - update design system components to this class naming structure


Added Batch Renormalization Layer

Adds Batch Renormalization layer from the paper Batch Renormalization: Towards Reducing Minibatch Dependence in Batch-Normalized Models by Sergey Ioffe

@the-moliver How do I run the tests locally? When I run the test suit from PyCharm at the root test directory, it gives me the following output:
Process finished with exit code 0
Empty test suite.

Hmm not exactly sure. You could just run the tests manually until someone has a better suggestion.

There's instructions in the CONTIBUTING.md file - same process as within Keras itself.

@the-moliver @patyork Ran the tests, they are all passing locally, and they should pass through travis as well.

Yes, but you need to write new tests for this new layer.

Well that's weird, the output locally is :
Using TensorFlow backend.
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cublas64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cudnn64_5.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cufft64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library nvcuda.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library curand64_80.dll locally
============================= test session starts =============================
platform win32 -- Python 3.5.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 -- D:\Users\Yue\Anaconda3-5\python.exe
cachedir: ..\..\..\.cache
rootdir: D:\Users\Yue\PycharmProjects\keras-contrib, inifile: pytest.ini
collecting ... collected 5 items

test_normalization.py::test_batchrenorm_mode_0_or_2 PASSED
test_normalization.py::test_batchrenorm_mode_0_or_2_twice PASSED
test_normalization.py::test_batchnorm_mode_0_convnet PASSED
test_normalization.py::test_batchnorm_mode_1 PASSED
test_normalization.py::test_shared_batchnorm PASSED

========================== slowest 10 test durations ==========================
48.58s call     tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2
23.89s call     tests/keras_contrib/layers/test_normalization.py::test_batchnorm_mode_0_convnet
3.22s call     tests/keras_contrib/layers/test_normalization.py::test_shared_batchnorm
1.74s call     tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2_twice
1.58s call     tests/keras_contrib/layers/test_normalization.py::test_batchnorm_mode_1
0.00s setup    tests/keras_contrib/layers/test_normalization.py::test_batchnorm_mode_0_convnet
0.00s teardown tests/keras_contrib/layers/test_normalization.py::test_shared_batchnorm
0.00s teardown tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2_twice
0.00s setup    tests/keras_contrib/layers/test_normalization.py::test_shared_batchnorm
0.00s teardown tests/keras_contrib/layers/test_normalization.py::test_batchnorm_mode_1
========================== 5 passed in 79.02 seconds ==========================

@patyork I don't get why it's getting nan's in travis. On my local pc after re running the tests in both theano and tensorflow I got the same results:
Using TensorFlow backend.
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cublas64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cudnn64_5.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cufft64_80.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library nvcuda.dll locally
I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library curand64_80.dll locally
============================= test session starts =============================
platform win32 -- Python 3.5.2, pytest-3.0.6, py-1.4.32, pluggy-0.4.0 -- D:\Users\Yue\Anaconda3-5\python.exe
cachedir: ..\..\..\.cache
rootdir: D:\Users\Yue\PycharmProjects\keras-contrib, inifile: pytest.ini
collecting ... collected 5 items

test_normalization.py::test_batchrenorm_mode_0_or_2 PASSED
test_normalization.py::test_batchrenorm_mode_0_or_2_twice PASSED
test_normalization.py::test_batchrenorm_mode_0_convnet PASSED
test_normalization.py::test_batchrenorm_mode_1 PASSED
test_normalization.py::test_shared_batchrenorm PASSED

========================== slowest 10 test durations ==========================
103.65s call     tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2
49.70s call     tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_convnet
4.55s call     tests/keras_contrib/layers/test_normalization.py::test_shared_batchrenorm
3.15s call     tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2_twice
1.87s call     tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_1
0.00s teardown tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2
0.00s setup    tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_convnet
0.00s setup    tests/keras_contrib/layers/test_normalization.py::test_batchrenorm_mode_0_or_2
0.00s teardown tests/keras_contrib/layers/test_normalization.py::test_shared_batchrenorm
0.00s setup    tests/keras_contrib/layers/test_normalization.py::test_shared_batchrenorm
========================= 5 passed in 163.00 seconds ==========================

I reran Travis, same error.
The test is also failing on my machine, so I'll take a quick peek. (Theano dev, float32, GPU, tf ordering default).

@patyork The output for K.eval(K.mean(out) is coming out to be exactly 0.0, as expected, as at t=0, r = 1 and d = 0, so batch renorm output is equal to batch norm output at that point. I don't understand where nan's are coming from. I am using Python 3.5 as well, with tf 1.0 and Keras master.

It seems to be failing on mode_1 with input_2 which is a set of zeros.
Without thinking much about it, that sounds an awful lot like a division by zero.

@patyork Mean and std of 0s will be 0s themselves. I've added epsilon in certain areas where this may happen, so hopefully this test will pass.
The odd thing is, why are my tests passing if they divide by zero?

So I've had some odd results with pytest.
All the test started passing unless I changed the keras.json settings; if I swapped back they failed again, but after multiple runs they started passing. I tried --cache-clear option to pytest, but didn't seem to work. Perhaps clearing all the temp dirs manually...

@patyork It's working now. Test's passed. It appears to be the calculation for self.running_mean was 0 (since all 0s) hence the division by 0 occurred. Very rare case where every input is 0, but I will add these changes to the main code as well, just in case something like this happens during real execution.

I think the algorithm is just about done. For a final check, we should wait for the results from my WRN model, whose output will validate the implementation if the two graphs are similar enough.

@the-moliver @patyork So below is the training graph for batchnorm vs batch renorm in WRN-16-4 on CIFAR 10 without any dropout or data augmentation for 100 epochs. It overfits obviously, but they both overfit similarly. The training graph is almost exactly the same for both. On the other side, batch renorm gets a slightly highers accuracy score than plain batchnorm.

@the-moliver I ran some tests in which I used different values of t_delta - [1. (initial case), 0.1, 0.01, 1e-3, 1e-4]
What I found was that, eventually, they all landed up with nearly the same scores, but the major difference was how many epochs it took to reach there.
For example, taking WRN-16-4 model with BRn mode 2 as the model, I tried 10 iterations of each of the above values of t_delta for delta=1 and 0.1, 20 for 0.1e-3 and 30 for 1e-4.
What I noticed is that, with small values of t_delta there was no benefit to the overall score after 10 iterations. In fact, with t_delta=1e-4, the score after 10 iterations was just 71 %, where as with t_delta=1. and 0.1, the score was close to 81% after 10 iterations. After nearly 23 epochs, the score increased to 81% with t_delta=1e-4.
On the flip side, increasing it even a small amount more than 1.0 led to slower learning, and in the case of t_delta=2. actually led to gradient explosion and no learning at all.
That is the reason I have reverted the default value of t_delta to 1.0, since it is a good enough value. Users can change it to perform more accurate training perhaps, but making it too low is just slowing down training with no benefits.

@the-moliver @patyork This implementation is complete now, according to me. Can someone run some final checks on the finished algo against the paper? On my end, the results are always similar to what is described in the paper now.
I am still debating keeping mode=2 for compatibility with batchnorm, but it's basically just an alias for mode=0 for BRn.

@the-moliver @patyork The PR is now finally ready to be merged


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_f62v1zj5au/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_f62v1zj5au/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_f62v1zj5au/clone/recipe/meta.yaml:26: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_f62v1zj5au/clone/recipe/meta.yaml:34: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_f62v1zj5au/clone/recipe/meta.yaml:34: missing_description: The recipe is missing a description
Errors were found


Documentation:  Write vignette on EX processing and last dose date derivation

Please select a category the issue is focused on?
User Guides
Let us know where something needs a refresh or put your idea here!
We're looking for a real world example of how one would have to pre-process EX data to derive the last dose date before an adverse event. @oreillb1 kindly volunteered to turn her study data into an example that can be showcased on our website.

Here is some guidance we have created for writing vignettes.
https://pharmaverse.github.io/admiraldev/main/articles/writing_vignettes.html.  @oreillb1 can we put this on the 0.9.0 release track?

Hi @oreillb1 do you still have time to create this vignette?

Yes I have the code already and just need to tidy it up a little and maybe add a couple of comments. Should be ready this week.

Fabulous!!

There is an unexpected  problem with my code using admiral version 0.9.0 because the create_single_dose function running my code now shows
Error in assert_data_frame():
! Required variables ASTDT, ASTDTM, AENDT and AENDTM are missing.
According to the create_single_dose function documentation these are the default values - not mandatory values so something has apparently changed with this function. It no longer matches documentation and does not allow the required ex_single dataframe to be created as required for the last dose derivation in ADAE.
Since ASTDT, ASTDTM, AENDT and AENDTM variables cannot be created in EX,  it's necessary to make variables with different names e.g.  start_date = EXSTDT, end_date = EXENDT to include in the ex_single dataframe, and then match up in ad_adae.R  e.g. dose_date = EXSTDT.

See https://github.com/pharmaverse/admiral/issues/1598

Issues are resolved and derive_single_dose_fillin.Rmd file is ready

@oreillb1 , could you create a pull request for merging your feature branch into devel?


Plot Points? (Not Curves/Lines)

Can I use this library to plot a set of (x, y) points?

Should be possible, either by passing a "format" keyword like  o (note the leading space) to plot(), or by exposing the scatter function yourself and then making a pull request ;)

Okay, that works very well. For anyone else needing this, simply do:
  plt::plot(x, y, " o");

Full working example:
`#include
#include <matplotlibcpp/matplotlibcpp.h>
int main() {
const int kNumData = 10;
std::vector x(kNumData);
std::vector y(kNumData);
for (int i = 0; i < kNumData; ++i) {
x[i] = i;
y[i] = kNumData - i;
}
matplotlibcpp::plot(x, y, " o");
matplotlibcpp::show();
return 0;
}`


Redesign an UI upgradation FAQ page

I have redesign and upgraded the FAQ page, please check and merge this PR  #101

@jahnvisahni31

@jahnvisahni31 please check this Pr and kindly merge this , issue #101


examples not working

Just saw your nice "Die Threads"-talk on youtube and wanted to test the library.
On macOS 10.14:

I created a venv with python3.7.0
installed curio 0.10 (pip install git+https://github.com/dabeaz/curio.git)
installed thredo (pip install thredo)

When I run ex2.py I get this:
Unexpected exception in cancelled async thread
Traceback (most recent call last):
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/curio/thread.py", line 105, in _func_runner
self.next_value = self.target(*self.args, **self.kwargs)
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/curio/thread.py", line 281, in _runner
orig_coro = self.task._switch(_waiter())
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/curio/task.py", line 279, in _switch
self._send = partial(self.context.run, coro.send)
AttributeError: 'Task' object has no attribute 'context'
And python just waits, after a while I press "ctrl + c" and this appears:
Traceback (most recent call last):
File "ex2.py", line 22, in
thredo.run(main)
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/thredo/core.py", line 67, in run
return curio.run(_runner)
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/curio/kernel.py", line 839, in run
return kernel.run(corofunc, *args)
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/curio/kernel.py", line 150, in run
ret_val, ret_exc = self._runner.send(coro)
File "/Users/dominik/Desktop/test/lib/python3.7/site-packages/curio/kernel.py", line 669, in _run_coro
events = selector_select(timeout)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 558, in select
kev_list = self._selector.control(None, max_ev, timeout)
KeyboardInterrupt
sys:1: RuntimeWarning: coroutine '_AsyncContextManager._runner.._waiter' was never awaited
No idea how to fix this, just wanted to let you know.
Then I made the whole installation in a venv with python3.6, and everything works like in the video.
Keep going!

It seems that I accepted a broken PR related to contextvars.   I have reverted that.  It should work now (at least it seems to work on my Mac).

Yes, now it works with python3.7 as well. Thanks!


Rest generator aborts on Rasa responses

Steps to reproduce
garak --config rasa.yml
Were you following a specific guide/tutorial or reading documentation?
No
Expected behavior
Test to execute
Current behavior
TypeError: list indices must be integers or slices, not str
garak version
v<IP_ADDRESS>
Additional Information
Rasa responds with a list of dictionaries instead of a single dictionary which causes the failure here.
Changing code as follow resolves the issue:
            if isinstance(response_object, list):
                response = [item[self.response_json_field] for item in response_object]
            else:
                response = [response_object[self.response_json_field]]

Closed by #963


Support text index on dictionary encoded columns

Support text index on dictionary encoded columns. With these changes, we can essentially have both text and native
Pinot inverted index on the same column. Add several tests.
Note: there has been a pending cleanup for both range index and text index (which followed the InvertedIndexReader) interface. I'd like to cleanup the same for text index in this PR.

Anything pending here? @siddharthteotia @Jackie-Jiang

@Jackie-Jiang, addressed the review comments.

@Jackie-Jiang , I have cleaned up the code in default column handler. The integration test failure depends on a small fix in PR https://github.com/apache/incubator-pinot/pull/5710/. I need to rebase on that. Please take a look at both. Thanks.


Update build configuration

The build configuration of this project is outdated and may no longer work.
This pull request will be merged automatically if there are no conflicts.

:tada: This PR is included in version 5.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[DO NOT MERGE] Test pr commenting

Testing some changes to the evaluate-policy-action

Rode Resource Evaluation Report ❌ (FAILED)

report id: 113c3654-3e02-4191-9222-23be0078a146

Resource Metadata

Resource URI

harbor.test/rode-demo/rode-demo-node-app@sha256:80a8511ea645aacf92825767039f8395be213ac7d22e0685c692619ce966f3cd

Artifact Names
-harbor.test/rode-demo/rode-demo-node-app:fail-sonar-policy-ba8408d
Policy Results
Sample SonarQube Policy ❌ (FAILED)
SonarQube analysis started
SonarQube analysis completed at set()

Sample Harbor Policy ✅ (PASSED)
Harbor scanned image 1 times. Last completed at {"2021-07-23T17:39:56.573684Z"}
Harbor scan found 0 low severity vulnerabilities (max: 10)
Harbor scan found 0 medium severity vulnerabilities (max: 10)
Harbor scan found 0 high severity vulnerabilities (max: 2)

Rode Resource Evaluation Report ❌ (FAILED)

report id: fb5ca0dd-09b8-474b-b99f-95edd17ac541

Resource Metadata

Resource URI

harbor.test/rode-demo/rode-demo-node-app@sha256:80a8511ea645aacf92825767039f8395be213ac7d22e0685c692619ce966f3cd

Artifact Names
-harbor.test/rode-demo/rode-demo-node-app:fail-sonar-policy-ba8408d
Policy Results
Sample SonarQube Policy ❌ (FAILED)
SonarQube analysis started
SonarQube analysis completed at set()

Sample Harbor Policy ✅ (PASSED)
Harbor scanned image 1 times. Last completed at {"2021-07-23T17:39:56.573684Z"}
Harbor scan found 0 low severity vulnerabilities (max: 10)
Harbor scan found 0 medium severity vulnerabilities (max: 10)
Harbor scan found 0 high severity vulnerabilities (max: 2)


WebGPU/Emu MSM/FFT

I hope to either use webgpu or emu to parallelise MSM/FFTs. I am not sure what the current implementation of MSM is, but we need to load-balance the different buckets. My target is a 2-10x speedup on a powerful GPU like GTX1060-6GB.
An idea I have which may or may not make sense is to perform the FFT in parallel on the CPU first, then when the butterflies are sufficiently small, move them into small kernels on the GPU. (can't remember which way around it is). Due to lack of data dependencies, we should be able to get very high streaming throughput.
Other problems to think about is how to package the library so that GPU can be compiled for if desired/detected. Shouldn't be too hard utilising some WebGPU/#[cfg] functionality.

This would be great! I think starting with FFTs might be easier in the short term, just because it only requires field arithmetic. There is some prior work in the snarky library: https://github.com/o1-labs/snarky/pull/356
It could serve as a good starting point.

I think we should add some autooptimisation to decide how to split the problem between GPU and CPU/multicore or even distributed (this could lead to truly fast latencies maybe 0.1s for offloading proving). This should be a separate issue. Can collab with RISELab maybe.
I should look for some bayes opt in rust. I think probably something like Gaussian process optimisation might be fine. Should be relatively low-dimensional optimisation problem.

Heh, I'm also part of the RISElab, so that front could be somewhat easier to explore


Bug fix 584674

Porting fix from master

Validations: Manual
There are already UTs in master

Approved

Is the fix already in master? Yes
What testing was done? Manual, UTs
Does this fix change the AT/DT contract? No
Were tests added to cover this to make sure it doesn't regress? Yes

Is this a regression? : No

Will be updating additional dependencies xml in mseng, post this.


different click actions for different rows

Clicking on a string(token) should trigger different actions based on the different rows:
LOCATION: display facsimile snippet
POSITION: --undefined--
TOKEN: edit text (for OCR error correction)
NE-TAG: drop-down menu of supported NE-Tags
NE-EMB: drop-down menu of supported NE-Tags

POSITION: --undefined-- could be used for merges/splits of tokens

Pre-colored options in drop-down-menu according to supported color of NE-Tag:
NE-TAG: drop-down menu of supported NE-Tags
NE-EMB: drop-down menu of supported NE-Tags
Should simplify and fasten drop-down choice.

Autocomplete option for drop-down-menu:
NE-TAG: drop-down menu of supported NE-Tags
NE-EMB: drop-down menu of supported NE-Tags
Should only be triggered by letters "I" or "B", bisects drop-down options and could make scolling in drop-down obsolete.

Support Strg-Z shortcut for drop-down choices.

@snmnzl Thanks for the feedback and suggestions. We will work on the above issue this week and should have a version with the new functionality ready beginning of next week.
Your last comment is for a different issue so I opened a new issue #10 for that.

added in 76394e2fc17793494d825c042778c52d18273ec1


[occm] Remove intermediate funcs on Ensure* interfaces

What this PR does / why we need it:
I think these were relics of the times when we had different codepaths for Octavia and Neutron LBaaS. The latter is not supported anymore, so Ensure*() functions can call ensureOctavia*() directly.
Special notes for reviewers:
Release note:
NONE

that's correct, we used to support both and neutron-lbaas was removed months before
/lgtm
/approve


Heroku sometimes running out of connections and erroring out. Not sure why

Possibly fixed this by closing the sequelize connection inside server.js


http endpoints given in doc and comments are not working

both https://github.com/haskell/haskell-ide-engine/blob/f99b6f520856c9f4230234d06bb8185bdabc484a/src/Haskell/Ide/Engine/Transport/JsonHttp.hs#L38 and https://github.com/haskell/haskell-ide-engine/blob/f99b6f520856c9f4230234d06bb8185bdabc484a/docs/Hacking.md seems to refer to an old implementation of the http rest interface.
curl -v http://localhost:8081/req/base -X POST -H Content-Type:application/json --data-binary '{"ideParams":{},"ideCommand":"version","ideContext":{"ctxEndPos":null,"ctxCabal":null,"ctxStartPos":null,"ctxFile":null}}'

gives
invalid request body: key "command" not present%

also, after several iterations trying to fix the query, the error message seems "wrong" and not really helpfull
 {"fail":{"msg":"need `file` parameter","code":"MissingParameter","info":"file"

but I tried to put file param everywhere:
{
  "params":{

  },
  "command":"lint",
  "file":"/Users/rvion/dev/ride/src/Main.hs",
  "context":{
    "ctxEndPos":null,
    "ctxCabal":null,
    "ctxStartPos":null,
    "file":"/Users/rvion/dev/ride/src/Main.hs"
  },
  "ideContext":{
    "ctxEndPos":null,
    "ctxCabal":null,
    "ctxStartPos":null,
    "file":"/Users/rvion/dev/ride/src/Main.hs"
  },
  "msg":{
    "ctxEndPos":null,
    "ctxCabal":null,
    "ctxStartPos":null,
    "file":"/Users/rvion/dev/ride/src/Main.hs"
  }
}

and code is not helping me much here: https://github.com/haskell/haskell-ide-engine/blob/master/src/Haskell/Ide/Engine/Transport/JsonHttp.hs since I haven't play with servant yet

when I
curl -v http://localhost:4005/req/ghcmod \
  -X POST -H Content-Type:application/json --data-binary \ '{"params":{"file":"/Users/rvion/dev/ride/src/Main"},"command":"lint"}'

the error message becomes
invalid request body: empty%

This is not really a problem with servant, but more a problem with our json being strange and the most important problem: undocumented. The json needs to look like this: {"command": "lint", "params": {"file": {"file": "/home/moritz/code/haskell/playground/src/Main.hs"}}}. The extra "file" comes from the type, see ParamValP.
For the documentation part, I was planning to add autogenerated documentation containing example requests and example responses for each command. Autogenerated being important here, since this is the only way to avoid it getting out of date. I’m not sure when I’ll find time, so if anybody else wants to give it a shot, go for it.

Also for the servant case we should go for req/plugin/command instead of putting the command in as a parameter. Then we can drop the params field and just make a map containing the params.

Thanks for the explanation !
as a side observation, if the file specified doesn't exists, the server dies silently and all subsequent request are lost.
This command never finish and I have to stop it (^C)
haskell-ide-engine git:(foo) ✗ curl -v -H "Content-Type: application/json" -X POST -d '{"command": "lint", "params":{"file":{"file":"/Users/rvion/dev/ride/src/MainPLOP.hs"}}}' http://localhost:4005/req/ghcmod

*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 4005 (#0)
> POST /req/ghcmod HTTP/1.1
> Host: localhost:4005
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 87
>
* upload completely sent off: 87 out of 87 bytes

^C

hie complains that
2015 Nov-29 20:22:17.599864 [INFO] doDispatch:req=IdeRequest {ideCommand = "lint", ideParams = fromList [("file",ParamValP {unParamValP = ParamFile "/Users/rvion/dev/ride/src/MainPLOP.hs"})]}
hie: Couldn't find file: /Users/rvion/dev/ride/src/MainPLOP.hs

Here is an other command with a correct filename (and a timeoutlimit:
➜  haskell-ide-engine git:(bar) ✗ haskell-ide-engine git:(foo) ✗ curl -v -m 10 -H "Content-Type: application/json" -X POST -d '{"command": "lint", "params":{"file":{"file":"/Users/rvion/dev/ride/src/Main.hs"}}}' http://localhost:4005/req/ghcmod

*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 4005 (#0)
> POST /req/ghcmod HTTP/1.1
> Host: localhost:4005
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 87
>
* upload completely sent off: 87 out of 87 bytes
* Operation timed out after 10000 milliseconds with 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 10000 milliseconds with 0 bytes received

but I get no response back, and hie do not output anything

Yeah our error handling is pretty much non existent :)
10s seems fairly long, does it also take that long if you send it via stdio?

the 10 second timeout is because of the -m 10 curl option. If not specified, curl just don't return (or maybe it does, but not before too long for me to wait) :)
I don't really know how the stdio transport layer work, didn't try it yet. I'll reply to this thread when I'll spend some time playing with it.

Is there anything left to do here?

Supersed by move to LSP


Can I use it for multi obj?

I tried to directly record pictures with four items in it, but the .ply ,especially the occluded sides of the items, is quite bad.

Sorry, the code current cannot handle multi objects in a scene.
Is there any particular reason you want to record multiple objects at the same time? If you want to train object detector/pose estimator to be robust against other objects in the background you can add a data augmentation step for your training data.
Also could you elaborate on how the registered pointcloud is bad for multi objects in the same scene? There will be occluded part for sure, since part of the object will be invisible to the camera throughout the entire scan, but is the alignment also bad?
The reason why I asked is that I have been considering supporting multiple objects in the same scene, but I am uncertain if such functionalities will be useful in the first place.

Sorry for the late reply.
I was in a competition which requires us to recognize multiple objects on a table, and that's why I wanted to use the tool to record multiple objects and make a dataset for yolo6d.
And I'm sorry that I haven't dived into the algorithm, so I can hardly understand the technical words you've said... I'll be back as long as I've got further knowledge of these things.
Anyway, thanks a lot for your repo! It helped us to win a national prize!

So,are there any tools that can make multi objects?
I want to make a dataset like YCB Video Dataset(https://rse-lab.cs.washington.edu/projects/posecnn/),but it is very difficult to do so.

Excuse me, did you solve the problem?how to use the tool to record multiple objects?

Excuse me, did you solve the problem?how to use the tool to record multiple objects?

No, I didn't solved it. We just made single object datasets, as the yolo6d seemed to be powerful enough to go without multi object datasets.


PureComponent doesn't work with hot reloading

No iOS nor Android.

Can you provide code

https://github.com/este/este/blob/master/src/native/main.js

Just create RN 30 or 31 app with React 15.3, and use PureComponent instead of Component. Hot reloading will not work.

Hot reloading also doesn't work with function components.

Hmm, maybe we can fix it just with rerendering whole app. But how?

👍
Same issue here with:
RN @ 0.32.0
React @ 15.3.2

This is enough for hot reloading in React Native https://github.com/este/este/blob/master/src/native/app/Root.js#L13

@dylanpyle I don't use PureComponent anymore. It's a workaround to issue which is better to avoid. shouldUpdate belongs to data, not to a component because it slow downs PureComponent first render. redux-connect does it on data change, which is better. So, don't use PureComponent. Check Este https://github.com/este/este

@orta This still appears to be an issue (for me at least).
HMR doesn't work unless I switch stuff to Component instead of PureComponent for
"react-native": "^0.47.1",
I understand @steida says don't do it but that appears to be in the specific context of you using redux/connect which understandably isn't everyone's scenario (especially not for every component in an entire application)
Should this issue remain open or what am I missing about how it was fixed to be closed?
Thank you for any insight you can provide 🍻

Sorry for the delay with this issue, this had been fixed in https://github.com/gaearon/babel-plugin-react-transform/pull/106 and the fix will go to RN v0.50 😄

I know this is an old issue but I'm having this issue using FlatList. I have a class component that renders a List with a ListHeaderComponent. If I change anything on the component, the list is not being updated.
Should I open a new issue for this?


Edit atAgeForVignette in Turkish and Chinese

@gracsh @aslgraefe
Looking at its current structure, probably the easiest thing would be to follow the Italian structure below (i.e. do exactly the same as below, just translating the terms). In this way, we should get rid of all those errors such as (identical for Chinese and Turkish)
[ERROR] Could not process PMID_36932076_Patient_3_zh-prompt.txt: No Chinese translation for Antenatal onset
[ERROR] Could not process PMID_30791088_female_zh-prompt.txt: No Chinese translation for Second trimester onset
https://github.com/monarch-initiative/phenopacket2prompt/blob/e495f5a6b163b3e924ce8602bedfb7ac5f40a31c/src/main/java/org/monarchinitiative/phenopacket2prompt/output/impl/italian/PpktIndividualItalian.java#L287-L319
As a matter of fact, thanks to
https://github.com/monarch-initiative/phenopacket2prompt/blob/7ab8655e00a769b883b284dfe80e64b521c3c8a6/src/main/java/org/monarchinitiative/phenopacket2prompt/model/HpoOnsetAge.java#L29
and
https://github.com/monarch-initiative/phenopacket2prompt/blob/7ab8655e00a769b883b284dfe80e64b521c3c8a6/src/main/java/org/monarchinitiative/phenopacket2prompt/model/HpoOnsetAge.java#L136-L139
we are not really using these specific onset terms, rather an umbrella (parent) term. The same applies to the very granular adulthood terms, all likewise collected in
https://github.com/monarch-initiative/phenopacket2prompt/blob/7ab8655e00a769b883b284dfe80e64b521c3c8a6/src/main/java/org/monarchinitiative/phenopacket2prompt/model/HpoOnsetAge.java#L66

@leokim-l  is there anything else I can help with? Sorry, I have overseen this mention. If so, please let me know - you can also reach my via Teams all the times. Thank you very much!

is there anything else  I can help with?

Chinese done with 392af290700f2df3350d946c0b4f006aa0a08b07

Done with c9f7b2cab42cc3cfe0bca5a0b94c4e7905bc124c


feature: add normalizeAnchors flag

Towards #250 #225 gaurav-nelson/github-action-markdown-link-check#176
Summary
Add a flag (to avoid a breaking change) that enables GitHub style anchor link sanitization before checking.
This fixes the skipped anchor link checking test and a few reported issues.

Oops, it seems like markdown-link-extractor already uses a "slugger" (eg. https://github.com/Flet/github-slugger) to sanitize the anchors.
Not sure what broke in my build.


🐞 Bash completion failing in v0.11.0

What is the issue?
Bash completion is failing since version v0.11.0 with the following error: Completion ended with directive ShellCompDirectiveNofileComp
More details in this discord thread https://discordapp.com/channels/707636530424053791/1227602359547592745
Dagger version
dagger v0.11.0 (registry.dagger.io/engine) linux/amd64
Steps to reproduce
Install version v0.11.0
try to complete in a bash shell a dagger command.
Log output
No response

cc @helderco

looks like zsh doesn't seem seem to be working also: https://discord.com/channels/707636530424053791/1228287061061271614

Going through some issues cleaning, I tried to repro this one on a vanilla bash 5.2 with bash-completion and dagger v0.12.4 freshly installed.
$ bash
bash-5.2$ . /opt/homebrew/etc/bash_completion
bash-5.2$ . /opt/homebrew/etc/bash_completion.d/dagger
bash-5.2$ dagger
call        (Call one or more functions, interconnected into a pipeline)  install     (Install a dependency)
completion  (Generate the autocompletion script for the specified shell)  login       (Log in to Dagger Cloud)
config      (Get or set module configuration)                             logout      (Log out from Dagger Cloud)
develop     (Prepare a local module for development)                      query       (Send API queries to a dagger engine)
functions   (List available functions)                                    run         (Run a command in a Dagger session)
help        (Help about any command)                                      version     (Print dagger version)
init        (Initialize a new module)
bash-5.2$

It works.
I can confirm it's also fine on zsh. I'll close this one. Please re-open if you think it still happens.