Unknown argument/field: 'ipv6addr'

When doing a ptr find request, infoblox seems to think that ipv6addr is not a proper return field. Doing a plain GET request from a browser and searching by ipv6addr (https://infoblox.domain.com/wapi/v2.2/record:ptr?ipv6addr) returns "Invalid value" but doing any find request with this gem returns an invalid field.
irb(main):004:0> Infoblox::Ptr.find(connection, {ipv4addr: "<IP_ADDRESS>"}).first
{:_return_fields=>"comment,disable,ipv4addr,ipv6addr,name,ptrdname,extensible_attributes,view,zone", :ipv4addr=>"<IP_ADDRESS>"}
Infoblox::Error: Error: 400 { "Error": "AdmConProtoError: Unknown argument/field: 'ipv6addr'",
  "code": "Client.Ibap.Proto",
  "text": "Unknown argument/field: 'ipv6addr'"
}
        from /var/lib/gems/1.9.1/gems/infoblox-0.5.0/lib/infoblox/connection.rb:92:in `block in wrap'
        from /var/lib/gems/1.9.1/gems/infoblox-0.5.0/lib/infoblox/connection.rb:90:in `tap'
        from /var/lib/gems/1.9.1/gems/infoblox-0.5.0/lib/infoblox/connection.rb:90:in `wrap'
        from /var/lib/gems/1.9.1/gems/infoblox-0.5.0/lib/infoblox/connection.rb:16:in `get'
        from /var/lib/gems/1.9.1/gems/infoblox-0.5.0/lib/infoblox/resource.rb:110:in `find'
        from (irb):4
        from /usr/bin/irb:12:in `<main>'

When changing the resource/ptr.rb to not request ipv6addr the problem doesn't occur and the request returns properly.
Infoblox documentation states that this field does indeed exist
edit: Putting more debugging output, I see that I'm using version 1.0 of the api with this gem (hadn't found how to change the version on demand until I read the lib/infoblox.rb source). The point of this issue would be that this gem is requesting ipv6addr in ptr requests for api levels under 1.2 which is not supported as per the documentation.

I would entertain a pull request with conditional addition of the ipv6addr field (based on the value of Infoblox.wapi_version).  This is already done elsewhere in the gem.
Do you happen to know if IPv6 was added to the whole system in version 1.2, or if it was just the Ptr resource that got it?

I found out that the version that first supported this field is 1.1 instead of 1.2 and I only found the resource Host to have something similar in the same version (ipv6addrs). Added a conditional attribute for both


SetMatrixZeroes.cpp added

1AvneetKaur added SetMatrixZeroes.cpp file

Don't Forget to star this repository!


es2016+

Of course, you can do my changes request later.

i got it
i dont understand
u said 4 tab -> 2 tab?
i dont have apple deivce

i prefer 4 tabs

OK. For now, I will use a native feature of Visual Studio Code.

https://github.com/List-KR/NamuLink/pull/10#issuecomment-1349130730
To read the result of calling TypedArray.prototype.slice.

https://github.com/List-KR/NamuLink/pull/10#issuecomment-1349147651
@green1052
I don't recommend that.
Please read this comment.

well i think it is bad for performance

https://nomo.asia/429

namu.wiki use only Uint8Array
if u want revert i revert that

so how to do?

First, please revert 3.

and than?

Finally, please revert no 1 unless. :D

i think better leave it

Then, do you have any experimental data?

i tested my code

What did you test? debugging test? Comparing the lead time of each code?

debugging

I had performed the debugging before i asked.
I want an experimental data.

https://github.com/List-KR/NamuLink/pull/10/commits/a00b20b1caf791310cd0d575adc5dd0191cbd268 ???

@piquark6046 잘 작동합니다

need more test?


PUT requests for storage uploads

Is your feature request related to a problem? Please describe.
Not sure if this is already supported somehow already that I've missed. Would be nice to be able to PUT objects to overwrite the contents, currently attempts using upload() returns a
{'statusCode': 400, 'error': 'Duplicate', 'message': 'The resource already exists'}
Describe the solution you'd like
Either we could add a parameter to the existing upload function to define the HTTP Method, or just add a new method.
ie
class HttpMethod(Enum):
    PUT = "PUT"
    POST = "POST"

  def upload(... method: HttpMethod = HttpMethod.POST):
       ....
       return self._request(
            method,
            f"/object/{_path}",
            files=files,
            headers=headers,
        )

Hey!
Thanks for flagging this - I don't think this exists at the moment. PRs are welcome!

@lrajca sorry for the late response - passing upsert in the file_options parameter should overwrite contents
client.from_("bucket").upload("filename.txt", open("filename.txt", "rb"), {"x-upsert": "true"})


[BUG] Update Swagger Docs to reflect correct information

Describe the bug
There are a few errors in the Swagger documentation that need to be fixed.
To Reproduce
Not applicable
Expected behavior

The GET /comments endpoint should also list the possible query params and its values (isFlagged = boolean)

The GET /comments/refs/{refId} endpoint should also list the possible query params and its values (isFlagged = boolean)

The POST /comments endpoint should remove the _id as a required property in the request body.

The POST /comments/{commentId}/replies endpoint should remove the commentId as a required property in the request body.

The Comment Model in the Swagger UI should also include the isFlagged property.

The Reply Model in the Swagger UI should also include the isFlagged and totalVotes properties.

Screenshots
Not applicable
Desktop (please complete the following information):

OS: Windows
Browser: Chrome
Version 83

Smartphone (please complete the following information):
Not applicable
Additional context
This fixes would align the current validation rules from PR #89.

Can I get assigned to this task?


kernel restarting in jupyternotebook for import pytorch_lightning as pl

When using jupyter notebook to run  pytorh_lightning program, after typing
import pytorch_lightning as pl
It generates popup kernel restarting message

@wenouyang Could you share the notebook to reproduce the issue?

@kaushikb11 ,  I think it might be due to the virtual environment been crashed. I re-installed on in another virtual environment. It is working now.


deep_clone not called on has_many_through relation

I have a deeply nested datamodel that at some point has a has_many_through relation with additional datastructures beneath it that need to be copied. This would normally happen in the process_joined_object_for_deep_clone method. However, even when I enable the dictionary, the call to find_in_dictionary_or_dup is passed a false value for dup_on_miss which causes the deep_clone method to not get called, truncating the copy of part of my datastructure I'm attempting to copy. It's unclear to me why find_in_dictionary_or_dup is passed a false value here. I see that all of the different relations are passed the same argument list but for some reason it's not working correctly when trying to use a has_many_through relation.
I will post more details shortly, but I need to establish this issue so I can get a placeholder to refer to it internally.

Hi, thanks for your question. I think there has always been some discussion regarding 'through' relationships and what they mean. You could say that everything needs to be duped, but you could also justify that the new copy should just have a new link to the original object. The latter is what's happening now. It was introduced in #47.
If you really want to create copies instead, would it be a possibility for you to dup via the original relationship instead? For example:
has_many :order_items
has_many :extras, through: :order_items

# Don't do this
order.deep_clone(include: :extras)
# Do this instead
order.deep_clone(order_items: :extra)

Hi Moiristo,
firstly thank you for creating this gem. I have question related to above has_many through relationship.  I really need to copy of the original relationship, and i tried your suggestion it somehow doesn't make sense to me. Here is my has many through relation
class Parent < ApplicationRecord
  has_many :child, dependent: :destroy
  has_many :grand_child, through: :child

I need to create a copy of Parent along with copy of child with new parent with same grand child, Is this possible to do?
i.e. child table should contain
parent_id, grand_child_id, created_at, updated_at -> Original
new_parent_id, grand_child_id, created_at, updated_at. -> copy

Thanking you in advance.

Hi,
If you only include the child (parent.deep_clone(include: :child)), I think the grand_child_id should remain the same for the copy of the child? Is that what you want? The example is a bit strange, because you specify a has_many with a singular name (hm :child instead of hm :children), so I'm not sure if I'm understanding everything correctly :)

Hi Thanks for a quick response. i did try that and it did not work.
I was trying to copy Parent while doing so, i also need to copy all its related childs with new parent id.
I thought : pirate.deep_clone include: { parent: :child } would have worked but it din't.
parent table: (before copy)
id, Parent Name, other fields 1, ....n
1, Original, test 1 ,..... test m
Child Table
Id, Parent ID, Grand Child Id. ..
1,1,1, ....
1, 1, 2 .. .
Grand Child table
ID, Name
1 , Test
2, Second Test
After Copy
Parent
id, Parent Name, other fields 1, ....n
1, Original, test 1 ,..... test m
2,  copy-Original, test 1 ,..... test m
Child Table
Id, Parent ID, Grand Child Id. ..
1,1,1, ....  -> Original records
1, 1, 2 .. .-> Original records
1,2,1, ....  -> New Copied version with new parent id
1, 2, 2 .. . -> New Copied version with new parent id
Grand Child table  (Remains same)
ID, Name
1 , Test
2, Second Test

This helped out a ton order.deep_clone(order_items: :extra)
although, it should be order.deep_clone(order_items: :extras)
Thanks a lot for this gem!


uid validation is rejecting on signup

Issue
Currently validation is rejecting uid strings not equal to 28 characters in length. Our uid pattern seems to be 8-4-4-4-12, or 36 total characters. Signup requests are currently rejected.
Fix
Change regex validation to allow appropriate string length.

Never mind, this seems to be correct for firebase, seems I was looking at UUIDs. Apologies, the error is mine.


Add: add win32 send key event by pid support

Please provide Issues links to:

Issues: #125

Provide test code:

Description
...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Dropping column results in "corrupt" SSTable

We've recently run into a nasty issue where simply dropping a column might but cassandra into a state where it incorrectly thinks that SSTable files are corrupt and nodes will even refuse to start if restarted.
Is there any interest in including these changes in your 3.7 LTS branch?
The changes comes from Sylvain's 13337-3.11 branch:
https://github.com/pcmanus/cassandra/commits/13337-3.11
patch by Sylvain Lebresne; reviews by Alex Petrov for CASSANDRA-13337

Hi, yes - thanks for this. We will look at rolling into a release in the near future.
Cheers

Merged into https://github.com/instaclustr/cassandra/pull/14 . Thanks @jborg


Github-Copilot

Support for use of github copilot would be nice

Github Copilot is proprietary

Due to the fact Copilot is proprietary would it not be possible to ask if possible to write an extension/plugin to use with lapce?
It will only increase the marked for Github Copilot, it exist for Neovim, VScode, VS and Jetbrains tools..

All those plugins are or contain proprietary code from GitHub and require Node.JS to run, it's definitely not in lapce scope to provide such integration. We are working on providing proper API for plugins to interact with editor which will enable someone to make such plugin if they want.

Understandable, will close.
Thanks for replying

I  would like to see copilot on Lapse :)


Request that redirects leaves handles open

This code:
var request = require('request');

request('http://google.com', function (error, response, body) {
  console.log('Request done');
});

hangs at the end, after quickly printing the 'Request done' message.  It seems to be related to the redirect that happens in the problem code (from google.com to www.google.com).  The same code but with 'http://www.google.com' exits immediately after printing the message.  Printing process._getActiveHandles() in the handler shows that there are two requests still active.
I'll take a stab at finding the cause, but any pointers from experienced contributors will be welcome.

Doh!  I was trying this in the directory of an old project that had request pinned to a very stale version.  Never mind.


