Programmatic animation?

Is there any way to animate an element programmatically? Ie, from a method within a Vue instance?

Hi @paulg446. Correct me if im wrong, by "within a Vue instance" you mean something like this.$animateCss(options) right? This does not exist yet, but it's a good feature to have so I will do this.
For the meantime, maybe you can pass a method as argument to the directive.

Hi @jofftiquez yes, exactly. For example, in the mounted hook, one might animate an element in to the view using fadeInUp, and with the beforeDestroy hook animate the element out using fadeOutDown. As it stands (if I understand correctly), the animations only respond to 3 events (once, click and hover). Programatic control would be much more versatile.

@paulg446 yes that's right. I will find time to implement this as soon as I can. I'll keep you updated here. :)

I was looking for a vue port of animate.css and found this one among a few others.  I started messing around with the custom directive looking for some similar flexibility mentioned by @paulg446.
I have working prototype that allows for some other hook options:
<template>

Come In Eventually

Leave Eventually

Do Whatever, Whenever

</template>

To get this functional (just manual browser tested at this point)...
// index.js
export default (Vue) => {
  Vue.directive('animate-css', {
    inserted: (el) => {},
    bind: (el, binding, vnode) => {
      const {
        name, value, oldValue, expression, arg, modifiers
      } = binding;

      // Could be done with classes too...
      if (modifiers.enter) el.style['visibility'] = 'hidden';
      if (modifiers.leave) el.style['visibility'] = 'visible';

      animate(el, value, modifiers, vnode.context);
    }
  })
};

// animate.js
export default (el, value, modifiers, vm) => {
	const {
    click, hover, once, enter, trigger, leave
  } = modifiers;

  // [...]

  if(enter || leave || trigger) {
    vm.$once(value.event, function() {
      animateNow(el, value, modifiers);
    });
    return;
  }

  // [...]
}

// events.js

// Towards top of animateNow
if(modifiers.enter) {
  el.style['visibility'] = 'visible';
}

// End of animationEnd
if(modifiers.leave) {
  el.style['visibility'] = 'hidden';
}

Just some thoughts... I can refine a bit and submit a PR if you'd like... not sure if the el.style['visibility'] assignments are too opinionated/rigid.
Thanks.

@rags02 Thanks for sharing this. PRs are always welcome :)

@rags02 Sorry for the late response. That feature should be working in the latest commit. It has been merged into master but it doesn't look like npm has been updated to pull in the new commit. You can pull in the master branch by yarn add jofftiquez/v-animate-css instead of yarn add v-animate-css until the version is updated on npm.
You can use the following modifiers:

enter
enterFully
exit
exitPartially

OMG I totally forgot to deploy the updates on npm. I'm sorry. @coreycoburn thanks for mentioning.

Any updates on this?

I guess you forgot to close this @jofftiquez?

Thanks @WarenGonzaga


US 01.07.01 View Others Profiles

As a player, I want to see other players' profiles, so that I can the information of other players and compare other players with me.
Priority: Medium
Story Point: 4
Risk Level: Medium

Acceptance Criteria:

The player logs into the game on their device.
The player selects the option to view other players' profiles.
The player is presented with a list of other players, which they can scroll through to find the player they are interested in.
The player selects the player they want to view.
The app displays the selected player's profile, which includes information such as their username, level, achievements, and stats.
The player can view and compare the selected player's information with their own.
The player can return to the list of players to view the profiles of other players if desired.

Priority: Medium
Story Point: 4
Risk Level: Medium


Internalization has been added

i18n custom direcitive has been created
Proper static text has been changed with i18n attribute

+1

👍


Set up build system

Created for staging and should work for production. Staging url is http://openaq.org-staging.s3-website-us-east-1.amazonaws.com/#/


ESP32-AT V2.0 version use "AT+RFPOWER=0,0,0,0" reply error

Hi,
When I upgraded to version 2.0, ESP32-WROOM-32D returned "ERROR" after sending "AT+RFPOWER=0,0,0,0".

V1.2

AT+GMR
AT version:<IP_ADDRESS>(6fe4345 - Jun 27 2019 05:39:23)
SDK version:v3.2-127-gddbce78
compile time:Jun 27 2019 12:08:01
Bin version:1.2.0(WROOM-32)
OK
AT+RFPOWER=0,0,0,0
OK

V2.0

AT+GMR
AT version:<IP_ADDRESS>(e44648c - Nov  4 2019 02:18:57)
SDK version:v3.3
compile time(7cac7ad):Nov  4 2019 06:11:40
Bin version:2.0.0(WROOM-32)
OK
AT+RFPOWER=0,0,0,0
ERROR

- **\<wifi_power>**: range [40, 82], the unit is 0.25dBm, for example, if the value is 78, then RF max power is 78*0.25 dBm=19.5dBm
- **\<ble_adv_power>**: RF TX Power of BLE advertising, range: [0, 7]
    - 0:7dBm
    - 1:4dBm
    - 2:1dBm
    - 3:-2 dBm
    - 4:-5 dBm
    - 5:-8 dBm
    - 6:-11 dBm
    - 7:-14 dBm
- **\<ble_scan_power>**: RF TX Power of BLE scanning, range:  [0, 7], the same as **\<ble_adv_power>**
- **\<ble_conn_power>**: RF TX Power of BLE connecting, range:  [0, 7], the same as **\<ble_adv_power>**

Ok, i got it. Please add this change to the description of release if you can.
Thanks!

i got following respons when esp32 bluetooth device connected to PC...Please give meaning of respons
_bt_gap_cb - event = 4

Please provide the full log.


request help:  is apisix.http_content_phase() a helpful enhance?

Issue description
I want to do some extension in the content phase. But now APISIX can not settle by developing plugins.
In the content phase, I think proxy_pass can be the default process way and I also hope I can configure my custom handler. Such as, I want to do multi requests and combine their responses by some rules.
How do you think about that?

Such as, I want to do multi requests and combine their responses by some rules.

You can do this in the "Access" phase.

Such as, I want to do multi requests and combine their responses by some rules.

Add a lower priority plugin, and do this in the "access" phase.

Well, I think I know what you mean. It could be not a necessary enhance.


desktop: hangs on a difference of a union of a union…?

I have a design where I struck an issue with just adding to a negative volume by using union. The boolean ops are nested quite a lot, but I haven't struck issues with that previously.
I'm using the desktop app from master. Sorry to post so much detail, but I think the code will make easier sense with some background. This is what I have design:

There are small slits where "legs" of a speaker grill is supposed to go in and are to be bent inwards. Therefore I need to remove some pieces of the ring there. The nature of the whole thing is therefore a somewhat deeply nested structure of unions and differences.
First the whole plate, then some cutouts, but then I need to re-add material (the circle) after the cutouts and then also subtract again after that add…
So it's like
difference(
   union(
      difference(
          union(positives…)
          negatives
       )
       postPositives…
    )
    postNegatives…
)

Actual code:
const panelThickness = 2.3

const { widthOfHp, eurorackPanel, PJ301, AlphaPot, ThreeMmLed, PowerSwitch } = require('../eurorack-lib/eurorack-lib')({
  panelThickness,
})

const jscad = require('jscad-tree-experiment')
const { difference, union } = jscad.api.booleanOps
const { translate, rotate, mirror } = jscad.api.transformations
const { cube, cylinder } = jscad.api.primitives3d
const { color } = jscad.api.color

const panelHp = 14
const width = widthOfHp(panelHp)

const middle = width / 2

// No margin
const grillY = 61 + 2
const grillX = 56 + 2

const speakerOuterDiam = 57
const speakerHoleDiam = 50

const grillMounts = () => {
  const grillXMount = 56
  const grillYMount = 41
  const grillMountLength = 7 // with margin

  let slit = union(
    cube({ size: [1, grillMountLength, 20], center: true }),
    translate([9, 9, 9], cube({ size: [1, grillMountLength, 20], center: true }))
  )

  slit = cube({ size: [1, grillMountLength, 20], center: true }) // COMMENT OUT FOR ISSUE

  return union(
    translate([-grillXMount / 2, -grillYMount / 2, 0], slit),
    translate([+grillXMount / 2, -grillYMount / 2, 0], slit),
    translate([-grillXMount / 2, +grillYMount / 2, 0], slit),
    translate([+grillXMount / 2, +grillYMount / 2, 0], slit)
  )
}

const speakerMountCircle = () => {
  return difference(
    cylinder({ d: speakerOuterDiam + 5, h: 5, $fn: 40 }),
    cylinder({ d: speakerOuterDiam, h: 5, $fn: 40 })
  )
}

const speakerHole = () => {
  return translate([0, 0, -0.01], cylinder({ d: speakerHoleDiam, h: 20, $fn: 40 }))
}

const speakerY = 45

function negatives() {
  return union(
    translate([middle, speakerY, 0], speakerHole()),
    translate(
      [middle, speakerY, 0],
      translate([0, 0, panelThickness], cube({ size: [grillX, grillY, 1], center: true }))
    ),
    translate([middle, speakerY, 0], translate([0, 0, -0.1], cube({ size: [grillX, grillY, 1], center: true }))),
    translate([middle, 90, 0], AlphaPot()),
    translate([middle - 20, 110, 0], PJ301()),
    translate([middle + 10, 110, 0], ThreeMmLed()),
    translate([middle + 20, 110, 0], PowerSwitch())
  )
}

function main() {
  return difference(
    union(
      difference(union(eurorackPanel(panelHp, { mountHoles: 4, slots: false })), negatives()),
      translate([middle, speakerY, 0], speakerMountCircle())
    ),
    translate([middle, speakerY, 0], grillMounts())
  )
}

