Failure to install on 2.7 due to Unicode in metadata

Updating cache with response from "https://pypi.python.org/packages/71/81/00184643e5a10a456b4118fc12c96780823adb8ed974eb2289f29703b29b/pypandoc-1.4.tar.gz"
  Caching due to etag
  Running setup.py (path:/tmp/pip-build-NLObzp/pypandoc/setup.py) egg_info for package pypandoc
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/pypandoc.egg-info
    writing requirements to pip-egg-info/pypandoc.egg-info/requires.txt
    writing pip-egg-info/pypandoc.egg-info/PKG-INFO
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-NLObzp/pypandoc/setup.py", line 116, in <module>
        cmdclass=cmd_classes
      File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/opt/python/2.7.14/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/opt/python/2.7.14/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/opt/python/2.7.14/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 271, in run
        writer(self, ep.name, os.path.join(self.egg_info, ep.name))
      File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 604, in write_pkg_info
        metadata.write_pkg_info(cmd.egg_info)
      File "/opt/python/2.7.14/lib/python2.7/distutils/dist.py", line 1106, in write_pkg_info
        self.write_pkg_file(pkg_info)
      File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/setuptools/dist.py", line 76, in write_pkg_file
        file.write('%s: %s\n' % (field, attr_val))
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 17: ordinal not in range(128)
Cleaning up...
Exception information:
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepare_file
    abstract_dist.prep_for_dist()
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/req/req_install.py", line 439, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NLObzp/pypandoc/

I tried to workaround in https://github.com/bebraw/pypandoc/pull/156

Can you test with the latest master?

No response, closing


checkpoint of the model trained LVISv0.5 + COCO dataset

Hi, I wonder can you provide the checkpoint of the model trained on LVISv0.5 + COCO dataset? many thanks.

Thanks. For fintuning on TAO, we freezed the detection parts and only train the track head. Thus, you can download the weights in the repo and drop track head part to get the model that you want.

Thanks. For fintuning on TAO, we freezed the detection parts and only train the track head. Thus, you can download the weights in the repo and drop track head part to get the model that you want.

Thanks for your reply. I understand that the track head will also be trained in the training on LVISv0.5 + COCO dataset, which take the key frame itself as its ref frame (according to https://github.com/SysCV/tet/blob/2c18172607d6fc526083c67d93e80104fdc98577/configs/tao/cem_r101_lvis.py#L31). Thus the weights in the repo with the track head part dropped  are not the weights I want.


[enhancement](execute model) using thread pool to execute report or join task instead of staring too many thread

Proposed changes
0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /root/doris/be/src/common/signal_handler.h:420
1# os::Linux::chained_handler(int, siginfo*, void*) in /usr/local/jdk1.8.0_301/jre/lib/amd64/server/libjvm.so
2# JVM_handle_linux_signal in /usr/local/jdk1.8.0_301/jre/lib/amd64/server/libjvm.so
3# signalHandler(int, siginfo*, void*) in /usr/local/jdk1.8.0_301/jre/lib/amd64/server/libjvm.so
4# 0x00007F6498457400 in /lib64/libc.so.6
5# je_large_prof_tctx_get at ../src/large.c:374
6# je_free_default at ../src/jemalloc.c:2790
7# __GI__dl_deallocate_tls in /lib64/ld-linux-x86-64.so.2
8# __free_stacks in /lib64/libpthread.so.0
9# __deallocate_stack in /lib64/libpthread.so.0
10# pthread_join in /lib64/libpthread.so.0
11# std::thread::join() in /opt/doris/doris/be/lib/doris_be
12# doris::PlanFragmentExecutor::open_vectorized_internal() at /root/doris/be/src/runtime/plan_fragment_executor.cpp:338
13# doris::PlanFragmentExecutor::open() at /root/doris/be/src/runtime/plan_fragment_executor.cpp:253
14# doris::FragmentExecState::execute() at /root/doris/be/src/runtime/fragment_mgr.cpp:251
15# doris::FragmentMgr::_exec_actual(std::shared_ptrdoris::FragmentExecState, std::function<void (doris::PlanFragmentExecutor*)>) at /root/doris/be/src/runtime/fragment_mgr.cpp:498
16# std::_Function_handler<void (), doris::FragmentMgr::exec_plan_fragment(doris::TExecPlanFragmentParams const&, std::function<void (doris::PlanFragmentExecutor*)>)::{lambda()#1}>::_M_invoke(std::_Any_data const&) at /var/local/ldb-toolchain/include/c++/11/bits/std_function.h:291
17# doris::ThreadPool::dispatch_thread() at /root/doris/be/src/util/threadpool.cpp:542
18# doris::Thread::supervise_thread(void*) at /root/doris/be/src/util/thread.cpp:455
19# start_thread in /lib64/libpthread.so.0
Problem summary
Doris will start report thread and join thread during fragment execution. There are many problems if create and destroy thread very frequently.  Jemalloc may not behave very well, it may crashed.
https://github.com/jemalloc/jemalloc/pull/1405
It is better to using thread pool to do these tasks.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run ut

run buildall


Adding mxnet slack and apache email list details

Adding How To for joining mxnet apache mailing list and slack channel details.
@madjam @mli @piiswrong - Can we review and merge this changes? This is an urgent requirement from Dominic to present in ApacheCon

our slack allows anyone has an apache.org email to join in without approve.

please file another PR to address my comment

Fixing the comments in separate PR - https://github.com/dmlc/mxnet/pull/6279


HTTP target url status code

Hello
Is possible to detect non 200 status of the requested URL page when use chromium processer ?
$response = Gotenberg::send($pdf);
$response->getStatusCode() // Get the API status code, not the URL used to generate pdf file

Thanks

Do you mean the status code of the web page you're trying to generate? It is not possible atm.
You might use failOnConsoleExceptions as a workaround: https://github.com/gotenberg/gotenberg-php#fail-on-console-exceptions.

How can I use this "failOnConsoleExceptions" parameter in form data call from axios in node.js?
I am invoking the https://.../forms/chromium/convert/url URL and so far I have
const formData = new FormData();
formData.append("url", url, textPlainHeader);
formData.append("failOnConsoleExceptions", "true", textPlainHeader);

but it does not seem to work. Thanks!

We are going to try to use gotenberg to generate PDFs for many pages in our system.
The issue we have seen is that there will be failures (401, 50x) and the PDF generation returns a 200 with an PDF of the error page.
Going to look into the failOnConsoleExceptions, but just adding context that this would be very helpful addition.

Closing this in favor of #613.


Update Integration Specification with clarifying language

Add language explaining that SoC is responsible for initializing SRAM to 0 during a powergood cycle.
Update language around PAUSER integration requirements in table.
Add clarity to requirements for GENERIC_INPUT_WIRES stating that unused bits must be tied to 0.

minor (ok if out of scope): could lowercase "threat" in "Caliptra Threat model" to align with most of the usage in the table

Went ahead and made this change, thanks

This PR is ready to complete - @andreslagarcavilla  or @bharatpillilli, can you merge when we have the requisite reviews?


viewmodel based navigation as first class citzen for all platforms

Our routing is something that should be overhauled in the future. It is far too prescriptive and platform-specific. ReactiveUI should really provide a general routing mechanism that cares not about how you manifest it in the view. All that logic should be written _once_ (instead of per platform like we have now) and shared with simple shims to integrate at the UI level.
This is a great opportunity to look around and see how others are doing it. @rid00z has mentioned over beers he has suggestions from implementing this type of logic as part of his framework FreshMvvm.
Additionally MvvmCross has the notion of handling this behavior via Presenters

http://gregshackles.com/presenters-in-mvvmcross-a-primer/
http://gregshackles.com/presenters-in-mvvmcross-navigating-android-with-fragments/

@jcmm33's team has done a significant amount of work on-top of ReactiveUI and have implemented their own presenter solution. Maybe this is a chance to use this implementation as the golden standard and off-load the burden from his team of having to maintain their own.
Suggested leads for this topic are @jcmm33, @rid00z, @codemillmatt and of course @kentcb / @flagbug

Our approach in this area is something that has evolved over quite a while, but it is something that we are now quite happy with in principle, with the occasional tweak as to how we do things.
We started out by pretty much taking the MvvmCross approach namely providing a ViewModelType along with parameter values for the view model and presentation information.
It should however be noted at this point that we operate a convention whereby ViewModel constructors (for presented/navigated ones anyway) don't vary dependant upon the parameters/values required for that view model to work. e.g. if it were a view model showing a users details, then a specific users details wouldn't be provided in the constructor but instead the service/controller/manager capable of looking up a users details would. The actual specific user details would be provided through either view model initialisation (a topic on its own) or say through other method calls/properties on the view model.
e.g.
public class UserDetailsViewModel:RxViewModel
{
    public UserDetailsViewModel(IUserController userController)
    {
    }

    public void Present(Guid userId)
    {
    }
}

It should also be noted that by taking this approach serialization of view models for suspend/resume scenarios becomes very easy to do.
The MvvmCross details on navigation can be seen here in more detail https://github.com/MvvmCross/MvvmCross/wiki/ViewModel--to-ViewModel-navigation
As with MvvmCross we allow for custom presenters to be used instead of the standard ones.
Moving on from this, we started, as a pattern providing simplistic static methods on the appropriate viewmodels to create the presentation request instead of having view models littered with untyped parameters being provided e.g.
public class UserDetailsViewModel:RxViewModel
{
...
public static ViewModelPresentRequest CreateViewRequest(Guid userId)
{
...
}

The underlying presenter is still the same, its just how the parameters are constructed for the presenter.
One final change (we have been doing as of late) is injecting a fully typed presenter into the view models instead. So, instead of constructing a view model request we simply go things like:
ShowAll = ReactiveCommand.CreateAsyncObservable(_ => presenter.ShowSearchResultsFor( _searchInstance, _travelLimit));

Once again, all this presenter does is invoke the appropriate methods to create the view model request and pass it on, but it does provide a clean separation and allows for easy mocking up of presentation services.
Our intention has always been to make all of our work available on github once we are fully happy with it.  This is still the case.
It should be noted that this is a highly opinionated framework/library in its approach and the 3rd party libraries used.  Our approach has always been to improve delivery and code reliability, not provide some abstract framework which can be mixed and matched at will, so libraries like Autofac and AutoMapper are used heavily and our solution currently depends on these frameworks (especially Autofac) to function.

Warning, possibly dumb question from clueless newbie:
Does @thedillonb have some presenter stuff in CodeHub that is worth mentioning here?
Despite encountering advice from @paulcbetts about using "view first" on iOS/Android, I am investigating ways of using viewmodel based navigation with ReactiveUI for a Xamarin app.
One possibility is to use MvvmCross for the navigation stuff while using ReactiveUI for binding and commands and FRP goodness.
But studying the CodeHub code is, er, interesting.
His BaseViewModel class has a method called NavigateTo()
https://github.com/thedillonb/CodeHub/blob/master/CodeHub.Core/ViewModels/BaseViewModel.cs#L21
In the iOS code, I see stuff like this:
https://github.com/thedillonb/CodeHub/blob/master/CodeHub.iOS/ViewControllers/BaseViewController.cs#L49
These things make me curious.  But maybe that's because I've only been looking at ReactiveUI for a few days.

@ericsink, I tried to model CodeHub's VM first paradigm around delegation to the current view. If you've ever looked at other solutions, like MVVMCross, you'll notice that it uses VM first delegation  to a common "presenter" which I took as inspiration but found it incredibly limiting since you end up with a big switch statement in a "presenter" class. I believe the more robust way is to simply delegate to the current view on how it wants to present it's child views - thats what you see at https://github.com/thedillonb/CodeHub/blob/master/CodeHub.iOS/ViewControllers/BaseViewController.cs#L49. Delegation to the current view means there's no big switch block and it ends up being extremely simple to test and utilize in other platforms.
That being said, it's just my simple, off-the-top-of-my-head solution which may not work for everyone, but happened to work pretty well in CodeHub.


Rewrite the LogStore component of raft (#177)

The functions of raft's LogStore are implemented in two ways: InMemory and BoltDB. The configuration of the implementation can be done through a text-based configuration.
#177

Very efficient! Perhaps we can try FlyDB as a raft log storage, after all, after benchmark testing, we found that FlyDB has better read and write performance than some common key value DBs!

However, a more common one is rocksdb, which may also require support for

@sjcsjc123 I've added FlyDB as well;

@sjcsjc123 added 'FlyDB' and RocksDB integration; please check.

Hello, our organization has sent you an invitation letter. Please check it carefully!


Import existing site db

I have some revisions to do on an existing site, and would like to replicate it on localhost.
When logged in using the Default WordPress admin credentials (Username: admin, Password: password), PHPmyadmin shows "No Privileges", so I'm not sure how to import my legacy db dump.

If you do not need what is currently inside the database then you could destroy the DB container and let it rebuild with a fresh one with your .sql file. See here in the Initialising a fresh instance section: https://hub.docker.com/_/mysql/

@Dave-Lindberg ,
When logging into PHPMyAdmin, you need to use the MySQL username and password, which by default are wordpress/password, not the WP-Admin username and password.

Just noting that you can log in to phpMyAdmin with root / password , which allows you to create additional databases whereas logging in with the wordpress username does not give you the correct privileges to do that.


To create an Azure AD v2 application

Under Application Secrets, click Generate New Password  : this is already been done when creating the bot in azure. or do we need to create another New Password

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

ID: 60d80e0b-f1b7-175b-128d-0fb12f17ae36
Version Independent ID: 1ed9006a-bf0b-9aaa-d180-9d2cb0c09524
Content: Add authentication to your bot via Azure Bot Service - Bot Service
Content Source: articles/bot-builder-tutorial-authentication.md
Product: bot-framework
GitHub Login: @JonathanFingold
Microsoft Alias: JonathanFingold

The generated password can be retrieved from the resource group Deployments, as described here: https://blog.botframework.com/2018/07/03/find-your-azure-bots-appid-and-appsecret/

Thank you for taking the time to share your product and documentation feedback with us. Your input is valued because it helps us create the right documentation for our customers.
Due to the volume of issues in our queue, our policy is to close issues that have been inactive for the last 90 days. We hope to continue hearing from you.
Thank you.


[HUDI-4966] Add a partition extractor to handle partition values with slashes

Change Logs
This PR fixes the issue reported in #6281.
For Deltastreamer, when using TimestampBasedKeyGenerator with the customized output dateformat (hoodie.deltastreamer.keygen.timebased.output.dateformat) of partition path containing slashes, e.g., "yyyy/MM/dd", and hive-style partitioning disabled (by default), the meta sync fails.  Relevant key generator configs are:
--hoodie-conf hoodie.datasource.write.partitionpath.field=createdDate
--hoodie-conf hoodie.datasource.write.keygenerator.class=org.apache.hudi.keygen.TimestampBasedKeyGenerator
--hoodie-conf hoodie.deltastreamer.keygen.timebased.timezone=GMT
--hoodie-conf hoodie.deltastreamer.keygen.timebased.output.dateformat=yyyy/MM/dd
--hoodie-conf hoodie.deltastreamer.keygen.timebased.timestamp.type=EPOCHMILLISECONDS

Hive Sync exception:
Caused by: org.apache.hudi.hive.HoodieHiveSyncException: Failed to sync partitions for table test_table
...
Caused by: org.apache.hudi.hive.HoodieHiveSyncException: default.test_table add partition failed
...
Caused by: MetaException(message:Invalid partition key & values; keys [createddate, ], values [2022, 10, 02, ])
    at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$add_partitions_req_result$add_partitions_req_resultStandardScheme.read(ThriftHiveMetastore.java)
...

Glue Sync exception:
Exception in thread "main" org.apache.hudi.exception.HoodieException: Could not sync using the meta sync class org.apache.hudi.aws.sync.AwsGlueCatalogSyncTool
...
Caused by: org.apache.hudi.aws.sync.HoodieGlueSyncException: Fail to add partitions to default.test_table
	at org.apache.hudi.aws.sync.AWSGlueCatalogSyncClient.addPartitionsToTable(AWSGlueCatalogSyncClient.java:147)
...
Caused by: org.apache.hudi.com.amazonaws.services.glue.model.InvalidInputException: The number of partition keys do not match the number of partition values (Service: AWSGlue; Status Code: 400; Error Code: InvalidInputException; Request ID: <>; Proxy: null)
	at org.apache.hudi.com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1819)
...

The exception is thrown because the partition values for meta sync are not properly extracted.  In the current logic, "hoodie.datasource.hive_sync.partition_extractor_class" determines the partition extractor to use and in such a case, the MultiPartKeysValueExtractor is inferred to be used.  The root cause is that this extractor splits the parts by slashes, i.e., 2022/10/02 -> [2022, 10, 02], instead of treating it as a single value, as there is only one partition column.  In general, if user specifies the output dateformat to contain slashes, that fails the extraction.
This PR fixes the problem by introducing a new partition extractor, SinglePartPartitionValueExtractor, so that we treat the partition value as a whole when there is only a single partition column, instead of relying on MultiPartKeysValueExtractor.  The slash (/) is replaced by dash (-), as slashes are encoded by default, making it inconvenient for querying.
Impact
Risk level: low
The fix is tested locally with Hive sync and on EMR with Glue Sync.  Before this fix, the meta sync fails.  After the fix, the meta sync succeeds.  The correct partitions can be shown: beeline (with show partitions test_table;) in Hive and Glue web UI for Glue Data Catalog.
Documentation Update
We need to improve the docs for meta sync with TimestampBasedKeyGenerator.  Docs update is tracked in HUDI-4967.
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

@yihua thanks for looking into this. I think the user's problem can also be resolved by using SlashEncodedDayPartitionValueExtractor ? probably need to follow the migration guide

If the date output format is “yyyy/MM/dd”, yes.  But we should also allow user to specify any format, e.g., “yyyyMM/dd/HH” or “MM/dd/yyyy”, which don’t have any corresponding partition extractor that works.  The new partition extractor addresses this problem.  Even for “yyyy/MM/dd”, there is no need to specify extractor after the fix.


Will make a beautiful navbar for this website

Issue Type:
Sir i wanted to make a navbar for this website @arpit456jain . Without good navbar. website doesnt look nice.
I

Sir I would like to work on this issue. I will create beautiful navbar for this website. kindly assign this issue to me.


Rxjs Errors with Angular 6x

Since I liked it so much in Angular 4-5, I was attempting to use this package (v1.1.0) with Angular 6x (core: ^6.0.3, cli: ~6.0.8, rxjs: ^6.0.0). I got the following:
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'rxjs/Observable' in 'E:\MyProject\node_modules\angular-logger2\node_modules\@angular\core\esm5'
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'rxjs/Subject' in 'E:\MyProject\node_modules\angular-logger2\node_modules\@angular\core\esm5'
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'rxjs/Subscription' in 'E:\MyProject\node_modules\angular-logger2\node_modules\@angular\core\esm5'
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'rxjs/observable/merge' in 'E:\MyProject\node_modules\angular-logger2\node_modules\@angular\core\esm5'
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve 'rxjs/operator/share' in 'E:\MyProject\node_modules\angular-logger2\node_modules\@angular\core\esm5'

Here is what I saw in my package-lock.json file:
    "angular-logger2": {
      "version": "1.1.0",
      "resolved": "https://registry.npmjs.org/angular-logger2/-/angular-logger2-1.1.0.tgz",
      "integrity": "sha512-LqYkkEuNDQC0hVTxYkOGhPdRZaq9YDGIEzzpyDYPWUeKO1wu62O/xAHzO+UfFAxW78XQVDrjLFdu9SOs5UkFzQ==",
      "requires": {
        "@angular/core": "5.2.11",
        "moment": "2.22.2",
        "sprintf-js": "1.1.1"
      },

That didn't seem to match the 6.0.3 core in the repo package.json.
To me, this looked like breaking changes in rxjs as of 6x, so I quickly hacked the imports in node_modules to see if it would mitigate. That got everything to build, but then I encountered: #5
WARNING in<EMAIL_ADDRESS>6570:15-36 Critical dependency: the request of a dependency is an expression

This seems to be related to this zombie thread here:
https://github.com/webpack/webpack/issues/196
Should we be expecting 1.1.0 to work with Angular 6 out of the box?

Yeah, that thread is definitely all over - which should be a good clue that webpack errors could be more robust :)  My bigger concern here is why I don't seem to be pulling down a version with Angular 6 and the changes to RxJs. Is something more recent not published up to npm? (I see that your versions in package and package-lock do not match 1.1.0 and 1.2.1).
FWIW, my hack was simply a change in the import statements in core/esm5/core.js:
import { __assign, __extends } from 'tslib';
import { Observable } from 'rxjs';
import { merge } from 'rxjs/operators';
import { share } from 'rxjs/operators';
import { Subject } from 'rxjs';
import { Subscription } from 'rxjs';


Add keypoint detection with tuned model

Description

Add keypoint model tuning for custom datasets
Related Issues

Checklist:

[x] I have followed the contribution guidelines and code style for this project.
[x] I have added tests covering my contributions.
[x] I have updated the documentation accordingly.
[x] This PR is being made to staging and not master

@simonzhaoms I just had a look at the notebook. Looks very good already.

@simonzhaoms Thanks for making the last edits. This PR looks great now - feel free to merge


Whether the graph neural network in the BRIDGE method can be replaced by itself.

The three datasets, TML1M, TLF2K and TACM12K, all have multiple edges and multiple nodes. BRIDGE code uses GCN. Can we change it to the heterogeneous graph method to get better results? For example, HAN.

Considering that this BRIDGE method is only an instance method, the original version adopted the simplest strategy of constructing an identical graph. Of course, the method of using heterogeneous graph is also in our consideration, and the method of heterogeneous graph is also included in our library. I personally think that changing to a heterogeneous graph can really get better results. Stay tuned for future version updates.


Remove need for request post field

Instead of using request post field, use a JSON request to handle API requests.

Fixed in PR #52


Foundations for stake-pools integration tests

Issue Number
#715
Overview

[ ] I have added simple foundations for future integration tests for stake-pools list

Comments

bors r+

bors r+

The failure looks mysterious...

Failures:
--
  |
  | src/Test/Integration/Scenario/CLI/Mnemonics.hs:30:5:
  | 1) Mnemonics CLI tests CLI_MNEMONICS_01 - Can generate mnemonics with default size
  | uncaught exception: IOException of type InvalidArgument
  | fd:18: hGetContents: invalid argument (invalid byte sequence)

bors r+

bors r+

bors r+

bors r+

bors r+


Gate::URL_SUBSCRIBED_APPS

Is used as Gate::SUBSCRIBED_APPS in MessengerPlatform, hence undefined.
I can't say it worked better after that, as subscribe and getMessagesReceived return false despite correct Page access token and Webhook token.
The script is no doubt called when entering messages. I just don't get any message data. I've used example.php and checked the documentation. All applicable permissions are set in the console.
Please let me know if you've succeeded with basic interactions.
Cheers,
Anders

That could be problem with curl, please check if you are subscribed - in v1.0.3 it should throw curl exception, if is any error there.
Calling are SSL, so you have to double check that.

I got it working. I did buggy logging of the results :).


Add new iovisor eBPF projects

bpftrace and kubectl trace were added in commits a5cfca8 and 1d5adef, respectively. This PR is now obsolete, I'm closing it.


Add OpenBSD as a detectable operating system

Context
I'm trying to port an open source Java project to OpenBSD, but it requires OpenBSD detection support in gradle to determine what host OS it's running on, and thus which native binaries to use for certain operations. These changes make that possible.
Contributor Checklist

[X] Review Contribution Guidelines
[X] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[X] Check ["Allo- [ ] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
Couldn't find integration tests for the existing OS detection logic, but maybe I'm oblivious?
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
Couldn't find unit tests for the existing OS detection logic, but maybe I'm oblivious?
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
Also couldn't find :/
[X] Ensure that tests pass locally: ./gradlew <changed-subproject>:checkw edit from maintainers" option](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) in pull request so that additional changes can be pushed by Gradle team
Existing tests worked fine.

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

@neutralinsomniac Could you expand on who Gradle could be using this information. The PR only adds support for detecting OpenBSD without using the API. Bare in mind OperatingSystem is an internal API and should only be used by Gradle. For other projects, you should be using custom or Apache libraries instead. If it doesn't serve Gradle Build Tool any purpose, this PR will have to be rejected. I understand this class is convenient for users but it's internal API and likely to change without notice.

That's unfortunate, and my apologies. I'm very unfamiliar with gradle. I'm specifically trying to port Ghidra (an open source disassembler/decompiler tool) to OpenBSD. Here is an example of where they explicitly use this "API" (among other locations): https://github.com/NationalSecurityAgency/ghidra/blob/030cf8e96ff775326f3411699c5a58be4cd98442/Ghidra/Features/Decompiler/build.gradle#L77

Don't worry about it, then the best and fastest way forward would be to use Apache commons-lang as a build script dependency and use this field. You could provide a PR to Ghidra to use this API instead of the internal one. If using an external dependency is an issue, then you can abstract the System.getProperty("os.name") matching for each relevant OS inside some buildSrc code.
Thanks for your enthusiasm for contributing to Gradle. Looking forward to your next contribution. I will close this PR as non-actionable.


Can't upgrade from v1 rancher-compose to v2 rancher-compose if .catalog at root level

Rancher Version: v1.2.0-pre4-rc8
Steps to Reproduce:

Have a v1 catalog template
Add a v2 catalog template where .catalog (or catalog) is at the root level
Create v1 template
4   Try to upgrade to the v2 template

Results: The v2 template is not listed as an option.  If the .catalog is under the services: section it is listed.  Only if it's at root.
Expected: v2 template with .catalog at root should be in list for upgrade from v1

Version - v1.2.0-pre4-rc9
Verified fixed


Support for mongoldb 3.4

Mongo mapper it is not compatible with mongodb 3.4.
Because it depends on mongo gem ~> 1.8 which does not support mongodb 3.x
Is there a way to enable the support with mongo 3.x?

There was some work being done by a contributor or two, but it's never been finished.

Fixed in 0.15.0


Update config.md

Fixed typo in APIPassword section. Standardized wording across other sections. -Professor

Thank you!


feat(OP-17): set up rimble ui theme

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Loïc Vincent-Genod seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

I have opened #48 that solves the conflicts in this PR.


Fill mutation holes

Coverage increased (+0.0004%) to 99.752% when pulling 3654654d2fe9f40154aa870f2be23226066f20fd on CyberiaResurrection:FillMutationHoles into e3d1268d59c40006b92c8b20a268ccbde21b8ee4 on Algo-Web:master.


Proxy does not set content length.

When attempting to set llama-swap using koboldcpp as a back-end, I noticed that the proxy does not set the content-length header when making HTTP requests. It appears that net/http will used chunked-encoding when creating a request with an io.Reader:
    Host: localhost:8999
    User-Agent: node-fetch
    Transfer-Encoding: chunked
    Accept: */*
    Accept-Encoding: gzip, deflate, br
    Authorization: Bearer
    Connection: keep-alive
    Content-Type: application/json

    {
        "frequency_penalty": 0,
        "logit_bias": {},
        "max_tokens": 300,
        "messages": [
            {
                "content": "Hi",
                "role": "user"
            }
        ],
        "model": "koboldcpp/Llama-3.2-1B-Instruct-Q4_K_M",
        "presence_penalty": 0,
        "stream": false,
        "temperature": 1,
        "top_p": 1
    }

 << HTTP/1.0 500 Internal Server Error 136b
    Server: ConcedoLlamaForKoboldServer
    Date: Tue, 19 Nov 2024 00:53:58 GMT
    access-control-allow-origin: *
    access-control-allow-methods: *
    access-control-allow-headers: *, Accept, Content-Type, Content-Length, Cache-Control, Accept-Encoding, X-CSRF-Token, Client-Agent, X-Fields, Content-Type, Authorization, X-Requested-With, X-HTTP-Method-Override, apikey, genkey
    cache-control: no-store
    content-type: application/json

    {
        "detail": {
            "err": "the JSON object must be str, bytes or bytearray, not NoneType",
            "msg": "Error parsing input.",
            "type": "bad_input"
        }
    }

It appears that koboldcpp does not support chunked-encoding and requires an explicit content-length header:
https://github.com/LostRuins/koboldcpp/blob/fedc3874bd54ad7fd43f55ae52595ffb0144afc4/koboldcpp.py#L1956
I was able to work-around this by patching my local copy of llama-swap to copy the request body to a fixed size buffer before passing that to the new request. I am not very experienced with Go, so I am not sure if there is a better way to solve this.

what client are you using? If you test it with curl does it still happen with kobaldcpp? The proxy code is rather naive and just sends the same headers as it got.
I don’t think it would be too difficult to de-chunk the request to upstream.

I was testing with SillyTavern as a front end. The problem appears to be the request from the proxy to the backend.
The request when using SillyTavern->kobold directly:
accept: */*
accept-encoding: gzip, deflate, br
authorization: Bearer
content-length: 211
content-type: application/json
user-agent: node-fetch
Host: localhost:8999
Connection: keep-alive

{
	"frequency_penalty": 0,
	"logit_bias": {},
	"max_tokens": 300,
	"messages": [
		{
			"content": "Hi",
			"role": "user"
		}
	],
	"model": "koboldcpp/Llama-3.2-1B-Instruct-Q4_K_M",
	"presence_penalty": 0,
	"stream": false,
	"temperature": 1,
	"top_p": 1
}

The request from the proxy->kobold:
Host: localhost:8999
User-Agent: node-fetch
Transfer-Encoding: chunked
Accept: */*
Accept-Encoding: gzip, deflate, br
Authorization: Bearer
Connection: keep-alive
Content-Type: application/json

{
	"frequency_penalty": 0,
	"logit_bias": {},
	"max_tokens": 300,
	"messages": [
		{
			"content": "Hi",
			"role": "user"
		}
	],
	"model": "koboldcpp/Llama-3.2-1B-Instruct-Q4_K_M",
	"presence_penalty": 0,
	"stream": false,
	"temperature": 1,
	"top_p": 1
}

I do not believe the issue is on the receiving side, but rather the sending side of the proxy. From what I can tell, when creating the request using an io.Reader, the size is not known ahead of time, and net/http will used chunked encoding.
It appears the r.Body coming from the incoming request is an io.Reader:
https://github.com/mostlygeek/llama-swap/blob/main/proxy/process.go#L193
I was able to patch this out with a quick hack like this:
--- a/proxy/process.go
+++ b/proxy/process.go
@@ -12,6 +12,7 @@ import (
        "sync"
        "syscall"
        "time"
+       "bytes"
 )

 type Process struct {
@@ -190,12 +191,22 @@ func (p *Process) defaultProxyHandler(w http.ResponseWriter, r *http.Request) {

        proxyTo := p.config.Proxy
        client := &http.Client{}
-       req, err := http.NewRequest(r.Method, proxyTo+r.URL.String(), r.Body)
+
+       bbuf := &bytes.Buffer{}
+       nRead, err := io.Copy(bbuf, r.Body)
+       if err != nil {
+               fmt.Println(err)
+       }
+
+       req, err := http.NewRequest(r.Method, proxyTo+r.URL.String(), bbuf)
        if err != nil {
                http.Error(w, err.Error(), http.StatusInternalServerError)
                return
        }
+
        req.Header = r.Header
+       req.ContentLength = nRead
+
        resp, err := client.Do(req)
        if err != nil {
                http.Error(w, err.Error(), http.StatusBadGateway)

I am not sure if we should force a known size buffer here, so we can have a known content-length. It might also make sense to fix Koboldcpp to support chunked encoding. I submitted a PR for that here:
https://github.com/LostRuins/koboldcpp/pull/1226

Thanks for doing such deep investigation!
I did some testing of this with this curl command and from my testing the chunked encoding propagates all the way through to llama.cpp.
curl http://localhost:8080/v1/chat/completions -N \
     -H "Transfer-Encoding: chunked" \
     -H "Content-Type: application/json" \
     --data-binary '{"messages":[{"role":"user","content":"write a short story"}],"stream":false, "model":"llama","max_tokens":100}'

Since llama-swap has to get all the body bytes to detect the model it can send the request to the upstream without using Transfer-Encoding: chunked. This is the preferred behaviour.
I pushed the changes to the main branch. Give it a try and see if it improves the situation.

The change appears to be working ok for me. I will test some more. Thanks for attacking this so quickly.

Thank you for testing it. Let me know if you discover any issues.


Refactored updater to support different types of targets and ways of downloading data

Our use case has two main differences compared to the current implementation of the updater:

All metadata files are stored in a git repository. This only means that we want to change the way of downloading the metadata files. A user of our system would have a local clone of this git repository and updating metadata would mean fetching and merging the newest changes. Also, we do not need to have previous and current directories as we can just see the content of a file at a particular revision. Additionally, we do not need to read data from physical files, we use git show.

In our case targets are not files, but commits in git repositories, seeing that our goal is to protect these repositories. So, updating targets means updating git repositories. Validation needs to ensure that history of a repository was not modified by an attacker. We need to verify that the commits are in accordance with the metadata. We do not need to check hashes or lengths of individual files.

Other than the mentioned changes, we want to closely follow the TUF specification.
What this refactoring focuses on is separating validation of metadata (and operations like traversing target roles) from loading and downloading metadata files and targets. Once the metadata is loaded/updated and is stored in memory, the same checks can be executed, regardless of how the previous actions were carried out. In order to provide the needed flexibility, all code for loading and downloading metadata was moved to a separate class. Just like there is an implementation of that class which loads metadata from the file system and downloads these files from a server, there can be another implementation where git repositories are used. These classes are referred to as metadata handlers. When instantiating the updater, one only needs to specify which class of the metadata handler should be used. Similarly, everything related to downloading targets and validating the downloaded was moved to another class. This class is referred to as the targets handler. We could have another class which would handle updating git repositories.
So, this change would enable redefining certain aspects of the update process, while still relying on TUF to handle important security checks. Git metadata/targets handlers are empty, as we only want to show how this would work. We do not want to suggest merging these classes into the official TUF repository. We believe that this refactoring would generally be useful and that other TUF users could modify the update process to fit their needs.
This refactoring would not change of the updater's features. The updater's tests should all still be passing. The only difference is that, due to some of the methods being moved to the handler, the tests need to call the metadata/target handler's methods.

Closing in favor of #2


Typo fix in L01, line 165

A minor typo fix: Change"towards" to "toward"

I'm British, towards is fine!


Webpack error and powershell problem

Hey there guys :)
I have just installed visual studio code on my new laptop and am trying to run a simple react project, but none of the components are loading so I checked the issue in the console and the issue was coming from webpack. The file is massive so have just taken a screenshot to show you. Attached here.
https://drive.google.com/file/d/1-3NhpYtp0Rmu2DObW9aR-VLgR6bZr3Dj/view?usp=sharing
I noticed that someone else had a similar issue and it had to do with the integrated terminal. The solution was to change the internal terminal from powershell to C:\WINDOWS\System32\cmd.exe.
In my settings my terminal is set to C:\WINDOWS\System32\cmd.exe, but when I look at the terminal actually running in the bottom of visual studio code it clearly says powershell and I am unable to change it. Can I fix this somehow?

Can you please provide me with your terminal settings?
You should be able to create a command prompt directly from this dropdown

Hey there Megan :)
thanks a mil for getting back to me. I tried changing the terminal settings in the terminal but still nothing was working...its like the file extension js isnt recognized so probably set the whole thing up wrong I suspect because I have had a problem running any js files in the ide strangely. Do you have any tutorials that you can recommend on how to setup up visual studio code and how to configure the settings to properly run nodejs/react projects in visual studio code? That would be so good. I couldnt find any onine which are new so a bit difficult to follow those :)
thanks in advance

Hey Linda, maybe try this one? https://code.visualstudio.com/docs/nodejs/reactjs-tutorial


Error using Raven WSGI Middleware

I am attempting to use the Raven WSGI Middleware in order to log errors to Sentry, as per the docs.
However after doing this and introducing an artificial error into a Resource, I see the error logged as expected in Sentry but the following is thrown by the wsgiref server. This then results in the client receiving no content, rather than the usual 500 response.
12:11:17 web.1     | Traceback (most recent call last):
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 86, in run
12:11:17 web.1     |     self.finish_response()
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 131, in finish_response
12:11:17 web.1     |     self.close()
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py", line 33, in close
12:11:17 web.1     |     self.status.split(' ',1)[0], self.bytes_sent
12:11:17 web.1     | AttributeError: 'NoneType' object has no attribute 'split'
12:11:17 web.1     | <IP_ADDRESS> - - [08/May/2014 12:11:17] "GET /v1/nodes/2258311 HTTP/1.1" 500 59
12:11:17 web.1     | ----------------------------------------
12:11:17 web.1     | Exception happened during processing of request from ('<IP_ADDRESS>', 51394)
12:11:17 web.1     | Traceback (most recent call last):
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
12:11:17 web.1     |     self.process_request(request, client_address)
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request
12:11:17 web.1     |     self.finish_request(request, client_address)
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
12:11:17 web.1     |     self.RequestHandlerClass(request, client_address, self)
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 649, in __init__
12:11:17 web.1     |     self.handle()
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py", line 124, in handle
12:11:17 web.1     |     handler.run(self.server.get_app())
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 92, in run
12:11:17 web.1     |     self.close()
12:11:17 web.1     |   File "/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py", line 33, in close
12:11:17 web.1     |     self.status.split(' ',1)[0], self.bytes_sent
12:11:17 web.1     | AttributeError: 'NoneType' object has no attribute 'split'
12:11:17 web.1     | ----------------------------------------

Not really sure where I've gone wrong, or if this is a bug with Falcon itself. Any help would be much appreciated.

@neilalbrock how exactly did you ensure that status is correct? I am trying to get raven report unhandled exceptions in the app, but I get the same error.

@muodov I'm a bit late probably
here is a code snippet I'm using to send errors to self-hosted sentry
have no idea if it's the right way of handling unknown errors, but it works :)
and I'm still experimenting - falcon noob here
import falcon
from raven import Client
from svc import conf

app = falcon.API()

if conf.sentry_dsn:
    client = Client(conf.sentry_dsn)

    def internal_error_handler(ex, req, resp, params):
        data = {
            'request': {
                'url': req.url,
                'method': req.method,
                'query_string': req.query_string,
                'env': req.env,
                'data': req.params,
                'headers': req.headers,
            }
        }
        message = isinstance(ex, falcon.HTTPError) and ex.title or str(ex)
        ident = client.captureException(message=message, data=data)

        if not isinstance(ex, falcon.HTTPError):
            resp.status = falcon.HTTP_500
            resp.body = ('A server error occurred (reference code: "%s"). '
                         'Please contact the administrator.' % ident)
        else:
            raise ex

    app.add_error_handler(Exception, internal_error_handler)

hope it will be useful for someone searching for sentry integration


Will the dashboard work with other NoSQL databases as well?

Just my two cents here, probably obvious. @gfosco in #3 says he is working on the dashboard. But it probably makes more sense to first modularize parse-server as per #20 to add support for other NoSQL databases. Right?
Same would be for indexes support in #123 , if it is every going to come. Sorry if I'm missing something.

Since the dashboard would use the API (using master key, I guess), it will "automatically" work when the adapters are in place.
If anyone is currently working on the Dashboard, can we opt in to help somewhere?

@bohemima Thank you, I had not thought of dashboard as a client. Sorry then.


Support TLS of gRPC between agent and server.

Please answer these questions before submitting pull request

Why submit this pull request?

[ ] Bug fix

[x] New feature provided

[ ] Improve performance

Related issues
#936

New feature or improvement

Describe the details and related test reports.

I am following gRPC official examples to support TLS between agent and server. You can find the example in here:

Doc: https://github.com/grpc/grpc-java/blob/master/examples/README.md
Client: https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java
Server: https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/helloworldtls/HelloWorldServerTls.java

I chose the TLS (no mutual auth).
And I upload tools/TLS/tls_key_generate.sh to generate all necessary keys.

Client: ca.crt file should be placed in /ca folder in agent package
Server: use application.yml to set paths of server.crt and server.pem files
e.g.

agent_gRPC:
  gRPC:
    host: localhost
    port: 11800
    # Set these two setting to open ssl
    ssl_cert_chain_file: $path
    ssl_private_key_file: $path

FYI @hanahmily I think you are interested in this feature, too. Welcome to sub and join.

Coverage increased (+0.02%) to 19.215% when pulling adb93c28c9c0dfb250bea7af8259cf4ff6d49782 on feature/tls into 8106c3859494d2add4a849dd053c95de888f150e on master.

FYI @hanahmily TLS has been established in core with optional setting. And you should be care of port setting, only agent_gRPC/grpc support TLS, so you must set remote/grpc/port different with this, when you open TLS.

I had tested it in Linux and OSX, this feature has worked.


Add loading indicator

There are loading and loadingText props on the Autocomplete component. Check them out: https://mui.com/material-ui/api/autocomplete/

loading={loading}
loadingText="Loading..."
These props seem to be working, but the loading indicator does not get pushed to the top when clicking the component. This needs to be fixed before adding this feature.

Maybe set loading to true, if enter is hit?


New version: SuiteSparseMatrixCollection v0.5.4

Registering package: SuiteSparseMatrixCollection
Repository: https://github.com/JuliaSmoothOptimizers/SuiteSparseMatrixCollection.jl
Created by: @amontoison
Version: v0.5.4
Commit: a11199c41e9b07c7351220863f2169378d27f36f
Reviewed by: @amontoison
Reference: https://github.com/JuliaSmoothOptimizers/SuiteSparseMatrixCollection.jl/commit/a11199c41e9b07c7351220863f2169378d27f36f#commitcomment-96335168
Description: A straightforward interface to the SuiteSparse Matrix Collection

@amontoison
please see the message above.  Once you fix the automerge issues you can register again the new revision without changing the version number and this pull request will be automatically updated.
[noblock]


🌞 drying the update of state dictionaries

as promised on #26

Hello @dpshelio! Thanks for opening this PR.

In the file pythia/cleaning/elo.py:

Line 161:101: E501 line too long (108 > 100 characters)
Line 162:40: E127 continuation line over-indented for visual indent
Line 171:101: E501 line too long (123 > 100 characters)

Do see the Hitchhiker's guide to code style


feat: Adding a repl binary

This is aiming to be an equivalent to the win command that comes with acme.

Hey, I saw you just replaced sh with rc in 0b0aa175bfe9ec30b277f3b3caa2acfc334a196b and I wonder if you want to leave it like that for after ? I do believe it's a better shell than sh, but making it a hard dependency might be a hard point

@rakoo getting it to work nicely with sh (including the prompts) is surprisingly difficult in a terminal application. For now I'm hard coding rc and the readme includes instructions on how to install it but I may revisit it in the future. The entire program is 150 lines so its not particularly challenging to hack on or write your own alternatives for :slightly_smiling_face:

Wow this is great!
Is there a way of sending "Enter" or Execute via 9p
If "win+" is buffer 1 say I can 9p to the body i.e.
echo ls | 9p write ad/buffers/1/body
This appends "ls" to the end of the repl window i.e.
$ ls
but doesn't execute it.

Text appended via the filesystem interface is explicitly not executed as I need to avoid trying to execute output as it gets appended to the buffer. If I added Load and Execute commands that would work I think but you'd need to select the text you are wanting to work with (similar to how the handler for newline at the end of the file in ad_repl is working). So something like this:
echo 'ls' | 9p write ad/buffers/1/body
echo '$-' | 9p write ad/buffers/1/addr
echo 'Execute' | 9p write ad/buffers/ctl

@davcam that should work now :+1:

Huh...I ran exactly that and it worked for me. Did you have anything else in the buffer at the point you ran this? I ran things immediately after starting ad_repl

whenever I run
echo 'Execute' | 9p write ad/ctl

it outputs
%
%

irrespective of the previous lines so perhaps my issue is with "Execute" - could this be due to a difference in interaction with p9p?
My version of plan9port is 20240617-1
I installed ad and ad_repl by
git clone https://github.com/sminez/ad
cd ad
git checkout repl
cargo install --path ./
cd crates/ad_repl
cargo install --path ./

cargo 1.82.0 (8f40fc59f 2024-08-21)
rustc 1.82.0 (f6e511eec 2024-10-15) (Arch Linux rust 1:1.82.0-2)

Ok I think I understand I was missing a step.
You need to select 'ls' in the +win window to add it to dot right?
Then
echo 'Execute' | 9p write ad/ctl

work for me.

Oh! Sorry :facepalm: This is what I'm doing:
https://github.com/user-attachments/assets/364900d9-7010-4ac8-a47d-356633d8720b
I messed up the command I gave you: the addr you want to set is $-1 not $-

Thanks yes or
echo -n 'ls' | 9p write ad/buffers/1/body
echo '$-' | 9p write ad/buffers/1/addr
echo 'Execute' | 9p write ad/ctl

also works

Is there any way to change the "current" buffer externally?
I tried writing to it
echo 2 | 9p write ad/buffers/current

but got a permission problem
The idea is to have two ad windows open: the LH one is my code where I select lines to change dot
I then run the mysend script below to send to the RH +win for execution
#!/bin/sh

source "$HOME/.ad/lib/ad.sh"

requireAd

varin=$(bufRead 1 dot)
nlines=$(echo "$varin" | wc -l)
echo "$varin" | bufWrite "$bufid" body
echo '$-'"$nlines" | bufWrite "$bufid" addr
echo '$-'"$nlines"',+'$((nlines-1)) | bufWrite "$bufid" addr
echo 'Execute' | 9p write ad/ctl

At the moment I'm having to click in the RH window so that Execute sends to +win
It would be great to be able to modify the current window in the script to save me from moving away from the LH code window.

@davcam you can use the buffer command along with the id (See Running Built In Commands in :help for details of the available builtins)
For other questions like this would you mind raising an issue rather than asking on this PR? I'd prefer to keep the discussion here related to the PR itself :slightly_smiling_face:


Windows: Verify TestExplorer works

The next release of vscode-swift will include the new TestExplorer. We need to verify this works on Windows. Test discovery requires a built project as it uses swift test --list-tests --skip-build to get a list of the tests. Once we have a list of the tests the LSP server is used whenever a file is saved to add/remove tests to XCTestCase classes that have already been registered. You can find the TestExplorer by selecting the chemical container icon on the left hand side of the tree view container.
Before starting tests open a project which includes tests in VSCode and select the command Swift: Clean Build and then restart VSCode.
Things to test

[ ] As we are starting with a clean build the test explorer should show a Test Discovery Error which when you open tells you to build the project.
[ ] Build your project Ctrl + Shift + B. Once the build has completed the TestExplorer view should update to list the tests in your project. You should have a tree view item for each test target, inside the test target item should be a list of the XCTestCase classes and then inside them should be a list of the test methods. (Pretty much the same as Xcode)
[ ] Select a single test. You should the option to run the test, or run the test in the debugger. If you select either of these it will build your project and then run your test. If you select Run Test then break points will not work. If you select Debug Test break points will work. I know the debugger is a little flakey so I'm not sure how much you can test debugging of tests.
[ ] If you select run/debug tests on a class it should run all the tests in that class
[ ] If you select run/debug tests on a target it should run all the tests in that target.
[ ] Open a file for a test target and add a new test method. When you save the file it should add the new test to the TestExplorer.
[ ] Open a file for a test target and remove a test method. When you save the file it should remove that test from the TestExplorer.

Although the test enumeration works and in theory the test execution works, this is slightly broken for an important test case.  We don't honor adjustments of the build arguments when building the test.  If I have customized the flags, the new flags are discarded when a test is actually executed (resulting in both a rebuild and a failure to build).

Are you sure this is the case? I use exactly the same build task when running the tests as when doing a simple build (triggered by Shift+Ctrl+B). They both use the build arguments that are in the extension configuration.
I'll verify this. Although I can only verify on macOS or Linux.
Out of interest what build arguments were you using.

Just verified on macOS and Linux via a dev container. If I set the swift: Build Arguments setting those build arguments are used when building before running a test as well as building via Run Build Task....

Trying to pass along -Xcc -IS:\Library\sqlite-3.38.0\usr\include -Xlinker -LS:\Library\sqlite-3.38.0\usr\lib -Xlinker C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\x86_64\swiftCore.lib.
Sounds like I must have configured the settings incorrectly?  The build actually used it.  To be fair, I just saw the gear icon, clicked it and added in the options.  Do they need to be added in some other way?  It could be applied for a specific build.

Did you add each option in separately? I've found it doesn't like it if you add them all in one line. You need to add them individually
-Xcc
-IS:\Library\sqlite-3.38.0\usr\include
-Xlinker
-LS:\Library\sqlite-3.38.0\usr\lib
etc

If you can build the extension, you could comment out line 90 in SwiftTaskProvider.ts
https://github.com/swift-server/vscode-swift/blob/f8da2d740990ecdb5b4803a55b6eeee20253cd71/src/SwiftTaskProvider.ts#L83-L92
This will not clear the console window when it runs a new task and you'll be able to see the command line for the task.

Yes, they are individual, with quoting of the argument and the backslashes (as it is an escape sequence otherwise).
The entry is marked as:
"group": "build",
"label": "swift: Build All",
"detail": "swift build --build-tests -Xswiftc -g -Xswiftc -use-ld=lld -Xlinker -debug:dwarf"

I'll build the extension in a bit

BTW, perhaps it would make sense to have the flag be controllable by the user for debugging purposes in the future?

Ideally VSCode wouldn't delete the starting task text when it is set to true. The purpose of the clear flag is to clear results from previous task runs , not delete the starting task text.
I can still add an option to enable/disable it. I guess some people might like to see results from old builds

Ah; the starting task definitely doesn't show the flags.  And I realized that I didn't mention what I am building (which would be useful for someone else trying to replicate this) - it is just swift-driver.

When you run the build task via Run Build Task... do you get the flags?

Correct; the build task does get the flags (so Ctrl+Shift+B will succeed).  When you then run the tests, it will go, oh flags are different, rebuild and fail to build.

Wait a sec, have you created a separate task in tasks.json to add in your extra command line params? That might be the cause, I rebuild the build task before running it in the case of building tests and will use the build parameters set in the settings. I should be able to fix it so I use the edited task from tasks.json if it is there.

I had just clicked on the gear icon that showed up when I first went to build the project.  I believe that it duplicated the task to add the flags.  Is there another way to apply flags?  If so, I think that exposing that might be a better approach.

I should be able to support both.
Currently though the method is

Go to Settings (Ctrl+,)
Expand Extensions section
Select Swift
Second in the list is a Swift: Build Arguments. You can add all your build arguments there.

Ah, interesting.  However, those options would be globally applied right?  I think that we need a way to support per-project flags.  The reasoning for that is simply that system libraries on Windows will likely need to be configured by the user (pkg-config is not common on Windows, and the user may install libraries wherever they like).

You can set them at a workspace level (see at the top there is a User/Workspace selection)

Ah ha!  Okay, so that is simply a PEBKAC.  Sorry about the long discussion on a completely unrelated item.  I guess that it uncovered something that someone unfamiliar with VSCode might trip over.

Oh no, this is great. We need to fix usability issues like this.
Also shows where documentation might help.

So, just to add a bit more color - the last time I used an IDE was back ~2005 when I was at Microsoft, and naturally that was Visual Studio.  As a result, I expected project build settings and IDE settings to be separate.  In my mind, the settings dialog that you directed me towards is related to the IDE.  It never occurred to me that there might be project settings there.  How difficult would it be to augment the UI to include a discoverability alteration that allows you to use a context menu or button to go to that location?  Although, I would understand if that would be deemed far outside the scope of this project.

Test enumeration seems to work; hovering on a test gives the option to run a test or run under a debugger.  Go to test also seems to function properly - though seemed to open a new pane unnecessarily.  Execution seems to be an issue  though - while it runs the test as per the output, it does not provide the test output nor does it provide test results.

So, just to add a bit more color - the last time I used an IDE was back ~2005 when I was at Microsoft, and naturally that was Visual Studio.

Ha ha I remember swearing at Visual Studio quite a bit back then, when I was in the games industry. It didn't like AAA title size projects much.

Test enumeration seems to work; hovering on a test gives the option to run a test or run under a debugger. Go to test also seems to function properly - though seemed to open a new pane unnecessarily. Execution seems to be an issue though - while it runs the test as per the output, it does not provide the test output nor does it provide test results.

Damn! are you getting the same results with both running tests and debugging tests? They are pushed through quite different paths. When running tests I run the test executable with child_process.execFile. I can then pipe stdout/stderr to a WriteStream which outputs to the test console, parses the output and then updates tests accordingly. When debugging tests I have a lot less control over stdout/stderr but I can pipe the output to a file which I parse once the debug session has completed. If tests take a long time it can seem the debugging tests is doing nothing.

I haven't tested the debugging of the tests yet, but I can try that.  I'll run through npm run test later.

Ok. From the npm test run I have ascertained two of the possible issues are not issues which is good.
Yes if the tests aren't built you need to build them for discovery. The Test Discovery Error should read "Build the project to enable test discovery" though.
There is a Swift output window (Select View->Output and then select Swift in the dropdown menu at the RHS of the view) which gives general information about what the extension is doing. If you could cut and paste this in here for the case where the project hasn't been built and displays a Test Discovery error and also in the case where you try to debug tests that'd be great. I'm going to add a diagnostics option to add a lot more input into this view, to help debugging this issue.

I've added the extra diagnostics in the output view. If you could run the latest code from git, enable Swift: Diagnostics in the Settings and reload the window (found in command view Ctrl+Shift+P), or restart vscode. Then run the test debug again and after include the output from the swift output window here.
Sorry for all this. I imagine you've got plenty of other stuff to be getting on with.

18:06:22: compnerd.org Swift version 5.7-dev (LLVM 0c27db54bc46582, Swift c056aeb1bf0fdf7)
18:06:27: SourceKit-LSP setup for swift-driver
18:06:27: swift-driver: add: s:\SourceCache\swift-driver
18:06:27: swift-driver: Resolving Dependencies ... 18:06:36: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:06:40: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
done.
18:06:41: swift-driver: focus: s:\SourceCache\swift-driver
18:06:42: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:06:42: swift-driver: Resolving Dependencies ... 18:06:44: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:06:44: swift-driver: Test Discovery Failed: error: The operation could not be completed. The file doesn’t exist.

done.
18:08:47: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:08:47: swift-driver: Resolving Dependencies ... 18:08:48: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:08:48: swift-driver: Test Discovery Failed: error: The operation could not be completed. The file doesn’t exist.

done.

18:13:23: compnerd.org Swift version 5.7-dev (LLVM 0c27db54bc46582, Swift c056aeb1bf0fdf7)
18:13:23: Toolchain Path: C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain
18:13:23: Developer Dir: C:\Library\Developer
18:13:23: XCTestPath: C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\bin
18:13:27: swift-driver: add: s:\SourceCache\swift-driver
18:13:27: swift-driver: Resolving Dependencies ... 18:13:37: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
done.
18:13:38: swift-driver: Exec: swift test --skip-build --list-tests
18:13:39: SourceKit-LSP setup for swift-driver
18:13:39: swift-driver: focus: s:\SourceCache\swift-driver
18:13:45: swift-driver: Exec: swift test --skip-build --list-tests
18:13:49: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:13:49: swift-driver: Resolving Dependencies ... 18:13:49: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:13:50: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:13:51: swift-driver: resolvedUpdated: s:\SourceCache\swift-driver
18:13:51: swift-driver: Test Discovery Failed: error: The operation could not be completed. The file doesn’t exist.

18:13:51: swift-driver: Test Discovery Failed: error: The operation could not be completed. The file doesn’t exist.

done.

Hmm, one thing that stands out as being a problem is the XCTestPath.  The paths for the XCTest runtime has changed in the recent times, and we need a backwards/forwards compatible change.  It used to be in bin, now it is architecture dependent:

Target
Relative path

i686-unknown-windows-msvc
bin32

x86_64-unknown-windows-msvc
bin64

armv7-unknown-windows-msvc
bin32a

aarch64-unknown-windows-msvc
bin64a

Okay, digging through the test explorer code to a certain extent, it appears that it runs swift test --skip-build --list-tests.  However, running that from the command line yields: error: The operation could not be completed. The file doesn’t exist..  Sounds like a bug in swift-package-manager.  Back over to me on the other side.  In the mean time, I've put up a couple of cleanups, and the bin directory handling needs to be taken care of still.

No wait, that is a bug in the project.  Patch incoming.

Okay, with pending changes, and a change to the XCTestPath, debug test seems to work!

The rebuild everything to run each individual test is really rather annoying, is that something with the VSCode plugin or a bug in s-p-m/s-d?  I know that from the command line, I normally do not have to rebuild everything.  Although, I am seeing weird errors in my local swift-driver test suite, so it could be related to the recent swift dynamic cast change.  What about the name undecoration in the stack trace?
It appears that the test output is still missing though when you run the test :-(.  Interestingly enough, it also does not update the test results when run, but does when debugged?

The rebuild is an SPM thing. I call swift build before running tests but if a project is built it should just return immediately.
The undecorated name, indicates that lldb hasn't been setup to use the swift lldb. Check the settings for CodeLLDB -> Advanced -> Library. That should be pointing to lldb dll is I remember correctly. The swift extension sets this up on initialisation.
At the moment when debugging tests the test output only appears once the tests have all finished. This is the case on all platforms. I haven't managed to get access to the stdout stream.
When just running (not debugging) tests the stdout is piped to a stream which parses the data. On macOS and Linux this is done line by line. I'm wondering if on Windows this is coming in differently. If you stick a breakpoint in line 205 of TestRunner.ts and run tests and check what is coming through that would be useful to know.

Sorry, you are going to have to walk me through this.  I don't know how to setup everything to set the breakpoint and debug the plugin :-(.

Sorry, you are going to have to walk me through this.  I don't know how to setup everything to set the breakpoint and debug the plugin :-(.

It should be as simple as

Open up VSCode inside the vscode-swift folder
Press F5, which should build and run the extension inside a new VSCode window.
go back to original VSCode
open up source file and click on LHS of text editor on line where you want breakpoint.

The undecorated name, indicates that lldb hasn't been setup to use the swift lldb. Check the settings for CodeLLDB -> Advanced -> Library. That should be pointing to lldb dll if I remember correctly. The swift extension sets this up on initialisation.

Nope, that appears to be empty.

Okay, so #248 corrects the reporting - tests now show the status properly. They were silently failing previously.  They do not provide any output still.  I did manage to get the debugger attached, but received only a single callback with the first 3 lines of output. I'm not sure why the rest of the output is not being relayed.

When just running (not debugging) tests the stdout is piped to a stream which parses the data. On macOS and Linux this is done line by line. I'm wondering if on Windows this is coming in differently. If you stick a breakpoint in line 204 of TestRunner.ts

Ah ha!  It is.  It ends up coming in as a single blob, but never gets passed to the writable stream.

The rebuild is an SPM thing. I call swift build before running tests but if a project is built it should just return immediately.

This is not a SPM bug - running from the terminal, it does immediately return saying that everything is up to date.

Not sure, but with some logging enabled seems that the class and individual tests now run properly and even provide the output in the console.

I'm going to break out some of the stuff here into separate issues to simplify things

Okay, the debugging part is really weird for a user.  You need to set a breakpoint AND enter the test for debugging.  Entering the test for just debugging is pointless as it just runs it under lldb and exits.  Setting the breakpoint and running is pointless because it won't be under lldb.  Implicitly setting the breakpoint on the test being run for debugging would be way more obvious (is there an equivalent to tb?).  But seems that the functionality at least is working with a small change.  Loading the Swift version of liblldb crashes due to a Swift load failure.  This is something that can be worked around, but is annoying: https://bugs.swift.org/browse/SR-13591?focusedCommentId=64462&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-64462.  An initial lldb script to load the runtime would workaround the issue.

Run tests means running tests outside of the debugger. So breakpoints won't work.
Debugging tests run tests inside the debugger. I guess if you aren't setting a breakpoint it is kinda pointless, but it isn't always obvious where the breakpoint should be set. You may be running multiple tests, you want to it to stop at a specific point in the test you are debugging not at the beginning etc

Agreed that it isn't always obvious where to set the breakpoint.  However, if running a single test, it would be nice to break on the test entry.  For a suite, perhaps on suite construction or entry?

Closing as I think we are good here now.


Discuss the naming of Various Stores and need for different types of stores inside Veraison kvstore

Current implementation (as of 06/04/2022) has Endorsement Store and TrustAnchorStore.
Need to decide where Certification will reside? A separate store or part of Endorsement Store ?
Any other new types added(like SW Updates) needs a addition of stores.
Also the naming is confusing.
TrustAnchor are also a type of Endorsements. So how does the names uniquely identify the type of elements stored in the Store Type?
Need to discuss the same, via this issue and make a suitable change in the code base..

My two cents on this:
I don't think the number of stores needs to be an architectural issue, i.e. be reflected in the APIs.  A single endorsement method as (suggested here https://github.com/veraison/veraison/pull/148#discussion_r843827241) should be enough with a filed within the Endorsement structure used to distinguish between the endorsement types.  This "type" field can also be included in the ID URI, thus disambiguating the cases where  a scheme uses the same ID derivation for  trust anchor and a reference value set.

See also Issue #152

Resolved as it is decided to keep all Endorsements under one Umbrella for now!


global ocamlfind (and dune) interferes with opam switches that do not have ocamlfind installed

The global ocamlfind is a shim to with-dkml that today is in <DkMLHome>/bin. Since <DkMLHome>/bin is part of PATH+= in an opam switch, that global ocamlfind is visible inside an opam switch (as long as no opam install ocamlfind is done).
The consequence is that dune will find the global ocamlfind and then report not being able to find libraries that are legit part of the opam switch.
Solution:

All precompiled binaries, especially the shims, go into <DkMLHome>/usr/bin. That usr/bin directory is already part of the global PATH (at least on Windows as set by the Windows setup-userprofile.ps1 installer).
All native code binaries compiled by install-ocaml-compiler.sh go into <DkMLHome>/bin as they are today. However, no restore-ocaml-shims.sh is needed because native code binaries live completely separate from the precompiled binaries.

dune is similar ... it should not be in the global environment because it is confusing when used in a local opam switch that does not yet have dune installed (or the user forgot to do a eval $(opam env).


Fix serializing of JSON default values

This changes the InputType::to_value implementations to serialize the JSON values to strings. (since these are scalar types GraphQL requires it to be a string for the default)

Thanks! 🙂


Fix iSWAP & Peres OpenQASM export

The iSWAP, Peres and Peresdag gates were exported with invalid OpenQASM caused by missing spaces when there are no control qubits.
A dump of an iSWAP(0, 1) gate previously looked as follows:
swap q[0], q[1];
s q[0];
s q[1];
czq[0], q[1];

Good catch. Thanks for this PR. This already looks great!
Would you mind adding some small tests in the qfr/test/unittests/test_io.cpp file that cover these cases?

Done. The tests assert that an OpenQASM dump with these gates is parsed successfully when importing. Should they be more comprehensive?

This is great! Thanks for your contribution 👍🏼


Add IE11 fixes to the layouts

Overview
The Bullseye, Gallery, Level, Split, and Stack layouts need to be tested in IE11, and have variables for modifiers added.
closes #100
Changes

Adds variables for gutters to layouts
Applies cross-browser fixes

Deploy Preview
https://deploy-preview-164--pf-next.netlify.com/

replaced by #190


chore(deps): update dependency moveable 0.15.2

Thanks @daybrush
I suppose it will bring back one of the fixed problems but nevertheless I decided to merge
You helped me to bump into another interesting idea. I can make it work with any moveable version. So I don't have to update it each time you update the library.


Requirement version for g++

According to the discussion in the forum, we failed to install Chainer if the version of g++ is some specified one (not investigated yet). It is desirable to identify the minimum version requirement for g++.

Ubuntu14.04: 4.8.4
CentOS7: 4.8.5


Simphony monte carlo fix

Fix for incorrect Monte Carlo computations for the MZI circuit. Issue is with SiPANN Waveguide component. Replaced it with SiEPIC Waveguide component.

Thank you Skandan!


Add commit hash to location.

Part of PLAT-1576

are there any docs that need updating?

For this SDK in particular, I don't think so.


Use facebook-bot, watson Botkit with koa server

Can I use facebook, watson botkit within my existing koa server?

Sure, here is a link to setting up botkit with an express server. I'm not familiar with koa but all you need is to create a webhook to ingest events.
Here is a Watson Botkit middleware to use with Botkit


Date pickers can't select date

The date selection is not working for

[ ] Date Picker
[ ] Date Range Picker
[ ] Date Time Picker

Hi Inna, yes, I noticed the same in the currently deployed story book https://ui5-webcomponents-ngx.netlify.app/?path=/docs/ui5-web-components-main-datepicker--docs
And, it's not only for the date-* components, but for all form associated components.
It's a ngx wrapper specific issue. If you open the console you will see runtime exception ctx._cva.onChange is not a function.
The issue will be resolved with the PR (opened few days ago), which is upgrading the underlying UI5 Web Components version + fixing this wrapper specific issue.


fix: metrics service labels

Servicemonitor should have a selector that only matches service-metrics and not the app-service, in order to avoind adding each prometheus target twice.
fixes: https://github.com/cert-manager/istio-csr/issues/180

Thanks!
/lgtm
/approve
/ok-to-test


codec(ticdc): fix avro decode update event incorrectly and do not verify empty checksum

What problem does this PR solve?

Issue Number: close #9069
What is changed and how it works?

encode DDL event simply to prevent send too much to the kafka.
fix avro decoder verify empty checksum
set columns correctly for the update event

Check List
Tests

Manual test (add detailed scripts or steps below)

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`

/merge

/test verify

/test cdc-integration-kafka-test


New version: 7S2P.Effie.CN version 3.3.1

This pull request is automatically generated by 🥟 Dumplings in #3218
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run


Two DASH VOD sample content cannot be playback with v2.0.0-beta2-debug

Content 1:

Affected contents:
-- https://www.dropbox.com/sh/07id6dkczd1jxp2/AAAio3JYCpaWCls-GKF3bqsUa?dl=0
Shaka player log:
-- https://www.dropbox.com/s/yac77rbjwbvm0r7/PMPO-5501-shaka-player-demo.appspot.com-1465964127792.log?dl=0

Content 2:

Affect contents:
-- https://www.dropbox.com/s/jqvr2o3i97dii51/PMPO-4977.tar.gz?dl=0
Shaka player log:
-- https://www.dropbox.com/s/sdpu1thwnkbta2b/PMPO-4977-shaka-player-demo.appspot.com-1465966634255.log?dl=0

Observation (applying to both Content 1 and 2):

Once click playback, the first frame can be decoded and displayed.
It does not playback, for both video and audio streams.

More information:

The same stream can be playback using v.1.6.5 shaka player.

According to the DASH IF, your content does not contain video segments that cover the entire period.  To quote them:

It is not the player that must deal with the problematic section but the production software.
The player should play the entire period from start to finish. It is the responsibility of the mechanism creating the DASH presentation to ensure that there is enough data in all the elementary streams to cover the entire duration of the period.

Shaka v1 had a complex mechanism whereby we effectively clipped off leading audio or video and treated the content as if it started when both streams were present.  Shaka v2 does not have this mechanism because it was complex and subtle and only served to hide bugs in content packagers.
Please report this bug to the vendor of your encoder or DASH packager.

The cause of why Shaka Player v2.0.0-beta2-debug cannot do the playback is identified. It's due to https://github.com/google/shaka-player/issues/366
The trunk with the fix can play the


Feature/working

Update of arklib repository. Add description to preview on hover and remove useless sleep. Remove async from tauri::command to put it directly to the function definition (more clear). Update Readme for new developper

I get this compiling but when creating a link there's an error:
[src/command/mod.rs:73] &path_list = [
    "example.com-1747841236.link",
    "testing.com-6940502.link",
    "google.com-1508330817.link",
]
thread 'tokio-runtime-worker' panicked at 'Error loading /home/ubuntu/ark-shelf/testing.com-6940502.link: No such file or directory (os error 2)', src/command/mod.rs:124:52

This file definitely exists and I believe it the problem is coming from load_meta_bytes inside the link::load function rather than loading the file which raises the error:
  pub fn load<P: AsRef<Path>>(root: P, path: P) -> Result<Self, Error> {
      let p = path.as_ref().to_path_buf();
      let url = Self::load_url(p)?;
      let id = ResourceId::compute_bytes(url.as_str().as_bytes())?;

      let bytes = load_meta_bytes::<PathBuf>(root.as_ref().to_owned(), id)?;
      let meta: Metadata = serde_json::from_slice(&bytes)?;

      Ok(Self { url, meta })
  }

https://github.com/ARK-Builders/arklib/blob/868f4586ddc62c8f438a2cd8ddd0d527f3af1452/src/link.rs#L40-L49

I get this compiling but when creating a link there's an error:
[src/command/mod.rs:73] &path_list = [
    "example.com-1747841236.link",
    "testing.com-6940502.link",
    "google.com-1508330817.link",
]
thread 'tokio-runtime-worker' panicked at 'Error loading /home/ubuntu/ark-shelf/testing.com-6940502.link: No such file or directory (os error 2)', src/command/mod.rs:124:52

This file definitely exists and I believe it the problem is coming from load_meta_bytes inside the link::load function rather than loading the file which raises the error:
  pub fn load<P: AsRef<Path>>(root: P, path: P) -> Result<Self, Error> {
      let p = path.as_ref().to_path_buf();
      let url = Self::load_url(p)?;
      let id = ResourceId::compute_bytes(url.as_str().as_bytes())?;

      let bytes = load_meta_bytes::<PathBuf>(root.as_ref().to_owned(), id)?;
      let meta: Metadata = serde_json::from_slice(&bytes)?;

      Ok(Self { url, meta })
  }

https://github.com/ARK-Builders/arklib/blob/868f4586ddc62c8f438a2cd8ddd0d527f3af1452/src/link.rs#L40-L49

Can you check that you can open the file to be sure it's ok before the load call?

You're right there's only 2 metadata files, so I'm guessing the testing one is missing.
For the error, it's still possible to use anyhow you just have to setup an error enum to make sure the types can be serialized. Tauri's code base do it themselves with thiserror macros, but it's also possible with anyhow.

For anyhow I don't see how to make it. We have to get an enum serialisable error which impl Fromanyhow::Error. So definetely a custom error.
I would prefer thiserror since we can then manage the error type easily on the frontend with some libray (for example https://github.com/samchon/typia)

Started with a clean data folder, getting this exception:
thread '<unnamed>' panicked at 'Error computing hash: Custom { kind: InvalidInput, error: "Error computing RessourceId" }', src/main.rs:61:58
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[src/command/mod.rs:69] &item = DirEntry("/home/ubuntu/.ark-shelf/example.com-1747841236.link")
[src/command/mod.rs:73] &path_list = [
    "example.com-1747841236.link",
]

The large amount of lines formatting ' to " should probably be kept as a separate PR but otherwise looks good to me.

The large amount of lines formatting the single quotes ' to  double quotes " should probably be kept as a separate PR but otherwise looks good to me.

Superseded by #43


Add a restart button in the setting

Want to add a restart button after the line "Kindly restart the app to apply changes"
Please assign me this issue.

Hi 😄, thanks for creating your first issue at makemathseasy, do read and follow the Code of Conduct and the Contribution Guidelines while contributing.

okay :)
please assign me this issue

go ahead @tjanhvi :)
Deadline 16 June 2021

okay :)


pgadmin style function execution in sql editor doesn't work

Hello,
The following query works in pgadmin, but not in DBeaver :
do $$ begin         for i in 1..10000 loop                 perform someFunction(1);         end loop; end $$
The error given is the following :

DBCException: SQL Error [42601]: ERREUR: chaîne entre guillemets dollars non terminée sur ou >près de « $$
begin
for i in 1..10000 loop
perform someFunction(1);
end loop »
Position: 4

I just found out the project and I didn't check the source code, but my blind guess would be that the query interpreter doesn't handle the syntax (maybe DBeaver has an other way of specifying the execution of an anonymous function?).

You can execute this query by selecting it and executing as single statement (ctrl+enter).
DBeaver doesn't yet support pgSQL syntax and can't detect block delimiters.


Keyboard manager : Add Remap a SINGLE key for specific application

Description of the new feature / enhancement
There's a limitation in key remapping - it could be made globally, not per specific application.
Please allow key remapping locally - only for specific app
In other words: Currently only a shortcut (combination of modifier key and some key) for specific application is allowed for remapping.
Please allow a single  key remapping for specific application.
Scenario when this would be used?
It's obvious: Pressing a single customized key  (not a shortcut: combination of modifier key and some key)  in specific application would execute the desired command)
Thanks in advance
Supporting information
No response

/dup #28443


⚠ SceneTime has degraded performance

In 2a68acd, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 7279 ms

Resolved: SceneTime performance has improved in accc0d5 after 6 minutes.


Transition to go modules for dep management

remove Gopkg.{lock/toml}
Update Makefile to pull controller-gen correctly and use it
Updated module names for kubevirt imports
Updated client.List calls to conform to correct dynamic client interface.

fixes #82

Looks good :+1:

I couldn't manage to resolve the conflicts, so I create a new branch from master, applied your changes and submitted #126. Now that #126 is merged, I'm closing this one. Thanks @shawn-hurley for doing the hard work.


doc/install: add homebrew install instructions

Just leaving a comment here homebrew-osx-tools has internal URLs to our local artifactory, not sure if this project should be public / referenced in this public repo since it won't work outside of OT

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5607801). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #371   +/-   ##
=========================================
  Coverage          ?   66.72%
=========================================
  Files             ?      145
  Lines             ?     8210
  Branches          ?        0
=========================================
  Hits              ?     5478
  Misses            ?     2290
  Partials          ?      442

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5607801...f5fb144. Read the comment docs.


SyncJobStatus is not triggered for Finish state for android 13

Describe the bug
A clear and concise description of what the bug is.
Component
Core library
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):

Device: [e.g. Pixel4a emulator]
Android version: [e.g. Settings -> About phone -> Android version]
Build number: [e.g. Settings -> About phone -> Build number]
Version [e.g. 22]

Additional context
Add any other context about the problem here.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

@khyativyasargus  Could you please help us with the details, specifically on the steps to reproduce.

@khyativyasargus Could you please help us with the details, specifically on the steps to reproduce.

Hi @anchita-g , yes sure!

Go to PatientListFragment into demo app source code
Onserve SyncJobStatus into mainActivityViewModel.pollState.collect {} for different state of sync job, put logs there
Run demo app in Android 13 & observe logs , you'll notice SyncJobStatus.Finished doesn't get triggered in Android 13, but it works fine for Android 12

Hi @anchita-g , I hope the given explanation was helpful. Let me know if there is any update on this as it's kinda high priority for Emcare.

Hi @khyativyasargus , yes we are looking into this right now. @santosh-pingle would you be able to provide some updates on this?

@anchita-g
I've already updated @khyativyasargus in the weekly call that issue is reproducible and I am looking into it.

Actually, issue is only reproducible on android api 33 (android 13).
sync/FhirSyncWorker
override suspend fun doWork(): Result {
...
val job =
      CoroutineScope(Dispatchers.IO).launch {
...
if (it is SyncJobStatus.Finished || it is SyncJobStatus.Failed) {
            this@launch.cancel()
          }
...
...

It looks like the Finished state does not get published when the coroutine scope is cancelled. However, if you delay the coroutine scope cancellation operation by adding delay(), then the issue is not observed.

In PeriodicSyncWorker, when FhirSyncWorker updates the finished state, by the time the progress observer listens to it, FhirSyncWorker's state becomes ENQUEUE.

@khyativyasargus  @omarismail94 @jingtang10

I was just checking whether the last progress update would be observed in periodic sync with simple demo changes without flow, but I didn't see the last update get observed until an extra delay was added between setProgress() and the return call from the doWork() API.
PR https://github.com/google/android-fhir/pull/2067

@aditya-07

Can you cherry pick the commit from: https://github.com/google/android-fhir/pull/2064/ to update the dependecies. you wll need to have Java 17 installed for this to work

Can you cherry pick the commit from: #2064 to update the dependecies. you wll need to have Java 17 installed for this to work

Hi @omarismail94  We checked with this commit #2064 with demo app, but sync Finish state isn't being observed still.

fixed with #2142


Separate config for development

Use staging.itsyou.online

Issue migrated to our-city-app/plugin-mobicage-control-center#7


Test runner breaks non-Godot unit test runner

This PR (https://github.com/JetBrains/godot-support/pull/58) seems to require copying some files from Github.
When I try to run some regular NUnit tests that don't rely on running the game (possibly requiring some stuff like Vector3 from the Godot library, but not the game itself), all my tests get skipped.
The exception here is logged as part of the reason for skipping the tests.
https://github.com/JetBrains/godot-support/blob/d09cc7c2801e121e42319653cc03017fedc3a6fa/resharper/src/UnitTesting/GodotTestRunnerHost.cs#L39
This requires me to disable the plugin just to run my unit tests. This runner should be opt-in somehow and not break non-Godot flows.

Also, if some manual file copying is required can you please document that somewhere?

Do you have you non-godot tests in a separate assembly?


MatchRule::ArgPath cant be used with/as suffix

Hi, I am trying to add a Match for "org.freedesktop.DBus.ObjectManager.InterfacesAdded". These are always sent with path "/" in the header. However they contain the real path in the body.
Matching on a suffix like with MatchRule::PathNamespace is also possible for argXpath by ending the path with /.
However that is not possible with MatchRule::ArgPath as it takes an ObjectPath and will give an Error on parsing (EndSlash).
Would it make sense to add a MatchRule::ArgPathNamespace for this case?
I am currently using a workaround:
format!("{},arg0path='/org/bluez/'",MatchRule::encode(other_match_rules))

From dbus.freedesktop.org:
If your argument match has a 'path' suffix (eg: "arg0path='/some/path/'") then it is considered a match if
the argument exactly matches the given string or if one of them ends in a '/' and is a prefix of the other.

I think it is better to add  member to ArgPath, which define whether it is a namespace or not. But not in this repository dbus-message-parser.


Site to SoilSite

original discussion paper was focused on Site
My changes reflect the feedback that this should be soil site discussion that this should be 'Soil Site'.
For checking @dr-shorthair

I took out discussion of TERN plots (since there was no ref or anything to what a TERN plot was.
What do you think the relationship btw Soil Site and TERN Site is @dr-shorthair
https://w3id.org/tern/ontologies/tern/Site
TERN site seems scoped to Ausplots Rangelands Sites - TERN site would be a type of Soil Site, but not sure how it would be best expressed......

I inserted Land Survey Site as a super-class. Using the name from the title of ASLS, to provide a hook for other non-soil-site specializations, or non-soil sites that are associated with soil investigations.

See https://github.com/ANZSoilData/def-au-domain/blob/main/site.md