Support shorthand service names

One thing I ran into with some of my app configuration was that on kubedns you are able to shorthand a service name, but kubefwd doesn't appear to add that variant to the hosts file at the moment. To expand, I mean instead of service.namespace.svc.cluster.local you can put service.namespace and it will resolve. Could this be included in the aliases added to the hosts file? I haven't dug into the code yet, but I'd volunteer to add the functionality if need be 👍.

This was certainly an oversight and very easy to fix. I’m traveling at the moment but could add it in on Monday or I can assign it to you if you are interested.
Thank you for the report.

@jakereps 1.4.3 should now support service.namespace for all forwarded namespaces. see: https://github.com/txn2/kubefwd/releases/tag/1.4.3
brew upgrade kubefwd if you are running homebrew

Awesome, thanks a ton! 👍 Crazy turnaround on that! Offline for a few days so didn't even get a chance to respond!

@jakereps thank you for reporting the issue. I've been getting a lot of positive feedback on kubefwd and hope it helps others. Simple requests like this I'll try to turn around quickly.


Added support for searching for users

updated the user search to accept all supported request parameters

Reviewing this PR. Noticing that this change replaces the old definition of the method with just an unstructured dictionary -- I wonder if it makes more sense to explicitly add the parameters that are missing rather than relying on the user to read the API spec. There's certainly a pro in that we won't have to update the wrapper if there are further changes, though. Thoughts?

It seemed there were a few parameters missing in the original definition, and no calling function in api.py existed. For brevity I followed what was done in the Findings API get_findings() function.

I think what I might do is to go ahead and merge this in, then add another method that offers explicit arguments. It might break one of my existing scripts but that's an easy enough fix. Will investigate making this change to see what the implication might be.

@aszaryk , I looked at preserving both methods but it doesn't look like Python allows me to do that. I think the right approach here is going to be to add request_params as an optional argument alongside the others. I'm going to make some changes to this branch before merge.


fix(client-linuxapp): refactor binary file in progress methods

Also add some unit testing. What this does is basically:

make sure the path we get is always absolute, and do not join it with
the test variable before that check
make sure paths are joined correctly in case there's a prefix from
environment variables (mainly for testing)
refactor the struct/methods to be easy to add some unit test to
validate what we're writing
also make sure we create the parents (mkdir -p) when writing a file (Fixes https://github.com/fedora-iot/fido-device-onboard-rs/issues/289)

Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>

all good :)


Regression in 3.1.0-SNAP8

After upgrading to 3.1.0-SNAP8 my builds fail (it is the only change) for all JVM targets: https://travis-ci.org/erikvanoosten/metrics-scala/builds/505755504
The error is:
[error] /home/travis/build/erikvanoosten/metrics-scala/metrics-scala/src/test/scala/nl/grons/metrics4/scala/CheckedBuilderSpec.scala:27:22: object mockito is not a member of package org.scalatest
[error] import org.scalatest.mockito.MockitoSugar._
[error]                      ^

Hi @erikvanoosten , the reason is that's part of our modularization effort in 3.1.x that was just merged yesterday:
https://github.com/scalatest/scalatest/pull/1546
We have been deprecated org.scalatest.mockito.MockitoSugar and moved it to org.scalatestplus.mockito.MockitoSugar in 3.0.6/3.0.7:
https://github.com/scalatest/scalatest/releases/tag/release-3.0.6
Since you're using 3.1.0-SNAP8, you can add the following dependency to your build:
"org.scalatestplus" %% "scalatestplus-mockito" % "1.0.0-SNAP1"

in order to rename org.scalatest.mockito to org.scalatestplus.mockito, you can also try our autofix tool:
https://github.com/scalatest/autofix/tree/master/3.0.6
Hope this helps.

Thanks a lot!
Makes sense to shed some load now that Mockito has its own scala API.


Allow to open Sql Preview for a .prql file from a menu in built-in vscode file explorer

Now that we support multiple SQL Previews added in #110, we can provide Open Sql Preview menu option on .prql files in the built-in vscode file explorer.
New Open Sql Preview command takes an optional documentUri argument, and will generate the corresponding SQL from a PRQL document Uri when that weview is initialized in our new Sql Preview configure() method by reading PRQL document source from the local file system. See prql.openSqlPreview command registration in commands.ts for more info: https://github.com/PRQL/prql-vscode/blob/main/src/commands.ts#L27.

Implemented in PR #119.

Preview of this feature:


ERROR_WRONG_CUSTOM_INFO -> TD-2120N