module.exports = { main, getParameterDefinitions: () => [] }

Expected Behavior
If I use the definition of slit be a union - I get lots of fan spin and no render. If I use the simple slit everything's fine.
Actual Behavior
desktop app loops for quite some time and then I get this gc log - I guess addPolygonTreeNodes might be the only interesting info:
><EMAIL_ADDRESS>dev /Users/viktor/dev/projects/OpenJSCAD.org/packages/desktop
> node node_modules/.bin/electron .

<--- Last few GCs --->

[17229:0x7fc098877800]    58356 ms: Mark-sweep 2051.2 (2117.5) -> 2051.2 (2093.0) MB, 2379.8 / 0.1 ms  (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 2380 ms) last resort
[17229:0x7fc098877800]    60641 ms: Mark-sweep 2051.2 (2093.0) -> 2051.2 (2093.0) MB, 2284.2 / 0.2 ms  last resort

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x1f823fb14c9 <DedicatedWorkerGlobalScope map = 0x33c5c60d411>
    1: new Node [/Users/viktor/dev/projects/OpenJSCAD.org/packages/desktop/node_modules/@jscad/csg/src/core/trees.js:~381] [pc=0x258070c0c84c](this=0x12be0364879 <Node map = 0x33c5c6100c1>,parent=0x12be03647a1 <Node map = 0x33c5c609479>)
    3: addPolygonTreeNodes<EMAIL_ADDRESS>

Specifications

Version: 231d3c6393e6d84569d8c00cf32dfe83b85d3163  (master)
Platform: OSX
Environment: electron desktop app

@hedefalk Thanks.
I don’t thing this design is complex, and would expect the application to render, etc. without issues. I’ll try it out later next week.
I make fairly complex designs some times, with lots of small pieces and holes. Here’s one that I created a few years back...
http://www.z3d.jp/lab/view.php?design=lab-000000050
Not sure that it will help, but sharing designs is always a learning experience. 😃

@z3dev Thx!
There's a dependency on a small util lib I have so I added you as a guest on the repo here if you wanted to take a look at it:
https://gitlab.com/hedefalk/eurorack-jscad
Thanks again!

Hm, I cleared the cache under:
rm -rf ll ~/Library/Application\ Support/@jscad/desktop/
and restarted a few times and now it's working… Somewhat…
If I at any time use center: false on the slit cutout the app goes into an infinite loop…

Hi @hedefalk : perhaps this could help: the only cases where I seen issues with infinite loops are corner cases with perfectly overlapping planes on certain objects: can you try adding a tiny translate() operation to that (try starting with something like [0,0, 0.1] and lower it in x10 increments) that might fix it.
We have found a few issues like these in the past and some safeguards where added but not everywhere it seems !

@kaosat-dev Thx! I was gonna try you suggestion now after working with something else for a bit, but for some reason it seems to be working fine now… Can't even reproduce it seems. I guess I might have translated it a bit and at this point I'm really happy it works so I can print this thing now so I might dodge from putting too much effort in a repo case. I have also gone between master and V2 a few times and cleared caches and stuff…
Your tip might be useful if I struck something similar again though and I'll let you know if so.
I'll close for now, thanks a lot!


Fix the main->next merge conflicts

This cleans up all of the merge conflicts from main into next after the
rebranch merge.
Unfortunately, we can't really test it because the next branch is currently not currently compiling.

Thanks :)


UseFeatureFlags are not updating using ConfigureRefresh

Currently, my feature flags are not updating when refreshing all configs using a "sentinel" key, with a refresh all flag:
  options.ConfigureRefresh(refresh =>
                {
                    refresh.Register("SupportService_Refresh", azureConfigEnv, true);
                    refresh.SetCacheExpiration(TimeSpan.FromSeconds(refreshIntervalSeconds));
                });

They are refreshing using ASP solution using
IApplicationBuilder.UseAzureAppConfiguration()
I also do not see an example in the documentation on how to set up a feature refresh in the Core application (not ASP Core) using HostBuilder (not WebHostBuilder).
Are features explicitly for ASP core applications?
We also would want to refresh on a specific controller call manually, and not on a middleware call.

Below is the code I am using for completeness.
            configBuilder.AddAzureAppConfiguration(options =>
            {
                options.Connect(config.GetConnectionString("AzureAppConfiguration"));
                options.UseFeatureFlags(x =>
                {
                    x.Select("SupportService_*", azureConfigEnv);
                    x.CacheExpirationInterval = TimeSpan.FromSeconds(refreshIntervalSeconds);
                });
                options.Select("SupportService_*", $"{azureConfigEnv}");
                options.TrimKeyPrefix("SupportService_");

                options.ConfigureRefresh(refresh =>
                {
                    refresh.Register("SupportService_Refresh", azureConfigEnv, true);
                    refresh.SetCacheExpiration(TimeSpan.FromSeconds(refreshIntervalSeconds));
                });

                refresher = options.GetRefresher();
            });

   SetupAzureConfigurationRefreshTimer(refresher, refreshIntervalSeconds, config);

       private static void SetupAzureConfigurationRefreshTimer(IConfigurationRefresher refresher, int intervalSeconds, IConfiguration config)
        {
            var timer = new Timer(TimeSpan.FromSeconds(intervalSeconds).TotalMilliseconds);
            timer.Elapsed += async (sender, arg) =>
            {
                var success = await refresher.TryRefreshAsync();
                var value = config["Tasks.Pure360PriceUpdate.CronSchedule"];
            };
            timer.Start();
        }

Hi @Edgaras91, feature refresh can be setup in any .NET Core application just like regular key-value refresh. If you are using HostBuilder in your .NET Core application, you need to add a call to IServiceCollection.AddAzureAppConfiguration() inside your IHostBuilder.ConfigureServices() method. This method registers the IConfigurationRefresherProvider type, which can be resolved in any controller to obtain an instance of IConfigurationRefresher and trigger TryRefreshAsync() operations.
In our ASP .NET Core library, we provide a middleware for asynchronously refreshing config. But the same functionality can be implemented in a .NET core application too. You can refer to our simple middleware code and trigger your refresh operations from any controller in a similar manner.

Thank you for confirming this.
So am I right to assume that the AzureAppConfigurationOptions.GetRefresher() which returns IConfigurationRefresher and calling TryRefreshAsync() does not refresh the features, but injected IConfigurationRefresherProvider and calling TryRefreshAsync on each of the "refreshers" does refresh features? Something I may test later and update here if this is not confirmed.

@Edgaras91 the sections in the following documents have more discussion on this topic. Please let us know if they answer your questions.
For .NET Core app, https://docs.microsoft.com/azure/azure-app-configuration/enable-dynamic-configuration-dotnet-core#activity-driven-configuration-refresh
For ASP.NET Core app, https://docs.microsoft.com/azure/azure-app-configuration/enable-dynamic-configuration-aspnet-core?tabs=core5x#reload-data-from-app-configuration

@Edgaras91 it's the same refresher instance regardless of you obtained it from AzureAppConfigurationOptions.GetRefresher() or through dependency injection IConfigurationRefresherProvider, so the TryRefreshAsync() call behaves the same way. I hope the document I linked earlier explains the behavior. Please let us know if you have further questions. Closing for now.


Add replaces_state to state events in the /sync response

In case an event has a prev_content, it would be useful to know also the id of the event where this prev_content comes from.
One use case is the redaction of a state event that was in the past like in:

state was A, then later B, then later C
B is redacted

