How to store lat and lon separately?

Is there a method to store lat and lon separately as Qualtrics embedded data?

I am having trouble finding the lat/long in the qualtrics data output. Did you work out how to find it?

I am having trouble finding the lat/long in the qualtrics data output. Did you work out how to find it?

This took me hours to figure out and it was so simple! You need to make sure the Text Type in Qualtrics is set as Single Line and not Form. It then records the lat/long in Data & Analysis.

@infiniteugi Due to the way the data is passed from Google Maps to the Qualtrics Survey, it is not currently possible to store the lat and long separately.


Fixed incorrect naming of files

Reverting the naming to stick with how the FLTK library naturally decided to name their files.
There was an error in the renaming where the incorrect libraries were being renamed. Reverting this fixes build linking issues

Hi @smasherprog, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Thanks for the PR!
I bumped the package version since this change affects binary layout.


add more internal docs about base classes

Related
#615

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.31%. Comparing base (fa1582b) to head (70c05db).
Report is 18 commits behind head on development.

Additional details and impacted files
@@               Coverage Diff               @@
##           development     #614      +/-   ##
===============================================
- Coverage        78.43%   78.31%   -0.13%
===============================================
  Files               73       73
  Lines             3251     3251
===============================================
- Hits              2550     2546       -4
- Misses             701      705       +4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Routing doubt / Integration with NgxsRouterPlugin?

I found an example of a router integration, but I cannot use it because the Emittable needs a static method, and I cannot use dependency injection in a static context. Am I missing something?
I tried using the NgxsRouterPlugin but it doesn't seem integrated in the Emittable system, since it forces me to dependencyInject the Store object.
How can I solve this situation?

Unusable example below

export class Navigate {
  static readonly type = '[router] navigate';

  constructor(public payload: string) {
  }
}

@State<string>({
  name:     'router',
  defaults: ''
})
export class RouterState {
  constructor(private router: Router) {
  }

  @Action(Navigate)
  async changeRoute(context: StateContext<string>, action: Navigate) {
    const path = action.payload;
    // context.setState(path);
    await this.router.navigate([path]);
    context.setState(path);
  }
}

// or listen to an event stream ala NgRX Effects

// @Injectable()
// export class RouteHandler {
//   constructor(private router: Router, private actions$: Actions) {
//     this.actions$
//       .pipe(ofAction(Navigate))
//       .subscribe(({ payload }) => this.router.navigate([payload]));
//   }
// }

import { Receiver } from '@ngxs-labs/emitter-plugin';

@State<string>({
  name:     'router',
  defaults: ''
})
export class RouterState {
   private static router: Router;

  constructor(router: Router) {
    RouterState.router = router;
  }

  @Receiver({ action: Navigate })
  public async static changeRoute(ctx: StateContext<string>, { payload: path }: EmitteAction<Navigate>) {
    await RouterState.router.navigate([path]);
    ctx.setState(path);
  }

}

class Component {
   @Emitter(RouterState.changeRoute)
   public changeRoute: Emittable<Navigate>;
}

I was able to make it work, thanks @splincode
Observable implementation

@State<string>({
  name:     'Router',
  defaults: 'YET_TO_ROUTE'
})
export class RouterState {

  private static router: Router;
  private static ngZone: NgZone;

  @Receiver({type: '[Router] Change path'})
  static changeRoute({setState}: StateContext<string>, {payload}: EmitterAction<string>): Observable<boolean> {

    const navigate = () => RouterState.router.navigate([payload]);

    const observable = fromPromise(
      RouterState.ngZone.run(navigate)    // ngZone workaround https://github.com/angular/angular/issues/25837
    )
      .pipe(
        take(1), // one-shot
        share()
      );

    // this way it fires even if emitted doesn't subscribes
    observable.pipe(
      filter(navigated => navigated) // only if actually navigated
    )
      .subscribe(_ => setState(payload));

    return observable;
  }

  constructor(injectedRouter: Router, injectedNgZone: NgZone) {
    RouterState.router = injectedRouter;
    RouterState.ngZone = injectedNgZone;
  }
}

I still would like to know how/if I should use NgxsRouterPlugin


window.titleBarStyle=custom reports window as resizable

VSCode Version: 1.49.0
OS Version: Manjaro Linux 20.1

Steps to Reproduce:
Video demonstration: https://streamable.com/7n20m1

Set window.titleBarStyle to custom.
Open vscode 1.49.0 as the only window in a virtual desktop of i3wm-gaps 4.18.2.
Point cursor at the edge of the vscode window.
Observe window reported as resizeable by cursor icon change (not expected).
Open another window of any application.
Point cursor at the edge of the vscode window.
Observe window reported as resizeable by cursor icon change (not expected).
Point cursor at the edge of the window of a different application.
Observe window not reported as resizable by cursor not changing (as expected).

Does this issue occur when all extensions are disabled?: Yes

Reproducible as of
Version: 1.52.0-insider
Commit: 24b28f57be22fe3029cb17a1dd72d8d9c2d6468b
Date: 2020-11-06T05:40:12.937Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.9.3-1-MANJARO

Unable to repro with VSCode 1.74


Enhancement

Hi,
Love this small library thanks for this work!
Do you plan to implement new features? Those ones would be great:

Add badge / notification  to an item
Allow to keep the text on the bottom of an item when selected (like this library in android with "title states"
Smooth hide/show transition

Currently not planning on adding these features. PR are always welcome though :)

Ok ! Working on it, badges almost done 😄
(I'm building a plugin for NativeScript, I'm going to implement a version for iOS using your library if you want to check this out!)


