Interrupt driven library

Any chance getting the library interrupt driven to get rid of the 10-20% CPU utilisation?

If pigpio used interrupts rather than sampling it would break a lot of functionality.
For instance this view would be impossible https://www.youtube.com/watch?v=Lp7oEj0iAe8
A fundamental problem with gpio interrupts is they are not time-stamped so you have little idea of when they happened.  By default pigpio sampling will give relative timings to +/- 10µs, with gpio interrupts you are talking about +/- 100µs and considerably worse on occasion.
There will also be a cross-over point where sampling will use less resources than interrupts.  I suggest you do an experiment and see how many gpio interrupts per second are needed before 10-20% CPU is hit.
Also gpio interrupts can't handle changes in rapid succession, anything less than 50µs apart are likely to be missed.

Thanks for the explanation. Yet I think GPIO interrupts would be a nice extra for the library for not-so-time-critical applications where one could live with -+100µs.
Could eventually a (helper) kernel module provide somewhat accurate time stamps for GPIO interrupts?

pigpio doesn't stop you using interrupts.  I use them myself when I want to compare performance.
If you need quick reaction on the Pi interrupts are great.  Typically a one off event will be processed within 50µs rather than the 500µs imposed by the pigpio method of batching of events,
For most applications that reaction time is irrlevant, what is important is knowing the relative time of events with respect to each other.
I don't understand why the kernel doesn't time-stamp events.  To me there is no down side.  I assume it's because there is no portable clock in current Linux systems to use for the time-stamp.
Apparently LIRC has problems when the system is busy in discriminating the length of 500µs plus times between gpio levels!  A suggested solution is to sample 8000 times per second.  pigpio samples at a default 200 thousand times per second.