The prev_content of C, that contains redacted data of B, must be pruned to avoid leaked data as described at https://github.com/vector-im/riot-ios/issues/443.
Knowing the event_id of the state event which C replaces, the client will be able to locally prune C without requiring any request to the homeserver.
To solve this, Riot-iOS used to make a room initial sync but is was an expensive process server side (https://github.com/vector-im/riot-ios/issues/1823).

Related: https://github.com/matrix-org/matrix-doc/issues/819

This should probably be tagged with spec-omission.

Shouldn't this be simply added as a MSC, or to the spec?

this is the spec, and it might not need an MSC if it's a bug in the spec.


Allow build with AGP 8. Fixed issue #111

Allows to sync and build for android using AGP 8

thank you so much @elijahsh !


Bug: Initial state can't be restored for machines with transitioned child machines

Description
Let's say we have root machine that creates child machines and transits their state.
If we serialize this state, deserialize it, and then try to use useMachine hook from @xstate/react with options.state set to deserialized state, we will get the following error:
Unable to send event to child 'Child id' from service '(machine)'.

Expected result
No errors, parent and child stated are deserialized correctly
Actual result
The error is emitted
Reproduction
https://codesandbox.io/s/keen-nobel-i8mymo?file=/src/App.tsx
Additional context
Steps to reproduce the issue in the codesandbox:

Press 'Spawn child'
Press 'Move children to second state'
Reload the sandboxed page
Expect error

Recursive persistence is addressed here: #3743

This should now be working as expected in xstate@beta


ENH: add location of edited cell, closes #189

Providing the edit location can aid an interested observer in figuring out what part of the dataframe has changed.

Thanks for this.  I should have some time this week to look at this...I'm starting to go through my backlog of qgrid issues and PRs today.


[Bug] Beta 1: Problems with watcher (SCSS & PHP)

Submit a feature request or bug report

[x] I've read the guidelines for Contributing to Roots Projects
[ ] This is a feature request
[x] This is a bug report
[x] This request isn't a duplicate of an existing issue
[x] I've read the docs and NPM Debugging Guidelines post and followed them (if applicable)
[x] This is not a personal support request that should be posted on the Roots Discourse forums

Bug report
Steps

composer create-project roots/sage my-theme dev-master
npm install
edited config.json
yarn run start

Opens localhost:3000 but with console errors:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/app/themes/my-theme/dist/a8794502c051d1cd8213.hot-update.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/app/themes/my-theme/dist/styles/main.css
Also terminal prints - https://discourse.roots.io/t/sage9-not-inserting-styles-in-browsersync/8525/7?u=emilsgulbis
No PHP files edited, but watcher called.
Please describe your local environment:
WordPress version: 4.7
OS: macOS Sierra
NPM/Node version: 4.0.5 / 7.4.0
Where did the bug happen? Development or remote servers?
Development
Is there a related Discourse thread or were any utilized (please link them)?
https://discourse.roots.io/t/sage9-not-inserting-styles-in-browsersync/8525/7

Not working for me.
Just created new sage theme and run yarn run start and no css was loaded (404 error on console) and same after styling update & browsersync refresh.
yarn run build works as expected and have no 404 errors on css files.

after alpha1, I always had this problem.

a copy of my reply to @emilsgulbis from discourse:
@emilsgulbis I noticed that when you open your console at the start of the BS session that you're missing the error I mention at the top of https://github.com/roots/sage/pull/1806
Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_2__util_Router__[false] is not a constructor
    at Object.<anonymous> (main.js:23)
    at Object.<anonymous> (main.js:27)
    at __webpack_require__ (bootstrap f2d9dd8…:659)
    at fn (bootstrap f2d9dd8…:83)
    at Object.<anonymous> (tether.js:1811)
    at __webpack_require__ (bootstrap f2d9dd8…:659)
    at bootstrap f2d9dd8…:708
    at bootstrap f2d9dd8…:708

Can you remove your node_modules folder, make sure yarn.lock is the same as what's on the Sage repo, and re-run yarn?
@giacomoalonzi did you try making this change and then following the instructions at the top of #1806?
please keep the support back-and-forth on the discourse thread for this specific issue:
https://discourse.roots.io/t/sage9-not-inserting-styles-in-browsersync/8525

@retlehs Not yet, i'm going to try new beta in the next days, i'll let you know

please keep the support back-and-forth on the discourse thread for this specific issue:

i'm locking this issue. please use the discourse topic for discussion:
https://discourse.roots.io/t/sage-9-beta-1-not-inserting-styles-in-browsersync/8525

fixed in beta 2


Update temporal distributions

For now, I just added some made-up temporal distributions to the wind turbine construction and EOL, we could replace them with something more meaningful down the line.
https://github.com/TimoDiepers/tictac_lca/blob/409358d2fc53098894e5f1173cb09943882899ab/Mini-Wind-Example/wind-example.ipynb#L167-L171

Done in  #a1fad0c


Fix live-update of streams sidebar after renaming a stream.

The stream row in streams sidebar in left is not updated after renaming a stream.
This also leads to another bug where the unread messages count in the stream is also not updated by clicking on Mark all messages as Read option in the stream popover while the unread messages count in All messages is updated.
There is some discussion here regarding the part which needs to be fixed.
Attaching a GIF below for clarity

I'm pretty sure this used to work; so the bug is likely shallow.

@zulipbot claim

The stream name is getting updated when I checked in /json/streams, and adding an update_stream_sidebar() to the change_stream_name function seems to fix it. However, would running the update_stream_sidebar() on every edit cause too much load on the server?

@zulipbot abandon

@zulipbot claim

@zulipbot claim


Add Zsq

Adding a language

[x] The code displays "Hello World"
[x] I have updated the readme to include the new language
[x] I have incremented the language count in the readme

Link to programming language:
https://github.com/JBYT27/zsq

I think the pull request's name should be Add Zsq, not the commit name.

Also, please provide a link to the language website and check all three boxes.

I changed them

Done

Is there anything else you want me to do?

Update the readme.md


coverage

Codecov Report

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

@@           Coverage Diff            @@
##             master     #67   +/-   ##
========================================
  Coverage          ?   4.71%
========================================
  Files             ?       7
  Lines             ?    1019
  Branches          ?       0
========================================
  Hits              ?      48
  Misses            ?     968
  Partials          ?       3

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 913a86f...e7cd5b6. Read the comment docs.


Getting this to take over a docker container with nixOS

Is your feature request related to a problem? Please describe.
I'm attempting to push nix into my org.
We currently use coder for our development environments. We have a prototype which sets up everything we need using nix.
Some things, like the vs-code-server, need systemd to run.
Describe the solution you'd like
Instead of setting everything up w systemd units and running that at startup, I figured it would be easier to manage a nixOS system.
Describe alternatives you've considered
systemd + oneshot units which run the nix setup - annoying to set up.
nixOS vm - at this stage the company will not support this. If I had nixOS running in a container, they would likely switch to this after a few months.

No it cannot be used in docker containers. It's intended used in an environment with a kernel.


🐛 Support for Android via Termux

Rome currently fails to run on Android via Termux with the following error:
fs.js:1441:10 internalError/fatal  INTERNAL  ━━━━━━━━━━━━━

  ✖ The feature watch recursively is unavailable on the current platform, which is being used to run Node.js

I believe the reason for this is process.platform in Termux returns "android", whereas there is a recursive watch workaround for "linux" only at the moment.
Environment
$ rome rage --summary
Environment Variables                                                                                Object {                                                                                LANG: "en_US.UTF-8"                                                                                PATH: "/data/data/com.termux/files/home/Development/rome-test/node_modules/.bin:/data/data/co        m.termux/files/home/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/b        in/applets"                                                                                TERM: "xterm-256color"                                                                             }                                                                                User Config                                                                                unset
Rome Version
  10.0.3-beta
                                                                                Node Version                                                                                14.4.0                                                                                Platform                                                                                android arm64 4.4.111-18920278

Terminal Features
  Object {
    background: "unknown"
    colorDepth: 8                                                                                columns: 101                                                                                cursor: true                                                                                hyperlinks: true                                                                                isTTY: true
    unicode: true                                                                                }                                                                                Client Flags
  Object {                                                                                clientName: "cli"                                                                                cwd: "/data/data/com.termux/files/home/Development/rome-test"                                        realCwd: "/data/data/com.termux/files/home/Development/rome-test"                                    silent: false                                                                                }                                                                                Server Status                                                                                Object {                                                                                projects: Array [                                                                                Object {id: 0}
      Object {id: 1}
    ]
    server: Object {
      heapTotal: 16_494_592
      pid: 23_748
      uptime:<PHONE_NUMBER>88
    }
    workers: Array [
      Object {
        astCacheSize: 0
        heapTotal: 16_494_592
        ownedBytes: 0
        ownedFileCount: 0
        pid: 23_748
        uptime:<PHONE_NUMBER>88
      }
    ]
  }

Steps To Reproduce

Install Termux from the Google Play Store or F-Droid.
Run rome start.
Observe that the command fails.

Expected Results
The command should not fail.

Had no idea that process.platform could ever be "android". In MemoryFileSystem we have a fallback for "linux" for the recursive flag. Fix here would just be adding another check.


Rework Affiliations to make them configurable

This includes reworking how they are stored in the Hero - should be more or less analogous to Equipment (LootMajorRewards).

Since affiliations are presented with the "type" as the column name, these are stored in taskModeData.majorRewardDisplayName for Quest mode. Therefore, this task is more or less irrelevant.


Doesn't seem to work with Amazon S3

Hello, I've been using this app in development and it works wonderfully if you store ajax-uploaded data locally. However, I just deployed a site that uses an Amazon S3 storage bucket and it doesn't play nice with Amazon S3. It thrown me a AjaxUploadException: File path not allowed error. Just a heads up :) Will look into how this package: https://github.com/GoodCloud/django-ajax-uploader handles S3 storage in the meantime. Thanks for the awesome package!

I have also same problem ,
Any solution !!!


NSM forwarders can't be inlined

NSM forwarders use instructions for accessing their stack frame directly (similarly to the prologue builder) so they can't be inlined.
When the arguments descriptor of the call site is known, we can generate code for their bodies which doesn't require access to the stack frame.

This should be moved from the milestone, I believe. /cc @kmillikin .


Examples of using golang bindings?

I am trying to run rkt programmatically from another application. Are there any official golang bindings? I am looking at https://github.com/coreos/rkt/blob/master/api/v1/api.pb.go and I assume I'd need to go generate code, but how do I vendor this in to another project? Are there any usage examples?

@achanda would love to hear more about your use case. This is not something we've focused on as the intention is really for rkt to integrate tightly with other systems (like systemd, Kubernetes, etc) which expose their own APIs.
The rkt API you reference (which will soon be available as a service - #1411) is intended for exposing read-only information about rkt pods/images only (see #1193, #1208); we want it to run as a non-privileged user, and for the foreseeable future rkt run will require root privileges to actually create/execute containers. (I should also mention that at the moment the API is proposed, experimental and subject to change - I'll post a clarification of that shortly.)
@yifan-gu can you point @achanda towards how we programmatically use rkt from the kubelet?

@jonboulle my use case is similar to kubelet. I was trying to add rkt support to https://github.com/hashicorp/nomad We were thinking if the integration will be more robust if we could use run rkt programatically. The PR is here: https://github.com/hashicorp/nomad/pull/165
I was looking at the rkt package in kubernetes. The underlying implementation runs the rkt binary. Also, the rkt package seems to be pretty tightly integrated to kubernetes. I am not sure the package can be used in isolation. I am looking at:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/rkt/rkt.go
Thoughts?

@achanda Had a glance at your PR, seems currently the driver only launches the rkt pod. If that's all you need, then you don't need the client library, rkt has not planned to provide APIs for launching pods because it's daemonless. The suggested way is to use other daemon to invoke rkt run to launch a pod such as systemd or other process supervisor.
If you need to get the pod/image information, you can wait for #1508 to be merged, then you should be able to use the generated grpc client bindings(https://github.com/coreos/rkt/blob/master/api/v1/api.pb.go#L708) in your code.

@jonboulle @yifan-gu thanks for the pointers guys. For now, I need to launch pods, thus a command invocation should be good enough. I will close this issue now.


Update to ruby ddtrace 1.0

I'm looking into the sampling failure, it seems there's a change in ddtrace 1.0 we need to adjust to.


requirement 'ascii' codec can't decode byte 0xec

Hello!
I use python3.6.5
I install use  pip install git+https://github.com/wbaek/theconf.git
I get:
Collecting git+https://github.com/wbaek/theconf.git
Cloning https://github.com/wbaek/theconf.git to /tmp/pip-req-build-pun46x94
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-pun46x94/setup.py", line 19, in
long_description = fp.read()
File "/opt/conda/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 449: ordinal not in range(128)

@zihaozhang9
https://github.com/wbaek/theconf/pull/11
One of my great colleagues just fixed this issue. Please try again.

@ zihaozhang9
wbaek / theconf＃11
我的一位同事刚刚解决了这个问题。请再试一次。

OK!very thinkes~I have successfully installed

Thanks for confirming. I close this issue.


Is there a way to configure the Normalizing API in the reduxForm method

Hello, is there any way I can configure the normalizing API in the same way the validate API works?
I mean, today I'm configuring at the combineReducers level (I'm getting some trouble with dynamically generated fields)...
My idea is to use like this:
const fields = ['name'];
const normalize = {
  name: e => e.toUpperCase();
}

// component

export default reduxForm({
  form: 'sign-up',
  fields,
  normalize
});

Configure it when the reduxForm is called.

If you want to normalize in the form, you will need to wrap onChange or onBlur to modify your value.
As for why it's in the reducer, see #644.

thanks @erikras, I'll take a look in this issue. It's indeed in the reducer.


Update to 1.20.1 Please

Already working on releasing up to that version 👍🏻

Nicee to hear, thanks 😊


Question: Generating cucumber reports with hooks

I am trying to utilize cucumberReporter feature and I noticed that it is struggling to generate a report in case a test fails and contains "After" hooks.
My playwright config file:
reporter: [
['list'],
['html', { open: 'never' }],
['junit', { outputFile: 'results.xml' }],
cucumberReporter('html', {
outputFile: 'cucumber-report/bdd_report.html',
}),
],
and the hook it has problem with:
After({ tags: '@delete' }, async function ({ page, $testInfo }) {
// Account cleanup
const accountSettingsPage = createAccountSettingsPage(page, $testInfo)
await accountSettingsPage.deleteAccount()
})
The message I get:
"Error in reporter Error: BDD data attachment is not found for test: As an user, I would like to create a basic account @smoke @regression @validation @test
Did you set enrichReporterData: true in the Playwright config?
at TestCaseRun.getBddData (...\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\TestCaseRun.ts:71:13)
at new TestCaseRun (...\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\TestCaseRun.ts:51:25)
at ...\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\Builder.ts:122:27
at Array.forEach (<anonymous>)
at MessagesBuilder.createTestCaseRuns (...\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\Builder.ts:117:21)
at MessagesBuilder.doBuildMessages (...\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\Builder.ts:73:10)"

Please note that this is not causing any issues if test case is passing although same hooks are applied.
Wanted to hear if this is a bug or I am settings up something wrong?
Thank you!

Sound like a bug. Could you create a reproducable example in https://github.com/vitalets/playwright-bdd-example

Thank you for quick reply. I will submit an example soon'ish

Seems like if I swap
getExecutedHooks(hookType: HookType) {
return hookType === 'before'
? this.executedBeforeHooks.executedHooks
: this.executedAfterHooks.executedHooks;
}
With
getExecutedHooks(hookType: HookType) {
return hookType === 'after'
? this.executedAfterHooks.executedHooks
: this.executedBeforeHooks.executedHooks;
}
@..\node_modules\playwright-bdd\src\reporter\cucumber\messagesBuilder\TestCaseRun.ts
Then the problem disappears. Tried with having both hooks separately and together. Not sure why it makes a difference to be honest:)

Hmm.. In playwright-bdd error in hook should not block the report generation, it should show failing hook in the report. Something like this:

Reproducible demo would be helpful. Or could you just show the code of hook that causes this BDD data attachment is not found... error (if possible).

Scenario with tags from .feature file:

StepDefinition file:

Error output:

Playwright report output:

As you can see in this case I am simulating that the user could not enter the product and the code in the hook is based on deleting account within the product, which could not run and that is why hook failed. Hope this helps.

I've created the similar setup in https://github.com/vitalets/playwright-bdd-example/tree/failing-hook-107
But can't reproduce the issue:
There is error in step and then error in after hook. Cucumber html report correctly shows both errors:

Playwright html report looks similar to yours:

Could you compare this example code with your setup and try to reproduce on it?

Hello, I tried this solution and it works for me as well. However when I add a sleep (i.e. 60000 msec) in the After hook, which is longer than Playwright configured timeout, which by default is 30000 msec, then I can reproduce it. So it something to do with timeout error.

Reproduced now, good catch! Checking for the fix.

Fixed in 6.0.3.
Please re-check on your side and reopen if there are any issues.

Works fine now. Thanks!


[How to use] Preload thumbnails

Platforms
iOS
Description
Hi, we'd like to improve the scrolling experience of our app's photo picker, just like the native one.
We've added gaplessPlayback = true, it improve, but not enough.
On Native, it almost show thumbnail immediately and no show placeholder. On Photo_Manager, we need wait 300ms~1 sec.
 It look like a task queue issue.
https://pub.dev/packages/photo_manager#preload-thumbnails
We found a chapter about PhotoCachingManager, but not detail now to use it, is it can improve my case?
How it work between PhotoCachingManager and thumbnailDataWithSize ?
Because it seem do different if I cache after scrolling ?
My code
No response
Try do it
No response

You can easily add another cache layer between the plugin and your displays, obtain the bytes, and save them as a cache file in your app's cache.


Health monitoring should create a network agent on all hosts that are picked up for monitoring

In https://github.com/rancher/rancher/issues/1877, there is a known bug that if health monitoring picks up a host that doesn't have a network agent on it, the health monitoring will not work.
We need to deploy network agents on any hosts that are used in health monitoring so that health monitoring will work correctly.
Current workaround is to ensure that there is a container on every host so that network agent will always be present on all hosts.

Schedule health check on host only when Healthcheck network service provider is present there. Also:
reconcile health check scheduling for all instances with health check enabled, when Healthcheck network service provider (network-agent) gets deployed
remove health check host maps on network-agent remove

Tested with latest build from master -  Jan/05
Health check does not get scheduled on host where there is no network agent running.
Tested in a set up with 3 hosts (h1,h2,h3) , where 1 host (h1) had 1 LB instance running and the other 2 hosts had no instance/ network agent running.
Only the host on which LB was running was scheduled for health monitoring.
Started an instance in h2 . This resulted in the h2 being added to monitor LB's health.
Started another instance in h3. This resulted in the h3 being added to monitor LB's health.
Deactivate and deleted host h2. This resulted in the h3 being removed  from monitoring LB's health.

Perhaps I misunderstood, but isn't that a bit backwards? If I have h1,h2,h3 and a service running on h1. Based on reading this, it sounds like the behaviour is "don't schedule health checks from h2 and h3 because there is no network-agent running." But we want 3 health check sources! Isn't the correct behaviour, "start network-agents on h2 and h3 so that health checks can run"?

You are correct that it's a bit backwards, but this is the best that we could do with our current design. You can read the discussion we had about design in the PR: https://github.com/rancher/cattle/pull/1116

That discussion was very interesting. Based on this, it sounds like you couldn't get to "automatically deploy network agent when scheduling health check" in time, so instead you went for "stop health check from being scheduled on host of network agent isn't present." It isn't ideal, but it does solve the immediate inconsistent state problem.
Is this in 1.0 or one of the earlier pre releases?
And what is the ETA for breaking out network agent into a system stack scheduled for "global", so that this problem really is fixed correctly?

This fix should be v0.56.1.
It's not on the roadmap to have the network agent to be scheduled as global service.


Synchronization of multiple LiDAR cameras

I am looking for a possibility to synchronize a LiDAR L515 camera with another LiDAR or a D435 camera. But how can I do this? I have read, that the hardware sync connection of the LiDAR camera is similar to the D435. But where can I find the correct pin description and port dimensions of that.
Thanks a lot for your help.

A white-paper on this subject will be published soon

Also interested!

Thanks for the interest, we are working to get the document released as soon as we can.
We have published the following document, while it's not the sync document, it is worth a look:
https://support.intelrealsense.com/hc/en-us/articles/360051646094-Intel-RealSense-LiDAR-Camera-L515-User-Guide

The white paper on this was just published on RealSense website. Hope it is helpful.

Link?

https://dev.intelrealsense.com/docs/lidar-camera-l515-multi-camera-setup


Added support for Laravel 5.7

Re: https://github.com/svenluijten/artisan-view/issues/44
Adds support for Laravel 5.7 to composer.json

Somebody, please merge the pull request #45
This package is having trouble to Upgrade Laravel 5.7.

Thank you!


ClampingScrollPhysics doesn't clamp on content resize

Steps to reproduce

Create a list view with clamping scroll physics and enough children to flow off the screen
Drag the list view to a non-zero offset
Remove all the elements from the list view but one