Next-ValidEnv for Typesafe environment variables

I built a library with typesafe environment variables for Next.js and would love to add it to Precedent to help the community bring type safety to their environment variables.
https://twitter.com/JacobADevore/status/1614832929036972032

This looks awesome, thanks for sharing! Will pass it along to the Next.js team! Closing this issue for now!


Formatted output from Docker CLI

docker ps on a Kubernetes master shows the following result:
CONTAINER ID        IMAGE                                                                               COMMAND                CREATED             STATUS              PORTS               NAMES
dc59a764953c        gcr.io/google_containers/etcd:2.0.12                                                "/bin/sh -c '/usr/lo   20 hours ago        Up 20 hours                             k8s_etcd-container.fa2ab1d9_etcd-server-kubernetes-master_default_7b64ecafde589b94a342982699601a19_2b69c4d5
b722e22d3ddb        gcr.io/google_containers/kube-scheduler:d1107ff3b8fcdcbf5a9d78d9d6dbafb1            "/bin/sh -c '/usr/lo   20 hours ago        Up 20 hours                             k8s_kube-scheduler.7501c229_kube-scheduler-kubernetes-master_default_98b354f725c1589ea5a12119795546ae_b81b9740
38a73e342866        gcr.io/google_containers/kube-controller-manager:fafaf8100ccc963e643b55e35386d713   "/bin/sh -c '/usr/lo   20 hours ago        Up 20 hours                             k8s_kube-controller-manager.db050993_kube-controller-manager-kubernetes-master_default_f5c25224fbfb2de87e1e5c35e6b3a293_dcd4cb5d
01001de6409e        gcr.io/google_containers/kube-apiserver:cff9e185796caa8b281e7d961aea828b            "/bin/sh -c '/usr/lo   20 hours ago        Up 20 hours                             k8s_kube-apiserver.7e06f4e1_kube-apiserver-kubernetes-master_default_829f8c23fd5fc7951253cac7618447fc_b39c0a5d
0f8ccb144ece        gcr.io/google_containers/pause:0.8.0                                                "/pause"               20 hours ago        Up 20 hours                             k8s_POD.e4cc795_kube-scheduler-kubernetes-master_default_98b354f725c1589ea5a12119795546ae_eb1efcac
0b8f527456c0        gcr.io/google_containers/pause:0.8.0                                                "/pause"               20 hours ago        Up 20 hours                             k8s_POD.e4cc795_kube-apiserver-kubernetes-master_default_829f8c23fd5fc7951253cac7618447fc_5dd4dee7
39d9c41ab1a2        gcr.io/google_containers/pause:0.8.0                                                "/pause"               20 hours ago        Up 20 hours                             k8s_POD.e4cc795_kube-controller-manager-kubernetes-master_default_f5c25224fbfb2de87e1e5c35e6b3a293_522972ae
d970ddff7046        gcr.io/google_containers/pause:0.8.0                                                "/pause"               20 hours ago        Up 20 hours                             k8s_POD.e4cc795_etcd-server-kubernetes-master_default_7b64ecafde589b94a342982699601a19_fa75b27f

This is hard to read. It'll be great to add formatting options to Docker CLI where specific columns can be chosen.

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

docker version gives:
[root@kubernetes-master ~]# docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 350a636/1.6.0
OS/Arch (client): linux/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 350a636/1.6.0
OS/Arch (server): linux/amd64

docker info gives:
[root@kubernetes-master ~]# docker info
Containers: 8
Images: 12
Storage Driver: devicemapper
 Pool Name: docker-253:0-524545-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 427.9 MB
 Data Space Total: 107.4 GB
 Data Space Available: 37.58 GB
 Metadata Space Used: 1.389 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.146 GB
 Udev Sync Supported: true
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.90 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 3.17.4-301.fc21.x86_64
Operating System: Fedora 21 (Twenty One)
CPUs: 4
Total Memory: 993.5 MiB
Name: kubernetes-master
ID: YI7H:FPGH:Q6II:2NGF:7EBE:FBXF:N5Y5:24MO:2QS6:IFTK:I2VE:IVUF

uname -a gives Linux kubernetes-master 3.17.4-301.fc21.x86_64 #1 SMP Thu Nov 27 19:09:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

I believe #10255 should address this. Please reopen if I'm wrong.


Uploading csv/excel file

Create function that create "Students" from the file and then store them in the db

Basic integration.
Need to restructure the module as a class.


Chime sound

Hello, I have a Lenovo m93p tiny with Monterey, everything is working for me, but I don't know how to work chime sound. Do you know how can I add it? Thanks

Yes, if you can tell me which changes i can do, it's a great help, because i'm not using your opencore EFI cause I have an M93P with an i5 CPU, so it's different from yours. I tried to use the chime, but it's only working with the internal speaker, not with the DP output. Thanks for your help

Huh, I will try to help you out the best I can, but I don't use DP output, so I can't test that functionality for you. Do note, you can try to use my OC config, as it should support the M93p, but there's no guarantees that it'll work 100%. I've been busy with some stuff lately, but I'll try to help you out with this issue soon.

I think I can't use your entire OC config, because my m93p has a different CPU (I5 4570) but same GPU (HD 4600), do you think it can work anyway? Thank you and don't worry, you're helping me, then i'm in no hurry ahahah.

Hello, i have another problem, i tried to update to ventura following your instruction, but after oclp, i can't see anything on display after apple logo. Can you help me? Thanks

Did you change the SIP settings and add any boot-args? Those are required to run Ventura on this hardware. To do that, change "NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config" to "030A0000", and add "amfi_get_out_of_my_way=1 ipc_control_port_options=0" to NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> boot-args.

Yes, i have those settings in nvram,but when i apply the oclp and reboot i don't see anything on screen,It says "no signal" after the Apple logo. Obviously i use the display port output

Mhm, that is interesting, because those settings were the only things that I had to change to make OCLP work on this ThinkCentre. Could you try adding "-v" to boot args, and take a picture of the last couple of lines before macOS gets stuck?


TCH fixes remove quotation marks from Literal strings

The fixes for TCH001, TCH002, and TCH003 sometimes delete quotation marks from Literals when lint.flake8-type-checking.quote-annotations = true. This can make a program fail to type-check. I am not sure exactly what makes it delete quotation marks but it seems to only happen to literals within nested brackets.
$ ruff --version
ruff 0.7.4

$ cat tch003.py
from collections.abc import Sequence
from typing import Callable, Literal
def f(x: Sequence[Callable[[Literal["1"]], bool]]) -> bool:
    return False
def g(x: Literal["1"]) -> bool:
    return False
print(f([g]))

$ mypy tch003.py
Success: no issues found in 1 source file

$ ruff check --isolated --config 'lint.flake8-type-checking.quote-annotations = true' --select TCH003 tch003.py --unsafe-fixes --fix
Found 1 error (1 fixed, 0 remaining).

$ cat tch003.py
from typing import Callable, Literal, TYPE_CHECKING

if TYPE_CHECKING:
    from collections.abc import Sequence
def f(x: "Sequence[Callable[[Literal[1]], bool]]") -> bool:
    return False
def g(x: Literal["1"]) -> bool:
    return False
print(f([g]))

$ mypy tch003.py
tch003.py:9: error: List item 0 has incompatible type "Callable[[Literal['1']], bool]"; expected "Callable[[Literal[1]], bool]"  [list-item]
Found 1 error in 1 file (checked 1 source file)

With "x" instead of "1" in that example, "x" is rewritten to x and the final mypy error is:
$ mypy tch003.py
tch003.py:5: error: Name "x" is not defined  [name-defined]
Found 1 error in 1 file (checked 1 source file)

Thanks so much!
Maybe this logic needs some inspection?
https://github.com/astral-sh/ruff/blob/c847cad389f202edae868765e690cb7042e88264/crates/ruff_linter/src/rules/flake8_type_checking/helpers.rs#L219-L281
Also appears that the nesting in the type annotation has some effect. For example, this fixes correctly:
from collections.abc import Sequence
from typing import Callable, Literal

def f(x: Sequence[Literal["1"]]) -> bool:
    return False

becomes:
from typing import Callable, Literal, TYPE_CHECKING

if TYPE_CHECKING:
    from collections.abc import Sequence

def f(x: "Sequence[Literal['1']]") -> bool:
    return False

Playground link

Looks like the issue was that lists were not handled (i.e. the first argument to Callable, which is a list) as the quoted annotation builder was recursing through the expressions. Gonna check a few more edge cases to see if some other things weren't handled.
But if I miss any I'm counting on you to find a slick example 😂  you're so good at this!


NoSuchMethodError after migrating to 0.4.x

Hello,
I migrated to the latest version (0.4.3) and now I am getting the following error.
note: error only occurs in release build variant and might have something to do with latest version of Kotlin (1.4)
Fatal Exception: java.lang.NoSuchMethodError: No virtual method lengthOfMonth()I in class Lj$/time/YearMonth; or its super classes (declaration of 'j$.time.YearMonth' appears in base.apk!classes2.dex)        at com.kizitonwose.calendarview.model.MonthConfig$Companion.generateWeekDays$com_github_kizitonwose_CalendarView(MonthConfig.kt:187)        at com.kizitonwose.calendarview.model.MonthConfig$Companion.generateBoundedMonths(MonthConfig.kt:57)        at com.kizitonwose.calendarview.model.MonthConfig.<init>(MonthConfig.kt:23)        at com.kizitonwose.calendarview.CalendarView.setup(CalendarView.kt:767)

Interesting, not sure what the root cause could be. Maybe I need to update the deps in the library as well.

Updated a lot of dependencies in 0.4.4, kindly check if you still have this issue.

Guess I can close this. Let me know if it still happens.


MathJax CDN shutting down

As announced here: https://www.mathjax.org/cdn-shutting-down/
MathJax requires update to new CDN. Affects footer_js.html
Also:

Note If you have been using https://cdn.mathjax.org/mathjax/latest/, we suggest to switch to a fixed version going forward as this represents best practices to avoid unexpected changes."

Hello @matlipson,
thanks for getting in touch. This issue is already fixed by #86 which has been merged on the dev branch. I'll release this fix with the next version of this theme. Stay tuned.


Add a way to generate links to issues from recognizing issue keys

One of the features that I liked the most about standard-version is that it could match issue keys and generate links in the changelog entries. I would like to implement this by using the the conventional changelog config as a reference. We can omit the {{host}} part for now until we build something that is worth to have as an alternative to @changesets/github-changelog

Closed since this is actually a non issue. This is a thing for standard-version because it relies on commit messages. One can write the ticket and link it in a way that makes sense for the team


Figuring out how to perform absolute temperature measurements

By the way David, thanks very much for your effort to combine currently available documentation.
I was doing some updates to libseek and noticed this wiki, which is a nice way to contribute without being tied to an actual implementation.
I have seen that some people were mentioning the presence of a thermal diode, that would be used to perform absolute temperature readings, but I have also seen others directly using the raw output of the camera..
I didn't really find the time (or the need...) to either find where that diode info would be located (didn't check all the "patent pixels") or perform experiments to validate the raw method.
But I'd be willing to implement the method, if someone has found one... so anyway, I'm leaving this open as an issue, which would enable people to discuss this particular subject in a thread, until a solution is found.

