Errors when using 'play' or 'vol' (still works)

Issue Description
I have not tested extensively but there are a couple actions that cause different errors. Two that I found are included here.
Functionality Affected

Controlling the local Spotify client (changing track, pausing, skipping, muting) ←

sp play

sp play.txt error log

sp vol *

vol x.txt error log

Software Versions

Spotify client version: Spotify for Windows (64 bit) <IP_ADDRESS>5.g81fd6352
Flow Launcher version (Flow Settings > About): 1.19.0

Please also make sure you're running the latest version of Flow.Launcher.Plugin.SpotifyPremium - yes, checked thrice.
Error info:

play
Flow  Launcher  version:  1.19.0
OS  Version:  19045.4780
IntPtr  Length:  8
x64:  True

Python  Path:  C:\Users\harrisond33\OneDrive  -  MacEwan  University\syncing\flow  launcher\FlowLauncher\app-1.19.0\UserData\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node  Path:
Date:  08/17/2024  15:01:09
Exception:
Newtonsoft.Json.JsonReaderException:  Unexpected  character  encountered  while  parsing  number:  q.  Path  '',  line  1,  position  1.
at  Newtonsoft.Json.JsonTextReader.ReadNumberCharIntoBuffer(Char  currentChar,  Int32  charPos)
at  Newtonsoft.Json.JsonTextReader.ReadNumberIntoBuffer()
at  Newtonsoft.Json.JsonTextReader.ParseValue()
at  Newtonsoft.Json.JsonReader.ReadForType(JsonContract  contract,  Boolean  hasConverter)
at  Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader  reader,  Type  objectType,  Boolean  checkAdditionalContent)
at  Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader  reader,  Type  objectType)
at  Newtonsoft.Json.JsonConvert.DeserializeObject(String  value,  Type  type,  JsonSerializerSettings  settings)
at  Newtonsoft.Json.JsonConvert.DeserializeObject[T](String  value,  JsonSerializerSettings  settings)
at  SpotifyAPI.Web.Http.NewtonsoftJSONSerializer.DeserializeResponse[T](IResponse  response)
at  SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T](IRequest  request)
at  SpotifyAPI.Web.Http.APIConnector.SendAPIRequestDetailed(Uri  uri,  HttpMethod  method,  IDictionary`2  parameters,  Object  body,  IDictionary`2  headers)
at  SpotifyAPI.Web.Http.APIConnector.Put(Uri  uri,  IDictionary`2  parameters,  Object  body)
at  SpotifyAPI.Web.PlayerClient.ResumePlayback()
at  Flow.Launcher.Plugin.SpotifyPremium.SpotifyPluginClient.Play()  in  D:\a\Flow.Launcher.Plugin.SpotifyPremium\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPluginClient.cs:line  149
at  Flow.Launcher.Plugin.SpotifyPremium.SpotifyPlugin.<>c__DisplayClass37_0.<SingleResultInList>b__0(ActionContext  _)  in  D:\a\Flow.Launcher.Plugin.SpotifyPremium\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPlugin.cs:line  568
at  Flow.Launcher.Plugin.Result.ExecuteAsync(ActionContext  context)  in  /_/Flow.Launcher.Plugin/Result.cs:line  246
at  Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String  index)  in  C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line  389
at  CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task  executionTask)
at  System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object  state)
at  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate  callback,  Object  args,  Int32  numArgs)
at  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object  source,  Delegate  callback,  Object  args,  Int32  numArgs,  Delegate  catchHandler)

vol *

  Flow  Launcher  version:  1.19.0
  OS  Version:  19045.4780
  IntPtr  Length:  8
  x64:  True

  Python  Path:  C:\Users\harrisond33\OneDrive  -  MacEwan  University\syncing\flow  launcher\FlowLauncher\app-1.19.0\UserData\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
  Node  Path:
  Date:  08/17/2024  15:10:03
  Exception:
  SpotifyAPI.Web.APIException:  Player  command  failed:  Cannot  control  device  volume
  at  SpotifyAPI.Web.Http.APIConnector.ProcessErrors(IResponse  response)
  at  SpotifyAPI.Web.Http.APIConnector.DoRequest(IRequest  request)
  at  SpotifyAPI.Web.Http.APIConnector.DoSerializedRequest[T](IRequest  request)
  at  SpotifyAPI.Web.Http.APIConnector.SendAPIRequestDetailed(Uri  uri,  HttpMethod  method,  IDictionary`2  parameters,  Object  body,  IDictionary`2  headers)
  at  SpotifyAPI.Web.Http.APIConnector.Put(Uri  uri,  IDictionary`2  parameters,  Object  body)
  at  SpotifyAPI.Web.PlayerClient.SetVolume(PlayerVolumeRequest  request)
  at  Flow.Launcher.Plugin.SpotifyPremium.SpotifyPluginClient.SetVolume(Int32  volumePercent)  in  D:\a\Flow.Launcher.Plugin.SpotifyPremium\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPluginClient.cs:line  243
  at  Flow.Launcher.Plugin.SpotifyPremium.SpotifyPlugin.<>c__DisplayClass22_0.<SetVolume>b__0()  in  D:\a\Flow.Launcher.Plugin.SpotifyPremium\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPlugin.cs:line  327
  at  Flow.Launcher.Plugin.SpotifyPremium.SpotifyPlugin.<>c__DisplayClass37_0.<SingleResultInList>b__0(ActionContext  _)  in  D:\a\Flow.Launcher.Plugin.SpotifyPremium\Flow.Launcher.Plugin.SpotifyPremium\SpotifyPlugin.cs:line  568
  at  Flow.Launcher.Plugin.Result.ExecuteAsync(ActionContext  context)  in  /_/Flow.Launcher.Plugin/Result.cs:line  246
  at  Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String  index)  in  C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line  389
  at  CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task  executionTask)
  at  System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object  state)
  at  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate  callback,  Object  args,  Int32  numArgs)
  at  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object  source,  Delegate  callback,  Object  args,  Int32  numArgs,  Delegate  catchHandler)

Also next track results in the same error.

Looks like this may be caused by the Spotify API - https://github.com/JohnnyCrazy/SpotifyAPI-NET/issues/980

An update is coming, but before you update, make sure you backup your security.store file as the update will wipe it. After updating simply move your backed up file into the plugin again.
If you lost the file and need to know how to re-auth again: https://github.com/fow5040/Flow.Launcher.Plugin.SpotifyPremium?tab=readme-ov-file#notice


change coding: utf8 to utf-8

On my python34 (windows 8), I get the following error loading cssselect
File "setup.py", line 1
SyntaxError: encoding problem: utf8
This doesn't happen on python27. I'm not sure if this is a python 3.4 thing necessarily, but changing the encodings to 'utf-8' fixes the issue for both. utf-8 (with hyphen) is also what's used in most sample coding specifications e.g. in the PEP https://www.python.org/dev/peps/pep-0263/

Thanks.

This is not release to pypi, is it?


Unable to run

Hi,
I'm running node v8.4.0 on OSX 10.12.4. I'm running the latest version of mongodb (v3.4.7). I just installed appy via npm install and get the following:

npm WARN deprecated<EMAIL_ADDRESS>All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated<EMAIL_ADDRESS>Use uuid module instead
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade to 2.2.19 or higher
npm WARN deprecated<EMAIL_ADDRESS>This package is discontinued. Use<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.

><EMAIL_ADDRESS>install /Users/tom/dev/hapi/appy/node_modules/fsevents
> node install

[fsevents] Success: "/Users/tom/dev/hapi/appy/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN<EMAIL_ADDRESS>No license field.

When I run "gulp seed" I get the following:

/Users/tom/dev/hapi/appy/node_modules/require-dir/index.js:93
            if (!require.extensions.hasOwnProperty(ext)) {
                                    ^

TypeError: require.extensions.hasOwnProperty is not a function
    at requireDir (/Users/tom/dev/hapi/appy/node_modules/require-dir/index.js:93:37)
    at Object.<anonymous> (/Users/tom/dev/hapi/appy/gulpfile.js:9:23)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at execute (/usr/local/lib/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js:26:18)

I would appreciate any suggestions on this.
Tom

require.extensions has been deprecated since node v0.10.6 and upgrading to node 8, which fully drops support for it, causes that error.
You should update on  package.json ->  "require-dir" : "^0.3.2". I'm going to send a pull request with the fix


Remove version: Eraser.Eraser version 6.2.2989

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: URL works;


Update for Blazor?

This looks like a great project and that you recently provided support for .NET Core 3.1.  I'm new to ASP.NET and would like to use this with a Blazor (server) app.  But since I'm so new to ASP.NET and Blazor, I can't really figure how to start using this Identity service with Blazor.  I'm sure it would be really simple for you.  Would you be willing to update your test site with a Blazor version?
Keep up the good work,
Chris

Im also in the same boat here! And i would love to know how to apply this in blazor

This would be the same as normal AP.NET Core projects. I believe you can get started using the example project.
Anyway, you may not want to do database related things on client size. As you know parts of Blazor may run on client machine. Just make sure everything related to database and authentication remains on the server. That's why the example project will be enough to get started.

Thanks.  Was able to get it working a couple days ago on server side so I'm actually good.

@clawton anyway can you provide a sample?


Multiplication

Hello!
This is an awesome project.
I wonder if it is possible to realize integer multiplication of two variable Bits.
At the moment there is only the sum-method available.
Can I somehow execute the sum k-times, where k is another variable (of Logic.variableBits)?
Thanks for your answer.

This is a way to roll your own (quadratic multiplication) using the API:
function mul(xs, ys) {
  const bs = []
  const ws = []
  xs.bits.forEach(
    (x, i) =>
      ys.bits.forEach(
        (y, j) => {
          bs.push(Logic.and(x, y))
          ws.push(Math.pow(2, i+j))
        }))
  return Logic.weightedSum(bs, ws)
}

// a little test:
const s = new Logic.Solver()
const x = Logic.variableBits('x', 3)
const y = Logic.variableBits('y', 3)
const xy = Logic.variableBits('xy', 6)
s.require(Logic.equalBits(xy, mul(x, y)))
let sol
while (sol = s.solve()) {
  s.forbid(sol.getFormula())
  console.log({
    x: sol.evaluate(x),
    y: sol.evaluate(y),
    xy: sol.evaluate(xy),
  })
}

Cool stuff, thank you.
This should deserve a place in README.md.

It seems my program is now to heavy on memory.
Currently I get:
MINISAT-out: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.

Is there any way to increase the TOTAL_MEMORY option?

I have sample problem MINISAT-out: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs..  Is there any way to increase the TOTAL_MEMORY option?


Chrome incognito window seems to be ignored

OS: 10.13.4
chunkwm version: latest build from master

Regular chrome windows tile fine but incognito windows often just float there, until I restart chunkwm.

Do you have any form of tiling rules, or something? Is the incognito window opened in any special way ?
I'm unable to reproduce this by simply using the shift + cmd + n shortcut provided by chrome.

I too am unable to repo this.

I'll try to find some way to reproduce this then.

I don't mind you leaving the issue open if it is a problem you have / had. It's just that I can't really do much until I can reproduce the problem :)


Add ReserializeAssetsUtility

Overview
This PR adds a version of the tool provided in https://github.com/microsoft/MixedRealityToolkit-Unity/issues/4914 to the repo, under our new Tools directory.
Changes

Related to https://github.com/microsoft/MixedRealityToolkit-Unity/issues/4914

I also just included a single reserialized meta which was added to the repo after #5352

/azp run


Use static runtime if compiling statically

Describe the pull request
This fix makes capstone use the static Windows runtime if capstone is being compiled statically

Does your PR follow the maintainer guide?
Yes

@illera88 Thanks for your PR. Please fix these changes as below:

Can you please correct the Version field in the CONTROL file? You can get more information from maintainer-guide.md.
include(vcpkg_common_functions) in portfile.cmake is deprecated. Please remove it.
Can you please use vcpkg_check_features() to handle features in portfile.cmake?

Actually after doing some further testing I thing that the created library when build with the x64-windows-static triplet is already using the static CRT. So this PR can be discarded.
Thanks anyhow


is it a python2 project?

is it a python2 project? i have errors such as import cPickle and audiolab.

Yes this is Python2 I am fairly sure. If you give me more specifics about the errors I can fix them to make it Python 3 compatible!


V2

Describe the bug
The V2 doc link is returning 404 error.
https://react-query-v2.tanstack.com/.
Your minimal, reproducible example
N/A
Steps to reproduce

Go to https://react-query-v2.tanstack.com/.
See 404 error

Expected behavior
I'd expect to see the V2 doc
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform

OS: Mac OS
Browser: Chrome

TanStack Query version
V2
TypeScript version
No response
Additional context
No response

We've had enough troubles keeping the v3 docs up. Please treat v2 as unmaintained and upgrade.
Source for the docs is here: https://github.com/TanStack/query/tree/2.x/docs/src/pages/docs


More thoughts on EC2 network performance and incast

@jcanny Given the lack of response to a direct e-mail I'll assume that this is the only accepted communications channel. Thus I'm following up on my e-mail here.
Regarding the Linux network stack:
You may be right about 5Gbps being the best that you can do in that environment. I think the large interest in smart NICs in data centers using Linux is partially attributable to the surprisingly poor performance of the Linux network stack. The head of the development side of DevOps at a moderately successful CDN that I work with upon occasion (supposedly their streaming video service accounted for 37 percent of peak download Internet traffic in North America in 2015) tells me that back when they were only pushing 40Gbps per system (they're currently pushing 100Gbps / system) that Linux was struggling to push 15Gbps. A friend of his is at another company that is also doing streaming - but on Linux. That company is buying systems with E7 CPUs and 1TB RAM and can't get much above 10Gbps. In short, they are spending 2-3x on hardware per-machine as the first CDN and getting 1/8th the performance.
If Linux's network performance really is as bad as the numbers above would lead one to believe then you're out of luck so long as CUDA is synonymous with Linux or EC2 provides some manner of smart NIC (IB/RoCE/iWARP/TOE) support. I apologize for the noise.
Probably academic in light of the above, but regarding incast:
One of the mechanisms that Panasas mentioned in the initial incast paper, reducing the maximum socket buffer size, works fairly well in practice. It obviously reduces the maximum achievable bandwidth, but that can be more than offset by the benefits of avoiding incast related packet drops. At least one CDN I know does this for east-west (in datacenter) communications.
The default (legacy) smoothed RTT which is still used everywhere has an excessively short memory with respect to large flows.  RFC 7323 Appendix G suggests that the alpha and beta in the SRTT/RTTVAR calculations be scaled down by the flight size as follows:
This modification will ensure that a similar amount of time is taken into account for
the RTO estimation, regardless of how many samples are taken per window:
  ExpectedSamples = ceiling(FlightSize / (SMSS * 2))
  alpha' = alpha / ExpectedSamples
  beta' = beta / ExpectedSamples

Note that the factor 2 in ExpectedSamples is due to "Delayed ACKs".
Instead of using alpha and beta in the algorithm of [RFC6298], use
alpha' and beta' instead:
  RTTVAR <- (1 - beta') * RTTVAR + beta' * |SRTT - R'|
  SRTT <- (1 - alpha') * SRTT + alpha' * R'
  (for each sample R')

If the performance anomalies I mentioned are in fact isolated instances of poor tuning it might be worth building a kernel with the following to characterize losses and RTT:
https://www.web10g.org/
If you can't tune your way around this Amazon is pretty brazenly violating its implied SLA.

Turns out the answer is likely to be much simpler than I had made it out to be - Amazon just isn't very transparent:
http://www.ec2instances.info/
g2.2xlarge instances have "High" network performance as opposed to "10 Gigabit". You have to share the port between multiple instances. Currently the cheapest option with both a GPU and a dedicated port is the cg1.4xlarge. At 2.10/hr it's more than 3x the price of the g2.2xlarge.


FIX-#6892: Updating data in notebooks from yellow taxi to green taxi dataset

What do these changes do?

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[ ] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[ ] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[ ] signed commit with git commit -s
[ ] Resolves #6982?
[ ] tests added and passing
[ ] module layout described at docs/development/architecture.rst is up-to-date

@arunjose696 did you check all links to yellow taxi dataset?

Remaining links I did not change, could see it used in other places but they had not used field Dropoff_longitude  which was only there in green_taxi, the other notebooks used fields such as total_amount,passenger_count,tpep_pickup_datetime,tpep_dropoff_datetime,trip_distance these were common to both datasets, so decided to keep yellow taxi dataset as is in other notebooks, should these be changed?

In remaining links to yellow taxi I could observe they had not used fields like Dropoff_longitude which was only there in green_taxi, the other notebooks used fields such as total_amount,passenger_count,tpep_pickup_datetime,tpep_dropoff_datetime,trip_distance these were common to both datasets, so decided to keep yellow taxi dataset as is in other notebooks, should these be changed?

No, in that case everything is fine. Thank you!


Event on next/previous actions

Is there any way to bind a function to a next or previous action ?
Thanks.

Not really.  The onComplete callback will fire each time, if that is adequate.  As a workaround you can overwrite the public methods.  Here's an example:
// first save a reference to the original function
var next = $.colorbox.next;

// overwrite
$.colorbox.next = function(){
  console.log('next!');
  next();
};

Thanks for your answer.
I thought the "cbox_complete" event was fired only once when the colorbox open for the first time.
As you pointed it is indeed fired every time a new content loads, so it's almost equivalent to next or previous action if you don't care if it is next or previous content that is loaded.
That is my use case, it worked for me.
Thanks !


regression on toggle_float_win()

fed2c8389c148ff1dfdcdca63c2b48d08a50dea0 break the fix introduced in cc2909033296592106e3835fa46672a56afcbaf3.
require('lsp_signature').toggle_float_win()

Has stopped to work. It doesn't hide/unhide the help window on execution time anymore.

There is any chance we can keep my commit? I tested it extensively and it doesn't seem to break anything, but please let me know if you found something so I can ship the patch.

Jut for clarity, this is the case of use my commit cover:
https://www.youtube.com/watch?v=-GmqPiHeKqk

Ok after diving into the code I see you've added a option to enable this behavior.
toggle_key_flip_floatwin_setting = true

Thank you so much for the consideration 🙏❤


Add an "inverter" concept, so that functions can generate lists of possible arguments

Consider the query
from s where String.isPrefix s "abcd";

We know how to invert the function and find the list of values of s such that String.isPrefix s "abcd" will return true. In fact it's a property of the String.isPrefix function.
So, we allow functions to declare inverters. In this case, the String.isPrefix function accepts the argument pattern "f a0 a1", and if argument 0 is the goal - the variable whose possible values we wish to enumerate - then we can generate the expression prefixesOf a1.
At first only built-in functions will be able to declare inverters. But later we will allow user-defined functions to define them. We may also convert existing logic - e.g. that a0 elem a1 can be inverted and a1 is the list of possible values of a0 - into inverters.

Work in progress: https://github.com/julianhyde/morel/tree/217-inverter


Review the PickupModel

The documentation model:
http://binners.herokuapp.com/api/v1.0/doc#!/api/apiv1_0pickup_post_12
Example:
{   "requester": "",   "address": {     "street": "",     "city": "",     "state": "",     "zip": "",     "location": {       "type": "",       "coordinates": [         0       ]     }   },   "time": "date",   "instructions": "",   "items": [     {       "type": "",       "packageSize": "",       "quantity": ""     }   ] }

Must add fields :
Pickup Status { Waiting for Review, Completed, On going }.
Maybe add "binner id" or "binner name" field.
Pickup Review (1 to 5)
pickup Review comment

They asked us to add another field to the pickup which is : "weekly pickup". It's just a boolean field that is going to state if the user wants the pickup to be weekly. Then the binners project will be able to contact the users and schedule the weekly times

This is interesting. Let me think about it for a while.


Dependency Injection how to implemented

After added Package from nugget, I m not able to run the Azure Functions, getting error as Dependency Injection. How to resolve this DJ?

Hi @princeantony1073 ,

What version of the Package you're using?
Could you give me more information?
Or a simple project of your Azure Functions?

Hi @princeantony1073 ,

What version of the Package you're using?
Could you give me more information?
Or a simple project of your Azure Functions?

Azure functions which will connect cosmos db. Instead of generating GUID as id, I want to generate AutoSequence number.
So i tired to use this package. After Installed and running project i m getting below error.

Azure functions which will connect cosmos db. Instead of generating GUID as id, I want to generate AutoSequence number.
So i tired to use this package. After Installed and running project i m getting below error.

Now I understand. You need to define the dependencies inside the Configure method. If you are new to DependencyInjection for AzureFunctions feel free and read my article here:
but if you are familiar just add dependencies like example:
builder.services.AddAutoNumber(Configuration, x =>
{
	return x.UseContainerName("container-name")
	 .UseStorageAccount("connection-string-or-connection-string-name")
   //.UseStorageAccount(cloudStorageAccountInstance)
	 .SetBatchSize(10)
	 .SetMaxWriteAttempts(100)
	 .Options;
});

Now I understand. You need to define the dependencies inside the Configure method. If you are new to DependencyInjection for AzureFunctions feel free and read my article here:
but if you are familiar just add dependencies like example:
builder.services.AddAutoNumber(Configuration, x =>
{
	return x.UseContainerName("container-name")
	 .UseStorageAccount("connection-string-or-connection-string-name")
   //.UseStorageAccount(cloudStorageAccountInstance)
	 .SetBatchSize(10)
	 .SetMaxWriteAttempts(100)
	 .Options;
});

Thanks for the update, Configuration which value to be passed.

Thanks for the update, Configuration which value to be passed.

You're welcome. Is that a question? " Configuration which value to be passed. "

You're welcome. Is that a question? " Configuration which value to be passed. "

yes, which value to be passed for that value

yes, which value to be passed for that value

I don't get your question, but configure it as below:
Make a storage account and get its connection string, then in the code below replace your connection string:
builder.services.AddAutoNumber(Configuration, x =>
{
	return x.UseContainerName("seq-numbers")
	 .UseStorageAccount("storageAccountConnectionString")
   //.UseStorageAccount(cloudStorageAccountInstance)
	 .SetBatchSize(10)
	 .SetMaxWriteAttempts(100)
	 .Options;
});

I don't get your question, but configure it as below:
Make a storage account and get its connection string, then in the code below replace your connection string:
builder.services.AddAutoNumber(Configuration, x =>
{
	return x.UseContainerName("seq-numbers")
	 .UseStorageAccount("storageAccountConnectionString")
   //.UseStorageAccount(cloudStorageAccountInstance)
	 .SetBatchSize(10)
	 .SetMaxWriteAttempts(100)
	 .Options;
});


patchage: 1.0.4 -> 1.0.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/patchage/versions.
meta.description for patchage is: "Modular patch bay for Jack and ALSA systems"
meta.homepage for patchage is: "https://drobilla.net/software/patchage.html"
meta.changelog for patchage 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
found 1.0.6 with grep in /nix/store/ddb457k0ypwmfq1m4yi1cclh8qsz3kss-patchage-1.0.6
found 1.0.6 in filename of file in /nix/store/ddb457k0ypwmfq1m4yi1cclh8qsz3kss-patchage-1.0.6

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
patchage

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/ddb457k0ypwmfq1m4yi1cclh8qsz3kss-patchage-1.0.6 \
  --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 patchage https://github.com/r-ryantm/nixpkgs/archive/a3f0d914033a3391fd23f8283dfcb2f9f69cd9f9.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/ddb457k0ypwmfq1m4yi1cclh8qsz3kss-patchage-1.0.6
ls -la /nix/store/ddb457k0ypwmfq1m4yi1cclh8qsz3kss-patchage-1.0.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

patchage

Maintainer pings
cc @nico202 for testing.

Result of nixpkgs-review pr 184426 run on x86_64-linux 1

1 package built:

patchage


Remove file name test in internal build

Due to symbolic linking and other mechanisms the file name of the
injected library can be different when running on the internal test
infrastructure. So this commit is removing the check from the test case.

I guess there is no way to know what the different name is in that case?

Well, kind of. The library is loaded via the usual name libOrbitUserSpaceInstrumentation.so, but that's a symlink to a symlink. And the target library name is what shows up in the /proc/pid/maps. Of course we could follow the symlink chain but that really feels like testing an implementation detail.


Configuration options for Debounce

I was hoping this would be an option in ~/.tabby-client/agent/config.toml.
But this didn't mention anything.
So maybe it is IDE-specific.
If that's the case, please add the configuration option for the nvim plugin.
As you can tell, I'd prefer fewer auto-completion prompts when I type, and this seems like a standard enough configuration.

Hi, @V4G4X
You can try adding the following configuration in your ~/.tabby-client/agent/config.toml file:
[completion.debounce]
mode = "fixed"
interval = 1000 # ms

Some unstable or infrequently used configurations are not included in the standard config template and documentation for the sake of brevity and readability. For more information, please refer to the Tabby source code at:
https://github.com/TabbyML/tabby/blob/main/clients/tabby-agent/src/AgentConfig.ts
https://github.com/TabbyML/tabby/blob/main/clients/tabby-agent/src/configFile.ts

Yeah I think I'm getting fewer prompts with this.
Thanks a lot @icycodes!


Support Interval +/- Interval

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
arrow-rs does not support arithmetic between intervals, which does not allow full use of these data types.
The feature can be useful for the following situations:

know the difference between one period of time and another
calculate the total time of some action

That feature can also be used by arrow-datafusion for interval arithmetics.
Describe the solution you'd like
New functions for IntervalYearMonthType, IntervalDayTimeType and IntervalMonthDayNanoType:

add_day_time
add_year_months
add_month_day_nano
subtract_day_time
subtract_year_months
subtract_month_day_nano

The functions add_dyn and substract_dyn start to support arithmetic between Intervals.
Describe alternatives you've considered

Additional context

label_issue.py automatically added labels {'arrow'} from #4179


Added REUSE for GalleryTab and fixed some swiftlint issues

:bulb: Proposed solution
Fixed some of the github REUSE and swiftlint checks from PR #16.
Reviewer Nudging
@PSchmiedmayer there is a force unwrapping violation in line 34 of GalleryLister.swift and I'm not quite sure how to handle it, as optional variables are still pretty new to me. (Removing the ! results in a build error..) Some help or guidance for this issue would be appreciated!
Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

[ ] I agree to follow the Code of Conduct and Contributing Guidelines.

@awangwang you can change the ! to a ? to solve this error.

@vishnuravi changing to a ? gives this build error: For-in loop requires '[StorageReference]?' to conform to 'Sequence'; did you mean to unwrap optional?

Sorry, I read the code wrong. You need to unwrap result using a guard statement.

Thanks! That took care of it


cp: fix regressed issue with --backup and -b

This PR also adds a test for the regressed issue.
See the note about --backup and -b in #2284 for more info.

Not sure why the CICD: ubuntu-18.04, x86_64-unknown-linux-musl, feat_os_unix_musl, use-cross check failed.
Error:
Error: test failed, to rerun pass '--test tests'
Caused by:
  process didn't exit successfully: `/target/x86_64-unknown-linux-musl/debug/deps/tests-ac86499376abc816` (signal: 11, SIGSEGV: invalid memory reference)
Error: The process '/usr/share/rust/.cargo/bin/cross' failed with exit code 101

This doesn't seem like a normal failed test and I couldn't find any tests that failed. Maybe re-run the CICD check?


Add Doc to String#fmt and DB standard library

@Maxwell-Alexius LGTM. Can you also add these document into gitbook's DB part?

I'll add it later on~


Add support for context to not_authorized callback when using Policy

This is a question as well as a suggestion.
I'm combining graphql-ruby and graphql-guard with Doorkeeper+Sorcery to handle my authentication. In my graphql_controller.rb I have:
def current_user
    token = Doorkeeper.authenticate(request)
    unless token&.accessible?
      raise UnauthenticatedError
    end

    current_resource_owner
  rescue UnauthenticatedError => e
    GraphQL::ExecutionError.new('Unauthenticated', extensions: { code: 'AUTHENTICATION_ERROR' })
end

And my policy is:
...
Types::WorkoutType => {
    '*': ->(obj, args, ctx) { obj.try(:author) == ctx[:current_user] || ctx[:current_user].try(:admin) }
},
...

So when a user is not authenticated, I expect the Unauthenticated error to be returned, but instead I get the Not authorized to access #{type}.#{field} defined in graphl_controller.rb.
Question:
Would it make sense to add the context to the callback so one could do something like this?
use GraphQL::Guard.new(
    policy_object: GraphqlPolicy,
    not_authorized: ->(type, field, ctx) do
      ctx.add_error(GraphQL::ExecutionError.new("Not authorized to access #{type}.#{field}"))
    end
)

That way we wouldn't remove any other errors that are in there and we can see that we are in fact unauthenticated as well as unauthorized.

Bump, would love some feedback on this. If it seems like a good idea I can give the implementation a shot.

I am in need of this feature as well. I need to be able to tell the difference between a user trying to access a field they're not authorized to access vs the user is not logged in at all.


🐛 BUG: wrangler pages dev dir isn't working if there isn't a package.json in the parent dir

What version of Wrangler are you using?
2.0.24
What operating system are you using?
macOS
Describe the Bug
my-dir/
  functions/
    foo.ts
  public/
    index.html

cd my-dir && npx wrangler pages dev public just gives 404s. Super weird. And we should double check that we're erroring if you provide a non-existent directory.

Can't repro. Must have been a local build blip or something.


Make serializers public

I use a data migration tool to manage the setup of my MongoDB instances and seeding in the base data that is needed. Clients and Scopes are part of that base data but because this plugin uses a custom serializer for that it becomes problematic.
Is there any reason why the serializers couldn't be made public so they can be used without having to create the user service?
It'd also remove the need for InternalsVisibleTo for the tests (or at least, reduce the need for it)

Actually, scratch that, it'll make things even worse for me as it embeds the v1.x MongoDB driver and I'm using the v2.x driver, so I'd have namespace/type collisions.
it'd be better if a custom serializer wasn't used at all...


Unable to recover from failed authentication attempt

We are seeing an issue that is not easily reproducible, but is critical as it causes us failures.
We are using the cloudant client in our cloud application, and we see that after there are some Cloudant issues (such as networking issues, or cloudant server is down for a while) the cloudant client is unable to recover and every call throws an Exception: `
com.cloudant.client.org.lightcouch.CouchDbException: 401 Unauthorized at
https://<OUR CLOUDANT ACCOUNT>.cloudantnosqldb.appdomain.cloud:443/<DB_NAME>/<DOC>. at
com.cloudant.client.org.lightcouch.CouchDbClient.execute(CouchDbClient.java:578) at
com.cloudant.client.org.lightcouch.CouchDbClient.executeToInputStream(CouchDbClient.java:629) at
com.cloudant.client.org.lightcouch.CouchDbClient.head(CouchDbClient.java:398) at
com.cloudant.client.org.lightcouch.CouchDatabaseBase.contains(CouchDatabaseBase.java:177) at
com.cloudant.client.api.Database.contains(Database.java:813)

We also saw this in the logs:

Credentials are incorrect for server https://<OUR CLOUDANT ACCOUNT>.cloudantnosqldb.appdomain.cloud:443/_session, cookie authentication will not be attempted again by this interceptor object

The only solution was to restart the application and it resolved the issue.
We are initializing the cloudant client like so:
ClientBuilder.url(cloudantURL)
                    .username(username)
                    .password(password)
                    .build();

I cannot be sure, but it seems like after the auth cookie is expired or otherwise becomes invalid, the client gets stuck and does not attempt to retrieve a new one?
Are we doing something wrong? Should we change the way we initialize the client, or provide other parameters?
And we are using version 2.13.0, with the ok-http dependency also.

OK. This makes sense.
It turns out that probably the root cause of this was an issue in our managed cloudant service, which caused the authentication through _session to fail. After that even though they resolved the issue the client side had already "given up" authenticating because it got a 401 from _session once.
I changed the name of the issue to more accurately reflect what was going on. I'll close this issue as it seems like we have our solution for now.
Thank you.


wrong argument type Integer (expected Integer)

Trying to initialize a queue on a Raspberry Pi, I get the weird error above.
pi@rasp:~ $ irb
irb(main):001:0> require 'sysvmq'
=> true
irb(main):002:0> vmq = SysVMQ.new(0xDEADC0DE, 1024, SysVMQ::IPC_CREAT | 0666)
(irb):2:in `initialize': wrong argument type Integer (expected Integer) (TypeError)
        from (irb):2:in `new'
        from (irb):2:in `<main>'
        from /snap/ruby/264/lib/ruby/gems/3.1.0/gems/irb-1.4.1/exe/irb:11:in `<top (required)>'
        from /snap/ruby/264/bin/irb:25:in `load'
        from /snap/ruby/264/bin/irb:25:in `<main>'
irb(main):003:0>
pi@rasp:~ $ uname -a
Linux rasp 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l GNU/Linux
pi@rasp:~ $ ruby -v
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [armv7l-linux-eabihf]

Any ideas?

wrong argument type Integer (expected Integer) is a very weird exception—no, I'm not sure, and I can't reproduce it on a Linux VM. Please let me know if you figure it out.

I switched over to posix-mqueue and that worked fine, although it shows some really high CPU loads when I stream data at higher speeds. Fortunately in my scenario those are just peaks.
As for the exception mentioned here, I have no idea what to do about it -- the stack trace is unhelpful as you see, and my FFI skills are very limited. I can only speculate that Raspbian isn't SysV compatible and the exception is a misinterpretation of that fact...
It might also be related to Ruby 3.1.1, what version did you use in your VM?

Raspbian isn't SysV compatible

It's possible, but I'd find it strange to disable on the Linux build—e.g. Postgres uses SysV for some IPC. But I'm running the exact same Ruby version and patch-level as you on a 5.13 kernel, no problems.

although it shows some really high CPU loads when I stream data at higher speeds. Fortunately in my scenario those are just peaks.

posix-mqueue isn't production-hardened (at least not by me or former employers) in the same way as sysvmq, so there might be room for optimization in the code. The nice thing about posix-mqueue is that it exposes file descriptors, which is far superior for dealing with a VM runtime. There may be newer APIs for dealing with this and the GIL in newer versions. Probably a really fun thing to profile for your workload(s) :)

Thanks for writing back. I'd love to be able to get back to using sysvmq, but I wouldn't even know where to look in order to debug this. I can't find anything online related to System V queues on Raspbian. You're right about mountable file descriptors being an advantage, but right now I'll take performance over convenience :)

Pick your poison 💀 —figure out how to speed up posix-mq or debug sysvmq 😉
Try to see if the ipcs(1)/lsipc(1) tooling works. That'll tell you for sure if SysV IPC is straight-up disabled.

I found this interesting comment:
https://github.com/sirupsen/sysvmq/blob/0b042308184513b759e4820a162937c13663f970/ext/sysvmq.c#L359
Is there any easy way for me to check what key_t might be defined as on Raspbian?

Locate the sys/types.h header on your system
Simon
https://sirupsen.com/
On Mon, Apr 04, 2022 at 10:11 AM, Alex Deva @.***>
wrote:

I found this interesting comment:
https://github.com/sirupsen/sysvmq/blob/
0b042308184513b759e4820a162937c13663f970/ext/sysvmq.c#L359
Is there any easy way for me to check what key_t might be defined as on
Raspbian?
—
Reply to this email directly, view it on GitHub
https://github.com/sirupsen/sysvmq/issues/15#issuecomment-1087609213,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAXY6EI7HEMSXLO3R2CRMDVDL2BXANCNFSM5SND6DAQ
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

Might it be this thing? It's an odd path but I can't find any other sys/types.h anywhere in my system.
https://github.com/raspberrypi/tools/blob/13474ee775d0c5ec8a7da4fb0a9fa84187abfc87/arm-bcm2708/arm-bcm2708-linux-gnueabi/arm-bcm2708-linux-gnueabi/sysroot/usr/include/sys/types.h#L125

Sorry, you credit me with more C than I have :) I would appreciate some more detailed instructions on how to do that, if you have the time.

I'm confident you can figure it out and would learn a lot doing it! I don't have the cycles to produce more instructions than this though:
bundle exec rake compile produces a .so file. You can directly require that in irb, which is the library. That should give you a feedback loop.

It won't compile at all...
$ bundle exec rake compile
/snap/ruby/264/lib/ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: already initialized constant Bundler::FileUtils::VERSION
/home/pi/.gem/gems/bundler-2.3.8/lib/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: previous definition of VERSION was here
/snap/ruby/264/lib/ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: already initialized constant Bundler::FileUtils::Entry_::S_IF_DOOR
/home/pi/.gem/gems/bundler-2.3.8/lib/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: previous definition of S_IF_DOOR was here
/snap/ruby/264/lib/ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: already initialized constant Bundler::FileUtils::Entry_::DIRECTORY_TERM
/home/pi/.gem/gems/bundler-2.3.8/lib/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: previous definition of DIRECTORY_TERM was here
/snap/ruby/264/lib/ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: already initialized constant Bundler::FileUtils::OPT_TABLE
/home/pi/.gem/gems/bundler-2.3.8/lib/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: previous definition of OPT_TABLE was here
/snap/ruby/264/lib/ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: already initialized constant Bundler::FileUtils::LOW_METHODS
/home/pi/.gem/gems/bundler-2.3.8/lib/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: previous definition of LOW_METHODS was here
/snap/ruby/264/lib/ruby/3.1.0/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: already initialized constant Bundler::FileUtils::METHODS
/home/pi/.gem/gems/bundler-2.3.8/lib/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: previous definition of METHODS was here
rake aborted!
ArgumentError: Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered
/tmp/sysvmq/Rakefile:1:in `require'
/tmp/sysvmq/Rakefile:1:in `<top (required)>'
(See full trace by running task with --trace)

I've even tried upgrading rake-compile to the latest version in your gemspec, but it didn't help.
$ bundle list
Gems included by the bundle:
  * rake (13.0.6)
  * rake-compiler (1.1.9)
  * sysvmq (0.2.2)

I've compiled it on my Mac though without problems, but there were no .so files anywhere:
➜  sysvmq git:(master) ✗ find . -type f -name "*.so"
➜  sysvmq git:(master) ✗ # nothing here :)

sysv-mq $ bx rake compile
mkdir -p tmp/arm64-darwin21/sysvmq/3.1.0
cd tmp/arm64-darwin21/sysvmq/3.1.0
/Users/simon/.rubies/ruby-3.1.0/bin/ruby -I. ../../../../ext/extconf.rb
checking for sys/ipc.h... yes
checking for sys/msg.h... yes
checking for sys/types.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl()... yes
creating Makefile
cd -
cd tmp/arm64-darwin21/sysvmq/3.1.0
/usr/bin/make
compiling ../../../../ext/sysvmq.c
linking shared-object sysvmq.bundle
cd -
mkdir -p tmp/arm64-darwin21/stage/lib
install -c tmp/arm64-darwin21/sysvmq/3.1.0/sysvmq.bundle lib/sysvmq.bundle
cp tmp/arm64-darwin21/sysvmq/3.1.0/sysvmq.bundle tmp/arm64-darwin21/stage/lib/sysvmq.bundle
sysv-mq $ irb
irb(main):001:0> require_relative './lib/sysvmq.bundle'
=> true
irb(main):002:0> SysVMQ
=> SysVMQ

Sorry, I don't have the cycles to debug it with you on Raspberry Pi. Google hard enough and you'll be able to work through it


Scroll bar and text

Godot version
v3.5.beta1.official [b9b23d222]
System information
w10 64
Issue description
In the method selection window, too long function names overlap the scroll bar.
I think they should be behind the bar and also should not be displayed in the area occupied by the scroll bar. That is, the text should not be displayed (not even behind the bar) in the area occupied by the scroll bar.

Steps to reproduce
...
Minimal reproduction project
...

Duplicate of #57881


Randomize server name in test_sql_server_mgmt.

It seems a littly hacky to use SqlServerPreparer just to generate server name, but I couldn't see how to use SingleValueReplacer on its own.
I also ran into issues where the two SqlServerPreparers were generating the same random name - this seemed to be because they were running so quickly (due to not actually creating a resource) that utilities.create_random_name was getting the same timestamp twice in a row. So I added RANDOM_NAME_COUNT into the mix in order to prevent duplicate random names.

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[ ] The PR has modified HISTORY.rst with an appropriate description of the change (see Modifying change log).

Command Guidelines

[ ] Each command and parameter has a meaningful description.
[ ] Each new command has a test.

(see Authoring Command Modules)

It is not ideal to introduce a global variable for the sake of a unique name. There are other approaches. For example, you can use [os.urandom](https://docs.python.org/2/library/os.html?highlight=os#os.urandom) to generate a random string to be attached to the timestamp before hashing. The randomness of the value should be strong enough to guarantee the uniqueness.
To be honest, I'm a bit surprised there are duplicate names given that the timestamp includes microseconds. What causes it? Are tests run in parallel?

Agreed it's not ideal. I was also surprised, I'm guessing that timestamp doesn't have high enough resolution. I'll try urandom.

There are probably other reason for this name to be duplicated. The hash digest return string with characters in a range [0-9a-f], I think this can be replaced with base64 so that in a fixed length more information can be contained. I'll try to work out a prototype tonight.

Ok. Can you try running my test in live mode with whatever approach you choose?
The reason I think it's time resolution related is because the issue went away when I stepped through with debugger and it sometimes went away when I added some print statements. And this is probably the first time that a test case has two of the same Preparer and skips the slow API call in the Preparer's create_resource function.

Yes. I'll try it out.

Codecov Report

Merging #3034 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #3034   +/-   ##
======================================
  Coverage    63.1%   63.1%
======================================
  Files         484     484
  Lines       27625   27625
  Branches     4280    4280
======================================
  Hits        17434   17434
- Misses       9035    9038    +3
+ Partials     1156    1153    -3

Impacted Files
Coverage Δ

...dback/azure/cli/command_modules/feedback/custom.py
34.69% <0%> (ø)
:arrow_up:

src/azure-cli-core/azure/cli/core/util.py
67.16% <0%> (ø)
:arrow_up:

...-cli-role/azure/cli/command_modules/role/custom.py
35.74% <0%> (ø)
:arrow_up:

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 a09ea7d...3cbb28d. Read the comment docs.

Looks great. Thanks, @jaredmoo.


Decide on policy when there is no information

When monitor and resolution are queried on an Ubuntu Linux 20.04 virtual machine they are displayed as the following:
  GPU:                VMware SVGA II Adapter
  Monitor:
  Resolution:
  ...

Is this what should be displayed or should it be [unknown] or should the two labels not be displayed at all?

This was a duplicate of #88 .  It also was fixed in #98.  For details see explanation in #88


Error 39508 for 3 days now

I've got the Error 39058 for 3 days now.
Android version: Android 10, UI 2.0
Mobile device: Samsung Galaxy A50
CWA version: 1.5.1

Hi @Muske2020
Would you like to join the conversation in 🔥 Error 39508 after updating to 1.5 #1459 and post your Exposure check log there?

Dear @Muske2020,
Thank you very much for your contribution, and that you continue to provide more information on this issue at https://github.com/corona-warn-app/cwa-app-android/issues/1459. I will close this issue as a duplicate. Thanks again.
Best wishes,
DS
Corona-Warn-App Open Source Team

Duplicate of https://github.com/corona-warn-app/cwa-app-android/issues/1459


fix wxc-icon docs (large => big)

https://github.com/alibaba/weex-ui/blob/c4b5c68534997423c1e2de31e512ff2e3347eb5a/packages/wxc-icon/index.vue#L57
It should be big instead of large .

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


Documentation📄: Add a new common issue for deploy-mgmt-hub.sh to the list

What is the current documentation state?
When running the deploy-mgmt-hub.sh script there is a common issue with Mongo version that can occur and the script can fail
this is currently not included in the list of common issue on  troubleshoot page
Where is this stated?
https://open-horizon.github.io/docs/troubleshoot/
Why do you want to improve the statement?

Since anyone encountering the issue will refer to troubleshoot page for solution
It is a common issues

Proposed Statement
Include new new issue with details about the error and how to resolve it.
Additional context.
No response

The way you can tell if the source is in this repo or another is by the URL path.  We try to use the repo name under docs if the content is sourced from there.  For example, if a doc is in anax/docs the URI will be /docs/anax/docs.  Likewise devops/docs can be found in /docs/devops/docs.  Those may be the only two repos that we've added the automation for so far.

Would be good to add this tip to https://github.com/open-horizon/open-horizon.github.io/blob/master/docs/troubleshoot/troubleshooting.md

@johnwalicki I can open a new issue to add the tip.


border-radius  reveals that nothing is behind the handle

Hello
I was looking for a very round'ish solution for the button and set every border-radius to at least 14px on normal size. The result is, that my handle os now nearly round, but has a black square behind it. It looks like the black square is coming from the background as both labels, the left and the right, are not laying under the handle. How can I fix that?

Also, while testing it on iOS I got weird display errors while dragging

Does Bootstrap Switch not support fuilly rounded corners or is there a command I have not included?

HI @MortimerNeuss. The rounded style is in Roadmap (https://github.com/nostalgiaz/bootstrap-switch/issues/410). You might want to try to play with negative margins on the handles.

Hello.
I don't know if it helps, but setting the background of the bootstrap-switch-container container fixes the issue for me on Firefox + Ubuntu. I can have round switches just by modifying one border-radius property and adding another one that wasn't already present. I'm using the same background color for the "on" and the "off" state though.
.my-switch-style .bootstrap-switch {
  border-radius: 18px;
}

.my-switch-style .bootstrap-switch .bootstrap-switch-label {
  border-radius: 18px;
}

.my-switch-style .bootstrap-switch .bootstrap-switch-container {
  background: #eee; /* use the same background color */;
}


IDT 92HD87B1/3 can you fix my sound card? I use applealc ,but "int mic" doesn't work

here is codec.
codec.TXT
Codec: IDT 92HD87B1/3
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x111d76d1
Can you fix it? My sound card "int mic",doesn't work
I use layout id 12

Hi,
These resources were given to us by Moore, and I think they are not meant to work with exactly your hardware. Perhaps the mic node sequence is wrong. Check it out, and submit us a patch you get it work. You also might want to ask Moore himself whether mic works for him.
Vit

Sorry,I can't find and ask him,I don't know Russia,can you help?I have given the codec

We are not really offering the codec support here.
I asked Moore myself, and he says that the resources are a direct copy of Mirone's resources altered by RehabMan. So you if you need any insight on your issue, you should ask them.
He also mentioned that the microphone did work but in a rather weird manner: it would sometimes start overmodulating the incoming signal.

Could you build a program or project  that can build applealc with codec，I think it's great!
Or someone give codec,others build applealc.not everyone can build it .
Like me
My English is poor ，either.

I am afraid Google is your friend here. The basic details on how to build AppleALC are detailed on the wiki.


OpenStack cli" fails with "service 'org.kde.klipper' does not exist." error on Fedora 34

I have the default Fedora 34 installation (GNOME) and also have KDE installed as well.  When I try to use the OpenStack client  I get the following failure:

openstack server list
Service 'org.kde.klipper' does not exist.
Traceback (most recent call last):
File "/usr/bin/openstack", line 6, in
from openstackclient.shell import main
File "/usr/lib/python3.9/site-packages/openstackclient/shell.py", line 24, in
from osc_lib import shell
File "/usr/lib/python3.9/site-packages/osc_lib/shell.py", line 24, in
from cliff import app
File "/usr/lib/python3.9/site-packages/cliff/app.py", line 22, in
import cmd2
File "/usr/lib/python3.9/site-packages/cmd2/init.py", line 30, in
from .cmd2 import Cmd
File "/usr/lib/python3.9/site-packages/cmd2/cmd2.py", line 48, in
from .clipboard import can_clip, get_paste_buffer, write_to_paste_buffer
File "/usr/lib/python3.9/site-packages/cmd2/clipboard.py", line 12, in
_ = pyperclip.paste()
File "/usr/lib/python3.9/site-packages/pyperclip/init.py", line 640, in lazy_load_stub_paste
return paste()
File "/usr/lib/python3.9/site-packages/pyperclip/init.py", line 268, in paste_klipper
assert len(clipboardContents) > 0
AssertionError

Could someone please clarify if the ^ failure is caused by klipper or something else?
The only workaround that I found is to remove KDE (5) desktop + other KDE things via dnf remove *kde* which solved the failure.
I will soon try the other workaround mentioned on https://github.com/asweigart/pyperclip/issues/26#issuecomment-152657920 of starting klipper (after I install KDE 5 desktop again).
Is the https://github.com/asweigart/pyperclip/issues/26 issue enough to track fixing this issue for KDE 6 or do we need an additional issue created elsewhere for fixing the service 'org.kde.klipper' does not exist failure?

For the record, it's not about Plasma (klipper is part of Plasma): the component which handles the clipboard changed long ago, the fix needs to happen in pyperclib. That's probably why #26 is still open.

For the record, it's not about Plasma (klipper is part of Plasma): the component which handles the clipboard changed long ago, the fix needs to happen in pyperclib. That's probably why #26 is still open.

Perhaps we should close https://github.com/asweigart/pyperclip/issues/202 as a duplicate after we finish discussing it.

Also for the record, I'm running openstackclient on top of fedora with KDE and it works fine.
Probably lack of running dbus service while having something installed by kde packages triggers this behaviour?

Currently, I just know that removing the kde components helped.  I do still have various k* components (I use konsole every day and don't have the failure just from having konsole installed).
I'm currently on a few different critical paths but will hopefully be able to experiment more to better isolate the issue (e.g. install KDE desktop again and recreate the issue and then try workaround of starting klipper).

In case it may be helpful for others who run into this problem, @scottmarlow's solution did not work for me, but removing the Openstack CLI packages did the trick.
It appears that this issue happens when users install the OpenStack CLI packages in Fedora while running KDE Plasma, but then try to invoke the CLI tools later while running Gnome in Fedora (at least in versions 34 - 36).
So, if you run into this situation, and you would like to continue running the OpenStack CLI tools in Gnome, do the following:

Remove the OpenStack CLI packages: sudo dnf remove python3-openstackclient python3-novaclient python3-cinderclient python3-swiftclient. Try doing this with DNF first, or with pip, if that is how you installed the OpenStack stuff. Please note that the RPMs appear to be a wrapper for installing the CLI tools via pip. Uninstalling the RPMs will remove everything related to the OpenStack CLI tools, but the same is not true if you only remove them via pip if they were installed with dnf / yum in the first place.
Install the OpenStack CLI packages again: sudo dnf install python3-openstackclient python3-novaclient python3-cinderclient python3-swiftclient
Invoke your OpenStack source file to load your OpenStack environment variables (to authenticate to your OpenStack environment and such).

That solved the issue for me!
Hopefully, some sort of change can be made such that this issue does not happen at all, but until then, there are work-arounds.


Filter: support fuzzy match ?

Description
If doctest support filter prefix match or fuzzing match.
examples:
TEST_CASE("foo::") {}
TEST_CASE("zoo::") {}

# use this command to filter
path/to/test -tc=foo

Now, I test it's not support fuzzy match or prefix match.

Doctest support wildcards in test case filtering. Use this flag when you run the tests -tc=foo::*


Onclicklistener not working when item is kotlin data class

About this issue
Onclicklistener doesnt works if item is a kotlin data class , eg:

data class Medications(
    val date: String,
    val doctor: String,
    val id: String,
    val template_type: String
) : AbstractItem<Medications.ViewHolder>() {

}

once i convert it into a normal open class, then it works.

@ishdemon interesting. I guess there's something special about how kotlin handles the data class preventing this.
Note. It is highly recommended to split model and the item into their own pieces. so your model can be a data class and the item should be a normal class.
that should also resolve the problem

Have you been able to resolve the problem?
Closing due to inactivity


Driver not working on some windows 10 after Attestation

Hi,
We followed the process and it did worked well. Now if we install this driver on windows 10 laptops and desktops. Some of the windows 10 laptop giving error 39 while others are working good.
What can be possible issue.
Thanks
SM

Hi @sumit79
I am so sorry that I let this sit. This feedback forum gets sent to the Windows driver documentation team. We use it to track documentation issues. The Hardware Dev Center Support folks are the right people to help investigate a customer problem with submissions, like this. To open a ticket with the support team:

First, sign into your hardware dev center account, and then...
Go to Hardware Dashboard FAQ, where you'll find this passage:

How do I contact Partner Center Support?
If you are having problems accessing the Dashboard or need Dashboard Support please open a support ticket here: https://developer.microsoft.com/windows/support. Select Contact us, Dashboard issue, and then Hardware submissions & signing (all OS version) from the dropdown menu.

It's important that you sign into your account first.
If support, working with the dashboard developers, finds that something needs to change in the docs, we'll then update that here. I hope this helps. I am terribly sorry that I did not get you this info immediately.
Eliot


Add zip to php image

Checklist

[X] I've run make from the root directory to see all Dockerfiles are created successfully.
[X] I've updated the documentation if necessary.

Motivation and Context
With the most popular PHP frameworks + PHPUnit, the zip extension is unavoidable. Many people struggle to figure it out, making it harder to get PHP devs into CI (I teach this topic and use CircleCI in my examples).
Examples of confused users:
https://discuss.circleci.com/t/cant-install-ext-zip-package-on-circleci-2-0/16397/6
https://laracasts.com/discuss/channels/laravel/zip-php-extension-problem-in-ubuntu-php7
Description
Added the same 2 commands that I added to my circle.yml in order to get my build to pass on CircleCI.

This was superseded by #222 , thanks for submitting the PR @afilina - apologies I did not see it before submitting the other.  I'll mark this closed.


xWebSiteDefaults: Move localization strings to strings.psd1

Pull Request (PR) description
MSFT_xWebSiteDefaults: move localization strings to psd1
This Pull Request (PR) fixes the following issues

Fixes #476

Task list

[ ] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[x] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[ ] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #515 into dev will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##              dev     #515   +/-   ##
=======================================
  Coverage   91.39%   91.39%
=======================================
  Files          17       17
  Lines        2661     2661
=======================================
  Hits         2432     2432
  Misses        229      229

Impacted Files
Coverage Δ

...s/MSFT_xWebSiteDefaults/MSFT_xWebSiteDefaults.psm1
12.5% <100%> (ø)
:arrow_up:

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 22802e7...ea5ffd0. Read the comment docs.

Please update this PR similar to https://github.com/PowerShell/xWebAdministration/pull/514.

$script:localizedData (lower-case 'l') done


Performance issues while holding down a key

when holding down a key to skip/select dialogue performance is severely affected
I took a look through the code and the most likely culprit is the timers being created
I would suggest not making a new timer if a timer was created recently as a fix

Thanks for reporting!
I tried to recreate this by talking to an NPC and holding down space and holding down 1 for the first chat option. My FPS didn't change.
Could you tell me more about where this is happening/how I should recreate?

I hold down the button before interacting with the boats on fossil island, for example.  I can reproduce the drop in framerate by holding down any button outside of dialogue for about a second or longer.  It takes my framerate from 50 (capped) down to about 22.
I have my "repeat rate" on my keyboard set to max, when I tried lowering it the problem went away.  So if you can't reproduce the problem that is probably why.

Sorry for the long wait.
I bumped my repeat rate as high as it could go on macOS with defaults write -g KeyRepeat -int 1 and I might kinda be able to reproduce haha. I do see lows of 90 FPS holding a key vs 100-110 at idle. But it doesn't matter much -- appreciate you testing different repeat rates/confirming that theory.
I took your suggestion of "do less": fe2dc6fdc3d2caa547f2ca13584c98e6ef165109 In my pseudo-scientific benchmark, the part that runs on the client thread is now ~7x faster, which where slowness would hurt rendering. Hopefully it makes a difference for you!

I was unable to recreate the issue now, great job and thanks for taking a look


feat: added HideHelpCommands to docs

What type of PR is this?

documentation

What this PR does / why we need it:
Adds HideHelpCommands to docs
Which issue(s) this PR fixes:
Fixes #1965
Release Notes
- Adds `HideHelpCommands` to docs

@midirhee12 this is for v2 ? Do you want to change the base to urfave:v2_maint ?


fix issue 555 about request header context-length missing

Golang http.NewRequestWithContext will set http.Request.ContentLength when body is bytes.Buffer, bytes.Reader or strings.Reader. If http.Request.ContentLength is not send, Golang std lib will delete Header of Context-Length when sending request. Fix #555

Codecov Report

Merging #649 (4b20c94) into main (2aa4404) will decrease coverage by 0.21%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #649      +/-   ##
==========================================
- Coverage   80.12%   79.91%   -0.22%
==========================================
  Files          95       95
  Lines       10981    10986       +5
==========================================
- Hits         8799     8779      -20
- Misses       1705     1728      +23
- Partials      477      479       +2

Impacted Files
Coverage Δ

pkg/filter/proxy/request.go
92.95% <0.00%> (-7.05%)
:arrow_down:

pkg/object/mqttproxy/session.go
74.23% <0.00%> (-7.98%)
:arrow_down:

pkg/filter/validator/basicauth.go
77.52% <0.00%> (-1.38%)
:arrow_down:

pkg/cluster/cluster.go
59.93% <0.00%> (-0.94%)
:arrow_down:

pkg/object/mqttproxy/client.go
80.54% <0.00%> (+0.90%)
:arrow_up:

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 2aa4404...4b20c94. Read the comment docs.

updated!


Represent the parsing process in BPMN 2?

It was chosen to represent the pika parsing algorithm in Java source code.
:thinking: How do you think about to convert available information into a representation which would be supported by the standard “Business Process Model and Notation”?

Sorry, what would be the value of representing the algorithm in BPMN 2 notation?
I wasn't familiar with this notation, but looking at some BPMN diagrams, this looks derived from the old-school flowchart techniques of the 80s. These went the way of the dodo, and with good reason -- designing algorithms with flowcharts typically leads to spaghetti code. They are really only useful for large-scale design where you have multiple independent systems interacting via information transfer of some sort.
Specifying an algorithm using a working prototype accomplishes numerous important things:

It completely eliminates ambiguity, since a real programming language is unambiguous in syntax and semantics (I am very against the use of pseudocode in papers, for this reason). It allows readers of the paper to see how the algorithm described in the paper can actually be implemented (many algorithms described in papers that do not come with source code are exceptionally hard to recreate).
It proves that the algorithm works for some set of testcases, and allows further testcases to be written to strengthen that proof. It also in some cases allows for formal proofs of correctness.
It allows interested parties to tinker with the algorithm without having to reimplement it themselves.

You are welcome to model the algorithm in BPMN 2 if you would like, and if it's useful, I could consider adding it to this repository. However I don't see the value in doing it myself. Sorry!

I imagine that additional data processing representations can help to convert your reference implementation into variants for other programming languages.

Ah, OK. Well I tried to write in a very generic style, which uses almost no Java-specific idioms. It should be very straightforward to port the reference parser to other programming languages. I bet a Python expert could do it in an afternoon, for example.

:thinking: I imagine also that a possible conversion of the reference parser can become more challenging for programming languages which do not provide a convenient standard library so far.

Literally the only standard library routines that this parser uses is "read all the lines from a file". So if your programming language doesn't support that, you have much bigger problems!

Everything else that could be construed as standard library support is really basic stuff like string concatenation, and data structure stuff like the use of a priority queue. There are almost no standard library calls in the whole codebase. Priority queues are data structures 101, so if a language doesn't have support for those in either the standard libraries or some open source library, then it must be a very early-stage programming language indeed, and there are thousands of webpages that show you how to implement those using a heap.

The data processing convenience is varying between available programming languages (also according to function or class libraries to which you got used to).

Well languages use very different paradigms for almost everything, yes. But take a good look at the code, porting will not be complicated. However there are many tricky details to get right in an implementation that you would have to figure out from scratch if implementing from some sort of spec. It will be much easier to port the code directly, rather than trying to re-implement the algorithm from a spec, whether in pseudo code or in BPMN or other flowchart system.

Did you come along any efforts to transform Java code into code variants for other programming languages (which do not share similar virtual machine bytecode) automatically?

I have many times ported code (automatically, semi-automatically, and/or manually) to/from other programming languages, yes. I haven't tried that with this parser. But I consciously thought about porting when I wrote the code, since it is a reference parser, so I'm telling you, it's about as portable as it could possibly be.


Fixed ObjectCollection.cs to lay out from the left top to the bottom right.

Hello.
I think that the NodeList of ObjectCollection is better to lay out from the left top to the bottom right.
When surface type property of ObjectCollection is "Plane" and "Cylinder",it lay out the NodeList from the left bottom to the top right.
But that is a layout of different than usual, so it not intuitive.
Please refer if you do not mind.
Regards.

@TakahiroMiyaura,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot


Jtcorrin/plan execute structured tools

This builds on my previous PR #3072 - it allows for structured tools to be pass through to the plan and execute executor. There is still work to be done on the prompt however
Fixes #3074

This now solves the problem I was trying to solve. Not sure its a particularly pretty solution though so I'm happy to take feedback or make adjustments if those who know the codebase more intimately would like to make suggestions.

Seems fine other than the linter warning!

I think that covers it - I'll play around with it more this weekend but, as ever, happy to take any feedback or direction.

Hey I'm so sorry this fell behind - it's been an insane week for us. Will review now


0.5.0 overhaul

I'll have to write many more comments on this, but want to put it out there for early preview.
Sorry for missing commit messages and the messiness of it all, this was not possible to do any other way.
(2.5 days of work, probably the most intense coding session I did in my life. Really went overboard with changing everything at the same time.)
Short summary of user-facing changes:

interpreter is 10x-20x faster
less important:

functions are really bound and not dispatched by name (e.g., x = normal; x(1,2) is possible)
long programs don't fail with Too much recursion

Lots of stuff is still broken, but all is easy to reimplement:

__result__
function calls in the playground (need to investigate)
most MathJS functions (only +, -, *, / currently work on numbers)
date and duration standard functions
tests

Incomplete summary of internal changes:

interpreter doesn't use lisp expressions anymore, everything is evaluated eagerly
no macros
no dispatch; everything is in bindings, almost all standard functions moved to FunctionRegistry
bindings are stored as a chain of scopes (bindings = Bindings(map, option(bindings))) with lookups traversing
mutable bindings (unsure if this was necessary, might redo again, maybe with Js.Dict)
simplified FunctionRegistry_Core significantly (much work to do still)
errorValue in FunctionRegistry instead of strings, but inconsistent and not finished yet; too much code to rewrite
some changes in ReducerProject
3102 insertions(+), 3914 deletions(-), and can be simplified further

Note on speedups: they show up consistently for any code written in Squiggle, but standard library is not affected. For example, cdf on SampleSets is slow, and in one Leopold's model it makes everything else insignificant.

Time to mark this for review, since I released 0.5.0-alpha.1 from it.
I don't expect anyone to read through it all, but here are some notes on changes I haven't mentioned above:

I tried to convert FunctionRegistry to non-string errors to avoid regressions in error messages, but gave up halfway through, too much code to change (and we'll switch to exceptions soon anyway)
FR_* moved to src/rescript/
I've added a few new helpers under FunctionRegistry_Helpers.Make namespace; the terse naming might be controversial, but I tried to explain my reasoning in the comment there; I'm not very attached to the specifics of it
ReducerInterface_InternalExpressionValue renamed to Reducer_Value; actually, the entire ReducerInterface namespace is dead
I also got rid of IEvModule / SqModule values, they are all just records now; I might regret/revert this later, but modules and records were pretty identical, and I took the opportunity to simplify the codebase
type-related code and tests are commented out; jest fails on empty files, so type tests are also disabled in jest config
entry point for stdlib is SquiggleLibrary_StdLib.res; I'm unsure about the name, but SquiggleLibrary namespace already existed, and Stdlib is already taken by Utility/Stdlib.res

Now here: https://github.com/quantified-uncertainty/squiggle/pull/1184
I thought it would change the name automatically without closing these, sorry.


Test velocities in Astropy 2.0

Astropy 2.0 has been released with lots of interesting changes, and in particular coordinate frames now support velocities:
http://docs.astropy.org/en/stable/coordinates/velocities.html#astropy-coordinates-velocities
Test this with satellite or planetary ephemerides and see how it could interplay with poliastro. Notice that SkyCoord support for velocities is delayed until Astropy 3.0, to be released later this year.

I played with this a little bit and detected some things I don't like and some surprising (i.e. unexpected) errors. This is the code:
from astropy import *
from astropy.coordinates import *
from poliastro.examples import *

CartesianRepresentation(*iss.r)
_.y
GCRS(CartesianRepresentation(*iss.r))
GCRS(x=iss.r[0], y=iss.r[1], z=iss.r[2], representation="cartesian")
pos_rv = GCRS(x=iss.r[0], y=iss.r[1], z=iss.r[2],
     v_x=iss.v[0], v_y=iss.v[1], v_z=iss.v[2],
     representation=CartesianRepresentation,
     differential_cls=CartesianDifferential
)
pos_rv.transform_to(ITRS)
pos = GCRS(CartesianRepresentation(*iss.r), representation="cartesian")  # Error ahead
pos.transform_to(ITRS)

No notebook yet.

Reported two issues in Astropy:

https://github.com/astropy/astropy/issues/6435
https://github.com/astropy/astropy/issues/6436

I'd still like to send an email to https://groups.google.com/forum/#!forum/astropy-dev with some feedback, but will do it next week, if time permits.

And specifically this is the fragment I would like to ask about:
https://github.com/astropy/astropy/blob/v2.0.1/astropy/coordinates/baseframe.py#L926-L927

This is a non-issue, that should be expanded in #109, #108 and others. The first tests have been performed, so I'm closing.


ApplyAllConfiguredChangesToDatabase confusion

Given a brand new database, running the following throws a SchemaValidationException as expected
var store = DocumentStore.For(_ =>
{
	_.Connection("a_connection_string");
 	_.AutoCreateSchemaObjects = AutoCreate.None;
});

store.Schema.AssertDatabaseMatchesConfiguration();

SchemaValidationException details
Configuration to Schema Validation Failed! These changes detected:
CREATE OR REPLACE FUNCTION public.mt_immutable_timestamp(value text) RETURNS timestamp without time zone LANGUAGE sql IMMUTABLE AS $function$
select value::timestamp
$function$;
CREATE OR REPLACE FUNCTION public.mt_immutable_timestamptz(value text) RETURNS timestamp with time zone LANGUAGE sql IMMUTABLE AS $function$
select value::timestamptz
$function$;
....etc

After reading the documentation, I assumed I could call:
store.Schema.ApplyAllConfiguredChangesToDatabase();

To programmatically apply all detectable schema changes upfront when an application is first bootstrapped, you can use this mechanism:

However this appears to do nothing.
Running the following code causes the same SchemaValidationException
var store = DocumentStore.For(_ =>
{
	_.Connection("a_connection_string");
 	_.AutoCreateSchemaObjects = AutoCreate.None;
});

store.Schema.ApplyAllConfiguredChangesToDatabase();
store.Schema.AssertDatabaseMatchesConfiguration();

I'm trying to get marten to not apply schema changes automatically, but rather only when I call ApplyAllConfiguredChangesToDatabase.

@michael-wolfenden that might be resolved by https://github.com/JasperFx/marten/pull/1321, but I'll double check that.

@michael-wolfenden I initially misread your issue. After investigation I think that current mechanism is working as designed.
ApplyAllConfiguredChangesToDatabase method applies the changes based on your autocreate configuration. So if you setup:

All it will do full drop/create etc.
CreateOrUpdate will not drop any existing objects
Create won't drop and not update any existing objects,
None won't do any changes
So if you setup None then you won't be able to generate any update script. Marten provides also 2 methods:
ToDDL that generates string with all potential changes
WriteDDL that will do the same as ToDDL but write it to file.

You can use the script generated and just call it through NpgsqlConnection (it can be taken from DocumentSession).
In theory we could:

provide some parameter like to ApplyAllConfiguredChangesToDatabase like - force,
or add another method for doing manual schema update
or add new enum value to AutoCreate like manual
although I'm not convinced if that'd be the best option as that might be at the end misleading and overused by the users.

@jeremydmiller @mysticmind @jokokko thoughts?

@oskardudycz If I set AutoCreateSchemaObjects to anything other than None then doesn't marten automatically apply the changes (i.e. calling ApplyAllConfiguredChangesToDatabase is redundant at that point).
If that is the case, then the only time I would want to call ApplyAllConfiguredChangesToDatabase is if AutoCreateSchemaObjects is set to None. I'm telling marten, don't automatically apply any changes only apply them when I call ApplyAllConfiguredChangesToDatabase.
I am able to work around it by generating the patch and applying it myself as you suggested, so I'm happy to close out this issue.
I'm just confused as to the purpose of  ApplyAllConfiguredChangesToDatabase

As I wrote above  ApplyAllConfiguredChangesToDatabase applies the changes based on the AutoCreate option that you've chosen. If you use None then it won't apply any changes.
Currently ou can use ToDDL method to generate the differential script and then run it manually - eg. through NpgsqlConnection.

But aren't your changes applied based on you AutoCreate option anyway without you needing to call ApplyAllConfiguredChangesToDatabase

Yes, they will be applied even if you didn't call ApplyAllConfiguredChangesToDatabase but only on demand (so eg. when you try to add document of exact type). ApplyAllConfiguredChangesToDatabase does that in advance so no further changes will be applied during the application lifetime.

Ahhh.. now I understand. Thanks for clarifying @oskardudycz. I'll close this issue out now.

Cool - I'm happy that I was able to help 😃 👍

Relooking at the above, I think the requirement to run ApplyAllConfiguredChangesToDatabase() independent of the StoreOptions.AutoCreateSchemaObjects is valid.
If StoreOptions.AutoCreateSchemaObjects is anything other than AutoCreate.None then the DocumentStore will auto-create schema objects accordingly on first run. In this case, running ApplyAllConfiguredChangesToDatabase() manually does not make much sense.
If the user wants to control and decide when to apply scheme changes, the user can set the StoreOptions.AutoCreateSchemaObjects to AutoCreate.None and run ApplyAllConfiguredChangesToDatabase() as they see it fit. This is the use case which @michael-wolfenden was trying to achieve. Earlier we had our default as AutoCreate.All, this use case was working fine but this got broken after we updated the default as AutoCreate.CreateOrUpdate. Also running ApplyAllConfiguredChangesToDatabase() should should be independent of StoreOptions.AutoCreateSchemaObjects settings.
@oskardudycz  I will send a PR which will allow for the above scenario. Please review and let me know your thoughts.

@mysticmind the only thing that we should be aware is that user might want to apply changes based on the different criteria. I can imagine that user might want to apply changes with create or update manner.
I agree that we should find smart way to untie those two things.

@oskardudycz I have thought through it already, ApplyAllConfiguredChangesToDatabase(AutoCreate withCreateSchemaObjects = AutoCreate.CreateOrUpdate) will be this...

That make sense - by default it could use settings from the AutoCreate.


hpss crashes

loading the helpfile in PR47 crashes:
Assertion failed: (hSize <= mMaxBuf.cols()), function init, file /Users/pa/Documents/documents@hudd/research/projects/fluid corpus navigation/research/fluid_decomposition/include/clients/rt/../../algorithms/public/HPSS.hpp, line 47.
it seems to be relating to arguments.

Assertion failed: (hSize <= mMaxBuf.cols()), function init, file /Users/pa/Documents/documents@hudd/research/projects/fluid corpus navigation/research/fluid_decomposition/include/clients/rt/../../algorithms/public/HPSS.hpp, line 47.

This is a duplicate of #51 ?

it seems so. sorry for the noise. I'll amend.


Phel composer plugin needs to be released.

The phel-composer-plugin (https://github.com/jenshaase/phel-composer-plugin) needs to be released before the release of 0.1

Version 0.1 is now released on packagist: https://packagist.org/packages/phel-lang/phel-composer-plugin

Version 0.1 is now released on packagist: https://packagist.org/packages/phel-lang/phel-composer-plugin


Import and export databases

Import from and export to SQLite database files.

The naïve approach here would be to dump the entire database into its sql statements, run sqlite (not mvsqlite), run saved statements, use native tool to get db. Importing would be similar, where mvstore or another utility could target an existing db, dump the commands, stream them back into mvsqlite.
I'm not sure if other ways would go well with the limitations and guarantees FoundationDB exposes. Thoughts?

I thought the standard ways of exporting sqlite worked. Can you clarify?

Yes the standard way works. Providing an API to dump on the page layer directly is more efficient though.


ImageDataLoaders3D.from_df lops off leading '/' and then says it can't find the file

I have data that looks like this:
,level_0,index,file,Gd,loes-score,max-saliency,max-saliency-x,max-saliency-y,max-saliency-z,prediction,error,saliency-map-file
0,126,158,/home/feczk001/shared/data/loes_scoring/nascene_deid/BIDS/defaced/sub-6421HECH_ses-20140922_space-MNI_mprage.nii.gz,0,3.5,4.666442945653425,44,66,138,3.4262464046478267,0.07375359535217285,/home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data_saliency/sub-6421HECH_ses-20140922_space-MNI_mprage_salience.nii.gz
1,127,102,/home/feczk001/shared/data/loes_scoring/nascene_deid/BIDS/defaced/sub-6421HECH_ses-20140922_space-MNI_mprageGd.nii.gz,1,3.5,6.463980875508624,68,85,86,3.405237197875977,0.09476280212402344,/home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data_saliency/sub-6421HECH_ses-20140922_space-MNI_mprageGd_salience.nii.gz
2,139,35,/home/feczk001/shared/data/loes_scoring/nascene_deid/BIDS/defaced/sub-5896ZAMC_ses-20130130_space-MNI_mprage.nii.gz,0,3.0,6.3110978556663735,66,100,80,3.2402114868164062,0.24021148681640625,/home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data_saliency/sub-5896ZAMC_ses-20130130_space-MNI_mprage_salience.nii.gz
3,135,58,/home/feczk001/shared/data/loes_scoring/nascene_deid/BIDS/defaced/sub-5896ZAMC_ses-20121129_space-MNI_mprage.nii.gz,0,3.0,5.2144760142388185,42,43,50,3.2648842334747314,0.26488423347473145,/home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data_saliency/sub-5896ZAMC_ses-20121129_space-MNI_mprage_salience.nii.gz
4,128,64,/home/feczk001/shared/data/loes_scoring/nascene_deid/BIDS/defaced/sub-6133TEPO_ses-20130416_space-MNI_mprage.nii.gz,0,3.0,5.013212930617059,64,98,76,3.2893197536468506,0.2893197536468506,/home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data_saliency/sub-6133TEPO_ses-20130416_space-MNI_mprage_salience.nii.gz

I then have this code:
dls = ImageDataLoaders3D.from_df(d,
                                 fn_col = 'file',
                                 label_col = 'loes-score',
                                 item_tfms = ResizeCrop3D(crop_by = (0., 0.1, 0.1),
                                                          resize_to = (20, 150, 150),
                                                          perc_crop = True),
                                 bs = 2,
                                 )

which gives me this error while trying to process the first row:
TypeError: the path "home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data/sub-5828KAFA_ses-20120620_space-MNI_mprageGd.nii.gz" is neither a valid directory nor a file
Note the missing '/' at the beginning of the file path in the error message. The leading '/' is not missing from the file column of the dataframe.

It has been a long time, since I worked on this project and fastai also underwent a lot of changes.
Please make sure you use the correct version of fastai.
If I remember correctly, the csv should filenames relative to the path variable in the from_df function. Try adding path='/'

Yes, that fixed it.


Code for BCH expansion

Several times now I have wanted to implement code which performs a BCH expansion on operator data structures in OpenFermion such as QubitOperator, FermionOperator, and sparse matrices. I started to write some code for this:

def bch_expand(x, y, order):
    """Compute log[e^x e^y] using the Baker-Campbell-Hausdorff formula
    Args:
        x: An operator for which multiplication and addition are supported.
            For instance, a QubitOperator, FermionOperator or numpy array.
        y: The same type as x.
        order(int): The order to truncate the BCH expansions. Currently
            function goes up to only third order.

    Returns:
        z: The truncated BCH operator.

    Raises:
        ValueError: operator x is not same type as operator y.
        ValueError: invalid order parameter.
        ValueError: order exceeds maximum order supported.
    """
    # Initialize.
    max_order = 4
    if type(x) != type(y):
        raise ValueError('Operator x is not same type as operator y.')
    elif (not isinstance(order, int)) or order < 0:
        raise ValueError('Invalid order parameter.')

    # Zeroth order.
    z = x + y

    # First order.
    if order > 0:
        z += commutator(x, y) / 2.

    # Second order.
    if order > 1:
        z += commutator(x, commutator(x, y)) / 12.
        z += commutator(y, commutator(y, x)) / 12.

    # Third order.
    if order > 2:
        z -= commutator(y, commutator(x, commutator(x, y))) / 24.

    # Fourth order.
    if order > 3:
        z -= commutator(
            y, commutator(y, commutator(y, commutator(y, x)))) / 720.
        z -= commutator(
            x, commutator(x, commutator(x, commutator(x, y)))) / 720.
        z += commutator(
            x, commutator(y, commutator(y, commutator(y, x)))) / 360.
        z += commutator(
            y, commutator(x, commutator(x, commutator(x, y)))) / 360.
        z += commutator(
            y, commutator(x, commutator(y, commutator(x, y)))) / 120.
        z += commutator(
            x, commutator(y, commutator(x, commutator(y, x)))) / 120.

    # Return.
    if order > max_order:
        raise ValueError('Order exceeds maximum order supported.')
    else:
        return z

But I am thinking that what we really want to do is to  implement the form derived by Dynkin in 1947 which would enable us to compute the series to arbitrary order without hard coding expression. Coding this up is a little involved but it is a good starter project for somebody. Some thought should also go into optimizing the performance of such code and also making good tests.

Yet another issue to be fixed is why GitHub is randomly choosing not to format the top of my function correctly in the post above.

@babbush The formatting was messed up because you didn't use github's formatting ;-)
To do a code block (in python), you do this:
```python

def foo(bar):
    """blah blah

    """
```

I fixed the formatting in the first comment.

Nice work. I will now delete these comments to save face...

@babbush Face is overrated.

Give vanity a chance.

I would love to contribute, can you assign it to me ~^~

Sure, we'd love to have you contribute! I can only use GitHub's "assign" on you if you accept the invitation I just sent to be an official collaborator of the project. But consider yourself assigned!

Some quick updates on the implementation: I've worked with my theorist friend to find out an efficient implementation for Dynkin's formula. I'm in the process of writing up the procedure in a short paper on arxiv and will refer to it in the implementation.

That's sounds awesome! I'm looking forward to it!

Hi, our code is finished, however it seems I don't have the permission to push my local branch to remote, please check and I'll push it tomorrow, thanks!

Indeed, nobody (not even me) has permission to push directly to the remote. Instead, you should open a pull request. See https://help.github.com/articles/about-pull-requests/ for details about doing this. Also, you will need to make sure you've sign the Google CLA (https://cla.developers.google.com/clas).

Closed by #114


chore: use public git-leaks

Replace Faire's private git-leaks with public one.

#11  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Nava2 and the rest of your teammates on  Graphite

Merge activity

Aug 16, 11:28 AM EDT: @Nava2 merged this pull request with Graphite.

Merge activity
* **Aug 16, 11:28 AM EDT**: @Nava2 merged this pull request with [Graphite](https://app.graphite.dev/github/pr/Faire/build-targets-gradle-plugin/11).

what the heck graphite. 😬


"not exists"'s subquery can not use "or"

Steps to reproduce the behavior (Required)

with aaa as (
select from abc a)
select a. from aaa as a
left join bbb as b on ...
left join ccc as c on ....
where  not exists  (select *from ddd as d where (a.id =  d.id and a.y = b.y) or a.x = b.x)
Expected behavior (Required)
get the data from the database.
Real behavior (Required)
throw an exception
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()

we will check and fix it


Restore compatibility with Python 3.8

Description
with statement with parentheses was introduced in Python 3.10.
Fixes #1177
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor

Changes
Please list the changes introduced in this PR:

Changed with statements to not use parentheses

Checklist:

[ ] I have read and followed the contributing guidelines
[ ] The functionality is complete
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/te-ci pytorch


new code-base with PSR standards

Hi, I forked this project some time ago, because I wanted to lean something from other devs code, in the mean time, I added some features that maybe helpfull for others also. :)
new features:

PSR-3: Logger Interface
PSR-7: HTTP Message Interface
PSR-17: HTTP Factory Interface
PSR-18: HTTP Client Interface
support for async requests

This change is

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a29ca5c). Click here to learn what that means.
The diff coverage is 63.69%.

@@            Coverage Diff            @@
##             master     #282   +/-   ##
=========================================
  Coverage          ?   65.42%
  Complexity        ?     1075
=========================================
  Files             ?       27
  Lines             ?     2626
  Branches          ?        0
=========================================
  Hits              ?     1718
  Misses            ?      908
  Partials          ?        0

Impacted Files
Coverage Δ
Complexity Δ

src/Httpful/Request.php
68.88% <ø> (ø)
333 <0> (?)

src/Httpful/Exception/ClientErrorException.php
0% <0%> (ø)
7 <7> (?)

src/Httpful/Proxy.php
0% <0%> (ø)
0 <0> (?)

src/Httpful/Handlers/JsonMimeHandler.php
100% <100%> (ø)
7 <7> (?)

src/Httpful/Handlers/AbstractMimeHandler.php
100% <100%> (ø)
1 <1> (?)

src/Httpful/ClientMulti.php
15.74% <15.74%> (ø)
37 <37> (?)

src/Httpful/Handlers/XmlMimeHandler.php
16.66% <16.66%> (ø)
23 <23> (?)

src/Httpful/Factory.php
28.57% <28.57%> (ø)
12 <12> (?)

src/Httpful/Handlers/CsvMimeHandler.php
36% <36%> (ø)
9 <9> (?)

src/Httpful/UriResolver.php
39.21% <39.21%> (ø)
54 <54> (?)

... and 17 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 a29ca5c...e491837. Read the comment docs.


update accelerate version range

update the range to ">=0.21.0,<0.34.0"
Issue #, if available:
Description of changes:
create this PR because multi-gpu test is not triggered in the previous PR
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/platform_tests ref=support_py312

/platform_tests


Read in rda-file doesn't work in use_dictionary_skeleton()

Hey @mbannert
I wanted to update the dictionary with the changed variable names for the cbssuitabilityhaiti package and wanted to use your use_dictionary_skeleton() function.
But when I run it, it gives me an error from this line:
Error in readRDS(file.path(data_path, d)) : unknown input format
I see that you are using the readRDS() function. use_data(), the function we use to save the data sets does save theme as ".rda" files in the data directory. Could that be the reason for the error?
I couldn't find a function that reads in rda-files simillar to the readRDS(). Do you have any ideas how to make it work?
It may also be a Windows problem. @mianzg and @larnsce have you tried it out?

Yes, .Rds is a different format than .Rda. I prefer the serialized .Rds because GitHub sometimes corrupts .Rda files. But if use_data goes another route I'll have to think about finding a way to switch or to support both.
Thanks for the pointer, I'll work on this.


Default set of passes for unknown languages

Closing because there is an internal hierarchy of the passes. The PR don't make much sense

Closing because there is an internal hierarchy of the passes. The PR don't make much sense