[AutoPR alertsmanagement/resource-manager] [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2019-03-01

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5944

(message created by the CI based on PR content)

Codecov Report

Merging #5213 into restapi_auto_alertsmanagement/resource-manager will increase coverage by 0.07%.
The diff coverage is n/a.

@@                                Coverage Diff                                 @@
##           restapi_auto_alertsmanagement/resource-manager    #5213      +/-   ##
==================================================================================
+ Coverage                                           53.33%   53.41%   +0.07%
==================================================================================
  Files                                               10455    10454       -1
  Lines                                              218977   219322     +345
==================================================================================
+ Hits                                               116802   117147     +345
  Misses                                             102175   102175

Impacted Files
Coverage Δ

...-luis/azure/cognitiveservices/language/__init__.py

...suggest/azure/cognitiveservices/search/__init__.py

...ledge-qnamaker/azure/cognitiveservices/__init__.py

azure-mgmt-advisor/azure/mgmt/__init__.py

...osearch/azure/cognitiveservices/search/__init__.py
100% <0%> (ø)

azure-mgmt-documentdb/azure/mgmt/__init__.py
100% <0%> (ø)

...computervision/azure/cognitiveservices/__init__.py
100% <0%> (ø)

...rvicebus/azure/servicebus/control_client/models.py
94.8% <0%> (+0.06%)
:arrow_up:

...ure/servicebus/control_client/servicebusservice.py
93.07% <0%> (+0.11%)
:arrow_up:

...zure-sdk-tools/devtools_testutils/mgmt_testcase.py
93.93% <0%> (+0.18%)
:arrow_up:

... and 30 more

Continue to review full report at Codecov.

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


Pose Alignment algorithm

Similar to Pure Pursuit, creating a task that can fix up and correct poses would be useful. This task would use the RoadRunner backend for pose information and be a simple add-on task to the already existing RoadRunner systems, using PID controllers (or potentially additional RoadRunner tasks) to move the robot into place.
This is because new subsystems that modify and change the pose data won't be reflected in the trajectories, and the need for a pose correction task would make sense.

Will need to also consider how 'implicit poses' are interpreted in RoadRunner, may have to change from an implicit end of trajectory system to a getPoseEstimate one, which has drawbacks but may be useful. Will need to investigate.


Light Code Theme

Being able to switch to a light code theme as a complement the default dark theme would be an amazing addition.

Thanks! We don't have plans for now but I bet we will get to it at some point. :)

FWIW, the dark code editor is a big accessibility issue for me (and given that I hardly think I'm unique, likely for others). I have pretty bad eyesight (-7/-8 plus some astigmatism) and sharpness on dark mode widgets is bad to the point of not being usable for me - I have to scale the UI way up versus light mode widgets. I have tried to hack around it using Stylus but there's too much going on in Monaco to make it perfect (I'm chasing the correct CSS invocation for bracket highlighting at the moment :-)).
Please consider a full light mode note as a fancy feature but as an essential accessibility item. https://ux.stackexchange.com/questions/53264/dark-or-white-color-theme-is-better-for-the-eyes

@cdegroot does enabling high contrast mode in Settings make a difference to you? Can you post a screenshot?

@jonatanklosko perhaps we should change high contrast mode to be “light editor mode” and have the high contrast within that as well. I would want to avoid having three different “themes”.

@josevalim works for me!

@josevalim like in https://github.com/elixir-lang/ex_doc/issues/1668 I would argue for a consistent light theme here as well. Light background, dark text, everywhere. I'm not sure what caused the high contrast mode but it feels to me that a more standard dark/light mode toggle would serve many more people without adding to the theme load (and most of the CSS for dark mode for the non-code bits can presumably be lifted from ex_doc).
Moving to a light editor mode would be quite a bit more work than "change the background" which is, AFACT, what high contrast currently does. I'm more than willing to put in the work, but I don't know this code base at all. Can I take it that this would work by just tweaking https://github.com/livebook-dev/livebook/blob/main/assets/js/hooks/cell_editor/live_editor/theme.js, presumably starting from a/the default VS light theme (not a VSC user either but I take it the thing comes with default light/dark modes)? I really prefer submitting PRs over complaining in issues :)

@cdegroot besides having me as the common factor, those are two different projects, maintained and designed by different folks. Their decisions do not have to be related. :)
I also think the themes are all pre-defined. @jonatanklosko do you have a link?

Also, dark/night mode is quite tricky on Livebook, because we have a mechanism for user-defined extensions and basically everyone would have to design two versions as well. That's not a route we want to explore here. So, as per above, different projects, different features, different trade-offs. :)

I also think the themes are all pre-defined. @jonatanklosko do you have a link?

The current one based on Atom One Dark and there is a corresponding Atom One Light that we could try to incorporate. An easy way to access the colors is to open the theme demo in "VS Code for the Web", open command palette with cmd + shift + p and find "Inspect editor tokens".

Thanks, @jonatanklosko, I'll experiment a bit and see whether I can come up with a PR.
@josevalim I know it's different projects. But guess what: nobody from the outside will see it that way :-). And I love the consistency in design between the community's various assets. Do grok the "custom widgets" bit, though. That's a real trade-off.

I use Light themes in VS Code during daylight hours and Dark themes at night (and twilight-ish themes in between 🌆 😏 ).
I'd love to see Light Theme option in monoco for Livebook. Perhaps I can help in some way.


Create mechwart.txt

Added DSZC Mechwart András Industrial Engineering and Information Technology Technical School
School  website:
https://www.dszcmechwart.hu/
IT related course information:
https://www.dszcmechwart.hu/kepzeseink/technikum-szakkepzo/szoftverfejleszto-es-tesztelo

@Levy-Y Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


Add syntax for a fast-fail/strict expansion to string interpolation

Summary of the new feature / enhancement
As a user, I frequently use environment variables to refer to (for example) certain filesystem locations.  Many times, the commands I use are pasted into the command-line from a file of snippets, rather than a full-blown script.  This can lead to problems across multiple systems, if such a variable has not been set.
For example, if I were to do . "${env:TOOLSROOT}\this-tool.ps1" with TOOLSROOT having not been set, I would attempt to source a file from the root of the current directory that, at best, does not exist and, at worst, exists and is not the file I intended.
Now, in full-blown scripts, this is easy enough to circumvent with a basic if ([String]::IsNullOrEmpty("${env:TOOLSROOT}")) or even a Set-StrictMode for normal variables (but—I note—not for environment variables), but is a bit verbose for a snippet or hand-rolled command-line.
POSIX shells, such as Bash, have a number of punctuation/operators in their interpolation syntax which can alter the resulting value, depending on whether the interpolated variable is unset or empty, such as ${AAA-BBB} (emit value BBB if variable AAA is unset, else emit the value of variable AAA) or ${AAA:-BBB} (emit value BBB if variable AAA is empty or unset, else emit the value of variable AAA).  I am not proposing to implement all of these, but there may be some use in implementing some aspect of the ? operator.
Technically, in POSIX, ${AAA?:BBB} means exit with an error string 'BBB' if the variable AAA is unset, else emit the value of variable AAA.  I am thinking we could apply this ? symbol to PowerShell's variable interpolation, and have it fail the expansion with an error, if the variable is not set or results in an empty-string expansion.  This would not be affected by Set-StrictMode, and would always error if empty/unset and always emit the value if successful.
Proposed technical implementation details (optional)
Allow for "${?scope:varname}" to throw an error if ${scope:varname} is unset or would expand to the empty string.  Alternative syntax might be "${scope?:varname}", if that is easier for the existing parser to process.
e.g.
$env:a = "abc123"
Write-Host "${env:a}"
>> abc123
Write-Host "${?env:a}"
>> abc123
Write-Host "${?env:b}"
>> The variable '$env:b' cannot be retrieved because it has not been set.
At line:1 char:13
+ Write-Host "${?env:b}"
+             ~~
    + CategoryInfo          : InvalidOperation: (b:String) [], RuntimeException
    + FullyQualifiedErrorId : VariableIsUndefined

$x = "xyz321"
Write-Host "$x"
>> xyz321
Write-Host "${local:x}"
>> xyz321
Write-Host "${?local:x}"
>> xyz321
Write-Host "${?local:y}"
>> The variable '$local:y' cannot be retrieved because it has not been set.
At line:1 char:13
+ Write-Host "${?local:y}"
+             ~~
    + CategoryInfo          : InvalidOperation: (b:String) [], RuntimeException
    + FullyQualifiedErrorId : VariableIsUndefined

I have picked the ? punctuation because it matches the POSIX operator (although that isn't a requirement), and because I don't think it is already allowed in existing namespaces, so its introduction should not affect prior work.
Note that I am not expecting to be able to customise the error message thrown as a result of a failed expansion (as one can with the POSIX equivalent), only that it should raise an error and prevent execution with an understandable message.  Whether that error is terminating or not is for discussion.

Forcibly shortening the code length will lead to increased complexity.
source  /path/to/your-environment-variable.ps1
[System.Console]::Title = 'your environment variable load'
or
play music
or
read string by speaker

. "$env:TOOLSROOT\this-tool.ps1"    (it really doesn't need the braces) will run from the root of the current drive, it won't run
.   .\this-tool.ps1   (this is frequently a problem with using $PSScriptRoot and then using [F8] to step through the code in an idea instead of running the script from a a file - I have taken to using "If ($PsscriptRoot) {Push-location $psscriptRoot}" (with a pop a then of the script and run use $pwd in place of $psScriptRoot)
We get an error and go "DOH" and put it right.   now let's say we have a new operator which returns the value or throws
.  "$($env:ToolsRoot ?!)\this-tool.ps1
And let's assume we've got over the hurdle that scripts which don't work in older powershell are held to be a bad thing.
Will we remember to to type this to give a different error "your variable is null" instead of "couldn't find the file in the root" ?
Because I don't think anyone will think "I had better use the longer syntax in case I didn't set the variable AND the path points to somewhere I don't want"
Just as we have @" "@   for multi-line interpolated strings we could have something else for fast-failing strings, but again will we remember - decades of muscle memory have me typing " when ' would do.
And is the swap of error messages a sufficient benefit?  Given the only time a script runs is when the unintended version is in the root of the file system, the person who puts an old version in the wrong place and forgets to set the variable before use is probably no  going to remember to use the defensive syntax.

@kasini3000

Forcibly shortening the code length will lead to increased complexity.

Adding any new feature increases complexity.  More-verbose code is not always less complex, either.  Shorter, consise code which uses well-documented features tend to increase usability.

Shorter, concise code which uses well-documented features tend to increase usability.

I suggest not always. You can document the PowerShell aliases as much as you like but they still come across as hieroglyphic gibberish in comparison to the full verb-noun functions and cmdlets. I suggest the full verb-noun form, while more verbose, makes the code more readable and maintainable.

Shorter, concise code which uses well-documented features tend to increase usability.

I suggest not always. You can document the PowerShell aliases as much as you like but they still come across as hieroglyphic gibberish in comparison to the full verb-noun functions and cmdlets.

And yet, l'd bet that most people do not type Get-ChildItem into the interactive shell that often. 😀
However, we are getting off-topic.  This wasn't supposed to be a treatise on the pros and cons of Noun-Verb, nor less-verbose code in general.
I am very specifically interested in a string interpolation syntax which errors if a variable is empty or unset. Set-StrictMode doesn't cover all cases (environment variables, in particular, are not subject to strict checking), and the expansion of "$(if ([String]::IsNullOrEmpty("${env:FolderPath}")) { throw 'expand fail' } else { "${env:FolderPath}" })\file.ext" is utterly tortuous (if it even works) and could obviously be made more user-friendly.

and could obviously be made more user-friendly by syntax without loss of readability or intent.

Unlike compiled languages, scripting languages have to be very conservative in changes. For instance your proposal would mean any scripts using this feature would need a "#Required -Version 7.5" to prevent execution where the feature has not been implemented.

For instance your proposal would mean any scripts using this feature would need a "#Requires -Version 7.5" to prevent execution where the feature has not been implemented.

So what? The same can be said for any new feature. By that logic the team might as well stop all development on PowerShell because any new feature or bug fix they make could cause scripts to behave differently in older versions VS newer versions.
PowerShell has already added new "convenience" syntax features that are incompatible with older versions like ternaries and pipes at the start of new lines. Neither feature were strictly needed, they were just added because they were nice to have.
I personally see a lot of value in OPs suggestion and I think it would be nice if something like this was added. I'm just not sure how best to do this. Strict mode seems like the most straight forward way but because of the unfortunate decision to use versions rather than individual feature toggles, I think the usage would be quite limited.

For instance your proposal would mean any scripts using this feature would need a "#Requires -Version 7.5" to prevent execution where the feature has not been implemented.

So what? The same can be said for any new feature.
This is true and there is some resistance to creating code which might look syntactically correct but fails in down level versions.

I personally see a lot of value in OPs suggestion
As described I think people will use the "normal" syntax in the use case set out.

There could be either

A new kind of quotes for 'interpolate but fail fast' e.g. ?" xxx  ?"
A new "null operator" to condense $x ?? $(throw "Bad null")  it's probably easier to add (e.g.) a ?! operator than to add things to string interpolation and it's usable in more places, but more verbose in use.

However this has the ring of "I typed something wrong, and I thought wouldn't it be better if that could be handled by the some new language syntax?"   And the answer to the that is almost always "No".

The mistake causes an error in nearly all cases (it only rarely runs something that shouldn't run - see my comment above) and the new syntax to change the error message isn't a good way to use developers' time.
Muscle memory, the way people are taught, and above all the failure to anticipate that the variable might be null all mean the new syntax will only rarely be used, and in a script we already check for null and produce an error suitable for the context ("Path needs to be valid" not "Bad null at line 42").

compare these two bits of code for handling bad directory and a failure to open the file.
if (-not $dir) {throw 'Need a directory}
$foo = get-content "$dir\foo.txt
if (-not $foo) {Throw 'Error opening file'}

and
try {$foo = get-content "$($dir ??)\foo.txt" }
catch {
    if ($_  is_bad_null ) {throw "need a directory"}
    else {throw "Error opening file"}
}

I'd say the first is easier to understand, and of course wouldn't be confined to a specific version
An error_if_null operator might still have value... but I'm not seeing it for the examples given

@rhubarb-geek-nz:

For instance your proposal would mean any scripts using this feature would need a "#Requires -Version 7.5" to prevent execution where the feature has not been implemented.

Not really.  If a script contains a new feature or syntax that is not recognised by an older version of the shell, then it fails to parse.  That's entirely normal.  It is only necessary to gate/guard new features which might create breaking changes to reasonable existing code.
Consider the proposed syntax ${?scope:variable}, such as ${?env:test} or ${?local:test}: Noone is going to use that inside of an existing/old script, because it doesn't do anything.  You can't set a variable called ${?local:test} in any existing shell version (you get a 'DriveNotFound' error); if you attempt to get that variable, you get $null; and if you interpolate it, you get the empty string.
Now, consider this feature has been implemented, as described, in a new shell version:  If you interpolate "${?local:test}", you will now either get the stringified value of ${local:test} or an error.
I'm not seeing a danger here.
If I were saying that I wanted the existing behaviour of ${local:test} or ${env:test} to be changed to emit an error if it were interpolated, then your argument against change would be understandable.  However, the behaviour of ${?local:test} is currently undefined, noone can expect to rely on the current $null-returning behaviour.
Defining a behaviour for something that did not have a definition before is exactly what a new feature is.

Consider the proposed syntax ${?scope:variable}, such as ${?env:test} or ${?local:test}: No-one is likely to be using that

@jimbobmcgee   Do you think this syntax will ever be used ?
The ${} Syntax is almost never used.  What actually happens at the command line is people type
gc  $foo\bar.txt
and get
Cannot find path 'C:\bar.txt ' because it does not exist.
They simply won't convert to typing gc  {?local:foo}\bar.txt  on the off chance that they have forgotten to set $foo.  If that possibility occurs to them they'll probably used do $foo to check its value first.
In a function it's really only applicable to external variables - local variables are set in the function, parameters can be made mandatory -  but a "variable is null" error is not giving a better result , assuming that people think to code it, instead of thinking "oh that environment variable might not be set, what should I do in that case"
In short, if you realize you might need it,  you've probably already thought of an other method to solve the problem without it, so you don't need it.  Catch-22 for a new feature, no ?

@jhoneill

Do you think this syntax will ever be used ?

If I didn't think it would be used, I wouldn't have suggested it.  There are many things that I expect very few people use, but they exist, and that doesn't mean that they shouldn't – find me a command or cmdlet that uses the approved verb Ping, for example (Get-Command -All -Verb Ping returns nothing in my WinPS5.1), but Ping is still a valid response from Get-Verb.

The ${} Syntax is almost never used

You seem fixated on the braces.  It's not about the braces.  The braces are not as important as the functionality.  For what it is worth I use the braces, especially in string interpolation, and I would recommend anyone else do the same.  The braces exist for a reason and they should be used for exactly the reason they were invented.
If you think a form of the string-interpolation syntax I am requesting should also work without the braces, then I am all for that, although it might be easier on the parser logic if we require the braces when using the proposed syntax, as written – "$?scope:var" would be a breaking change for anyone who thought they were interpolating variable "$?", for example, while "${?scope:var}" shouldn't fall foul of that.
I'm also open to any other syntax that passes the can be pasted from a text file full of one-liners requirement, which is the reason for the suggestion.  And no, running a script or sourcing a profile that exposes a function to do this does not pass that requirement.

In short, if you realize you might need it, you've probably already thought of an other method to solve the problem without it

Of course I have, it's just that the other methods suck and, since this is an open forum with a dedicated Issue-Enhancement tag, I assumed that suggestions were—you know—welcome. 😄

@jhoneill

Do you think this syntax will ever be used ?

If I didn't think it would be used, I wouldn't have suggested it.

OK... I'll go back to what I said before, people often come up with suggestions, along the lines of "I had a problem and therefore the language should change". Those suggestions shouldn't be unwelcome but often the result is, yes that would solve your problem, but it won't make a lot of other people wonder how they managed without it. There are more possible features than the team can implement, so would they please more people by implementing this one or another one?  And sometimes the answer is "what you're talking about is part of a bigger problem which could do with a solution"
I see a catch 22. I inherited scripts with .  $PsScriptRoot\library.ps1   and when I use [F8] to run it to looks for the library in the root. This would change the error I get. If I have the presence of mind to handle the absence of the variable, I probably do something other than causing a different error.

There are many things that I expect very few people use, but they exist, and that doesn't mean that they shouldn't – find me a command or cmdlet that uses the approved verb Ping, for example
My last client had implemented Ping-serviceName for the APIs they provided to internal apps.

The ${} Syntax is almost never used

You seem fixated on the braces. It's not about the braces. The braces are not as important as the functionality. For what it is worth I use the braces, especially in string interpolation, and I would recommend anyone else do the same. The braces exist for a reason and they should be used for exactly the reason they were invented.

The purpose of the braces was to allow names which would otherwise be illegal. e.g.
> New-Variable -Name "@@" -value "boo"
> $@@
$@@: The term '$@@' is not recognized as a name of a cmdlet, function, script file, or executable program.> ${@@}
boo

It's one way to solve a problem of string interpolating where variable names run into text e.g.
 "$gwgigawatts" is ok, but"$co2`tons" uses a tab. Most cases use concatenation or a -f to dodge this.

If you think a form of the string-interpolation syntax I am requesting should also work without the braces,

I'm wondering if it needs more than a generic solution - just as we have  $private:foo.prop  where  private is a label which looks like a scope, we could have $strict:foo.prop
Or we could have an operator something like ??! which throws if any of the objects passed to it is null  - and I can see uses for $a, $b, $c ??!  or even $array ??!
Or we could have some special syntax for a fast failing interpolated string like @@"xxx"@@

In short, if you realize you might need it, you've probably already thought of an other method to solve the problem without it

Of course I have, it's just that the other methods suck and, since this is an open forum with a dedicated Issue-Enhancement tag, I assumed that suggestions were—you know—welcome. 😄

:-)  My hunch on this one is the scope you've given it is too narrow not that there isn't real problem at the root of it. I'd argue an easy / clear way to make variables fail fast in lots of contexts (not just string interpolation) . A strict label is good for variable which don't need a scope (like environment ones which is where this started).  Variants  of the brace syntax need not be confined to string interpolation...


qrencode: 4.0.2 -> 4.1.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/qrencode/versions.
meta.description for qrencode is: "C library for encoding data in a QR Code symbol"
meta.homepage for qrencode is: "https://fukuchi.org/works/qrencode/"
meta.changelog for qrencode is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 4.1.1 with grep in /nix/store/qr0rfqankszywy8vl2kf7inzkbjbbiwh-qrencode-4.1.1-bin

directory tree listing: https://gist.github.com/a8ac9022b9f24b9bbe75fda27f879c98

du listing: https://gist.github.com/8a1bdd769400ffaef230ea5bb00eea1d

Rebuild report (if merged into master) (click to expand)

492 total rebuild path(s)

159 package rebuild(s)

159 x86_64-linux rebuild(s)
156 i686-linux rebuild(s)
21 x86_64-darwin rebuild(s)
156 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
asc-key-to-qr-code-gif
asciidoc-full-with-plugins
bitcoin
bitcoin-abc
bitcoin-classic
bitcoin-unlimited
calligra
dashpay
digikam
digitalbitbox
dino
dogecoin
faustlive
gen-oath-safe
google-authenticator
haskellPackages.haskell-qrencode
kdeApplications.akonadi-calendar
kdeApplications.akonadi-contacts
kdeApplications.akonadi-import-wizard
kdeApplications.akonadiconsole
kdeApplications.akregator
kdeApplications.calendarsupport
kdeApplications.eventviews
kdeApplications.incidenceeditor
kdeApplications.kaddressbook
kdeApplications.kalarm
kdeApplications.kdepim-addons
kdeApplications.kdepim-apps-libs
kdeApplications.kdepim-runtime
kdeApplications.kgpg
kdeApplications.kmail
kdeApplications.kmail-account-wizard
kdeApplications.knotes
kdeApplications.kontact
kdeApplications.korganizer
kdeApplications.libgravatar
kdeApplications.libkdepim
kdeApplications.libksieve
kdeApplications.mailcommon
kdeApplications.mailimporter
kdeApplications.mbox-importer
kdeApplications.messagelib
kdeApplications.pim-data-exporter
kdeApplications.pim-sieve-editor
kdeApplications.pimcommon
kdeFrameworks.prison
kdev-php
kdev-python
kdevelop
kdevelop-unwrapped

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/qr0rfqankszywy8vl2kf7inzkbjbbiwh-qrencode-4.1.1-bin \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A qrencode https://github.com/r-ryantm/nixpkgs/archive/69e90533b3290359b59b8bb18e95ba5e4c1385de.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/qr0rfqankszywy8vl2kf7inzkbjbbiwh-qrencode-4.1.1-bin
ls -la /nix/store/qr0rfqankszywy8vl2kf7inzkbjbbiwh-qrencode-4.1.1-bin/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @adolfogc @yegortimoshenko for testing.

Closing because of merge conflict.


Support Onsen's swipeable in mobile Navigator

Support RenderMode.ALWAYS in mobile Navigator

See Toolbox PR: https://github.com/xh/toolbox/pull/514
Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[ ] Caught up with develop branch as of last change.
[ ] Added CHANGELOG entry, or determined not required.
[ ] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[ ] Updated doc comments / prop-types, or determined not required.
[ ] Reviewed and tested on Mobile, or determined not required.
[ ] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

Closing in favor of https://github.com/xh/hoist-react/pull/2571


How to get session.cancelDialog work?

Hello,
I'm trying to use session.cancelDialog(, ) to cancel a parent dialog from its child and then restart the parent dialog from the beginning.
My code looks like the following, but I can't get it work.
When session.cancelDialog('/inquery', '/inquery') is executed, the bot state will be corrupted with the error "Oops. Something went wrong and we need to start over.".
Thanks for the help.
bot.dialog('/inquery', [
   ...,
   function (session, result) {
      session.beginDialog('/confirm');
   },
   ...
]);

bot.dialog('/confirm', [
   ...,
   function (session, result) {
      /* cancel current parent dialog and restart it from the beginning */
      session.cancelDialog('/inquery', '/inquery');
   },
   ...
]);

I think you should use it as session.cancelDialog('/confirm', '/inquiry') if you want to cancel confirm and start inquiry. If you want to cancel the parent dialog, not the child, you can check replaceDialog to start parent dialog from zero, you can use it as session.replaceDialog('/inquiry')

Thanks for the reply. The scenario is a little different. what I want to do is:
To make a call to cancel and restart the parent dialog "/inquery" from inside child dialog "/confirm".
According to the documentation, cancelDialog "Cancels an existing dialog and optionally starts a new one it its place."
Before calling session.cancelDialog, the state stack is "/root -> /inquery -> /confirm".
If I called session.cancelDialog('/confirm', '/inquery'), the stack would become
"/root -> /inquery -> /inquery", which is not correct.
If I called session.replaceDialog('/inquery'), the stack would also become "/root -> /inquery -> /inquery".
Is there anyway I can cancel a parent dialog from inside one of its child dialog correctly?
Thanks for the help :)

If you start /inquiry by session.beginDialog('/inquiry') when you are in /confirm dialog, you will be redirected to /confirm only after inquiry finished, note that if there is no waterfall steps left in /inquiry that dialog(the one you refer as parent dialog) will finish as well. To create dialog loops you can use replaceDialog method. If you can write me the exact stack you want such as /confirm -> /inquiry -> /confirm -> /confirm etc, I might help better

Thanks for the reply.
The scenario are broken into the following steps:

The stack before: /root -> /inquiry (old) -> /confirm (prompt the user to answer Y/N)
In dialog "/confirm", the User answers "N", to restart the inquiry process.
In dialog "/confirm", make some calls so that:
(a) Both the current dialog "/confirm" and its parent "/inquiry (old)" can be cancelled.
(b) Then a new dialog "/inquiry (new)" begins, just like calling replaceDialog(inquiry) in the waterfall of "/inquiry".
The stack after: /root-> /inquiry (new)

What should I do in step 3 to get the result?
Thanks for the help :)

In step 2, is the user says no, you can simply end the dialog by session.endDialog()  that would send you back to the last question in inquiry, or you can do session.replaceDialog('/inquiry') which would put you to question 1 of inquiry.
I think can do session.reset() to clear the dialog stack,  as discussed in #101 . You can also try replace dialog with an extra argument passed, replaceDialog('/root', {return:"true"}), sth like that so that you can process this info in root and redirect the user to the necessary dialog.
If you can add some code that would be much easier to understand

Sorry for the delay. If I recall I fixed a bug that might be related in v3.5 which we haven't release yet. Could you install b3.5 using npm install --save botbuilder@next and let me know if you still see the issue?

This bug remains in v3.5.3.
If you dump out the internal dialog stack, you will found that all the dialogIds are automatically added the prefix "*:".
While methods like session.replaceDialog(dialogId) convert the input dialogId automatically and work well, It seems that session.cancelDialog(dialogId) doesn't handle the FIRST parameter in the same way. For example, to cancel the dialog "/intro" and replace it with "/menu", I need to call session.cancelDialog("*:/intro", "/menu") rather than session.cancelDialog("/intro", "/menu");

Good catch... I'll take a look at fixing the cancelDialog() method.

Hi @zytsai - Did you try calling session.startDialog() instead of session.cancelDialog()? For example:
bot.dialog('/confirm', [
   ...,
   function (session, result) {
     // redirect to /inquery dialog
      session.startDialog('/inquery');
   },
   ...
]);

Hi @nwhitmont - there's no method named after "startDialog" in Session class.
ref. https://docs.botframework.com/en-us/node/builder/chat-reference/classes/botbuilder_d.session.html
ref. https://github.com/Microsoft/BotBuilder/blob/master/Node/core/src/Session.ts

@zytsai my bad, I meant session.beginDialog() - example updated.

@Stevenic any update on fixing cancelDialog() as described here?

@zytsai can you include your complete code example that is causing the error?


[ISSUE-203][BUG] fix rss.master.address  not work in rss-worker's configuration file issue

[ISSUE-203][BUG]fix rss.master.address  not work in rss-worker's configuration file issue
What changes were proposed in this pull request?
fix rss.master.address  not work in rss-worker's configuration file issue
Why are the changes needed?
modify WorkerArguments construct logic
What are the items that need reviewer attention?
Related issues.
https://github.com/alibaba/RemoteShuffleService/issues/203
Related pull requests.
How was this patch tested?
/cc @related-reviewer
/assign @main-reviewer

What's your logic in low level? What's your design in top level?  What's the final worth of your delivery?
What's the handler of your process? How do you ensure the closed loop of the result? What's the high-light and advantage of your solution compared to other's?
I find no precipitation and thinking in your solution? Have you built your theory of method? You must make other to figure out that why they should choose your solution and whether any difference instead of other's.
I am a little bit of disappointed in you in fact.


Use of context path routes with Lattice

Submitted via cf-lattice mailing list.
---------- Forwarded message ---------
From: Casey Hadden<EMAIL_ADDRESS>Date: Mon, Oct 5, 2015 at 7:46 AM
Subject: [cf-lattice] use of context path routes with Lattice
To<EMAIL_ADDRESS>Hi all,
We've been experimenting with the new context path based routing feature in a full Cloud Foundry environment. We're interested in trying the same thing within Lattice. Based on the available information, it looks like the same router is being used in both environments, so I'm expecting the capability is there at that level. However, it looks like there is no ability to provide a path instead of a host via the ltc command line or the receptor API.
Is that accurate or am I missing something to make the context path based routing work in Lattice?
Has anyone traveled this path before?
Is it something that could be done with some work to the various components or something that will never work in the Lattice environment?
Thanks.
Casey

@shalako Can you let us know whether gorouter supports this?  And if so, any resources that are doing this today?  (e.g., CF CLI, API with Diego)

Gorouter already supports this. If the hostname in the cf-router section of the create/update lrp call includes a path, Gorouter will route requests for that url to associated backends.
"routes": {
        "cf-router": [
            {
                "hostnames": ["a.example.com/somepath"],
                "port": 8080
            }
        ]
    }

Thanks, @shalako.
FWIW, I was able to get this working in lattice v0.5.0. I made a very much oversimplified and hack change in the ltc command line tool:
		hostname := ""
		if (strings.Contains(override.HostnamePrefix, appRunner.systemDomain)) {
			hostname = override.HostnamePrefix
		} else {
			hostname = fmt.Sprintf("%s.%s", override.HostnamePrefix, appRunner.systemDomain)
		}
		routeMap[override.Port] = append(routeMap[override.Port], hostname)
		//routeMap[override.Port] = append(routeMap[override.Port], fmt.Sprintf("%s.%s", override.HostnamePrefix, appRunner.systemDomain))

That let me issue 'ltc create --http-routes=<IP_ADDRESS>.xip.io/foo foo foo-docker-image' and then I'm able to access <IP_ADDRESS>.xip.io/foo and have the correct application respond.

We're happy to announce v0.6.0 has released!
Please take a look at the ltc route documentation for more information about setting context path routes from ltc.
Let us know what you think!  If this doesn't meet your needs, please open a new Github issue.
@davidwadden


How add react-native-cookies in new version react-native?

My question: https://stackoverflow.com/questions/57995993/how-add-react-native-cookies-in-new-version-react-native

I Compile't in ios，the problem:
ld: warning: meta method 'UIScrollViewContentInsetAdjustmentBehavior:' in category from /Users/liwei/Library/Developer/Xcode/DerivedData/youneiquan-aciuvwaxlskqxxbuqwlqmfskvnsg/Build/Products/Debug-iphoneos/React-Core/libReact-Core.a(RCTScrollViewManager.o) conflicts with same method from another category

warning: the transform cache was reset.

Hi! @aiyuchen I had different, but similar error with react-native-cookies
I have react-native 0.61
I tried to link this module as it is written in readme
But all that is needed to install this package is add pod for ios
pod 'react-native-cookies', :path => '../node_modules/react-native-cookies/ios'
and then install that pod

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.


Backpropagation through time for PPO

PPO + LSTM have a extral hyperparameter what is bptt horizon. Is possible I set up it?

Seems like in RLlib version 1.8.0, there is no native support for configuring the BPTT when using an RNN structure as the model base. Maybe consider trying the latest version of Ray for potential updates on this?


Support of 'name-part' attributes in version 3.0

Hi Michel,
I'm using the 3.0.0-alpha.7 and I noticed that the name-part attributes seem to be ignored (for instance the text-case="uppercase" part in the example below). And it looks to me that the code actually doesn't support it.
<name and="text" name-as-sort-order="all" sort-separator=", " delimiter=", " delimiter-precedes-last="never">
  <name-part name="family" text-case="uppercase"/>
  <name-part name="given"/>
</name>

Am I right or am I missing something ? If not, do you have any plan to support it ?
Generally speaking, we are planning to use your code in production in a few months and generally speaking I would like to know if you already have any idea of a release date for the 1st stable version?
In any case, thank you very much for your much appreciated work!
Nicolas

Thank you for reporting this! The issue should now be fixed.

I would like to know if you already have any idea of a release date for the 1st stable version?

Currently, there is no fixed timeline yet. However, I consider the current alpha version quite stable already. Some aspects of the CSL specification haven't been implemented yet, but in general it should work quite well and using it in production shouldn't be a problem. Before I can release the new version I still need to update the website. I haven't found time for that yet, but I will certainly do it in the near future.

Hi Michel,
I was waiting for an answer and I got an answer, a commit and a new release! The only thing I can say is a huge thank you!
And thank you for the clarifications for the stability. Once again, thank you very much for your great work.


!!! Exception during processing !!! 'AutoencoderKLCogVideoX' object has no attribute '_clear_fake_context_parallel_cache'

System Info / 系統信息
cuda:12.6
torch: 2.5.0+cu124
Python: 3.12.5
Information / 问题信息

[X] The official example scripts / 官方的示例脚本
[ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程
when i run cogvideox-i2v, i will get the error in this node: CogVideo ImageEncode
here is the log :
!!! Exception during processing !!! 'AutoencoderKLCogVideoX' object has no attribute '_clear_fake_context_parallel_cache'
Traceback (most recent call last):
File "E:\comfyui-aki\ComfyUI-aki-v1.4\execution.py", line 323, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\execution.py", line 198, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "E:\comfyui-aki\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-CogVideoXWrapper\nodes.py", line 986, in encode
latents = vae.encode(image_chunk)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\python\lib\site-packages\diffusers\utils\accelerate_utils.py", line 46, in wrapper
return method(self, *args, **kwargs)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-CogVideoXWrapper\mz_enable_vae_encode_tiling.py", line 27, in encode
h = self._encode(x)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-CogVideoXWrapper\mz_enable_vae_encode_tiling.py", line 113, in _encode
return self.tiled_encode(x)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-CogVideoXWrapper\mz_enable_vae_encode_tiling.py", line 86, in tiled_encode
self._clear_fake_context_parallel_cache()
File "E:\comfyui-aki\ComfyUI-aki-v1.4\python\lib\site-packages\diffusers\models\modeling_utils.py", line 155, in getattr
return super().getattr(name)
File "E:\comfyui-aki\ComfyUI-aki-v1.4\python\lib\site-packages\torch\nn\modules\module.py", line 1709, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'AutoencoderKLCogVideoX' object has no attribute '_clear_fake_context_parallel_cache'
Expected behavior / 期待表现
no error

I was having the same issue, ran a git switch to develop and back to main, and it started to work.... :man_shrugging:

I noticed that in nodes.py, the vae._clear_fake_context_parallel_cache() are all wrapped with a try except.
mz_enable_var_encode_tiling.py, vae._clear_fake_context_parallel_cache() doesn't have the same, I added the try, except around the vae._clear_fake_context_parallel_cache() instances and all is working fine now!

I'm also having this same issue.

I tried the fix that @s2n-Gribbly mentioned, but I don't have the vae._clear_fake_context_parallel_cache() in my mz_enable_vae_encode_tiling.py file.
There is a self._clear_fake_context_parallel_cache().   I tried to wrap this in the same try/except and it caused more errors.  I possibly did it incorrectly.
Do you mind posting exactly how you modified the file?

Ok, I've successfully fixed the error on two separate machines.... These are steps I came across accidentally:
I dropped a new CogVideo ImageEncode node down and replaces the old one, I restarted comfyUI and reloaded the workflow, disabled "enable_tlling" and it works fine now, no error.

好的，我已经成功修复了不同机器上的错误……这些是我偶然遇到的步骤：
我删除了一个新的 CogVideo ImageEncode 节点，重新启动了 comfyUI 并重新加载了工作流程，取消了“enable_tlling”，现在运行良好，没有错误。
编辑：我重新连接了原始节点，取消了平铺，但是也有效，所以它不是新节点，然后“enable_tiling”奇怪的是，我最初尝试取消它，但仍然出现错误。
编辑2：更多的侦探工作...一旦错误发生一次，您将需要重新启动comfyUI，否则即使“enable_tiling”被取消，它仍然会继续出错。

oh! crazy! it works! but when i disabled "enable_tiling", i will get an OOM, hahaha~
its indeed a bug，and i saw it has been fixed.

"Has this issue been resolved?"


Missing transition-duration on ProgressBar.Value

Describe the bug
Looks like it was accidentally removed here, so the fixes weren't such safe I suppose ;D

Hi, the issue was just fixed!
https://github.com/semrush/intergalactic/releases/tag/v15.10.0


cmd/scollector: fix rabbitmq backing queue status

:+1:
Was that metric useful for you? Just curious.

It's not yet decided; I am still trying to figure out which metrics I'll be keeping.


This seems like an amazing project!

Hope you're doing well during quarantine!

Closing the issue, just wanted to point it out haha :D


[admin] Publish

Docs Build status updates of commit b9afb42:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

docs/docs-ref-autogen/excel/excelscript/excelscript.pivotfield.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.pivotfilters.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.pivothierarchy.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.pivottable.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.pivotvaluefilter.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/docs-ref-autogen/excel/excelscript/excelscript.valuefiltercondition.yml
:white_check_mark:Succeeded
View (office-scripts)

docs/sample-scripts/excel-scripts.yaml
:white_check_mark:Succeeded

generate-docs/json/excel/snippets.yaml
:white_check_mark:Succeeded

generate-docs/tools/API Coverage Report.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


allow integer qarg in QuantumCircuit.unitary

Summary
Fixes #4944 . You can pass a single integer or a list of integers as qargs in QuantumCircuit.unitary.
Details and comments
To be consistent with other single qubit gates, allow integer qarg for a single qubit unitary gate bulit with QuantumCircuit.unitary. The old syntax is still valid, ie the code below works fine.
X = [[0,1], [1, 0]]
qc = QuantumCircuit(2)
# apply X in qubit 0
qc.unitary(X, 0)
qc.unitary(X, [0])  # old syntax
# apply X both in qubit 0 and 1
qc.unitary(X, [0, 1])

LGTM, thanks for the update. Could you add a releasenote for this?

I made one last change to allow also a single Qubit as qarg (e.g qc.unitary(U, qr[0])).
Releasenote added.

Should "the old way" be deprecated?

Should "the old way" be deprecated?

In this case, the old way is consistent with what's done for other single qubit gates, so I think it's okay to keep.


android getSubscriptions given empty array for my ids but work with this "android.test.purchased'" test id

Version of react-native-iap
4.3.0
Version of react-native
0.63.3
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
should give an array of my subscription that I added on my google console.
Actual behavior
gives an empty array
Tested environment (Emulator? Real Device?)
"android.test.purchased" working both on the emulator and real device but my ids are not working empty array always
Steps to reproduce the behavior

Please help me out with this it's working fine for iOS. Even I put my app on alpha and testing reviews are also done.
Q2. One more question I need to know is it mandatory to verify the receipts from the backend what if I leave this step?

Same issue, any updated?

No luck till now don't know why this issue is happening

I'm on the same situation, iOS is working fine and ready to submit but android is not. I think I followed all the steps but getSubscriptions is always retuning empty

Did you send your android app to review the alpha test? I was thinking to publish the app first in production then I'll try again maybe it requires the app to be in production. However can you please let me know is it mandatory to verify the receipt from the backend? What if I don't want to?

Yes, my app is already in alpha track since yesterday, also I go into the URL for tester, got registered in and when I tap download app is not working.
Verify Receipt is not mandatory but is recommended, it's not difficult to do, I did it on Nodejs for iOS purchases. Playstore verify still missing due this weird problem

Okay great, basically I don't have a Node server I am using firebase for my database. maybe I will implement with the firebase cloud function, can you please share the example of receipt verification?
Annndddd someone please help us with the android subscription :3

I'm using Firebase too, this is my Nodejs code verification receipt, is running on Heroku
app.post("/verifyReceipt", (req, res) => {
  const { receiptData } = req.body;
  console.log(process.env.APPLE_PASSWORD)
  axios.post(verifyURL, {
    'password': process.env.APPLE_PASSWORD,
    'receipt-data': receiptData,
    "exclude-old-transactions": true
  })
    .then(result => {
      if (result.data.receipt) {

        const length = result.data.receipt.in_app.length;
        let subscriptionActive = false;
        let subscription = { active: false };
        for (let i = 0; i < length; i++) {
          const element = result.data.receipt.in_app[i];
          if (moment(parseInt(element.expires_date_ms)).isAfter()) {
            subscriptionActive = true;
            subscription = {
              active: subscriptionActive,
              product_id: element.product_id,
              purchase_date: element.purchase_date_pst,
              expires_date: element.expires_date_pst
            }
            break;
          }
        }
        subscription = { ...subscription, pending_renewal_info: result.data.pending_renewal_info }
        console.log(subscription)
        res.send(subscription)
      } else {
        console.log("Data don't corresponding: ", receiptData)
        res.send({ active: false });
      }

    })
    .catch(error => console.log(error));
})

Thank you so much, Ronal! Please let me know if you find any workaround for android. Good Luck (Y)

Hey, I get my subscription in an array finally it's not empty. Ok so to get the subscription/products you must have to release your app on Open Testing / Closed Testing / Internal Testing. once you are able to see your app on the play store as a beta. Then you are able to get the subscription or products in the array. Hope this works for you to Cheers!

@Hamashassan how may days did you wait? I published on closed testing few days ago and the URL beta download button keep loading after click download

Yes, the same thing was happening for me at first because the app is not being published at playstore as a beta. That's why when we open the URL it didn't find it on the play store. Make sure in your google play console dashboard there is a button "View on play store" when you click it you should see your app on play store as internal beta testing. also, I release the app in production too!


i need help

Please follow the general troubleshooting steps first:

[ ] I carefully followed the instructions in the README and completed successfully the setup wizard.
[ ] I read the ALVR Wikis here and here

If your issue is about games not working, please open an issue for every game and list the game in the title.
Bug reports:
Please replace this line with a brief summary of your issue
Environement
What hardware do you have: CPU, GPU, Audio
What version of ALVR and SteamVR have you tried.
Do you have the latest Windows updates? Run "winver" in Windows 10 to get the version number
Features:
Please note by far the quickest way to get a new feature is to file a Pull Request.
We will consider your request but it may be closed if it's something we're not actively planning to work on.

@zero199o Please provide us with some more information by filling out the issue template so we can help you better. If you'd like, you can drop in our discord server, and we'd be happy to help you find a solution.

Please follow the general troubleshooting steps first:

[ ]  I carefully followed the instructions in the README and completed successfully the setup wizard.
[ ]  I read the ALVR Wikis here and here

If your issue is about games not working, please open an issue for every game and list the game in the title.
Bug reports:
Please replace this line with a brief summary of your issue
Environement
What hardware do you have: CPU, GPU, Audio
What version of ALVR and SteamVR have you tried.
Do you have the latest Windows updates? Run "winver" in Windows 10 to get the version number
Features:
Please note by far the quickest way to get a new feature is to file a Pull Request.
We will consider your request but it may be closed if it's something we're not actively planning to work on.


Testcase grok'ing with kyua list/kyua test breaks if something prints to stderr in atf_init_test_cases

I am integrating lib/libarchive/tests into the FreeBSD test suite and discovered that the "Unrecognized option" message printed to the stderr was breaking atf_init_test_cases for kyua list and kyua test.
Once I redirected stderr to stdout, the test script became functional with kyua list/kyua test.
Something like this should repro the issue:

atf_test_case a
a_body() {
    true
}
atf_init_test_cases()
{
    echo "hello world" >&2
    atf_add_test_case a
}

You cannot do anything in atf_init_test_cases other than register test programs. In particular, printing stuff to stdout/stderr is going to mess things up, because it's going to collide with the output of the test cases listing retrieved via -l. That's how the interface of ATF test programs is defined.


Response type of /info endpoint

According to the response I got from "https://testnut.cashu.space":
{
        "contact": [["",""]],
        "name": "Cashu mint",
        "nuts": ["NUT-07", "NUT-08", "NUT-09"],
        "parameter": {"peg_out_only": false},
        "pubkey": "0269f3034521019580232f631383f097ad8b7e28c4c93fb4e6c5ea1b39a65035e4",
        "version": "Nutshell/0.12.0"
}

The current response type is not correct:
export type GetInfoResponse = {
	name: string;
	pubkey: string;
	version: string;
	description: string;
	description_long: string;
	contact: Array<Array<string>>;
	nuts: Array<string>;
	motd: string;
};

If there is nothing to discuss, I would like to provide this quick fix as my first PR to this repo by changing the response type to:
export type GetInfoResponse = {
	name: string;
	pubkey: string;
	version: string;
	description?: string; // possibly undefined
	description_long?: string; // possibly undefined
	contact: Array<Array<string>>;
	nuts: Array<string>;
	motd?: string; // possibly undefined
	parameter: { // missing property
		peg_out_only: boolean;
	}
};

https://github.com/cashubtc/cashu-ts/pull/74

thanks! Also, feel free to PR it yourself :)


Update getting-started.md

Change line 170 to 'main.js' as web pack.config.js is building filename: 'main.js', not 'bundle.js

Issue previously addressed.


VS Code not discarding when chose revert back to previous changes

Issue Type: Bug
When I have saved changes, I see in the source control tab the changes for Github but when I choose to revert my changes back to its original state and close out of the file that had changes and then go back into that file, I see the changes are still there and that the file is still showing up as an unsave file.
VS Code version: Code 1.58.2 (Universal) (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:09:06.581Z)
OS version: Darwin arm64 20.6.0
Restricted Mode: No

/gifPlease


Dealing with untouchable fields mne-bids writes

So this issue is about some fields mne-bids writes as some hard-coded default values. In example the EEG reference field is hard coded to be 'n/a' or something of the sort.
As of now what Im doing is that after mne-bids makes the eeg sidecar json , I read it and replace the aforementioned field with the value the user gives me but this is rather cumbersome.
Ideally mne-bids should provide an API to set these fields with custom values instead of hard-coded ones, until them we are stuck with replacing whatever mne-bids did.
So the options are:

Keep rewriting the files mne-bids writes
Try to set up an issue (and maybe a PR) correcting this behaviour.

What should we do?

Dear @yjmantilla - I would open a discussion in mne-bids and ask what they think about a pull request from you to change this behaviour. If this is too involved and has too many on-flow effects for them, your workaround and rewrite it sounds ok too me.


Fix Bad Request error when scanning with Account ID that isn’t a valid UUID

What this PR does
This PR fixes a Bad Request error when running a Kubescape scan with an Account ID that is not a valid UUID.
Now, when attempting to run a scan and submit results to an Account ID that is not a valid UUID, Kubescape returns a descriptive error:
~/kubescape$ ./kubescape scan --account=myid
Error: bad argument: account ID must be a valid UUID
Usage:
  kubescape scan [flags]
  kubescape scan [command]

Examples:

  Scan command is for scanning an existing cluster or kubernetes manifest files based on pre-defind frameworks

[ SNIPPED ]

Global Flags:
      --cache-dir string   Cache directory [$KS_CACHE_DIR] (default "~/.kubescape")
      --disable-color      Disable Color output for logging
  -l, --logger string      Logger level. Supported: debug/info/success/warning/error/fatal [$KS_LOGGER] (default "info")

Use "kubescape scan [command] --help" for more information about a command.

[fatal] bad argument: account ID must be a valid UUID

I see you added the validation to the framework command, I think we should add this validation to all commands that use the --account flag.
Also, I think we should add this to the clientID and accessKey.

Hello @vladklokun would like to contribute on this issue if it's still open

This issue has been fixed


Unable to install 2.5.1 on macOS

I run rbenv install 2.5.1 and end up with the following error. It looks like a permissions/file writing issue. I have run xcode-select --install to confirm that is setup (it is).
$ rbenv install 2.5.1
ruby-build: use openssl from homebrew
Downloading ruby-2.5.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2
Installing ruby-2.5.1...
ruby-build: use readline from homebrew

BUILD FAILED (OS X 10.12.6 using ruby-build 20180424)

Inspect or clean up the working tree at /var/folders/v0/_844prt921gckldxpz303cg00000gn/T/ruby-build.20180508204118.18752
Results logged to /var/folders/v0/_844prt921gckldxpz303cg00000gn/T/ruby-build.20180508204118.18752.log

Last 10 log lines:
compiling dmyext.c
compiling miniprelude.c
translating probes probes.d
compiling bignum.c
error: error reading '/dev/fd/9'
1 error generated.
clang: error: unable to remove file: Operation not permitted
dtrace: failed to compile script probes.d: Preprocessor failed to process input program
make: *** [probes.h] Error 1
make: *** Waiting for unfinished jobs....

Apologies for wasting your time with this issue, if its been resolved elsewhere.

Any updates? I am experiencing the same problem. Thanks
Downloading ruby-2.5.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2
Installing ruby-2.5.1...
BUILD FAILED (OS X 10.13.4 using ruby-build 20180424)
Inspect or clean up the working tree at /var/folders/z1/qcpgwxr56dz3rpdx0grgk1200000gn/T/ruby-build.20180519232512.680
Results logged to /var/folders/z1/qcpgwxr56dz3rpdx0grgk1200000gn/T/ruby-build.20180519232512.680.log
Last 10 log lines:
compiling bignum.c
compiling class.c
compiling compar.c
compiling compile.c
error: error reading '/dev/fd/8'
1 error generated.
clang: error: unable to remove file: Operation not permitted
dtrace: failed to compile script probes.d: Preprocessor failed to process input program
make: *** [probes.h] Error 1
make: *** Waiting for unfinished jobs....

Running RUBY_CONFIGURE_OPTS="--disable-dtrace" rbenv install <version> worked for me. YMMV.
Source: https://stackoverflow.com/a/48950894

See https://github.com/rbenv/ruby-build/issues/1061#issuecomment-366127345

Did you try brew upgrade ruby-build ?

Disabling Avira Antivirus (Real-time protection) worked for me.
Same issue was reported on RVM
https://github.com/rvm/rvm/issues/4313


Error 301 in main generator

I tried generating prepack as you said, I tried using the structor generator, created an empty folder, started structor on localhost:2222, but the error message says
["Got error code 301 processing request to http://helmetrex.com/structor/invoke"]

...is the server down, or is it related to the structor itself?

Did you go to adress http://localhost:2222/structor ? or just http://localhost:2222 ?

localhost:2222/structor...it says on the main screen

good, then what exactly you did, just elaborate on steps you did.

$ npm i -g structor
$ mkdir structor-project
$ cd structor-project
$ structor

Then i went to localhost:2222/structor and the errror message was
["Got error code 301 processing request to http://helmetrex.com/structor/invoke"]

that is strange error, Structor server REST api is exposed through the endpoint
http://localhost:2222/structor/invoke

I could not understand why you was redirected to http://helmetrex.com, even not to https://helmetrex.com
Do you have everything OK in dns or hosts configuration ?

Could you tell what OS you have an browser ?

Mac OS X El Capitan....Chrome 49

Same as me :-)

:) and I haven't changed anything regarding DNS or hosts, I don't think that's supposed to be an issue...

Well, and what is node and npm versions? It seems that Structor will work only with npm 3.8.x

node v. 5.7.1,
npm 3.8.6.

Here what was happened when I made your steps, starting from installation
Also, 404 error - is because Structor tries silently to authenticate your account, but this is not critical error

I see....here's what I'm facing...

Oh! You have an old version of Structor... try to uninstall completely
npm uninstall structor -g

and then install new one :-)

I installed it today...i uninstalled it now, ran npm i -g structor again...still the same version...should I pull it directly from git then?

I think it would be better, if you go to your node directory and find where structor dir is, then just remove it completely (delete it).
I have it here:
NODE_HOME/lib/node_modules/structor

And then install structor again with -g flag

I did...now structor is completely broken... :(
module.js:341
    throw err;
    ^

Error: Cannot find module './server/controller.js'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/tarik/.nvm/versions/node/v5.7.1/lib/node_modules/structor/structor.js:22:18)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)