Hi zougloub,
Thanks for your contributions.
The wiki is public and can be edited by anyone with a github account, so feel free to just add any additional information you come up with.
I am going to close this issue as I would prefer that discussions on topics like the thermal diode took place on the eevblog forums. I don't think we benefit from splitting the community that already exists there.


Improve documentation around external_project_access_scanner

Since the external project access scanner is meant to be run manually, and the current docs specify how to do that, but that's not the full process.  Inventory, model, and notifier all also need to be run manually.  A slightly richer example would be very helpful.
even if just something like this:
export INV=`date +Y-%m-%d-%s`
forseti inventory create --import_as ${INV}
forseti model use ${INV}
forseti scanner run --scanner external_project_access_scanner
forseti notifier run --scanner_index_id <scanner index id>

i suspect that switching the output from json to text would allow some simple shell work to capture the scanner index id and let the whole thing be a single cut-n-paste, which i'd verify and provide if my instance wasn't in the middle of running the external project access scanner :)

#2755 resolves this.


Delegates and auto on g++

Using g++-8 I have had several lambdas with auto-parameters fail until the auto was replaced with the specific types. Then it all worked again. Lets be careful with auto for now.

Might as well ref this: https://github.com/hioa-cs/IncludeOS/pull/1887/commits/1a10145045dd744cf2a1fbcc6c002c6c15be3f27
Bug is still alive and well


Create list_fibonacci.c

list the required number of terms in the Fibonacci Series

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
This program accepts an input number from the user and list out the given number of terms in the Fibonacci Series
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Added new code

Update C/README.md. Refer any merged PR for better insight.

I'm closing the PR due to no activity. If you would like to reopen this PR to be reviewed please join the Slack and drop me a message.


[Receiving] Update the P2P receiving data UI and workflow

Context

We have revised the P2P UI and customer flow. We would now like to implement the new changes to the current library.
Here is the full workflow definition. This issue is concerned with the sender pieces of the workflow.

Implementation

[ ] Update the P2P landing screen to match the screen on the mockup

[x] Add the App TopBar to match the UI in the screenshot below
[x] Add the Send Data and Receive Data buttons.

[x] On clicking the Receive Data the following should happen.

[x] The app should launch the search bottom sheet. This show follows the designs shown below.

[ ] After pairing the following screens should show

[x] Show a screen to tell the user that data transfer preparation is ongoing. This is shown in image 1 of the mockups below.
[x] Show a screen displaying the sync progress. This is shown in image 2 of the mockups below.

[x] This screen should also have a cancel button.  When clicked the following should happen.

[x] A confirmation dialog should load for the user to confirm whether they want to stop the sync. If the user clicks Yes, Exit to the confirmation dialog we proceed to stop the sync. Below is a sample dialog mockup.

[ ] Show success when the sync is complete. This is shown on screen 3 of the mockups below.

[x] In case the connection breaks for any given reason the screen below should be shown to the user.

Acceptance criteria

[ ] The new UI/UX should match the mockups provided.
[ ] The Receive Data button should perform as narrated above.

@AnnieMungai
test devices:
samsung A12 android 11
oppo A3s 8.1.0
see below observations on the receiver device.

when transferring data, the transfer is happening successfully the first time, then consecutively it keeps crashing or showing '0 records sent successfully' 'connection was disconnected' on the send device, while on the receive device, keeps loading on waiting to pair, the eventually goes back to the send/receive data tab (see attached videos.)

From the mock up designs, during transfer, we should have image of the phones in the background as the data transfer is happening, this is currently not the case.

Others:
The app is crashing, when filling some forms e.g register pregnancy, there are some unresponsive radio buttons, and  when you click on them, the app crashes.
https://user-images.githubusercontent.com/84722169/213141260-57c94ab0-27d7-4f17-afeb-e6ef3067f01c.mp4
https://user-images.githubusercontent.com/84722169/213141298-f8dcee18-ccc7-45c7-a796-2ee2be686492.mp4

Closing this as the Roadmap item related to this has been closed

Closing ticket as arising issues are on a different ticket.


Bug: Scripted export doesn't deploy - bicep doesn't notice double definition of same properties

Bicep version
0.5.6
Describe the bug
Exported SQL server + db which came with RBAC for one user admin, system managed identities. I've genericised it, but the advisors and other bits fail to get created which fails the deployment. It also doesn't notice the administrative users are defined inside server resource properties (along with azureADOnlyAuthentication) and additionally as separate resource definitions of type

Also Bicep attempts to script things that arm template shouldn't support (SQL ADVISORS)
https://github.com/MicrosoftDocs/azure-docs/issues/29684#issuecomment-484838633
Lost a lot of time to stupid arm deployment incompatibilities after exporting templates from existing resources. Makes me think terraform is a better-supported option as it's their primary business focus, but I'm trying to resist as bicep is fairly comfortable to work with for a newcomer to IaC, and works smoothly with github/azure-devops/local.
I know a lot of the problems can be worked around easily enough, do things in separate stages/files, or use post-process commands, but I'd rather the process of writing bicep files was smoother (better linting + snippets).
Expected Outcome
I expect the bicep plugin for vscode to detect double definitions of the same effective property. I also dream that it would tell you what cannot be set (it does some) and eventually offer snippets of best practises #4402

The "Export Template" and "Insert resource" features are best effort processes and is really meant as a way to get you 80% of the way there.
It is not guaranteed that what is exported will deploy since this is machine generated code. It depends on the relevant resource providers building their APIs in the way export expects them to, and if they don't (like in this case), you can get bad export results.

I appreciate they won't deploy immediately, or even be 100% valid, but definitions of the same resource as a nested and separate scoped child resource could be easily detected by Linting, as could certain properties which in are effect replicated as resource definitions like the SQL server administrative administrators definition provided in my example.  I do accept the DB indexers failing deployments are the fault of the ARM template people not bicep.


Don't use hardcoded paths for installation targets

https://ci.appveyor.com/project/janisozaur/discord-rpc/build/27


Save critic function at the end of the training

Tiny PR which makes the trained critic usable.
This is a tiny change thanks to @grfrederic's unification of the API of the neural estimators :slightly_smiling_face:

Sadly, even though the interface is basically the same, MINE uses a different base class (since it uses a different training loop). Perhaps it would be nice for them to share the base class, but for now I would make the same change in MINEEstimator.

Sadly, even though the interface is basically the same, MINE uses a different base class (since it uses a different training loop). Perhaps it would be nice for them to share the base class, but for now I would make the same change in MINEEstimator.

Good spot! I've added this (and now we have unit tests checking it). I don't want to disturb you during vacation, so I'll bypass merge protections and merge it without review :slightly_smiling_face:


Chemist has no latejoin spawner

Description
thus, they latejoin at 0,0

Why are latejoin spawners job specific?

Because SpawnPointComponent is shitcode. It has a "job ID" field and a "spawn type", which can be late join, job, observer, etc.
However, from what I can see current master gameticker spawning code doesn't take late join job into account.
Ideally, we should have JobSpawnPointComponent, LateJoinSpawnPointComponent, ObserverSpawnPointComponent...

Uh, yeah, exactly. Spawn point code doesn't care about the job ID for latejoin spawns.
So why is this an issue?

Because SpawnPointComponent is shitcode. It has a "job ID" field and a "spawn type", which can be late join, job, observer, etc.
However, from what I can see current master gameticker spawning code doesn't take late join job into account.
Ideally, we should have JobSpawnPointComponent, LateJoinSpawnPointComponent, ObserverSpawnPointComponent...

This is far from shitcode, it's lukewarm "could have been done better perhaps but it's so consequential so why even care" at best.

Works on my machine

it was like 2AM and I was on the wrong branch :HECK:


Dragging an item only horizontal and not vertical

Is it possible to lock an item to a row, so when it's dragged it can only be dragged horizontally and not vertically?
Using the image below as an example, I'd like the user to only be able to drag the pink bar horizontally...
Possible? Thanks!

Would like this feature as well.


Tadpole operator to String#match?

This is just my idea that the tadpole operator =~ looks cryptic and is a legacy from Perl, so changing this to match? is better for clarification.
Rubocop style guides also suggests that =~ is not (partially) recommended: https://github.com/rubocop-hq/ruby-style-guide#no-perl-regexp-last-matchers
If unnecessary, just discard the PR.
Thank you,

No problem! I leave this to you.

@hachi8833 I think this can go out in version 0.1.13. Will merge when build runs green.

Thank you!


fix #5, work around #4, attempt fixing #10 and #13

#9 left untouched because it should be disabled in FZ config for this behaviour; the rest seem to not be bugs

I mean, if it didn't look good to me I wouldn't PR it in the first place.


META.info needs patching

The META.info file is incorrect. It lacks lots of important information and this module cannot even be installed correctly at this point because zef depends on information in the META.info that just is not there (especially the provides section).

Nevermind. I'm a dummy and failed to do a git pull from supernovus/master. 🤦♂


system-probe: allow building and loading config on darwin

