Weird manpage output

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: macOS 10.13.1
Hyper.app version: 1.4.8
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/sholladay/85bddc67eb9c7071f9006d62ce166953
Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
The issue is reproducible in vanilla Hyper.app: I believe so, but not sure. My config is very close to default.

Issue

Running man node outputs two weird lines at the beginning that do not appear when I run the same command in Terminal.app.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
NODE(1)                                         Node.js                                         NODE(1)

NAME
       node - Server-side JavaScript runtime

SYNOPSIS
...

The weird part is this:
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.

When man runs and finds a manual page to display, it passes it through troff to generate SGR-encoded output fit for terminal display. It calls troff with preconfigured command-line switches, one of which is to suppress all error messages (specifically, -Wall). See the options section in troff(1) and
check what's been set in /etc/man.conf:
TROFF         /usr/local/bin/groff -Tps     -mandoc
NROFF         /usr/local/bin/groff -Tutf8   -mandoc  -Wall

@Alhadis Thanks for the pointer. I just compared the defaults in macOS and Linux and groff emits the warnings in both cases, but in Linux it appears that the man utility supresses printing them when the output is a pager. I can see them via man node > /dev/null. It appears the man utility on macOS does not have that functionality.


No logs from short-lived (non-Kubernetes) containers

I've been having difficulty retrieving logs from short-lived containers. I recognize there's been some effort recently to improve this situation for Kubernetes based systems in #3372 - however, for those not on Kubernetes (like my team) our containers are still not showing logs. #3930 will help slightly, but for truly short-lived containers it's still possible for them to be missed.
Is it possible to look into scheduling at least one log collection for dead containers? From the discussion in #3930 it sounds like it should be feasible, but will need some investigation. I thought I'd open a ticket to ensure discussion happens in a more appropriate thread 😄
Steps to reproduce the issue:
I have the datadog agent to forward logs for all containers that have a service defined, and use the following command on an ECS instance to mimic a short-lived container:
docker run \
  --label "com.datadoghq.ad.logs=[{\"source\": \"testing\", \"service\": \"testing\"}]" \
  --label "com.amazonaws.ecs.cluster=staging" \
  --label "com.amazonaws.ecs.container-name=testing" \
  alpine \
  ping -c1 google.com

Changing the command to ping -c10 google.com causes the logs to be picked up and collected, but a truly short-lived container does not have its logs collected 😢.
The current workaround is to have a script as the entrypoint/command for our containers that executes a sleep at the end so that regardless of exit status, the logs have a chance to be picked up. This is obviously far from ideal, though.
Additional environment details (Operating System, Cloud provider, etc):
AWS ECS

Hello @masterful ,
Thanks for submitting this. This is true that currently for pure docker environment the lowest time interval the Datadog Agent can set is currently 1 second and therefore any container that has a slower life time could be missed (currently you have to change the parameter to 1s until the PR you linked gets merged).
Adding a sleep to your container is indeed a workaround but as you say, it's far from ideal and we can all agree on this.
We are currently looking at how we collect Docker logs and how we could improve it to collect logs from dead container.
We will make sure to update that thread with our findings. But feel free to let us know if you have any ideas or suggestions.


Fix up redundant type casts

Codecov Report
Base: 88.63% // Head: 67.29% // Decreases project coverage by -21.34% :warning:

Coverage data is based on head (e5f55db) compared to base (5531e13).
Patch coverage: 80.00% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #1954       +/-   ##
=============================================
- Coverage     88.63%   67.29%   -21.34%
- Complexity     8019     8051       +32
=============================================
  Files           243      243
  Lines         24549    24589       +40
=============================================
- Hits          21759    16548     -5211
- Misses         2790     8041     +5251

Flag
Coverage Δ

5-max
67.29% <80.00%> (-21.34%)
:arrow_down:

7.4
67.29% <80.00%> (-21.34%)
:arrow_down:

agnostic
67.29% <80.00%> (-0.11%)
:arrow_down:

mysql
?

pgsql
?

sqlite
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...rc/Propel/Generator/Command/TestPrepareCommand.php
0.00% <0.00%> (-94.63%)
:arrow_down:

src/Propel/Generator/Manager/AbstractManager.php
63.30% <ø> (-14.07%)
:arrow_down:

src/Propel/Generator/Manager/ReverseManager.php
0.00% <0.00%> (-73.24%)
:arrow_down:

src/Propel/Generator/Manager/SqlManager.php
0.00% <ø> (-83.34%)
:arrow_down:

src/Propel/Runtime/ActiveQuery/Criteria.php
67.61% <0.00%> (-20.21%)
:arrow_down:

src/Propel/Runtime/Adapter/Pdo/MysqlAdapter.php
25.00% <ø> (-40.22%)
:arrow_down:

src/Propel/Runtime/Collection/OnDemandIterator.php
75.75% <ø> (-17.80%)
:arrow_down:

src/Propel/Generator/Builder/Om/ObjectBuilder.php
83.28% <100.00%> (-10.58%)
:arrow_down:

src/Propel/Generator/Model/Column.php
95.96% <100.00%> (ø)

src/Propel/Generator/Model/ForeignKey.php
94.80% <100.00%> (ø)

... and 142 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[RFE] AWS Marketplace: CSP Adapter install instructions for non-eks clusters

Is your feature request related to a problem? Please describe.
The csp adapter is currently only installable on EKS clusters. This limitation is due to it's usage of iam roles for service accounts, which provides the csp adapter with the  necessary permissions to to manage entitlements within license manager.
Describe the solution you'd like
There is documentation which indicates that IAM Roles for service accounts is supported for non-eks clusters (DIY K8s and EKS anywhere). We should augment our existing documentation to explain to customers how to utilize these systems to deploy the adapter on non-eks clusters.
Describe alternatives you've considered
There are other methods of AWS auth from kubernetes, including:

Node Role
Hardcoded, user-provided, access key and secret key (probably in a k8s secret in the local cluster)
Third party credential providers (vault)

Each of these solutions has issues, but in short, the overall issues are:

Require changes to the adapter or the adapter's chart to support multiple types of auth for one csp
Violate security best practices (node role would allow more than just the adapter to have access to license manager, hardcoded credentials would be hard to manage over time)
Require tight coupling with third-party systems that we don't own

Additional context
The desired solution would also potentially allow us to publish automation (terraform/cloudformation) which would allow users to easily create this integration. However, this should be seen as a long-term goal rather than a short-term goal.

https://jira.suse.com/browse/SURE-5381


Jbaker/update deps for menu fix

Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Summary:
Updates dependencies to pull in a critical fix for auro-menu for SSR support.
https://github.com/AlaskaAirlines/auro-menu/issues/208
Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

Verification

[ ] Builds correctly
[ ] No linter issues
[ ] Localhost renders the component correctly in a basic smoke test

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Differing values between TIMESTAMP opcode and tx receipt timestamp

Expected Behavior
When executing a transaction, the value of block.timestamp should be consistent with the timestamp given in the transaction receipt.
Current Behavior
Sometimes when running tests, I'm seeing block.timestamp as +1 to the timestamp given in the tx receipt.  As a minimal example here is a simple vyper contract, let's call it Foo:
time: public(uint256)

@external
def set_time():
    self.time = block.timestamp

And a brownie test:
def test_time(foo):
    tx = foo.set_time()
    assert tx.timestamp == foo.time()

If I run this test long enough in a loop, inevitably the assertion fails.
Your Environment

Version used: Ganache CLI v6.10.1 (ganache-core: 2.11.2)
Operating System and version: Ubuntu 20.04

Uhh this was just pebkac, pretend i wasn't here :grimacing:


[Broker] Fix broker dispatch byte rate limiter.

Motivation
fix https://github.com/apache/pulsar/issues/11044
now dispatcher byte rate limit don't limit every cursor read. When cursor read always use ServiceConfiguration.dispatcherMaxReadSizeBytes to read. It will cause that  dispatcher read entries by ServiceConfiguration.dispatcherMaxReadSizeBytes to read every time.
implement
when cursor read entries size need to calculate, the calculate result by dispatcher bytes limiter.
Verifying this change
Add the tests for it
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

@lhotari PTAL

Why not use ImmutablePair ?

changed

@anvinjain Do you want to take a final look?


fix: expired X509 certificates should be ignored for usage

An expired X509 is ignored with this fix and therefore internally not used anymore. The expired certificate won't appear in /token_key, /token_keys anymore and private_key_jwt is not done with x5t, that the X509 as trust anchor is not possible anymore.
The behavior is not really changed with this PR, but no exception should be thrown in runtime. Before this PR, an Exception and with that HTTP 5xx was thrown

sonar green
https://sonarcloud.io/summary/new_code?id=cloudfoundry-identity-parent&pullRequest=2423


Export some internal functions

Describe the problem
For example, I want to disable or change csfr or csp for different routes. To do this, I disable it in the settings, copy this functionality from the source and use it manually as I need. But if the implementation changes, I won't be able to find out about it.
Perhaps there are many more such functions.
Describe the proposed solution
I suggest exporting some internal functions as utilities.
Alternatives considered
No response
Importance
nice to have
Additional Information
Perhaps modularity and optionality are more suited to the Svelte ideology.

There's already #6784 for CSRF. There are a number of other CSP-related issues.
As a rule, we don't like to expose internal functions just because we can. That ties us to that API and prevents certain kinds of refactoring without it being a breaking change. The API of the internal function is also likely not designed with ease-of-use by an end-user in mind. If you have specific feature requests that are more actionable, please open separate issues for them instead.


Should add bikeshed serve to get a server running

From @frivoal:

A bikeshed serve command that does like bikeshed watch and sets up an http server on <IP_ADDRESS>:8000 would make irrelevant thought. wink wink nudge nudge.

This should be pretty trivial, given SimpleHTTPServer.  Just need to add a flag to control port, I guess.

Don't forget to serve other files in the same directory or sub-directories, otherwise lots of spec will break due to missing images.