Also, before I deleted it...I installed structor from git, and it still said 0.2.7.
Now I can't install structor at all...

It seems that you have two nodes though :-)
Ok, I did make release of structor on github only few hours ago, if you know how to install structor from git, please do it.

I did exactly that...
npm i -g structor@https://github.com/ipselon/structor.git

...I assume it is a problem with my configuration, since I installed some things using brew, some using npm...maybe there's a node conflict of sorts...
Is there another way to do a fresh installation of structor? Should I maybe clone it instead of using npm?

Aha, download release from here, unpack it somewhere, then build
npm run build-server
npm run build-client

go to parent directory, and install structor again
npm install ./folder_where_you_unpacked -g

Finally got it to work :) Sorry it was an issue with my configuration..but thank you very much for help :)

You are welcome. Try to create generators...


Bluetooth: Host: Read max advertising data length from the controller

Read maximum advertising data length from the controller at host initialization and store the returned value.
Add a test that check that we get the right error code when trying to set too large advertising data and that we are able to send/receive large advertising data.
Fix https://github.com/zephyrproject-rtos/zephyr/issues/45230

@cvinayak Do you have any idea why central_hr_peripheral_hr is failing here? I tried to rebase on main my branch on local but I wasn't able to reproduce the failure

~@cvinayak Do you have any idea why central_hr_peripheral_hr is failing here? I tried to rebase on main my branch on local but I wasn't able to reproduce the failure~
My bad, it's a 53bsim test, I managed to reproduce it