Expected results
The removed elements disappear and the remaining element sits at the top of the page
Actual results
The removed elements disappear and the remaining element slinghsots to the top of the page, overflowing out the top of the viewport briefly before coming to rest at offset zero.
This is counter to ClampingScrollPhysics which is supposed to prevent overscroll like this.
Code sample
Code sample
class ListViewDemo extends StatefulWidget {
  const ListViewDemo({super.key});

  @override
  State<ListViewDemo> createState() => _ListViewDemoState();
}

class _ListViewDemoState extends State<ListViewDemo> {
  int? selectedIndex;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        const Text('Some fixed header content.'),
        Expanded(
          child: ListView(
            physics: const ClampingScrollPhysics(),
            children: List.generate(
              30,
              (index) {
                if (selectedIndex != null && index != selectedIndex) {
                  return const SizedBox.shrink();
                }
                return InkWell(
                  key: ValueKey(index),
                  onTap: () {
                    setState(() {
                      if (selectedIndex != null) {
                        selectedIndex = null;
                        return;
                      }
                      selectedIndex = index;
                    });
                  },
                  child: Container(
                    height: 100,
                    color: index.isEven ? Colors.white : Colors.grey,
                    child: Center(
                      child: Text(
                        index.toString(),
                      ),
                    ),
                  ),
                );
              },
            ),
          ),
        ),
      ],
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
https://github.com/flutter/flutter/assets/10675231/29dac515-4bb1-4f67-81eb-102e1943535b

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

The issue is reproducible on the latest Flutter stable and master channels.

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.19.5 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (8 days ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 123.0.6312.106

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.22.0-9.0.pre.17, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.22.0-9.0.pre.17 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a34086a573 (3 hours ago), 2024-04-11 18:07:20 -0700
    • Engine revision 6b37b17099
    • Dart version 3.5.0 (build 3.5.0-47.0.dev)
    • DevTools version 2.34.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode15.3.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.88.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 123.0.6312.123

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

I've realized I don't think this is undesired behavior just in the clamping scroll physics case.
Even in the case that allows overscroll, my expected behavior for a scroll triggered by children at the top of the list collapsing would be for the scroll momentum not to trigger any overscroll.
My expected behavior would be that overscroll would only ever happen in response to an active user drag, not in response to programmatic changes like elements disappearing from the list.


Tiff mask doesn't support more than 255 cells detected.

Hello,
When I save the mask result as tiff I get maximum 255 values. and some cells (not connected) have the same value.
Is it possible to use another compression that supports more than 2^8?

Found that it works well with the Jupyter version. but if I use the GUI version it compresses to 255.


Updated gemfile

Without the inclusion of 'jekyll', it throws out error.

Can you include this commit?


Error when data queried from oracle contains null

usql oracle:xxxx:1521/orcl -c 'select null from dual'
Connected with driver oracle (Oracle Database <IP_ADDRESS>.0)
error: oracle: TTC error: received code 14 during stmt reading

This is a limitation of @fgprodigal I believe this was a limitation of the ora driver, which has since been fixed. Please check the latest release version of usql to see if this issue still persists for you. I just checked against Oracle Database <IP_ADDRESS>.0 (see the contrib/oracle directory for the container config I use with Oracle) and it is working. It's worth noting that if you encounter issues like this with the ora driver, you can try using the godror driver instead.
ken@ken-desktop:~/src/go/src/github.com/xo/usql$ usql or://
Connected with driver oracle (Oracle Database <IP_ADDRESS>.0)
Type "help" for help.

or:system@localhost/orasid=> select null from dual;
 null
------

(1 row)

or:system@localhost/orasid=> \q
ken@ken-desktop:~/src/go/src/github.com/xo/usql$ usql godror://
Connected with driver godror (Oracle Database <IP_ADDRESS>.0)
Type "help" for help.

gr:system@localhost/orasid=> select null from dual;
 null
------

(1 row)

gr:system@localhost/orasid=> \q

Problem solved! Appreciate


handleAsyncThunkStatus helper function to handle repeated patterns for the status state object

Creating handleAsyncThunkStatus helper function that simplifies and allows to automatically handle status objects for reducers.
It's prepared using addMatcher because we need to handle situations when we would like to use .pending/.fulfilled/.rejected for additional functionality. And it's not allowed to use more than one addCase for the same action status.

Thank you for the review @andy-haynes


cage: fix build

Motivation for this change
cage build is also broken since #72999 due to a moved header file.
Using libGL seems to be the correct way to use the GL related headers.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @primeos

Let's just wait for ofborg to run it's checks. nox-review passes :)

Thanks


dpkg-reconfigure now requires a symlink

Just writing the timezone to /etc/timezone doesn't seem to work anymore, you need to symlink the timezone to /etc/localtime.

@balena-ci rebase

Thanks for opening the PR @martenjacobs Will make a couple of changes and a rebase to get the CI/CD checks passing and eventually merge this PR. Sorry for the delay.


Continuation token is not passed properly on query

I think DocumentDbClient does not properly send the continuation token on request even if has been set to queryOptions.continuation property. I'm having a problem querying "next page" of items by passing a continuation token to documentDbClient.queryDocuments in query options. I always get the same result set back, with iterator.continuation always reporting the same token after the call. I've tested this with latest NPM package, v.1.5.5.
I've created a full repro at https://gist.github.com/htuomola/620f13f572a2dfd4618a (apart from credentials and DB info). I also tried to debug it but my javascript-fu is not strong enough to understand what's wrong. FWIW, based on debugging the error seems to be in queryIterator._fetchMore(), where the continuation token gets somehow lost. I modified it so it logs this.options.continuation both before and after setting it (queryiterator.js, line 219), like this:
_fetchMore: function(callback){
   var that = this;
   console.log('continuation 1: '+this.options.continuation)
   this.options.continuation = this.continuation;
   console.log('continuation 2: '+this.options.continuation)
   [..]

The result is:
continuation 1: +RID:<redacted>#RT:1#TRC:1#RTD:<redacted>
continuation 2: null

ps. Contribution guidelines link in contributing.md is broken.

we have found a bug in the node driver where the iterator is not respecting the options.continuation.
a workaround for this is to set the continuation on your iterator explicitly.
you don't actually need to pass the continuation token around, the iterator keeps this internally. so an alternate to your code might be something like this gst where we recursively walk the results 10 records at a time.
if you want to control this and not walk the full result set, then just set the continuation on the iterator itself.
so after line #43 add the following line
iterator.continuation = opts.continuation;

Right, that seems to fix it for now. Thanks for the prompt reply. I know the same iterator can be used to get multiple pages but I'm working in a disconnected (web API) scenario where the "next page" is a separate request.

yeah, we've added a work item to have the iterator respect the options passed to it.

This seems to be still valid. I am in the same position to write a api that just delivers one page of results and - if there are more - the additional continuation token. But no matter what, the results are always the same and the continuation token does not get updated. Is there any eta on this?

It seems the bug is in defaultQueryExecutionContext.js. On line 47 in the constructor this.continuation is set to null instead of options.continuation. And in line 119 this happens this.options.continuation = this.continuation;. So the passed continuation token is never taken into account and the DocumentDB always sends back the same page.

@stefan-akelius I believe assigning continuation to null happens only in the constructor which is expected. There are APIs that are supposed to take care of passing continuation for a paged query as you ask for next page. That seems to happen in fetchMore method here. As an API user, you just need to call executeNext on the queryIterator and it takes care of passing the continuation internally. This is how getting paged results is supposed to work. We found a related bug in defaultQueryExecutionContext.js that we need to fix, so if you can please try the executeNext approach and let us know if that works for you.
@moderakh : Should also be able to help you with this.

@rnagpal
There is still the bug in there that this.continuation is never overwritten with the returned token which is what I changed.
Your supposed way does not work for an API scenario. Imagine you have 15000 documents but want to transfer only 25 per request (paginated for a frontend). How is the client supposed to tell the server to get the next page? Waiting for the sdk to retrieve all 15000 docs will take way too much time.
The azure-storage sdk for the Table Storage handles this very well. You get a result object back that looks like this:
{
  entries: Array<TableEntity>,
  continuationToken: Object
}

You can then send the continuation token object to the client alongside the data, he sends it back with the next request and you simply pass it to the sdk and get the next page.

@moderakh will be looking at this and merging the PR.

This has been fixed in the latest Node.js SDK.


[PDI-18807] : Using Create Folder step to create a folder in S3 - displays a file being created until manually refreshed

Previously FileUtils.copyContent() method is used which is unable to copy a folder and could copy only files. And also the usage of FileUtils class was deprecated. Now it is able to copy folders as well.

:white_check_mark: Build finished in 18m 28s
Build command:
mvn clean verify -B -e -Daudit -amd -pl engine

:exclamation: No tests found!
:information_source:  This is an automatic message


Thanos Store Docker containers crash with Access Denied error for all versions past 0.27.0

Thanos, Prometheus and Golang version used: 0.28.1, also present in 0.31.0

Object Storage Provider: S3
What happened:
Docker containers running any version of Thanos Store beyond 0.27 crash within 10 seconds of launch.
What you expected to happen:
Docker container to run normally
How to reproduce it (as minimally and precisely as possible):
This began occurring after we upgraded from 0.27.0 to 0.28.1.  This issue is also present in 0.31.0.

Launch Docker container and execute Thanos Store command -

      store
      --data-dir "/data/store"
      --grpc-address <IP_ADDRESS>:10901
      --http-address <IP_ADDRESS>:10902
      --index-cache.config-file "/etc/thanos-store/redis.yaml"
      --log.level error
      --log.format json
      --objstore.config-file "/etc/thanos-store/bucket.yaml"
      --store.grpc.series-max-concurrency=20
      --store.grpc.series-sample-limit=0

Docker container crashes within 10 seconds of launch.  Logs are difficult to catch before container crashes

Full logs to relevant components:
{"caller":"main.go:158","err":"Access Denied\nBaseFetcher: iter bucket\ngithub.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetchMetadata\n\t/app/pkg/block/fetcher.go:375\ngithub.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetch.func2\n\t/app/pkg/block/fetcher.go:439\ngithub.com/golang/groupcache/singleflight.(*Group).Do\n\t/go/pkg/mod/github.com/golang/groupcache@v0.0.0-20210331224755-41bb18bfe9da/singleflight/singleflight.go:56\ngithub.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetch\n\t/app/pkg/block/fetcher.go:437\ngithub.com/thanos-io/thanos/pkg/block.(*MetaFetcher).Fetch\n\t/app/pkg/block/fetcher.go:497\ngithub.com/thanos-io/thanos/pkg/store.(*BucketStore).SyncBlocks\n\t/app/pkg/store/bucket.go:462\ngithub.com/thanos-io/thanos/pkg/store.(*BucketStore).InitialSync\n\t/app/pkg/store/bucket.go:531\nmain.runStore.func3\n\t/app/cmd/thanos/store.go:366\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571\nsync block\ngithub.com/thanos-io/thanos/pkg/store.(*BucketStore).InitialSync\n\t/app/pkg/store/bucket.go:532\nmain.runStore.func3\n\t/app/cmd/thanos/store.go:366\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571\nbucket store initial sync\nmain.runStore.func3\n\t/app/cmd/thanos/store.go:368\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571\nstore command failed\nmain.main\n\t/app/cmd/thanos/main.go:158\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1571","level":"error","ts":"2023-04-24T20:15:54.252554669Z"}
Anything else we need to know:
redis.yaml -
      type: REDIS
      config:
        addr: "redis-thanos-store:6379"
        db: 0
        dial_timeout: 5s
        read_timeout: 3s
        write_timeout: 3s
        tls_enabled: false
        cache_size: 24GiB

bucket.yaml -
      type: S3
      config:
        endpoint: "s3.eu-west-1.amazonaws.com"
        bucket: "bucket"
        insecure: false
        signature_version2: false
        trace:
          enable: false
        part_size: 67108864

S3 Permissions -
    Statement = [
      {
        Action = [
          "s3:*"
        ]
        Effect = "Allow"
        Resource = [
          "arn:aws:s3:::bucket",
          "arn:aws:s3:::bucket/*"

Authentication for Thanos Store is done via IAM role specified by an instance profile.

We have a work-around in place for this using access keys but we would much prefer role-based access restored.

I saw the same error, I found that adding the region config allowed aws_sdk_auth: true to work. When using an access key, region was not required. My final config was:
{
  "type": "S3",
  "config": {
    "bucket": "<bucket>",
    "endpoint": "s3.eu-central-1.amazonaws.com",
    "region": "eu-central-1",
    "aws_sdk_auth": true
  }
}


Add dependabot to track Actions dependencies

Adds a Dependabot configuration file to enable dependency tracking for Github Actions workflows. Checks daily for updates to actions used in the workflows.

 Inside the Github Actions workflows there are external actions used, in the .yml file they look like - uses: actions/checkout@v2 and refer to Github repos which contain small reusable actions for use in workflows (in this case https://github.com/actions/checkout.
What Dependabot does is check these dependent actions for newer versions, so if a v3 of the checkout action was found it should automatically make a PR here to update the dependency inside any workflow files that use it.


win: fs__open(): map UV_FS_O_EXLOCK to exclusive sharing mode to enable raw block device access

On Windows, fs__open() sets the requested sharing mode of the file as follows:
share = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;

This is to ensure that a file can be deleted on Windows even while open (see https://github.com/nodejs/node-v0.x-archive/issues/1449).
This is fine, but sometimes on Windows it is also necessary to open a file or block device for exclusive access, not for the sake of locking per se but for writing:
For example, one cannot write past a raw block device MBR on Windows, without an exclusive file handle (see https://support.microsoft.com/en-us/help/942448/changes-to-the-file-system-and-to-the-storage-stack-to-restrict-direct).
Since we now have all open flags mapped to UV_FS_O_ constants, would it be fine for me to do a PR to map UV_FS_O_EXLOCK to exclusive sharing mode on Windows?

SGTM
Can UV_FS_O_EXLOCK be also implemented on Linux?

It's... complicated.  Unices in general only support advisory ("play nice") locks.  Linux in specific supports mandatory locks but they are riddled with pitfalls.
From https://www.kernel.org/doc/Documentation/filesystems/mandatory-locking.txt:
0. Why you should avoid mandatory locking
-----------------------------------------

The Linux implementation is prey to a number of difficult-to-fix race
conditions which in practice make it not dependable:

	- The write system call checks for a mandatory lock only once
	  at its start.  It is therefore possible for a lock request to
	  be granted after this check but before the data is modified.
	  A process may then see file data change even while a mandatory
	  lock was held.
	- Similarly, an exclusive lock may be granted on a file after
	  the kernel has decided to proceed with a read, but before the
	  read has actually completed, and the reading process may see
	  the file data in a state which should not have been visible
	  to it.
	- Similar races make the claimed mutual exclusion between lock
	  and mmap similarly unreliable.

This issue is not intended to be about the merits or pitfalls of mandatory locking per se, but specifically about opening a raw block device on Windows for writing which requires exclusive access on Windows according to policy changes by Microsoft detailed in https://support.microsoft.com/en-us/help/942448/changes-to-the-file-system-and-to-the-storage-stack-to-restrict-direct.

Can UV_FS_O_EXLOCK be also implemented on Linux?

No, while O_EXLOCK can be used to open a block device for exclusive access on Darwin, the equivalent to O_EXLOCK for opening a block device for exclusive access on Linux is surprisingly O_EXCL:
From the Linux man page for open, http://man7.org/linux/man-pages/man2/open.2.html:
In general, the behavior of O_EXCL is undefined if it is used without O_CREAT.  There is one exception: on Linux 2.6 and later, O_EXCL can be used without O_CREAT if pathname refers to a block device.  If the block device is in use by the system (e.g., mounted), open() fails with the error EBUSY.

More and more block device utilities (CD writers etc.) have started using either O_EXCL or O_EXLOCK when opening block devices, depending on the platform. This is probably why kernel 2.6 started addressing the lack of exclusive block device access through O_EXCL.
Again, this issue is not really about O_EXLOCK vs O_EXCL for block devices, but about enabling writes to block devices on Windows, which requires a sharing mode of 0. Windows explicitly requires a block device to be opened for exclusive access before you can write past the MBR.
The proposal then is to map UV_FS_O_EXLOCK to a sharing mode of 0 on Windows. This would behave the same as O_EXLOCK for a block device on Darwin, and as O_EXCL for a block device on Linux.
The motivation for mapping O_EXLOCK rather than O_EXCL is that O_EXCL is ambiguous and carries other semantics (Linux probably should have gone with O_EXLOCK for exclusive block device access).


zjsunit: Remove unnecessary tertiary conditions.

This isn’t correct. For example, the compose test does
https://github.com/zulip/zulip/blob/d4c681a937f527a39ef4202f2c26a98da96ded5c/frontend_tests/node_tests/compose.js#L159-L161
Since insert_message is not exported, old_f is now undefined and we’ll now __Rewire__ it back to undefined at the end of the test. The only way to get the old value of insert_message is via __GetDependency__.
Meanwhile, __GetDependency__ doesn’t work for values that are exported. Hence the ternary conditions are necessary.


Can't display on 2nd screen after 20H2 Win10 update

Hi Antony
I am on a Dell E7450 laptop.
Run the Zoom meetings with a dual-screen setup to offer a cleaner experience, similar to what we did at the hall.
Has an Nvidia 840M and an integrated Intel 5500 GPU.
Before, you could select in Nvidia control panel where you wanted to run an application. This has now changed and it is done in Windows. I suspect the issue could be in there.
Windows 10 Pro, just patched to the 20H2 release - that is what triggered the problem.
Run OnlyM <IP_ADDRESS>.
Used OnlyM successfully for a while now, never had any problems.
When I try to display something on the 2nd screen, it just doesn't. If I run in Windowed, I can get a window to display on the second screen.
The big issue though is, I don't get the Display => Media Monitor selection box anymore even though I have both screens attached and they are working correctly.
If I press  FN-F8 button on my Dell, it correctly displays the various options with Extended selected, so this looks all ok. And as mentioned above, the JW library displays on the 2nd screen.
I am a bit stuck here, don't really know what to do next.
Any help with this would be greatly appreciated as I don't want to loose this highly valuable tool.
Thanks very much for your help.
Warm regards
Phil

@philscotland It sounds like OnlyM is not detecting the second monitor. Please would you send the log file? Documents\OnlyM\Logs

@philscotland It sounds like OnlyM is not detecting the second monitor. Please would you send the log file? Documents\OnlyM\Logs

Hi Antony
please accept my slow reply, I have been a bit busy over the last few days as we all were I guess.
I did a full review of the HW issues I was experiencing after the 20H2 and realised that there were some fundamental issues with the whole graphic setup. This was certainly not caused by OnlyM. Not much worked properly anymore, sometimes I couldn't even find the external screen even though it was plugged in.
So, despite this being a rather old laptop, I checked the Dell website and indeed found a new Intel video driver set and a new BIOS. I am pleased to say that after the BIOS update, OnlyM was able to see my 2nd screen again which is fab.
I will need to do some further testing to see if I can trust this setup for meeting hosting again, but I believe I am on the right track.
Thanks for your help and your great little program. Your hard work is very much appreciated.
Kind regards
Phil


We're getting some test failures due to this line, because phstrMetaDataFilePath can be null:
RETURN_IF_FAILED(WindowsCreateString(L"", 0, phstrMetaDataFilePath));
A microsoft employee must use /azp run to validate using the pipelines below.

/azp run


Counter values differ in various places in app

Ledger Live Version and Operating System
1.8.2 (arm64-v8a 67)
Expected behavior
Counter value matches exactly on all pages. Euros are used.
Actual behavior
Differences found:
"Portfolio" Total (in graph) differs from "Asset Allocation" Total.
"Accounts" Overview differs from "Account Detail", confirmed for following assets:

BTC
LTC
ETH
XTZ
XRP

Tezos, shows THREE different counter values. In my particular case:
XTZ on accounts overview, XTZ 425 = EUR 561.07
XTZ accout detail, XTZ 425 = EUR 505.89
XTZ delegation, XTZ 425 = EUR 676.11
Steps to reproduce the behavior
Not sure what triggers this but I have seen app showing correct values so it seems intermittent.

Dunno if I just didn't notice it before, or sporadically happening, but:
On the overview: Selecting "WEEK" or "YEAR" shows the same value as on "ASSET ALLOCATION" screen. "MONTH" shows a different value.

Have not seen this in recent versions.

This was addressed and will be deployed in a future 2.18


Support Android Iconic

Salam.
It's good to use Android Iconic for icons.
https://github.com/mikepenz/Android-Iconics

@SAFatemi as maintainer of the Android-Iconics library I must admit that I don't really see the requirement of adding native Android-Iconics support to this library, as it will only bring another dependency, and for people who don't need the iconics that's unnecessary (even if the iconics core is tiny)
To go a bit deeper. This library already features Android-Iconics support as the FAB is based on the ImageButton (https://github.com/Clans/FloatingActionButton/blob/master/library/src/main/java/com/github/clans/fab/FloatingActionButton.java#L39)  which already has native Android-Iconics support via the custom LayoutInflater support of the Android-Iconics project. See more here. and here (ImageButton extends TextView)
And if you want programatical support. Just create a normal IconicsDrawable and pass it as Drawable (which the lib would simply do anyway)

@mikepenz Salam.
Thank you very much for your answer and for your well support .
Good luck.


NewCommand, SearchVehicleCommand

Adding new command and the relevant prefixes and parser, as well as search vehicle command.

Resolves #90

Resolves #90

This needs to be in the main comment of your PR for the auto-issue-close feature to work. I edited it in for you already just fyi! :)


Update wizard to programatically control the LLM adapter and model

Currently based on environment variables the GenAI library uses a particular Adapter and Model. We wish to change that and provide a type-safe way to integrate it.
Example
let model = Adapter::Groq::Llama3_8b_8192;
let wiz = Wizard::new(model);

Technical Requirements

Adapter shouild be defined in llm/adapter.rs.
Secrets should be read as TAILCALL_SECRET and sent to the LLM

/bounty 50$

/attempt #2658

💎 $50 bounty • Tailcall Inc.
Steps to solve:

Start working: Comment /attempt #2658 with your implementation plan
Submit work: Create a pull request including /claim #2658 in the PR body to claim the bounty
Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started. 💵 More about our bounty program.
Attempt	Started (GMT+0)	Solution
🟢 @ssddOnTop	Aug 11, 2024, 9:05:39 AM	#2659
🟢 @dekkku	Aug 11, 2024, 9:53:07 AM	#2660

/attempt #2658
I plan to implement a type-safe Adapter and integrate it with the Wizard struct, replacing the current environment variable-based configuration. I'll define the Adapter enum in llm/adapter.rs and modify the Wizard struct to accept an adapter instance. Secrets will be read from the environment as TAILCALL_SECRET and securely passed to the library.


Compile fails on Windows

Getting the following error:
-- Performing Test curl_cv_recv
-- Performing Test curl_cv_recv - Failed
CMake Error at opt/cpr/opt/curl/CMake/OtherTests.cmake:86 (message):
  Unable to link function recv
Call Stack (most recent call first):
  opt/cpr/opt/curl/CMakeLists.txt:1005 (include)

@KraXarN thanks for bringing up this issue. It looks like a curl specific problem. When searching for Unable to link function recv most of the results I get are related to curl + CMake. Perhaps that'd be a good starting point for investigating the issue further.
I hesitate to say that the issue can be resolved in this library alone, except for two cases. A) an upgrade of the embedded curl library resolves the issue trivially. Or B) there's an option in the curl CMake build scripts that I can expose on this project that would resolve the issue.

Yea, it's probably more of a curl issue. Trying to compile curl just by itself results in the same error. Probably a bug with curl, although I'm not very used to compiling stuff on Windows...

@KraXarN look at this:

Should be fixed in #126.
Feel free to open a new issue in case this is still a problem.


Implemented D3DShaderErrorInfo and dynamic reloading of DirectX shaders

Fix for issue #76.
A slightly better version of #77 as it actually provides the error message.
Also created a D3DShaderErrorInfo struct to resemble the OpenGL shader class.

I'm assuming you've tested this and it works fine?

Yes I have tested it and it works for both renderers

Could you update this to resolve conflicts with the latest revision? Thanks.

As a newest pull request has been merged, this one can be closed.


[5.7] Remove useless statement.

Remove useless statement.

Multiple PR for this change has been submitted already

Indeed @deleugpn - Still cannot understand why this statement is still there
Useless PR then


dfn in F test is not dynamic

I believe the dfn=5 in the cumulative f test should be a dynamic input rather than hardcoded equal to 5.
https://github.com/jkclem/chowtest/blob/f73f185dadcbb14e567ce65f942e6c8bdb432d4d/chowtest/__init__.py#L90

You're right, I used this code in one of my projects and that was one of the modifications I had to make.
If you are dealing with regressions made with historical series, you can make the following change:
p_value = 1 - f.cdf(Chow_Stat, dfn = k, dfd = (N1 + N2 - 2 * k))

@bstuddard and @Hercroce Sorry I am fixing this several years too late, but it is fixed now.


"Cannot reach server..." on self hosted relay

Hey y'all, trying to setup Sphinx for the first time and having a bit of trouble. I was able to get started on desktop no problem, but when it comes to signing on the Android app, I'm getting

Cannot reach server...
https://sphinx.chat

Quick glance at the code shows me that the url there is just hard coded, so it's not any issue communicating there. In my relay logs, I see the following on an attempted login:
=> generateToken called {
  body: { token: '[some-token]' }
  params: {},
  query: { pwd: '[some-pwd]' }
}
-> 2021-02-08 04:58:10: POST /contacts/tokens?pwd=[some-pwd] 400 5ms

Unfortunately I'm not able to gleam much more since all of the real information is console.log'd in a way I can't seem to get to. I'm using the same code that I used to setup the desktop client, Is it one time use? Is there an easy way to get at the console logs on Android, or will I have to run it in development myself to see the console.log'd errors? Thanks!

Jesse - can you check into this for Will?

@wbobeirne u will need to run it in dev.. theres some instructions in the readme. We remove console logs in production because it slows things down.
u will need to comment out the tranform-remove-console in babel.config.js

I am having the same issue. I can connect to my node on desktop but not on android.

+1 Is there any update on this?  In logs I'm getting 'failure: invalid token'


WIP - rel1 02-2020

Broke out ntdsutil.exe from creation_of_shadow_copy to allow for better filtering and specific monitoring/alerting.
Analytic Story

Suspicious Regsvr32 Activity

Analytics

Detect Regsvr32 Application Control Bypass (Passed)
Suspicious regsvr32 register suspicious path (Passed)
Suspicious regsvr32 rename ()
ntdsutil_export_ntds (Passed)

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
NTdsutil to export ntds dit from Directory Services :white_check_mark:

diskUsage: 356352
runDuration: 5.223s
scanCount: 6754

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
NTdsutil to export ntds dit from Directory Services :white_check_mark:

diskUsage: 356352
runDuration: 5.223s
scanCount: 6754

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect regsvr32 Application Control Bypass :white_check_mark:

diskUsage: 372736
runDuration: 3.186s
scanCount: 3058

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect regsvr32 Application Control Bypass :white_check_mark:

diskUsage: 372736
runDuration: 3.186s
scanCount: 3058

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect regsvr32 Registering DLLs from non-standard paths :white_check_mark:

diskUsage: 393216
runDuration: 3.275s
scanCount: 3058

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect regsvr32 Registering DLLs from non-standard paths :white_check_mark:

diskUsage: 393216
runDuration: 3.275s
scanCount: 3058

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect renamed regsvr32 execution :x:

diskUsage: 245760
runDuration: 0.895s
scanCount: 12

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect renamed regsvr32 execution :x:

diskUsage: 245760
runDuration: 0.895s
scanCount: 12

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect renamed regsvr32 execution :x:

diskUsage: 126976
runDuration: 0.646s
scanCount: 0

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect renamed regsvr32 execution :x:

diskUsage: 126976
runDuration: 0.646s
scanCount: 0

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect renamed regsvr32 execution :x:

diskUsage: 262144
runDuration: 0.812s
scanCount: 0

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Dump LSASS via procdump :white_check_mark:

diskUsage: 495616
runDuration: 2.116s
scanCount: 199

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Dump lsass via procdump rename :white_check_mark:

diskUsage: 258048
runDuration: 0.9460000000000001s
scanCount: 36

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Creation of lsass dump with taskmgr :white_check_mark:

diskUsage: 286720
runDuration: 0.9440000000000001s
scanCount: 24

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect Rundll32 Application Control Bypass - advpack and ieadvpack :white_check_mark:

diskUsage: 270336
runDuration: 0.976s
scanCount: 64

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect Renamed rundll32.exe Rename :white_check_mark:

diskUsage: 143360
runDuration: 0.838s
scanCount: 64

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect Rundll32 Application Control Bypass - syssetup :white_check_mark:

diskUsage: 393216
runDuration: 7.343s
scanCount: 9914

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect Rundll32 Application Control Bypass - setupapi :white_check_mark:

diskUsage: 393216
runDuration: 7.304s
scanCount: 9914

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Suspicious Rundll32 startw :white_check_mark:

diskUsage: 397312
runDuration: 9.200000000000001s
scanCount: 13107

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Suspicious Rundll32 with no Command Line Arguments :white_check_mark:

diskUsage: 286720
runDuration: 8.298s
scanCount: 13107

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Suspicious Rundll32 dllregisterserver :white_check_mark:

diskUsage: 397312
runDuration: 9.259s
scanCount: 13107

This PR was created by Automated Detection Testing Service :robot:
Tested detections:
Detect renamed regsvr32 execution :x:

diskUsage: 126976
runDuration: 0.672s
scanCount: 0


Shortest path from 1 to n #3626

Description
#Aim
Consider a directed graph whose vertices are numbered from 1 to n. There is an edge from a vertex i to a vertex j if either j = i + 1 or j = 3 * i. The task is to find the minimum number of edges in a path in G from vertex 1 to vertex n.
Please Assign me under GWOC21 .I will be solving in C++.
Programming language
C++
Domain
C/CPP
Type of Contribution
Documentation, Others
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign

Can @vishal1patidar tell me where should I put the solution to this above problem, please?

@shikhar13012001
Here and create pull request
Or add a folder in c/cpp and create pull request


Throw original error if batch size is reduced to be smaller than 1

Batch size smaller than one throws its own (useless) exception, so
this change will surface the error reported by BQ client rather
than swallow and rethrow an irrelevant error

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

Codecov Report

Merging #284 into master will decrease coverage by 0.09%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #284      +/-   ##
============================================
- Coverage     70.87%   70.77%   -0.10%
  Complexity      301      301
============================================
  Files            32       32
  Lines          1538     1540       +2
  Branches        164      165       +1
============================================
  Hits           1090     1090
- Misses          390      392       +2
  Partials         58       58

Impacted Files
Coverage Δ
Complexity Δ

...afka/connect/bigquery/write/batch/TableWriter.java
64.28% <0.00%> (-2.39%)
5.00 <0.00> (ø)

@bingqinzhou, @C0urante , @mtagle -- Hoping to get some feedback on this one, I think it is pretty straight-forward improvement in error handling


Dynamic report is not adding MD5/SHA1 correctly

I've noticed that the dynamic report created by the dependency-track does not correctly add the SHA1 and MD5 of the dependency. It adds the "libraryVersion.getUndashedUuid()" since, the libraryVersion.getSha1() is null.
I've realized about this issue when trying to suppress some vulnerabilities, because copying the suppression code into the supression.xml file cause a problem when parsing this xml (libraryVersion.getUndashedUuid() does not have 40 characters as SHA1 requests).
I've solved this updating the performAnalysis method in the DependencyCheckAnalysis class. You can see the code below:
for (LibraryVersion libraryVersion : libraryVersions) {
            final Library library = libraryVersion.getLibrary();
            final Dependency dependency =
                new Dependency(new File(FileUtils.getBitBucket()));

            final License license = library.getLicense();
            if (license != null) {
                dependency.setLicense(library.getLicense()
                    .getLicensename());
            }
            dependency.setDescription(String.valueOf(libraryVersion
                .getId()));
            dependency.getVendorEvidence().addEvidence("dependency-track",
                "vendor", library.getLibraryVendor().getVendor(),
                Confidence.HIGHEST);
            dependency.getProductEvidence().addEvidence(
                "dependency-track", "name", library.getLibraryname(),
                Confidence.HIGHEST);
            dependency.getVersionEvidence().addEvidence(
                "dependency-track", "version",
                libraryVersion.getLibraryversion(), Confidence.HIGHEST);

            // Adding the SHA1 and MD5 of the dependency (Update)
            libraryVersion.setSha1(dependency.getSha1sum());
            libraryVersion.setMd5(dependency.getMd5sum());

            dependencies.add(dependency);

        }

Surely this is not the best solution, since it does not work well when a new dependency is added, but it works well with dependencies added before.

This issue should be resolved for all new generated SHA1 hashes and corrects existing records.

I still see a problem here, the code now adds 8 characters in order to avoid the problem of the supression.xml parser. However, this si not creating a real SHA1 nor MD5 hash. The methods setMd5() and setSha1 of the libraryVersion class are nto called anywhere. Thus, in this check
dependency.setSha1sum((libraryVersion.getSha1() != null) ? libraryVersion.getSha1() : libraryVersion.getUuidAsSha1Hash());

the condition is always false and the sha1 is set as "00000000".concat(uuid.replace("-", ""));.
I would suggest to set the sha1 and md5 when the libraryVersion is created.
Another point is that if this hash is the same for 2 different components, then it won't be possible to suppress a vulnerability from just one of the components.

You're correct in that the setMd5 and setSha1 methods are never called. This will be changed by #4 . The idea is that when the Dependency-Check XML reports are imported, or when the (future) RESTful API is invoked, that the Md5 and Sha1 values will be set with real hash values. This will not only be used in the suppression file, but to assist Dependency-Track in identifying what the component is.
As part of this enhancement, the values will also be settable on the add/modify form when adding a library version.
I figured I'd leave the database fields (and setters/getters) in place so that I wouldn't have to worry about SQL upgrade code later on.


Avoid page reloads on unchanged assignee/labels

STR:

View any issue
Double click on "Assignees" or "Labels" in the sidebar, e.g. don't change anything
Page unnecessarily reloads

Should ideally also eliminate the page reloads when values actually change and just update DOM accordingly in JS.

👍

This is mostly fixed by https://github.com/go-gitea/gitea/pull/23014
It doesn't cover the "update the DOM" case, please re-open if you think it should be part of this issue or if we should have a specific issue for it now that this is partially fixed.

I also agree to "just update DOM accordingly in JS", but those dropdowns are much more complex than I thought, so I left them as they were. To touch them .... it needs another (big) refactoring PR.

Should probably rewrite them to something non-imperative like Vue/React/... 😉


Add GOV.UK Frontend

This adds the GOV.UK Frontend package of CSS and javascript, so that we can start following the Design System.
See https://design-system.service.gov.uk/get-started/production/

Is there any reason to add this before we actually start doing anything with it?

@samuelhwilliams not really, other than to keep the Pull Requests small.
I'll start a new PR exploring actually starting to use it.

I don't think we need to keep PRs so small that they only add dependencies without using those dependencies?


Able to login with expired password even after forcefully asked to change it

There is a way to reproduce this case and the steps are as follows:

Set the password as expired
Try to login with the same user account
Will now show the password change form

Fill in expired password in the Current password
Fill in the same expired password in the new and confirm password

This will show an error something like, "You can't use the same password as the current one".
Now cancel the login and retry logging in with the same expired password, this time it doesn't show the force password reset form, rather directly logs the user in

There is something strange with this flow and possible went unnoticed to test and fix this issue. We are using Page layout version 2.1.0
--
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 9a2f1cda-e84e-1204-4f9e-6a061280e577
Version Independent ID: bd341ac4-db08-0f55-bfa2-cb820fc37b5d
Content: Configure password complexity requirements - Azure AD B2C
Content Source: articles/active-directory-b2c/password-complexity.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

Thanks for your feedback! We will investigate and update as appropriate.

@nkumars Apologies for the delay, we are investigating on this issue and will revert back to you.

@Givary, you could let me know if you need further details like a screen recording, I can even share.

@Givary, any update on this, you can share please?


Request & Response interceptors

Is there any support for request/response interceptors?, it will be a nice to have since for example i had to use extensions to simulate a response interceptor for custom logging matters.
Also it will be nice to possibly modify the request and the response in those interceptors/filters and also that the request interceptor happens before the matching process.

As per the README please can you post questions on the mailing list.


botan: Enable Darwin platform, cleanup

Description of changes

[!NOTE]
The changes proposed in PR have worked well on my Darwin machine, yet I'm currently uncertain whether the default clang for darwin is truly >14. Can someone with more expertise and knowledge in this field confirm?

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 272749 run on aarch64-darwin 1

2 packages built:

botan3
botan3.dev

The changes proposed in PR have worked well on my Darwin machine, yet I'm currently uncertain whether the default clang for darwin is truly >14. Can someone with more expertise and knowledge in this field confirm?

LLVM Clang 16 since release 23.11.

Thanks for confirming, @wegank, how could I have verified it myself? Any file in this repo that specifies this?

It is specified here.

Thanks for all the help, @wegank and @7c6f434c. Great to see this got merged, very much appreciated! 😃


Update README.md

Questions
Answers

Description?
Update README with PS compatibility

Type?
improvement

BC breaks?
no

Deprecations?
no

Fixed ticket?
N/A

How to test?
Check README.md

thanks @florine2623


Merge workflows

This merges the workflows and executes the current action version (and not the released one) (implements https://github.com/GuillaumeFalourd/setup-rsync/pull/3#pullrequestreview-1635571950)
New output:

I kept the schedule unmodified. Did a force-push with a new commit just adding the workflow.