Okay, added. Try it out and let me know if it works for your Android use-case.
Note that the CSSWG references a stylesheet in the parent directory, which is not served by default (since it's above the root), so to deal with those specs you have to issue the command from the repo root, and specifically go to localhost/css-foo/Overview.html.

Great, it works, thanks.
If you want to go from great to freaking awesome, here's a list of incremental improvements you could make (some are likely trivial, some not). These are in no particular order, and are usefull independently, but many reinforce each other so the more the merrier:

[ ] If the file being requested over HTTP is currently being rebuilt by bikeshed, stall the HTTP request until the build has completed. Builds on android can take a while, so you may otherwise serve a stale version for quite some time, and multi-tasking to your background termux console to just to see if bikeshed is done is cumbersome.
[ ] if the HTTP request is for localhost:8000/css-foo/ and css-foo/Overview.html exists, serve that. Less typing, more happy.
[ ] Allow bikeshed serve (and the underlying bikeshed spec and bikeshed watch) to take multiple files as a parameter, generating all of them, so if you're working on a set of specs, you don't have to constantly stop and start bikeshed to switch which spec it is re-building.
[ ] If bikeshed serve (and bikeshed spec and bikeshed watch) is run without argument, first try (as now) to find a .bs file in the current directory, but if that fails, run in on */*.bs/. That way, I can just cd csswg-drafts && bikeshed serve and off I go.
[ ] When serving multiple files, process autolinks differently: if I bikeshed serve css-foo/Overview.bs css-bar/Overview.bs and css-foo has some auto-links that point to css-bar, make them point to the local copy of css-bar rather than the canonical one, making offline work a breeze.

Let me know if you'd rather have these tracked as separate issues.

Also, after leaving bikeshed serve accidentally on for half a day on my phone, I am happy to report that this does not drain the battery when sitting idle, and had no measurable effect. 👍


Improve error output

Errors that occur during seeding are catched. Then a new error is thrown which does not include the original error message/name.
EntityFactory:
try {
  const entity = yield this.make();
  return yield em.save(entity);
}
catch (error) {
  throw new Error('Could not save entity');
}

Hi @RobinRadic I improved the error handling and released a new version 1.0.0-rc.1.
Thanks for reporting


Unable to add Jade as signer on Android

https://github.com/user-attachments/assets/34ce41be-1b39-413f-b6ad-1dea1acb7426
Zoomed in on the QR after recording this video. Didn't work. Bug verified by Utkarsh as well.

Did you choose the right network for the app? (Ie if it's the dev app set Jade to use the testnet mode?)


WFNEWS-1197 : Adjust styling to match mockups

@sukhpalp  Looks like there's a merge conflict with a previous change to look at, otherwise changes look OK, but I will want to verify desktop is unaffected by some of the margin adjustments


Automatically run other cells if it's needed

Is there a way to automatically run other cells if it's needed?
For example, if I have the following
```
export url="https://example.com"
```

```
curl "${url}/v1"
```

```
curl "${url}/v2"
```

Let's say I have a new session, if I run curl "${url}/v1", it should automatically run the first block because it needs the url variable. But it should not automatically run curl "${url}/v2.
Same goes if I run curl "${url}/v2, it should also automatically run the first block. But it should not automatically run curl "${url}/v1"
VS Code's REST Client extension has this kind of feature: https://github.com/Huachao/vscode-restclient?tab=readme-ov-file#variables
Thanks!

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Hi @gojanpaolo! Thanks for filing this issue. We are considering adding direnv support which, when allowed/authorized, will execute .envrc (an arbitrary shell/bash script file that can be used for initialization).
If the URL is static you can drop it into a .env or .env.local at the base of your project and Runme will load it as part of starting up.
# eg .env.local
url="https://example.com"

If you change values, please click the Reset Session button in the notebook toolbar (screenshot below).

@sourishkrout Thanks for the response! I think direnv would solve a few of our use cases.
What if the value is more dynamic? e.g.
```
latest_version=$(curl ... | jq | .latest_version)
```

```
install $latest_version
```

```
uninstall $latest_version
```

I saw this: https://github.com/stateful/vscode-runme/issues/519
But it looks like it doesn't work

Looks like .env also doesn't seem to work

@gojanpaolo did you hit the "Reset Session" button as shown above? The .env will be populated at session creation by either restarting VS Code or "Reset Session", @gojanpaolo.

@sourishkrout Yes I did. And I also restarted VS Code

Are you on Windows using PowerShell by chance @gojanpaolo?

I'm on Windows and use git bash

Unfortunately, git bash is not Unix/POSIX and thus not supported.
However, here's how you can get Windows Subsystem for Linux working: https://docs.runme.dev/how-runme-works/windows

Ah, I just now tried in WSL and it's working as expected!
I think this is the 2nd or 3rd tool that only work on WSL. Maybe I need to switch to WSL as my main.
Thank you!


Return project on successful fork

In the current implementation nothing is returned from the forkProject method.
The GitLab API return the new project (the forked project).
It would be good if the Java API would return a Project instance of the forked project (the returned project by the GitLab API).

Unfortunately, the forking operation for a project is asynchronous and is completed in a background job. The request will return immediately.  You'll need to enter a loop and check for the project with:
public Project getProject(String namespace, String project)

Until it returns successfully.

The API call for fork actually returns the forked project.
That should be enough, or doesn't it?

The docs do not indicate that a Project instance is returned, however, that would be unusual.  I have went ahead and added returning the Project, but have not yet added a test case for same.  I'll get to this later today and do another release if it works.

As far as I understand the documentation, the git fork operation is done in the background but the GitLab project is created directly. To check if the git fork operation finished the documentation recommends to check the projects import_status.
As I see it, the Project object only contains the project information anyway, so returning a Project instance shouldn't be a problem. If someone wants to know if the actual fork is finished he could still loop to check for the import_status.
Thanks for taking a second look at it 👍 I hope I'm right with my assessment.

Returning the newly forked Project instance has been added and tested.  Is available in release 4.7.3.


conflicts Homebrew's OpenSSL and local LibreSSL

On my mac, Homebrew is installed at /opt/homebrew because /usr/local is used for other programs. And also, LibreSSL is installed at /usr/local.
In case of above, gem of Ruby that built with rbenv crashes:
$ rbenv install
ruby-build: use openssl from homebrew
Downloading ruby-2.6.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.0.tar.bz2
Installing ruby-2.6.0...
ruby-build: use readline from homebrew
Installed ruby-2.6.0 to /Users/lufia/pkg/rbenv/versions/2.6.0

$ gem install bundle
dyld: lazy symbol binding failed: Symbol not found: _SSL_CTX_set_min_proto_version
  Referenced from: /Users/lufia/pkg/rbenv/versions/2.6.0/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle
  Expected in: flat namespace

dyld: Symbol not found: _SSL_CTX_set_min_proto_version
  Referenced from: /Users/lufia/pkg/rbenv/versions/2.6.0/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle
  Expected in: flat namespace

SSL_CTX_set_min_proto_version is declared in LibreSSL's /usr/local/include/openssl/ssl.h, but Homebrew's OpenSSL don't have.
I tried to build ruby without ruby-build:
$ cd ruby-2.6.0
$ CFLAGS='-I/opt/homebrew/opt/openssl/include' make

Then, gem don't crash.
How to do give priority to /opt/homebrew/opt/openssl/include ?

How to do give priority to /opt/homebrew/opt/openssl/include ?

Use or google DYLD_LIBRARY_PATH.


feat: bump gwapi to v0.7.1

What type of PR is this?

feat: bump gwapi to v0.7.1
What this PR does / why we need it:
bump gwapi to v0.7.1

looks like IgnorePortInHostMatching https://pkg.go.dev/github.com/envoyproxy/go-control-plane/envoy/config/route/v3#RouteConfiguration needs to be set instead of stripping the port from the host (i.e. revert https://github.com/envoyproxy/gateway/pull/1389)
thanks to @sunjayBhatia & @howardjohn's triage in https://github.com/kubernetes-sigs/gateway-api/issues/2091

@arkodg so we need to revert https://github.com/envoyproxy/gateway/pull/1389 ?

yah @Xunzhuo , we'll need to

revert https://github.com/envoyproxy/gateway/pull/1389
add IgnorePortInHostMatching in every RouteConfiguration
then bump to v0.7.1

can be done in this PR or we can raise issues for each

looks like HTTPRouteRequestMirror will need to be skipped, can you also raise a issue to track it

I think IgnorePortInHostMatching won't work for :authority exact/suffix header matching, which is set up when we have hosts defined in httproutes and not in listeners

Istio handles this by matching in domains rather than a :authority header match

ok, maybe i can pr a fix to use that approach for the routes instead of :authority

hm, the problem here is that domains is listener-scoped, but i am talking about the case where httproute is more specific on hostname than listeners - in that case we are currently creating a authority header match. maybe that header match just needs to be more port agnostic

I mean here:
https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-msg-config-route-v3-virtualhost
On Thu, Jul 20, 2023 at 9:15 AM Jack Kleeman @.***>
wrote:

hm, the problem here is that domains is listener-scoped, but i am talking
about the case where httproute is more specific on hostname than listeners

in that case we are currently creating a authority header match. maybe
that header match just needs to be more port agnostic

—
Reply to this email directly, view it on GitHub
https://github.com/envoyproxy/gateway/pull/1478#issuecomment-1644212886,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXKXRPPH6YUAONPOBULXRFKTXANCNFSM6AAAAAAY2K6R7A
.
You are receiving this because you were mentioned.Message ID:
@.***>

no indeed, but doesnt virtualhost map to gateway listener?

Listener: match whatever
Routes:
virtual_hosts:
- domains: [*.example.com]
- domains: [bar.example.com]

sure, but envoy/gateway currently creates only 1 virtual host per HttpListener as defined in the gateway object:
// Allocate virtual host for this httpListener.
		// 1:1 between IR HTTPListener and xDS VirtualHost
		vHost := &routev3.VirtualHost{
			Name:    httpListener.Name,
			Domains: httpListener.Hostnames,
		}

So we would need to change that to be 1-to-many irght?

Yes

TBH I did not realize I was commenting in envoyproxy/gateway repo :slightly_smiling_face:

hah! no worries

hey @jackkleeman thanks for surfacing this issue, created a newer issue to track this limitation https://github.com/envoyproxy/gateway/issues/1687


Mixup of column vs row

https://github.com/nikiroo/jexer/blob/00ae3f54e495ff26b1e7474b690d28f830e421ce/src/jexer/TTable.java#L194
Should be row in this context.
Also usage of line vs row should be more consistent.

Yes, "row"... I should have used that term.
(And I did mix up "line" and column in this method, too.)
Will be fixed soon (sadly, it will require changes for any projects using this class).

Fixed by commit<PHONE_NUMBER>934e3eed2e73a90bae3b5a5b9f76e9 "line -> row"
(In ttable and master.)


Airrecord Pagination it's not clear

I was find for a solution to paginate the result that return the api, and I was looking for: page_size and max_record, but the parameter offset it's not clear.
What's about that parameter? If is a parameter returned in the result, actually, it's not present in that result.
Have a nice day! Thank you for that great library.

Yes, but I noticed that the parameter offset: is unused and i there are not a mechanism to know the offset to the next page. It could be a value of Table.records by example Table.records.offset or Table.records.next() but It have to make some break changes into the Hash result.


Slow processing for azure.core.paging.ItemPaged

Is your feature request related to a problem? Please describe.
I run vector search and then process results whose type is azure.core.paging.ItemPaged like below:
results = search_client.search(
search_text='',
vector=Vector(
value=embedding,
k=3,
fields='embedding'),
select=['question', 'answer']
)
for result in results:
continue
I found that vector search is fast which takes 10ms - 20ms. But just iterating results is slow, which takes 200ms - 300ms. Is it because I do not process azure.core.paging.ItemPaged in the right way, or ItemPaged is just so slow?
Describe the solution you'd like
How to process ItemPaged faster?
Describe alternatives you've considered
N/A

Thanks for the feedback, we’ll investigate asap.

Can you give more details?
Search method may return lots of results hence we make it paged return.
This means search_client.search just return the PagedItem object but does not retrieve real data.
for result in results:
Does the real work to get results for you.
It is expected that for result in results: may be slower than search_client.search depends how many results you find.

search_client.search() does retrieve real data. search_client.search() takes 10ms - 20ms. But just “for result in results:” takes 200ms - 300ms for 3 results which it is too slow.

Could you give more details why you think it does retrieve real data?

Because I use it in production and it works. But I find that the whole method latency is so high, so I dig out each part latency.

Thanks for the reply.
I don't think I fully understand it.
Because I use it in production and it works.
You mean you get real data when you call search_client.search() without anything else?
If you don't mind, could you share your code snippet?

Sure. In the following code snippet, t1  = 10ms - 20ms, t2  = 200ms - 300ms. t2 is too slow and I want to know how to speed it up.
def retrieve_relevant_qa(embedding, index_name):
t0 = time.time()
search_client = SearchClient(azure_search_service_endpoint, index_name, azure_search_credential)
results = search_client.search(
search_text='',
vector=Vector(
value=embedding,
k=3,
fields='embedding'),
select=['question', 'answer']
)
t1 = time.time() - t0
for result in results:
continue
t2 = time.time() - t1

Thanks for sharing.
to make sure we are on same page:
def retrieve_relevant_qa(embedding, index_name):
t0 = time.time()
search_client = SearchClient(azure_search_service_endpoint, index_name, azure_search_credential)
results = search_client.search(
search_text='',
vector=Vector(
value=embedding,
k=3,
fields='embedding'),
select=['question', 'answer']
)    # here we only create the iterator but do not retrieve any data
t1 = time.time() - t0
for result in results:   # here we do real work to retrieve data. hence this operation is slower.
    continue
t2 = time.time() - t1

any update?

@andrewzheng1618 I confirm what @xiangyan99 said that the search call itself do NOT fetch any data. It's job is to create an iterator object that upon call, will actually connect to Azure. You can see the design by yourself, based on a callback system called when you iterate in the loop:
https://github.com/Azure/azure-sdk-for-python/blob/c4c18a7b427633c0519016d762dc141ae743e41b/sdk/search/azure-search-documents/azure/search/documents/_paging.py#L124
You can also enable logging, and you will be able to see that the 10ms you spend in the initial call is just construction of the iterator, not any HTTP calls on the wire.
It's not a surprise then that you get slower time when actually calling Azure for real, compared to create an iterator object.
That being said, maybe there are some optimization we should/could do in the code, but the assumption that the first call is a HTTP call is incorrect.

Thanks for the detailed explanation. In the meanwhile, does it have way I could try to speed up the process?

Here are some general approaches you may try:

concurrency
limit number of results
network latency


Add example TensorMap layout to TargetInfo

Part of #364
Contributor (creator of pull-request) checklist

[x] Tests updated (for new features and bugfixes)?
[x] Documentation updated (for new features)?
[x] Issue referenced (for PRs that solve an issue)?

📚 Documentation preview 📚: https://metatrain--370.org.readthedocs.build/en/370/

Regarding the model checks: supporting generic targets is quite a major efforts so I decided to split it into 4 PRs (target info, readers, models, utilities). The model checks will be part of the third PR (I didn't think it was very smart to put in some code that I would have to remove soon after). The current errors are not terrible

I decided to split it into 4 PRs (target info, readers, models, utilities)

OK, would have been nice to mention this in the first PR comment, it makes it easier to understand what you are doing!


MissingTest assertions, indentation

PR-Codex overview
Focus of the PR:
This PR focuses on updating the test case for the Missing class.
Detailed summary:

Updated the test case method name from creates to readsAvailableBytes.
Updated the assertion statement to use MatcherAssert.assertThat instead of assertEquals.
Added a descriptive message to the assertion to clarify the expected result.
Reordered the import statements.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@h1alexbel thank you for your Pull Request. I'll assign someone to review it soon.
If this PR solves a todo from the code, please don't forget to remove it.

@rultor merge

@h1alexbel please review this Pull Request. Deadline (when it should be merged or closed) is 2023-07-02T11:59:11.212185.
You should check if the requirements have been implemented (partially or in full), if there are unit tests covering the changes and if the CI build passes. Feel free to reject the PR or ask for changes if it's too big or not clear enough.
Estimation here is 30 minutes, that's how much you will be paid. You will be paid even if this PR gets rejected.

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@h1alexbel Done! FYI, the full log is here (took me 2min)

@h1alexbel thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard.


Add coost

Codecov Report

Merging #9 (27d81d6) into master (c3b288b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #9   +/-   ##
=======================================
  Coverage   99.73%   99.73%
=======================================
  Files          13       13
  Lines         378      378
=======================================
  Hits          377      377
  Misses          1        1

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Since this library creates issues when compiling on GCC 9 and we don't plan on using coroutines (at least for now), we have decided not to use this library after all. It was creating more issues than it solved.


Pagination and filtering

Description
This will add pagination and filtering to the simple history admin view. This is needed because it will allow more performance views on instances with many historical records. Currently it is very likely to timeout depending on the settings .
Related Issue
Closes #1117 and closes #1219.
Motivation and Context
This is needed because it will allow more performance views on instances with many historical records. Currently it is very likely to timeout depending on the settings .
How Has This Been Tested?
We are currently using this in production and would like to have this natively live in this package.
Screenshots (if appropriate):

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have run the pre-commit run command to format and lint.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] I have added my name and/or github handle to AUTHORS.rst
[x] I have added my change to CHANGES.rst
[x] All new and existing tests passed.

@RumitAP are you going to proceed with this PR? Do you need help? Seems like it just needs a little extra push to be integrated.

I'm going to try get the adjustments done this week! @RumitAP

Hey sorry, I have this done. Ill push this up tonight

@jurrian should be ready to merge in now, completed comments and added testing

We need this change too for our project and we are waiting for it. So if you want I can fix the problems so it can get merged.

I've created a new PR (#1277) based on this one with some fixes.


Stacks

Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Description
(Write your answer here.)
Checklist

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

Related Issues or Pull Requests
(Write your answer here.)

@iamrajiv  Please check

@iamrajiv  Please check

@iamrajiv  Please check

@iamrajiv  Please check

👍🏻
Always, Try adding 1 pr for 1 issue

All right Bro  👍🏻

👍🏻
Always, Try adding 1 pr for 1 issue

All right Bro  👍🏻

👍🏻
Always, Try adding 1 pr for 1 issue

All right Bro  👍🏻

👍🏻
Always, Try adding 1 pr for 1 issue

All right Bro  👍🏻

@iamrajiv Please check

@iamrajiv Please check

Closing the PR because of no updates.

Closing the PR because of no updates.


error when following Overture build instructions

According to the instructions at https://github.com/onthegomap/planetiler-examples/blob/8901f77284712fd8f8f35f3fface712962d6287c/Overture.java#L17
* download a subset of overture data for a bounding box:
* Run java -cp planetiler.jar Overture.java
* Open data/overture.pmtiles in https://pmtiles.io/

But when I java -cp planetiler.jar Overture.java I get an import error:
$ java -cp planetiler.jar Overture.java
Overture.java:8: error: package overturelayers does not exist
import overturelayers.Building;
                     ^
Overture.java:9: error: package overturelayers does not exist
import overturelayers.Transportation;
                     ^
Overture.java:10: error: package overturelayers does not exist
import overturelayers.Water;
                     ^
Overture.java:27: error: cannot find symbol
    registerHandler(new Water(config));
                        ^
  symbol:   class Water
  location: class Overture
Overture.java:28: error: cannot find symbol
    registerHandler(new Transportation(config));
                        ^
  symbol:   class Transportation
  location: class Overture
Overture.java:29: error: cannot find symbol
    registerHandler(new Building());
                        ^
  symbol:   class Building
  location: class Overture
6 errors
error: compilation failed

I'm not sure how this "passing a class as input" thing works.

I figured this out.
As you mentioned in the readme,  this repository utilizes some features in java version 22
https://openjdk.org/jeps/458
With java 22, it seems to be working.
I think because some of the examples (e.g. Power.java, OvertureLandcover.java) worked with my current version of Java, I assume I had what I needed, until coming to the Overture.java example.


system commands not working

Hello, am having issues running commands in the Windows Terminal app located in C:\Windows\System32 with cmd and powershell (ssh, ipconfig, e.t.c.) and i get the following error:
ssh : The term 'ssh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the s
pelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ssh
+ ~~~
    + CategoryInfo          : ObjectNotFound: (ssh:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The directory C:\Windows\System32 is located in the environment variables and they are working properly in powershell and cmd applications.

 Sometimes we see systems where it never got updated -- usually when the system was running a much older version of Windows 10.
I'm glad it's fixed.


Jasperreportsintegration on linux and autonomus database

Hi can you give me example for jdbc conection string for conection with autonomus database, i tried to conect using documentation provided but not successfuly.

What exactly did you try? Can you copy the exact string here?
This did not work?
[datasource:default]
name=default
url=jdbc:oracle:thin:@tnsnames_entry?TNS_ADMIN=/path/to/wallet
username=MY_USER
password=my_user_password

Did you get an error message?

Here is the connection string
url=jdbc:oracle:thin:@cloud_high?TNS_ADMIN=/tmp/wallet/
and here is the error
HTTP Status 500 – Internal Server Error
Type Exception Report
Message Could not connect via JDBC: IO Error: The Network Adapter could not establish the connection
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
java.lang.RuntimeException: Could not connect via JDBC: IO Error: The Network Adapter could not establish the connection
de.oc.utils.Utils.throwRuntimeException(Unknown Source)
de.oc.db.ConnectionUtility.getConnection(Unknown Source)
de.oc.integration.jasper.webapp.AppConfig.getConnection(Unknown Source)
de.oc.integration.jasper.webapp.ReportWrapper.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/9.0.44
im using  odbc8
system : oracle linux 7
oracle cloud VM instance
opened 1522 port
I tried both ways of conection, through jks and wallet

Can you try using sqlcl on the same machine with the same wallet? To make sure, the wallet works at all.

I conected through sqlcl as suggested. Im using version 2.4 of integration tool,  is it possible to connect with this version

i tried on another local linux machine and got this error  : Invalid connection string format, a valid format is: "host:port:sid"

OK i just managed to connect from my local machine, i had to use newest odbc8 jar and replace it in tomcat/webapps/jasperreports/WEB-INF/lib   and  then restart tomcat. And my link had to be closed with /  (/tmp/wallet/). Il try same on cloud VM

Not sure that it will work with 2.4.
The support for the autonomous database was added in version 2.7:

There it should work right out of the box.
Cheers

I conected with 2.4 version from VM on cloud but only works with JKS. On same version of linux but localy it works with oracle wallet.    In all cases odbc8 have to be copied into tomcat/webapps/jasperreports/WEB-INF/lib folder and replace old odbc.I conected with jaspereports 6.5.15 with JKS from windows also.

Ok, great that you could make it work with 2.4.
So, we are done here, right? Can I close the ticket?

Yes , thank you


[tool_crash] FileSystemException: Cannot create link, OS Error: Incorrect function., errno = 1

Command
flutter pub get

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot create link, OS Error: Incorrect function.
, errno = 1
#0      _Link.throwIfError (dart:io/link.dart:263:7)
#1      _Link.createSync (dart:io/link.dart:184:5)
#2      ForwardingLink.createSync (package:file/src/forwarding/forwarding_link.dart:20:16)
#3      ForwardingLink.createSync (package:file/src/forwarding/forwarding_link.dart:20:16)
#4      _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1057:12)
#5      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:987:5)
#6      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1089:5)
<asynchronous suspension>
#7      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:350:5)
<asynchronous suspension>
#8      PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:175:5)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)

[✓] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.22621.819], locale en-GB)
    • Flutter version 3.3.8 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\mfhkt\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Visual Studio - develop for Windows
    ✗ Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.73.1)
    • VS Code at C:\Users\mfhkt\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.52.0

[✓] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.819]
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 107.0.1418.56

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 6928314d505d2bb4777be05e45d7808a5aa91d2a
Plugins
cloud_firestore_web-3.0.4
firebase_auth-4.1.1
firebase_auth_web-5.1.1
firebase_core-2.1.1
firebase_core_web-2.0.1
path_provider-2.0.11
path_provider_android-2.0.22
path_provider_ios-2.0.11
path_provider_linux-2.1.7
path_provider_macos-2.0.6
path_provider_windows-2.1.3

Closing this as a duplicate of https://github.com/flutter/flutter/issues/66224


Fix ExampleId parameter type

This change attempts to fix some error cases related to issue 18041 https://github.com/Azure/azure-sdk-for-net/issues/18041
Data Plane API - Pull Request
This is a followup to PR 12896 https://github.com/Azure/azure-rest-api-specs/pull/12896 which partially attempted to change the type of ExampleId to long. Noticing that other LUIS methods fail in preview 4 with same error (PublishAsync) it was suspected there were more spots where ExampleId is defined as an int32.
API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.

Link to engagement record issue:

Is this review for (select one):

[ ] a private preview
[*] a public preview
[ ] GA release

Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified. Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.

Design Document:
Previous Open API Doc:
Updated paths:

❔Got questions? Need additional info?? We are here to help!

 Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

💬 Teams Channel
💌 email

Click here for links to tools, specs, guidelines & other good stuff
Tooling

Open API validation tools were run on this PR. Go here to see how to fix errors
Spectral Linting
Open API Hub

Guidelines & Specifications

Azure REST API Guidelines
OpenAPI Style Guidelines
Azure Breaking Change Policy

Helpful Links

Azure DevTools Wiki

Rationale: PublishAsync was unable to complete because we had an intent with no examples. The example had an ID larger than int32 so the app was unable to delete it due to the bug. Once I deleted that intent from the LUIS UI we were able to train and publish again.


Implement JDBC ResultSet.getStatement

Wasn't entirely sure how to handle the in-memory result set. It doesn't look like a Statement is present for that.  Open to suggestions.

@findepi Updated!  Let me know if you have any more comments.

CI failed -- https://github.com/prestosql/presto/issues/4973

Merged, thanks!


Add Delete button to Cluster list or Cluster Config

There is no way to delete an old cluster config.

Fixed by b93526313f2492fefeee30774518fd36f71ccef1


Out dated titles?

This content appears under TFS 2013. But I think it is still relevant to TFS 2018 & Azure Devops. Worth updating?

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

ID: b9f448dd-3246-389f-39dd-f12b885f8fb2
Version Independent ID: e05664ed-7a58-77d2-a27d-a28f938fa41f
Content: Use Visual Studio and Team Foundation Server with Git - Azure Repos
Content Source: docs/repos/git/overview-2013.md
Product: devops
GitHub Login: @steved0x
Microsoft Alias: sdanie

@philip-reed The updated version of that page is here - now that we have the version switcher for the documentation I could combine them, but just about everything in that 2013 version page should also be in this updated page? What part felt missing, and I can add it?

@steved0x Hi, This is the page I was referring to:
https://docs.microsoft.com/en-us/azure/devops/repos/git/overview-2013?view=tfs-2013&viewFallbackFrom=tfs-2018
After using the version switcher, there is a banner at the top of the page stating:
"The requested page is not available for Team Foundation Server 2018. You have been redirected to the newest product version this page is available for." Which is TFS2013.  Maybe it should redirect to the page you mentioned? Not sure, just thought the page was out of date when I saw references to 2013.

@philip-reed I'm sorry for the great delay. There is a newer version of that page (without -2013 in the filename here:
https://docs.microsoft.com/en-us/azure/devops/repos/git/overview?view=azure-devops
I'll see if I can set up a redirect or something instead of the experience that you are seeing.


feature request: method to reset spectrum on device

I am considering the RadiaCode 102 device as a replacement for older hardware in a physics lab course.
Low-level actions for students, control of data acquisition rely on your python-interface (thank you very much
for providing this").
I could not figure out how it is possible to reset spectrum (and dose) in the device - this is possible using the
Android or windows apps.  Is this also possible using the python library ?
If so, please tell me, if not , it would be nice to  implement this feature in a coming release.

Added in v0.2.1 - 2 new functions, please check.
p.s. how are you getting dose? It's in RareDate, this messages are really rare and I can't find a way to request it "right now".


add FAISS to env

Having a vector database would be useful for the competition. FAISS is a fairly popular option and has permissible license.

Hi @chrisjkuch, I added the tests. Let me know if it looks good, thanks!


how to integerating sharding and non-sharding transaction with xa

ss supports xa with sharding datasource，but in most time，we have other non-sharding tables，how to integerating them into a transaction with xa？

You can use Begin ... COMMIT around your sqls.
Like this:
BEGIN;
UPDATE TABLE non-sharding-table SET name = 'xiaoming' WHERE id = 1;
UPDATE TABLE sharding-table SET name = 'xiaoming' WHERE id = 1;
COMMIT;

For ss, we will treat these sqls as one transaction.

yes, we only support distributed transaction in sharding way. for none-sharing table I think you can config the default datasource in sharding-datasource, the XA transaction will also effective.

default datasource ? , ok, i should have a test . can ss open an api , developer can manually enlist non-sharding datasouce into sharding xa transaction

I think we can open the api after our pluginable-platform finished

close this issue for no response for more than 7 days


Prevent SQL Injection

I want  to prevent SQL Injection in Select Method without changing the algorithms being used.
async def select(self, column_name: str, limit: int = None, order_by: str = None, ascending: bool = True
                     , equal=None, like: str = None, between: tuple = None, distinct: bool = False, offset: int = None):
        """
        Select a column from the table.
        :param column_name: The column name.
        :type column_name: str
        :param limit:
        :rtype: int
        :param order_by:
        :rtype: str
        :param ascending:
        :rtype: bool
        :param equal:
        :param like:
        :rtype: str
        :param distinct:
        :rtype: bool
        :param between:
        :rtype: tuple
        :param offset:
        :rtype: int
        :return: The list.
        :rtype: list
        """
        async with aiosqlite.connect(self.database_name) as db:
            async with db.cursor() as cursor:

                query = f"SELECT {column_name} FROM {self.table_name}"
                condition = False
                if distinct is True:
                    query = f"SELECT DISTINCT {column_name} FROM {self.table_name}"
                if equal is not None and condition is False:
                    condition = True
                    query += f" WHERE {column_name} = '{equal}'"
                elif equal is not None and condition is True:
                    query += f" AND {column_name} = '{equal}'"

                if like is not None and condition is False:
                    condition = True
                    query += f" WHERE {column_name} LIKE '%{like}%'"
                elif like is not None and condition is True:
                    query += f" AND {column_name} LIKE '%{like}%'"
                if between is not None and condition is False:
                    condition = True
                    query += f" WHERE {column_name} BETWEEN {range(between[0], between[1]).start} AND {range(between[0], between[1]).stop}"
                elif between is not None and condition is True:
                    query += f" AND {column_name} BETWEEN {range(between[0], between[1]).start} AND {range(between[0], between[1]).stop}"
                if order_by is not None:
                    query += f" ORDER BY {order_by}"
                if ascending is False:
                    query += f" DESC"
                else:
                    query += f""
                if limit is not None:
                    query += f" LIMIT {limit}"
                if offset is not None and limit is not None:
                    query += f" OFFSET {offset}"
                elif offset is not None and limit is None:
                    raise Exception("You can't use kwarg 'offset' without kwarg 'limit'")
                getValues = await cursor.execute(query)
                values = await getValues.fetchall()
                my_list = []

                def isfloat(num):
                    try:
                        float(num)
                        return True
                    except ValueError:
                        return False

                for i in values:
                    i = str(i)
                    i = i[1:-2]  # Remove round brackets in i
                    # Check the type of i
                    if i.isnumeric():
                        my_list.append(int(i))
                    elif isfloat(i):
                        my_list.append(float(i))
                    elif i == 'None' or i is None:
                        my_list.append(i)
                    elif i.startswith("'[") or i.startswith("'{") or i.startswith("'("):
                        i = eval(i)
                        my_list.append(eval(i))
                    elif i.isascii():
                        i = i[1:-1]
                        my_list.append(i)
                    else:
                        my_list.append(i)

                return my_list

i vote for this one ^

https://github.com/sabrysm/aiosqlitedict/blob/261df639d0b69c181fb1a303bed41671fe0134a8/src/aiosqlitedict/database.py#L136-L245
I believe in the current version of the repo this issue is fixed with the use of the ? syntax and the parameters in the cursor.execute query, right?
https://github.com/sabrysm/aiosqlitedict/blob/261df639d0b69c181fb1a303bed41671fe0134a8/src/aiosqlitedict/database.py#L212


Set akka remoting port to 0

This fix sets akka remoting port to 0, so that it's automatically
assigned - this way it won't collide with port 2552 used by
akkademy-db. We are the client so we don't care what port we
are listening on.

thanks!


Device not working properly in HomeKit

Describe the bug
For some reason it shows with black color in HomeKit and color temperature selector are red. Can't change both parameters in HomeKit.
Expected behavior
Both params should be visible and adjustable in HomeKit
Your config.json
                {
                    "name": "Desk Lamp",
                    "ip": "192.168.....",
                    "token": "*********",
                    "deviceId": "11231231231",
                    "model": "philips.light.candle2",
                    "pollingInterval": 3600,
                    "deepDebugLog": false,
                    "micloud": {
                        "username": "",
                        "password": "",
                        "country": "cn",
                        "forceMiCloud": true
                    },
                    "buzzerControl": false,
                    "ledControl": false,
                    "childLockControl": false,
                    "modeControl": false
                }

Debug log
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Initializing device services
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Device services: [
  "light"
]
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Initializing device properties
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Device properties: [
  "light:on",
  "light:brightness",
  "light:color-temperature"
]
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Initializing device actions
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Successfully created a Light device! It is a Xiaomi Philips Zhirui Candle Light Bulb (Crystal Version).
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Initializing accessory!
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Accessory successfully initialized!
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Registering 1 accessories!
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Everything looks good! Initiating property polling!
[24/10/2023, 00:40:54] [miot] [Desk Lamp] Log in to MiCloud!
[24/10/2023, 00:40:57] [miot] [Desk Lamp] Successfully connected to MiCloud! Setting up miot device from MiCloud connection!
[24/10/2023, 00:40:58] [miot] [Desk Lamp] Connected to device: philips.light.candle2
[24/10/2023, 00:40:58] [miot] [Desk Lamp] Doing initial property fetch.
[24/10/2023, 00:41:00] [miot] [Desk Lamp] Starting property polling.

Screenshots

Additional context
Device history https://github.com/merdok/homebridge-miot/issues/198
I've tried to manually update device model with philips.light.bulb and it works fine after.
I've tried to force MiCloud connection and disable it - doesn't help.

Probably during auto property detection something is going wrong for your device. Would need to check that...

Oh but in the other bug it was confirmed working so not sure why do you see it like that... will check it out

Sorry, philips.light.bulb shows ok in HomeKit but doesn't work too!

What does the debug log say?

I've enabled deep debug log but there is nothing in Homebridge console about this lamp on any Home App interactions. Also  it's acting wired - for example it was at 10% brightness and I set 20%. In home App it will move the slider to 20%, pause a second, move it back to 10%, pause again and move it to 20% finally. Same way with toggle.

You have to start homebridge in debug mode to see any log. Without that deep debug log will not work.
Sounds like the connection to the lamp is quite slow, that might cause the effect.


config file is not copied into /sites-enabled folder

Hey,
Just read the Dockerfile and found that the hardcoded apache config file in the Dockerfile is written into the config file in etc/apache2//sites-available instead of copying it into the /etc/apache2/sites-enabled/ folder in the container. Does it mean Docker will pick the config file from the /sites-available folder?
Cheers
Frank

Hello Frank,
It does not need to.
If you take a look at /etc/apache2/sites-enabled/ you'll see a symlink pointing to the /etc/apache2/sites-available/

Got it, thanks Jean!


Tower of Hanoi in Java

Hey. This is my code to solve the Tower of Hanoi using Java (issue number #828). Please merge this PR. This will be my first PR. Thanks!

@khusheekapoor I am a beginner as well....This is a community where we help each other grow and learn new things everyday :)

@raksha009 Are any more changes required? If not, could you please merge my PR? Eagerly waiting!

Plz go through the guidelines and link the appropriate folder.

Plz go through pinned issues and guidelines!

Plz go through the guidelines and link the appropriate folder.

Plz go through pinned issues and guidelines!

Plz go through the guidelines and link the appropriate folder.

Plz go through pinned issues and guidelines!

@raksha009 I have proposed changes in the algorithms -> recursion -> tower of hanoi in java.
What else should I do?

@raksha009 I have proposed changes in the algorithms -> recursion -> tower of hanoi in java.
What else should I do?

Dear, your changes aren't reflected here. Have a look at the files changed. It shows only yr code is added but not the updated readme of recursion.

@raksha009 I have proposed changes in the algorithms -> recursion -> tower of hanoi in java.
What else should I do?

Dear, your changes aren't reflected here. Have a look at the files changed. It shows only yr code is added but not the updated readme of recursion.

@raksha009 , am I on the correct page now?

Also, @raksha009 how do I squash my commits (is it required?)

Hey @raksha009 I have made the changes. Please review further. Thanks!


introduce new test run status: scheduled

to track regression status in run-time and be able to show % of the planned regression new feature is needed:

new test run status - SCHEDULED

new end-point for schedule/add to CI queue new job/test run
-> it should register new test run with status SCHEDULE and approx number of expected tests based on historical results (last 10 execution for current repo/suite/branch)

later test run should first of all look for scheduled test run and reuse it test_run_id for registration

introduced in zafira 3.1.10 #726 #722


Guide example does not compile due to cubecl update

Describe the bug
The examples/guide does not compile because of an updated parameter type in the cubecl dependency.
To Reproduce

cd examples/guide
cargo run --bin train --release

Expected behavior
The example compiles and runs.
Screenshots
Got multiple compile errors like this:
error[E0308]: mismatched types
--> crates/burn-jit/src/fusion/elemwise/kernel.rs:98:84
|
98 |                 let cube_count = calculate_cube_count_elemwise(num_elems / factor, self.cube_dim);
|                                  -----------------------------                     ^^^^^^^^^^^^^ expected usize, found CubeDim
|                                  |
|                                  arguments to this function are incorrect
|
note: function defined here
--> /home/sagemaker-user/.cargo/git/checkouts/cubecl-aa41a28b39b598f9/2b95a9e/crates/cubecl-core/src/lib.rs:55:8
|
55 | pub fn calculate_cube_count_elemwise<S: ComputeServer>(
|        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**Desktop (please complete the following information):**
 - OS: Ubuntu 22.04.4 LTS (in SageMaker Studio CodeEditor)
 - Browser: N/A
 - Version: N/A

**Additional context**
cubecl was updated 5 days ago: https://github.com/tracel-ai/cubecl/commit/367bd4c38ae16bb4660a60399bbb4a4c95e02755 with this breaking change. But a `cargo update cubecl` does not seem to fix it.

Root cause: https://github.com/tracel-ai/cubecl/issues/44

We fixed the problem by setting the correct version of burn: https://github.com/tracel-ai/burn/commit/eb9e8228322dc0a4e28da09bc4b483de401ab1e8
Since CubeCL is early we won't create a release for every breaking changes, only when publishing Burn, so that both project can evolve together.


Mysql "Deadlock" error caurse by .add(new_tag_name) function

My django model Student has tag fields.
When calling student.tags.add(tag_str) ,  if tag_str is one tag name that already exists, this call will success, but if this tag_str in one new tag name that never been used in my system before, this call will cause an 'Deadlock' error.
ERROR 14-05-01 08:25:09      ajax : save_student_tags
Traceback (most recent call last):
  File "/home/jifenzhong/project/dayi.im/dayi/note/ajax.py", line 32, in save_student_tags
    student.tags.add(tag_str)
  File "/usr/local/lib/python2.7/dist-packages/taggit/utils.py", line 128, in inner
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/taggit/managers.py", line 389, in add
    tag_objs.add(self.through.tag_model().objects.create(name=new_tag))
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 149, in create
    return self.get_query_set().create(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 416, in create
    obj.save(force_insert=True, using=self.db)
  File "/usr/local/lib/python2.7/dist-packages/taggit/models.py", line 40, in save
    res = super(TagBase, self).save(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 546, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 650, in save_base
    result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 215, in _insert
    return insert_query(self.model, objs, fields, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 1675, in insert_query
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 943, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 128, in execute
    six.reraise(utils.DatabaseError, utils.DatabaseError(*tuple(e.args)), sys.exc_info()[2])
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 120, in execute
    return self.cursor.execute(query, args)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
DatabaseError: (1213, 'Deadlock found when trying to get lock; try restarting transaction')

What should I do to avoid this and make adding new tag function successfully? Thanks

I'm going to have to agree that this feels like something else going on here. Closing this one for now


How can you run it constantly?

Hi @Almansio. I'll try and see if I can update the guide soon to cover this case. Thanks for reaching out. :+1:

@Almansio Sorry for the late reply. I had some problems with updating my Pi. Anyways. I think what you are looking for is to run BeoLightControl as a service.
Here you can see how: https://gist.github.com/emxsys/a507f3cad928e66f6410e7ac28e2990f
I tried it my self and created a service file called lightcontrol.service with the following content:
[Unit]
Description=BeoLightControl
After=multi-user.target

[Service]
Type=simple
WorkingDirectory=/home/pi/BeoLightControl
ExecStart=/usr/bin/python3 /home/pi/BeoLightControl/BeoLightControl.py -l
Restart=on-abort

[Install]
WantedBy=multi-user.target

Please remember to change the paths to where you downloaded BeoLightControl.
With this BeoLightControl will be loaded on every boot. Do remeber to stop the service and run the script manually if you want to change settings.
Hope it makes sense? otherwise let me know.

Hi Michael
I followed the steps and changed the paths to mine. Unfortunately i'm getting the following failure when executing the sudo systemctl status command. Below the complete description of the failure. Hope you can help me out :)
pi@homebridge:~/BeoLightControl $ sudo systemctl status lightcontrol.service
● lightcontrol.service - BeoLightControl
Loaded: loaded (/lib/systemd/system/lightcontrol.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-05-17 19:07:27 CEST; 20s ago
Process: 18047 ExecStart=/usr/bin/python /home/pi/BeoLightControl/BeoLightControl.py -1 (code=exited, status=1/FAILURE)
Main PID: 18047 (code=exited, status=1/FAILURE)
CPU: 518ms
May 17 19:07:27 homebridge python[18047]: Traceback (most recent call last):
May 17 19:07:27 homebridge python[18047]:   File "/home/pi/BeoLightControl/BeoLightControl.py", line 474, in
May 17 19:07:27 homebridge python[18047]:     beoLightControl.start(listner_mode)
May 17 19:07:27 homebridge python[18047]:   File "/home/pi/BeoLightControl/BeoLightControl.py", line 428, in start
May 17 19:07:27 homebridge python[18047]:     self.ui()
May 17 19:07:27 homebridge python[18047]:   File "/home/pi/BeoLightControl/BeoLightControl.py", line 374, in ui
May 17 19:07:27 homebridge python[18047]:     val = input("\nWhat do you want to do?\n1: Select product\n2: Select Light or Group\n3: Start/Stop listner\n4: Quit\n")
May 17 19:07:27 homebridge python[18047]: EOFError: EOF when reading a line
May 17 19:07:27 homebridge systemd[1]: lightcontrol.service: Main process exited, code=exited, status=1/FAILURE
May 17 19:07:27 homebridge systemd[1]: lightcontrol.service: Failed with result 'exit-code'.

Works like a charm!!!!! Many thanks!

Hi Micheal,
Don’t be sorry at all! Much appreciated for your input! I’m gone for a few days but when I’m back I will give at a try.
And again thank you for your thoughts!👊🏽
Op 25 apr. 2022 om 19:43 heeft Michael Jakobsen Højgaard @.***> het volgende geschreven:

@Almansio Sorry for the late reply. I had some problems with updating my Pi. Anyways. I think what you are looking for is to run BeoLightControl as a service.
Here you can see how: https://gist.github.com/emxsys/a507f3cad928e66f6410e7ac28e2990f
I tried it my self and created a service file called lightcontrol.service with the following content:
[Unit]
Description=BeoLightControl
After=multi-user.target
[Service]
Type=simple
WorkingDirectory=/home/pi/BeoLightControl
ExecStart=/usr/bin/python3 /home/pi/BeoLightControl/BeoLightControl.py -l
Restart=on-abort
[Install]
WantedBy=multi-user.target
Please remember to change the paths to where you downloaded BeoLightControl.
With this BeoLightControl will be loaded on every boot. Do remeber to stop the service and run the script manually if you want to change settings.
Hope it makes sense? otherwise let me know.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.

Hero! 😉
Op 20 apr. 2022 om 07:50 heeft Michael Jakobsen Højgaard @.***> het volgende geschreven:

Hi @Almansio. I'll try and see if I can update the guide soon to cover this case. Thanks for reaching out. 👍
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.


Fix Mac build

Mac build is failing. Fixing it. Also add mac build to Travis.

#41 Hello, I have fixed this.


Added ability to set the Jersey URL pattern in Application.run()

Before this commit, the only way to set the Jersey URL pattern was to
add it in the YAML configuration, under rootpath. This commit now
allows the following priority order for the Jersey URL pattern:

the YAML config
the value set in the applications run() block
the default value from DropwizardResourceConfig, which is /*

with this priority order, there should be no breaking changes for users
who have set the value in the YAML. it will now allow applications
to have this value hardcoded, making the YAML file simpler
fixes #1408

i rebased and forced-pushed. if that's an issue, i can try to undo the commits. please let me know.

Looks great! A couple of suggestions, but generally the change ready to merge.

This looks good.  Thank you for your contribution!

Thanks, @jmcampanini, for contribution and, @jplock, for reviewing and merging!

w00t! happy to help. looking forward to this getting released :)


simplify submit-code, remove macro

This PR removes a macro, and instead of re-fetching/calculating the timestamp, we just save it on the stack with swap/dup.
In my mind, this was simpler, but I guess it's a matter of perception. I think it is a bit less costly on gas, and fewer steps of execution.

Master:
[PASS] testHistoricalReads() (gas: 474756204)
[PASS] testRead() (gas: 16270)
[PASS] testReadBadCalldataSize() (gas: 8361)
[PASS] testReadWrongTimestamp() (gas: 7439)
[PASS] testRingBuffers() (gas: 499047671)
[PASS] testUpdate() (gas: 54274)

This PR:
[PASS] testHistoricalReads() (gas: 474723436)
[PASS] testRead() (gas: 16270)
[PASS] testReadBadCalldataSize() (gas: 8361)
[PASS] testReadWrongTimestamp() (gas: 7439)
[PASS] testRingBuffers() (gas: 499007671)
[PASS] testUpdate() (gas: 54270)

With this PR, testUpdate goes down 4 gas, and testHistoricalReads goes up 32k gas. That is odd, I need to look into that


fix: generalize HahnSeries.single_zero_one

Before this change, 0 was interpreted as a natural number.

Nicely spotted!
bors merge


Read PIE from sftp

Issue Number: N/A
Type

[x] feature
[ ] bugfix
[ ] dev (no functional changes, no API changes)
[ ] fmt (formatting, renaming)
[ ] build
[ ] docs
[ ] testing

Description
This PR adds some new code that encapsulates Herman's work on comparing two PIE's. It works like this:
There's a list of all PIE's present on the remote starkware sftp server. It goes line by line and concatenates the file name on the path provided when running, downloads the file (sftp doesn't allow streaming) and compares it to the snos PIE. The file is deleted at the end.
The logs are printed to a file name all_logs.log on result-logs subfolder. When the code has completed a cycle, it will write the logs for this execution to another file, named either SUCCESS or FAILURE followed by the pie name.
Currently, the paths are hard coded, so the cargo run command must be run on the root of the repo.
Breaking changes?

[ ] yes
[ ] no

@GMKrieger closed in favor of #414
As @notlesh a bash script was a better solution. Anyway, awesome job with this PR. Lets keep it up!!


⚠ Bofrost.fr has degraded performance

In e7e0d1e, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1160 ms

Resolved: Bofrost.fr performance has improved in 002cfa2.


PyBLOCK new version

Improvements:
The package structure was changed.
Improved installation with PYPI in just one command (pip3 install pybitblock)
This let you execute it in every part of the system typing "pyblock"
Updating it changed: pip3 install pybitblock -U
Problems:
When you install Pyblock with pip3, all config files will create in the folder you execute it.
For nodes like RaspiBlitz it will make this an issue.
Solutions:
RaspiBlitz could use just the information located in the pybitblock folder and continue using RaspiBlitz execution format like nothing happened.

OK PR #2811 merged. Update option was removed in change to new pip3 install. Can now directly started with raspiblitz-shortcut pyblock when installed. Setting to final testing for v1.7.2 release candidates.


Suggestion: Add Progress Displays

I think a very valuable and cool usages of shui would be to be able to open the AppleScript progress window via command line. This cannot be done using osascript commands since the progress window only works with a compiled applet. But, I'm suggesting that shui could handle that complexity and create an applet on the fly using osacompile and then launch the compiled app to display progress. If you made the code of this compiled applet flexible, shui could interact with it (adjusting progress bar a text displayed) by writing to a file that the progress app reads in a loop to update the progress. I think since this is something that cannot be done with osascript, it would make it an even more appealing feature for folks who are using shui because they don't want to get into having to deal with AppleScript and especially compiling AppleScript applets themselves.
Here is a super quick proof of concept one-liner which creates a headless applet and displays indeterminate progress for 10 seconds: rm -rf "${TMPDIR}Script Progress.app"; osacompile -e 'activate' -e 'set progress description to "10 Seconds of Progress"' -e 'delay 10' -o "${TMPDIR}Script Progress.app"; plutil -insert LSUIElement -bool true "${TMPDIR}Script Progress.app/Contents/Info.plist"; open -na "${TMPDIR}Script Progress.app"

If you do end up getting into this, you may run into the AppleScript progress bug in Big Sur and newer where indeterminate progress does not work after determinate progress has been shown (it just sits at 0 progress instead of animating).
Here is some example code showing that issue and a workaround via ObjC bridge to manually start the progress bar animation (this must be saved as an applet and run as an app to work):
use AppleScript version "2.4"
use scripting additions
use framework "Cocoa"

set progress description to "Testing Indeterminate Progress for 3 Seconds…"
set progress additional description to "This Works the First Time (BUT WON'T WORK THE SECOND TIME)…"
set progress total steps to -1

delay 3

set progress total steps to 5
set progress completed steps to 0
set progress description to "Now Doing Some Determinate Progress…"
set progress additional description to "0 of 5"
delay 1
repeat with thisStep from 1 to 5
    delay 1
    set progress completed steps to thisStep
    set progress additional description to (thisStep & " of 5")
end repeat
delay 2

set progress description to "Testing Indeterminate Progress Again…"
set progress additional description to "This DOES NOT Work the SECOND Time (Just Sits at 0 Progress)…"
set progress total steps to -1

delay 5

set progress additional description to "BUT, Indeterminate Progress CAN Work Again by Directly Calling \"NSProgressIndicator startAnimation\" via Cocoa…"

try
    repeat with thisWindow in (current application's NSApp's |windows|())
        if (thisWindow's isVisible() is true) then
            if (((thisWindow's title()) as string) is equal to (name of me)) then
                repeat with thisProgressWindowSubView in ((thisWindow's contentView())'s subviews())
                    if (((thisProgressWindowSubView's className()) as string) is equal to "NSProgressIndicator") then
                        (thisProgressWindowSubView's startAnimation:thisProgressWindowSubView)
                        exit repeat
                    end if
                end repeat
            end if
        end if
    end repeat
end try

delay 10

And, as is the way with AppleScript, there are few behavioral quirks to be aware of when using ObjC bridge by adding use framework "Cocoa" to your script: https://forum.latenightsw.com/t/scripting-additions-conflicting-with-cocoa/2315
And if you decide to write the progress app in JXA, I've got similar ObjC bridge code to modify the progress window in JXA that I could share with you.
Other nice things that can be done using this kind of technique to modify the progress window using ObjC bridge (in JXA or AppleScript) is to disable the Stop button, change the text of the Stop button, and disable or hide any of the standard window buttons.


veri: fix unused argument in variadic_binop

Follow-up to #88, where I forgot to remove the type ID argument to the
variadic_binop helper function.

This is fixed in #93 since the CI job treats warnings as errors.


janus-gateway  videoroom  demo

On the right is demo. Is this normal? If it's normal, how to achieve the effect on the left。

Hi @kqbi
I have never tried it in Windows, so not sure what is going wrong. It looks like it is failing the load all your GStreamer plugins (not sure why). What does the message after the path say?
Maybe if you do GST_DEBUG it could also have more information?

Resolving as stale.
@kqbi if I can be more help please re-open. thanks!


[Mod Update] Rocket Sound Enhancement - Default Configs

Mod info
Can the mod be renamed to "Rocket Sound Enhancement - Default"?
GitHub Repository has been moved to https://github.com/ensou04/RocketSoundEnhancementDefault

Mod name: Rocket Sound Enhancement - Default
Author(s): ensou04
License: CC-BY-NC-SA-4.0
Homepage: https://forum.kerbalspaceprogram.com/index.php?/topic/179579-wip110x-112x-rocket-sound-enhancement-v060-audio-framework-for-complex-sound-effects/
Download: https://github.com/ensou04/RocketSoundEnhancementDefault/releases/

Thanks for letting us know, should be updated for users within about 35 minutes.

thank you!

I just noticed the typo on ckan, it says "Rocket Sound Enhancment - Default"

Thanks, a fix for that is in c31c575df5d11e1a943840888d813ff59ccc2804 and working its way through the system, shouldn't be more tan 30 minutes.


Help output for new cf create-app-manifest doesn't name manifest file correctly

The help output for cf create-app-manifest indicates that the generated yml file will be named <app-name>-manifest.yml, but after testing the command the default file name is manifest_generated.yml.

This issue has been fixed in the newest version of CLI, manifest will be correctly named to -manifest.yml
Thanks


Sorting messages

Since no reaction on the forum. I post this here.
Presently I sort on the subject but within the same subject the individual lines are in reversed orden meaning the latest on top and the oldest bottom.
This makes reading a bit awkard.
Is there a way to sort so that within the same subject messages are sorted oldest first, newest last?

I am not sure I understand what is the issue. Can you add a screenshot or give the URL of an example feed ?

Presently one can sort on a single column. So either subject, date/time, and so one.
What I would like is sorting on 2 columns. First on subject and then (within subject) on date/time. This is especially usefull with forums because then messages will appear on correct sequentence within the same subject.

Op 8 jul. 2017, om 04:54 heeft Barijaona Ramaholimihaso<EMAIL_ADDRESS>het volgende geschreven:
I am not sure I understand what is the issue. Can you add a screenshot or give the URL of an example feed ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/ViennaRSS/vienna-rss/issues/807#issuecomment-313829067, or mute the thread https://github.com/notifications/unsubscribe-auth/AEk-XZcNuKP2mUlw8ifn5-kJfW1pCAtNks5sLu9JgaJpZM4MZHBo.

Does anyone know if this can be done in NSTableView? I don't think I have ever seen this. The request makes perfect sense though.

@Eitot Sorting on multiple columns is already there by default. You just sort in ascending order of precedence. Whenever there is a collision/equality in one column it will be resolved by the previous column/the one taking less precedence.

I meant whether NSTableView provides a user-controllable interface for this. Columns are usually sorted by clicking on the column's header row, but this only applies to a single column in the whole table view. I know that you can implement this in the model, but I have not seen an implementation, at least not in Apple's apps.

That’s what I was referring to, @Eitot: The property sortDescriptors of NSTableView is an NSArrayof NSSortDescriptorobjects. You set this up, from a user perspective, by first clicking the column header with the least precedence and then continuing on up to the column header who’s column has the highest precedence.
To implement support for this, which is already in place in the framework-supplied …Controller implementations, you fall back to the next NSSortDescriptor whenever a comparison for the higher level returns an NSComparisonResult of NSOrderedSame.


NaN is an invalid value for the marginLeft css style property.

Getting this warning:
warning.js:36 Warning: NaN is an invalid value for the marginLeft css style property. Check the render method of Switch.

get the same one when adding the labelWidth={200}property.
warning.js:44 Warning: `NaN` is an invalid value for the `width` css style property.
Check the render method of `Switch`.

have a same problem here.
anyone know how to fix this.?


govendor get k8s.io/client-go failed

when exec
govendor get k8s.io/client-go
I get following error:
can't load package: package k8s.io/client-go: no buildable Go source files in ~/go/src/k8s.io/client-go

Try govendor get k8s.io/client-go/kubernetes

@caesarxuchao this command download client-go to $GOPATH dir.
how to install client-go to my project's vendor dir?
thx

@inetkiller either follow up govendor get by govendor add to copy the dependency from your GOPATH into the vendor folder; or bypass GOPATH and use govendor fetch in the first place, which downloads dependencies directly into your vendor folder.

@inetkiller you might also want to prefer vendoring a stable branch or version tag as opposed to unstable master. Append @=<branch or tag specifier> to the govendor fetch line to achieve that.
Refer to the govendor README file for details.

@inetkiller  You should use ... like this:
$ govendor fetch k8s.io/client-go/...

I think this issue is resolved. If not, please reopen it.


[MM-36173] Fix spacing and opacity on descriptions for special mentions

Summary
The descriptions for Special Mentions in the autocomplete popup were not spaced correctly and were showing up with a higher opacity compared to other entries. This PR adds the same class used on the other entries to correct the spacing and opacity.
Ticket Link
https://mattermost.atlassian.net/browse/MM-36173
Screenshots

Release Note
NONE

@jgilliam17 This is for the upcoming Cloud release.

This can be cherry-picked to cloud branch.

/cherry-pick cloud

Cherry pick is scheduled.


[WIP] Add Microsoft.Extensions.DependencyInjection integration plugin

As discussed in #19, this PR adds the Microsoft.Extensions.DependencyInjection integration plugin taken from https://github.com/solidtoken/SpecFlow.DependencyInjection/commit/daa540946a7024cae2fbd7027deecc82eca30cb2.

[ ] migrate tests from the original plugin (but change them according to #72)
[ ] align the way this plugin works with how the Autofac plugin works (especially the different dependency scopes)
[ ] add documentation (usage, example, available plugins)
[ ] add entry to CHANGELOG

Hi @mbhoek,
Thank you for your great effort.
Could you kindly give an update?

@gasparnagy Status update: the plugin in this PR is a direct copy of my original plugin with the namespaces adjusted. As such, it works and is ready to be merged.
However I wanted to include (new) unit tests and align the way the plugin works with how the Autofac plugin handles Global/Feature/Scenario dependencies. This has been a long standing wish of mine, because I'm not completely satisfied with how the original plugin does Feature/Scenario dependencies. It would also introduce some breaking changes in how the plugin works, which make sense to do now because we're including it in Reqnroll for the first time.
Unfortunately this turned out into a complete rewrite of the plugin, which is taking a lot longer than expected (also due to limited time). I do like where it's heading though so I would like to keep working on it. I also understand that the community is getting anxious/is waiting for this plugin, so I would like to discuss what the best next step is.

How about a simple first pass that aligns with the current, and then the second version with the breaking changes?
Could have a common interface but different names so people can adopt when they have bandwidth

I guess that's a solution and maybe the preferred one for Reqnroll's progression.
@gasparnagy Are you okay with me submitting this PR without the unit tests and aligning with Autofac's scopes (i.e. the first two items on this PRs todo list)? I could then introduce the breaking changes for the v2 milestone you already created.

@mbhoek sure. let's include it without the bigger changes and we will add them later

Just to chip in, could you consider a shorter nuget package name? For example, lots of package authors use <name>.DependencyInjection
For example:
Xunit.DependencyInjection
Npgsql.DependencyInjection
EventFlow.DependencyInjection
RavenDB.DependencyInjection

and so on.

@robertcoltheart The naming here is really painful, because "DependencyInjection" is such a generic name, but the correct name is too long... We have discussed about it here and decided on this long name. In our case Reqnroll.DependencyInjection is quite misleading, because Reqnroll has its own dependency injection solution. I think there is no good solution here. Let's stick to the looooong name for now. 😟

@mbhoek I have fixed the merging problems and ported the docs from https://github.com/solidtoken/SpecFlow.DependencyInjection#usage. I will merge this PR now, as I would like to make a release. We can keep improving it of course. I have made some unit tests for the Autofac plugin (see https://github.com/reqnroll/Reqnroll/blob/main/Tests/Reqnroll.PluginTests/Autofac/AutofacPluginTests.cs), maybe based on that we can also make some for this. But let's keep that for another PR.
Thx for the contribution!

Thanks again for taking the time to take this across the finish line @gasparnagy -- wish I could've been more helpful, but glad that the plugin is now part of Reqnroll! 👍

Thanks to both of you, @gasparnagy any ETA for the nuget package?

@bhugot in a few hours...

Thank you @mbhoek and @gasparnagy


[mysql][bug]stage progress is not saving fast enough so that player move to other mysql sync server will have progress loss

What is your Quests version / build number (do not say "latest")?
Quests-4.1.3#290
paper 164 1.18.1
Describe the problem and how to replicate it.
Youtube video:
https://youtu.be/S4_AiS5DNSE
found a problem for quests data not saving/ data loss.
in the video, i took a mining quests which need to mine 8 type of ores by breaking them, i finished to the stage 2, and then i go to another quests database synced server, my progress is gone.
step:

take a quests , for my case, is break block , alot
finish the stage
go to another server with have synced quests sql databse

i also tried with other things like custom modules or item delivery stage, they works fine seems like, but still have bug as the title say. The data is saved but have delay caused some data loss sometimes 50%~ , but for the block break above is 100% loss in my case.
For the saving test, i tested by taking and finish a random delivery/custom module quests stage 1(lets say i am in server A), then immediately go to another database synced server(server B), sometimes, the stage stuck in stage 1 (server B) even i have finished stage one in another server (server A)
Any console errors to share?
no error

If applicable, can you provide an example quest from quests.yml?
quests in the video:
https://paste.denizenscript.com/View/92937

quests used to test stage saving( delivery/ custom)
https://paste.denizenscript.com/View/92938
https://paste.denizenscript.com/View/92939

As I recall stage progress is not saved unless the player logs out or someone uses /qa reload, so this would be expected behavior.

As I recall stage progress is not saved unless the player logs out or someone uses /qa reload, so this would be expected behavior.

errr... but the impact is too much for some cases, the entire finished stage progress is gone even is finished, which is sad for players.
anyway to prevent?

At a glance it looks like we would want to call Quester#saveData somewhere in
https://github.com/PikaMug/Quests/blob/7eaedf079f18589975036b41f1e25c6d14f5d9cd/core/src/main/java/me/blackvein/quests/Quest.java#L305
This would of course need to be tested thoroughly but the plugin is currently undergoing some significant changes in preparation of the next major release so I can't guarantee I'll have time soon.

At a glance it looks like we would want to call Quester#saveData somewhere in
https://github.com/PikaMug/Quests/blob/7eaedf079f18589975036b41f1e25c6d14f5d9cd/core/src/main/java/me/blackvein/quests/Quest.java#L305
This would of course need to be tested thoroughly but the plugin is currently undergoing some significant changes in preparation of the next major release so I can't guarantee I'll have time soon.

hi, i just remember something might be related.
mysql not syncing very fast should be a very command issue for plugin that need to be sync between servers, such as, MySQL playerdata bridge, it is almost 100% for server that use mysql sync to have this plugin.
There are plugin that sync instantly like marriagemaster because have partner inventory , but for mysqlplayerdatabridge, they have like a few mins also save/backup player data to database, but the most important part is that, it must safe correctly when player go offline from one sync server , fast enough ,and send data to another server , so that the item are transferred nicely. Mysql player databridge did it very well(although sometimes , a few player report item loss, but very rare).
I don't know how did their developer made it, but i am sure sometime must be able to done preventing data loss.

I'm not certain that speed is a concern for this particular issue, rather progress isn't saved when progressing stages at all. I've added this to the roadmap for 4.2.1 but again I need to find the time for testing.
It looks like the premium MySQL Player Data Bridge plugin offers integration with other resources. You might ask the developer if they would be willing to add a custom implementation for Quests. They would likely want to use https://github.com/PikaMug/Quests/tree/main/core/src/main/java/me/blackvein/quests/storage/implementation/custom

@hkkongou Had no issues in testing but still make sure to back up your server first.
https://ci.codemc.io/job/PikaMug/job/Quests/298/


Add Polar to Dev Tools

One-click Bitcoin Lightning networks for local app development & testing

Are the litecoin binaries that your project downloads in order to run c-lightning a required dependency in order to run c-lightning with your tool? Or could this be removed from your project to make it only support bitcoin and still work with c-lightning?
https://github.com/jamaljsr/polar/search?q=litecoin&unscoped_q=litecoin

Ah, I hadn't realised that, it's not my project, it's built by @jamaljsr.
I doubt he would want to remove that. I'd still consider it worthwhile listing on the site, it's a great dev resource and it's definitely "Bitcoin focused".
I guess LTC would be useful for developing LN based cross chain atomic swaps.
But yeah, I hadn't realised it wasn't strictly "Bitcoin only" so understand if you guys don't wanna list it.

@lukechilds thanks for suggesting to add Polar to the list here. 👍
@pardus79 the Dockerfile in the Polar repo is just a copy of the Dockerfile from the c-lightning repo with a few minor tweaks to make it functional with Polar. See https://github.com/ElementsProject/lightning/blob/master/Dockerfile. The only thing it does is download and install the litecoin-cli binary into the docker container. c-lightning needs this "if" a user were to decide to use c-lightning on the litecoin chain. I didn't take this portion out because I'd like to keep the Dockerfile closely synced with the original course. The litecoin-cli binary is never executed when using Polar. It is not even possible to use it because Polar does not support litecoind backend nodes.
FYI: I personally am only interested in building tools for Bitcoin.

Many well respected Bitcoin projects such as BTCPay and Bisq are disqualified from being listed on Bitcoin-Only.com because they support altcoins. I'm afraid if your project supports Litecoin then it is also not eligible.

Fair enough. I can always remove the litecoin binary in the future and resubmit to this repo, if this is the only issue.

Sounds good to me, let us know when you remove it :)


etcd from inside container blocked

My docker logs show
2015-01-03T23:34:55Z 479b278d606a confd[35]: ERROR cannot connect to etcd cluster: <IP_ADDRESS>:4001
[nginx] waiting for confd to refresh nginx.conf
...
It looks like etcd is not accessible from inside the container:
root@2ccc689b0175:/# curl -L http://k8s-abc-master:4001/version
curl: (7) Failed to connect to k8s-abc-master port 4001: Connection refused
On the GCE nodes, this works fine
curl -L http://k8s-abc-master:4001/version
etcd 0.4.6
Am I missing something?

What is k8s-abc-master pointing too ?     most likely that hostname is not being resolved from inside the container, find out the hosts ip address from within container.


schema.xml refers to non-existant class

see here

It should be in the jar file. And the implementation should be in the tokenizer branch.  However, since we refactor the code to favor the command.line version, where the tokenizer won't fit in the same source code as it has to be a solr plugin, we might want to create another repository to host the tokenizer code. I'll follow up with this, but please reopen the issue this is a blocker to get the seqr.commandline version to work.

Yes I realized this is what was happening. It's a bit sneaky because the jar file shares a file structure with that project.
Do you think the tokenizer code is a good candidate for BioSolr?  If not, we are working on extending solr as well #44 VDBWRAIR/bio_pieces/#62, maybe we I can pull out some stuff that would fit into a cohesive plugin with the tokenizer stuff.

Right, ideally we should spin off that code as the tokenizer code was loaded by solr, not seqr.cmd directly. I meet with Lewis last week on this topic, and it would be easier and less confusing to create another git repository( will check with Lewis,  and Sameer, the lead of BioSolr, if needed).
-lianyi
From: Mike Panciera<EMAIL_ADDRESS>Sent: Thursday, September 17, 2015 2:35 PM
To: NCBI-Hackathons/seqr<EMAIL_ADDRESS>Cc: Han, Lianyi (NIH/NLM/NCBI) [C]<EMAIL_ADDRESS>Subject: Re: [seqr] schema.xml refers to non-existant class (#43)
Yes I realized this is what was happening. It's a bit sneaky because the jar file shares a file structure with that project.
Do you think the tokenizer code is a good candidate for BioSolr?  If not, we are working on extending solr as well #44https://github.com/NCBI-Hackathons/seqr/issues/44 VDBWRAIR/bio_pieces/#62, maybe we I can pull out some stuff that would fit into a cohesive plugin with the tokenizer stuff.
—
Reply to this email directly or view it on GitHubhttps://github.com/NCBI-Hackathons/seqr/issues/43#issuecomment-141180707.