Good that my favorite test has now caught a BT Spec requirement...


Single-nucleus cross-tissue molecular reference maps to decipher disease gene function.

Collection/dataset this task is for:

file name - all of them
link to existing collection in cellxgene"
ticket link to DCP wrangling ticket (if available)
link to ingest UI: https://contribute.data.humancellatlas.org/projects/detail?uuid=31887183-a72c-4308-9eac-c6140313f39c
link to DCP: https://data.humancellatlas.org/explore/projects/31887183-a72c-4308-9eac-c6140313f39c/project-matrices

Relevant People

Wrangler
Contributor
dev

Primary Wrangler:
Associated files

SOP
Knowledge Sharing Drive
Ingest-cellxgene-submitter
Cellxgene-schema
Cellxgene-schema-validate
Cellxgene-submit-collection

Published study links

Paper: https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>2954v1.full
https://www.gtexportal.org/home/singleCellOverviewPage
https://singlecell.broadinstitute.org/single_cell/study/SCP1479/single-nucleus-cross-tissue-molecular-reference-maps#study-download

Accessioned data:

Key Events

[x] Collect necessary matrix, cell-type annotation, and embedding files
[x] Modified var layer to meet cellxgene schema (adding feature_is_filtered)
[x] Created/Modified raw.var to meet cellxgene schema
[x] Modified obs layer to meet cellxgene schema
[x] Created uns layer to meet cellxgene schema
[x] Ensured obsm layer is present
[x] Created h5ad with processed component parts using AnnData
[x] Created h5ad with raw matrix and raw var using AnnData
[x] Filtered ENSEMBL IDs from annotated and raw matrix
[x] Combined processed and raw h5ad to one h5ad object
[x] Run cellxgene-schema validate
[ ] Secondary review (?)
[x] Submitted to collection in cellxgene

Uploaded to CellxGene, but having conversion issues when uploading on their data portal's end. Waiting on that

Wei needs to send an email to the contributor to inform them.

Modified and reuploaded. Now waiting for Jason's feedback.


Downgrade version to 2.9.2 to push a patch release.

Still working out the details for release process / branching.
Planned next steps:

Merge this
Trigger https://github.com/nod-ai/shark-ai/actions/workflows/build_packages.yml to build 2.9.2
Delete 3.0.0 wheels from https://github.com/nod-ai/shark-ai/releases/tag/dev-wheels
Push 2.9.2 to PyPI
Revert this PR to get the version back to 3.0.0

Pushed 2.9.2 to PyPI. Waiting a bit before changing the version to 3.0.0. May still want a 2.9.3.


Build linker issue on macOS 12

I'm trying to build a MacPorts port of arangodb. Please see https://github.com/macports/macports-ports/pull/13812
Using the standard cmake build I'm hitting a link error on macOS 12 that looks like undefined symbols within the arangodb compiled objects (log attached).
May I please request some help to make sure that the cmake system is providing the correct -L or other flags for this build?
Build error:
cd /opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/build/3rdParty/boost && /opt/local/bin/ccache /opt/local/bin/ccache /opt/local/bin/clang++-mp-12 -DARANGODB_BITS=64 -DARANGODB_OPENSSL_VERSION=\"1.1.1l\" -DARANGODB_USE_IPO=1 -DASM_OPTIMIZATIONS=1 -DBOOST_ALL_NO_LIB=1 -DBOOST_LOCALE_NO_WINAPI_BACKEND=1 -DBOOST_LOCALE_WITH_ICU=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX=1 -DNDEBUG -DNROCKSDB_THREAD_STATUS -DOPENSSL_NO_SSL2 -DOPENSSL_VERSION_MAJOR=1 -DOPENSSL_VERSION_MINOR=1 -DROCKSDB_SUPPORT_THREAD_LOCAL -I/opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/build -I/opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/build/lib -I/opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/arangod -I/opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/lib -I/opt/local/libexec/openssl11/include -isystem /opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/V8/v7.9.317/third_party/icu/source/common -isystem /opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/V8/v7.9.317/third_party/icu/source/i18n -isystem /opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/V8/v7.9.317/third_party/icu/source/io -isystem /opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/boost/1.71.0 -Wall -Wextra -Wno-unused-parameter -Wno-deprecated-declarations -march=skylake-avx512 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mfma -mbmi2 -mavx2 -mavx512f -mavx512vl -mavx512cd -mavx512dq -mavx512bw -mno-sse4a -mno-xop -mno-fma4 -mno-avx512pf -mno-avx512er -mno-avx512ifma -mno-avx512vbmi  -pipe -I/opt/local/libexec/open
ssl11/include -I/opt/local/libexec/boost/1.71/include -Os -I/opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/iresearch/external/absl -DNDEBUG -I/opt/local/libexec/openssl11/include -I/opt/local/libexec/boost/1.71/include -isystem/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -pipe -I/opt/local/libexec/openssl11/include -I/opt/local/libexec/boost/1.71/include -Os -I/opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/iresearch/external/absl -DNDEBUG -I/opt/local/libexec/openssl11/include -I/opt/local/libexec/boost/1.71/include -isystem/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -std=c++17 -stdlib=libc++ -mmacosx-version-min=12.0  -Wno-range-loop-analysis -g0 -O3 -fomit-frame-pointer -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12.0   -Wno-deprecated-declarations -std=gnu++17 -MD -MT 3rdParty/boost/CMakeFiles/boost_locale.dir/1.71.0/libs/locale/src/shared/format.cpp.o -MF CMakeFiles/boost_locale.dir/1.71.0/libs/locale/src/shared/format.cpp.o.d -o CMakeFiles/boost_locale.dir/1.71.0/libs/locale/src/shared/format.cpp.o -c /opt/local/var/macports/build/_opt_local_ports_databases_arangodb/arangodb/work/arangodb-3.8.5/3rdParty/boost/1.71.0/libs/locale/src/shared/format.cpp
:info:build undef: __ZTVN8arangodb13ConfigFeatureE
:info:build undef: __ZN8arangodb19ArangoGlobalContextC1EiPPcPKc
:info:build undef: __ZN8arangodb19ArangoGlobalContext10installHupEv
:info:build undef: __ZN8arangodb20application_features17ApplicationServerC1ENSt3__110shared_ptrINS_7options14ProgramOptionsEEEPKc
:info:build undef: __ZN8arangodb13ConfigFeatureC1ERNS_20application_features17ApplicationServerERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEESC_
:info:build undef: __ZN8arangodb13LoggerFeatureC1ERNS_20application_features17ApplicationServerEb
:info:build undef: __ZN8arangodb18ShellColorsFeatureC1ERNS_20application_features17ApplicationServerE
:info:build undef: __ZTIN8arangodb15ShutdownFeatureE
:info:build undef: __ZN8arangodb14VersionFeatureC1ERNS_20application_features17ApplicationServerE
:info:build undef: __ZN8arangodb19ArangoGlobalContext4exitEi
…
:info:build undef: __ZN8arangodb20application_features18ApplicationFeature7prepareEv
:info:build undef: __ZN8arangodb20application_features18ApplicationFeatureC2ERNS0_17ApplicationServerERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
:info:build Undefined symbols for architecture x86_64:

Build log:
main.log.zip

Please note that for the time being we only can support Homebrew as build target on MacOS.
you can probably use llvm-cxxfilt to make these missing symbols to c++ names and search which binaries the linker is missing here.
Once you've found the C++ file containing that code, you can search for the object file in your compile directory, and whether its in that linker command. (or some .a file which is linked into this)
It can also be that the sequence of files isn't right. Afaik linking is done left to right, hence the sequence of libs, objects is important. So while something may leave an unresolved symbol, that has to be provided by later loaded objects / libs.
For that reason it may even be, that files / libs are mentioned several times, so later comming files may use symbols from them.

Please note that for the time being we only can support Homebrew as build target on MacOS.

This appears to be a macOS issue for arangodb, not a Homebrew or MacPorts issue.
Would you please post or link to the build commands that are supposed to work for v3.8.5 on macOS (with openssl 1.1 installed)? I've looked, but do not see any instructions in obvious place like https://github.com/arangodb/arangodb/tree/devel/Installation/homebrew or the comments of https://github.com/arangodb/arangodb/blob/devel/CMakeLists.txt.
If I have a working build on macOS, it's easy to write a MacPorts Portfile for it.
The issue is that a standard cmake build fails on macOS, at least macOS 12.

Devel:
cmake -DUSE_FAILURE_TESTS=On -DDEBUG_SYNC_REPLICATION=On -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_MAINTAINER_MODE=On -DUSE_ENTERPRISE=Off -DUSE_JEMALLOC=Off -DCMAKE_SKIP_RPATH=On -DPACKAGING=Bundle -DPACKAGE_TARGET_DIR=/Users/jenkins/vm10-mac/oskar/work -DOPENSSL_USE_STATIC_LIBS=On -DOPENSSL_ROOT_DIR=/Users/jenkins/vm10-mac/oskar/work/openssl/openssl-1.1.1m/build/release/no-shared -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DUSE_STRICT_OPENSSL_VERSION=On -DCMAKE_CXX_COMPILER=/usr/local/opt/ccache/libexec/clang++ -DCMAKE_C_COMPILER=/usr/local/opt/ccache/libexec/clang -DUSE_CCACHE=Off -DTARGET_ARCHITECTURE=sandy-bridge

3.9:
cmake -DUSE_FAILURE_TESTS=On -DDEBUG_SYNC_REPLICATION=On -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_MAINTAINER_MODE=On -DUSE_ENTERPRISE=Off -DUSE_JEMALLOC=Off -DCMAKE_SKIP_RPATH=On -DPACKAGING=Bundle -DPACKAGE_TARGET_DIR=/Users/jenkins/hw36-mac/oskar/work -DOPENSSL_USE_STATIC_LIBS=On -DOPENSSL_ROOT_DIR=/Users/jenkins/hw36-mac/oskar/work/openssl/openssl-1.1.1m/build/release/no-shared -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 -DUSE_STRICT_OPENSSL_VERSION=On -DCMAKE_CXX_COMPILER=/usr/local/opt/ccache/libexec/clang++ -DCMAKE_C_COMPILER=/usr/local/opt/ccache/libexec/clang -DUSE_CCACHE=Off -DTARGET_ARCHITECTURE=sandy-bridge

Yes, it could well be that macos 12 is not yet supported as build host.

Thanks! I have a working MacPorts build now. I just needed to remove a load library from LDFLAGS.
Also, I believe I see an issue with the cmake build system: the _SYSCONFDIR_ directory is incorrectly transposed with etc and PREFIX when the file build/lib/Basics/directories.h is created. The correct path (using MacPorts's default PREFIX) should be /opt/local/etc/arangodb3, but the #define statement says /etc/opt/local/arangodb3.
Please let me know if you'd like me to generate a separate issue.
See: https://github.com/macports/macports-ports/pull/13812/files#r798124004

hm, you put in all those ccache things, but specify -DUSE_CCACHE=Off ?

please note that the 3.8.5 release has been withdrawn, please go back to 3.8.4 or follow later release anouncements.

Thanks again.

hm, you put in all those ccache things, but specify -DUSE_CCACHE=Off ?

Yes, the 3rdParty dependencies still use ccache, so that appears to be necessary.

Will specifying SYSCONFDIR help? https://github.com/arangodb/arangodb/blob/devel/cmake/GNUInstallDirs.cmake

No,  SYSCONFDIR  is already set to etc. The issue is that it's being transposed somewhere with CMAKE_INSTALL_PREFIX.

try overriding sysconfdir's calculation with the real value you'd prefer it to be.

arangodb is now in MacPorts: https://ports.macports.org/port/arangodb/
Thanks again for your help.

great! Meanwhile <IP_ADDRESS> is available if you may want to upgrade?

another note;
You're missing the ArangoDB-Starter (which is why you've added the go-dependency):
  # the ArangoStarter is in a separate github repository;
  # it is used to easily start single server and clusters
  # with a unified CLI
  resource "starter" do
    url "https://github.com/arangodb-helper/arangodb.git",
        tag:      "0.15.3",
        revision: "814f8be9e5cc613a63ac1dc161b879ccb7ec23e0"
  end

  def install
    ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version if OS.mac?

    resource("starter").stage do
      ENV["GO111MODULE"] = "on"
      ENV["DOCKERCLI"] = ""
      ldflags = %W[
        -s -w
        -X main.projectVersion=#{resource("starter").version}
        -X main.projectBuild=#{Utils.git_head}
      ]
      system "go", "build", *std_go_args(ldflags: ldflags), "github.com/arangodb-helper/arangodb"
    end