Hello, i'dont know why it still doesn't work i have read this PR(https://github.com/AbobosSoftware/cordova-plugin-brother-label-printer/pull/46) and this issue (https://github.com/AbobosSoftware/cordova-plugin-brother-label-printer/issues/45) i have add a customPaperFilePath to my printer obj like that without success (I have the same label printer TD-2120N)
setPrinter: function (printer: any, onSuccess: any, onError:any) {
        if (cordova.platformId == 'ios' && printer['paperLabelName'] && printer['paperLabelName'].startsWith('W')) {
            var iosLabelName = IOS_PAPER_LABEL_MAP[printer['paperLabelName']];
            if (iosLabelName) {
                //console.log('Converting paperLabelName to ' + iosLabelName + ' for ios ');
                printer['paperLabelName'] = iosLabelName;
            }
        }

        if (printer['paperLabelName'] == 'CUSTOM') {
            printer.customPaperFilePath ='/public/media/brother/51x26/51x26.bin';
        }

        cordova.exec(onSuccess, onError, 'BrotherPrinter', 'setPrinter', [printer]);
    },

logs
To Native Cordova ->  BrotherPrinter setPrinter BrotherPrinter1723215947 ["options": [{
    customPaperFilePath = "public/media/brother/51x26/51x26.bin";
    ipAddress = "<IP_ADDRESS>";
    macAddress = "00:80:77:4d:e7:88";
    modelName = "Brother TD-2120N";
    orientation = LANDSCAPE;
    paperLabelName = CUSTOM;
    port = NET;
    serialNumber = B3G233707;
}]]

Thanks

What err are you getting @MicaelMnl69 ?

ERROR_WRONG_CUSTOM_INFO
kSelectedDevice             = Brother TD-2120N
kIPAddress                  = <IP_ADDRESS>
kSerialNumber               = 0
==== in printViaSdk with callback id                = BrotherPrinter1812653357 ...  operation: <BRWLANPrintOperation: 0x157213360>
==== in printViaSdk with callback id                = BrotherPrinter1812653357 ...  operation adding to que: <BRWLANPrintOperation: 0x157213360>
==== in printViaSdk with callback id                = BrotherPrinter1812653357 ...  operation: <BRWLANPrintOperation: 0x157213360>  END
Communication Result: 1
Error Code in BrotherPrinter is: 0
==== in main error code in instance is -34
isFinishedForWLAN ....
Error Code in BrotherPrinter is: -34

Hello @MicaelMnl69 , I do not have access to the TD-2120N, so I am not sure I can help.
However, the line
 modelName = "Brother TD-2120N";
does not look right as usually, there is no "Brother" or space in model names.
Maybe @TristanGodal can help?

Assuming that the "51x26.bin" file was generated using the TD-2120N Windows Driver (if not, then that's the problem)....
I would guess the problem is that the customPaperFilePath is not a FULL path to the file, since you have only specified a partial path. Assuming the file is located inside your App Documents Directory at this partial path, try prepending the app directory path.

Hello, thank you for your answers,
I have tried with modelName = "TD-2120N" but it does not work either. And, @robr2112 , yes the file is generated by the Windows Driver and the path corresponds to the root path of my React Capacitor project

@MicaelMnl69 OK thanks for clarifications.
What I meant by "full path" is that when your app is installed onto an iOS device, it will live inside a "sandbox" path in the iOS device file system.
While your path to the paper BIN file may be at the root level of your APP, it is NOT at the root level of the device.
For example, here is a path to a bin file (included inside the app bundle) that works for one of my Swift apps:

"/private/var/containers/Bundle/Application/0B1DF56E-2968-4292-B00E-5F1C1A5BDB98/MyApp.app/myPaperFile.bin"

Everything before and including "MyApp.app" is the path to your app on the device. Together, it provides the "full path" to the BIN file.
In Swift, there are methods available to get this path. For a Bundle Resource, I use this one:

Bundle.main.path(forResource: "MyPaperFile.bin", ofType: nil)

For the app documents folder, you may do something like this (in Swift):

https://www.hackingwithswift.com/example-code/system/how-to-find-the-users-documents-directory

I suspect Capacitor provides similar APIs to get these paths.
Anyway, I cannot say with certainty that the "relative path" you are using will fail in a Cordova/Capacitor app. It depends on whether Capacitor does something in the compiler to resolve your partial path into the full path that the SDK requires.
But, this is my best guess for why the SDK is failing with that specific error.

Yes I thought that too before but there the user copy file into capacitor sandbox (https://github.com/AbobosSoftware/cordova-plugin-brother-label-printer/pull/46/files#diff-902704a5811b4169ac0309a24c3e7c09c9099b9f0613e3e3ae34f9cf00d38981R597)


Also ignore remap-path-prefix in metadata for cargo rustc.

Also ignore --remap-path-prefix in cargo rustc.  Who knew that BuildContext had 3 sets of arguments?
Closes #7133

r? @Eh2406
(rust_highfive has picked a reviewer for you, use r? to override)

@bors r+

:pushpin: Commit d99b7fede7eaff781c9160331f5bb005f00b530f has been approved by Eh2406

:hourglass: Testing commit d99b7fede7eaff781c9160331f5bb005f00b530f with merge 1140c527c4c3b3e2533b9771d67f88509ef7fc16...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: Eh2406
Pushing 1140c527c4c3b3e2533b9771d67f88509ef7fc16 to master...


Hovering or clicking on the Volume Slider in the settings menu in game overrides script specified music volume completely.

Expected behavior: Script specified music volume should be multiplied against the user specified volume for the final volume of the music audio file when played, so if the User raises or lowers the volume with the slider, and hovering over it shouldn't cause it to instantly change to be probably 100% loud.
Actual behavior: Touching the slider will instantly snap all music playing (especially if for some reason you had more than one song playing at different volume levels) to the level of the slider.

This has been fixed in v2.0.2 :tada:


Melody continues to play after game over

Describe the bug
The melody from the melody editor continues to play during (and after) the game over sequence.
To Reproduce
Place the melody editor block in a forever block so that it plays in the background of a game. Play the game until game over.
Expected behavior
The melody should stop playing once the game over sequence begins.

This seemed fixed.  @riknoll  FYI


HTTPCORE-532

IOReactor thread can be lazy started

there is somthing wrong with the code ,let me correct it first

when use few connections,for example ,use always one connection in connection pool each time(), or no http connection used when project started.framework can use less thread ,that will reduce the thread number and load in computer.

@xiaohu-zhang If you anticipate few connections and want fewer threads you really should configure fewer workers. Overall, I think this change-set causes more problems than it solves.

what if can not anticipate ?lazy init is little useful in  performance。Also the code can be modified do not use instanceof .after all , it depends on you.

@xiaohu-zhang Why? The I/O reactor distributes sessions across all available workers equally. If you have n worker threads, all of them will get started after n connections.

yes.it has a little useful only when connections less than worker thread,and is not anticipate by user before.
just tiny improvement.


fix: support opensumi for local extension

Types

[x] 🐛 Bug Fixes

Background or solution
fix: cli 安装本地插件支持 opensumi 为引擎的插件
Changelog

 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.wangdaben seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Feature request Be able to right click

Be able to right click and event and open in new tab.

I'll close this issue since we already have an open issue concerning this feature: https://github.com/sensu/uchiwa/issues/381


Player Ability translation

Hi, I've added the translation file into babele folder, but continuing to see the english one.
There are any tricks that I missed ?

I missed the Babele moule installation and activation.

Nice work! Glad you solved it. Enjoy playing.


Move from pytorch_lightning to lightning

Description of changes:

Fix the breaking change to load_from_checkpoint introduced by pytorch_lightning==2.1.0.
Install the new package name lightning instead of pytorch_lightning
Use the new import style lightning.pytorch instead of pytorch_lightning

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

Hi, maybe I'm doing something else wrong, but this new import syntax seems to not work with pytorch_lightning<2.0.0, but the requirements allow otherwise. is it just me?

Thanks @caseytomlin, we have released v0.13.7 that uses the old import style and therefore is compatible with the correct version ranges.
We will update the version ranges in v0.14.0, where the the new import style will be introduced.


reed-solomon-perf/milestone-1

Milestone Delivery Checklist

[x] The milestone-delivery-template.md has been copied and updated.
[x] This pull request is being made by the same account as the accepted application.
[x] I have disclosed any and all sources of reused code in the submitted repositories and have done my due diligence to meet its license requirements.
[x] In case of acceptance, the payment will be transferred to the account provided in the application.

Link to the application pull request: https://github.com/pioneersprize/Polkadot-Pioneers-Prize/pull/2

LGTM

Gentle ping


Can we use this library for API 23?

Unfortunately I'm not able to use an API 23 emulator on my pc (for some specs reasons) and I'm wondering if we can still use this library in API 23?

I have the same Issue, I hope him to response to the problem soon :+1:

@FastDr1v3r it was fixed in PR #299
I'm waiting for merge

yeah same problem here

I have released 1.2.2 version that fixed this bug.


HomeAssistant: Setup failed for 'smartthings'

Describe the bug
Recently, after updating my HA instance that is running on NixOS, I get Setup failed for 'smartthings': Unable to import component: No module named 'pkg_resources' when I start HA and I cannot use the SmartThings integration.
Steps To Reproduce
Steps to reproduce the behavior:

Enable HA on NixOS
Have SmartThings set up
Update to whatever version caused it (I haven't been able to determine what version it was that broke)

Expected behavior
I expect the SmartThings integration to successfully run and connect to the devices it should and be usable, instead I get an entirely non-functional integration.
Additional context
I do not think this is an HA wide issue after doing some Google searching with the issue, I think it is NixOS related, but someone can correct me if I'm wrong.
Notify maintainers
Can't tell exactly who to ping here, but I think at least @mweinelt
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.4, NixOS, 24.05 (Uakari), 24.05.20240406.ff0dbd9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source`

Add a :+1: reaction to issues you find important.

Please post a complete traceback if available, so we can determine what exactly requires pkg_resources.

Logger: homeassistant.setup
Source: setup.py:316
First occurred: 6:47:06 PM (1 occurrences)
Last logged: 6:47:06 PM

Setup failed for 'smartthings': Unable to import component: No module named 'pkg_resources'
Traceback (most recent call last):
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/loader.py", line 979, in async_get_component
    comp = await self.hass.async_add_import_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/fmwqa8nvva4sh18bqayzrilrzxq9fm0f-python3-3.12.2/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/fmwqa8nvva4sh18bqayzrilrzxq9fm0f-python3-3.12.2/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/components/smartthings/__init__.py", line 12, in <module>
    from pysmartapp.event import EVENT_TYPE_DEVICE
  File "/nix/store/8b27ra0gjfpz2yy0x5v8ck33xjzjw335-python3.12-pysmartapp-0.3.5/lib/python3.12/site-packages/pysmartapp/__init__.py", line 3, in <module>
    from pysmartapp.config import (
  File "/nix/store/8b27ra0gjfpz2yy0x5v8ck33xjzjw335-python3.12-pysmartapp-0.3.5/lib/python3.12/site-packages/pysmartapp/config.py", line 6, in <module>
    from .request import Request, Response
  File "/nix/store/8b27ra0gjfpz2yy0x5v8ck33xjzjw335-python3.12-pysmartapp-0.3.5/lib/python3.12/site-packages/pysmartapp/request.py", line 3, in <module>
    from httpsig.verify import HeaderVerifier
  File "/nix/store/81kbji79cxg0jy7hvnh3qqbw3q30v21x-python3.12-httpsig-1.3.0/lib/python3.12/site-packages/httpsig/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/setup.py", line 316, in _async_setup_component
    component = await integration.async_get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/loader.py", line 997, in async_get_component
    self._component_future.result()
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/loader.py", line 989, in async_get_component
    comp = self._get_component()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/loader.py", line 1037, in _get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/fmwqa8nvva4sh18bqayzrilrzxq9fm0f-python3-3.12.2/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/nix/store/akxl9vmy8ka66zxlnpyy5038csvy6faf-homeassistant-2024.4.0/lib/python3.12/site-packages/homeassistant/components/smartthings/__init__.py", line 12, in <module>
    from pysmartapp.event import EVENT_TYPE_DEVICE
  File "/nix/store/8b27ra0gjfpz2yy0x5v8ck33xjzjw335-python3.12-pysmartapp-0.3.5/lib/python3.12/site-packages/pysmartapp/__init__.py", line 3, in <module>
    from pysmartapp.config import (
  File "/nix/store/8b27ra0gjfpz2yy0x5v8ck33xjzjw335-python3.12-pysmartapp-0.3.5/lib/python3.12/site-packages/pysmartapp/config.py", line 6, in <module>
    from .request import Request, Response
  File "/nix/store/8b27ra0gjfpz2yy0x5v8ck33xjzjw335-python3.12-pysmartapp-0.3.5/lib/python3.12/site-packages/pysmartapp/request.py", line 3, in <module>
    from httpsig.verify import HeaderVerifier
  File "/nix/store/81kbji79cxg0jy7hvnh3qqbw3q30v21x-python3.12-httpsig-1.3.0/lib/python3.12/site-packages/httpsig/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

https://nixpk.gs/pr-tracker.html?pr=303491

Thank you!


Unable to Activate AD Role Due to MfaRule

I believe this an issue that you're aware of and are working to resolve per this comment on a previous issue: https://github.com/JustinGrote/JAz.PIM/issues/6#issuecomment-1130008715
I tried piping Get-JazADRole to Enable-JazADRole as well as using tab completion with Enable-JazADRole, but neither worked. Additionally, when the Enable-JazADRole fails, Wait-JazADRole also fails because $totalProgress cannot be calculated.
PS > Enable-JAzADRole 'Global Reader (LJnv8vs6uUa3z6Em7nTEUZY-Uygeo0pJj_wBT3Lkhj8-1-e)' -j 'test' | Wait-JAzADRole
Enable-JAzADRole: RoleAssignmentRequestPolicyValidationFailed: The following policy rules failed: ["MfaRule"]
Write-Progress: C:\Program Files\PowerShell\Modules\jaz.pim\0.0.8\Public\Wait-ADRole.ps1:125
Line |
 125 |  … ount of $($waitJobs.ChildJobs.count)" -PercentComplete $totalProgress
     |                                                           ~~~~~~~~~~~~~~
     | Cannot bind parameter 'PercentComplete'. Cannot convert value "NaN" to type "System.Int32". Error:
     | "Value was either too large or too small for an Int32."

Is there a way to force a prompt to satisfy the MFA rule requirement within my tenant's conditional access policies?

Try connect-mggraph -forcerefresh

I mean it's Azure saying that you haven't met the MFA, it's literally the response from the server, so it's something in your token or conditional access that isn't meeting the criteria. If you find what it is I can make that a more friendly error message of something to check for, otherwise there's nothing I can do I don't think.

Yeah, that makes sense. I found the article below which describes a method for manually getting an access token for this exact scenario, which is supposed to provide an MFA prompt:
https://web.archive.org/web/20210928082057/http://www.anujchaudhary.com/2020/02/connect-to-azure-ad-powershell-with-mfa.html
I tried the described method using the Client ID for the Microsoft Graph PowerShell Enterprise Application (instead of Azure AD):
$params = @{
    Scopes  = @("https://graph.microsoft.com/.default")
    ClientId = '14d82eec-204b-4c2f-b7e8-296a70dab67e'
    RedirectUri = 'urn:ietf:wg:oauth:2.0:oob'
    Authority  = 'https://login.microsoftonline.com/common'
    Interactive = $true
    ExtraQueryParameters  = @{
        claims='{"access_token" : {"amr": { "values": ["mfa"] }}}'
    }
}

$MsResponse = Get-MSALToken @params

This gave me a one-time code to use at https://microsoft.com/devicelogin/, but it still didn't work and I was never prompted for MFA. I tried connecting to Microsoft Graph both with -UseDeviceAuthentication and separately providing the access token with -AccessToken.
When reviewing my sign-in logs in Azure AD, I see the following details for the failed logins:

Property
Value

Authentication requirement
Multifactor authentication

Status
Failure

Continuous access evaluation
No

Sign-in error code
50199

Failure reason
For security reasons, user confirmation is required for this request. Please repeat the request allowing user interaction.

Additional Details
MFA requirement skipped due to IP address

I think my next step will be to open a case with Microsoft Support and see what they say, but perhaps there is a different way the Graph request can be performed to force a user confirmation.

I have found a solution (I think). It appears the source of the issue comes down to a behavior difference for MSAL.PS between PowerShell and Windows PowerShell. The only way I was able to get an actual MFA prompt was to import MSAL.PS using WinPSCompatSession.
Import-Module -Name MSAL.PS -UseWindowsPowerShell
Import-Module -Name Jaz.PIM

$params = @{
    Scopes  = @("https://graph.microsoft.com/.default")
    ClientId = '14d82eec-204b-4c2f-b7e8-296a70dab67e'
    Authority  = 'https://login.microsoftonline.com/common'
    Interactive = $true
    ExtraQueryParameters  = @{
        claims='{"access_token" : {"amr": { "values": ["mfa"] }}}'
    }
}

$MsResponse = Get-MSALToken @params
Connect-MgGraph -AccessToken $MsResponse.AccessToken


Update sql-database-develop-php-simple-windows.md

changed my alias and date

Hi @meet-bhagdev, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


FR: allow fine-tuned voltage/frequency control

amdgpu-pro allows setting the frequency and voltage per power state by writing to
/sys/class/drm/card0/device/pp_od_clk_voltage, e.g.:
echo "s 4 900 1050" > pp_od_clk_voltage
echo c > pp_od_clk_voltage
as described here:
https://www.reddit.com/r/Amd/comments/8weeln/you_can_undervolt_vegas_in_linux_now/
Could ROCm offer a similar functionality?

Similar to what is described in: https://github.com/RadeonOpenCompute/ROCm/issues/463
but could this be in ROCm "out of the box" instead of requiring custom compilation as described there.

Interesting, this seems to be working with ROCm 1.8.2 with Fiji GPUs, but not with Vega.

pp_od_clk_voltage also works "out of the box" in kernel 4.18 (Ubuntu 18.04). It would be so nice if the next ROCm would work on this kernel.. (4.18)

This seems to work with ROCm too, closing.


Allow retries in subprocess commands

In the middle of bazel run @rules_ros//repos/config:repos_lock.update, network failures can occur:
Traceback (most recent call last):
  File "/home/michael.sbarra/ade-home/.cache/bazel/_bazel_michael.sbarra/2786ee1af01eb601cf49528fecac940f/execroot/rules_ros/bazel-out/k8-fastbuild/bin/repos/config/detail/repos_lock.update.runfiles/rules_ros/repos/config/detail/lock_repos.py", line 133, in <module>
    main()
  File "/home/michael.sbarra/ade-home/.cache/bazel/_bazel_michael.sbarra/2786ee1af01eb601cf49528fecac940f/execroot/rules_ros/bazel-out/k8-fastbuild/bin/repos/config/detail/repos_lock.update.runfiles/rules_ros/repos/config/detail/lock_repos.py", line 49, in main
    additional_attributes = fetch_dependency_details(use_tar = args.tar, **spec)
  File "/home/michael.sbarra/ade-home/.cache/bazel/_bazel_michael.sbarra/2786ee1af01eb601cf49528fecac940f/execroot/rules_ros/bazel-out/k8-fastbuild/bin/repos/config/detail/repos_lock.update.runfiles/rules_ros/repos/config/detail/lock_repos.py", line 60, in fetch_dependency_details
    return fetch_git_details(type = type, **kwargs)
  File "/home/michael.sbarra/ade-home/.cache/bazel/_bazel_michael.sbarra/2786ee1af01eb601cf49528fecac940f/execroot/rules_ros/bazel-out/k8-fastbuild/bin/repos/config/detail/repos_lock.update.runfiles/rules_ros/repos/config/detail/lock_repos.py", line 115, in fetch_git_details
    raise ValueError(result.stderr)
ValueError: error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 10 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

It should auto-retry a max number of times (ie 3) before hard failing.

Implemented in #22


Use go install command in Makefile

Description:
Resolves #

Codecov Report

Merging #44 (2444417) into master (edbcd4a) will decrease coverage by 0.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
- Coverage   82.63%   82.50%   -0.13%
==========================================
  Files          12       12
  Lines         806      806
==========================================
- Hits          666      665       -1
- Misses         89       90       +1
  Partials       51       51

Impacted Files
Coverage Δ

pkg/controllers/machinenodepool_controller.go
79.72% <0.00%> (-1.39%)
:arrow_down:

pkg/controllers/machine_controller.go
76.77% <0.00%> (+0.78%)
: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 edbcd4a...2444417. Read the comment docs.


Net6 microservices sample

Net6 microservices sample with

A little more detail about some configuration.
I have tried to clear some points that were faced by me while setting it up.
Since it is setup in .NET 6 so it will be more helpful who want to set it in .NET 6

 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.:x: bradLucifer sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Hi @dtillman, i will be very grateful if you look at it. Thanks

@bradLucifer Thanks for the nudge ... fighting another issue... will have a look shortly!

@bradLucifer :
Looking at this... Seems it is very similar to the https://github.com/SteeltoeOSS/Samples/tree/main/Messaging/src/RabbitMQWeb2 sample ... did you notice this sample?  Could we just update it (RabbitMQWeb2) with changes that you think would be helpful to others and also captures your experiences appropriately?

Hi @hananiel, I have seen that you first merge my PR and then delete it. Any reason?

Hi @bradLucifer first thanks for PR. Short answer I merged it by accident. I hope you saw @dtillman 's feedback that your sample was nearly identical to the rabbitmqweb2 sample. So I attempted to add what I thought were a demonstration of a sender and receiver and show usage with the web application builder and also note how config properties are set.If there is any other aspect you would like to add, we can work on that together.


Backspace

Hi,
In CMD>When writing a command, if we use the backspace, it gives "Invalid command".

Backspace on serial terminal now works with the latest version. Make sure to map the terminal emulation to ASCII 8 (Ctrl-H) for Backspace.


Bump jest to v26.6.3

This PR bumps the jest dependency to the latest version under v26.

Curious why we can't move to v27?

Oh great point, we most likely can, I just ran the wrong command 😅 .

Upgraded it to v27 instead, tests still happily work.


[SOLVED] Database migration fails for manual installation on Windows 10

This is more of small guide for those who have problems getting their local wamp/xamp powered server hooked up with the laravel instance.
The problem was solveable for me by changing my global php.ini extensions config and uncommenting the line containing
extension=pdo_mysql
Thought I might share this here since I saw a couple threads about this. Might be worth putting into the official docs.
Trace
      Illuminate\Database\QueryException  : could not find driver (SQL: select * from information_schema.tables where table_schema = books and table_name = migrations and table_type = 'BASE TABLE')

  at D:\WAMP\www\BookStack\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
         // If an exception occurs when attempting to run a query, we'll format the error
         // message to include the bindings with SQL, which will make this exception a
         // lot more helpful to the developer instead of just the database's errors.
         catch (Exception $e) {
               throw new QueryException(
                 $query, $this->prepareBindings($bindings), $e
             );
         }

  1   Doctrine\DBAL\Driver\PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31

  2   PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27

  1   Doctrine\DBAL\Driver\PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31

  2   PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27

Created  PR referencing this issue


SAML bearer is not working with travellocity app

Describe the issue:
With latest IS version saml bearer is not working with travelocity app. We have to fix it.
Expected behavior:
SAML bearer should work with travelocity application without any issue.

Could not reproduce this issue.


feat(app): long term metric storage

Adds long term metric storage in a s3 bucket.
Handles all metrics in a separate thread.
closes https://github.com/SwissDataScienceCenter/renku-notebooks/issues/1069

@Panaetius I addressed all the comments. I also added docstrings to all classes and their public methods in the new files for metrics handling.
I just have to fix the tests and that is it.

@Panaetius this is ready now. I went with dict(**resources) on making a dictionary copy because deepcopy failing to create a copy of resources because in some cases it is a plain dictionary (this works) when the session is first created. But after the session is created and the status changes then this is a dict-like object that I get from querying the k8s api. With dict both cases work.


Add phoenix listen address

Fixes #601

Pull Request Test Coverage Report for Build 71ce00b0f7db0f94aceb8af31e405adf4ead55cf-PR-604

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 76.066%

Totals

Change from base Build 4598a4e21322b965e9e61000c4a4483145d0a3cd:
0.0%

Covered Lines:
696

Relevant Lines:
915

💛  - Coveralls


java lang NullPointerException at com.airbnb.android.react.maps.AirMapManager.receiveCommand

react-native: "0.44.0"
react-native-maps: "0.15.2"
I'm getting this error randomly on a small portion of my users. It happens occasionally for me when the map loads but it's been rather inconsistent and hard to replicate so far.
java.lang.NullPointerException:
  at com.airbnb.android.react.maps.AirMapManager.receiveCommand(AirMapManager.java:195)
  at com.airbnb.android.react.maps.AirMapManager.receiveCommand(AirMapManager.java:29)
  at com.facebook.react.uimanager.NativeViewHierarchyManager.dispatchCommand(NativeViewHierarchyManager.java:703)
  at com.facebook.react.uimanager.UIViewOperationQueue$DispatchCommandOperation.execute(UIViewOperationQueue.java:261)
  at com.facebook.react.uimanager.UIViewOperationQueue$2.run(UIViewOperationQueue.java:787)
  at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:843)
  at com.facebook.react.uimanager.UIViewOperationQueue.access$1600(UIViewOperationQueue.java:48)
  at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:889)
  at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:31)
  at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:129)
  at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:107)
  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:918)
  at android.view.Choreographer.doCallbacks(Choreographer.java:695)
  at android.view.Choreographer.doFrame(Choreographer.java:628)
  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
  at android.os.Handler.handleCallback(Handler.java:739)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:158)
  at android.app.ActivityThread.main(ActivityThread.java:7229)
  at java.lang.reflect.Method.invoke(Native Method:0)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Anyone with a similar issue or can help?

This seems to happen when an animateToRegion occurs.
How do you call this function?

I'm calling animateToRegion once I receive props of the user's current location. Anything specific I need to avoid in using animateToRegion?
componentWillReceiveProps(newProps) {
    // Delay animations as they do not react if launched before map is fully loaded
    // Could be due to map not ready etc.
    if (this.refs["MAP"] && newProps.currentLocation !== this.props.currentLocation) {
      console.log('animate to current')
      setTimeout(() => {
        if (this.refs["MAP"]) {
          this.refs["MAP"].animateToRegion(newRegion(newProps.currentLocation), 1000)
        }
      }, 1000);
    }
}

I use geolocation too in my project, when i have the user's geolocation i just put the geolocation data in my state, and use this data with the region/initialRegion prop. But maybe you are doing it the right way.
Does your newRegion returns the latitude/longitude delta, as mentioned in the doc?

Yup, it returns a region object as specified in docs:
type Region {
  latitude: Number,
  longitude: Number,
  latitudeDelta: Number,
  longitudeDelta: Number,
}

So I get some app crash reports occasionally and wondering how I can fix it. By the way, how do you know from my error log that it's due to animateToRegion? I couldn't tell which method was causing it from the log

I just looked at the AirMapManager.java at the correct line, and it refers to the animateToRegion call

Ah I see, thanks. However, I still can't figure out exactly why the error is thrown as region is passed correctly

I would advise you to use the region/initialRegion property instead of animateToRegion method.

@foyarash to the contrary. Use animate to region. Just update to the latest. See #209.
This is fixed already.


Confusion for users: Initial conditions vs Pressure

When I asked a student to change the pressure for the Chapman example, they changed the value in the "Initial conditions" page, without recognizing that the data specified there is overwritten by the data in the ENV-pressure data from the "Evolving" tab.
I wonder @mattldawson @s-omas if we need a better warning for people.
Your thoughts?

We could only have evolving conditions. Initial conditions would just be evolving conditions with a single time step.

Moved to validation.


Issue with Deconvolution3D

Hi,
I am trying to run this segment of code from the Deconvolution3D example:
model = Sequential()
model.add(Deconvolution3D(3, 3, 3, 3, output_shape=(None, 3, 14, 14, 14), padding='valid', input_shape=(3, 12, 12, 12)))
but am experiencing this error "TypeError: init() got multiple values for keyword argument 'output_shape'". Is this a bug?
Thank you!

Same issue

Does anybody know how to make this work?

OK got it: You have to pass the filters and kernel_size arguements like this: Deconvolution3D(3,(3,3,3),...

Could you add a simple Deconvolution3D example to the examples/ directory? This would be a great first pull request!

from keras.layers import *
Deconvolution3D(number_of_filter, kernel_size=(2, 2, 2), padding='same', data_format = 'channels_last',strides=(2, 2, 2))(last layer)
I used the above code, it works for me.


Request durations too large

I'm seeing request durations (request_end - request_start) of multiple seconds for sub-second page refreshes in browsers, but not curl.
That metric seemed like best measure of true response time (as noted in original elli sources).
What is going on?
Here's the prometheus.erl code:
handle_event(request_complete,
             [Req, ResponseCode, _ResponseHeaders, _ResponseBody,
              {Timings, _Sizes}],
             _Config) ->
    prometheus_counter:inc(http_requests_total,
                           [ResponseCode, rawpath(Req)]),
    Start = proplists:get_value(request_start, Timings),
    End = proplists:get_value(request_end, Timings),
    NativeDelta = End - Start,
    io:format("handle_event: ~p  ~p  ~p~n",
              [ResponseCode,
               erlang:convert_time_unit(NativeDelta, native, micro_seconds),
               rawpath(Req)]),
    prometheus_histogram:observe(response_time_in_microseconds,
                                 [rawpath(Req)], NativeDelta),
    ok;

the Erlang interpreter output:
handle_event:<PHONE_NUMBER>  <<"/hello/world">>
handle_event:<PHONE_NUMBER>  <<"/metrics">>
handle_event:<PHONE_NUMBER>  <<"/metrics">>
handle_event:<PHONE_NUMBER>  <<"/hello/world">>

and if I use curl instead, I get output like this:
handle_event: 200  1409  <<"/hello/world">>
handle_event: 200  112  <<"/hello/world">>
handle_event: 404  100  <<"/hmetrics">>
handle_event: 200  6334  <<"/metrics">>
handle_event: 200  6614  <<"/metrics">>

Chrome also is high:
handle_event: 200  183414  <<"/hello/world">>
handle_event: 404  350253  <<"/favicon.ico">>
handle_event:<PHONE_NUMBER>  <<"/metrics">>
handle_event:<PHONE_NUMBER>  <<"/metrics">>
handle_event:<PHONE_NUMBER>  <<"/metrics">>

If I revert to old Elli (https://github.com/knutin/elli.git), change {Timer, Size} back to Timer and use timer.now_diff(End, Start), then I get durations as I expect when using a browser:
handle_event: 200  4  <<"/metrics">>
handle_event: 200  3  <<"/metrics">>
handle_event: 200  0  <<"/hello/world">>
handle_event: 200  4  <<"/metrics">>

Is this change in behavior from 1.0.3 to 2.0.0 expected?

/cc @deadtrickster

Also, @deadtrickster, we should add this explanation to the docs, either in the metrics middleware or the overview or whatever. (Will edit with links)

Interesting.
First of, /hello/world actually sleeps for a second (I'm using it in tests I remember)
Secondly, accepted and request_start times are sometimes from the past (Not sure how to describe it -
chrome says request took 1 second):
Timings: [{body_end,-576460727621513106},
          {request_end,-576460726619683576},
          {send_end,-576460726619684018},
          {headers_end,-576460727621531624},
          {user_start,-576460727621511925},
          {body_start,-576460727621513886},
          {send_start,-576460726619751786},
          {headers_start,-576460727621545677},
          {user_end,-576460726619760547},
          {accepted,-576460745295921216},
          {request_start,-576460741810312433}]
Accepted/request_end: 200  18676  [<<"hello">>,<<"world">>]
Request_start/end: 200  15190  [<<"hello">>,<<"world">>]
headeres_start/request_end: 200  1001  [<<"hello">>,<<"world">>]

Another try:
Timings: [{body_end,-576460745295829184},
          {request_end,-576460744292795662},
          {send_end,-576460744292796007},
          {headers_end,-576460745295837393},
          {user_start,-576460745295827230},
          {body_start,-576460745295829934},
          {send_start,-576460744292866437},
          {headers_start,-576460745295847688},
          {user_end,-576460744292877688},
          {accepted,-576460745295921216},
          {request_start,-576460745295912920}]
Accepted/request_end: 200  1003  [<<"hello">>,<<"world">>]
Request_start/end: 200  1003  [<<"hello">>,<<"world">>]
headeres_start/request_end: 200  1003  [<<"hello">>,<<"world">>]

1 second!
Can't reproduce with curl too :-)
o_O

Keep alive?

elli_http.erl handle_request
  t(request_start),
  Start = erlang:monotonic_time(),
  {Method, RawPath, V, B0} = get_request(S, PrevB, Opts, Callback),
  End = erlang:monotonic_time(),
  io:format("Raw: ~p~n", [erlang:convert_time_unit(End - Start, native, milli_seconds)]),
  t(headers_start),

when request comes from curl Raw is "always" zero.
when first request comes from browser Raw is "always" zero
seconds and following requests from browser (keep-alive) - Raw is non zero

How I thought this could work
Accept - socket accept timestamp
Keep alive loop
Request Start - first byte received
Headers Start - HTTP request line received
Headers End - HTTP headers received
Request End
but get_request actually collapses first_byte and request line received to the same event

Awesome, thanks @mbucc and @deadtrickster. I'd gladly accept a PR (with tests) to fix this, @deadtrickster. Otherwise I might be able to get to it early next week.

I would like to look at the diff from 1.0.5 to see what caused the change in behavior.

The metrics (timing and now size) handling was completely rewritten. This link should work: https://github.com/knutin/elli/compare/v1.0.5...elli-lib:2.0.0

Namely #10.

Actually I think this would be easy to fix. Right now headers_start can be used instead of request_start.
RE: PR. The idea remains the same - request_start should help to measure time-to-first-byte for the (first KA) request. For the next KA requests - time-to-second-byte (extreme example - very slow client sends one byte per second). If request is not the first, we set request_start when first byte received.
What if client's intent is to connect and wait?

Looks like the order of calls changed with that #10 patch:
old:
-    {Method, RawPath, V, B0} = get_request(S, PrevB, Opts, Callback), t(request_start),

new:
+    t(request_start),
+    {Method, RawPath, V, B0} = get_request(S, PrevB, Opts, Callback),

Ok, now when this error mentioned in blog post, we can fix it :-)


Shoes gems not bundled in jar after the big gem bust-out

See shoes/shoes4#969.
The jar only contains these gems. Notably missing: shoes, shoes-core, shoes-swt
specifications/
specifications/after_do-0.3.1.gemspec
specifications/bundler-1.7.7.gemspec
specifications/furoshiki-0.2.0.gemspec
specifications/jruby-jars-<IP_ADDRESS>.gemspec
specifications/jruby-rack-1.1.16.gemspec
specifications/nokogiri-<IP_ADDRESS>-java.gemspec
specifications/plist-3.1.0.gemspec
specifications/rake-10.4.2.gemspec
specifications/rubyzip-1.1.6.gemspec
specifications/shoes-highlighter-1.0.0.gemspec
specifications/shoes-manual-4.0.0.gemspec
specifications/swt-4.4.gemspec
specifications/warbler-1.4.4.gemspec

I thought (though I could be wrong) that in Shoes 3, you can always press Cmd-M (or Ctrl-M, I always forget) and see the manual. But maybe not. In any case, I agree, that's not a common use case with a packaged app, and you could always include it in your package (though we should probably at least test that it works). I guess that's more for packaging the Shoes GUI itself.
By .apps, I mean packaging your Shoes app as a Mac application with the extension .app. I mention that only because it has worked in the past.

I thought (though I could be wrong) that in Shoes 3, you can always press Cmd-M (or Ctrl-M, I always forget) and see the manual. But maybe not. In any case, I agree, that's not a common use case with a packaged app, and you could always include it in your package (though we should probably at least test that it works). I guess that's more for packaging the Shoes GUI itself.
By .apps, I mean packaging your Shoes app as a Mac application with the extension .app. I mention that only because it has worked in the past.

I'm closing up here as @jasonrclark suggested - we can take the discussion elsewhere I guess. For what it's worth I'm also torn about including the manual by default - it could be worth dropping as it's not a common use case but it IS vintage shoes behavior.

I'm closing up here as @jasonrclark suggested - we can take the discussion elsewhere I guess. For what it's worth I'm also torn about including the manual by default - it could be worth dropping as it's not a common use case but it IS vintage shoes behavior.


[Makefile/docker-compose.yaml] set SOURCE_BRANCH

This was (accidentally?) removed in daf86eed8

Can you please add something like this to docker-compose as well
build:
      context: .
      dockerfile: files/docker/Dockerfile.worker
      args:
        SOURCE_BRANCH: master

In service and worker

I'm also wondering weather it would make sense to have a default of master in the Dockerfiles.... it's weird when someone builds directly with docker and then finds out that there was a required build argument.

I'm also wondering weather it would make sense to have a default of master in the Dockerfiles

I don't know why @sakalosj  explicitly fails on SOURCE_BRANCH being empty, so I'd rather let him answer this.
As I said, this is just a hotfix to unblock @IceWreck

I'm also wondering weather it would make sense to have a default of master in the Dockerfiles

I don't know why @sakalosj explicitly fails on SOURCE_BRANCH being empty, so I'd rather let him answer this.
As I said, this is just a hotfix to unblock @IceWreck

@jpopelka @IceWreck @csomh @TomasTomecek
I decided to not default to any value is to avoid situations when because of some error or misconfiguration we can end up deploying master also to prod environment. From my perspective, this behavior is oriented toward automation - we should never achieve state when SOURCE_BRANCH is not defined.
My suggestion is to implement a check if SOURCE_BRANCH is defined into Dockerfile so it fails fast if not defined and implement this into Dockerfile too, but I am open to any solution.


plantuml rendering is not taking into account group in the components view

a minimal exemple to reproduce :
workspace "test grouping" {
    model = {
        softwareSystem = softwareSystem "group system"{
            generalContainer = container "general container"{
                c1 = component "c1"
                grp = group "my group"{
                    c2 = component "c2"
                    c3 = component "c3"
                }
            }
        }
    }
}

if i generate the plantuml export, the group in the component view is not created.
package "general container\n[Container]" {
  rectangle "==c1\n<size:10>[Component]</size>" <<3>> as 3
  rectangle "==c2\n<size:10>[Component]</size>" <<4>> as 4
  rectangle "==c3\n<size:10>[Component]</size>" <<5>> as 5
}

While if i'm using the online generator it is :
package "general container\n[Container]" <<2>> {
  skinparam PackageBorderColor<<2>> #444444
  skinparam PackageFontColor<<2>> #444444

  package "my group\n[Group]" <<group>> {
    rectangle "==c2\n<size:10>[Component]</size>" <<4>> as 4
    rectangle "==c3\n<size:10>[Component]</size>" <<5>> as 5
  }

  rectangle "==c1\n<size:10>[Component]</size>" <<3>> as 3
}

This will be included in the next CLI release - see https://github.com/structurizr/java-extensions/issues/48
(the online version is using the new version already, which is why they are different)

When the new CLI version will be released?


Add support for Private Link

Link to approved swagger PR: https://github.com/Azure/azure-rest-api-specs/pull/11193

@markcowl I have fixed the failing tests. All checks have passed.


BUG: SQL SERVER 2017 upgrade to Python 3.7

I have posted this to stackoverflow and also to MS Q&A but no response.
In short - Python 3.7 is looking for a DOMAIN\SERVERNAME$ in the code. Domain being the local domain name of the business I consult to and  SERVERNAME$ is the name of sql server. This is not a service account (which are not part of the domain). I think MS have left some debug code in their product release
https://stackoverflow.com/questions/71080513/error-communicating-between-bxlserver-and-client
https://docs.microsoft.com/en-us/answers/questions/732610/error-communicating-between-bxlserver-and-client.html#answer-732758

@BGW1001 -- thank you for your research and feedback.  Please consider this resource as well:

DBA Stack Exchange

@WilliamDAssafMSFT -- William, please look into this issue.  It may be related to:

3. Failure to initialize a varbinary variable causes an error in BxlServer

Hi William. I will post on DBA Stack exchange as well as stack overflow.
It is not the issue with the second point...
this script fails.
DECLARE @py NVARCHAR(MAX)
PRINT '-------------------------TEST1----------------------------------------'
SELECT @py='
a = 1
b = 2
c = a/b
d = a*b
print(c, d)
'
EXECUTE sp_execute_external_script @language = N'Python', @script =@py
Deliberately chose the most basic operation.
Let me know if you need some error logs

Hi @BGW1001 If this is a product question, this needs to go to: http://aka.ms/sqlfeedback. This space is for documentation issues. However, I believe Python 3.5 is the only supported version of Python for SQL 2017, and upgrading the Python version is not supported. From: https://docs.microsoft.com/sql/machine-learning/package-management/python-package-information?view=sql-server-2017&WT.mc_id=twitter-0000-sqldocs#default-open-source-python-packages

You should never manually overwrite the version of Python installed by SQL Server Setup with newer versions on the web.

Hi @WilliamDAssafMSFT,
Not correct - sql server 2017 does support python 3.7. This is a microsoft install
https://docs.microsoft.com/en-us/sql/machine-learning/install/change-default-language-runtime-version?view=sql-server-2017
I posted this as a bug. Not as a documentation issue.
Regards
Ben

Ok, not clear from your posts elsewhere, but you used RegisterRExt to change the version of Python, not an external installation of Python, correct?
Regardless, as this is a product question/bug, this needs to go to: http://aka.ms/sqlfeedback.  This space here is for documentation issues.

That is correct. Posted on http://aka.ms/sqlfeedback.


[BEAM-3184] Added ProxyInfoFromEnvironmentVar() & GetNewHttp() methods for GCS

This PR meant to fix BEAM-3184 "Not able to access GCS API when submitting Python jobs behind corporate firewall".
Added ProxyInfoFromEnvironmentVar() & GetNewHttp() methods to get proxy environment settings in gcsio.py module in Python SDK, this is to add methods to pick up proxy settings from environment variables in the httplib2 library, allowing to submit jobs from behind a corporate proxy by connecting to GCS buckets.
Note: These methods are based from GCP gsutil Python tool.

SUCCESS
--none--

FAILURE
--none--

FAILURE
--none--

SUCCESS
--none--

FAILURE
--none--

SUCCESS
--none--

SUCCESS
--none--

FAILURE
--none--

SUCCESS
--none--

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
[ ]  Each commit in the pull request should have a meaningful subject line and body.
[ ]  Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[ ]  Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ]  Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ]  If this contribution is large, please file an Apache Individual Contributor License Agreement.

@charlesccychen @chamikaramj hope is good now for your review.
Thanks.

@charlesccychen ready for your review!
Thanks.

R: @charlesccychen


New Destination Partner - Perkville docs

Proposed changes

Adding docs to onboard new partner - Perkville

Merge timing

ASAP once approved?

Hi @charholt. The last thing we need before we can add this doc is to set the destination status in Partner Portal to either Public Beta, or Public. Once that's set, we'll remake the catalog and merge. Thanks!

Hi @markzegarelli!
I have set the destination status to Public Beta. Thanks so much!

Thanks @charholt. One more thing we need, in order for this to appear in the docs catalog (maybe the app catalog as well, I'm not sure), is at least one Category value. Can you add this through Partner Portal as well?

@markzegarelli I've added the category in partner portal. Thanks!


Chrome not allowing me to install the extension

I dragged the extension to the extensions page as described in the README, but the enable button is dimmed out, and it says "Not from the Chrome Web Store". I don't see any way to enable it.
If there is some way to enable this extension (ideally without making my Chrome completely insecure), please update the README. Otherwise, why isn't this on the Chrome Web Store? I want to be a Cloud to Butt purist, but this makes it difficult.

Oh, right, they recently removed the ability to sideload extensions, didn't they? Ugh..
I'm probably too lazy to register for a signing certificate or whatever I have to do to get it in the Chrome Store. Anyone want to do it for me?  :)

@panicsteve I can throw it up on the chrome store for you if no one has already.

Sure, if you want to? And just point people back here for support, etc.


How to include IOKit framework

sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern

sudo cp -r /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/IOKit.framework

You're welcome.

after running the first command:
sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern
i get this error
cp: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h: No such file or directory

You are probably on Xcode 9 or 10.
Try
sudo xcode-select -s <path-to-xcode-8>
sudo cp `xcode-select -p`/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h `xcode-select -p`/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern


Delete old data from Firebase

Currently the Firebase app for uProxy tells us that we are at 7.61 GB of total data stored.  This seems like way too much for the number of users we have.  We should look into what all this data is an how to clean it up.
Some things to look into:

are we deleting clients and their associated inboxes once they sign offline?
are we deleting messages after they are received?

The dashboard may load faster if there's less data.


Support Jaeger Integration Protobuf format data via gRPC

I include the change of https://github.com/wavefrontHQ/wavefront-proxy/pull/526 since that one is not merged yet, but required in this PR as well.


[Admin] Years less than 1000 in 'Роки' field is displayed with '0' - 0523

Environment: OS: macOS Ventura 13.4.1
Browser: Google Chrome Version 114.0.5735.198
Reproducible: always
Build found: d494c37
Priority: Low.
Severity: Trivial.
Type: UI.

Login as admin.

Steps to reproduce

Click on 'Новий стріткод'.
Fill in all mandatory fields with valid data.
In field 'РОКИ' select format year-month and enter '523' - '10 липня 2023'.
Scroll down and click 'Опублікувати'.

Actual result
The date before 1000 is displayed as with '0' - 0523.

Expected result
The date before 1000 is displayed as 523.
User story: #115
Test case: #412

The date is displayed correctly


nob controller: watch all secondary resources

Requeue NodeObservability if any of its secondary resources is touched. SCC, service and serviceaccounts were missing.
SCC update function was changed to disregard the order of some fields (saw the fight with OpenShift defaulting).
DaemonSet volumesChanged function was changed to disregard defaultMode field (saw the fight with OpenShift defaulting).

SCC:
$ oc logs deploy/node-observability-operator-controller-manager -c manager | grep -c 'updated securitycontextconstraints'
0

$ oc patch scc node-observability-agent --type='json' -p='[{"op": "replace", "path": "/allowPrivilegedContainer", "value":false}]'
securitycontextconstraints.security.openshift.io/node-observability-agent patched

$ oc logs deploy/node-observability-operator-controller-manager -c manager | grep -c 'updated securitycontextconstraints'
1

Service:
$ oc get svc node-observability-agent
NAME                       TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)    AGE
node-observability-agent   ClusterIP   None         <none>        8443/TCP   162m

$ oc logs deploy/node-observability-operator-controller-manager -c manager | grep -c 'updated service'
0

$ oc patch svc node-observability-agent --type='json' -p='[{"op": "replace", "path": "/spec/ports/0/port", "value":9999}]'
service/node-observability-agent patched

$ oc logs deploy/node-observability-operator-controller-manager -c manager | grep -c 'updated service'
1

ServiceAccount:
$ oc get sa node-observability-agent
NAME                       SECRETS   AGE
node-observability-agent   1         156m

$ oc logs deploy/node-observability-operator-controller-manager -c manager | grep -c 'created serviceaccount'
0

$ oc delete sa node-observability-agent
serviceaccount "node-observability-agent" deleted

$ oc logs deploy/node-observability-operator-controller-manager -c manager | grep -c 'created serviceaccount'
1

/retest

There are no nodes that your pod can schedule to - check your requests, tolerations, and node selectors (skip schedule deleting pod: ci/5d7973bb-4986-11ed-978f-0a580a82414f)

/retest

/lgtm

/label docs-approved
/label px-approved
Updates to internal logic of watching for secondary resource. Docs and px review not required.

/assign @sunilcio

/label qe-approved


How can I get transaction id

how can I get txid after signing and broadcasting TRX and token transactions ?

        var transactionSigned = transactionClient.GetTransactionSign(transaction.Transaction, privateKey);

        var result = await transactionClient.BroadcastTransactionAsync(transactionSigned);

        var txid = transactionSigned.GetTxid();


Doesn't support files?

The tool errors out if I copy a file/files to the clipboard and then run "clipboard.exe --paste".
Is this just not supported?

What should the utility do in this case?


Update reference to config.inline configuration of chart in documentation

https://metallb.universe.tf/installation/ mentions config.inline which doesn't exist in the list of configuration values at https://github.com/helm/charts/tree/master/stable/nginx-ingress
It seems that there's a mismatch in the ConfigMap name in https://kubernetes.github.io/ingress-nginx/deploy/baremetal/ as well. There it says config whereas at https://metallb.universe.tf/installation/ it says metallb-config.

#476 fixes the second part of your issue.

Is that still valid? I don't see what this relates to.


Restore-AzOperationalInsightsWorkspace instead of New-AzOperationalInsightsWorkspace

In the PowerShell example provided to Recover a deleted Log Analytic Workspace, the command "New-AzOperationalInsightsWorkspace" is used. This should be "Restore-AzOperationalInsightsWorkspace".

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

ID: 7535b249-202f-2208-f718-68680e3ffb43
Version Independent ID: 221a6617-c941-13f7-4ef2-f146e33d20a4
Content: Delete and recover Azure Log Analytics workspace - Azure Monitor
Content Source: articles/azure-monitor/logs/delete-workspace.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @bwren
Microsoft Alias: bwren

@PCNZ Thanks for your comment! We will review and provide an update as appropriate.

@PCNZ As per this, New-AzOperationalInsightsWorkspace cmdlet also restores a soft-deleted workspace so technically we need not update the document but to avoid any confusion I have verified and updated the document as per your feedback. The change will go live in less than 24 hours. Thanks again for sharing the feedback.


Support nonconsecutive counter values

Overview / Motivation
We want to allow accounts to skip counters values (for e.g. if an account issued a tx with a low fee and doesn't want to increase the fee but do want to send more txs)
The Task
When validating a tx, we must verify that the tx's counter is higher the current counter but not necessarily next in order.
Implementation Notes
TODO: Add links to relevant resources, specs, related issues, etc...
Contribution Guidelines
Important: Issue assignment to developers will be by the order of their application and proficiency level according to the tasks complexity. We will not assign tasks to developers who have'nt introduced themselves on our Gitter dev channel

Introduce yourself on go-spacemesh dev chat channel - ask our team any question you may have about this task
Fork branch develop to your own repo and work in your repo
You must document all methods, enums and types with godoc comments
You must write go unit tests for all types and methods when submitting a component, and integration tests if you submit a feature
When ready for code review, submit a PR from your repo back to branch develop
Attach relevant issue to PR

we will revise tx creation and crate tasks accordingly


Taps Deleted Everything

So I just discovered taps and thought it was a great way to pull data from heroku and edit stuff locally. So I used heroku db:pull to get the database and that worked fine.
When I was finished making changes, I decided to push it. So I typed in heroku db:push. I got no errors nothing, it did mention, sending data 10 tables, 27 records, even though the database has at least 500 records.
After that finished, it printed Resetting sequences and all my data was lost on heroku and locally.
 I'm not sure if I did something wrong but why would it delete everything locally if I was pushing?

Ok I found the issue. If the database schema is not the same on heroku it deletes all data. Just db:migrate before pushing


Update SpriteIDs for revision 170

7 new additions:

ORB_OF_OCULUS_KEYBOARD_BUTTON = 1569;
ORB_OF_OCULUS_KEYBOARD_ARROW = 1570;
OPTIONS_RESIZEABLE_MODE_SCROLLBAR_POSITION = 1571;
...
ORB_OF_OCULUS_KEYBOARD_BUTTON_EDGE_LEFT = 1612;
ORB_OF_OCULUS_KEYBOARD_BUTTON_MIDDLE = 1613;
ORB_OF_OCULUS_KEYBOARD_BUTTON_EDGE_RIGHT = 1614;
...
RAIDS_CHALLENGE_MODE_ICON = 1627;

5 renames due to discovery:

TEXTURE_COBBLESTONE to TEXTURE_HOSIDIUS_COBBLESTONE
TEXTURE_POLISHED_TIMBER to TEXTURE_HOSIDIUS_WOODEN_FLOOR
SLAYER_REWARDS_AND_POLL_HISTORY_BUTTON to DIALOG_HEADER_BUTTON
SLAYER_REWARDS_AND_POLL_HISTORY_BUTTON_SELECTED to DIALOG_HEADER_BUTTON_SELECTED
UNUSED_TAB_LOGOUT_1191 to WORLD_SWITCHER_LOGOUT

The other 16 renames in this commit are just for consistency, eg. changing UP_ARROW to ARROW_UP for easier autocompletion of other arrow directions. None of these ids are used in the codebase yet.

Rebased on post-deob history.


[Site]: Can not access to two important link

Current State
Description of the current state/issue:
Click the links as follows and you will know.
Link to the page:
https://apisix.apache.org/docs/apisix/FAQ/#:~:text=You can find more answers on%3A
Screenshots (if relevant):

Desired State
Description of the change you are proposing:
you know what I want~
Would you like to fix this issue?
No response

Hi @Chever-John ,

All links in this sections work out just fine, I checked them just now.

This is related to APISIX's main repo, as the sources are in there. Even if this is really an issue, you should open it there.

@yzeng25 Hi~
An interesting discovery, when I "ctrl + click" the link, everything is OK. However when I just click on this link, the problem arises.

Nope, both ways are working well.
And I don't see anything wrong in the source file.

@Chever-John ok it works in the next version but not in the 2.14 version.

Yeah, I have no problem now.
Thanks so much~


Added StringUtility.

Description
Closes #8.
Added the following functionalities:

String repeat.
Word frequency distribution.
Character frequency distribution.
String distances.

Hamming
Jaccard index
Jaro
Levenshtein
Sorensen dice

Length of longest common subsequence.

Author's Checklist

[x] These changes don't break existing dependants. If they do, and you suggest to proceed,
please explain why.

Reviewer's Checklist

[ ] All classes have documentation comments.
[ ] All methods have documentation comments.
[ ] No parameters are hardcoded. Should be loaded as properties instead. If there needs to be hardcoded properties, explain why.
[ ] All information to be logged/displayed to the user are internationalized. If not, explain why.
[ ] README.md has been updated if needed.
[ ] pom.xml version is set to the latest date If not, explain why.

Assignee's Checklist

[ ] All GitHub action checks have passed.
[ ] All reviewers have approved.
[ ] Relevant documentation has been updated if needed.
[ ] pom.xml version is set to the latest date If not, explain why.

The following are yet to be fixed:

[ ] Code coverage.
[ ] Documentation comments.


Create a CLI

We probably can't use the CF cli for all operations so we should just create a cli for just the user facing service related operations we're going to support.

I'm going to be working on a CLI for at least the operations the service controller API supports right now.

FYI @vaikas-google

FYI, I have a simple CLI showing how it would look like with Cobra. Take a look and let me know your thoughts, it handles much of the cruft for us for free and is quite neat.

FYI, I'm going to be adding more complete API commands this week. Just wanted to make sure nobody else was working on it also :)

@vaikas-google if you mean in the cli side, it's all yours. ping me if you want a review of something, even if it is incomplete.

I'd like to close this because I think the CLI is there. It's not complete, but I'd rather have smaller issues tracking specific items left to do?

SGTM, I'd love to see more service instance operations than create :)


Failed to execute goal on project mr2es

master:  mvn clean package -Dmaven.test.skip=true -Ppro
[ERROR] Failed to execute goal on project mr2es: Could not resolve dependencies for project com.didi.bigdata:mr2es:jar:1.0.0: Could not find artifact org.apache.hadoop:hadoop-client:jar:2.7.2-2312 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

branch master

go to mr directory, and run mvn clean package -Dmaven.test.skip


[EventRequest] Codeunit 99000774 - Function CalculateRoutingLine

We need a new Publisher "OnBeforeCalcExpOperOutput" with Handler in function CalculateRoutingLine in codeunit 99000774.

Thanks

Please add 2 more Publisher in function CalculateRoutingLine:

In BC14.3 the requested Publisher with the "Handled-Pattern" is available now, but
the 2 requested Publishers "OnBeforeCalcCostInclSetup" and "OnAfterCalcCostInclSetup" are still missing! Can you please give me an update what happened here with the missing requests? Thanks


Fix pdf reference page for errors #200

Because the latest version is the JA version dated April 27, 2023, we will use this version of information as a reference in the future.
Description
Related Issue:  #200
Pre-commit steps

[x] Tested on QEMU and real HW Rasperry Pi.

Not needed if it is just a README change or similar.

[ ] Ran ./contributor_setup.sh followed by ./devtool ready_for_publish

You'll need Ruby with Bundler and NPM installed locally.
If no Rust-related files were changed, ./devtool ready_for_publish_no_rust can be used instead (faster).
This step is optional, but much appreciated if done.

I have noticed that there are 12 files in the Ruby file that did not pass the Github CI check.


Wifi Co-Processor Support?

Using the wsgi module for the time being, but the performance is a bit slow.
Using Adafruit RP2040 Adalogger with CircuitPython version: 9.1.4, adafruit_esp32spi version: 7.1.0, adafruit_wsgi version: 2.0.3.
Any suggestions or recommendations for a solution would be appreciated.
Copying this from an old issue #86 .

Seeing the same issue and would like to throw my support behind some resolution.
Using the Adafruit RP2040 Adalogger with CircuitPython version: 9.1.4, adafruit_httpserver version 4.5.9, and adafruit_esp32spi version 8.4.2.
Adafruit RP2040 Adalogger and AirLift Wifi FeatherWing Co-Processor are connected via a FeatherWing Tripler.
I got the httpserver started, but cannot access the endpoint from my laptop, but can ping the ip address of the microcontroller from my laptop.
Httpserver started with the addition of wrapper classes:
import board
import busio
from os import getenv
from digitalio import DigitalInOut
import adafruit_connection_manager
import adafruit_requests as requests
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_socketpool as SocketPool
from adafruit_httpserver import Server, Request, Response

secrets = {
    "ssid": getenv("WIFI_SSID"),
    "password": getenv("WIFI_PASSWORD")
}

esp32_cs = DigitalInOut(board.D13)
esp32_ready = DigitalInOut(board.D11)
esp32_reset = DigitalInOut(board.D12)

spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset)

pool = adafruit_connection_manager.get_radio_socketpool(esp)
ssl_context = adafruit_connection_manager.get_radio_ssl_context(esp)
requests = requests.Session(pool, ssl_context)

esp.connect_AP(secrets["ssid"], secrets["password"])

pool = SocketPool.SocketPool(esp)

old_socket = SocketPool.Socket(pool)

class socket:
    def __init__(self, AF_INET, SOCK_STREAM):
        self.AF_INET = AF_INET
        self.SOCK_STREAM = SOCK_STREAM

    def __call__(self, AF_INET, SOCK_STREAM):
        return self

    def setsockopt(self, level: int, optname: int, value: int):
        return (level, optname, value)

    def bind(self, values: tuple):
        return (values)

    def listen(self, value: int):
        return value

    def setblocking(self, value: bool):
        return value

    def settimeout(self, value: float):
        return value

    def accept(self):
        conn = my_socket
        sock_num = 1
        sock = old_socket._interface.get_remote_data(sock_num)
        addr = self.bind((sock['ip_addr'], 80))
        return (conn, addr)

    def recv_into(self, buffer: bytearray, nbytes: int = 0):
        return old_socket.recv_into(buffer, nbytes)

    def close(self):
        return True

class My_Socket_Pool:
    def __init__(self, pool, socket):
        self.pool = pool
        self.socket = socket

    def getaddrinfo(self, host, port):
        return (host, port)

    def AF_INET(self):
        return self.pool.AF_INET

    def SOCK_STREAM(self):
        return self.pool.SOCK_STREAM

    def SOL_SOCKET(self):
        return 1

    def SO_REUSEADDR(self):
        return 4

my_socket = socket(pool.AF_INET, pool.SOCK_STREAM)
my_socket_pool = My_Socket_Pool(pool, my_socket)

server = Server(my_socket_pool, "/static", debug=True)

@server.route("/test")
def base(request: Request):
    return Response(request, "test worked")

server.serve_forever(str(esp.pretty_ip(esp.ip_address)), 80)

@eshawveratdirigible Given Dan's comment in #86, I think it makes more sense for an issue in ESP32SPI, rather than a duplicate open issue here. Related: https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/issues/203

Thanks for your quick response. This issue can be closed. I'll look for solutions in the other library repository.


ERROR: APP brings another app previously open like skype or whatsapp

Hello, I am facing a problem with this API, the foreground function brings another app to the foreground not the app which has the background plugin, please your help

same issue here...

it actually brings to foreground the last app used. not the app on which background plugin has been installed


MAINT:optimize: shgo assorted fixes

Closes #15514
Closes #16971
This PR:

allows constraint functions to return more than 1 value, thereby closing #15514.
fixes parallelisation (Pools weren't being released, not all map-like callables could be used for workers). Parallelisation resources are definitively released via the context manager. All map-like callables can be supplied to workers. Parallelisation is tested in greater depth.
NonlinearConstraint, LinearConstraint can now be used in shgo. (via optimize._minimize.standardize_constraints)
If trust-constr is used as a local minimizer the top level constraints are automatically passed to minimize unless overwritten in minimizer_kwargs. minimize should automatically take care of constraint interconversion.
documentation for the above has been updated.
also contains fixes for #16971

@Stefan-Endres internally the SHGO class initialisation does some processing of constraints when it's being setup.
The original constraints (self.min_cons) are still passed to the local minimiser, but a processed version is stored in self.g_cons that have had all the equality constraints removed. Is there a reason why equality constraints have to be removed?

Let's get this in. CI is happy and we still have time to adjust things before the release. Thanks again Andrew 😃


ci: add pep8-naming check to flake8 and ignore a bunch of warnings

Purpose
Add pep8-naming check to flake8, so it is run by tox locally and in github.
See https://github.com/Breakthrough-Energy/RenewableEnergyProject/issues/343
What the code is doing
In this case, we ignore almost all the warnings. Note: adding the noqa on some lines also caused black to reformat into multi line declarations, which in turn requires moving the noqa back to the first line in that group. Hopefully we don't have to do this a lot.
Testing
tox -e flake8
Time estimate
5 min

@lanesmith can we come up with some more descriptive variable names for the cost curve visualizations?

@lanesmith can we come up with some more descriptive variable names for the cost curve visualizations?

@danielolsen, yeah certainly. What's the best way for me make those additions to this PR? Should I just checkout this branch?

@danielolsen, yeah certainly. What's the best way for me make those additions to this PR? Should I just checkout this branch?

I suggest that you check out this branch, create a new branch of your own with your commit(s), and push that. Then @jon-hagg can cherry-pick your commits into this branch when ready, and there's no risk of conflicts.

@jon-hagg, I've finished updating the variable names for the cost curve visualization. The updates are in the branch lane/cost_curves_refactor. Let me know how you would like to proceed with this.

@jon-hagg, I've finished updating the variable names for the cost curve visualization. The updates are in the branch lane/cost_curves_refactor. Let me know how you would like to proceed with this.

Thanks @lanesmith, probably the easiest way would be to create a PR to this branch, which (when merged) will effectively append your commits to the current PR.


Update to config_v5.json format

We are using now the new config_v5.json format. There are some breaking changes in that (structure modified).
Originally posted by @laliconfigcat in https://github.com/configcat/elixir-sdk/pull/2#discussion_r506365292

@laliconfigcat could you give us some guidance on this one regarding on what to expect for this one?

Discussion here: https://configcat-community.slack.com/archives/C01CN2YNWGK/p1603105539002700


Support for Asciidoc source in addition to Markdown.

Using asciidoctor.js https://docs.asciidoctor.org/asciidoctor.js/latest/ to process source files to HTML, similar to the Markdown process now.

Here is a simple demo site of AsciiDoctor.js in a SvelteKit site. https://gitlab.com/zivbk1/sveltekit-asciidoc


Connecting definitions for typing (TypeScript)

Using other libraries in typescript, it seems the standard post TypeScrpt 2.0 is to do something like
npm install google-closure-library @types/google-closure-library

if the types aren't shipped with the library itself. But this doesn't work as @types/google-closure-library is not registered on npm.

Checking out #789, it seems there are two definition files floating around (1, 2), but they have yet to be merged into DefinitelyTyped.  Both of these haven't been updated in ~3 years.
There was a failed PR into DefinitelyTyped back in early 2016.

At the end of the day, I guess I have 2 questions:

What's the suggested way for including google-closure-library type definitions in my TypeScript project right now?
How could we help get these types into the DefinitelyTyped repo?

Note: there was a failed PR to DefinitelyTyped back in early 2016

Note: There is a @types scoped package for google-closure-compiler

It looks like the author of one of the definitions files has an npm package for using types here with slightly awkward usage:
// Import index.ts to load type information of Closure Library.
import closure = require('./node_modules/closure-library.ts/index');
// Call register() to enable `goog.requrie()`.
closure.register();
// Then `googl.require` returns the namespace!
var Queue = goog.require('goog.structs.Queue');
// Type information of Closure Library is available in TypeScript.
var q = new Queue<number>();

FYI I've managed to auto-generate .d.ts files by https://github.com/angular/clutz. Although, I had to fix few problems by hand.

I don't know anything about @types - how are these typically kept up to date?  What problems did you need to fix by hand?

There was a list of around 7-10 changes I had to make. I thought I've pasted it in clutz issue tracker but cannot find it.
Most of them where related to wrong encapsulating. There was also a problem of incorrect inheritance transpiling for goog.Promise type (this one took me longer to figure out).
You can find the closure.d.ts file here:
https://stackoverflow.com/questions/47074867/closure-compiler-failed-to-load-a-closure-library-module
I can prepare diff if your are interested (have original and modified file at home PC).

For reference, there now is an active fork of an up-to-date version of the Closure library that has
Typescript definition (.d.ts) files
uses ES6 code instead of the custom goog.require, goog.define etc:

https://github.com/DreierF/ts-closure-library

Thanks for the tip.  That's helpful to be aware of.
For what it's worth, our thoughts in this area have changed in the last few years.  Internally we use https://github.com/angular/clutz to generate .d.ts, so we're not in a huge hurry, but we are working to extract the "Good Parts" of Closure into TypeScript sources, which will then generate more idiomatic .d.ts and ES modules for NPM, etc.  Since we need to move all of Google's codebase along with us, it's going to be a relatively slow process, but it's an area of active development.

@shicks Hi, I was wondering if any notable progress were made since then(2020).  It would be great to use closure utilities on modern Typescript projects!

This issue is being closed as a preparation step before archiving the repository.  See the README for more detail.


Fix bad import of enums file

Previously the wrong package was used.

Current coverage is 78.01% (diff: 100%)

Merging #505 into master will not change coverage

@@             master       #505   diff @@
==========================================
  Files           222        222
  Lines          8437       8437
  Methods           0          0
  Messages          0          0
  Branches       1131       1131
==========================================
  Hits           6582       6582
  Misses         1556       1556
  Partials        299        299

Powered by Codecov. Last update f1705af...4dea0f8


Extremely poor documentation for az cosmosdb create

None of the parameters are documented on a sufficient level. For example:
--capabilities
Set custom capabilities on the Cosmos DB database account.

Not even a link where I can read further what are these mysterious capabilities.
--kind
The type of Cosmos DB database account to create.

accepted values: GlobalDocumentDB, MongoDB, Parse
default value: GlobalDocumentDB

What is Parse in this context?
--locations
Add a location to the Cosmos DB database account.

Luckily the actual help text (--help) explains how to set a location.

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

ID: abc8d652-2eda-296f-28ea-8d5f1ea855b3
Version Independent ID: 80b87995-d339-61e9-1cac-b5c9ad6efe5e
Content: az cosmosdb
Content Source: latest/docs-ref-autogen/cosmosdb.yml
Service: cosmos-db
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

cosmosdb

cosmosdb

Where are you looking? Can you please post a link to the documentation you are referring to?

As linked in my original message

Those are api reference docs autogenerated from swagger.
Our docs and samples for az cli are in our docs here. This is what most people use.
https://docs.microsoft.com/en-us/azure/cosmos-db/manage-with-cli
And include az cli samples for all 5 database api's.
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-cassandra
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-mongodb
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-gremlin
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-table

Well, Google finds the pages I linked first. Why is it published if it's not good?
Also, the link you provided doesn't explain the parameters I listed either.

All service in Azure that provide az cli functionality publish api reference docs. Same goes for PS, REST, and other management SDK clients. I can't speak to why they showed up first in your Google search. Most customers find our regular docs and use those.
These values and usage for locations and kind parameters are referenced throughout our documentation including quite a number in the links I sent you before. Capabilities parameter meanings are found throughout our documentation that describes the features they enable and are self-explanatory to users who are using those features.

I don't understand the reasoning why the published documentation can't be good. If this is not a documentation that should be looked at, why publish it in the first place? As a user, comment like "you should have found our other documentstion" is kind of unhelpful one — I can't know what I should and should not find.
I also looked again your links and I still fail to find the answers I iterated in my original comment: what are valid options for --capabilities? What do the options in --kind do? They all seem to link back to the API documentation.
I would argue that API documentation, first and foremost, ought to be in tip top shape as it is generally with other tools.

It's published because it is an api reference. It has value for people who know the service and want to use az cli to manage it. It's not intended for people who are new to the service and need help understanding concepts or features.
Not sure how the links do not explain the parameters you are asking about.
Please see this example for what --kind is used for as well as --locations
https://docs.microsoft.com/en-us/azure/cosmos-db/scripts/cli/mongodb/create
As explained earlier, --capabilities are for features that are explained in the area of docs for the features they are for.
Our docs for az cli is not where customers tend to learn about a new service. az cli is a management client. As you seem to be new to the service, please read our conceptual and how-to documentation to learn about the service. This is not unique to Cosmos but is how this works across every service in Azure.
#please-close

API references are documentation as well and this is subpar. You can always link to proper other, existing resources.
#please-dont-close

As explained earlier these docs are auto generated. There is very little control we have over these.
Your comments seem to indicate you may be new to Azure. I appreciate your feedback but I do suggest you get more familiar with things first before disparaging our docs because it was your first hit on Google.
Our api reference docs for az cli is not where people learn about a new service.

I'm not new to Azure and can concur with the original poster that these flags are poorly documented, or at least it is not clear where to find the more complete documentation.

It's funny, I was looking for documentation on how to declare serverless and I did not find any mention of it in Microsoft documentation when searching (with Google or Bing) but both brought me to this issue page instead.  Until then I had never seen the manage-with-cli page that was linked above.  Also this page https://docs.microsoft.com/en-us/azure/cosmos-db/serverless#using-serverless-resources no longer has the word "Portal" in it anywhere but the CLI still does not support serverless configurations.

This is GA now, so there should have been samples written for this as well as PS, templates, bicep, etc.
Will check on this and get these written and published ASAP.
Thanks.

We now have cli samples published in our docs for each database API showing how to provision a serverless account. Example here. https://docs.microsoft.com/en-us/azure/cosmos-db/sql/cli-samples
We have added to our backlog an example which we will publish into our auto-generated docs. I don't have a precise ETA on this but it will go out in our next push.
Thanks.

I'm with OP in that I'd like to see Azure CLI docs with full detail. But I'm one of those crazy Linux people who's used to man pages that tell me everything about the command and it's config files, so what do I know.  ¯\(ツ)/¯ (Simply listing all the parameter values would be helpful, but not sure what your autodoc process can do on that front.)
Meanwhile, for those of us struggling to figure out the Azure CLI options (because PowerShell makes my teeth hurt) it might help to recognize that many of the Azure CLI (and PowerShell, etc.) parameters are based on ARM templates. Searching for the Cosmos DB ARM template docs and searching that page for "capabilities" gets me here where one more link gets me here, which lists options for --capabilities, the meaning of which I can guess given the list.

This post is open for a while but it seems things haven't changed yet.
While going through this tutorial I found --capabilities EnableMongoRoleBasedAccessControl but when going further into the docs there is no additional information found.
A full list of valid options would be highly appreciated.

Those are api reference docs autogenerated from swagger.
Our docs and samples for az cli are in our docs here. This is what most people use.
https://docs.microsoft.com/en-us/azure/cosmos-db/manage-with-cli
And include az cli samples for all 5 database api's.
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-cassandra https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-mongodb https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-gremlin https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-table

What about Postgres API? It's still missing. I don't see docs for how to create a free tier cosmos for postgres api as enxample.

Those are api reference docs autogenerated from swagger.
Our docs and samples for az cli are in our docs here. This is what most people use.
https://docs.microsoft.com/en-us/azure/cosmos-db/manage-with-cli
And include az cli samples for all 5 database api's.
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-cassandra https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-mongodb https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-gremlin https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-table

What about Postgres API? It's still missing. I don't see docs for how to create a free tier cosmos for postgres api as enxample.

@GustavoOS You're right, there's no way to provision a free trial of Azure Cosmos DB for PostgreSQL programmatically. Pardon possible confusion. The Azure Cosmos DB for PostgreSQL free trial can be started only via this page: https://cosmos.azure.com/try/
Once provisioned you can do all management operations using Azure Cosmos DB for PostgreSQL REST APIs. See docs here: https://learn.microsoft.com/en-us/rest/api/postgresqlhsc/
Just in case: The above REST APIs page is linked in the main Azure Cosmos DB for PostgreSQL documentation. If you open 'Reference' section on the left-hand side, you'd see it there.

Those are api reference docs autogenerated from swagger.
Our docs and samples for az cli are in our docs here. This is what most people use.
https://docs.microsoft.com/en-us/azure/cosmos-db/manage-with-cli
And include az cli samples for all 5 database api's.
https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-cassandra https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-mongodb https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-gremlin https://docs.microsoft.com/en-us/azure/cosmos-db/cli-samples-table

What about Postgres API? It's still missing. I don't see docs for how to create a free tier cosmos for postgres api as enxample.

@GustavoOS You're right, there's no way to provision a free trial of Azure Cosmos DB for PostgreSQL programmatically. Pardon possible confusion. The Azure Cosmos DB for PostgreSQL free trial can be started only via this page: https://cosmos.azure.com/try/
Once provisioned you can do all management operations using Azure Cosmos DB for PostgreSQL REST APIs. See docs here: https://learn.microsoft.com/en-us/rest/api/postgresqlhsc/ Just in case: The above REST APIs page is linked in the main Azure Cosmos DB for PostgreSQL documentation. If you open 'Reference' section on the left-hand side, you'd see it there.

Thanks for the reply
The link you sent is a 30 day offer, not the permanent free tier offer that is shown on the free tier page

So is this lack of free tier creation intetional? if it is, I think it should be better described in the docs.

@GustavoOS Azure Cosmos DB for PostgreSQL is not part of the Azure Free Tier offering.


How to implement in my project.

Hello,
Thank you so much for taking the time to write this plugin. Question, I am trying to implement this plugin in my current Japanese Flash Card App. My question is how do I prompt the user if they understand the word. For example, let's say they instantly recall the answer do I ask them from 1 to 5 and feed that response to your API? The due date how do I convert that what metric is that in?  I really want to use your plugin, I am just unsure on how to do so. Any clarification would be appreciated.

Ah I should probably add a "deprecated" or something; now I use simpler euristics with few ifs, it brings much better results. The problem with this is that it works great in general, but doesn't work with specific cases:

User failed a word; put it in the "next" list so they practice it right away
Avoid repeating consecutive words
Etc etc

All in all, I'd recommend not using this package anymore.

About your questions, you rate the answer as "good" or "bad". There is no "due date", just the user's score for the current word. Then you'd choose the one with the lowest score as the next one to ask.


Form validation and creation of alert messages in login and signup pages

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen.

I'm a GSSoC'21 participant can you please assign this task to me , I would love to work on this!


Breaks with reek v2.0.2

It works fine on v2.0.1 but breaks on v2.0.2 with the following error:
/Users/jeroen/.gem/ruby/2.2.0/gems/reek-2.0.2/lib/reek/core/smell_repository.rb:22:in `initialize': uninitialized constant Reek::Core::SmellRepository::Configuration (NameError)

I don't know exactly what causes the issues, but it appears that some related code might have changed: https://github.com/troessner/reek/compare/v2.0.1...v2.0.2. I'll try to have a deeper look at it when I find some time.

As the latest version works with reek v2.2.1, this is no longer relevant. Thanks for reporting :bow:

:+1: Tanks! :)


Fix: whois without arguments does not show status

For some odd reason commands.ContextMS(parsed.Context()) does not register PresenceStatus from dstate, maybe due to member Copy - can't remember how it's called...
So this is one possible way solving it.

its because it uses the member object on the message.
Also get it from the state directly instead of calling bot.GetMember, since you can't get presence data from the api at all without state tracking it.

updated that getting member part

updated the code


unable to load finetuned LM "No file bert_config.json"

No such file or directory: 'LM_Trained/bert_config.json'
I think bert_config is not saved when finetuning a LM

Ok, this should be fixed in the new release v0.6.2. See #523.