Thanks for the explanation again. Another option would be for me to further reduce the sampling rate. Is there any easy way to do it? (Haven't looked at the code yet.) 10µs is still "too high" for my application. Is there any reason for not allowing lower sampling rates?

I wouldn't call it easy, but it is not as hard as it use to be.  I used to support using both the 19.2MHz clock and 500MHz clock for timing.
20µs is the obvious first choice.  I'll have a look and get a feel for how hard the change will be.  I might take several days though.
If you don't need the sampling logic it would be simpler to just make that thread a NOP.
In pthAlertThread change
...
cycle = (oldSlot/PULSE_PER_CYCLE);
pulse = (oldSlot%PULSE_PER_CYCLE);
stopped = 0;
while (1)
{
...
to
...
cycle = (oldSlot/PULSE_PER_CYCLE);
pulse = (oldSlot%PULSE_PER_CYCLE);
stopped = 0;
while(1) sleep(1);
while (1)
{
'''

OK. Thanks again. Never mind if you don't have the time tough. The library is fine as it is.
I suggest to make the information from this dialog somewhere in a FAQ or such documented for the next one who asks the same questions.


No option to change the color of the current date selection

When I use the single date calendar on my app, it is showing the current date as selected but it is not actually selected and when it is selected, it is highlighted with the same style. It is hard for users to know whether the date is selected or the current date is highlighted.
Current Date:

After Selecting Dec 9th:

There is no way to tell that the current date is selected or not.

You can change the style of selected date with customized mapping.

Hi @sathishkumar1911,
looks like date property should be required. In this case a color of the current date (01/06/2022) differs from the color of selected date (01/12/2022).

As advised above, if you want to customise colours, you can use own mapping:

create mapping.json with new styles (see example bellow);
merge mapping inside ApplicationProvider;

For more information read documentation.
Example of custom mapping.json:
{
  "components": {
    "CalendarCell": {
      "appearances": {
        "default": {
          "mapping": {
            "state": {
              "selected": {
                "contentBorderColor": "red",
                "contentBackgroundColor": "red",
                "contentTextColor": "white"
              },
              "today": {
                "contentBorderColor": "red",
                "contentBackgroundColor": "pink"
              }
            }
          }
        }
      }
    }
  }
}


[objc] Add an option to give an app.config file

In PR https://github.com/mono/Embeddinator-4000/pull/127 we now use mono_domain_set_config and give some defaults, we can provide an option to pass a specific app.config file

Also machine.config and making sure to pick up any assembly.dll.config files for things we're binding...

Even for XM we should build a framework, which would be easy to consume from Xcode, and we can put all the .config files there (including app.config).
Which doesn't mean that the generator shouldn't have an option to specify a custom app.config file :smile:


vendor.quicklogic: enable SoC clock configuration

Related PR: https://github.com/nmigen/nmigen-boards/pull/117
Signed-off-by: Jan Kowalewski<EMAIL_ADDRESS>

Here is the TRM link related to clocks: https://www.quicklogic.com/wp-content/uploads/2020/06/QL-S3-Technical-Reference-Manual.pdf#page=88
Table on page 90 (link) provides information about maximum frequencies for FPGA domain.
Currently I can see that the bitstream_to_openocd tool assumes that the divider is always on, so it is not possible for now to achieve frequencies beyond 40MHz (which is max 80MHz divided by minimum divisor: 2). I think it would be nice to have an option to configure higher frequency in future like maximum 72MHz for FPGA domain, to do so we'll need --osc-freq . We can set default osc_freq and osc_div in platform definition thus setting them would be optional in board definition.

or providing a frequency and letting the tools come up with the closest matching divisor.

I agree this is something that is missing in bitstream_to_openocd tool. For now it is a very manual approach if user wants to configure other frequency for FPGA domain than the default one.

Thanks. I've reviewed the EOS S3 clocking and the approach you picked is perfectly fine.


Compass widget

Add compass widget to current location layer similar to Eraser Map implementation.

I have added compass from Eraser Map into Mapzen Android SDK in my local repository. Could I do push request? I tried to preserve your coding rules, but I am not sure if it really complains your coding rules. Also I have done two little changes in order to retain some compatibility with Google Maps.

Awesome! If you submit a pull request from your fork of the project all tests and code quality checks should run on Circle CI. You can also run them locally with ./gradlew clean verify.

Ok, but I didn't created tests to test compass. Should I create them to be pull request accepted? Also I have moved my location button to top left as it is in Google Maps and also made these buttons partly transparent as it is in Google Maps too. In the meantime I have added zoom buttons which were missing too. Is it ok to pull request all these things?

Submitting each feature in a separate pull request would be best. And yes any new classes/methods should have test coverage. If you run any issues with the tests we are here to help.
Porting the compass view from Eraser Map seems like a no brainer to include in the SDK. Other UI changes we would need to review once they are submitted so maybe let's start with the compass.

I will try to separate each feature to own pull requests. Are tests mandatory in order to pull request? Because I don't have many time to create tests and also I didn't used tests before, so it will take me longer time to find out how to write tests.

We do require tests for all pull requests mainly for two reasons:

To help ensure the production code submitted works as expected since we don't have dedicated QA.
To safeguard against regressions when future changes are introduced that may impact your feature.

But like I said if you need help getting started with tests we are here to help. You can even feel free to create the pull request without tests and then based on that we can offer some guidance and suggestions.
Thanks again for taking the time to contribute!

This has been added to the sdk and will be available after https://github.com/mapzen/eraser-map/issues/816 is completed


metrics: support multi-k8s in grafana dashboards (#4099)

What problem does this PR solve?
resolve conflicts when cherry-pick #4099, and this is a continuation of #4206 to bypass repo permission restrictions.
Issue Number: ref #4129
Problem Summary:
K8s community and organizations are increasingly deploying multiple Kubernetes clusters to improve availability, isolation and scalability. Since TiDB Operator have support deploying tidb across-kubernetes, this PR will address the multi-k8s issue without affecting existing single-cluster use case.
What is changed and how it works?
What's Changed:

add a k8s_cluster label in all expr

add k8s_cluster variable in Grafana templating
How it works:

For users with single-k8s, nothing need to be changed, just use it as before.

For users with multi-k8s:

first add kubernetes label to identify k8s cluster in your prometheus' external_labels.
set field "hide" to '0' to show variables in grafana via sed -i s/"hide": 2/"hide": 0/g <path/to/dashboard.json>
load it to grafana

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[x] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

metrics: support multi-k8s in grafana dashboards

/merge


WireGuard API /api/v2/vpn/wireguard/tunnels endpoint returns null in address field

🐞 WireGuard API returns null in address field after tunnel update
Describe the Bug
When querying the WireGuard API endpoint /api/v2/vpn/wireguard/tunnels, the address field returns null even though the tunnel and interface are configured correctly.

To Reproduce
Steps to reproduce the behavior:

Go to VPN → WireGuard → Tunnels.

Create or edit a tunnel with a valid configuration (e.g., description, listen port, keys).

Assign the tunnel to an interface (e.g., Interfaces → Assignments).

Configure a static IPv4 address for the interface (e.g., <IP_ADDRESS>/24) and apply the changes.

Restart the WireGuard service or pfSense.

Make a GET request to the WireGuard API endpoint:
curl -X 'GET' \
  'http://<pfSense-IP>:23815/api/v2/vpn/wireguard/tunnels' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <your_token>'

The response shows null in the address field.

Expected Behavior
The API should return the correct address assigned to the WireGuard tunnel, such as <IP_ADDRESS>/24, instead of null.
Screenshots or Response
Tunnel Registered:

Interface Details:

API Response:

pfSense Version & Package Version
pfSense Version: 2.7.2-RELEASE (amd64) CE
API Package Version: 2.2.2
Affected Endpoint
URL: GET /api/v2/vpn/wireguard/tunnels
Additional Context
I am using pfSense in a virtual machine on a local network to learn how to use the API.
I would like to know if this is a bug or if I am misconfiguring something. If it is a misconfiguration, please let me know what needs to be corrected.
This issue occurs even after updating the tunnel description and restarting pfSense to force a configuration refresh. The tunnel and interface configurations appear correct in the GUI, but the API response remains inconsistent.

This behavior is normal and expected. The /api/v2/vpn/wireguard/tunnel* endpoints get their data from the installedpackages/wireguard/tunnels section of the XML config. However, in your example, the address is set under the interfaces/opt2 section, not in the tunnel configuration. The addresses field only applies to addresses directly assigned to the tunnel object, not those assigned through an interface.
Below is where the addresses equivalent is in the UI:

To view the address of your tunnel interface you would use /api/v2/interfaces in this case.

@matiasAS ok, thanks, and best regards from Chile!

That is because existing addresses values are still present in the config. pfSense does not remove or update existing addresses in the tunnel object when it is assigned to an interface, it simply ignores them and uses the address assigned to the interface instead. The UI explains this behavior a bit:


Change in behavior around keyof any inference

TypeScript Version:  3.4.0-dev.20190202

Search Terms: any, array, argument
Code
function getProps<T, K extends keyof T>(obj: T, list: K[]): Pick<T, K> {
    return {} as any;
}

const myAny: any = {};

// TS 3.2.2 - getProps returns Pick<any, "foo" | "bar">
// TS 3.4   - getProps returns Pick<any, "foo" | "bar">
const o1 = getProps(myAny, ['foo', 'bar']);

// TS 3.2.2 - getProps returns Pick<any, "foo" | "bar">
// TS 3.4   - getProps returns Pick<any, string>
   // └ 🚨 Type 'Pick<any, string>' is missing the following properties
   //   from type '{ foo: any; bar: any; }': foo, bar [2739]
const o2: { foo: any; bar: any } = getProps(myAny, ['foo', 'bar']);

Expected behavior:
I expect o2 above to type-check successfully in 3.4
Actual behavior:
Playground Link:  NOTE: does not demonstrate the reported behavior, since it's only reproducible in recent 3.4 nightly builds
https://www.typescriptlang.org/play/index.html#src=function getProps<T%2C K extends keyof T>(obj%3A T%2C list%3A K[])%3A Pick<T%2C K> {
    return {} as any%3B
}

const myAny%3A any %3D {}%3B

%2F%2F TS 3.2.2 - getProps returns Pick<any%2C "foo" | "bar">
%2F%2F TS 3.4   - getProps returns Pick<any%2C string>
const o2%3A { foo%3A any%3B bar%3A any } %3D getProps(myAny%2C ['foo'%2C 'bar'])%3B

%2F%2F TS 3.2.2 - getProps returns Pick<any%2C "foo" | "bar">
%2F%2F TS 3.4   - getProps returns Pick<any%2C "foo" | "bar">
const o3 %3D getProps(myAny%2C ['foo'%2C 'bar'])%3B

Related Issues: #29698 #25759

Looks like this is an effect of #29478. Previously we'd make no inferences from the return type in the second example, but now we infer from { foo: any; bar: any } to Pick<T, K>. This produces an inference for K, but not for T because Pick<T, K> isn't a homomorphic mapped type (it's partially homomorphic in that it only maps a subset of the properties). Because we have no candidates for T, we end up with an inference of {} from the return type, which then causes us to reduce our inference for K to never. We then proceed with this rather useless contextual type which ends up making matters worse rather than better.
Looks like we need to do better when inferring to Pick<T, K>. I will see what we can do.


Update OpenJDK to <IP_ADDRESS>

See Issue #2315 for context. This only updates  the x86/amd64 version, and does not bump the arm64 version, since it is not yet available. arm64 is not urgent (to my knowledge) since it is only used for local Mac M1 development.
Fixes (in part) issue #2315.

Upgrading to 11.0.14.x hits a compiler error for Java. It looks like it's probably related to a bugfix in OpenJDK that detects "." in names in zip files and throws an exception in order to avoid an infinite loop. Unfortunately this change appears to break our build.
It doesn't appear this is broadly an issue with Play Framework or SBT -- there are no github issues related to this error in either project, and OpenJDK 11.0.14 has been out since January.
I tried building the hello world Play Framework demo with our Dockerfile and it worked both with our current version of OpenJDK as well as <IP_ADDRESS>, which further suggests there's something particular to how we're building civiform specifically that is producing this problem.

The issue appears to be our use of webjars, removing these lines fixes the problem: https://github.com/seattle-uat/civiform/blob/main/universal-application-tool-0.0.1/build.sbt#L142-L144
Will need to figure out a different way to load the azure storage JS library.


HSEARCH-3490 Add experimental support for Elasticsearch 7.0.0.beta1

https://hibernate.atlassian.net//browse/HSEARCH-3490
I ran a full build (ES5, ES6, ES7) there: http://ci.hibernate.org/blue/organizations/jenkins/hibernate-search-yoann/detail/HSEARCH-3490/4/

Pull Request Test Coverage Report for Build 1

159 of 209 (76.08%)  changed or added relevant lines in 40 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 88.665%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/query/impl/Elasticsearch7SearchResultExtractor.java
2
3
66.67%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/work/impl/PutIndexTypeMappingWork.java
5
6
83.33%

util/common/src/main/java/org/hibernate/search/util/common/impl/CollectionHelper.java
3
4
75.0%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/search/query/impl/Elasticsearch7SearchResultExtractorFactory.java
0
2
0.0%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/format/impl/Elasticsearch6DefaultFieldFormatProvider.java
27
29
93.1%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/work/impl/CreateIndexWork.java
8
10
80.0%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/work/impl/Elasticsearch7SearchWork.java
1
3
33.33%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/work/impl/GetIndexTypeMappingWork.java
5
7
71.43%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/dialect/impl/es7/Elasticsearch7Dialect.java
2
5
40.0%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/work/impl/Elasticsearch6SearchWork.java
2
5
40.0%

Files with Coverage Reduction
New Missed Lines
%

backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/types/codec/impl/AbstractElasticsearchJavaTimeFieldCodec.java
1
87.5%

Totals

Change from base Build 165:
-0.2%

Covered Lines:
16223

Relevant Lines:
18297

💛  - Coveralls

Force-pushed an update to address some Sonar warnings.
Note the loss in coverage is a bit artificial: coverage numbers only takes into account the "default" build, i.e. the one with ES6, not the one with ES7.

I addressed your comments, rebased and force-pushed. Waiting for CI because of the rebase.

A bit worried by the amount of work required to support a new version of ES. But I suppose that's how it is, considering how they deal with backward compatibility.

On the bright side, the actual changes are only 813 insertions(+), 456 deletions(-), the rest being tests and test resources (init scripts, ...), and even for tests there's the introduction of test dialects which will hopefully represent less work next time, now that it's there.

Merged, thanks!


Support EXT_instance_features

Add support for EXT_instance_features that allows assigning identifiers to individual instances of a mesh, which can be used to look up per-instance data in the structural metadata property tables
The structural metadata tables and instance properties are parsed in the gltf reader and then stored in the tile tree BatchTableProperties.
Each instance is given an identifier that maps to it's properties, so two instances with identical properties will be assigned the same identifier.
Other changes:

Added a DTA tool to load a reality data model from seequent.
The reality data tile loading logic was also patched to support absolute URL for tile references in the tileset.json

/azp run iTwin.js

/azp run iTwin.js Docs - YAML

/azp run iTwin.js Integration - GitHub

@pmconne I forgot to add the changes that erin and andre did in their branch, which is:

Support absolute tile URL in the tileset.json
Add DTA tool to load a reality model from Seequent

Would you mind having a look at these changes ?

No tests?

Added gltf reader tests

/azp run iTwin.js


fixed webp compression

The extra parameters in the webp compression did not work and increase the size of the image (sometimes even by 50%). By removing the parameters the plugin works perfectly and the quality is still picked from the config.

@hite-js Great! Thanks.


Delete key impacts the code instead of command palette.

Type: Bug

Hit Command + Shift + P to open the command palette.
Enter a command, perhaps with a typo.
Hit "Delete" key

Expected Outcome:
The last typed character in the command palette is deleted.
Actual Outcome:
The code in the open file is affected. There is no way to correct a typo in the command palette.
VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:48:06.308Z)
OS version: Darwin x64 23.2.0
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
9, 7, 6

Memory (System)
16.00GB (0.14GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (29)

Extension
Author (truncated)
Version

dakara-foldplus
dak
1.5.2

vscode-eslint
dba
2.4.2

empty-indent
Dmi
0.2.0

prettier-vscode
esb
10.1.0

php-intellisense
fel
2.3.14

phpcs
ika
1.0.5

drupal-7-snippets
jun
0.0.7

vscode-home-assistant
kee
1.40.0

VS-code-drupal
mar
0.0.12

python
ms-
2023.22.1

vscode-pylance
ms-
2023.12.1

jupyter
ms-
2023.11.1100101639

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

remote-containers
ms-
0.327.0

cpptools
ms-
1.18.5

debugger-for-chrome
msj
4.13.0

php-docblocker
nei
2.7.0

smartsemicoloncode
ono
1.3.1

drupal7-hooks-snippets
pau
0.0.2

vs-code-prettier-eslint
rve
5.1.0

sass-indented
syl
1.8.28

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

jinja
who
0.0.8

php-debug
xde
1.34.0

php-pack
xde
1.0.3

php-intellisense
zob
1.3.3

/confirmPlease

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.
Happy Coding!

Hi I am trying to replicate this issue but am currently not able to.
https://github.com/microsoft/vscode/assets/61460952/e3150576-dd8e-480e-87b1-6d601c3ef121
Could you please include a screen recording of the issue you are seeing?

Here's a screen recording: https://www.loom.com/share/7e40000ab02440d7915e782a670e1ce1

Hi I am trying to replicate this issue but am currently not able to.
Screen.Recording.2024-01-17.at.11.56.20.mov
Could you please include a screen recording of the issue you are seeing?

Thank you! I've added a screen recording. Fn + Delete works fine for me, "delete"(i.e. Backspace) doesn't.

Pinging @TylerLeonhardt about this. I think you are responsible for this area? Feel free to assign someone else.


typo: interation -> iteration

@nschonni : Thanks for your contribution! The author, @, has been notified to review your proposed change.


⚠ Bofrost.de has degraded performance

In 73b3d08, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1177 ms

Resolved: Bofrost.de performance has improved in e2d2344 after 13 minutes.


Update GatherSampleEvidence & TrainGCNV docs

This PR extends the documentation of the GatherSampleEvidence and TrainGCNV workflows. Specifically, it implements the following changes.

Extends the documentation on the inputs and outputs of the GatherSampleEvidence, GatherBatchEvidence, and TrainGCNV workflows.
Instead of enlisting inputs and outputs, they are formatted as sections. This enables referencing them individually, which is useful when referencing an output of workflow passed as input to another workflow. The header level is set to 4 (i.e., ####); hence, these sections are not rendered in the quick navigation section (top-right panel) to reduce clutter.
Adds diagrams for better visualization of up and downstream dependencies of workflows, currently implemented for GatherSampleEvidence, GatherBatchEvidence, EvidenceQC, and TrainGCNV workflows.
Add JS & CSS components to enable highlighting text, which is used in this PR to tag optional outputs.

Thank you, @mwalker174, for the review. I like your idea of scoping documentation to descriptions of arguments and keeping references to file links or recommended/default values in separate places. I updated the PR accordingly.

@mwalker174 this is ready for a re-review. Per our discussion, a few inputs/outputs have not been documented and are left as placeholders for your follow-up PR 🚀 Thanks for your feedback!!

Thank you, @mwalker174! and Emma! for the feedback. Looking forward to further improvements coming next on the modules documentation.


adopters?

web service starter kit

As this project (and surrounding services like training and consulting) is meant to be a "web service starter kit", how about adding a list of adopters that have built real world projects on top of it?
For example via an ADOPTERS file to which orgs and individuals can add their projects? (Examples for ADOPTERS files: Example 1 , Example 2. )
Being able to point to such references / success stories helps a lot in internal discussions (at work, etc) about making tech stack and vendor decisions. References are a really important thing in Enterprise IT.
(And other suggestion: I'd love to see a couple of customer success stories (PR articles) about the service repo (and related paid services) on your company website. Similar to those about Go on the Go homepage. This kind of stuff really helps those who advocate in an org to try to use something new).

Hi. This is an interesting idea. I am not sure how many companies can publish this, but I will add that second example and ask a client people if they are comfortable doing this.


Broken link to sha256 hash breaks the install

The broken link https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256 which is used by the installer is missing. This breaks the install instructions given at https://www.rustup.rs

Thanks for the report. Can you expand on how it breaks the install? Does installation of rustup fail, or is stable not installed?
This file will be published for the 1.8 release, but in the meantime installation should still work. The main thing that should not work on stable right now is rustup target.

The install script waits on URL until times out and exits abruptly. It creates the .multirust, .cargo directories, copies rustup, etc. but stable doesn't get installed.
The official installer on the other hand, ignores the missing link and skips the signature verification.

@plumenator Can you post a log of running rustup-setup -y --verbose? What platform are you on?
There shouldn't be any timeout involved. That file just doesn't exist and should immediately return 404.

Here you go:
$ uname -a
Linux xxxxxxxxxxxxxxxxxxxxx 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.2.1511 (Core)
Release:	7.2.1511
Codename:	Core
$ ~/Downloads/rustup-setup -y --verbose
verbose: installing toolchain 'stable'
verbose: toolchain directory: '/home/plumenator/.multirust/toolchains/stable'
info: syncing channel updates for 'stable'
verbose: creating temp file: /home/plumenator/.multirust/tmp/1d5jsb4rtnk44qho_file
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256'
.
.
.
# Blocks here for a *very* long time (586.280202 seconds)
.
.
.
verbose: deleted temp file: /home/plumenator/.multirust/tmp/1d5jsb4rtnk44qho_file
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/home/plumenator/.multirust/tmp/1d5jsb4rtnk44qho_file' (Network: other os error)

Thanks a lot!


COMPAT: pandas privacy changes in >= 0.20.0

https://github.com/pandas-dev/pandas/pull/16086
As we change what is public/private in 0.20.0.
pandas.tools.hashing -> pandas.util.hashing, so need to change have a try/except on the import
This needs to change.
./dask/dataframe/hashing.py:# - For versions > 0.19.2, we use the provided `hash_pandas_object` function.
./dask/dataframe/hashing.py:# - For 0.19.0 through 0.19.2, we copy the definition of `hash_pandas_object`
./dask/dataframe/hashing.py:    from pandas.tools.hashing import hash_pandas_object

This as well:
D:\Anaconda\lib\site-packages\dask\dataframe\methods.py in <module>()
      4 import pandas as pd
      5 from pandas.api.types import is_categorical_dtype
----> 6 from pandas.types.concat import union_categoricals
      7 from toolz import partition
      8

ImportError: No module named 'pandas.types'

According to pandas docs:

pandas.types moved to pandas.core.dtypes

these are both private, pandas.api.types is the exposed are. this is the same as in 0.19.2 as well.


Design a data/power bus

Designing a bus interface for any device connecting to the robot chassis would make it easy to connect and disconnect peripherals. Any point on the robot where we design connecting holes would also include this bus interface. The interface likely needs to include a subset of this list of things:

12VDC+
5 VDC+
3.3 VDC+
GND
SDA (I2C data)
SDC (I2C clock)
1 wire bus

We tried using a bus in the robot that used a DUE processor and discovered that the wires in a bus with unconnected positions act like antennas, and cause ringing and reliability issues. This can be addressed by using bus terminators, lots of pullup resistors and decoupling capacitors, and maybe some special signalling techniques.  The faster speed of the ESP32 might complicate defensive efforts.


0.3.3 and docs on hackage

There is no docs on Hackage for latest version.
https://hackage.haskell.org/package/regex-applicative
The Stackage has one
https://www.stackage.org/nightly-2016-01-02/package/regex-applicative-0.3.3

Ok, is there anything you want me to do here?

No. Don't know where is the best place to write about such bugs.

However, in your README link  API reference points to the Hackage page. So now it is broken.

Well, at least it says where to go.
I can't link to stackage because there's no way to link to the latest version that I know of.


chore: 🤖 add Apache 2.0 license

Description
Add Apache 2.0 license. Mentions that SubQuery itself is also under the same license
Breaking Changes
None
JIRA Link
DA-460
Checklist

[X] Updated the Readme.md (if required) ?

:tada: This PR is included in version 8.4.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Build error "could not find parse in genesisdata"

I got the next build error from the master version "20310a75386b0d0dc100902f9c87956be199dffe".
rustup update and cargo update haven't resolved this build issue. I can build "rust-cardano" without any issue.

Compiling cardano-cli v1.0.1 (C:\Git\Blockchain\IOHK\cardano-cli)
error[E0433]: failed to resolve: could not find parse in genesisdata
--> src\blockchain\mod.rs:129:41
|
129 |         let genesis_data = genesisdata::parse::parse(fs);
|                                         ^^^^^ could not find parse in genesisdata

error[E0433]: failed to resolve: could not find parse in genesisdata
--> src\debug\mod.rs:60:31
|
60 |     print!("{}", genesisdata::parse::canonicalize_json(json.as_bytes()));
|                               ^^^^^ could not find parse in genesisdata

warning: use of deprecated item 'cardano_storage::iter::Iter'
--> src\blockchain\mod.rs:256:26
|
256 |     ) -> storage::Result<storage::iter::Iter<'a>> {
|                          ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default

I am sorry to hear that: can you check your git submodule is at the appropriate version pinned by the current revision at master branch ?
You can see that looking at git status you will see that cardano-deps is no longer the appropriate value. You can fix this with git submodule update.

Thanks for your quick reply Nicolas. Your solution works.


GOVSI-484: Add "GOV.UK Sign in" to the service toolkit

Digital Identity are starting a beta programme for the GOV.UK Sign in product. Add the link to the product page to the service toolkit.

Hi both - I wonder if there's a way to make it clearer that the service isn't live yet, and the call to action here is to to register for the private beta. Something like -

{
            "title": "GOV.UK Sign in (beta)",
            "url": "https://www.sign-in.service.gov.uk",
            "description": "Let users sign in to your service quickly, easily and securely - register for the private beta",
          },

Let me know what you think.

Hi both - I wonder if there's a way to make it clearer that the service isn't live yet, and the call to action here is to to register for the private beta. Something like -

{
            "title": "GOV.UK Sign in (beta)",
            "url": "https://www.sign-in.service.gov.uk",
            "description": "Let users sign in to your service quickly, easily and securely - register for the private beta",
          },

Let me know what you think.

Good point @StephenGill ... we have updated appropriately.


[DOCS]: Create a Code of Conduct

Will you make a change to:

[ ] the README
[ ] our CONTRIBUTING guidelines
[x] the Code of Conduct
[ ] our licensing
[ ] something else (describe below)

We are opening up our project to any Hacktoberfest participants who would like to contribute. Let's add a Code of Conduct in hopes that all of interactions will remain respectful. You can use this documentation as a guide.

@michaella23 I can take this!

Thanks @Jenna59 !!


WorkerRequest/WorkerResponse traits

Opening this more as a discussion point, though the PR is fully baked afaict and ready to be merged if the idea is sound.
Motivation: it seems to me that there's currently a few conflicting ideas at play:

The underlying engine wants to deal with things in terms of web_sys
The original crate types were concrete types that had impls to/from web_sys
There's a move towards the http types, but these are completely generic over the Body and cannot be converted to web_sys (since there's no telling what that generic is)
There's a strong desire by many people to use axum, which imposes a specific concrete inner type - this can be converted to web_sys - but not everybody shares that desire, and workers-rs shouldn't be opinionated on this (just as the JS package doesn't enforce a specific web server framework) ... should be supported but not required.
Point 4 is putting to much pressure on the API imho... for example, simply enabling thehttp feature forces adding dep:axum too, even though they are theoretically decoupled.

The idea of the change in this PR is to instead nip the problem at its core, there only needs to be a single WorkerRequest and WorkerResponse traits, which go from and to web_sys respectively.
Out of the box, this trait is implemented for:

web_sys types (so these can be used natively with no performance overhead)
current worker Request/Response types (to maintain backwards compatibility until those are phased out)
axum-flavored http types if the http feature is enabled

I've also added a proof of concept in the examples directory showing that this also allows downstream users to use any Request/Response type they want, just need to impl the traits.
If approved and merged, I don't think anything would break, and this paves the way for solidifying what the http API looks like... for that, I'd suggest next steps:

Completely remove the http feature - instead call it what it really seems to be, the axum feature, and doing this should enable axum to work as smoothly as possible out of the box
Completely feature-gate the current Request/Response types (they're very nice but not necessarily needed, users should be able to opt-out if they want to stick with web_sys or use axum, either direction)
In the examples, use whatever type is most convenient (maybe move the current Request/Response types over, or plain web_sys, or axum.. whatever!)

Works like a charm!
One notable difference with https://github.com/cloudflare/workers-rs/pull/527 is that this PR requires the error type to implement Display instead of Error. Only Display is strictly necessary so I think it's fine but I wanted to point it out anyway.

You have very good points, probably it might make sense to split into different packages, to try to make things clearer for users

worker
worker-http
worker-axum
worker-legacy

The point of the http feature was to be temporary, now we are discussing something more permanent.
My only issue, is that I believe we should try to maintain http, as much as possible, as there are other libraries targeting that crate.
I'm not even sure that axum is best suited for the current worker model, and most likely other frameworks will soon follow, now that http support is out there...
Its what your position regarding workers, applied also to the http layer.

it might make sense to split into different packages

Maybe! I'm not so familiar with how Rustaceans tend to approach this (separate packages vs. feature-gating). Either way makes sense to me.
My opinionated vote would be:

core code should not depend on any of these, it should talk only in terms of these traits, be totally implementation-agnostic, and if new methods (like get/set headers, method, etc.) are needed in core, they would be added to the traits

yes maintain a separate worker-http package that is not needed at all by core. Here it has feature-gated support for legacy, native, and axum. These should be properly additive (i.e. it's just the trait impls, no type aliasing to some shared name)

tests, examples, and userland code import both worker and worker-http

for convenience, worker should import and export worker-http, and pass through the same features. This is purely a convenience so users only import one package. If no http features are enabled, it shouldn't export any of them at all

Afaict, if a path like this is approved, it isn't blocked by the PR as it stands now, could build on top of it

I believe it always depends on the crate's maintainers, although small, specific crates seem to be a common practice.
A good rule of thumb seems to be if its an extension or a layer on top.
2 -> I believe they should be separate crates, even probably also D1, R2, AI.
The modularity will also promote community crates.
3 -> Tests should be specific and internal for each crate, as they should be as self contained as possible. Using a layered approach you can even unit test them without hitting the workerd, this makes it easier to simulate error conditions, for instance.
But yes integration testing is always recommended also.
4 -> Normally its the upper layer that re-exports the lower layer.

FWIW, I tried your fork on one of our larger projects with success.
Is there anything left todo here?

Of the top of my head I would like to finish the swing on more generic http Body support, more generic Error type support, and possibly better errors from the macro when these traits do not line up.
Are you using web_sys::Response as well or do you have a different use case?

@kflansburg didn't quite follow, are you asking for more work to be done on this PR for "more generic [...] support"? If so, feel free to direct me to what you'd like to see done here (if it's work outside of the scope of this PR, then I suppose someone else like yourself would take it)


React.useMemo: translate to mitosis

how can i translate React.useMemo to mitosis?
React.useMemo: value is read-only = no setValue function, valueFactory is a pure function
React.useState: read + write
React.useEffect: can have side-effects
react playground: https://playcode.io/react
import React from 'react';

export function App(props) {
  const [counter1, setCounter1] = React.useState(0)
  const [counter2, setCounter2] = React.useState(0)
  const increment1 = () => setCounter1(counter1 + 1)
  const increment2 = () => setCounter2(counter2 + 1)
  const timeFactory = () => Date.now() % 1000
  // time is reactive to counter1
  const time = React.useMemo(timeFactory, [counter1])
  return (

time = {time}

counter1 = {counter1}

counter2 = {counter2}

  );
}

what did i try
this fails to run in the fiddle https://mitosis.builder.io/
the functions increment1 increment2 timeFactory are missing in output
// glob import breaks Mitosis.onUpdate
//import * as Mitosis from<EMAIL_ADDRESS>
import { useState, onUpdate } from<EMAIL_ADDRESS>
export default function MyComponent(props) {

  const [counter1, setCounter1] = useState(0)
  const [counter2, setCounter2] = useState(0)
  const increment1 = () => setCounter1(counter1 + 1) // missing in output
  const increment2 = () => setCounter2(counter2 + 1) // missing in output
  const timeFactory = () => Date.now() % 1000 // missing in output
  // time is reactive to counter1
  //const time = Mitosis.useMemo(timeFactory, [counter1])
  // NOTE: init value must not be undefined
  //const [time, setTime] = useState(undefined)
  const [time, setTime] = useState(0)
  setTime(timeFactory()); // missing in output
  onUpdate(() => {
    setTime(timeFactory());
  }, [counter1]);

/* not working: call increment directly

counter1 = {counter1}

counter2 = {counter2}

*/

  return (

time = {time}

 increment1()}>counter1 = {counter1}

 increment2()}>counter2 = {counter2}

  );
}

example output for react

import * as React from "react";
import { useState, useEffect } from "react";

export default function MyComponent(props: any) {
  const [counter1, setCounter1] = useState(() => 0);

  const [counter2, setCounter2] = useState(() => 0);

  const [time, setTime] = useState(() => 0);

  useEffect(() => {
    setTime(timeFactory());
  }, [counter1]);

  return (

time ={time}

 increment1()}>counter1 ={counter1}

 increment2()}>counter2 ={counter2}

  );
}

same result with useStore

import { useStore, onUpdate } from<EMAIL_ADDRESS>
export default function MyComponent(props) {

  const state = useStore({
    time: 0,
    counter1: 0,
    counter2: 0,
  });

  const increment1 = () => state.counter1 = state.counter1 + 1
  const increment2 = () => state.counter2 = state.counter2 + 1
  const updateTime = () => state.time = Date.now() % 1000
  // time is reactive to counter1
  onUpdate(() => {
    updateTime();
  }, [state.counter1]);

/* not working: call increment directly

counter1 = {counter1}

counter2 = {counter2}

*/

  return (

time = {state.time}

 increment1()}>counter1 = {state.counter1}

 increment2()}>counter2 = {state.counter2}

  );
}

alternative solution without caching

alternative solution (via sveltosis)
but i guess the value is not cached
import { useStore } from<EMAIL_ADDRESS>
export default function Mitosis(props) {
  const state = useStore({
    name: "Steve",
    get lowercaseName() {
      return state.name.toLowerCase();
    },
  });

  return (

      <input value={state.name} />
      Lowercase:
      {state.lowercaseName}

  );
}

see also
https://stackoverflow.com/questions/56028913/usememo-vs-useeffect-usestate
https://stackoverflow.com/questions/56347639/react-useeffect-vs-usememo-vs-usestate

The closest thing at the moment would be to use a getter:
https://mitosis.builder.io/?outputTab=E4UwhgxgLkA%3D&code=JYWwDg9gTgLgBAbzgVwM4FMDKNrrgXzgDMoIQ4AiAAQCNlgAbAE3SgDpgIB6EYHVYKgoBuAFCj0AD0iw4LIgENkDeEWQA7AMYxO6uAFkAngGEykdenUwAFGFJhUASkSi4cTRHWp43hTDwAvCgY2LjWCK5ucADm6PDqCiDo1s4RUVFQcchQenYQDmwJSXAAPiVwAOTe6ABu6BWRbviR%2BI5ikZkw2XrWjXAAPEzANQB8fW79wOpgyDDjUZqoqAEIaenrHgzQAFyUmUwUADTzTc3rUTUKDMjoK77%2BhYnoZ%2BtcY%2BcAEugMWwCEcABJdwKPRQDRwKZwABK6AU2kOcAAajcEZgIAxgEwEdA4AAZYAAR3oTF%2BfX6XCGo0ibVE%2BCAA%3D%3D
at the moment, this renders a plain JS function in the render body:
import * as React from "react";
import styled from "styled-components";

export default function MyComponent(props: any) {
  function name() {
    return props.name || "steve";
  }

  return (

      <Input value={name()} />
      Hello! I can run in React, Vue, Solid, or Liquid!

  );
}

const Input = styled.input`
  color: red;
`;

We can look into wrapping those in useMemo in the future. The easiest way to do that might be to allow users the flexibility of describing pieces of state as reactive. However, this might involve a few changes, primarily:

decide on user-facing API: my first instinct is to have an options argument for useState(value, { reactive: true | false }). However, I am not sure what to do about keys within a useStoreinstance 🤔. We could make thisreactiveoption only available for individualuseStatecalls for now, and worry aboutuseStore` later...
if a slice of state has reactive === true and is a getter method, then the React generator would wrap it with useMemo.

I'd need to think about the API a bit more before committing to a change like this.

at the moment, this renders a plain JS function in the render body

expected: React.useEffect
but maybe your example was too simple to generate that code

expected: React.useEffect

No, React.useEffect is used for side effects that you want to run under one of these conditions:

React.useEffect(() => fn()): run on every re-render. You can use Mitosis onUpdate for this
React.useEffect(() => fn(), []): run on mount. You can use Mitosis onMount for this
React.useEffect(() => fn(), depsArray): run when depsArray items change. You can use Mitosis onUpdate for this

The example I shared does not induce side effects, and so does not need to be wrapped in useEffect.
See https://github.com/BuilderIO/mitosis/blob/main/docs/hooks.md for Mitosis hooks


Extract CheckSecret from CheckAuth

That's done to check plain-test password against htpasswd entry and use htpasswd file re-loading functionality in a patch to heipei/nginx-sso.

would love to see this merged :)


[PinchGesture] Add an extension to move the camera or objects with pinching gestures.

Description
This extension allows to:

Move, rotate and/or zoom the camera according to pinch gestures
Move, rotate and optionally scale objects according to pinch gestures
Handle more specific needs with various expressions

Demo

Project: https://www.dropbox.com/s/rcuboz3maw9eqb7/PinchExample.zip?dl=1
Build: https://liluo.io/instant-builds/09b9ce7a-2a2a-48dd-9af6-3de4614f5720

JavaScript
There is some lines of JavaScript.
const x = eventsFunctionContext.getArgument("PositionX");
const y = eventsFunctionContext.getArgument("PositionY");
const layer = runtimeScene.getLayer(eventsFunctionContext.getArgument("Layer"));

eventsFunctionContext.returnValue = layer.convertInverseCoords(x, y)[0];

Thanks for working on this! It will be very useful in MANY games, including Absorbus.  :)

The "AbortPinching" action has the exact same event from condition "IsPinched"

Object pinch currently checks if the starting center of the pinch is inside the object.  I think it would be better if both starting points of the pinch started inside the object.

The "AbortPinching" action has the exact same event from condition "IsPinched"

Good catch, I made the change.

Object pinch currently checks if the starting center of the pinch is inside the object.  I think it would be better if both starting points of the pinch started inside the object.

The issue is that when a finger touches an object physically, its point is not necessarily inside the object. I guess it could be frustrating especially for tiny objects.
As the pinch needs 2 touches, the scenes events can probably disable the behaviors when a 1st button of the UI is pressed to avoid unrequited pinches.

Very nice and useful extensions! Thank you for it! I myself sat and thought for a week how to do it, and all the time it turned out crooked, but everything is at the highest level with you. The only thing I should pay attention to is scene 3 with dragging objects, they sometimes behave strangely, but everything is fine, finally my Alarm Map will have an adequate zoom.

I'll try to implement this on Absorbus tomorrow (Saturday).   I'll either approve or give feedback then.

I noticed a small feature of this extension, it starts working without any declarations in events, i.e. in order for the zoom and camera rotation to work on all scenes, it’s enough just to add the extension to the project, it’s a little inconvenient and confused me, because I needed zoom only on the first scene, and I couldn’t think that it would work on all scenes at the same time, I had to turn it off behavior on each scene manually..

I found an error in your extension, this is the "index" variable, I personally use this variable very often in my projects, in almost all cycles, please change the name of the variable to something more unpredictable, I personally did not notice this at first, which led to the repetition of my cycle adding text to an infinite number of times.

I found an error in your extension, this is the "index" variable, I personally use this variable very often in my projects, in almost all cycles, please change the name of the variable to something more unpredictable, I personally did not notice this at first, which led to the repetition of my cycle adding text to an infinite number of times.

Yes, good catch, I copied pasted this code from an example and forgot to rename it.

I noticed a small feature of this extension, it starts working without any declarations in events, i.e. in order for the zoom and camera rotation to work on all scenes, it’s enough just to add the extension to the project, it’s a little inconvenient and confused me, because I needed zoom only on the first scene, and I couldn’t think that it would work on all scenes at the same time, I had to turn it off behavior on each scene manually..

I changed it to disabled by default.

The only thing I should pay attention to is scene 3 with dragging objects, they sometimes behave strangely

Yes, I'd added the draggable behavior to copy the wording and forgot to removed it. I updated the example.


Updated the authorization procedure

To clarify, I don't know how to code. This is mainly done with the help of Chat-GPT. Needs reviewing and most likely some additional changes. This worked for me at least.

#76


[Bug]: retriever with similarity_top_k sometimes return no nodes at all

Bug Description
We used a retriever with filters connected to a VectorStore (PGVector). It works, but sometimes with some specific sentence it doen't retrieve anything.
Here is the the method we used to create the retriever ad use it in a chat engine
  def setIndex(self, category: int):
    openai.api_key = self.__llm.api_key
    db = vdb(self.config['database'])
    qry = f"""SELECT documents.id FROM documents WHERE documents.id IN (
              SELECT distinct documents.id from documents, catedoc
              WHERE documents.id = catedoc.id_doc AND
              catedoc.id_cat IN
              (
              WITH RECURSIVE ctename AS (
              SELECT categories.id
              FROM categories
              WHERE categories.id = {category}
              UNION ALL
              SELECT categories.id
              FROM categories JOIN ctename ON categories.refid = ctename.id
              ) SELECT * FROM ctename ) )"""
    list_cat = [str(item['id']) for item in db.query(qry)]
    v_store = db.db_vector_store('documents_view')
    self.index = VectorStoreIndex.from_vector_store(vector_store=v_store)
    filters = MetadataFilters(
      filters=[
          MetadataFilter(key="id", value=list_cat, operator=FilterOperator.IN)
      ]
    )
    retriever = self.index.as_retriever(
      filters=filters,
      similarity_top_k=20,
      verbose=True,
    )
    chat = ContextChatEngine(
        retriever=retriever,
        llm=self.__llm,
        memory=self.__memory,
        prefix_messages=[]
      ).from_defaults(
        retriever=retriever,
        system_prompt=ConversationLLamaIndex.__MISSION
      )

    self.lama_chat = chat

We can't use index.as_chat_engine because in that case it's not possible tu set filters.
Version
0.10.45
Steps to Reproduce
Create a chat engine and pass a retriever as parameter as shown in the code above, than us the chat method to ask questions.
Relevant Logs/Tracbacks
No response

Wouldn't that mean the filter is just filtering out all nodes?
I also have no idea what v_store = db.db_vector_store('documents_view') is actually doing or returning

Hi, and thank you for the response Logan. The db_vector_store returns the postgres vector_store that contains all the embeddings. The filters are supposed to work because all other query that uses the same filters returns nodes.
We would like to know how the cosine similarity is configured, the suspicion is that results with too low scores are not returned, as demonstrated by the fact that similar queries in the text are answer correctly, and nodes are reported

Wouldn't that mean the filter is just filtering out all nodes?
I also have no idea what v_store = db.db_vector_store('documents_view') is actually doing or returning. This is hardly a reproducible piece of code 😅

Hi and thank's for the quick reply. As my collegue @schiaro98 said, we had stored all embeddings in a PGVector db and we extract them with that method. Each embedding is marked with a category_id that we filter to get the right category on which perform retrieval.

@Calabrone76 @schiaro98 still a little confused I guess. There shouldn't be any score filtering. The only way that no nodes are returned is if the filters remove all result, or if the db actually has no data.
You can try testing the retriever directly
nodes = retriever.retrieve("test")

The only way that no nodes are returned is if the filters remove all result, or if the db actually has no data.

Hi @logan-markewich, the problem is that the retriever and his filters are created only one time when the user choose a category. When the user asks question on the same category the retriever remain the same: the odd thing is that with some question no nodes are returned; if we refactor the question then nodes are returned.
We can reproduce the issue even testing the retriever directly.

HI @logan-markewich, we made some more debug and we noticed that every time we use the chat method it always issues query to our PGvector DB. We thought that once the retriever had been created with filters all the data was on the retriever itself. But it seems, and it makes sense, the every similarity search is done against the DB itself. So, if this is the case, maybe the problem is on the PGVector class.

Hi @logan-markewich, we found out the problem: we store embeddings in PGVector with a wrong data type, so sometimes the cosine simliraty failed with no result. We had put the correct type and now seems to work!


Unable to open - ://cvat.org

My actions before raising this issue

[ ] Read/searched the docs
[ ] Searched past issues

The online version of CVAT is not accessible, I was able to use it till 30 mins ago.
Is there an outage on the server?
Expected Behaviour

Current Behaviour

Possible Solution

Steps to Reproduce (for bugs)

1.https://cvat.org/ - Go to the link to login
2.
Operating System and version (e.g. Linux, Windows, MacOS):
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
Logs from `cvat` container

Next steps
You may join our Gitter channel for community support.

Nevermind, Closing this issue as the site seems up now


/create ponder crashes the game

Describe the Bug
I typed /create ponder and before I could even type anything else or submit the command, the whole server crashed.
Reproduction Steps

Type /create ponder

Expected Result
A list of available ponders should populate or nothing.
Screenshots and Videos
No response
Crash Report or Log
https://pastebin.com/bYAt1svt
Operating System
Linux
Mod Version
0.5.0f
Minecraft Version
1.19.2
Other Mods
[✔] architectury-6.3.49-fabric
[✔] audioplayer-1.19.2-1.4.5
[✔] authme-mc1.19.2-4.2.0
[✔] BetterF3-4.0.0-Forge-1.19.2
[✔] bobby-4.0.0
[✔] CITResewn-1.1.2+1.19.2
[✔] cloth-config-8.2.88-fabric
[✔] collective-fabric-1.19.x-4.27
[✔] continuity-2.0.1+1.19
[✔] Controlling-fabric-1.19.2-10.0+7
[✔] create-fabric-1.19.2-0.5.0f-776
[✔] EditSign-1.19.2-2.6.0
[✔] emotecraft-for-MC1.19.2-2.2.5-fabric
[✔] fabric-api-0.66.0+1.19.2
[✔] fabric-carpet-1.19.2-1.4.84+v221018
[✔] ferritecore-5.0.0-fabric
[✔] indium-1.0.9+mc1.19.2
[✔] inventorysorter-1.19.2-21.0.4
[✔] iris-mc1.19.2-1.4.2
[✔] Jade-1.19.1-fabric-8.2.3
[✔] lambdynamiclights-2.1.2+1.19
[✔] lithium-fabric-mc1.19.2-0.10.2
[✔] logical_zoom-0.0.17
[✔] malilib-fabric-1.19.2-0.13.0
[✔] minihud-fabric-1.19.2-0.23.3
[✔] modmenu-4.1.0
[✔] MouseTweaks-fabric-mc1.19-2.22
[✔] polaroidcamera-1.4.0
[✔] reeses_sodium_options-1.4.7+mc1.19.2-build.59
[✔] RoughlyEnoughItems-9.1.572
[✔] shulkerboxtooltip-forge-3.2.2+1.19.2
[✔] sodium-extra-0.4.13+mc1.19.2-build.76
[✔] sodium-fabric-mc1.19.2-0.4.4+build.18
[✔] starlight-1.1.1+fabric.ae22326
[✔] textile_backup-2.4.0-1.19.1
[✔] voicechat-fabric-1.19.2-2.3.15
[✔] Xaeros_Minimap_22.16.2_Fabric_1.19.1
[✔] XaerosWorldMap_1.28.3_Fabric_1.19.1
Additional Context
No response

Can’t reproduce, please test patch G.

closing for inactivity


Qualifications Section Appears For Non Legal Exercises

@MattHowley @warrensearle Can we confirm whether non legal exercises should display a Qualifications section in Apply?
Currently in Admin a non-legal exercise does not display Qualifications in the Eligibility tab so presumably the section shouldn't appear in Apply.
It's worth also confirming if (for a Legal exercise) no qualifications are specified then should the Qualifications section appear in Apply?
Live application for non-legal exercise: https://apply.judicialappointments.digital/apply/u5KTezC7wpndyWgl0wZ7/relevant-qualifications
With a screenshot of it below:

Hi @drieJAC - no, I've not come across (or at least don't recollect) a non-legal exercise for which qualifications are required - the criteria tends to be membership of a particular professional body or experience of a particular nature. If we are able to disable the qualifications section for non-legal exercises that would be grand.


Support views

I can't use this cookbook for the moment as I need to configure bind with internal and external views.
Any plan on implementing this feature ? Thanks a lot.

Released in v2.2.0.


IMU and GPS hardware

Hi @alex-makarov,
what exact IMU and GPS hardware did you use? We try to rebuild the robot hardware identically. We follow the article under https://medium.com/@alxm/converting-a-hoverboard-into-a-self-driving-mobile-robot-with-ros-d886c867e8a9
Great work and thanx in advance!
Greetz,
gotros

Hey,
I'm using rather old BT-818XT, but just because I had it already. You can use any GPS receiver which produces NMEA sentences with ROS, I believe.
IMU is from Adafruit - this one
FYI, I'm currently trying to make the semantic segmentation work for the costmap, so master branch can be a bit broken.
Happy to help.


Build MySQL implementation

Implementation for API to work with MySQL databases

Resolution for mysql driver
Code cleanup uing sql parser

This has been resolved


date-pickerIE兼容问题

Reproduction link
https://codesandbox.io
Steps to reproduce
https://ng.ant.design/version/9.3.x/components/date-picker/zh
What is expected?
ie不会自动触发时间选择浮动框
What is actually happening?
ie自动触发时间选择浮动框

Environment
Info

ng-zorro-antd
9.3.0

Browser
IE

Duplicate of #5562. 10.0.1 已修复


dist: provide sha256/sha512 hashes

dist: provide sha256/sha512 hashes
Description
Follow new Apache release policy: https://www.apache.org/dev/release-distribution.html#sigs-and-sums
Status

done, ready for review

Checklist (tick everything that applies)

[x] Code linting (required, can be done after the PR checks)
[x] Documentation
[x] Tests
[x] ICLA (required for bigger changes)

Haven't tested it, but LGTM :+1:

It's quite easy to test with ./release.sh -u<EMAIL_ADDRESS>assuming you have a GPG key associated<EMAIL_ADDRESS>


Tensorboard multiple scalar summaries in one plot

In 0.12 I could do this:

testAccuracy = tf.Variable(0., name="accuracy")
trainAccuracy = tf.Variable(0., name="accuracy")
testAccSum = tf.scalar_summary("Accuracy", testAccuracy)
trainAccSum = tf.scalar_summary("Accuracy", trainAccuracy)
summaryOpsTest = tf.merge_summary([testAccSum])
summaryOpsTrain = tf.merge_summary([trainAccSum])
writerTest = tf.train.SummaryWriter(out_dir+'/test', sess.graph)
writerTrain = tf.train.SummaryWriter(out_dir+'/train', sess.graph)

to view both scalar summaries in a single plot.
In 0.12.1 I changed it to this:

testAccuracy = tf.Variable(0., name="accuracy")
trainAccuracy = tf.Variable(0., name="accuracy")
testAccSum = tf.summary.scalar("Accuracy", testAccuracy)
trainAccSum = tf.summary.scalar("Accuracy", trainAccuracy)
summaryOpsTest = tf.summary.merge([testAccSum])
summaryOpsTrain = tf.summary.merge([trainAccSum])
writerTest = tf.summary.FileWriter(out_dir+'/test', sess.graph)
writerTrain = tf.summary.FileWriter(out_dir+'/train', sess.graph)

due to the issued warnings.
But now each summary is drawn in its own plot (and the name is made unique (+"_1"))
Is this behavior intended? If so, is there a new way to achieve two summaries in one plot?
Thanks

In general this is a question that is best answered on stackoverflow, where we monitor all questions with the tag tensorflow. What is the warning you are getting?
@dandelionmane may know how to plot two scalars in the same plot.

yeah, thought about that, but I posted it here because I thought it might be a bug as it was working before the update.
(just the warnings that scalar_summary, merge_summary etc are deprecated)

@dandelionmane might know the answer.

@abred , what's testAccSumDiff here?

@priyankamandikal ah sorry, just some other summary, forgot to remove it, edited the first post

Sorry, you can no longer use the summary ops to put both summaries in the same plot.
If you want to work around this limitation, you can generate the Summary protocol buffers yourself, and then manually add them to the summary.FileWriter. But it's cumbersome.
(Why do you have two sequences which are different nodes, but should be displayed in the same plot? Why not run test and train data through the same subsections of the graph?)

ok.
Well, I do run test and train data through the same part of the graph. Not sure what you're getting at, maybe I'm on the wrong track here, but I want to calculate the accuracy for training batches and for the test set und plot these, I can't use a single scalar summary for that right? What I want is something like this: http://cs231n.github.io/assets/nn3/accuracies.jpeg

I want exactly the same as @abred. With Tensorflow 0.11, I produced an image summary with matplotlib. At each epoch the image was overwritten.
Now, with Tensorflow 1.1, the plots are kept for every epochs! I only need the plot for the last epoch.
Plotting the training error and the test error in the same plot is a very common thing to do! Do people using Tensorboard give up on that?

You can do this with by creating a different FileWriter (that writes to a different log) for each curve and using the same name/tag for the things you write.

thanks for the suggestion, but as I wrote, this does not work any more since rc0.12.
Every name in a graph is made unique by tensorflow, so if you create multiple summaries with the same name you end up with "_X" suffixes. It worked before because summaries used to use tags and not the names.

@abred and @lemairecarl , Here is what worked for me. I used one variable with two writers:
import tensorflow as tf
from numpy import random

writer_1 = tf.summary.FileWriter("./logs/plot_1")
writer_2 = tf.summary.FileWriter("./logs/plot_2")

log_var = tf.Variable(0.0)
tf.summary.scalar("loss", log_var)

write_op = tf.summary.merge_all()

session = tf.InteractiveSession()
session.run(tf.global_variables_initializer())

for i in range(100):
    # for writer 1
    summary = session.run(write_op, {log_var: random.rand()})
    writer_1.add_summary(summary, i)
    writer_1.flush()

    # for writer 2
    summary = session.run(write_op, {log_var: random.rand()})
    writer_2.add_summary(summary, i)
    writer_2.flush()

ohh, damn. well, now that you're saying it it's kind of obvious, one variable - two writers not two variables - two writers.
thanks ! 👍

@abred , were you able to get it working?  How did you cater to the "_X" suffixes problem ?

@AbhinavDS: @BarzinM's solution worked for me

@dandelionmane @BarzinM,  Can we do this inside tensorflow's  tf.contrib.learn.Estimator?
Contrib.learn abstracts graph, and session, so we cannot call
    summary = session.run(write_op, {log_var: random.rand()})
    writer_1.add_summary(summary, i)

I have been trying to use  tf.train.SummarySaverHook without success.
As an example how can I plot loss and loss2 in the same graph for the example below"
def cnn_model_fn(features, labels,mode, params):

    LEARNING_RATE = params['learning_rate']

    #input

    input_layer=tf.reshape(features['x'],shape=[-1,28,28,1])

    #conv1
    #with tf.variable_scope("conv2d"):
    conv1=tf.layers.conv2d(inputs=input_layer,
                           filters=32,
                           kernel_size=[5, 5],
                           padding='same',
                           activation=tf.nn.relu)

    pool1=tf.layers.max_pooling2d(inputs=conv1, pool_size=[2,2], strides=2)

    #conv2
    conv2=tf.layers.conv2d(inputs=pool1,
                           filters=64,
                           kernel_size=[5,5],
                           padding='same',
                           activation=tf.nn.relu, name='my_conv2')
    pool2=tf.layers.max_pooling2d(inputs=conv2, pool_size=[2,2], strides=2)

    #fc1
    flat=tf.reshape(pool2, [-1, 7*7*64])

    batch_norm=tf.contrib.layers.batch_norm(flat, scale=True, scope='batch_norm')
    #trainable
    dense1=tf.layers.dense(batch_norm, 1024, activation=tf.nn.relu)

    dropout = tf.layers.dropout(inputs=dense1, rate=0.4, training=mode == learn.ModeKeys.TRAIN)

    #fc2
    logits=tf.layers.dense(dropout, 10, activation=tf.nn.relu)
    loss = None
    train_op = None

    #loss
    if mode != learn.ModeKeys.INFER:
        onehot_labels=tf.one_hot(indices=tf.cast(labels, tf.int32),depth=10)
        loss=tf.losses.softmax_cross_entropy(onehot_labels=onehot_labels, logits=logits)
        loss2= tf.losses.sigmoid_cross_entropy(multi_class_labels=onehot_labels, logits=logits)

    #optimizer
    if mode == learn.ModeKeys.TRAIN:
        train_op = tf.contrib.layers.optimize_loss(
                        loss=loss,
                        global_step=tf.contrib.framework.get_global_step(),
                        learning_rate=LEARNING_RATE,
                        optimizer="Adam")

    predictions={
            'classes': tf.argmax(logits, axis=1) ,
            'predictions': tf.nn.softmax(logits,name="softmax_tensor")
    }

    return model_fn_lib.ModelFnOps(mode=mode, predictions=predictions, loss=loss, train_op=train_op)

original_model_dir="/tmp/bnorm/"

#Instantiate an estimator
LEARNING_RATE = 0.0001
my_params = {'learning_rate':LEARNING_RATE}

if os.path.isdir(original_model_dir):
    shutil.rmtree(original_model_dir)
runConfig = learn.RunConfig(save_summary_steps=20, save_checkpoints_steps=100,
                            save_checkpoints_secs=None)
classifier=learn.Estimator(model_fn=cnn_model_fn, model_dir=original_model_dir,config=runConfig, params= my_params)

# Configure the accuracy metric for evaluation
metrics = {
  "accuracy":
      learn.MetricSpec(
          metric_fn=tf.metrics.accuracy, prediction_key="classes"),
}

experiment=learn.Experiment(estimator=classifier,
                train_input_fn=train_input_fn,
                eval_input_fn=eval_input_fn,
                eval_metrics=metrics,
                train_steps=200)
experiment.train_and_evaluate()

@BarzinM , great demo, thank you. I have one question. if with two writers, then there should be two events(and under different path in your code). how to start tensorboard for the two writer?

@micklexqg You should be able to launch tensorboard with --logdir being the directory that contains both of your events files

@anthnyprschka , thanks!

Hello,
Do you know how to plot multiple scalar on the same plot using tensorflow 2.3?
For example, I want to display train_accuracy and valid_accuracy on the same plot, and train_loss and valid_loss on the same plot.
Thank you.


Replace Swarrot by Messenger

Following https://github.com/j0k3r/banditore/pull/278

Coverage decreased (-0.02%) to 97.027% when pulling 2b6bd477224731be681b95433bdcc68d4e4535a7 on symfony-messenger into 6713516fb2991a2166c5aee1e75f07311b3c6a41 on master.


SQL Server is failing to download in GH Action VM

Description
We're running some integration tests as a GH action that rely on a local instance of SQL Server to complete. We have been using chocolatey to install SQL Server successfully for some time:
choco install sql-server-2019 --no-progress --params "'/IGNOREPENDINGREBOOT /INSTANCEID=KEYMANAPI /INSTANCENAME=KEYMANAPI /SAPWD=*** /SECURITYMODE=SQL /UPDATEENABLED=FALSE /FEATURES=SQLENGINE,FULLTEXT'"

However, today, the action has started failing to download the ISO:
Chocolatey v0.10.15
Installing the following packages:
sql-server-2019
By installing you accept licenses for the packages.

sql-server-2019 v15.0.2000.20210324 [Approved]
sql-server-2019 package files install completed. Performing other installation steps.
Downloading sql-server-2019
  from 'https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLServer2019-x64-ENU-Dev.iso'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLServer2019-x64-ENU-Dev.iso'. Exception calling "Read" with "3" argument(s): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
The install of sql-server-2019 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - sql-server-2019 (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'.
 See log for details.
Error: Process completed with exit code 404.

I have checked that the file is available (https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLServer2019-x64-ENU-Dev.iso) and have even downloaded it successfully on a private Azure VM. So I am unclear as to why this is failing on the GH Action VM.
Area for Triage:

Databases
Question, Bug, or Feature?:

Bug
Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016 R2
[x] Windows Server 2019

Image version

20210525.0
Expected behavior
The download should succeed, similar to:
Chocolatey v0.10.15
Installing the following packages:
sql-server-2019
By installing you accept licenses for the packages.

sql-server-2019 v15.0.2000.20210324 [Approved]
sql-server-2019 package files install completed. Performing other installation steps.
Downloading sql-server-2019
  from 'https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLServer2019-x64-ENU-Dev.iso'

Download of SQLServer2019-x64-ENU-Dev.iso (1.33 GB) completed.
Hashes match.

The last successful run was 21 days ago.
Actual behavior
The download is failing with error "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
Repro steps

Run the following command in a GH action (fixup SAPWD parameter first):

choco install sql-server-2019 --no-progress --params "'/IGNOREPENDINGREBOOT /INSTANCEID=KEYMANAPI /INSTANCENAME=KEYMANAPI /SAPWD=*** /SECURITYMODE=SQL /UPDATEENABLED=FALSE /FEATURES=SQLENGINE,FULLTEXT'"

Ref: https://github.com/keymanapp/api.keyman.com/blob/master/.github/workflows/ci.yml
Ref: https://github.com/keymanapp/api.keyman.com/pull/153/checks?check_run_id=2714098977.

Hi @mcdurdin!
Looks like it was some intermittent issue with https://download.microsoft.com. I've tried your pipeline and the run was succeeded 5 times in a row:

https://github.com/miketimofeev/api.keyman.com/actions

Hi @miketimofeev :) Yes, I just re-ran the action now and it succeeded, so that's good news. Thank you!
I guess these kinds of transient network problems can never be completely eliminated -- so will just have to work with that.

This issue has returned: https://github.com/keymanapp/api.keyman.com/runs/2732594202?check_suite_focus=true
Is it possible that download.microsoft.com is rate limiting requests from GitHub Action VMs?

@mcdurdin no, we're not aware of any limiting requests and there are a lot of packages that customers download from download.microsoft.com.
I've tried to download the file 100 times in a row and have no issues at all.
I suggest writing simple retry logic for choco installation. Please let me know if you need any help with that.

Thanks @miketimofeev. I found #721 which gives good retry logic for choco and seems to work well for our needs.


Add support for docker 26.1.x

Add support for docker 26.1.x.
Release notes: https://docs.docker.com/engine/release-notes/26.1/
ref issue: https://github.com/rancher/rancher/issues/45013
Docker versions added: 26.1.0 and 26.1.1

Validated on rancher v2.9-head
Docker 26.1.0 and 26.1.1 validation completed on below OSes with node driver and custom clusters:

RHEL 9.3 and 8.9
OL 9.3 and 8.9
Rocky  9.3 and 8.9
CentOS 7.9
Ubuntu 22.04

Validated on rancher v2.9-head
Docker 26.1.0 and 26.1.1 validation completed on below OSes with node driver and custom clusters:

RHEL 9.2, 9.1, 9.0, 8.8, 8.7 and 7.9
OL 9.2, 9.1, 8.8 and 8.7
Rocky  9.2, 9.1, 8.8 and 8.7
Ubuntu 24.04

26.1.0 and 26.1.1 released

https://releases.rancher.com/install-docker/26.1.0.sh
https://releases.rancher.com/install-docker/26.1.1.sh

https://releases.rancher.com/install-docker/26.1.sh points to 26.1.1

Moving back to raise the rancher PRs to update the default versions, since testing and release are compeleted.

Hello @snasovich & @kinarashah, I was wondering if we may point to EngineInstallURL from setting.go for install-docker script URL in controller.go?
https://github.com/rancher/rancher/blob/49a10b3070b3d25b2990ea9fac01b876c32f92bd/pkg/controllers/management/node/controller.go#L48
https://github.com/rancher/rancher/blob/49a10b3070b3d25b2990ea9fac01b876c32f92bd/pkg/settings/setting.go#L66

Created issue regarding the above query to unblock docker 26.1 support.

Tested on rancher v2.9-head(dcf32c2). The default version of the docker install script is as expected - https://releases.rancher.com/install-docker/26.1.sh. RKE1 node driver cluster provisioned also has a correct docker version installed.
Hence, closing the ticket.


Invalid Date from the value returned

I've been trying to get the date value but the 23-05-2019 format is invalid.

tried working to convert it with moment, didnt work,

tried with `new Date("23-05-2019"), also still returns invalid date.

anyone else faced this? Any reason why?

Default date format is "DD-MM-YYYY". You can chage it by setting dateFormat prop on DateInput component.
<DateInput
    ....
    dateFormat="YYYY-MM-DD"
/>

"YYYY-MM-DD" format shold be parsed correctly by moment and by Date.
The other option is to parse the value using moment and providing optional format argument: moment("23-05-2019", "DD-MM-YYYY")

@arfedulov hey worked like a charm. Thanks very much.. i can close this issue now


bootstrap might take too long

Description
when a network is big and has a lot of unique individual peers, we will query our first peers and keep crawling the network to find new peers, if we keep finding new peers, we keep crawling, in a big network this might take really long. we have to think of a termination method that will find sufficient new peers and terminate.
Steps To Reproduce
create a network with a lot of peers, make sure peers return new peers in every hop.
Expected Behavior
We if we find a big sufficient number of peers we should stop even if there are new results.
Environment
Please complete the following information:

OS:

Node Version:

App Version (if applicable):

Additional Resources

#1992 - logs there show this issue

closing this in favor of this #1997


Modal Close Button Focus Marker overlaps Title

If the title of a modal is fairly long and wider than the content, the focus marker of the close button currently overlaps the title text:

This is clearly a fairly minor visual issue and doesn't impact any functionality. It might however be easily fixed though by adjusting the spacing around the close buttton?

@TimoSta can we close this one?

@mcoker Just verified that it's resolved in our app, and it looks good! 👍


Images aren't loading in the 64 bit ver on a fresh install

Bug description
I have tried to install the latest and official release of the 64 bit ver but when I try to load a source I get this error:
[22:26:58.633][Warning] [Qt][qt.network.ssl] QSslSocket: cannot call unresolved function SSLv23_client_method
[22:26:58.633][Warning] [Qt][qt.network.ssl] QSslSocket: cannot call unresolved function SSL_CTX_new
[22:26:58.633][Warning] [Qt][qt.network.ssl] QSslSocket: cannot call unresolved function SSL_library_init
[22:26:58.633][Warning] [Qt][qt.network.ssl] QSslSocket: cannot call unresolved function ERR_get_error
And a bit before this error:
[22:26:58.434][Error] Missing SSL libraries
While the 32 bit ver is working without any issue
Expected behavior
Load the images without any issue
System information
Windows 10 (1903) with the official or latest dev version

Try to download the Visual C++ RunTime Library x64
https://support.microsoft.com/es-es/help/2977003/the-latest-supported-visual-c-downloads

Yes there was an issue in some versions where the wrong MSVC runtime was installed, either the wrong platform or  the wrong year altogether. Newer MSVC versions don't have numbers and the platform is now detected automatically so this was fixed.


Hugo 'new' command ignores --config flag

I'm using Hugo in a project that requires different configurations based on the environment. I have a config directory and different config files within it such as local.config.toml. When running hugo server --config config/local.config.toml, the correct configuration is used, but running hugo new posts/test.md --config config/local.config.toml will fail, despite the --config flag being listed in the hugo help new command.
Running the hugo new command with the --config flag set produces the following error:
Error: Unable to locate Config file. Perhaps you need to create a new site.

Hugo version: Hugo Static Site Generator v0.48/extended darwin/amd64 BuildDate: unknown
OS: macOS High Sierra 10.13.6
FWIW, it seems like I'm not the only one who's come across this: https://discourse.gohugo.io/t/how-to-use-a-custom-config-file-with-huge-new-command/13089/5

I can confirm this issue. (Maybe) a workaround: place an empty config.toml in the project's root directory.

Placing an empty config.toml in the project's root directory will not work, and is not an acceptable workaround because you would want the project to be built with the proper configuration params. A workaround that I created is a Makefile that looks like:
SLIDE_NAME ?= $(shell bash -c 'read -p "Slide Name: " name; echo $$name')
new_slide:
	cp config/local.config.toml ./config.toml
	hugo new slides/$(SLIDE_NAME).md
	rm ./config.toml
	@echo "Slide created!"

Here I'm copying the config file and placing it in the root directory and then removing it after running the command. This works, but it's not a great workaround.


Consider how decorate might apply to layouts

See https://github.com/ScottLogic/d3fc/issues/471#issuecomment-118596680

I don't think we've come up with a good solution to this, calling g.layout() at the end of decorate (and accepting the double-calculation) seems to be the working solution for now.


Adding "FeatureSpace advanced use cases" example

This PR adds a code example titled "FeatureSpace advanced use cases".
This work is part of the "Keras Community Sprint 2023" work that I am collaborating with @fchollet , the topic was his suggestion and I built the code, let me know if it is looking good, or if I need to change something here.
If you prefer there is also a Colab version of this code
A few notes:

I used the same dataset as the previous guide, I don't think that this is the best one to showcase the complex use cases of FeatureSpace, but I did not like the other options a lot either.
For Francois, you suggested that the guide should also cover handling missing values, did you mean using num_oov_indices=1 to cover unseen values or actually handle missing/null values during the adapt() method, I could not find examples on the second approach.

During the development of this work I create this Issue to point to a possible bug with the saving/loading of the FeatureSpace component, and I also create this issue to suggest improvements to use the feature with specific layers.

Hi @fchollet thanks for the review, it is always a pleasure collaborating with the Keras team!
As you suggested, I updated the example to use a different dataset now I am using this Bank Marketing, it has much more instances and it is also more complex, I think that the example is looking good now, let me know what you think.

My pleasure! I updated the PR with the ipynb and the md files.

Hi @fchollet is there anything else needed from my side before merging this PR?


cannot find hosts file

hi im getting this error message
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Windows\System32\drivers\etc\hosts
in guessing it is because my windows is installed on H drive and not C.
is there any way to resolve this ?

try to rename it? to h:

i tried it would not let me

why? try it with admin right?

It just said invalid parameter

you can rename the drive h: to c: i think

you can try find out the runner.py and change this line: host_path = "C:\Windows\System32\drivers\etc\hosts"
into H:\

mine has all the right drive letter correct but still not working and showing the
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Windows\System32\drivers\etc\hosts
thank you

@Xpress690  please have a look: https://github.com/derekhe/msfs2020-google-map/wiki/FAQ#host-not-found

Can you find this file?

Can you find this file?

Yes I can..... I´ve done everything that you asked me to do, and stilb is not working.
thank you

This is my problem: