The tree view display issue

The tree view display empty. We my dag settings is
two_hours_ago = datetime.now() - timedelta(0.084)
default_args = {
'owner': 'airflow',
'start_date': two_hours_ago,
}
dag = DAG('import_dna_data',
default_args=default_args,
schedule_interval=timedelta(minutes=15))

The quick solution is to modify the url parameter num_runs=25 to something higher. Eventually the UI should have 2 form elements for anchor_date (default = now) and num_runs (default=25). I'll rename this issue and keep it open until we get to it.

https://github.com/airbnb/airflow/pull/344


ClearColorConfig::None doesn't correctly disable clear behavior

Bevy version
0.13 (main branch).
What you did
Configured a simple 3d scene with ClearColorConfig::None on the only camera.
What went wrong
The screen is cleared each frame, instead of persisting draws between updates.
Additional information
Likely stemming from changes in https://github.com/bevyengine/bevy/pull/10325.
0.12:
0.13:

How severe is this, and can you work around it?

Simple repro: modify the render_to_texture to use ClearColorConfig::None. The "inner brown cube" should be all smeary, but it is not.

@alice-i-cecile  We're porting Nannou to Bevy (https://github.com/nannou-org/nannou/issues/953), and this is pretty fundamental to supporting a Processing like "sketch" creative coding setup (i.e., where the user "sketches" on a canvas). We're just getting started and probably won't be 100% baked until closer 0.14, but we'd ideally like to be able to track a stable release during our development for previews rather than following main.

I make use of this for a similar feature to nannou. I don't believe there is a work around that doesn't come with some performance loss. The simplest I can think of is keeping last frame's texture around so you can bind it when rendering the next frame and sample it, but that is a non-trivial amount of code across both rust and wgsl and comes with a perf hit.


rough proof of concept of swapping by using type member aliasing

this probably leaves options for swapping but also could enable components declaring their own container type. theoretically should work fine if the strong types are inheriting the container type. it's hacked right now so don't actually accept it, but you can use it as POC

Coverage remained the same at 100.0% when pulling 8fb76fe564e6a06b4a78c6bfa6870b7dea09e122 on pgruenbacher:proof-swapping into 7bac69f360125ad5c29d931b4f9858b47236b161 on skypjack:master.

I like to think that if this allows custom containers, then it can help enable reactivity by having containers that hole space for the old and updated values maybe...

I think I don't get what you mean with:

by having containers that hole space for the old and updated values maybe

I think I don't get what you mean with:

by having containers that hole space for the old and updated values maybe

idk really either. I just figured that if reactive system were implemented by EnTT it would need a custom container that holds both old and new values in memory.

Oh, well, not sure we have to maintain in memory both old and new values. It seems the widely accepted approach for that is to collect entities that changed and that's all, when you iterate them all what you can access is the current version of the component. If you really want both the values, you'll be still able to listen to the same event that fills the reactive system btw.

I'm closing this because swapping the pools this way would break groups and I can't find an easy way to work around it.
We need a better approach to allow double buffering transparently, probably an in-pool automatism achieved with a specialization of sparse sets.
That said, the idea of exposing the actual type to use is smart and I'll try to elaborate in this direction to find a solution. :+1:

swapping pools only breaks groups I think if there are groups that own one of the types, so perhaps one way would be to disallow groups owning types that are swappable. you can still partially own a swapped type though I think...

Yeah, but owning also swappable types would be great for the performance, mainly because it's likely that those types are key ones (usually we speak of graphics stuff or so in this case). :wink:
I think a solution like the one I want to experiment with for shared types could be applied also to dual buffering. More (hopefully) soon. :+1:


Add Yandex icon

app name: Yandex
pkg name: ru.yandex.searchplugin

Which style would you prefer? The Y icon or the Russian Я icon?

russian Я icon

Hello! Weʼre switching to a new system for icon requests in order to be able to better manage them. From now on, icon requests can be submitted here: https://forms.gle/Fx8vZAiWdW1Tyjo57. If your icon request hasnʼt yet been fulfiled, it has been copied to our new icon request database, meaning no action is required. Consequently, this issue will be closed.


Mention from read receipts list doesn't work

To reproduce:

Open a room, touch the read receipts list
Touch a user, then touch mention
The message box doesn't have the "User:" filled

Version is 0.5.3-dev (3e588a0)

Wow, amazed this is still open. Anyway, I reproduce it.


Add beta page

Beta page should use the same account pages (login) but should pull from dev-branch

Added in 105a8fe2


[WIP] api for defining inventory collections

DSL
A Persister can include ManagerRefresh::Inventory::AutomationManager to have access to all inventory collections an AutomationManager usually persists. Then we call the DSL has_inventory to define a method on the Persister that returns the InventoryCollection
Documentation
ManagerRefresh::Inventory::Core will have all CIs that are available for saving. For all Managers there is ManagerRefresh::Inventory::<Type>Manager which has all the CIs that are available for that Manager.
The developer can look at those files, or even better I'll add some introspection methods to query what is available for saving and what is required.

@Ladas @agrare @kbrock please have a look and let me know what you think

I am still not convinced I want to necessarily list all attributes manually, when I can introspect them. I will need to see how it looks in action and the benefits I suppose. :-)

Yeah, that's indeed debatable. Like ActiveRecord does not list attributes, but just uses the fields defined in the DB.
But imho this case is different.

We dont want every db field to be writable
Not every model will need / be allowed to fill every field (see e.g. Vm and Template in the same table)
Later we can have automated tests, if some fields dont get filled by refresh
We can have a list for documentation what fields are filled by which provider

@durandom right, but then you would need to list the attributes per provider and also per base class, so e.g. cloud_vm and amazon_cloud_vm? And maybe per Persister, if the Persister will use parser that fills a subset of attrs?

you would need to list the attributes per provider and also per base class, so e.g. cloud_vm and amazon_cloud_vm?

Yes 😄  - although one could do with some clever :except => [:attribute, :another_attr] magic.

And maybe per Persister, if the Persister will use parser that fills a subset of attrs?

Yes, sounds like a lot of extra work, but I guess in most cases you want to provide everything thats possible, then it's just has_inventory cloud_manager.vms

@agrare @kbrock @Ladas so, are you generally ok with the kind of DSL and putting the configuration into app/models/manager_refresh/inventory/automation_manager.rb ?
If so, I could create a more complete PR to have it reviewed by Fryguy

@agrare @durandom @kbrock so I have these https://github.com/Ladas/manageiq/tree/85ad5bf15b81d6de63ab3dfcda16c9bd9c485f16/app/models/manager_refresh/inventory_collection_default
Those are basically a hashes that you can just put to InventoryCollection.new and get an InventoryCollection for e.g. cloud vms.
Since these definitions are like 95% the same, for all clouds, I would like to have them on a shared place. But I prefer them being class methods, that you can call from anywhere. :-) Since my Persiters usually consists from ICs of more managers. And I also fetch those definitions from specs. So it;s really just a helper for me. :-)

@durandom for the DSL, I think this could work for me, hopefully it will not be more verbose than I have it now. :-)

@durandom I'd prefer this be a module.
At first, runtime data has been slipping into these configurations (e.g. @parent) Looks like you've been eradicating these. thanks.
But with this current dsl, provider specific configuration data is getting into the InventoryObjectCollection definitions. I think moving these definitions into a module and called via def extended will fix our problems. This is based upon the assumption that automation_manager is vendor specific vs the same for every vendor and just a glorified constant/global.
Maybe we could do a quick call on Monday or chat room? I really like how this is going...
BUT, there are just 1 or 2 very minor points that have me concerned.
basically:
Rails class level dsls (e.g. belongs_to) use symbols (they call public_send later), lambdas (to be called later), and hardcoded values. But the dsls never have you invoke a method at definition time.
Then, these are executed either at runtime, or after the db schema has been loaded.
I notice there are a few places in our setup code that really should be delaying the execution of code. The example of introducing the lambdas / blocks do help, but a few things are still sneaking in like the automation_manager call.

Thanks @durandom this is looking very nice. can't wait for next round of changes.

refresh will be so nice :heart: :-)

@kbrock @Ladas @agrare I've updated the code reflecting the results of our conversation.
Please have a look and be really rigorous on the code style and naming, because if we go this route it will act as a copy paste template 😄

I'm guessing we want to merge and then improve once we see where this breaks down in the amazon / dynamically created case.

@miq-bot remove_label wip

@kbrock ok, I think, I have just minor things we can solve later, so this looks good enough to merge for me :-)


one key interrupts another?

hi !
thanks for a lib it works on raspberry from windows ssh like a charm.
but when i use something like this:
if k == 'up': #forward
    mov.Forward(speed)
if k == 'down': #backward
       mov.Backward(speed)
if k == 'left':
        setServoAngle(servo, 140)
if k == 'right':
        setServoAngle(servo, 90)

and press 'right' (or 'left') it interrupts key 'up'(or 'down') even though i still keep pressing it.
how to resolve that ?

Hi! Sadly this is a limitation with this library, and mentioned in README. The key press detection method cannot read multiple keys at the same time. I would recommend pynput as an alternative, but it is a bit tricky to use through SSH.

i used to. pynput only works from linux like pc:


Multipart File Upload and useGETForQueries support

This extracts the logic for multipart file upload and useGETForQueries from graphql/client.dart, with accompanying tests
Major changes:

useGetForQueries argument to HttpLink
using http.Client.send instead of post
HttpLink stores uri as a Uri
I reworked HttpLink._serializeRequest into an exception handling HOF to handle the different paths, but really I think RequestSerializer should have a generic Serialized type which is http.BaseRequest for HttpLink. Otherwise it can't really handle the serialization concern IMO

This addresses some of #57

I also considered adding this optional termination logic, but I guess it's possible for servers to handle subscriptions?
    if (request.isSubscription) {
      if (forward == null) {
        throw RequestFormatException(
          originalException: AssertionError(
            "HttpLink is the final link, but cannot make subscription requests itself.",
          ),
          request: request,
        );
      }
      yield* forward(request);
    }

Link.split((request) => request.isSubscription, websocketLink, link); works alright, but I'm a bit worried about usability, as initially I did link.concat(websocketLink) and got confused by the serverside errors

@klavs right, idk why I thought testing .send(any) over and over again made sense 😅

recovered the old tests with isA().having statements
added a test group for useGETForQueries
broke multipart tests into a one for request/response
and made the multipart upload tests more intelligible (IMO)

Please update the changelog as well.

final useGetForThisRequest = fileMap.isEmpty && useGETForQueries && request.isQuery;
added useGETForQueries + gqlQueryWithFiles test to upload
Turned a todo into #117

idk why but multipack is failing:
Failed to precompile multipack:multipack:
/github/home/.pub-cache/hosted/pub.dartlang.org/multipack-0.1.2/bin/multipack.dart:11:33: Error: 'sortedTopologicalOrdering' isn't a function or method and can't be invoked.
      .sortedTopologicalOrdering()
                                ^^^...
##[error]Process completed with exit code 1.

Looks like a breaking minor change in https://pub.dev/packages/directed_graph
Fixing multipack...

multipack is now fixed.
It seems that you must run multipack pubspec clean

It isn't seeing any of the packages
pub global list | grep multipack
multipack 0.1.3
multipack --only gql_http_link pubspec clean
Unhandled exception:
"gql_http_link" is not an allowed value for option "only".

Usage: multipack <command> [arguments]

Global options:
-h, --help              Print this usage information.
-d, --since=<commit>    Consider only the changed packages.
-o, --only              Whitelist packages, skipping those not included for this command.
                        []
-s, --skip              Blacklist packages for this command.
                        []

Available commands:
  analyze   Run analyzer.
  exec      Execute any command.
  fmt       Run formatter.
  pub       Run pub.
  pubspec   Update pubspec.yaml

Run "multipack help <command>" for more information about a command.
#0      CommandRunner.usageException (package:args/command_runner.dart:95:7)
#1      CommandRunner.parse (package:args/command_runner.dart:123:35)
#2      CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:36)
#3      new Future.sync (dart:async/future.dart:224:31)
#4      CommandRunner.run (package:args/command_runner.dart:112:14)
#5      main (file:///Users/mjr/.pub-cache/hosted/pub.dartlang.org/multipack-0.1.3/bin/multipack.dart:54:16)
<asynchronous suspension>
#6      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#7      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

@klavs figured it out – the CI does git diff --exit-code pubspec.yaml so bumping the version (and any other changes to pubspec.yaml will break CI. So, I reverted my version bump

@micimize, Could you please fix the conflict introduced by me merging the PRs in the wrong order?

@klavs should be good to go now!


[turborepo] Windows VSCode terminal issues with Turbo UI

in my windows vscode terminal, pressing the arrow key moves 2 packages at a time, and pressing enter does nothing
https://github.com/vercel/turbo/assets/74945038/29fc34e2-8259-40cc-95da-cec7b7bdddad
also pressing ctrl+c keeps the logs in the same place

Originally posted by @imranbarbhuiya in https://github.com/vercel/turbo/discussions/7802#discussioncomment-8868920

Reopening as PR didn't address the screen not clearing.

@imranbarbhuiya I've been unable to reproduce the final two issues you reported. Can you update to the latest canary and verify the following are still happening?

Screen isn't cleared on Ctrl-C press? Are you just pressing Ctrl-C once?
Enter doesn't allow for a task to be interacted with: Is the task you're trying to interact with marked with either persistent or interactive?

If both issues are persisting, can you include your Windows build version?

https://github.com/vercel/turbo/assets/74945038/1c405607-eb0f-48b6-881f-75e68f8644f9
updated to canary, the arrow and enter issues are fixed now but the ctrl+c issue is still there. And yes I'm pressing ctrl+c only once but it prints ^C^C, also seems like a new issue got introduced. Check the above recording, after running the command, the package names get hidden. But when I press the arrow keys, it reappears.
my windows infos are
Edition	Windows 11 Pro
Version	23H2
Installed on	10-07-2023
OS build	22635.3350
Experience	Windows Feature Experience Pack 1000.22688.1001.0

I get the same issue on macOS when using this templatehttps://github.com/dan5py/turborepo-shadcn-ui

I have a similar problem with Windows 10. while I'm in interactive mode on any task, I can't navigate (scroll) through logs.


refactor remove non vec code for indexed column reader

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

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...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.07 seconds
load time: 634 seconds
storage size:<PHONE_NUMBER>5 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221227141024_clickbench_pr_69506.html


Support returning multiple results

As proposed in a comment, array filter could return all matched itens as value, when option multiple is true.

I agree. What I would really like to be able to do is:
var jsonQuery = require('json-query')

var data = {
  people: [
    {name: 'Matt', country: 'NZ'},
    {name: 'Pete', country: 'AU'}
  ]
}

jsonQuery('people[].name', {
  data: data
}) //=> ['Matt', 'Pete']

Instead of multiple: true something like this could also work:
// adding an asterisk inside selector would return all matching results instead of just first
jsonQuery('people[*country=NZ]', { data: data })

And in conjunction with @ofersadgat's PR, you could do this:
jsonQuery('people[*country=NZ].name', { data: data }) // outputs all of the names where NZ is country

I might give this a go and see how it works!


Switch example command to snapp project --example sudoku?

It makes intuitive sense, but requires more logic around required or optional params.

Let's not do this, unless we get feedback it's better. The current command works well


Installpage play

is this related to this pr? https://github.com/lnbits/lnbits/pull/1975

is this related to this pr? #1975

yes, it is merged into that branch now


Links don't work in generated pages

I'm generating the cached pages and noticing none of the links work - they are still going to the hash. All the links are coded as such in angular:
Contacts
And then the output looks like this from Phantom:
Shopping Cart
Shouldn't these links be somehow converted to the cached page url so google can find them? I'm doing something wrong here...
Thanks

Devin

If you are using the #! in your URLs, then that href looks to be correct. The URL in your HTML should not be the escaped fragment URL. It should just be the normal URL that you want crawlers and users to go to.
That being said, we don't recommend using the #! in your URLs. We recommend using normal html5 push state URLs with the <meta name="fragment" content="!"> tag in the  of your pages if possible.

If you are using #! URLs on your site, the crawlers that support the escaped fragment crawling protocol will see those URLs and access them like ?_escaped_fragment_=/contacts/ by automatically replacing the #! with the ?_escaped_fragment_= query parameter. The Prerender.io middleware will see that escaped fragment query parameter and send the request to Prerender.io.
You are right that the crawlers that don't support the escaped fragment crawling protocol will only ever see your homepage if you are using #! URLs. If you switch to html5 push state URLs, then everything will work just fine.


[build] Add a new flag to disable cross-compiling the compiler

This is useful when building cross-compilation toolchains where you want the stdlib and corelibs cross-compiled but don't want the Swift compiler cross-compiled too with --cross-compile-hosts. This pull demonstrates using the new flag for the Android build presets.
I'm submitting this after discussing cross-compiling the corelibs on the Android CI with @drodriguez, as the easiest way to do so after #33724 is by using --cross-compile-hosts but we don't want to cross-compile the Swift compiler too.
To build this, I first had to unpack three Termux packages for Android, libandroid-spawn, libcurl, and libxml2 (I also unpacked libicu but the Android CI does that differently) as detailed here, because those libraries are dependencies of swift-corelibs-foundation.
I then passed that swift-android-aarch64-24-sdk path into this build-script invocation with the July 9 trunk source snapshot to build an Android cross-compilation toolchain that includes the corelibs:
./swift/utils/build-script -RA --android --android-ndk /home/butta/src/android-ndk-r21e/
--android-arch aarch64 --android-api-level 24
--android-icu-uc /home/butta/swift-android-aarch64-24-sdk/usr/lib/libicuuc.so
--android-icu-uc-include /home/butta/swift-android-aarch64-24-sdk/usr/include/
--android-icu-i18n /home/butta/swift-android-aarch64-24-sdk/usr/lib/libicui18n.so
--android-icu-i18n-include /home/butta/swift-android-aarch64-24-sdk/usr/include/
--android-icu-data /home/butta/swift-android-aarch64-24-sdk/usr/lib/libicudata.so
--xctest --cross-compile-hosts=android-aarch64 --install-swift --install-libdispatch
--install-foundation --install-xctest
--cross-compile-deps-path=/home/butta/swift-android-aarch64-24-sdk
--cross-compile-build-swift-tools=0 --llvm-ninja-targets-for-cross-compile-hosts=help

swift-corelibs-foundation recently added a dependency on some posix_spawn functions on Android, which as discussed on the forum isn't officially supported before Android API 28, so I linked against Termux's backported library with these additional patches:
diff --git a/swift/stdlib/public/Platform/CMakeLists.txt b/swift/stdlib/public/Platform/CMakeLists.txt
index a7a60a063d9..8894800509a 100644
--- a/swift/stdlib/public/Platform/CMakeLists.txt
+++ b/swift/stdlib/public/Platform/CMakeLists.txt
@@ -99,6 +99,7 @@ foreach(sdk ${SWIFT_SDKS})
         OUTPUT "${glibc_modulemap_out}"
         FLAGS
             "-DCMAKE_SDK=${sdk}"
+            "-DSDK_INCLUDE_PATH=${SWIFT_${sdk}_${arch}_ICU_UC_INCLUDE}"
             "-DGLIBC_INCLUDE_PATH=${SWIFT_SDK_${sdk}_ARCH_${arch}_LIBC_INCLUDE_DIRECTORY}"
             "-DGLIBC_ARCH_INCLUDE_PATH=${SWIFT_SDK_${sdk}_ARCH_${arch}_LIBC_ARCHITECTURE_INCLUDE_DIRECTORY}")

@@ -142,6 +143,7 @@ foreach(sdk ${SWIFT_SDKS})
         SOURCE "${glibc_modulemap_source}"
         OUTPUT "${glibc_sysroot_relative_modulemap_out}"
         FLAGS "-DCMAKE_SDK=${sdk}"
+              "-DSDK_INCLUDE_PATH=${SWIFT_${sdk}_${arch}_ICU_UC_INCLUDE}"
               "-DGLIBC_INCLUDE_PATH=${absolute_libc_include_path}"
               "-DGLIBC_ARCH_INCLUDE_PATH=${absolute_libc_arch_include_path}")

diff --git a/swift/stdlib/public/Platform/bionic.modulemap.gyb b/swift/stdlib/public/Platform/bionic.modulemap.gyb
index e44f9082653..09a92df50bb 100644
--- a/swift/stdlib/public/Platform/bionic.modulemap.gyb
+++ b/swift/stdlib/public/Platform/bionic.modulemap.gyb
@@ -185,7 +185,7 @@ module SwiftGlibc [system] {
       export *
     }
     module spawn {
-      header "${GLIBC_INCLUDE_PATH}/spawn.h"
+      header "${SDK_INCLUDE_PATH}/spawn.h"
       export *
     }
     module syslog {
diff --git a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
index 016bf294..1473f4dc 100644
--- a/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
+++ b/swift-corelibs-foundation/Sources/Foundation/CMakeLists.txt
@@ -167,6 +167,10 @@ if(CMAKE_SYSTEM_NAME STREQUAL Windows)
     $<TARGET_OBJECTS:CoreFoundationResources>)
 elseif(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
   target_link_options(Foundation PRIVATE "SHELL:-no-toolchain-stdlib-rpath")
+  if(CMAKE_SYSTEM_NAME STREQUAL Android)
+    target_link_libraries(Foundation PRIVATE android-spawn)
+    target_link_directories(Foundation PUBLIC ${CMAKE_FIND_ROOT_PATH}/usr/lib)
+  endif()
 endif()

Alternatively, since the build only fails when linking plutil against libFoundation.a and we can't run the tests for the cross-compiled corelibs, we could hack out building a static plutil or revert the small pull adding that dependency, as done in vgorloff/swift-everywhere-toolchain#116.
@drodriguez, let me know what you think.

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 90f4c15bf87f039691be43ee86057637245847b2

Build failed
Swift Test OS X Platform
Git Sha - 90f4c15bf87f039691be43ee86057637245847b2

I will have to re-read and play around with the posix_spawn problems to understand them. In general, I would say that things should work with vanilla Android, without special libraries or headers.

The problem is that apple/swift-corelibs-foundation#2928 added a dependency on some posix_spawnattr_* functions that were not added to Android till API 28, whereas this preset builds against API 21. There are various ways we could remedy that, such as asking CoreFoundation if it found those APIs and only using them if available?

let's see if this works in macOS and Linux and we are not going to break another platform by mistake

A single failing test because I added a new path variable to the Android preset, didn't know I had to do something else for that, will fix it.

I added a line to fix the single failing test on the CI and fixed the preset arch issue we discussed above.
@drodriguez, I think this is ready for you to try on your local version of the Android CI. I think the only remaining issue will be adding library dependencies that the corelibs depend on to the Android CI, which will require the Termux packages I mentioned above for the Android corelibs and perhaps the native Ubuntu packages to build the native linux corelibs, if those Ubuntu packages like libcurl aren't already installed on the Android CI.

The problem is that apple/swift-corelibs-foundation#2928 added a dependency on some posix_spawnattr_* functions that were not added to Android till API 28, whereas this preset builds against API 21. There are various ways we could remedy that, such as asking CoreFoundation if it found those APIs and only using them if available?

I remember that code 😀. I don't think anyone will object if we switch (again) all the direct usages of posix_spawnattr_* into some _CFPosixSpawn* equivalents. The treatment of the attributes was not done, but as long as it is limited to just POSIX_SPAWN_SETPGROUP, maybe it is doable with setpgid(0, /* the pgroup value */) in _CFPosixSpawnImplPre28 after the comment // This is the child (probably before the actions are processed).

@swift-ci please test

Alright, I will look into implementing that CF polyfill on top of that posix_spawn wrapper you added a couple years ago and submit a pull for that.

Build failed
Swift Test Linux Platform
Git Sha - 26f0200b8d9f5723533cb763ec2392c39e3de6f9

Build failed
Swift Test OS X Platform
Git Sha - 26f0200b8d9f5723533cb763ec2392c39e3de6f9

Gah, playing whack-a-mole with the non-Android CI: I had missed that preset variables need that s at the end, actually ran the single failing test this time to make sure it works now.

@swift-ci please test


bug: Delete old generated code

Expected behavior
When a type is removed from the GraphQL schema, generateJava task should delete the previous generated classes.
Actual behavior
The old classes are kept so it is necessary to delete them manually.
Steps to reproduce

Create a type in the schema and run generateJava
Remove that type from the schema, run generateJava and check how the old type is still there in the generated directory.

That is not a recommended practice even if it works.

We will look into a fix in the next week or two. In the meantime, if this is a more immediate problem for you, feel free to open a PR as we welcome contributions.

I would have to check, but I think that deleting all files from the output directory before the codegen should be enough, as input are the same the task would still be cacheable and wouldn't run if they haven't changed 🤔


Keyboard shotcut to insert date and time in any text field

Description of the new feature / enhancement
It is often necessary to insert the current date and/or time into emails, documents, file names, source code, and all sorts of other places.
A customizable keyboard shortcut to insert the current date, and the current time, would be really useful. Ideally the format would be configurable, or at least use the user's current locale settings.
Scenario when this would be used?
Entering text into documents, file names, commands, and more.
Supporting information
No response

This feature does not address the suggestion from https://github.com/microsoft/PowerToys/issues/28043
There is no way to add the current date on any field.


SAS area discontinuities in COSMO tessellation

Describe the bug
There is a rare bug in COSMO that causes temporary jumps in the solvent accessible surface (SAS) area during a geometric distortion of a molecule. This has been observed for large proteins, with a magnitude of the jump being a few percent of the baseline SAS area.
To Reproduce
This bug has been reported to me by Jimmy Stewart as a known issue for a long time that isn't believed to be resolved, but that also doesn't have an isolated example of occurrence.
Expected behavior
The SAS area should be a smooth function of any geometric distortion, although the tessellation process might cause some very minor artifacts on top of the idealized behavior for a union of atom-centered spheres.
Operating system
This is likely to be an algorithmic problem and not dependent on OS.
Additional context
This bug is being reported here so that MOPAC users can be made aware of it, and so that an alert user might spot an example of the bug and report it here so that it can be isolated and fixed.

Is there a simple test how the discontinuity can be observed?

Jimmy Stewart noted seeing this in tests in the past where he adjusted the molecular geometry in some continuous manner that he did not recall or record in detail. The discontinuity is in the COSMO AREA output, and presumably also in theCOSMO VOLUME. The simplest way to set up appropriate tests would be to either relax a molecular geometry or distort it in some random way, and then consider a linear interpolation between the original and distorted/relaxed geometry. At some point, I might set up some randomized tests to look for the problem. Jimmy considers the problem rare enough that I am unlikely to find it with random tests, so it isn't a high priority.


Installation on Apple M1

I downloaded the repo on my machine. I installed Conda.
If I run:
conda env create -f environment_cpu.yml
It always tells me:
EnvironmentFileNotFound
What am I missing?

I downloaded the repo on my machine. I installed Conda.
If I run: conda env create -f environment_cpu.yml
It always tells me: EnvironmentFileNotFound
What am I missing?

You'll need to navigate to the "neural-amp-modeler" folder to get that command to run

I am in that folder... I managed to run it by just using:
conda env create -f environment.yml


Incorrect wording in CreateStringClaim description?

Currently reads "Creates a string claim from the provided input parameter in the policy." Should the word "policy" instead be "transformation"?

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

ID: 536ec32c-e27a-594d-9539-0d7d1cb8a48e
Version Independent ID: 9f46353d-7dcd-0d5a-5d65-aeeda3922e39
Content: String claims transformation examples for custom policies - Azure AD B2C
Content Source: articles/active-directory-b2c/string-transformations.md
Service: active-directory
Sub-service: b2c
GitHub Login: @mmacy
Microsoft Alias: marsma

Hi @dotnetgator, thanks for this feedback. Checking now.

I agree that this would be more accurate and made a PR to update the text. https://github.com/MicrosoftDocs/azure-docs-pr/pull/104734


Update README.md

Added IPCO 2020 and 2021  APPROX graph theory and probablistic methods and Parameterized algorithms lectures

Thank you @HaoSun1. Please modify source.json inside big-list-builder folder. You will find it even more readable. I think also Parametarized Algorithms 2020 Warsaw is better on Algorithms section. Feel free to have a conversation with me

I forgot to maintain this pull request. I am aware how busy grad students are. I can add the resources by myself, if you don't wish to tinker with the json file.

I prefer to add aggregating lists links, so that we become more inclusive of communities.


Incorrect crosshair label text color

Lightweight Charts Version: 4.0
Steps/code to reproduce:
Apply crosshair options
crosshair: {
  horzLine: {
    labelBackgroundColor: 'rgb(255, 255, 255)',
},

Actual behavior:
The color of the price axis label text is the same as the background color
Expected behavior:
The color of the price axis label text is NOT the same as the background color
Screenshots:

CodeSandbox/JSFiddle/etc link:
https://jsfiddle.net/kirchet/rd8w2qmy/1/

Most likely related to a similar issue that was happening with the price lines.
https://github.com/tradingview/lightweight-charts/pull/1287/commits/b2e2adca9474aeb70c3460ca9f3c86bc50ed4c13#diff-5b681105d6e4ff65f282d9bbfcf6ba6913181200caa79c32749c0b0316e2c203


Enable zero downtime change of client-ids in CF-Deployment.

Right now during a bosh deploy there is downtime between when UAA rolls and updates a secret and when the client rolls (ssh-proxy or tcp-emitter etc).
There needs to be a mechanism to allow for 2 passwords (as is possible using the "change-secret REST call) during the bosh deployment.
It would be good to enable an optional second password for a bosh deploy so both the old and the new password are valid at the same time.
We could "try" to do this with UAAC and then updating the clients only but again that is not in sync with how manifests in cf-deployment are generated as the same variable is used in the client definition in UAA as in the secret reference in the component (like ssh-proxy).
We need to have a built in bosh deployment method to roll and update client ids that are included in the bosh manifest for CF.

to me , should be solved with
https://github.com/cloudfoundry/uaa/pull/1313


Does Appium-for-Mac supports  WebView browser that is embedded in a Mac OS X desktop application？

i was able to successfully automate mac QQ desktop application through appium-for-mac,and it was fine to get xpaths , but the problem is when ever i try to build the xpath for my company app (which is WebView browser that is embedded in a Mac OS X desktop application), it does not generate the xpath
QQ xpath:
"/AXApplication[@AXTitle='QQ']/AXWindow[@AXSubrole='AXStandardWindow']/AXButton[@AXIdentifier='Sessions']"
my company webview app(all elements are like this ):
"/AXApplication[@AXTitle='RCE']/AXWindow[@AXTitle='XX企业版' and @AXSubrole='AXStandardWindow']/AXScrollArea"
I hope you can reply as soon as possible，Thank you very much for your reply

@cassie9 embedded web views are problematic. From the outside of the application, the accessibility API's don't have access directly into the web view, so it can't always get to the element. Is your application Electron based?

@stuartbrussell-intuit Thanks for your fast reply!
yes,my application based on Electron .Is there any solution or other advice？Thanks again！
The source code screeshot as follows :

I don't have the link handy, but somewhere out in web land you can find references to Electron's reluctance to allow macOS accessibility into its web views. Basically there is a setting you can change and it should work. I haven't tried it myself.

for testing electron apps, why not use spectron or chromedriver?

That would work nicely for the web views, and it also let's you use genuine web XPaths instead of the AXPaths used by AfM. To get into parts of the app outside web views, such as the menu bar, you still need AfM. To do both, your script can create two webdriver instances. One is for spectron or chromedriver, the other is for AfM.  As long as each uses a different endpoint, you can use both concurrently in one script.

Is the answer for this no then? Can we not automate a WebView within a Mac app?

Is there any solution for this issue ?
Or use some hotkeys event to instead manual click.

Looks like you need to enable accessibility in electron, as by default it is off.
Doing that allowed me to get entire accessibility tree (including the web view).
I did it by enabling accessibility on macOS (CMD+click touch ID 3 times).
But looks like it also can be done programmatically
https://www.electronjs.org/docs/tutorial/accessibility

But looks like it also can be done programmatically
https://www.electronjs.org/docs/tutorial/accessibility

Doing that programmatically also returned the full tree.


support valueMap() to fetch all properties of vertices

What do these changes do?

support valueMap() in gremlin grammar
translate valueMap() to expression<EMAIL_ADDRESS>and select('a').by(valueMap()) to<EMAIL_ADDRESS>

Related issue number

Fixes #1622

Codecov Report

Merging #1623 (9b2de88) into main (76d3388) will decrease coverage by 32.81%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #1623       +/-   ##
===========================================
- Coverage   73.15%   40.34%   -32.82%
===========================================
  Files          89       89
  Lines        9727     9727
===========================================
- Hits         7116     3924     -3192
- Misses       2611     5803     +3192

Impacted Files
Coverage Δ

python/graphscope/tests/unittest/test_java_app.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...ython/graphscope/tests/unittest/test_cython_ast.py
0.00% <0.00%> (-100.00%)
:arrow_down:

...ython/graphscope/tests/unittest/test_serailaize.py
0.00% <0.00%> (-100.00%)
:arrow_down:

python/graphscope/analytical/udf/patch.py
3.47% <0.00%> (-96.53%)
:arrow_down:

python/graphscope/tests/unittest/test_lazy.py
0.00% <0.00%> (-96.30%)
:arrow_down:

...thon/graphscope/tests/unittest/test_scalability.py
0.00% <0.00%> (-96.16%)
:arrow_down:

python/graphscope/tests/unittest/test_app.py
0.00% <0.00%> (-95.66%)
:arrow_down:

...hon/graphscope/tests/unittest/test_create_graph.py
0.00% <0.00%> (-92.00%)
:arrow_down:

python/graphscope/tests/unittest/test_graph.py
0.00% <0.00%> (-84.93%)
:arrow_down:

python/graphscope/tests/unittest/test_context.py
0.00% <0.00%> (-81.04%)
:arrow_down:

... and 39 more

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 76d3388...9b2de88. Read the comment docs.


Completely useless, harmful for sites and anti-visitor

Hello, longterm webdeveloper and nowadays Linux Cloud admin here,
in all my years, google recaptcha has been and (taking into account how googles ability to provide good services has stagnated in the past years) probably will always be the worst thing to protect your site.
It is not only completely inefficient in preventing sofisticated bots from wrecking havok, it also blocks out roughly 1/3 of legit user interaction.
I have carefully analyzed statistics (before and while using recaptcha) and have found out, that when a legitimate user is prompted with this recaptcha, theres a 1/3 chance he'll just get annoyed and leave.
And I've been there myself.
After just having to sit through 5(!!!) recaptcha images in an online store, I've given up ordering.
During my past career as a webdeveloper, everytime we switched from google recaptcha to a more simple version (and instead used proper filtering of malicious traffic), our site interactions (and I'm talking about legitimate users here, not bots) have gone back up.
TLDR - google recaptcha is both harmful to site owners and visitors while also completely failing to provide what it has been created to do: stop bots.
Please please burry this service already. We're all sick and tired of it.

Do you know about a solution like CleanTalk Anti-Spam?
https://github.com/CleanTalk/php-antispam

Do you know about a solution like CleanTalk Anti-Spam? https://github.com/CleanTalk/php-antispam

My post is not about finding an alternative.  Sadly, it's used in 2/3 of all Websites. Which is horrible for visitors

I agree with you as a web developer myself. However, as a software engineer, I think we should always seek solutions. I really think Google should take into consideration what you're feeling and understand it is a feeling shared right around. However, I don't think throwing away all the progress and knowledge that was gained by this project is the right way. Would you be interested in building something different? And how would you go about it?

I agree with you as a web developer myself. However, as a software engineer, I think we should always seek solutions. I really think Google should take into consideration what you're feeling and understand it is a feeling shared right around. However, I don't think throwing away all the progress and knowledge that was gained by this project is the right way. Would you be interested in building something different?

Repo is just for PHP client issues. This is about the reCAPTCHA service.


ClientConnectorSSLError when trying connect to PyPi

This happens every time I try to execute dephell command that needs connection with PyPi:
$ dephell deps add --envs dev test -- pytest
WARNING empty root passed
ERROR ClientConnectorSSLError: Cannot connect to host pypi.org:443 ssl:None [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)]

Other tools (twine, pip, Pipenv) work without any issue
Any ideas?

Thank you for the issue. Please, run the command with --traceback --level=DEBUG and provide output.

Yep, here it is:
$ dephell deps add --envs dev test --traceback --level=DEBUG -- pytest
WARNING empty root passed
DEBUG merge...
ERROR ClientConnectorSSLError: Cannot connect to host pypi.org:443 ssl:None [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)]
Traceback (most recent call last):
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
    await self._loop.create_connection(*args, **kwargs))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 820, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 846, in _create_connection_transport
    yield from waiter
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/sslproto.py", line 505, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/sslproto.py", line 201, in feed_ssldata
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/cli.py", line 77, in main
    result = task()
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/commands/deps_add.py", line 50, in __call__
    resolved = resolver.resolve(level=1, silent=self.config['silent'])
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/controllers/_resolver.py", line 86, in resolve
    resolved = self._resolve(debug=debug, silent=silent, level=level, spinner=spinner)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/controllers/_resolver.py", line 113, in _resolve
    no_conflicts = self._apply_deps(deps, debug=debug)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/controllers/_resolver.py", line 190, in _apply_deps
    conflict = self.apply(dep)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/controllers/_resolver.py", line 49, in apply
    if not other_dep.compat:
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/models/dependency.py", line 148, in compat
    for group in self.groups:
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/models/groups.py", line 169, in __iter__
    self._load_release_deps(release)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/models/groups.py", line 148, in _load_release_deps
    release.dependencies = loop.run_until_complete(gathered)[0]
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/controllers/_repos.py", line 141, in get_dependencies
    return await repo.get_dependencies(name=name, version=version, extra=extra)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/repositories/_warehouse/_api.py", line 135, in get_dependencies
    deps = await asyncio.gather(asyncio.ensure_future(task))
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/dephell/repositories/_warehouse/_api.py", line 236, in _get_from_json
    async with session.get(url) as response:
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in __aenter__
    self._resp = await self._coro
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/client.py", line 476, in _request
    timeout=real_timeout
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/connector.py", line 522, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/connector.py", line 854, in _create_connection
    req, traces, timeout)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/connector.py", line 992, in _create_direct_connection
    raise last_exc
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
    req=req, client_error=client_error)
  File "/Users/rocky/.local/share/dephell/venvs/dephell/lib/python3.6/site-packages/aiohttp/connector.py", line 929, in _wrap_create_connection
    raise ClientConnectorSSLError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host pypi.org:443 ssl:None [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)]

See: https://github.com/aio-libs/aiohttp/issues/2822

So, it looks like on macOS (and other systems maybe?) aiohttp won't work out of the box with default certificate.
Using certify will solve the problem

Can we fix it on dephell level?

Yes, just use
ssl_context = ssl.create_default_context(cafile=certifi.where())
connector = aiohttp.TCPConnector(ssl=ssl_context)
async with aiohttp.ClientSession(connector=connector) as session:
    ...

How about adding to project function like this

Another option is to create this function:
def get_client_session(**kwargs):
    ssl_context = ssl.create_default_context(cafile=certifi.where())
    connector = TCPConnector(ssl=ssl_context)
    return ClientSession(connector=connector, **kwargs)

and then use:
async with get_client_session() as session:
    ...

This will not break any existing logic in project

Why is it not a default behavior in aiohttp?

Why isn't it a default behavior in aiohttp?

As asvetlov mentioned here:

aiohttp does nothing special with certs but uses built-in Python support.
In turn Python is not shipped with certificates bundle but uses OS one.
requests uses certifi for root certificates source. This approach has own advantages and disadvantages. Several years ago we decided to not rely on custom certificate libraries.

So they know about the issue, but consider that it's ok

This approach has own advantages and disadvantages.

Of course, @asvetlov made the decision on the base of some pros and cons of both possibilities. However, these differences aren't clear to me. Will we get in troubles by switching on certify?

Will we get in troubles by switching on certify?

As the requests uses certify as well many other libs (e. g. aiogram that also uses it with aiohttp), I don't think so. But we'll see 😄

The main certifi question is: "who and when upgrades this package"?
Is it ok for you to have 3-years old certifi installed?

What do you mean? Do you mean users never upgrade site-packages or certify developers don't do new bugfixes?

certifi devs are great and responsible, users are not.
You as the library author cannot control it.
An OS has a centralized auto-upgrade tool that is executed periodically and keeps it more-or-less up to date.
There is no such thing for python packages, and people are lazy.
Using aiohttp==0.17 is perfectly fine if your project was developed 5+ years ago and "just works". But using 5 years old root CA is a security hole, this is the difference.

@asvetlov, thank you :)
Ok, in most of the cases connect to pypi, github, and custom repositories. I think, certify works here. Especially because dephell installs in it's own venv and has it's own actual certify version. Also, vendorizing on the way.


feat: enhance support for custom library JS and CSS

[x] Add defer, async, attr options for JS
[x] Add defer option for CSS
[x] Remove test.js before merging
[x] Remove test.css before merging
[x] Update config.toml for exampleSite
[x] Update example config.toml
[ ] Add docs "How to import third-party JavaScript and CSS files in DoIt"
[x] Set the testing series as draft and hide them on hugodoit.pages.dev

Close #450
Signed-off-by: HEIGE-PCloud<EMAIL_ADDRESS>

I shall move the documentation to a different branch since it will take some more time to write.


Convert to plugin architecture?

I very much appreciate this page, and the idea of pushing views into reusable components.  But I'm wondering if this can be pushed to the next step, and have these components loaded as plugins?  This way the website wouldn't require a direct dependency to the component?
I suspect this is possible based on the following successful experiment:

I built the above project/library combo with the dependency, and it created a .deps.json file.  This is able to find the library views ok.
I built the above project/library combo, but this time w/out the dependency.  It created a different .deps.json file.  This time, it was NOT able to find the library views.  (Expected)
However, if I overwrite the .deps.json file with the original .deps.json file, when I run the project, it finds the library views.

This shows me it is possible to build the project w/out a direct dependency on the library, and still be able to make use of it at runtime, by manipulating the .deps.json file.  (Hmmmm, I wonder if this is a security risk?)
Anyway, it's a hack, and would prefer to load the library views as a plugin.

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

ID: 9fd019c7-ceb7-6ef3-26ba-6b44341b6fc5
Version Independent ID: fd116d00-0dc7-efaf-c714-34d77b345a05
Content: Reusable Razor UI in class libraries with ASP.NET Core
Content Source: aspnetcore/razor-pages/ui-class.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@pranavkm please comment.

Instead of dropping code into the running app we would recommend using a module system, like the one Orchard Core provides. Orchard Core modules allow you to build modules as NuGet packages that can be added to your application on the fly. And you can use them as a low level framework without adopting the entire Orchard CMS infrastructure. Check out https://github.com/OrchardCMS/OrchardCore.Samples to see what this looks like.
https://github.com/aspnet/Mvc/issues/7825#issuecomment-392129629 has some relevant comments about why dynamically loading assemblies might not be a very good idea.

Some clarification: I'm not trying to bring in multiple plugins, only one plugin that would override a small set of views.
My particular situation is trying to port to .NET Core a legacy system applied to many different clients.   Though each client shares a common history, each client system has unfortunately diverged as it became more customized to that particular client.
I'm researching an idea around (a small set of) client customized views, each client all sharing the same controller and model.  Theory being compiling the client views separately, and using the appropriate client view library at run-time.  (Additional issues such as CSS, JS, images, etc. to be dealt with later)
This article comes so close by offering a means of putting the views into a library.  It's just that to work a project reference to the library must exist.  It's purpose isn't to help the project compile, but rather the library is copied to the /bin/ folder, and the .deps.json file updated to load the library at run-time.

I downloaded OrchardCore, got it to build and run the OrchardCore.Mvc.Web sample project.  However, this demo is showing that a project reference to the modules it loads is still required.  I'm trying to break this coupling.  At the moment, it looks like Orchard is not going to help.

@eric-914 What you are trying to do is to load an assembly without a direct reference to that assembly, right? And then have that assembly override internal components?
If so... that yeah, we took that support out of Orchard Core for a number of reasons.
What you could do is to... when the application is loaded, look inside a predetermined folder for any order assemblies, load those up in to your DI. Make sure you load them last so they over ride any internal components.

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


Code Actions for moving auto specializations into callables

A code action should be provided if a user uses
adjoint auto;
controlled auto; or
adjoint controlled auto;
so that these specializations are moved into the callable. For example:
Operation Foo () : Unit  is { //blah}

@ryan-moreno Hi Ryan!
What is the status on this? Are you still working on it? Do you need/want help?
In any case, could you please add a link to the branch where you started the work? Thanks!

I'll leave this open in case someone wants to pick this up. It would be a really good code action to have, but we won't get around working on adding any language server features in the near future.

Hi Bettina, sorry I missed your earlier message! I've been busy with school starting again, but if no one has picked it up and I find some extra time, I'll take a look at it again. Thanks for your help getting started on it.


Parse only the parameters needed to run statement

Good morning Sirs,
Sometimes I have a type with many fields. And sometimes, it's much easier to just pass the type to the statement and execute the command.
The main problem is that the driver tries to read and parse all the parameters, even when I'm not using them on the query itself. For example, I want to create and user with Id as string and name as string. But the type itself also has more fields like Date of Birth, that won't be used inside the statement but can throw errors like "cannot understandvalue with type System.DateTime" and so on.
Of course, I can use many strategies to prepare the statements of the parameter. But, is there a way to just try to parse the parameters that actually will be used, ignoring additional parameters that actually won't be used?

It is a nice idea to just pack the parameters that are needed. However the driver dose not do any Cypher parsing but just passes the Cypher to the server. So right now the driver is not clever enough to know what parameters are needed for the Cypher statement. Building a simple Cypher parser is not planned for drivers. So unfortunately we will not be able to only pack the parameters that are used in the Cypher statement.
The recommended way to provide the parameters are actually via a dictionary, such as:
var result = session.Run(
"MATCH (knight:Person:Knight) WHERE knight.castle = {castle} RETURN knight.name AS name",
    new Dictionary<string, object> { { "castle", "Camelot" } });

So I would recommend you to pre-parse your parameters in a dictionary and call Run(string, Dictionary).
Sorry for not really being helpful :)

Sure... I totally understand the point and in fact, I moved to a dictionary-based solution and it worked well.
Thanks for you time :)


Determine and notify if an UnsplashPhoto is Sponsored

Unsplash has (recently?) added Sponsored photos. This isn't part of the official API (yet?) but there is a way to find out if an image is sponsored or not so we should use this to determine and show if a photo is sponsored

Just for reference, here's currently how Unsplash deals with sponsored images on their web page:
Without hovering over:

When hovered over:

So, it kind of just blends in when it's not hovered over which is really dumb. Anyway I'm thinking of having that tiny sponsored icon show for sponsored images or just a simple sponsored text in Bold, something obvious but still unobtrusive that maybe links to Unsplash sponsorships the way it currently does on the site. This would also have to apply to when viewing a single photo as well.


ARRAY IN JSON VBA

hello, my knowledge as a developer is not that good, but by collecting code on the web, I was able to adapt the content to what I really wanted.
The question is that I am specifically working with a remote version of Limesurvey (a survey software). But apparently, the software, to make remote requests uses json. The case is that I try to show certain attributes, which are an array and I don't know how to proceed to do this adapted to VBA...
If someone has some idea and can tell me how, even if it's the introduction to learn how to do this, since I've really been several weeks and I can't get this...
I show you the code in json:
{
"method":"export_responses",
"params": [
"U053k2PTgDSifiZKkfZUQ5v6wlrbfsnt",
"433682",
"csv",
null,
"complete",
null,
null,
"1",
"30",
["firstname", "lastname"]
],
"id":1
}
I show you the code in VBA-JSON:
Sub export_limesurvey()
Dim key As String
Dim limeuser As String, limepass As String, limeurl As String, URL As String
Dim jsonText As String, jsonObject As Object
Dim SurveyID As String, DocumentType As String, LanguageCode As String, CompletionStatus As String, HeadingType As String, ResponseType As String, FromResponseID As String, ToResponseID As String
Dim Fields As VBA.Collection
Dim export64 As String, export64Decoded As String
limeurl = "URL CENSORED"
limeuser = "CENSORED"
limepass = "CENSORED"
SurveyID = Worksheets("Hoja2").Range("A6").Value 'Valor entre comillas para indicar ID encuesta a exportar (He hecho referencia a celda)
DocumentType = "csv" 'Tipo de formato en el que se desea exportrar (pdf,csv,xls,doc,json)
LanguageCode = "es" 'OPCIONAL: indicar idioma de exportación (solo si la encuesta está en ese idioma)
CompletionStatus = "complete" 'Exportar encuestas completas, incompletas o todas (complete,incomplete,all)
HeadingType = "full" 'Impresión de los titulos de las encuestas; códigos, todo o abreviados (code,full,abbreviated)
ResponseType = "long" 'Mostrar los valores de las preguntas de selección; corto para código y largo para mostrar valores (short,long)
FromResponseID = "0" 'Indicar desde el primer número de respuesta en la encuesta desde el que se desea exportar
ToResponseID = "10" 'Indicar hasta el último número de respuesta en la encuesta hasta el que se desea exportar
Fields = Array("firstname", "lastname")
'Inicialización
Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
URL = limeurl + "/admin/remotecontrol"
objHTTP.Open "POST", URL, False
objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
objHTTP.setRequestHeader "Content-type", "application/json"
'Establecer acceso (get_session_key)
sendtext = "{""method"":""get_session_key"",""params"": [""" + limeuser + """,""" + limepass + """],""id"": 1}"
objHTTP.Send (sendtext)
jsonText = objHTTP.responseText
Set jsonObject = JsonConverter.ParseJson(jsonText)
key = jsonObject("result")
Where I think the error is here. Say the code works without adding the "fields" array:
'Exportar respuestas (export_responses)
sendtext = "{""method"":""export_responses"",""params"": [""" + key + """,""" + SurveyID + """,""" + DocumentType + """,""" + LanguageCode + """,""" + CompletionStatus + """,""" + HeadingType + """,""" + ResponseType + """,""" + FromResponseID + """,""" + ToResponseID + """,""" + [""" + Fields + """] + """],""id"": 1}"
objHTTP.Send (sendtext)
jsonText = objHTTP.responseText
Set jsonObject = JsonConverter.ParseJson(jsonText)
export64 = jsonObject("result")
Thanks for reading...

D'oh! I missed the more obvious method of creating a data structure and converting it to JSON.
     Me perdí el método más obvio de crear una estructura de datos y convertirla a JSON.

I try to propose what you propose, but it doesn't work for me... The idea is to show the data collected in a table. Perhaps I wasn't clear at the time of proposing the exercise, I also didn't put all the code, I'm going to post it below, see if you see the error. Which by the way, the error is when trying to show the array, by some chance that I don't know (I think it's in the way I call the parameters):
My code VBA:
Sub export_limesurvey()
Dim key As String
Dim limeuser As String, limepass As String, limeurl As String, URL As String
Dim jsonText As String, jsonObject As Object
Dim SurveyID As String, DocumentType As String, LanguageCode As String, CompletionStatus As String, HeadingType As String, ResponseType As String, FromResponseID As String, ToResponseID As String
Dim Fields As String
Dim export64 As String, export64Decoded As String
limeurl = "URL CENSORED"
limeuser = "CENSORED"
limepass = "CENSORED"
SurveyID = Worksheets("Hoja2").Range("A6").Value 'Valor entre comillas para indicar ID encuesta a exportar (He hecho referencia a celda)
DocumentType = "csv" 'Tipo de formato en el que se desea exportrar (pdf,csv,xls,doc,json)
LanguageCode = "es" 'OPCIONAL: indicar idioma de exportación (solo si la encuesta está en ese idioma)
CompletionStatus = "complete" 'Exportar encuestas completas, incompletas o todas (complete,incomplete,all)
HeadingType = "full" 'Impresión de los titulos de las encuestas; códigos, todo o abreviados (code,full,abbreviated)
ResponseType = "long" 'Mostrar los valores de las preguntas de selección; corto para código y largo para mostrar valores (short,long)
FromResponseID = "0" 'Indicar desde el primer número de respuesta en la encuesta desde el que se desea exportar
ToResponseID = "10" 'Indicar hasta el último número de respuesta en la encuesta hasta el que se desea exportar
Fields = Join(Array("""firstname""", """lastname"""), ",")
'Limpiar página excel
Cells.Clear
'Inicialización
Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
URL = limeurl + "/admin/remotecontrol"
objHTTP.Open "POST", URL, False
objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
objHTTP.setRequestHeader "Content-type", "application/json"
'Establecer acceso (get_session_key)
sendtext = "{""method"":""get_session_key"",""params"": [""" + limeuser + """,""" + limepass + """],""id"": 1}"
objHTTP.Send (sendtext)
jsonText = objHTTP.responseText
Set jsonObject = JsonConverter.ParseJson(jsonText)
key = jsonObject("result")
'Exportar respuestas (export_responses)
sendtext = "{""method"":""export_responses"",""params"": [""" + key + """,""" + SurveyID + """,""" + DocumentType + """,""" + LanguageCode + """,""" + CompletionStatus + """,""" + HeadingType + """,""" + ResponseType + """,""" + FromResponseID + """,""" + ToResponseID + """,""" + [""" + Fields + """] + """],""id"": 1}"
objHTTP.Send (sendtext)
jsonText = objHTTP.responseText
Set jsonObject = JsonConverter.ParseJson(jsonText)
export64 = jsonObject("result")
'Codificar respuestas exportadas
export64Decoded = DecodeBase64(export64)
'Cerrar sesión
sendtext = "{""method"":""release_session_key"",""params"": [""" + key + """],""id"": 1}"
objHTTP.Send (sendtext)
'Divide las respuesta en varias líneas, de lo contrario, todo está en una celda
s = export64Decoded
i = 0
While Split(s, Chr(13) + Chr(10))(i) <> ""
Cells(i + 1, 1) = Split(s, Chr(13) + Chr(10))(i)
i = i + 1
Wend
'Conversión a CSV
Columns("A:A").TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=True, Comma:=False, Space:=False, Other:=False, TrailingMinusNumbers:=True
Cells.WrapText = False
End Sub
This code currently doesn't work, because I have (badly) added the array to display first and last names. In the "export_responses" area, however, the code that I show below, without the array, does work correctly (I shorten the code to the "export_responses" section, since that is the only thing that changes:
'Exportar respuestas (export_responses)
sendtext = "{""method"":""export_responses"",""params"": [""" + key + """,""" + SurveyID + """,""" + DocumentType + """,""" + LanguageCode + """,""" + CompletionStatus + """,""" + HeadingType + """,""" + ResponseType + """,""" + FromResponseID + """,""" + ToResponseID + """],""id"": 1}"
objHTTP.Send (sendtext)
jsonText = objHTTP.responseText
Set jsonObject = JsonConverter.ParseJson(jsonText)
export64 = jsonObject("result")
The truth is that it is making it very difficult for me to solve this... I don't know what is really wrong, when I try to display the array, I get an error in Excel, some subscript... the only thing I want to achieve is to do is the following json code to excel:
KEY:
{
"method": "get_session_key",
"params":["USER","PASS!"],
"id":1
}
EXPORT_RESPONSES:
{
"method":"export_responses",
"params": [
"U053k2PTgDSifiZKkfZUQ5v6wlrbfsnt",
"433682",
"csv",
null,
"complete",
null,
null,
"1",
"30",
["firstname", "lastname"]
],
"id":1
}
thanks again nick, any answer is welcome, let's see if we can provide a solution to this since there is nothing on the net, and I think that more than one could be of help

You are making it difficult for yourself by being over-confident in your code. Try stepping through the code with the debugger and checking variables have expected values. You should then at least be able to say which code statement causes your vague 'some subscript...'  error.
Given my remarks on web access at the end of my first reply, I need you to prove to me and yourself that the server response to the export_responses request is reasonable, preferably by dumpingjsonTextto a file and attaching to a reply. Do not paste it into a comment. If you don't want to attach, you could give a temporary Dropbox link ...
I think the first time you use a subscript is in While Split(s, Chr(13) + Chr(10))(i) <> "". In general, there is no guarantee that the last element of the array fromSplitwill be zero length. So the loop can easily run off the end of the array, giving as 'subscript out of range' error. Recode the section as
    Dim lines()
    lines = Split(export64Decoded, vbCrLf)
    i = UBound(lines) + 1
    If i = 0 Then
        MsgBox "No survey lines received", vbCritical
        Exit Sub
      End If
    Range("A1", Cells(i, 1)).Value = Application.WorksheetFunction.Transpose(lines)

If the worksheet is not empty beforehand, you may want to include aCells.Clearor similar to remove old data.
This is not (yet) a difficult problem. I can easily give you a module with my recommended code. But using your own code and learning VBA/Excel is very good as well.
It's not necessary to include my previous post in your reply, although it does show that some automatic translation is happening. Hopefully that will not distort the meaning too much.

Ok, I'll show you how it works in json with screenshots and the full code (I'll censor the username/password parts, but not the session key part because by the time I upload this, it will be expired I guess)

Then the JSON result (the key) is needed to export the responses:

The result of this is shown encoded in base64, to see it clearly, it would be enough to decode it, I can do this easily in Excel with a function in VBA, it works correctly
To understand the parts that I indicate in JSON in the previous screenshot, I indicate what each thing is in order:

session key
survey id
type of format I want to export
language (null in case of all languages)
response status (complete for complete responses only)
It is used to indicate how I want to show the title of the questions (I put null, because I am not interested at the moment)
It is used to show if I want long or short answers (null because I don't want at the moment)
From the answer (1 as the first answer)
Until the answer (30 to indicate that we want until that)

The official documentation of the server and how the data is treated, you can see it here:
https://api.limesurvey.org/classes/remotecontrol_handle.html#method_export_responses
I decode the result in excel so you can see what exactly we get:

I managed to transfer this to Excel with VBA/JSON. I tried to create a Dropbox account to be able to transfer the file temporarily, but apparently this is paid... so, I'm going to try uploading it to Google Drive. The file contains my password and username + test URL, but it doesn't really matter, it's a test server I have and the information is not sensitive. When you tell me that you have tried it, I can change the password, it doesn't matter. I also attached screenshots so you can see that it works:

file: https://drive.google.com/file/d/1iAoYZywVlXwMBkBP-_62NYhhy59MiRWh/view?usp=sharing
So what is the problem? if everything seems to be done... well, the fact is that if I want to show the name and surname of the participants, in the json, I can indicate this "array":

If you see it, the result is shortened compared to the previous capture. This is because by placing "first name" and "last name", it only displays this information. I am going to copy the encoded result and pass it to excel, so that you can see the result:

So, the problem I have is that I can't understand how to add the first and last name part to my VBA/JSON code, I practically have everything done, except this part, I find it so difficult for me to understand how to do this. I don't think I understand very well how to make a JSON array in VBA... if you can help me, I would really appreciate it... I accept that you can send me modules if you want with another much better way of doing the code...
feel free to use my code, let's see if you can do the array part... thanks for reading me again and spending some of your time on this

Fine. I have your XLSM.  I will respond later.

Thanks you very much for your time Nick, I am looking forward to your response!

You already understand that the aFields positional parameter is an array of 'selected database field' names. If you specify the array, you get those fields, probably in the same order.  If the other parameters cannot be set to give many fields by default (in which case you can delete the excess columns), you need to decide which fields you want and then find their precise database names. The database administrator should be able to give the names.
You may also be able to get extra data using the list_participants and/or list_questions methods.
So which fields do you want?
The test data on Hoja1 looks very strange to me. Is it what you were expecting??
Was the data on Hoja1 produced by the export_limesurvey script? If not, what does it produce?

Translated into JSON, this is basically what I have in the attached excel file:

And this is what I want, the array with the "firstname" and "lastname" fields. Would you know how to do it applied in my code?

I gave the code to generate that request in my second reply. I recommend not to use null values; it is clearer if you put the default option explicitly.
The 2-field request that you are asking for will not produce an Excel sheet with 9 columns.
Let's rephrase the question. What should appear as column headings on row 1 of Hoja1?

OK. You have done a good job putting together that complex XLSM with limited VBA coding/debugging skills. We also  may have had some communication issues.
The code you posted before, summarised as:
Dim Fields As String
...
Fields = Join(Array("""firstname""", """lastname"""), ",")
...
sendtext = "{""method"":""export_responses"",""params"": [""" + key + """,""" + SurveyID + """,""" + DocumentType + """,""" + LanguageCode + """,""" + CompletionStatus + """,""" + HeadingType + """,""" + ResponseType + """,""" + FromResponseID + """,""" + ToResponseID + """,""" + [""" + Fields + """] + """],""id"": 1}"

... needs the final line changing to
sendtext = "{""method"":""export_responses"",""params"": [""" + key + """,""" + SurveyID + """,""" + DocumentType + """,""" + LanguageCode + """,""" + CompletionStatus + """,""" + HeadingType + """,""" + ResponseType + """,""" + FromResponseID + """,""" + ToResponseID + """,[" + Fields + "],""id"": 1}"

... which generates the reuired JSON request string:
{"method":"export_responses","params": ["","433682","csv","es","complete","full","long","0","10",["firstname","lastname"],"id": 1} }
I will have a draft XLSM with revised/new coding ready ina day or two.

Hello again, I try to put what you are saying in my code and I get the following error:

The error says "invalid use of null", but I don't have anything null declared, so I don't know what that refers to.
The "export_responses" part of the code was like this:
sendtext = "{""method"":""export_responses"",""params"": [""" + key + """,""" + SurveyID + """,""" + DocumentType + """,""" + LanguageCode + """,""" + CompletionStatus + """,""" + HeadingType + """,""" + ResponseType + """,""" + FromResponseID + """,""" + ToResponseID + """,[" + Fields + "],""id"": 1}" objHTTP.Send (sendtext) jsonText = objHTTP.responseText Set jsonObject = JsonConverter.ParseJson(jsonText) export64 = jsonObject("result")
Also, I have seen, that in your code, a "[" is missing at the end of the code, I don't know if it should be declared like this in VBA/JSON. But if you look at the json screenshots I put before, it does have a "[" at the end as well, to close the "params". I don't know if this has something to do with the null error

The closing bracket forparams is at the syart of"],""id"": 1}".
Set a breakpoint where you think the error is occurring. Run (press F5 or Mac equivalent) to that point and either hover over the variables in the Locals window.
Macros executing in Sheet code apparently do not offer Debug as an option after errors. My version has very little Sheet code and nearly all Module code.

Hi Jesús. My XLSM for responses and respondents is available. The release notes will evolve during tomorrow.
I doubt that there will be anything more of interest to VBA-JSON users. So I suggest that you close the issues (comments will still be possible) and that we continue the conversation by email.

Hi Nick, sorry for the delay in responding;
I've gotten to see his work, by the way; great job Nick, congratulations, his work looks really good!
I seem to remember that the only thing that didn't work so well was when exporting all the participants, but I'll keep reviewing your work because I really like it.
For my part, I managed to do the job by extracting raw code from json, thanks to this I used Power Query, which when it comes to displaying the data in Excel, looks quite good.
Likewise, thanks for all your work, being there and answering my questions. Thanks Nick!

OK. That sounds as if you have solved the problems. Please close your issue here.
The latest XLSM version was uploaded on 7 December. Save that soon since it will not stay indefinitely in Dropbox.


Other: Advanced API work - implement image storage with required data

Going to start with S3 buckets as the method of storage. Will work on this after linking up the window saga

Need to remember to specify AWS env variables. Probably best to create an IAM user for the team

@steveshumaker regarding the env variables, you could update the INSTRUCTIONS.md file to pass along that info.

Obviously the actual values will need to be shared privately, though.

Yup, agreed. I'm close on this - the hangup right now is react-webcam provides a base64 encoded image. We can store these in AWS, but retrieving them is sort of a pain. When I get back from work/tonight I'm going to look into converting that base64 to a Blob and storing that, then we can access the picture directly by accessing the object in S3 rather than having to create an img tag with the src=base64 encoding of the picture.
In order to implement this in the most optimal way (so far), I've added a submit button to the webcam page. The button adds a window then updates the current window ID via the store. The saga that adds the window then dispatches the POST to the S3 bucket, uploading the (soon to be) file.

In order to implement this in the most optimal way (so far), I've added a submit button to the webcam page. The button adds a window then updates the current window ID via the store. The saga that adds the window then dispatches the POST to the S3 bucket, uploading the (soon to be) file.

One note about the logic here. The submit button should "not" be adding a new window. An initial window has already been created when we create the project. It should just be putting through a PUT request to update the current window with the new information (in this case the picture). New windows should only be added when the user clicks "Add a New Window" after the current window is done.

An initial window has already been created when we create the project. It should just be putting through a PUT request to update the current window with the new information (in this case the picture). New windows should only be added when the user clicks "Add a New Window" after the current window is done.

Do we have this built it? I'm at work so looking through GH isn't super helpful, but if I remember correctly we don't have that implemented. I also don't see a window being created in the addUser query or the addProject query. Can we discuss this tonight? I don't know if we need the current window ID before we take a picture (as long as that's the first picture-related action). That way, windows will only be added with POSTs and updated with PUTs, rather than one added with a PUT and additional windows added with POSTs. I think it also might be helpful to take some time tonight and walk through the app's interactions and document specifically when things should be created versus when they should be updated - I'm sure we probably talked about this, I'm just not remembering and couldn't find it in Slack.

Shoot -- I had implemented this, but it looks like my changes got wiped out in that messed-up PR. It's an easy fix, though.
From my perspective, the advantages of separating the window-creation POST request from the form-entry PUT requests are:

It makes the edit functionality automatic. We just take them back to the page and set currentWindowId to the window they want to edit, and everything else will work as expected.
That, in turn, makes a lot of other things much more intuitive from a user perspective. If, for any reason, their connection gets interrupted, or they take a lunch break, or they refresh, or they simply decide they didn't like the picture they just submitted, this implementation has the intuitive result of allowing them to pick up where they left off and continue editing the same window. The other implementation, triggering a POST request, forces them to create a new window when they don't want to (and don't expect to, because they haven't clicked the "Add a New Window Button!).
Since the other pieces of information (height, width, and frame type) have to be PUT requests anyway, this also just keeps things more consistent. Every part of the form behaves the same way, triggering a PUT request on the current window.

My initial thinking was to do what you're saying, but I realized that this ends up being very counterintuitive when I noticed what was happening with the zip code entry form. Every time I clicked "Next" on that page, I was creating a whole new project and orphaning the project that I had started with.

@steveshumaker see PR #54 that I just requested your review on. We can discuss it tonight, but I wanted to have it ready to go, since this is how things were currently set up to work.

What you dropped above makes sense to me! I just reviewed/merged, so I'll pull that into my fork tonight then update my implementation. Should be a quick modification of a couple lines in my stuff - thank you!
Side note - do we know if anything else got lost in that PR, off the top of your head? Maybe if/when we walk thru flow of the app by API call we can verify that we either have all routes either a. implemented, and/or b. documented.

Sounds good! This is the only feature I was working on in that PR, so hopefully this is it. If anything else got lost, it would have been bug fixes on someone else's code (for example the getListOfWindows query).


[Feature Request] Annotator unicode support

In certain instances, the bounding box name is in Chinese and the annotator fails to render it. Please use Arial.Unicode.ttf font.

Thank you for your suggestion! However, this TTF file is too large to be used as the default option. Instead, you can use the following api to customize and call the font you prefer.
Annotator::default().with_font（）;

Thanks!


Update manifests/b/Badlion/BadlionClient/3.2.3/Badlion.BadlionClient.locale.en-US.yaml

Fixes an issue where this package has multiple different monikers
Microsoft Reviewers: Open in CodeFlow

[Policy] Reset Labels


Overlapping Thresholds

We should include overlapping thresholds in the find_anomalies primitive. This means that the windows for which the thresholds are calculated are overlapping, i.e. each point has multiple thresholds that could declare it an anomaly. This was done in the original implementation by NASA. I have already done that in my local pipeline and I will do a PR to include it in the standard MLPrimitive version, too.

Closed in #181


helm: Make DNS policy for agent and operator configurable

Fixes #20079
Signed-off-by: Michi Mutsuzaki<EMAIL_ADDRESS>helm: Make DNS policy for cilium-agent and cilium-operator pods configurable

tested with:
helm install -n kube-system cilium ./install/kubernetes/cilium --set dnsPolicy=ClusterFirstWithHostNet --set operator.dnsPolicy=ClusterFirstWithHostNet

and verified both agent and operator comes up with ClusterFirstWithHostNet dns policy.

/test

/test

added an extra commit to update values.yaml.tmpl looks like it got out of sync: https://github.com/cilium/cilium/pull/20082/commits/9da0702218aa8e121d7356be750c708451fc45de

/test-1.16-4.9

@michi-covalent This one cannot be cleanly backported to v1.11 because the changes to install/kubernetes/cilium/templates/cilium-agent/daemonset.yaml depend on changes from #17243, which was not backported to v1.11.
I am removing the backport label, please assess the situation and re-add to both if we should indeed backport.

thanks for the heads up @nbusseneau i'll take care of backporting this

opened https://github.com/cilium/cilium/pull/20842

Yea so actually I hadn't read what #17243 was doing: it's not actually adding anything, just re-organizing stuff. So conflicts can be resolved trivially, my bad. Will add back to main backport PR.


csv is converted into txt file

csv is converted into txt file at some point during the upload process.
This is a bug, all file should retain their original file extensions when they are uploaded.

I ran a test with an MP4 file and it remained as an MP4 after downloading. More testing is needed on this.

Ran a test and checked the logs with this and it's setting the wrong content type in the header:
arweaveTags [ { name: 'Content-Type', value: 'text/plain; charset=utf-8' } ]

It should be text/csv

The issue here is that we don't explicitly set the content type when we upload the file to IPFS, it's just left to IPFS to infer it. IPFS can't tell the difference between a csv a plain text file which is how the file type ends up being set wrong.

This is working now


[Bug]: Exported end2end ONNX model produces poor COCO validation results

Before Reporting

[X] I have pulled the latest code of main branch to run again and the bug still existed. 我已经拉取了主分支上最新的代码，重新运行之后，问题仍不能解决。

[X] I have read the README carefully and no error occured during the installation process. (Otherwise, we recommand that you can ask a question using the Question template) 我已经仔细阅读了README上的操作指引，并且在安装过程中没有错误发生。（否则，我们建议您使用Question模板向我们进行提问）

Search before reporting

[X] I have searched the DAMO-YOLO issues and found no similar bugs. 我已经在issue列表中搜索但是没有发现类似的bug报告。

OS
Ubuntu 24.04
Device
RTX 4090
CUDA version
12.5
TensorRT version
No response
Python version
3.10
PyTorch version
1.13.1
torchvision version
0.14.1
Describe the bug
I have been attempting to train and export a tinynasL25_s model on the COCO dataset, but getting terrible results from the exported model. I have exported the model end2end, which if I am interpreting the code correctly should have given me at most 100 detections after NMS, but in many cases I am still getting 1000+ detections. Detections do however appear to be filtered by a minimum confidence score of 0.05.
After 60 epochs of training on the COCO dataset I get an evaluation score of:
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.365
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.514
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.394
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.208
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.403
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.488
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.320
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.549
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.613
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.424
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.673
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.771
I export this model using:
python tools/converter.py -f configs/damoyolo_tinynasL25_S.py -c workdirs/damoyolo_tinynasL25_S/epoch_60_ckpt.pth --batch_size 1  --img_size 640 --end2end --ort
But when evaluating the exported model on COCO I get the following results:
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.008
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.017
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.003
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.047
I have debugged the pre-processing and post-processing steps I have added for running the ONNX model and it looks consistent with the demo script. I am using the same COCO validation scripts for YOLOX and RT-DETR models and have no issues with those. Looks to me like something must be wrong with the export script.
To Reproduce

Train model using configs/damoyolo_tinynasL25_S.py
Export model to ONNX using: python tools/converter.py -f configs/damoyolo_tinynasL25_S.py -c workdirs/damoyolo_tinynasL25_S/epoch_60_ckpt.pth --batch_size 1  --img_size 640 --end2end --ort
Evaluate ONNX model on COCO validation set

Hyper-parameters/Configs
No response
Logs
No response
Screenshots
No response
Additional
No response

Not use end2end flag


Fix missing include

std::int8_t is used, but not included through #include <cstdint>.
This may work in some standard libraries because it is leaked through another header, but not in all. I have seen this cause a problem for a user in our programming community on Discord:

Thanks a lot for your contribution. I will integrate this for the next release of the library.

Hey, perhaps interesting to share. Today I tried compiling ReactPhysics3D on Windows using mingw and cmake, which failed exactly because of this error. I run the command cmake -S .. -DBUILD_SHARED_LIBS=ON -G "MinGW Makefiles followed by cmake --build . . This results in a lot of errors starting with this one. Stupidly enough, it works fine with the MSVC compiler.
Maybe an idea, depending on your scheduled release date for v1.0.0, to include this info somewhere in the readme and/or the docs until further notice?

Keep mind, that changes in https://github.com/DanielChappuis/reactphysics3d/pull/360 too.

Thanks for your pull request. It has been merged into the "develop" branch and will be part of the next release of the library.


Fix inconsistency in layout

@strk This fixes the overlap you introduced in #618

is this change in staging for review?

Trusted LGTM anyway

LGTM

I still see an inconsistency in layout here: https://try.gitea.io/user/settings/openid

Version on try.gitea.io is 1.1.0+47-g1c3bd436 so it looks like it wasn't synced with latest merge from 21 hours ago ! @tboerger


no separation of conceptual image from image file

even though it makes sense to only have a unique image file for unique images (i.e. if the exact same image occurs in two StimulusSets, only store one image), this does not apply to the conceptual image.
For instance, if StimulusSet A and B have the same image, they might put different metadata on it. E.g., A might set label='beach' and label='umbrella'.
@jjpr-mit suggests this might be fixed by a foreign key from attributemodel to stimulussetmodel and selecting for that key when constructing StimulusSet DataFrames

out-dated since refactor to csv lookup


JaxrsApplication not picked up

When following the README.md using Spring Boot 3, the JaxrsApplication (inside the library) is not picked up by Resteasy/Spring. The CapabilitySecomInterface is instantiated as a Spring Component, but not recognised as a provider. It seems that RestEasy is not called at all.

This seems to be some dependency issue as replacing the resteasy-spring-starter with

<dependency>
            <groupId>org.jboss.resteasy</groupId>
            <artifactId>resteasy-servlet-spring-boot-starter</artifactId>
            <version>6.0.4-SNAPSHOT</version>
            <scope>runtime</scope>
        </dependency>

solved the problem for my own implementation of the JaxrsApplication

The modules are actually using the following dependency:
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-spring-boot-starter</artifactId>
    <version>${resteasy-spring-boot.version}</version>
</dependency>

which seems a bit out of date...
Might not be a bad idea to use the resteasy-servlet-spring-boot-starter dependency but this kind of locks us tot he servlet flavour (as opposed to reactor netty).

I've updated the library to use the resteasy-servlet-spring-boot-starter dependency. Also not that you will need to ad the spring-webflux dependency for the webClient.
Try using the version 0.0.21 artifacts and let me know if the problem was resolved.

Setting up a clean spring project and importing the maven dependencies gives me the following error:
 .   ____          _            __ _ _  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _ | \ \ \
\/  )| |)| | | | | || (| |  ) ) ) )
'  || .__|| ||| |_, | / / / /
=========||==============|/=///_/
:: Spring Boot ::                (v3.1.2)
2023-08-15T15:19:23.648+10:00  INFO 20969 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication using Java 20.0.1 with PID 20969 (/home/amsa/Desktop/demo/target/classes started by amsa in /home/amsa/Desktop/demo)
2023-08-15T15:19:23.652+10:00  INFO 20969 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to 1 default profile: "default"
2023-08-15T15:19:25.019+10:00  INFO 20969 --- [           main] o.j.r.s.common.ResteasyResourcesFinder   : Finding JAX-RS Application classes
2023-08-15T15:19:25.022+10:00  INFO 20969 --- [           main] o.j.r.s.common.ResteasyResourcesFinder   : Property resteasy.jaxrs.app.registration has not been set, JAX-RS Application classes registration is being set to AUTO
2023-08-15T15:19:25.023+10:00  INFO 20969 --- [           main] o.j.r.s.common.ResteasyResourcesFinder   : Searching for JAX-RS Application Spring beans
2023-08-15T15:19:25.026+10:00  INFO 20969 --- [           main] o.j.r.s.common.ResteasyResourcesFinder   : JAX-RS Application class found: org.grad.secom.springboot3.config.JaxrsApplication
2023-08-15T15:19:25.045+10:00  WARN 20969 --- [           main] o.j.r.s.common.ResteasyResourcesFinder   : No JAX-RS resource Spring beans have been found
2023-08-15T15:19:25.047+10:00  WARN 20969 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'org.grad.secom.springboot3.config.JaxrsApplication' defined in null: Cannot register bean definition [Generic bean: class [null]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=JaxrsApplicationServletBuilder; factoryMethodName=build; initMethodNames=null; destroyMethodNames=null] for bean 'org.grad.secom.springboot3.config.JaxrsApplication' since there is already [Generic bean: class [org.grad.secom.springboot3.config.JaxrsApplication]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null] bound.
2023-08-15T15:19:25.063+10:00  INFO 20969 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-08-15T15:19:25.091+10:00 ERROR 20969 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

APPLICATION FAILED TO START

Description:
The bean 'org.grad.secom.springboot3.config.JaxrsApplication' could not be registered. A bean with that name has already been defined and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
Process finished with exit code 1`

Are you defining a JaxrsApplication component manually on your app?

Also I would suggest to try and use the LTS JDK 17... next LTS version being 21... I see you are using 20.0.1. I usually prefer the LTS versions

This was fixed in v0.0.23

Just as a comment to keep track, the actual fix was annotating of the JaxRsApplication of the library as a configuration instead of a component. Otherwise it seems that the "resteasy-spring-boot-starter" attempts to create its own component and we get that conflicts. I was getting away with it using a package base scan but what's the point!


Stop FBP service of the session when the window is closed

When implementing the login system, it will be able to let the services
running when the window of the browser is closed.
Without this patch the guest session may be renewed and the coder will
not be able to stop the service. Then, the service will stay haging out
until the next restart of the system.
Signed-off-by: Bruno Bottazzini<EMAIL_ADDRESS>

+1

thanks merged