What does this PR do?
This PR allows building the system probe on macOS (it can't do much yet but it builds):
inv -e system-probe.build --no-bundle

and removes most restrictions to linux by moving what can be to unix tags (unix is basically equals to linux + darwin), and allows the config to be loaded on darwin.
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Override default methods in AbstractLwM2mRequest and ObserveCompositeRequest

Since these classes don't have their custom implementations of toString(), hashCode() and equals, I created them and pushed them here. I tested them against common use cases and they seem to work alright. Let me know if there's any issues.

To be fair, I implemented the two methods in AbstractLwM2mRequest because I noticed a practice of calling super methods from subclasses, just like hashCode() and equals() in ObserveRequest calls the respective super methods in AbstractSimpleDownlinkRequest.

Do you face a case where you need to compare the coapRequest part ?

I can't really answer that question as I'm rarely in contact with actual practical use of Leshan, but at the very least I'd like to have the overriding methods in ObserveCompositeRequest, I only cared about AbstractLwM2mRequest for integrity's sake.

because I noticed a practice of calling super methods from subclasses, just like hashCode() and equals() in ObserveRequest calls the respective super methods in AbstractSimpleDownlinkRequest.

Yep, Theoretically you should not find request which call AbstractLwM2mRequest.equals  or AbstractLwM2mRequest.hashcode, if you find it looks like a bug. (but I agree that current code need more documentaiton about that or more better design for this part of the code)

I can't really answer that question as I'm rarely in contact with actual practical use of Leshan,

Too bad.

but at the very least I'd like to have the overriding methods in ObserveCompositeRequest, I only cared about AbstractLwM2mRequest for integrity's sake.

Yep let's go first with ObserveCompositeRequest (then we will see later about how to handle  AbstractLwM2mRequest case better)


May we have your best trained model's parameters or know the way of training it?

Hi, thanks so much for your pubic of code.
When I am trying to run the commands to train the model:
python myTrain.py -lr=0.001 -hdd=128 -dr=0.2 -bsz=16 -ds=kvr -B=10 -ss=10.0 or python myTrain.py -lr=0.001 -hdd=128 -dr=0.2 -bsz=8 -ds=cam -B=5 -ss=10.0, I found that the BLEU and F1 scores are not fixed each time re-train. And the automatic saved best model cannot achieve the same results you reported in the paper.
Therefore, I am wondering whether we can know how you trained the model and have access to your best model parameters.
Thanks so much!

Hi KristenZHANG,
Thank you very much for your interest in this work!
I am very sorry that I cannot provide you with the trained model which has the same results as the paper since our files related to this project on the cloud server have been automatically cleaned by the server for the timeout reason.  In fact, due to some stochastic factors(e.g., GPU and environment), it maybe need to slightly tune the hyper-parameters using grid search to reproduce the results. Here are the suggested hyper-parameter settings for grid search:
Dropout ratio [0.1, 0.15, 0.2, 0.3, 0.4]
Batch size [8, 16, 32]
Schedule sampling ratio [5.0, 8.0, 10.0, 15.0]
Size of  decomposition [0, 5, 10, 15, 20]
Additionally, in my master's thesis, I have made further improvement on FG2Seq. Of course, the core idea is consistent with ICASSP paper,  and changes the way of computing loss function and initilization of decoder, which can obtain promising gain compared with the origin paper. Besides, I will release the code and my thesis soon. Please pay attention to it.

Hi Zhenhao,
Thanks so much for your reply and suggestions for the model tuning. I'll try them and it's quite helpful.


Explorer keeps displaying "old" blocks/transactions

Hi, I have the issue in which the explorer keeps pointing to old blocks.
What I've done:

Pointing tools/grabber.js and routes/web3relay.js to private chain
Run node/grabber.js then node app.js

The app can start, but after I reset the private chain, it keeps listing the old blocks, when selected the block -> 404 error.
I tried to removed mongo db folder but the issue remained.
Where can I completely erase the blockchain database of the explorer ?
Thank you & cheers,
Anh-Dung

What settings are you using for grabber.js? Make sure you have latest set to true.

You mean the settings in the config.json if I'm correct ?
Here are they
{     "gethPort": 8545,      "blocks": [ {"start": 0, "end": "latest"}],     "quiet": false,     "terminateAtExistingDB": true,     "listenOnly": false }

Try this:
'"terminateAtExistingDB": false,
"listenOnly": true'

I found the reason: it's the mongo DB
Simply remove blockDB (local if needed also) should do the trick!
Your config works too @elaineo!
Thanks & cheers!


$payment->getQrString(); broken?

<?php

require_once('vendor/autoload.php');

use rikudou\SkQrPayment\QrPayment;
use Rikudou\Iban\Iban\IBAN;

$payment = new QrPayment();
$payment
    ->setXzBinary('xz')
    ->setCurrency('EUR')
    ->setAmount(10)
    ->setComment('financny dar, ')
    ->setIbans([
        new IBAN('SK6807200002891987426353')
    ]);

$qrString = $payment->getQrString();

echo $qrString;
?>

Output string is 0005C00 ???
Likewise, if I use your example from this webpage:
<?php

require_once('vendor/autoload.php');

use rikudou\SkQrPayment\QrPayment;
use Rikudou\Iban\Iban\IBAN;

$payment = new QrPayment(new IBAN('SK6807200002891987426353'));
$payment
    ->setXzBinary('xz')
    ->setAmount(500)
    ->setVariableSymbol('123456')
    ->setDueDate(new DateTime('+1 week'))
;

$qrString = $payment->getQrString();

// $qrString now holds the string to embed inside the QR code, in this example:
// 0004U0001M8GLP3E8KPT058IQ99QISMB02IH36MOD4BCKQQGVDE4641AOA2NURPCOPSALFG0LPG1C6N0E2JMC7RG2F4L2E57OCSHOUROGHOC8VTTPHHRFHU6VFTM8N80

echo $qrString;
?>

Output string is 0004U00 instead of supposed 0004U0001M8GLP3E8KPT058IQ99QISMB02IH36MOD4BCKQQGVDE4641AOA2NURPCOPSALFG0LPG1C6N0E2JMC7RG2F4L2E57OCSHOUROGHOC8VTTPHHRFHU6VFTM8N80
Did I miss to enable something somewhere, like some PHP extension or what?
Using QrPaymentSK v4.2.1
UPDATE
I was investigating some more in your getQrString() function in QrPayment.php file, and I found out that until the line 196 proc_close($xzProcess); variable $hashedData still holds all the correct values that were defined in $payment options (Ô	ŔŹ	1	1	10	EUR	20240611					financny dar, 	1	SK7783605207004206972399	BREXSKBX	0	0).
BUT as soon as the line $hashedData = bin2hex("\x00\x00" . pack('v', strlen($hashedData)) . $pipeOutput); happens, the new variable $hashedData suddenly becomes 00005600.
Investigating even more: important variable $pipeOutput is (seems to be) EMPTY, which means that stream_get_contents($xzProcessPipes[1]) returns nothing?!
Now as I search for the src of the $pipeOutput I see it is probably made by $xzProcess (cos that is the 1st time in the code it appears, thus my impression) which trying to call proc_open and I see it is the only call to proc_open in the file (so what I write further would have its logic, I guess), but interestingly enough, when I was trying to make Composer work I had to run it on a different PC, where I had to manually install PHP 8.1 from scratch, cos here on my PC where I run my testserver with PHP 8.1 it was Unable to launch a new process, which I was told by one guy (I guess author of the Composer, I'm not sure now) might be caused because my server - for some reason - does not allow proc_open. Which by itself is strange cos it is not disabled in the php.ini at all!
These are just my thoughts - still waiting for your actual answer tho!
UPDATE 2
Well, I tried it on that another PC where I was able successfully running Composer (= no problem with launching new process there), but the result is the same, thus I now think it is not the case of my server possibly not allowing proc_open - IT HAS TO BE SOMETHING ELSE!!! Indeed, I tested on my actual local testserver if proc_open works with this code, and it does work (output is echoed into the webpage in a loop):
<?php
set_time_limit(1800);
ob_implicit_flush(true);

$exe_command = 'C:\\Windows\\System32\\ping.exe -t google.com';

$descriptorspec = array(
    0 => array("pipe", "r"),  // stdin
    1 => array("pipe", "w"),  // stdout -> we use this
    2 => array("pipe", "w")   // stderr
);

$process = proc_open($exe_command, $descriptorspec, $pipes);

if (is_resource($process))
{
    while( ! feof($pipes[1]))
    {
        $return_message = fgets($pipes[1], 1024);
        if (strlen($return_message) == 0) break;

        echo $return_message.'
';
        ob_flush();
        flush();
    }
}
?>

If I save to a text file values with file_put_contents("test.txt", $pipeOutput.'
'.$hashedData.'
'.$xzProcessPipes[0].'
'.$xzProcessPipes[1]); right after the line 200 $hashedData = bin2hex("\x00\x00" . pack('v', strlen($hashedData)) . $pipeOutput);, then the result is:
00005600
Resource id #25
Resource id #26 (in case this info would help you somehow in your investigation at all).
Hmm, maybe the xz binary ($xzProcess) is not producing expected result = no result at all, actually (maybe if you know some 100% functional xz binaries download link that you are using yourself, I could try those instead of those I have now)?
I just deleted everything in the xy folder and...no error was produced, and code works still - how come??? There are literally no files in the xz folder now, yet all seems to working OK (except the broken output string, of course) - WHAT IS GOING ON HERE???
I WOULD SAY THIS REVELATION ALONE BASICALLY SAYING WHERE THE RPOBLEM IS: does your script actually check not only for the xz binaries folder, but also for the actual binary files in there it requires for the actual code/output? Seems not...
Everything here is just my uncompetent thoughts...7+ hrs passed and I still wait for any reaction from you. :-(((

Hi there, my guess would be that your xz binaries are wrong and don't produce the required results. You might try this for the xz tools: https://tukaani.org/xz/xz-5.2.9-windows.zip. Inside there's a bin_x86-64 directory which is most likely the one you need. Inside it there's the xz.exe, you might want to set the binary path to it.


Edit

👷 Deploy Preview for adoring-leavitt-e31a11 processing.

Name
Link

🔨 Latest commit
2f357b83ab8d4cd6c002bb0f228b8944b5ff18ee

🔍 Latest deploy log
https://app.netlify.com/sites/adoring-leavitt-e31a11/deploys/62a094a7ad01fe0008178568


deal with audio2text when result["output"] is None

I'm trying to use the code below to do audio2text. But there is something wrong with streaming audio output when recording audio. So this is my solution.
def f_audio_mic(audio):
text = audio2text(audio)
print(text)
return text
with gr.Blocks() as test:
audio_mic = gr.Audio(type='filepath', streaming=True, format='wav')
text1 = gr.Textbox()
audio_mic.stream(
f_audio_mic,
inputs=audio_mic,
outputs=[text1]
)
test.launch()

This is my new solution. and it worked, so I closed the pull request.
def f_audio1(audio1):
text = audio2text(audio1)
return text
with gr.Blocks() as demo:
audio1 = gr.Audio(label='audio', sources="microphone", type='filepath')
text = gr.Textbox()
button1 = gr.Button()
button1.click(f_audio1, [audio1], [text])
demo.launch()


ekstazi-maven-plugin select goal fails when ${basedir} contains spaces

Hi!
I'm trying to run the Maven plugin from a folder located under "c:\users\user123\myproj". It seems this path is resolved "to c:\documents and settings\user123\myproj" which causes the goal to fail, most likely because of the spaces. If I override  to the former one everything works fine, but it will obviously not be very portable...
Would be great if this issue could be fixed, this plugin looks very nice!
/ Daniel

Dear Daniel,
Thanks for the report.  Could you send us (or upload on GitHub) a small example that we can use to reproduce the problem that you described.  We would be happy to look at the problem and update the plugin.
Milos

I can't upload the actual project I'm working on, but I just followed the "1. Maven Central" instruction at http://www.ekstazi.org/maven.html.

No worries, we do not need the actual project.  However, it would be very helpful if you can make a small example (independent of your project) that illustrates the problem.  The example can be as simple as the HelloWorld, which uses Maven to build the project and includes Ekstazi plugin; the directory structure of the example should be s.t. the error in the plugin can be observed.

Absolutely! I've created a simple project, do you have an email address I can send it to?

Basically the problem seems to be that the maven plugin fails if your project folder path contains space characters.

There are multiple options.  Ideally, you can upload the simple project to github and give us the access permission (if you decide to keep it private).  Another option (if really has to be that way) is to send us the project via email (which are available on our web page(s)).

You got mail... :)

Fixed in 4.6.1


Fix crash in ringCurl caused by usage of [] in declaration of curl_formadd@7

Usage of [] in function declaration generates wrong C code.
To fix, we replace it with * as a simple pointer which is equivalent

Thanks for the update

Thanks for the update


Sway doesn't correctly validate request body

Given following openapi definition:
{
  "openapi": "3.0.0",
  "info": {
    "description": "Test",
    "version": "1.0.0",
    "title": "Test API"
  },
  "tags": [],
  "paths": {
    "/test": {
      "post": {
        "tags": [],
        "summary": "POST test",
        "description": "A POST test",
        "requestBody": {
          "description": "A test body",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "foo"
                ],
                "properties": {
                  "foo": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {},
        "security": []
      }
    }
  },
  "components": {
    "requestBodies": {},
    "securitySchemes": {},
    "schemas": {}
  }
}

I would expect sway to validate that a POST request to /test must have the key foo in it's body.
In non-strict mode I get no errors, in strict mode I get:
{
  errors: [
    {
      code: 'REQUEST_ADDITIONAL_FORM_DATA',
      message: 'Additional form data field not allowed: foo',
      path: []
    }
  ],
  warnings: []
}

Thanks!

<EMAIL_ADDRESS>isn't supported yet, and is tracked in #128.


selinux_module force install mode

:frowning_person: Problem Statement
The "selinux_module" resource would skip the install, if the module is already installed. So there is no way to install a new version without first removing the module first. But removing the module can cause run time issue.
:grey_question: Possible Solution
This is a fundamental issue since RHEL8 "semodule -l" no longer provides the module version information. So any solution would assume the absence of the information. I ended up with a workaround.

I save the downloaded policy .pp file.
When the policy is installed, I create a ".pp.install_flag" file.
I do a a check whether the ".pp.install_flag" file is newer than ".pp" file. If yes, skip the install, otherwise call the "selinux_module" resource.

But for this to work (to install the updated module), there need to be a "force_install" mode for the "selinux_module" resource.
:arrow_heading_up: Describe alternatives you've considered
I am not aware of any, and would welcome ideas.
:heavy_plus_sign: Additional context
If it's acceptable, I submit a PR to add the "force_install" flag.

Have you looked at the built-in resource in chef-client https://docs.chef.io/resources/selinux_module/

Otherwise what i've done in the past to help with idempotency for something like this is to write the config into a file resource. Then the file resource calls the custom resource with notifies and desired action. Thus if file's content changes due to module configuration changes then it triggers the update.

We are not using the built in module resource, since we are on older
version of Chef.
The notification is a good idea. Would that also need the force_install
switch?
Thanks
On Mon, Apr 15, 2024 at 2:41 PM Corey Hemminger @.***>
wrote:

Otherwise what i've done in the past to help with idempotency for
something like this is to write the config into a file resource. Then the
file resource calls the custom resource with notifies and desired action.
Thus if file's content changes due to module configuration changes then it
triggers the update.
—
Reply to this email directly, view it on GitHub
https://github.com/sous-chefs/selinux/issues/118#issuecomment-2057671443,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJK3CPWLSQP7RWIULIZNGLY5QUOFAVCNFSM6AAAAABGHZ6TYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJXGY3TCNBUGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

@Stromweld Any further comments?


Support the docs be rendered on Readthedocs

Now the documents can only be viewed on the GitHub platform currently, but in fact, all the documents are written in markdown, which can be easily rendered using tools like 'mkdocs' and can be hosted on document hosting platforms like 'readthedocs'.

PR has been merged to master:Support rendering the docs on Readthedocs #7


add length check for arm where UB sanitizer finds nullptr arithmetic

There are probably more places that need this but I just fixed those that showed up when I fuzzed.

There is one more to fix:

/home/fuzzer/code/simdutf/src/arm64/arm_convert_latin1_to_utf8.cpp:13:23: runtime error: applying non-zero offset 16 to null pointer

@pauldreik Merged and did other fixes in the main branch.

@pauldreik
We have a new release.
Unfortunately, oss-fuzz seems to be broken. :-/

The oss fuzz build error is this:
Step #3 - "compile-afl-address-x86_64": In file included from /src/simdutf/src/simdutf.cpp:64:
Step #3 - "compile-afl-address-x86_64": In file included from /src/simdutf/src/icelake/implementation.cpp:24:
Step #3 - "compile-afl-address-x86_64": /src/simdutf/src/icelake/icelake_from_utf8.inl.cpp:266:20: fatal error: expected expression
Step #3 - "compile-afl-address-x86_64":   266 |     if (end - ptr => 64) {
Step #3 - "compile-afl-address-x86_64":       |                    ^
Step #3 - "compile-afl-address-x86_64": 1 error generated.
Step #3 - "compile-afl-address-x86_64": make[2]: *** [src/CMakeFiles/simdutf.dir/build.make:76: src/CMakeFiles/simdutf.dir/simdutf.cpp.o] Error 1

which looks like a real problem. Or was there some other problem you refer to? Maybe we can add myself to the oss-fuzz cc list, so I can see problems without waiting 90 days.

which looks like a real problem.

That was a temporary bug I introduced. The current release should be fine. :-)

Or was there some other problem you refer to?

I have not investigated. Maybe there is just a delay.

Maybe we can add myself to the oss-fuzz cc list, so I can see problems without waiting 90 days.

Please do. Or I can do it if you tell me how.


Apply user styles on left/right NavBar buttons rendered by user

The default behaviour of <NavBar> when renderRightButton/renderLeftButton is used is to wrap the returned component in a <View>. This <View> has only the default styles of <NavBar> and styles specified by user were missing. Now wrappers of custom rendered buttons can be styled too.

Hi,
I also need this, BUT.. can you set the state styles the last so you can always override?
Imagine what happens if you set flexDirection to row? (alignItems prop here would not work if you can't override that..)

@andrispraulitis I changed the order of applied styles as you requested.

@andrispraulitis any updates?

I'm not priviliged to accept pull requests, in fact I'm waiting on my pull request with the exact same issue on tabbar.
#1459

oops sorry 😀then only aksonov can accept it?

Hi,
I would love to see this merge & publish to npm because we need this change too.

Hey there,
I don't know why nobody reacts to my PR. @aksonov are you here?

@psychoo118 I'm really sorry about missing this PR - I unsubscribed to PR once and forgot to re-subscribe again later. Unfortunately I have available time only recently and completed v4 beta based on React Navigation. Feel free to submit PRs for v4 now. I promise I will not miss them again.


Shape comparison

I second all Marta's comments plus:

Use better formatting (eg. lists etc.)
Rerun on the new drawing code and remove the bloated imports for drawing
It might be good idea to include 10-20 smiles of various molecules from ZINC in a list instead of downloading whole smiles to keep the notebook self-contained.


Refactor sktime tests and inspection&search to live in baseobject package

@fkiraly we'll need to update get_test_params(cls, parameter_set="default") for this to work. It assumes tests are imported from location in sktime.
Some initial solutions, I've considered (no particular order):

Use the "config" interface I've added in my repo (note that scikit-learn is using a config interface to change behavior of BaseEstimator, e.g. how it pretty prints, etc). Idea would be that a package that uses BaseObject uses set_config prior to importing BaseObject
Provide a decorator that can be used to set this in inherited objects.
Require inheriting classes to have an attribute or use a tag that allows this functionality to work
Add param to function, requiring users to pass the test location (this is not ideal solution b/c  having to provide that constantly is not good for users, and we'd have to add the param to other methods that call this internally, which exacerbates that problem)

just for the record, from what was discussed verbally:
get_test_params default in sktime BaseObject ist just importing from elsewhere to be downwards compatible with legacy situation where test params would all sit in one file rather than with their estimator/object.
This will be removed eventually, in favour of a default "return empty dict". New estimators do not import any fixed location but return a list of dicts of test parameters.
That is what we decided to do, in the end.

@fkiraly just wanted to confirm what is meant about new estimators not importing from any fixed location.
I agree with the current initial refactor part and defaulting to empty dicts down the road. But wanted to clarify what the other part meant.
Is the no fixed location part implying that we will give people the option to configure a dynamic location (and otherwise default to empty dict if they don't do it)?
As an example, that would mean you could set BaseObject to look in the correct directory for test params in sktime when used in sktime, and others could configure their location in their packages (and if not it defaults to empty dict).
That would be very nice for.

Is the no fixed location part implying that we will give people the option to configure a dynamic location (and otherwise default to empty dict if they don't do it)?

No, I did not mean "configurable but fixed location", but "no reference to any extrinsic location at all", in my post above.
What we do in the end (as opposed to what I meant above) is of course up for discussion, currently I would favour having test parameters with the estimator, instead of collecting them all in one place. That has caused so many problems with sktime, amongst others a substantial complication of the extender contract (it seels like a little, but it is substantial due to the overhead of communication and understanding complexity required here).

The only difficulty is including test params in composite estimators (and where to import things). We can cross that bridge once we get there.

In sktime, we adopted the convention that component imports must happen inside get_test_params, or it is really easy to end up with circular imports.

FYI, I have been separating object from estimator tests in sktime, that has been a bit of a hassle: https://github.com/alan-turing-institute/sktime/pull/3122
This constitutes the major step on the sktime side, since we now have a well-defined scope that can be replaced by a baseobject import.

I think this is done:

sktime no longer relies on _config to retrieve estimator test parameters


How can I keep the stored data after uninstalling the app?

How can I keep the stored data after uninstalling the app?

you can't

@chaocharleswang by storing it on a server instead of on the device

Definitely can't be achived through Hawk and it's not in the scope. What others suggested may help.


Add initial service account and permissions

@ctron Added the suggestions . We can add permissions as we implement the controllers


Nevergrad vs. HybridNevergrad

Hello,
I want to try pix2latent on the FFHQ dataset on Google Colab. Due to RAM constraints, Colab won't run the optimization process with CMA or BasinCMA (unless I use the cars dataset), so I have to go with the faster (yet worse) option relying on Nevergrad.
I see that:

Nevergrad is gradient-free optimization (CMA by default), followed by ADAM fine-tuning, so that would be similar to:

HybridNevergrad alternates gradient-free optimization (CMA by default) and SGD optimization. That would be akin to the following, albeit with SGD instead of ADAM:

Between the two options (Nevergrad vs. HybridNevergrad), which one would you recommend?
Edit: Below are results obtained with Nevergrad .

Edit: Below are results obtained with HybridNevergrad.

I guess I would have to try another portrait, tweak parameters, or forget Colab and stick to CMA/BasinCMA on a local machine.

HybridNevergrad doesn't work that well when you have a very small batch-size (e.g., < 4). I believe this is because the parallelization they provide is simply just accumulating samples before they apply update (i might be wrong) -- requiring you to increase the number of optimization steps significantly. So you can first try and see if the optimization methods using PyCMA works.
So how do we get BasinCMAOPtimizer and CMAOptimizer to work when you have GPU with restricted memory?
To reduce memory while keeping the suggested sample-size of PyCMA you can set max_batch_size to be very small.
I believe for latent dimensionality of 512, PyCMA asks for 22 samples. Then setting max_batch_size to 4 will divide the 22 samples into 6 mini-batches. You can keep reducing it until it fits. Yes, this means that the optimizer will do 6 forward and backward passes for each CMA update, making the whole optimization process slow.
Also, if memory and computational time is a concern, I recommend that you use CMAOptimizer with gradient descent off instead of BasinCMA. That is because CMA does not need you to compute backward pass, and therefore effectively increasing the max_batch_size. Furthermore, there is an added benefit of not requiring you to compute the forward pass (usually improves the runtime by a factor of 2).
Hopefully, these suggestions are helpful for getting it to run on collab.

Thank you very much for this thorough answer! That is a lot of helpful information!


Timeout in client while connecting to MCP server on Windows

I see
693-110d9774cbce8f0f.js:18 Could not attach to MCP server sqlite: eE: MCP error -2: Request timed out
693-110d9774cbce8f0f.js:18 Could not attach to MCP server filesystem: eE: MCP error -2: Request timed out

Despite MCP logs with
2024-11-27T07:00:20.484Z [info] Attempting to connect to MCP server sqlite...
2024-11-27T07:00:20.487Z [info] Attempting to connect to MCP server filesystem...
2024-11-27T07:00:20.507Z [info] Connected to MCP server sqlite!
2024-11-27T07:00:20.514Z [info] Connected to MCP server filesystem!

I ran the inspector fine but that didn't really add much clarity. Seems like a client issue? Posting for visibility in case other folks are seeing the same thing.

+1, able to replicate here as well for any servers in windows that rely on node.

windows??
\   change  to  / ，try it!
I fix it  by this way

windows??
\  change to / ，try it!
I fix it by this way

windows??
“\” change to “/” ，try it!
I fix it by this way

windows??
double“\” change to single“/” ，try it!
I fix it by this way

Does this issue still occur for you with Claude Desktop v0.7.5?


FastCGI.php line 114: Error: File not found. (when using configuration file)

I'm a bit baffled by this.
CacheTool: 8.4.0
PHP: 8.1.5
Running the command with arguments cachetool opcache:status --fcgi=<IP_ADDRESS>:9000 works as expected but as soon as I use a .cachetool.yml I always get an error:
In FastCGI.php line 114:

  Error: File not found.

This is my .cachetool.yml:
adapter: fastcgi
fastcgi: <IP_ADDRESS>:9000

Without any .cachetool.yml:
$ cachetool opcache:status --fcgi=<IP_ADDRESS>:9000
+----------------------+---------------------------------+
| Name                 | Value                           |
+----------------------+---------------------------------+
| Enabled              | Yes                             |
| Cache full           | No                              |
| Restart pending      | No                              |
| Restart in progress  | No                              |
| Memory used          | 106.33 MiB                      |
| Memory free          | 21.67 MiB                       |
| Memory wasted (%)    | 0 b (0%)                        |
| Strings buffer size  | 6 MiB                           |
| Strings memory used  | 6 MiB                           |
| Strings memory free  | 0 b                             |
| Number of strings    | 53224                           |
+----------------------+---------------------------------+
| Cached scripts       | 3424                            |
| Cached keys          | 6742                            |
| Max cached keys      | 16229                           |
| Start time           | Wed, 11 May 2022 11:02:52 +0100 |
| Last restart time    | Never                           |
| Oom restarts         | 0                               |
| Hash restarts        | 0                               |
| Manual restarts      | 0                               |
| Hits                 | 67059                           |
| Misses               | 3434                            |
| Blacklist misses (%) | 0 (0%)                          |
| Opcache hit rate     | 95.128594328515                 |
+----------------------+---------------------------------+

With the .cachetool.yml as described above:
$ cachetool opcache:status

In FastCGI.php line 114:

  Error: File not found.

opcache:status

Same here with:
php81 ~/.local/bin/cachetool8.phar opcache:status --fcgi=/var/run/php-fpm/mig-attri-0b5049.socket

In FastCGI.php line 114:

  Error: No input file specified.

When using "--cli"
php81 ~/.local/bin/cachetool8.phar opcache:status --fcgi=/var/run/php-fpm/mig-attri-0b5049.socket --cli
+----------------------+---------------------------------+
| Name                 | Value                           |
+----------------------+---------------------------------+
| Enabled              | Yes                             |
| Cache full           | No                              |
| Restart pending      | No                              |
| Restart in progress  | No                              |
| Memory used          | 8.74 MiB                        |
| Memory free          | 119.26 MiB                      |
| Memory wasted (%)    | 0 b (0%)                        |
| Strings buffer size  | 6 MiB                           |
| Strings memory used  | 437.91 KiB                      |
| Strings memory free  | 5.57 MiB                        |
| Number of strings    | 9352                            |
+----------------------+---------------------------------+
| Cached scripts       | 0                               |
| Cached keys          | 0                               |
| Max cached keys      | 16229                           |
| Start time           | Mon, 16 May 2022 08:26:35 +0000 |
| Last restart time    | Never                           |
| Oom restarts         | 0                               |
| Hash restarts        | 0                               |
| Manual restarts      | 0                               |
| Hits                 | 0                               |
| Misses               | 1                               |
| Blacklist misses (%) | 0 (0%)                          |
| Opcache hit rate     | 0                               |
+----------------------+---------------------------------+

Can you run with maximum verbosity mode on? What is the file permissions of .cachetool.yml?
cachetool -vvv opcache:status

Hi,
Without any .cachetool.yml this is the output:
$ cachetool -vvv opcache:status

Box Requirements Checker
========================

> Using PHP 8.1.5
> PHP is using the following php.ini file:
  /etc/php.ini

> Checking Box requirements:
  ✔ The application requires the version ">=8.0.0" or greater.
  ✔ The package "hollodotme/fast-cgi-client" requires the extension "json".

 [OK] Your system is ready to run the application.

[2022-06-06T10:13:12.747636+01:00] cachetool.INFO: CacheTool 8.4.0 [] []
[2022-06-06T10:13:12.749376+01:00] cachetool.DEBUG: Config: {"adapter":"fastcgi","extensions":["apcu","opcache"],"fastcgi":null,"temp_dir":null} [] []
[2022-06-06T10:13:12.752053+01:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\ApcuProxy [] []
[2022-06-06T10:13:12.752296+01:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\PhpProxy [] []
[2022-06-06T10:13:12.752587+01:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2022-06-06T10:13:12.752637+01:00] cachetool.INFO: Setting adapter: CacheTool\Adapter\FastCGI [] []
[2022-06-06T10:13:12.755472+01:00] cachetool.NOTICE: Executing: extension_loaded("Zend OPcache") [] []
[2022-06-06T10:13:12.755534+01:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\ApcuProxy [] []
[2022-06-06T10:13:12.755566+01:00] cachetool.DEBUG: Loading Function: apcu_add [] []
[2022-06-06T10:13:12.755589+01:00] cachetool.DEBUG: Loading Function: apcu_cache_info [] []
[2022-06-06T10:13:12.755622+01:00] cachetool.DEBUG: Loading Function: apcu_regexp_get_keys [] []
[2022-06-06T10:13:12.755647+01:00] cachetool.DEBUG: Loading Function: apcu_cas [] []
[2022-06-06T10:13:12.755666+01:00] cachetool.DEBUG: Loading Function: apcu_clear_cache [] []
[2022-06-06T10:13:12.755687+01:00] cachetool.DEBUG: Loading Function: apcu_dec [] []
[2022-06-06T10:13:12.755708+01:00] cachetool.DEBUG: Loading Function: apcu_delete [] []
[2022-06-06T10:13:12.755726+01:00] cachetool.DEBUG: Loading Function: apcu_regexp_delete [] []
[2022-06-06T10:13:12.755745+01:00] cachetool.DEBUG: Loading Function: apcu_exists [] []
[2022-06-06T10:13:12.755763+01:00] cachetool.DEBUG: Loading Function: apcu_fetch [] []
[2022-06-06T10:13:12.755780+01:00] cachetool.DEBUG: Loading Function: apcu_inc [] []
[2022-06-06T10:13:12.755798+01:00] cachetool.DEBUG: Loading Function: apcu_sma_info [] []
[2022-06-06T10:13:12.755815+01:00] cachetool.DEBUG: Loading Function: apcu_store [] []
[2022-06-06T10:13:12.755833+01:00] cachetool.DEBUG: Loading Function: apcu_version [] []
[2022-06-06T10:13:12.755850+01:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\PhpProxy [] []
[2022-06-06T10:13:12.755881+01:00] cachetool.DEBUG: Loading Function: extension_loaded [] []
[2022-06-06T10:13:12.755902+01:00] cachetool.DEBUG: Loading Function: ini_get [] []
[2022-06-06T10:13:12.755921+01:00] cachetool.DEBUG: Loading Function: ini_set [] []
[2022-06-06T10:13:12.755939+01:00] cachetool.DEBUG: Loading Function: phpversion [] []
[2022-06-06T10:13:12.755957+01:00] cachetool.DEBUG: Loading Function: stat_realpath_get [] []
[2022-06-06T10:13:12.755974+01:00] cachetool.DEBUG: Loading Function: stat_realpath_size [] []
[2022-06-06T10:13:12.755992+01:00] cachetool.DEBUG: Loading Function: stat_cache_clear [] []
[2022-06-06T10:13:12.756010+01:00] cachetool.DEBUG: Loading Function: _eval [] []
[2022-06-06T10:13:12.756028+01:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2022-06-06T10:13:12.756056+01:00] cachetool.DEBUG: Loading Function: opcache_compile_file [] []
[2022-06-06T10:13:12.756077+01:00] cachetool.DEBUG: Loading Function: opcache_compile_files [] []
[2022-06-06T10:13:12.756095+01:00] cachetool.DEBUG: Loading Function: opcache_get_configuration [] []
[2022-06-06T10:13:12.756113+01:00] cachetool.DEBUG: Loading Function: opcache_get_status [] []
[2022-06-06T10:13:12.756131+01:00] cachetool.DEBUG: Loading Function: opcache_invalidate [] []
[2022-06-06T10:13:12.756149+01:00] cachetool.DEBUG: Loading Function: opcache_invalidate_many [] []
[2022-06-06T10:13:12.756167+01:00] cachetool.DEBUG: Loading Function: opcache_reset [] []
[2022-06-06T10:13:12.756184+01:00] cachetool.DEBUG: Loading Function: opcache_version [] []
[2022-06-06T10:13:12.756378+01:00] cachetool.DEBUG: Executing code: return extension_loaded('Zend OPcache'); [] []
[2022-06-06T10:13:12.756453+01:00] cachetool.INFO: FastCGI: Dumped code to file: /dev/shm/cachetool-629dc528b8abd6.78796418.php [] []
[2022-06-06T10:13:12.756521+01:00] cachetool.INFO: FastCGI: Requesting FPM using socket: <IP_ADDRESS>:9000 [] []
[2022-06-06T10:13:12.766377+01:00] cachetool.DEBUG: FastCGI: Response: {} [] []
[2022-06-06T10:13:12.766469+01:00] cachetool.DEBUG: Return errors: [] [] []
[2022-06-06T10:13:12.766556+01:00] cachetool.DEBUG: Return result: true [] []
[2022-06-06T10:13:12.766605+01:00] cachetool.NOTICE: Executing: opcache_get_status(false) [] []
[2022-06-06T10:13:12.766699+01:00] cachetool.DEBUG: Executing code: return opcache_get_status(false); [] []
[2022-06-06T10:13:12.766781+01:00] cachetool.INFO: FastCGI: Dumped code to file: /dev/shm/cachetool-629dc528bb2ff8.25371945.php [] []
[2022-06-06T10:13:12.766865+01:00] cachetool.INFO: FastCGI: Requesting FPM using socket: <IP_ADDRESS>:9000 [] []
[2022-06-06T10:13:12.768999+01:00] cachetool.DEBUG: FastCGI: Response: {} [] []
[2022-06-06T10:13:12.769102+01:00] cachetool.DEBUG: Return errors: [] [] []
[2022-06-06T10:13:12.769161+01:00] cachetool.DEBUG: Return result: {"opcache_enabled":true,"cache_full":true,"restart_pending":false,"restart_in_progress":false,"memory_usage":{"used_memory":134213288,"free_memory":4440,"wasted_memory":0,"current_wasted_percentage":0},"interned_strings_usage":{"buffer_size":6290992,"used_memory":6290992,"free_memory":0,"number_of_strings":53224},"opcache_statistics":{"num_cached_scripts":4870,"num_cached_keys":9606,"max_cached_keys":16229,"hits":403154,"start_time":1652263372,"last_restart_time":1652267225,"oom_restarts":0,"hash_restarts":0,"manual_restarts":2,"misses":34479,"blacklist_misses":0,"blacklist_miss_ratio":0,"opcache_hit_rate":92.12148078412734},"jit":{"enabled":false,"on":false,"kind":5,"opt_level":4,"opt_flags":6,"buffer_size":0,"buffer_free":0}} [] []
+----------------------+---------------------------------+
| Name                 | Value                           |
+----------------------+---------------------------------+
| Enabled              | Yes                             |
| Cache full           | Yes                             |
| Restart pending      | No                              |
| Restart in progress  | No                              |
| Memory used          | 128 MiB                         |
| Memory free          | 4.34 KiB                        |
| Memory wasted (%)    | 0 b (0%)                        |
| Strings buffer size  | 6 MiB                           |
| Strings memory used  | 6 MiB                           |
| Strings memory free  | 0 b                             |
| Number of strings    | 53224                           |
+----------------------+---------------------------------+
| Cached scripts       | 4870                            |
| Cached keys          | 9606                            |
| Max cached keys      | 16229                           |
| Start time           | Wed, 11 May 2022 11:02:52 +0100 |
| Last restart time    | Wed, 11 May 2022 12:07:05 +0100 |
| Oom restarts         | 0                               |
| Hash restarts        | 0                               |
| Manual restarts      | 2                               |
| Hits                 | 403154                          |
| Misses               | 34479                           |
| Blacklist misses (%) | 0 (0%)                          |
| Opcache hit rate     | 92.121480784127                 |
+----------------------+---------------------------------+

With the following .cachetool.yml (it has permissions 0644)...
adapter: fastcgi
fastcgi: <IP_ADDRESS>:9000

... this is the output:
$ cachetool -vvv opcache:status

Box Requirements Checker
========================

> Using PHP 8.1.5
> PHP is using the following php.ini file:
  /etc/php.ini

> Checking Box requirements:
  ✔ The application requires the version ">=8.0.0" or greater.
  ✔ The package "hollodotme/fast-cgi-client" requires the extension "json".

 [OK] Your system is ready to run the application.

[2022-06-06T10:15:42.574784+01:00] cachetool.INFO: CacheTool 8.4.0 [] []
[2022-06-06T10:15:42.576574+01:00] cachetool.DEBUG: Config: {"adapter":"fastcgi","extensions":["apcu","opcache"],"fastcgi":"<IP_ADDRESS>:9000","temp_dir":"\/tmp"} [] []
[2022-06-06T10:15:42.579384+01:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\ApcuProxy [] []
[2022-06-06T10:15:42.579667+01:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\PhpProxy [] []
[2022-06-06T10:15:42.579990+01:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2022-06-06T10:15:42.580073+01:00] cachetool.INFO: Setting adapter: CacheTool\Adapter\FastCGI [] []
[2022-06-06T10:15:42.582896+01:00] cachetool.NOTICE: Executing: extension_loaded("Zend OPcache") [] []
[2022-06-06T10:15:42.582989+01:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\ApcuProxy [] []
[2022-06-06T10:15:42.583054+01:00] cachetool.DEBUG: Loading Function: apcu_add [] []
[2022-06-06T10:15:42.583107+01:00] cachetool.DEBUG: Loading Function: apcu_cache_info [] []
[2022-06-06T10:15:42.583156+01:00] cachetool.DEBUG: Loading Function: apcu_regexp_get_keys [] []
[2022-06-06T10:15:42.583203+01:00] cachetool.DEBUG: Loading Function: apcu_cas [] []
[2022-06-06T10:15:42.583251+01:00] cachetool.DEBUG: Loading Function: apcu_clear_cache [] []
[2022-06-06T10:15:42.583296+01:00] cachetool.DEBUG: Loading Function: apcu_dec [] []
[2022-06-06T10:15:42.583343+01:00] cachetool.DEBUG: Loading Function: apcu_delete [] []
[2022-06-06T10:15:42.583390+01:00] cachetool.DEBUG: Loading Function: apcu_regexp_delete [] []
[2022-06-06T10:15:42.583436+01:00] cachetool.DEBUG: Loading Function: apcu_exists [] []
[2022-06-06T10:15:42.583500+01:00] cachetool.DEBUG: Loading Function: apcu_fetch [] []
[2022-06-06T10:15:42.583547+01:00] cachetool.DEBUG: Loading Function: apcu_inc [] []
[2022-06-06T10:15:42.583581+01:00] cachetool.DEBUG: Loading Function: apcu_sma_info [] []
[2022-06-06T10:15:42.583630+01:00] cachetool.DEBUG: Loading Function: apcu_store [] []
[2022-06-06T10:15:42.583674+01:00] cachetool.DEBUG: Loading Function: apcu_version [] []
[2022-06-06T10:15:42.583718+01:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\PhpProxy [] []
[2022-06-06T10:15:42.583763+01:00] cachetool.DEBUG: Loading Function: extension_loaded [] []
[2022-06-06T10:15:42.583796+01:00] cachetool.DEBUG: Loading Function: ini_get [] []
[2022-06-06T10:15:42.583827+01:00] cachetool.DEBUG: Loading Function: ini_set [] []
[2022-06-06T10:15:42.583882+01:00] cachetool.DEBUG: Loading Function: phpversion [] []
[2022-06-06T10:15:42.583916+01:00] cachetool.DEBUG: Loading Function: stat_realpath_get [] []
[2022-06-06T10:15:42.583946+01:00] cachetool.DEBUG: Loading Function: stat_realpath_size [] []
[2022-06-06T10:15:42.583977+01:00] cachetool.DEBUG: Loading Function: stat_cache_clear [] []
[2022-06-06T10:15:42.584007+01:00] cachetool.DEBUG: Loading Function: _eval [] []
[2022-06-06T10:15:42.584037+01:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2022-06-06T10:15:42.584080+01:00] cachetool.DEBUG: Loading Function: opcache_compile_file [] []
[2022-06-06T10:15:42.584113+01:00] cachetool.DEBUG: Loading Function: opcache_compile_files [] []
[2022-06-06T10:15:42.584148+01:00] cachetool.DEBUG: Loading Function: opcache_get_configuration [] []
[2022-06-06T10:15:42.584178+01:00] cachetool.DEBUG: Loading Function: opcache_get_status [] []
[2022-06-06T10:15:42.584208+01:00] cachetool.DEBUG: Loading Function: opcache_invalidate [] []
[2022-06-06T10:15:42.584238+01:00] cachetool.DEBUG: Loading Function: opcache_invalidate_many [] []
[2022-06-06T10:15:42.584268+01:00] cachetool.DEBUG: Loading Function: opcache_reset [] []
[2022-06-06T10:15:42.584298+01:00] cachetool.DEBUG: Loading Function: opcache_version [] []
[2022-06-06T10:15:42.584515+01:00] cachetool.DEBUG: Executing code: return extension_loaded('Zend OPcache'); [] []
[2022-06-06T10:15:42.584631+01:00] cachetool.INFO: FastCGI: Dumped code to file: /tmp/cachetool-629dc5be8eb743.77789875.php [] []
[2022-06-06T10:15:42.584793+01:00] cachetool.INFO: FastCGI: Requesting FPM using socket: <IP_ADDRESS>:9000 [] []
[2022-06-06T10:15:42.589052+01:00] cachetool.DEBUG: FastCGI: Response: {} [] []

In FastCGI.php line 114:

  [RuntimeException]
  Error: File not found.

Exception trace:
  at phar:///usr/local/bin/cachetool/src/Adapter/FastCGI.php:114
 CacheTool\Adapter\FastCGI->doRun() at phar:///usr/local/bin/cachetool/src/Adapter/AbstractAdapter.php:43
 CacheTool\Adapter\AbstractAdapter->run() at phar:///usr/local/bin/cachetool/src/Proxy/PhpProxy.php:64
 CacheTool\Proxy\PhpProxy->extension_loaded() at phar:///usr/local/bin/cachetool/src/CacheTool.php:165
 CacheTool\CacheTool->__call() at phar:///usr/local/bin/cachetool/src/Command/AbstractCommand.php:38
 CacheTool\Command\AbstractCommand->ensureExtensionLoaded() at phar:///usr/local/bin/cachetool/src/Command/OpcacheStatusCommand.php:38
 CacheTool\Command\OpcacheStatusCommand->execute() at phar:///usr/local/bin/cachetool/vendor/symfony/console/Command/Command.php:299
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/cachetool/vendor/symfony/console/Application.php:978
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/cachetool/src/Console/Application.php:148
 CacheTool\Console\Application->doRunCommand() at phar:///usr/local/bin/cachetool/vendor/symfony/console/Application.php:295
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/cachetool/src/Console/Application.php:131
 CacheTool\Console\Application->doRun() at phar:///usr/local/bin/cachetool/vendor/symfony/console/Application.php:167
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/cachetool/bin/cachetool:26
 require() at /usr/local/bin/cachetool:14

opcache:status

Seems to be related to the tmp-dir setting...
cachetool -vvv opcache:status --fcgi=<IP_ADDRESS>:9000 # works
cachetool -vvv opcache:status --fcgi=<IP_ADDRESS>:9000 --tmp-dir=/dev/shm #works
cachetool -vvv opcache:status --fcgi=<IP_ADDRESS>:9000 --tmp-dir=/tmp #fails

If we run with no parameters and instead use a .cachetool.yml file for config then...
This works:
adapter: fastcgi
fastcgi: <IP_ADDRESS>:9000
temp_dir: /dev/shm

This fails:
adapter: fastcgi
fastcgi: <IP_ADDRESS>:9000
temp_dir: /dev/shm/cachetool

This fails:
adapter: fastcgi
fastcgi: <IP_ADDRESS>:9000
temp_dir: /tmp

This fails:
adapter: fastcgi
fastcgi: <IP_ADDRESS>:9000

One thing that surfaces from this (aside from the inconsistent tmp_dir vs tmp-dir) is that when the tmp_dir setting is omitted there seems to be inconsistent handling of the default tmp_dir when run with and without a config file...
When run without a config file and no tmp-dir argument then the tmp_dir config is null and it appears to default to /dev/shm. However, when run with a config file that has no tmp_dir setting the tmp_dir config is set to /tmp

Hello,
My original stack trace is the same as bluec.
When I use the --tmp-dir=/tmp or  --tmp-dir=/dev/shm argument I got this one:
$ php81 ~/.local/bin/cachetool8.phar -vvv  opcache:status --tmp-dir /dev/shm --fcgi /var/run/php-fpm/mig-attri-0b5049.socket

Box Requirements Checker
========================

> Using PHP 8.1.4
> PHP is using the following php.ini file:
  /etc/opt/remi/php81/php.ini

> Checking Box requirements:
  ✔ The application requires the version ">=8.0.0" or greater.
  ✔ The package "hollodotme/fast-cgi-client" requires the extension "json".

 [OK] Your system is ready to run the application.

[2022-06-06T10:09:52.132261+00:00] cachetool.INFO: CacheTool 8.3.0 [] []
[2022-06-06T10:09:52.140012+00:00] cachetool.DEBUG: Config: {"adapter":"fastcgi","extensions":["apcu","opcache"],"fastcgi":"\/var\/run\/php-fpm\/mig-attri-0b5049.socket","temp_dir":"\/dev\/shm","fastcgiChroot":false} [] []
[2022-06-06T10:09:52.148805+00:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\ApcuProxy [] []
[2022-06-06T10:09:52.149453+00:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\PhpProxy [] []
[2022-06-06T10:09:52.150128+00:00] cachetool.INFO: Adding Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2022-06-06T10:09:52.150225+00:00] cachetool.INFO: Setting adapter: CacheTool\Adapter\FastCGI [] []
[2022-06-06T10:09:52.157447+00:00] cachetool.NOTICE: Executing: extension_loaded("Zend OPcache") [] []
[2022-06-06T10:09:52.157572+00:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\ApcuProxy [] []
[2022-06-06T10:09:52.157637+00:00] cachetool.DEBUG: Loading Function: apcu_add [] []
[2022-06-06T10:09:52.157686+00:00] cachetool.DEBUG: Loading Function: apcu_cache_info [] []
[2022-06-06T10:09:52.157732+00:00] cachetool.DEBUG: Loading Function: apcu_regexp_get_keys [] []
[2022-06-06T10:09:52.157765+00:00] cachetool.DEBUG: Loading Function: apcu_cas [] []
[2022-06-06T10:09:52.159159+00:00] cachetool.DEBUG: Loading Function: apcu_clear_cache [] []
[2022-06-06T10:09:52.159204+00:00] cachetool.DEBUG: Loading Function: apcu_dec [] []
[2022-06-06T10:09:52.159239+00:00] cachetool.DEBUG: Loading Function: apcu_delete [] []
[2022-06-06T10:09:52.159270+00:00] cachetool.DEBUG: Loading Function: apcu_regexp_delete [] []
[2022-06-06T10:09:52.159301+00:00] cachetool.DEBUG: Loading Function: apcu_exists [] []
[2022-06-06T10:09:52.159334+00:00] cachetool.DEBUG: Loading Function: apcu_fetch [] []
[2022-06-06T10:09:52.159363+00:00] cachetool.DEBUG: Loading Function: apcu_inc [] []
[2022-06-06T10:09:52.159393+00:00] cachetool.DEBUG: Loading Function: apcu_sma_info [] []
[2022-06-06T10:09:52.159423+00:00] cachetool.DEBUG: Loading Function: apcu_store [] []
[2022-06-06T10:09:52.159451+00:00] cachetool.DEBUG: Loading Function: apcu_version [] []
[2022-06-06T10:09:52.159482+00:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\PhpProxy [] []
[2022-06-06T10:09:52.159542+00:00] cachetool.DEBUG: Loading Function: extension_loaded [] []
[2022-06-06T10:09:52.159579+00:00] cachetool.DEBUG: Loading Function: ini_get [] []
[2022-06-06T10:09:52.159611+00:00] cachetool.DEBUG: Loading Function: ini_set [] []
[2022-06-06T10:09:52.159644+00:00] cachetool.DEBUG: Loading Function: phpversion [] []
[2022-06-06T10:09:52.159674+00:00] cachetool.DEBUG: Loading Function: stat_realpath_get [] []
[2022-06-06T10:09:52.159705+00:00] cachetool.DEBUG: Loading Function: stat_realpath_size [] []
[2022-06-06T10:09:52.159740+00:00] cachetool.DEBUG: Loading Function: stat_cache_clear [] []
[2022-06-06T10:09:52.159799+00:00] cachetool.DEBUG: Loading Function: _eval [] []
[2022-06-06T10:09:52.159835+00:00] cachetool.INFO: Loading Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2022-06-06T10:09:52.159887+00:00] cachetool.DEBUG: Loading Function: opcache_compile_file [] []
[2022-06-06T10:09:52.159923+00:00] cachetool.DEBUG: Loading Function: opcache_compile_files [] []
[2022-06-06T10:09:52.159955+00:00] cachetool.DEBUG: Loading Function: opcache_get_configuration [] []
[2022-06-06T10:09:52.159985+00:00] cachetool.DEBUG: Loading Function: opcache_get_status [] []
[2022-06-06T10:09:52.160017+00:00] cachetool.DEBUG: Loading Function: opcache_invalidate [] []
[2022-06-06T10:09:52.160048+00:00] cachetool.DEBUG: Loading Function: opcache_invalidate_many [] []
[2022-06-06T10:09:52.160080+00:00] cachetool.DEBUG: Loading Function: opcache_reset [] []
[2022-06-06T10:09:52.160111+00:00] cachetool.DEBUG: Loading Function: opcache_version [] []
[2022-06-06T10:09:52.160605+00:00] cachetool.DEBUG: Executing code: return extension_loaded('Zend OPcache'); [] []
[2022-06-06T10:09:52.160863+00:00] cachetool.INFO: FastCGI: Dumped code to file: /dev/shm/cachetool-629dd270273ed5.01650493.php [] []
[2022-06-06T10:09:52.161008+00:00] cachetool.INFO: FastCGI: Requesting FPM using socket: /var/run/php-fpm/mig-attri-0b5049.socket [] []
[2022-06-06T10:09:52.166693+00:00] cachetool.DEBUG: FastCGI: Response: {} [] []

In FastCGI.php line 114:

  [RuntimeException]
  Error: No input file specified.

Exception trace:
  at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Adapter/FastCGI.php:114
 CacheTool\Adapter\FastCGI->doRun() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Adapter/AbstractAdapter.php:43
 CacheTool\Adapter\AbstractAdapter->run() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Proxy/PhpProxy.php:64
 CacheTool\Proxy\PhpProxy->extension_loaded() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/CacheTool.php:165
 CacheTool\CacheTool->__call() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Command/AbstractCommand.php:38
 CacheTool\Command\AbstractCommand->ensureExtensionLoaded() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Command/OpcacheStatusCommand.php:38
 CacheTool\Command\OpcacheStatusCommand->execute() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/vendor/symfony/console/Command/Command.php:299
 Symfony\Component\Console\Command\Command->run() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/vendor/symfony/console/Application.php:978
 Symfony\Component\Console\Application->doRunCommand() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Console/Application.php:148
 CacheTool\Console\Application->doRunCommand() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/vendor/symfony/console/Application.php:295
 Symfony\Component\Console\Application->doRun() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/src/Console/Application.php:131
 CacheTool\Console\Application->doRun() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/vendor/symfony/console/Application.php:167
 Symfony\Component\Console\Application->run() at phar:///var/www/monsite.com/.local/bin/cachetool8.phar/bin/cachetool:26
 require() at /var/www/monsite.com/.local/bin/cachetool8.phar:14

opcache:status

Fixed the inconsistency with setting temp dir in v8.5.0. Upgrade to the latest version to fix this issue.


Mia-Platform PR + OSS

Hi @shospodarets
Sorry for my late reply.
I made a new PR with all the edits you required. Thank you for your patience.
Bye

It was closed due to inactivity.


Geocode location data

Feature (I have checked the issue tracker for the same issue and I haven't found one similar):
Geocode location data similar to Fusion Tables.
Citing [1]:

Geographic data that describes a location must be geocoded in order to place it on a map. Usually the description is an address, complete with city, state, zipcode or postcode all combined in one column. Geocoding in Fusion Tables is similar to pasting a description of a location into Google Maps.
Latitude, longitude pairs and KML are already mappable and do not need to be geocoded.

There are existing geocoding sw and services. IMO they shoul be based in OpenStreetMap, like Photon [2] (Mapbox' has also a geocoder with different license).
[1] https://support.google.com/fusiontables/answer/1012281
[2] https://photon.komoot.de/

Having noted these inactivity too, I'd like to know the following (since the result of geocoding is a point geometry):
Are there any plans to integrate geometry data types (see point, linestring, polygon, etc. from OGC) and the PostGIS extension of PostgreSQL into Superset?


Backend starts before postgres is ready

With the provided docker-compose.yml, the backend starts before postgress is ready (depends_on only waits for the container to be started), and the database initialisation scripts fail, leaving the database empty on the first run.
From docker.com: "Compose does not wait until a container is “ready” (whatever that means for your particular application) - only until it’s running."
Starting the services manually using:

docker compose up -d redis db
docker compose up -d backend frontend proxy
seems to work (providing you wait for the db to be ready before starting the backend)

I'm not familiar enough with Django to work out how to put a "wait for db to be ready" line in the entrypoint.sh script, but I'm happy to test, or try and help if I can.
Edit: Just figured out a way to do it, and submitted a PR.

I do not believe is a wise way to do so! and without a Switch! as this can cause other tools to have issues! like K8s installations!

additionally, what about this:
https://stackoverflow.com/questions/35069027/docker-wait-for-postgresql-to-be-running

This way has solved the 404/500/502/ect. error I was getting for backend login request.
OS: Windows 10
I was initially getting multiple sing-in errors when using the regular 'docker-compose up -d'.
Console-Output.txt
Browser Console Errors:

Icon-Manifest-Error.log
500-error-1.log
Request failed with status code 500.log
404-error.log
500-error-2.log
502-error.log
Backend Docker-Desktop logs:
Docker-Desktop-backend-Logs-1.txt
Docker-Desktop-backend-logs-2.txt


Postgres Query plan previewer

https://github.com/AlexTatiyants/pev

This issue was moved to kubedb/project#38


[No QA] Verify that commits are signed when PRs are created or synchronized

Details
This PR adds a new PR check to verify that commits are signed.
Fixed Issues
https://expensify.slack.com/archives/C01GTK53T8Q/p1646185784242179
Tests

All the commits on this PR were originally unsigned:

Then I got a workflow run where those commits were verified to be unsigned.
https://github.com/Expensify/App/runs/5395802072?check_suite_focus=true

Then I retroactively signed the commits on this PR:

Then the check passed 🎉
https://github.com/Expensify/App/runs/5395944872?check_suite_focus=true

After merging this, we also need to make sure that these tests pass when the PR is coming from a fork.

[x] Verify that no errors appear in the JS console

PR Review Checklist

Contributor (PR Author) Checklist

[x] I made sure to pull main before submitting my PR for review
[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I clearly indicated the environment tests should be run in (Staging vs Production)

[x] I wrote testing steps that cover success & fail scenarios (if applicable)
[x] I ran the tests & they passed on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified there are no console errors related to changes in this PR
[x] I followed proper code patterns (see Reviewing the code)

[x] I added comments when the code was not self explanatory
[x] I put all copy / text shown in the product in all src/languages/* files (if applicable)
[x] I followed proper naming convention for platform-specific files (if applicable)
[x] I followed style guidelines (in Styling.md) for all style edits I made

[x] I followed the guidelines as stated in the Review Guidelines

PR Reviewer Checklist

[ ] I verified the Author pulled main before submitting the PR
[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the testing environment is mentioned in the test steps

[x] I verified testing steps cover success & fail scenarios (if applicable)
[ ] I verified tests pass on all platforms & I tested again on all platforms
[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I verified there are no console errors related to changes in this PR
[ ] I verified proper code patterns were followed (see Reviewing the code)

[ ] I verified comments were added when the code was not self explanatory
[ ] I verified any copy / text shown in the product was added in all src/languages/* files (if applicable)
[ ] I verified proper naming convention for platform-specific files was followed (if applicable)
[ ] I verified style guidelines were followed

[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines

Tested On
GitHub only

This is a work in progress correct?

Yes, sorry I should've marked it as so @neil-marcellini

Ready for review

Updated and ready for another review

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by @deetergp in version: 1.1.42-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by @chiragsalian in version: 1.1.42-6 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