(quoting the homebrew formular)

We no longer support native Mac server Binaries.
For the use on M1 machines linux-ARM-Docker containers are available.


y_true==1 in PadimSVDD

Hi @Pangoraw,
What is y_true ==1 in PadimSVDD? Does 1 mean normal image and 0 means anomalous?
pbar = tqdm(range(n_epochs))
        for epoch in pbar:
            loss_epoch = 0
            n_batches = 0
            for imgs, y_true in train_dataloader:
                imgs = imgs.to(self.device)
                y_true = y_true.to(self.device)
                imgs = imgs[y_true == 1]

                optimizer.zero_grad()

Thanks

i am not sure if padimsvdd.pretrain() does something actually. I don't recall exactly what it meant to do

Okay.


Update universal-resource-scheduling.md

Clarify that travel times are only returned when latitude and longitude are defined on the resource requirement.

@shubhadaj please review and merge.


Additional email validation in v4.0.0 breaks our setup

Context
We use oauth2_proxy to restrict service access to members of two Google groups. Those groups belong to different domains. There is no Google account that can list the members of both groups, so we deploy two oauth proxies with different values for the -google-admin-email parameter. Both oauth proxies share one cookie secret.
Expected Behavior
All users are authenticated by Proxy1. Users of domain1 use Proxy1 for setting the cookie, and users of domain2 use Proxy2 for setting the cookie. Proxy1 accepts cookies issued by both Proxies, given that they use the same cookie secret.
Current Behavior
Version 3.2.0 behaves as described.
With commit bd651df3c25c5e82eec093b5c7b5ef1067bbf489, an additional p.provider.ValidateGroup(session.Email) was introduced after validating the cookie. This call fails in our setup when users of domain2 are authenticated by Proxy1.
Possible Solution
I'm not sure if this is a bug or working as intended. Basically the behaviour of the auth route was changed from "If you have a valid cookie, you can pass" to "if you have a valid cookie, we query the Google API to make sure you are a member of the right groups and if you are, you can pass".

@brianv0

In refreshing my memory with the PR - I believe this was an attempt to normalize logic that exists below in the same file as well as more completely address #141, so I think it's closer to "working as intended", especially with more providers having group validators. I'd like @JoelSpeed to weigh in.

BTW, I deployed a helloworld app behind an oauth proxy v3.2 and behind an oauth proxy v4.0 to measure the impact of querying the Google API on request duration, and found that the service behind oauth proxy v4.0 takes approximately 80ms more to answer requests than the one behind oauth proxy v3.2.
I was also able to hit Google's rate limiting by making 400 requests to the helloworld app using curl in a for-loop.
Taking both the performance penalty and the rate limiting into account, I think it would be nice to allow authentication without querying the Google API for each request. After all, this effectively rate-limits the services behind an oauth proxy.

BTW, I deployed a helloworld app behind an oauth proxy v3.2 and behind an oauth proxy v4.0 to measure the impact of querying the Google API on request duration, and found that the service behind oauth proxy v4.0 takes approximately 80ms longer to answer than the one behind oauth proxy v3.2.
I was also able to hit Google's rate limiting by making 400 requests to the helloworld app using curl in a for-loop.
Taking both the performance penalty and the rate limiting into account, I think it would be nice to allow authentication without querying the Google API for each request. After all, this effectively rate-limits the services behind an oauth proxy.

I'm slightly confused that this actually worked before. It was always checking the group:
https://github.com/pusher/oauth2_proxy/blob/v3.2.0/oauthproxy.go#L779
But it was only doing so on initialization on the callback, instead of every request.
The code I added has to do it every request because the session may be derived from a token (so callback never called), however I agree that in the Google provider there should be some caching on the group members lookup, and there's none now.

It worked before because we have two separate oauth proxy instances, one for each domain. Users of domain1 would use Proxy1 to sign in (they are members of a group of domain1) and users of domain2 would use Proxy2 to sign in (they are members of a group of domain2). So the OAuthCallback function that already included the check before would be called in the right oauth proxy.
Our services all use Proxy1 to authenticate users. Given that Proxy1 and Proxy2 share a cookie secret, users that signed in with Proxy2 would also be sucessfully authenticated by Proxy1 as they have a valid cookie. Now that the authenticate function also checks the group, Proxy1 does not authenticate users that signed in with Proxy2 anymore (because they are not members of the group of domain1).

ah I see. I suppose you could have a third proxy which didn't use a group enforcement/admin email - but you'd want to make sure that proxy's /oauth2/start (and possibly /oauth2/sign_in) endpoints were protected/blocked in some way so it could not be used for a login.
I think that it's maybe possible for ValidateGroup to be removed. Only the google provider implements it. If people are using JWTs from Google to authenticate to oauth2_proxy AND expecting group validation - that would break for them, but as you point out, there's an API rate limiting issue so maybe that's not likely being used.

We actually found that with v4.0.0 we don't even need this dual proxy setup anymore. Since commit 7d910c0ae8eef5620fd6524a38521e953d1adb8e we can have one group in domain1 that contains members of domain1 and domain2 and let oauth2_proxy check for membership in that group.
I'm leaving this issue open anyway, so the idea of caching the group member lookup or removing ValidateGroup from getAuthenticatedSession can still be discussed here.


Tutorial of creating bot with this package

🎉 Feature Request
Tutorial of creating bot with this package.
Summary
How to create new bot and features with this package? is there some tutorials ?

Hi @Odilbukh
You can take a look at the example-bot repository for some examples of how to create custom commands.
As far as I know, nobody has made a "full" tutorial on how to use it. PHP knowledge is definitely required!

Hi @noplanman  Thanks for answer!
I installed the package and webhook as written in README. My bot is working. BUT only admin commands works but another commands does not work even start command. Although I haven't changed it.

ok! I fixed it
But how can I handle text that user send to bot.
Now in GenericmessageCommand files:
$message = $this->getMessage();
$user_id = $message->getFrom()->getId();
$chat_id = $message->getChat()->getId();
$text = $message->getText();
$conversation = new Conversation($user_id, $chat_id, $this->getName());
    if($text !== null) {
        $text = $message->getText(true);
        if (stripos($text, 'tiktok')) {
            return $this->telegram->executeCommand('tiktok');
        }
        if (stripos($text, 'Menu') === 0) {
            return $this->telegram->executeCommand('menu');
        }

        if (stripos($text, 'Balance') === 0) {
            return $this->telegram->executeCommand('balance');
        }
        if (stripos($text, 'Send') === 0) {
            return $this->telegram->executeCommand('send');
        }
        return $this->replyToChat(
            'Command not found'
        );
    }

    But nothing happens when user sends message to bot

can you help me?

Make sure there is only one GenericmessageCommand.php file in your custom commands folder, as multiple ones will override each other.

Hi @noplanman
Unfortunately example-bot isn't informative. (A way too OOP for simple feature examples)
Have a hard time to integrate with SLIM to create simple flow for inline and other features as menu.
(First, tried to integrate as Middleware, but result does not look cool)
At first look php-telegram-bot, looks pretty cool and powerful,
but lack of simple examples (as on outdated telegram-bot-php )
forcing me to look forward to another bot library, unfortunately.
Sad about that a bit.
Maybe this library require just documentation for method calls, and possibilities, otherwise need to invest in time to dig in source code. Isn't clear that it worth it, yet.


Tooltip: show concrete generic parameters

I would like to see what 'T refers to in this context.
For comparison, I think C# handles this quite nice wrt anonymous types:

If you use non-anonymous classes, then the parameters are directly filled in:

But imo, for F#, i would prefer it if it would show the method signature without replacing the generic parameters and then showed the values of the parameters below.

What I would prefer:

I think what you suggested would be great.  It's really easy to have 'T be a long type, but having it at the bottom like that would alleviate the pain of really really long type signatures on a single line.

I like this suggestion very much.  I can help with the FCS work to get the FSharpType values for the type instantiations available.

I can help with the FCS work to get the FSharpType values for the type instantiations available.

I started taking a look at this since it's something I've been meaning to do for a long time and I know it's a really awful bit of work in the compiler service (which is why it hasn't been done).  The code that tracks instantiations and their "pretty" form where we get rid of type inference variables in the IDE is a mess.
Anyway, here's a link to the branch - it will likely be a while before it is ready to even look at, I'm just including the link for my own reference
https://github.com/Microsoft/visualfsharp/compare/master...dsyme:gp1?expand=1

@0x53A @cartermp Am I right in thinking we would only want this for quick info (i.e. tooltips)?
For example, should "x.Foo" where "x" has generic type show explicit type variable instantiations in the item descriptions in the completion list for "Foo" ?  Currently I'm assuming not.
Right now the items in the declaration list show the substituted types
let x = ResizeArray<int>()

x.ToArray // shows a return type of int[]

So as things stand with the prototype PR we will only show explicit instantiations for generic method, F# functions and F# operators.  We won't show explicit instantiations for type parameters arising from generic types - instead these are explicitly substituted.  I think this is OK but a little inconsistent

Yes, I'm thinking that only QuickInfo makes sense.  At least for now.  We can see how we feel once this is in for QuickInfo.

The WIP PR is here https://github.com/Microsoft/visualfsharp/pull/2929

Close as this has been merged


19850 list view

This PR adds a list view to the DataPackPage. On small screens this list view will look like a list of cards, and on larger screens it will be a fully functional table with sort-able columns.
A setup file was added for test that allows tests to change the dom size using resizeTo(width, height)
Also contains a fix for the host name issues caused by a webpack breaking change.

Coverage increased (+0.4%) to 81.836% when pulling 8c56a748f805be48be33b4d4e156e2deb6f21bfe on 19850-ListView into e375ae9dbea6ed3312db7ac921055d34088f362c on master.