SAP Leonardo Machine Learning and the iOS SDK

Hi ,
While creating a new project I am getting error "No Such Module Found SAPFoundation", all my Frameworks are added though.
Not sure why I am getting Error.

My XCode version is 9.1(9B55)
I have downloaded IOS SDK 2.0 PL02

Hi @nileshkum,
Can you check if the framework is also listed under Embedded Binaries as well as Linked Frameworks and Libraries in the General tab of your Xcode project settings?

Thank you for your feedback. We haven't heard from you in the past 30 days, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Timezone Label

so people dont get confused

Once I can squash all of the bugs with this current build of Sunset, I will attempt to get that working. 👌

Sunset 2.1 will be releasing this weekend. After that I will be working towards multiple timezones working with the time and date commands.


View counter/rating bar and like/dislike buttons overlaping

I am using the YTC Settings->UI->Placement->Move elements option to move/disable some of YTC buttons.This exposes a placement bug where the view counter/rating bar and the like/dislike buttons are overlapping.

When YTC is disabled the rating bar(and view counter above it) are aligned with the line that separates the channel logo/subscriber counter and the default YouTube Share/Add to/More buttons.

When YTC is enabled and you place the buttons so that you have 2 rows, the rating bar/view counter and like/dislike buttons are not overlapping.Note however that the rating bar/view counter is no longer aligned above the separating line and now is below the line, and the like dislike buttons are aligned with the bottom row.

When YTC is enabled and you place the buttons so that you have only 1 row or you disabled all YTC buttons and leave only the YouTube default buttons,the rating bar/view counter and like/dislike buttons are now overlapping.

It seems that the position of the rating bar/view counter is fixed directly below the separating line,but the like/dislike buttons are aligned with the rows and you can move them(you can't move the rating bar/view counter).So when you have only one row the like/dislike buttons are aligned with that row and they overlap the fixed position of the rating bar/view counter.
I am using FF 52 Beta 4 on Win 10 x64 with YTC #544 script.

See https://github.com/YePpHa/YouTubeCenter/commit/b39931b5a6391af6e4c9966aff8d1162cc910ae1

I just got the update to v545,but i didn't see the fix for this bug included in it and i still face this bug.

Weird, I tested it and it seemed to work.

Found the issue. I will send out a new update.


Build real MacOS universal binaries

Cargo right now does not support it by default https://github.com/rust-lang/cargo/issues/8875
Our macOS Python packages are not Aarch64/M1 compatible by default and it would not be easy to make them so.
Source builds should work though.
Contributions are welcome. We won't work on this ourselves.
Building and testing M1 executables will require to use ARM-based workers in Github Actions, and there are no hosted workers yet.

Fixed with 0.6.6


Initial commit of Resource Manager API

Looking for feedback first. This is short on tests (hence the "don't merge" label), but follows the client pattern @dhermes used for PubSub.
API overview is here: https://cloud.google.com/resource-manager/reference/rest

@dhermes : Looks like I'm having lint errors. Errors I'm seeing that I don't know exactly what to do:
Module gcloud.resource_manager.client

W:126,28: Redefining built-in 'filter' (redefined-builtin)
C:195, 4: Invalid argument name "id" (invalid-name)
W:195,22: Redefining built-in 'id' (redefined-builtin)
C:221, 4: Invalid argument name "id" (invalid-name)
W:221,26: Redefining built-in 'id' (redefined-builtin)

Using id isn't cool?

Module gcloud.resource_manager.project

C: 63, 8: Invalid attribute name "id" (invalid-name)
W: 61,31: Redefining built-in 'id' (redefined-builtin)
W: 86, 8: Access to a protected member _set_properties_from_api_repr of a client class (protected-access)
W:252,34: Redefining built-in 'reload' (redefined-builtin)
W:286,36: Redefining built-in 'reload' (redefined-builtin)

Using id and reload isn't cool? And I can't call the protected method when creating the object?

Using id and reload isn't cool with the linter as variable names because they end up in locals, and will accidentally override builtins.
RE: "String statement has no effect (pointless-string-statement)" How old is your version of pylint? Do a tox --recreate -e lint.
RE: "Access to a protected member _set_properties_from_api_repr of a client class (protected-access)" The linter only wants you to access protected methods on self, so it's a no-no in a class method.

Using id and reload (and filter) isn't cool with the linter as variable names because they end up in locals, and will accidentally override builtins.

OK, so I have to change those variables then, yes?

RE: "String statement has no effect (pointless-string-statement)" How old is your version of pylint? Do a tox --recreate -e lint.

I'll upgrade and give another go.

RE: "Access to a protected member _set_properties_from_api_repr of a client class (protected-access)" The linter only wants you to access protected methods on self, so it's a no-no in a class method.

Recommendations?

Yes use different variable names. People usually just add some more context, e.g. filter_foo or they just cop out and append an underscore filter_.
Let me know what happens after upgrade (I suppose if it happened on Travis, it's legit, since Travis always uses latest.)
Recommendations about protected method, just make it public.

But reload is OK as a method name, right? (https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/pubsub/subscription.py#L139)

@jgeewax Correct reload is OK as a method name (per the linter) because it doesn't conflict with any local or global namespaces.

OK  @dhermes : All set :)

Starting to review now. It's strange that the coveralls check never ran.

Test coverage:
gcloud.resource_manager.client               44     22      8      8    42%   114-117, 122, 146-147, 169-171, 230-241, 293-298
gcloud.resource_manager.connection           10      0      0      0   100%
gcloud.resource_manager.iterator             44     30     12     12    25%   64-72, 77-80, 88-91, 99-102, 110-119, 123-124, 142, 154-156
gcloud.resource_manager.project              64      5      8      3    89%   100, 247-248, 284, 323
gcloud.resource_manager.test_client          20     12      0      0    40%   24-25, 28, 38-39, 42-50
gcloud.resource_manager.test_connection      21      0      0      0   100%
gcloud.resource_manager.test_project        139      2      0      0    99%   215-216

It seems --cover-min-percentage=100 causes tox -e coveralls to fail before uploading to coveralls.io, thanks for surfacing that error :)

Woo. @dhermes Can you look again and tell me what I did wrong that the build didn't catch?

You just pushed right? The build is "all fixed" as of two weeks ago (you surfaced the coverage issue).
That's what you're referring to, yes?

Yep - it started failing again, so I got coverage back up to 100% and lint/pep8 happy.

@jgeewax You can rebase over master now that #971 is merged.

Cool -- all set. Any more feedback or LGTY?

OK I finished reading the code from beginning to end. We shall continue discussion in the comments :+1:

(Not trying to be a wet blanket) After thinking about it for a little bit, I'd rather we move the reload_data feature out of this PR and discuss it on it's own after the basic functionality is in.

FYI @jgeewax I am porting this over today.

Awesome - thanks @dhermes.
On Mon, Aug 24, 2015 at 6:37 PM, Danny Hermes<EMAIL_ADDRESS>wrote:

FYI @jgeewax https://github.com/jgeewax I am porting this over today.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/gcloud-python/pull/933#issuecomment-134401132
.


Crop area is hidden and the element appears below the image

I am experiencing some weird behavior. The "ReactCrop__crop-selection" div appears below the uploaded image and dragging anywhere on the image causes the border surrounding the image to expand proportional to the drag.
Notice that there isn't any change in the cursor and no visual display of the crop area.
All the relevant code is below.
version: "react-image-crop": "^8.6.5",
const [crop, setCrop] = useState({
    unit: '%',
    width: 20,
    aspect: 16 / 9,
  });
  const [file, setFile] = useState('');

  const onSelectFile = (e) => {
    if (e.target.files && e.target.files.length > 0) {
      const reader = new FileReader();
      reader.addEventListener('load', () =>
        setFile(reader.result),
      );
      reader.readAsDataURL(e.target.files[0]);
    }
  };

return (
  <input type="file" accept="image/*" onChange={onSelectFile} />
  {file && (
   <ReactCrop
      src={file}
      crop={crop}
      ruleOfThirds
      onChange={crop => setCrop(crop)}
    />
  )}
)

@ChrisJVoss You need to import "react-image-crop/dist/ReactCrop.css";

@tomiplaz Thank you! That was it.


fix(reactivity): unwrap ref types as props of arrays

close #1846

I don't think this is fixing the the issue linked. It is about properties added to an array, not refs inside arrays and empty string keys

I don't think this is fixing the the issue linked. It is about properties added to an array, not refs inside arrays and empty string keys

!targetIsArray || isNaN(key as any) || isSymbol(key) || key === '' is it to determine whether the key is for an item or a property of the array. If it's a key for property, refs should be unwrapped.


SubmitSamplesConsent should be SendSafeSamples or SendAllSamples

In the Use PowerShell section says let it set to AlwaysPrompt.
However in the Use Intune section and in the Use Group Policy says,

Setting to Always Prompt will lower the protection state of the device.

This is a contradiction. Use Powershell tells us to reduce safety.

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

ID: 5f8ccc01-1b04-e443-ef75-6ffe6c866dd5
Version Independent ID: fa2eaa0f-db04-785a-3894-8244947b9cd5
Content: Enable cloud-delivered protection in Windows Defender Antivirus - Windows security
Content Source: windows/security/threat-protection/windows-defender-antivirus/enable-cloud-protection-windows-defender-antivirus.md
Product: w10
Technology: windows
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

Thank you, @BugMeNot114514, for raising this issue. I'll look into it.

@BugMeNot114514 - Thank you for submitting feedback.
From our understanding, the issue has been resolved based on this merged commit https://github.com/MicrosoftDocs/windows-itpro-docs/commit/72274729032c9cc923d67cc25413c7c702b0dead.
Thank you for your contribution to make the docs better! Much appreciated!


Switch Kopano pricing to open-source

Kopano is 100% open source and its possible to build each release directly from source without having to pay Kopano for it. Only access to prebuilt binaries, package repositories and (personal) support is bound to a subscription.

Dear @fbartels,
Thanks a lot for spotting + directly correcting my mistake, the pricing page confused me a bit when adding your product to my project (what an honor to get a direct feedback from the kopano team :D )

No problem. And I get where your confusion comes from. This is actually the reason why we most commonly use Kopano.io instead of the .com domain when it comes to the project itself. But the downside is that if you want to learn about possibilities the .com has the most content.


Investigate Redux & Thunk

Currently when working with React I am putting my asynchronous calls inline with my functions, this is far from ideal and I have seen a few posts recommend using Redux + Thunk.

Can Thunk be used with useReducer instead of Redux?
Should I use Redux directly or use React-Redux?

Read over the Redux docs a bit more (few more times).
Things to try:

Create my own logger middleware for current useReducer hook
Create my own thunk middleware for current useReducer hook
Custom hook?
Play around with combining reducers and using with useReducer hook


where function mis-broadcasts and alters data type on dataset

Code Sample, a copy-pastable example if possible
import numpy as np

# generate data
dateVar = np.arange('2005-02', '2005-06', dtype='datetime64[D]')
t = len(dateVar)
floatVar = np.random.rand(t, 100)
indexVar = np.arange(100)
intVar = np.random.randint(1, high=10, size=(t, 100))

# create dataset
A = xr.DataArray(floatVar, dims=['time', 'N'])
A.name = 'floatVar'
B = xr.DataArray(indexVar, dims=['N'])
B.name = 'indexVar'
C = xr.DataArray(intVar, dims=['time', 'N'])
C.name = 'intVar'
D = xr.DataArray(dateVar, dims=['time'])
D.name = 'dateVar'
ds = xr.merge([A,B,C,D])
print(ds)

<xarray.Dataset>
Dimensions:   (N: 100, time: 120)
Dimensions without coordinates: N, time
Data variables:
    floatVar  (time, N) float64 0.4223 0.5019 0.8522 ... 0.9338 0.5833 0.09859
    indexVar  (N) int64 0 1 2 3 4 5 6 7 8 9 10 ... 90 91 92 93 94 95 96 97 98 99
    intVar    (time, N) int64 9 2 3 6 8 4 8 7 6 4 2 6 ... 3 1 8 3 8 3 5 3 1 6 7
    dateVar   (time) datetime64[ns] 2005-02-01 2005-02-02 ... 2005-05-31

# apply where function
ds.where(ds.indexVar > 50, drop=True)

<xarray.Dataset>
Dimensions:   (N: 49, time: 120)
Dimensions without coordinates: N, time
Data variables:
    floatVar  (time, N) float64 0.3381 0.04735 0.464 ... 0.5571 0.5297 0.8106
    indexVar  (N) float64 51.0 52.0 53.0 54.0 55.0 ... 95.0 96.0 97.0 98.0 99.0
    intVar    (time, N) float64 5.0 2.0 9.0 5.0 5.0 1.0 ... 1.0 6.0 5.0 4.0 3.0
    dateVar   (time, N) datetime64[ns] 2005-02-01 2005-02-01 ... 2005-05-31

Problem description
This is motivated by a use-case of dimensions (Time, nParticle) for a Lagrangian particle simulation. In the above code snippet, I filter by some condition on indexVar (e.g., some type of particle).
For variables that contain the same dimension as the one in indexVar (N), it broadcasts fine and there's no dimension changes. In the case of dateVar, which only has dimension time, there is a dim expansion to add N.
Further, data-types are changed (indexVar and intVar from int64 to float64). In my use-case, a variable of type S64 was converted to O.
So the two major issues here:

where mis-broadcasts certain variables by adding the filtered dimension (in this case N to dateVar). It should instead ignore variables that don't contain the variable being filtered.
where changes data-types of variables after the filter is applied.

Expected Output
<xarray.Dataset>
Dimensions:   (N: 49, time: 120)
Dimensions without coordinates: N, time
Data variables:
    floatVar  (time, N) float64 0.3381 0.04735 0.464 ... 0.5571 0.5297 0.8106
    indexVar  (N) int64 51 52 53 54 55 ... 95 96 97 98 99
    intVar    (time, N) int64 5 2 9 5 5 1 ... 1 6 5 4 3
    dateVar   (time) datetime64[ns] 2005-02-01 2005-02-02 ... 2005-05-31

Output of xr.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)]
python-bits: 64
OS: Darwin
OS-release: 16.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
libhdf5: 1.10.4
libnetcdf: 4.6.2
xarray: 0.12.1
pandas: 0.24.2
numpy: 1.16.3
scipy: 1.2.1
netCDF4: 1.4.2
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: <IP_ADDRESS>
nc_time_axis: None
PseudonetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: 1.2.1
dask: 1.2.2
distributed: 1.28.0
matplotlib: 3.0.3
cartopy: 0.17.0
seaborn: None
setuptools: 41.0.1
pip: 19.1.1
conda: None
pytest: 4.5.0
IPython: 7.5.0
sphinx: None

This has been reported before e.g. #1234 . I think we need a kwarg to control this behaviour. You can avoid this here by making dateVar a coordinate which seems logical in this case.
ds = ds.rename({'dateVar': 'time'}).set_coords('time')

This is because where fills in NaNs which is not representable by variables with int datatype.
So xarray casts the variable to float. I guess we could avoid this when drop=True but not when drop=False. You can fix this partially by setting indexVar to be a co-ordinate which again seems logical in this case.

ds = (ds.rename({'dateVar': 'time',
                 'indexVar': 'N'})
      .set_coords(['time', 'N']))

print(ds)

ds.where(ds.N > 50, drop=True)

gives me
<xarray.Dataset>
Dimensions:   (N: 100, time: 120)
Coordinates:
  * N         (N) int64 0 1 2 3 4 5 6 7 8 9 10 ... 90 91 92 93 94 95 96 97 98 99
  * time      (time) datetime64[ns] 2005-02-01 2005-02-02 ... 2005-05-31
Data variables:
    floatVar  (time, N) float64 0.2382 0.9297 0.5391 ... 0.9527 0.6448 0.08718
    intVar    (time, N) int64 9 5 7 9 9 3 3 2 2 8 4 1 ... 8 9 1 8 1 8 9 5 7 4 4

<xarray.Dataset>
Dimensions:   (N: 49, time: 120)
Coordinates:
  * N         (N) int64 51 52 53 54 55 56 57 58 59 ... 92 93 94 95 96 97 98 99
  * time      (time) datetime64[ns] 2005-02-01 2005-02-02 ... 2005-05-31
Data variables:
    floatVar  (time, N) float64 0.5974 0.09831 0.3858 ... 0.9527 0.6448 0.08718
    intVar    (time, N) float64 3.0 8.0 7.0 5.0 4.0 4.0 ... 9.0 5.0 7.0 4.0 4.0

intVar has still been converted to float so you'll need to fix that manually.

Thanks for the feedback and link to the other issue. I wasn't sure what to search to find other issues on this. The coordinate transformation seems like the most straightforward approach.


Powertoys Uninstalled itself

ℹ Computer information

PowerToys version: v0.21.1
Running PowerToys as Admin: Yes
Windows build number: 1909 (Build 18363.1082)

📝 Provide detailed reproduction steps

Update PowerToys from the notification prompt

✔ Expected result
PowerToys updating to the next release version
❌ Actual result
PowerToys uninstalling itself from the system

@alannt777
I don't think it's related to #6995 since in this case the uninstall is done by the updated and that is the expected behavior, the problem here is why it did install the new version after uninstalling the old one.
This is a 0.21.1 problem and my suggestion is to manually install 0.23.2 https://github.com/microsoft/PowerToys/releases/download/v0.23.2/PowerToysSetup-0.23.2-x64.exe
and check if it happens again when it will update 0.25, unless @Leakbang is willing to help debugging the issue, it would be necessary to reinstall 0.21.1 and then check for updates and go through the update process again.

@enricogior Ok

I'd be willing to help debug this issue further if it still hasn't been solved.
As a side note, when I manually proceeded to install the new version of PowerToys (after it had uninstalled itself) the progress bar in the action center popped up as if the app was updating and it was just continuing its normal procedure. Additionally, I did not install the new version in the same session as PowerToys had uninstalled itself in. I became aware of it a few days after.

@Leakbang
we have made changes to the update process.
Did you still run into this issue when updating from 0.27.0 to 0.27.1?

No @enricogior I did not.

@Leakbang
thanks for the follow up, I'll close the issue.


Classes constants Doctrine\ORM\Query\Lexer::T_* deprecated in favor of Doctrine\ORM\Query\TokenType::T_*

According to the upgrade guide, class constants Doctrine\ORM\Query\Lexer::T_* are now deprecated, in favor of Doctrine\ORM\Query\TokenType::T_*.
Can we write a rector rule for this ?

configured rule can be used for that imo, and register to specific rule set, for example, using RenameClassConstFetchRector, ref https://getrector.com/demo/32a9f4b8-817d-4e28-b792-ce751f953c2d

@julienfastre could you create a PR on it under https://github.com/rectorphp/rector-doctrine/blob/main/config/sets/doctrine-orm-29.php with RenameClassConstFetchRector configurable, eg https://getrector.com/demo/32a9f4b8-817d-4e28-b792-ce751f953c2d ?
Thank you.

yes, I'm working on it.


Jobs error

Laravel Version: 7
PHP Version: 7.4.6
Database Driver & Version: MySQL 5.7.26
Queue Driver: redis

When I send a task to the queue, I get an error.
Error: Cannot unpack array with string keys in [PATH_TO_PROJ]/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Collection.php:605
The array_intersect() function gets an array:
array:3 [
  "api_token" => []
  "api_client_id" => []
  "api_park_id" => []
]

Temporarily replaced the line and works:
return array_intersect(...array_values($relations));
Is this a bug or my mistake? Before updates everything worked.

Database/Eloquent/Collection.php#L605

We'll need some code here to reproduce.


Displaying a complex HTML component breaks a dropdown control

This issue was first reported by @vnijs at https://github.com/mwouts/itables/issues/181. When a datatables table is displayed in one tab, the dropdown control in the second tab is not displayed.
Are there some rules that we have to follow in itables when generating the HTML that have to be followed to avoid this?
Below a minimal example that reproduces the issue.
Many thanks,
from shiny import App, ui, render
import pandas as pd

from itables import to_html_datatable as DT

df = pd.DataFrame({"a": [5]})
app_ui1 = ui.page_fluid(
    # no dropdown shown in "blocked" tab
    # but the issue goes away if we just display an empty ui.HTML()
    ui.navset_tab(
        ui.nav("Tab1", ui.HTML(DT(df))),
        ui.nav(
            "Blocked",
            ui.output_ui("ui_rvar"),
        ),
    )
)

def server(input, output, session):
    @output(id="ui_rvar")
    @render.ui
    def ui_rvar():
        return ui.input_select(
            id="rvar",
            label="Response Variable",
            selected=None,
            choices=["a", "b"],
        )

app = App(app_ui1, server)

I don't know enough about what's happening here to give an answer, but I did run this locally and could reproduce the issue. Looking at the DOM and comparing with what is inserted for simpler HTML tags, I notice that the itables renders with the  for the table and also a bit of

I just stumbled onto https://github.com/rstudio/shiny/issues/2535#issuecomment-527941450, which sounds similar in Shiny for R. @jcheng5 could speak with more certainty on it.

Thank you @nealrichardson for your comments above. They have been very helpful. Since you mention that Shiny loads jQuery already, I have just tried to remove the statement import 'https://code.jquery.com/jquery-3.6.0.min.js'; from itables when used in the context of a Shiny application... and that worked. To be released soon in itables==1.5.3.


Totally pointless issue

Hey @goto-bus-stop
Testing some github notification shizzle, would you mind responding to this issue?

Ayay


Create Quality Factor Prediction view [US_5.2]

Implement 4 new views for Quality Factors in Assessment submenu, one for each view mode. General tasks to do in front-end: implement html page, in back-end: implement .js page and if it's necessary add new api enpoints to get data for a view.

[x] Create html page for Prediction view for Quality Factors (front-end)
[x] Implement .js page and get forecasted factors data function for Quality Factors Prediction view
[x] Improve navigation between diferents views in Prediction submenu

factors_management branch was merged to develop branch


[Mixed content] IOS

Environment

Technology
Version

Flutter version
2.0.4

Plugin version
5.3.1

iOS version
14.4

Xcode version
12.4

Description
I would like to allow mixed content on IOS.
Package give a setting to allow that on android :
mixedContentMode: AndroidMixedContentMode.MIXED_CONTENT_ALWAYS_ALLOW

Here is how I use this package :
InAppWebView(
  initialOptions: InAppWebViewGroupOptions(
    crossPlatform: InAppWebViewOptions(javaScriptEnabled: true),
    android: AndroidInAppWebViewOptions(
      mixedContentMode: AndroidMixedContentMode.MIXED_CONTENT_ALWAYS_ALLOW,
      useHybridComposition: hybrid,
    ),
    ios: IOSInAppWebViewOptions(
      allowsInlineMediaPlayback: true,
    ),
  ),
  initialUrlRequest: URLRequest(
    headers: "some header",
    url: Uri.parse(https_url),
  ),
),

Is that possible for IOS ?
What you'd like to happen:
I would allow my webview to display an https webpage which will load some http scripts / files / images.
Alternatives you've considered:
When enabling debug on InAppWebView on ios I didn't got more information about this problem.
I tried some rules in info.plist like NSAllowsArbitraryLoadsInWebContent, NSAllowsArbitraryLoads, NSExceptionAllowsInsecureHTTPLoads... But always same behavior.
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsForMedia</key>
    <true/>
</dict>

Images
IOS

Android

@EArminjon hello, same issue. did you fix it?

@xiaochonzi no...

@xiaochonzi no...


Create a simple multithreading example

Motivation
The ray-tracing example is a good showcase for what can be done with multithreading, but is a bit hard to grok, especially if you're interested in the fundamentals. The raytracing example uses Rayon, has an entire pool implementation, spawns multiple workers, etc.
Proposed Solution
A new, minimal and boring example of multithreading which spawns a single worker.
Alternatives
None that I can think of!

There's a much longer explainer post about the internals of what's going on which is still largely accurate today, but for a smaller example it's probably not a bad idea as well! It's unfortunately all still a bit rough around the edges with all the gotchas to get it up and running from scratch, but do you have an idea of what a small example you'd like to see is?

For me, a good example would highlight exactly what rough edges and gotchas exist even for a minimal use-case. Something purely illustrative, like executing a loop with enough iterations that it would freeze up a UI thread for a few seconds, after which it writes some value that can be accessed by the UI thread.

The Yew framework supports multi-threading & concurrency out of the box. It uses Web Workers API to spawn actors (agents) in separate threads and uses a local scheduler attached to a thread for concurrent tasks.

Yes, this would be fantastic if possible.

Seconded. Computing a layout iterativly off-mainthread and updating the screen with the result in every callback to request_animation_frame is also my main use case.


address the middleware required change when using Livewire

Hello sir!
when using the laravel livewire framework, it is required that you change the middleware group from the default web to tenancy in the package's config file. it took me a while to figure it out and thought it might help some people who are trying to use this package and livewire. thanks.
/*
    |--------------------------------------------------------------------------
    | Livewire Endpoint Middleware Group
    |--------------------------------------------------------------------------
    |
    | This value sets the middleware group that will be applied to the main
    | Livewire "message" endpoint (the endpoint that gets hit everytime,
    | a Livewire component updates). It is set to "web" by default.
    |
    */

    'middleware_group'  => 'tenancy',

Hi, thanks for sharing. Once I get to play with Livewire, I'll see exactly how this works and will add it to the docs.

ok no problem!

Actually, you want to use this:
'middleware_group' => ['web', 'universal'],

which will let you use Livewire both in the tenant app and the central app. The web middleware should be kept there because it's there by default.

Aaahh.. i see! i haven't thought about it.
but where does the universal middleware come from?

https://tenancy.samuelstancl.me/docs/v2/universal-routes/#universal-routes
Dne pá 10. dub 2020 18:19 uživatel Serge Byishimo<EMAIL_ADDRESS>napsal:

Aaahh.. i see! i haven't thought about it.
but where does the universal middleware come from?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/stancl/tenancy/issues/344#issuecomment-612104172, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AH4AXBRJOXL636E5GK6SNOLRL5BI7ANCNFSM4MCPP5YA
.

good to know! thanks for the update!

https://github.com/stancl/tenancy-docs/commit/24e63076da73addd7364e97edd124794d6d95f5a

but 'universal' middleware group isn't defined anywhere, certainly not in Kernel.php unless I've missed this in the setup instructions? I can't see what this change to config/livewire.php is achieving?
'middleware_group' => ['web', 'universal']

There's a PreventAccessFromTenantDomains middleware that prevents visiting central routes on tenant domains (& vice versa). You wouldn't want to see the landing page in the tenant's app.
The universal middleware group shortcircuits [1] that PreventAccess... middleware and lets any request pass, since it declares the route as universal [2] (= accessible on both central & tenant domains).
[1] https://github.com/stancl/tenancy/blob/7eb3395807c689a74ce4f6303afa93ce8c8ee25c/src/Middleware/PreventAccessFromTenantDomains.php#L25-L28
[2] https://tenancyforlaravel.com/docs/v2/universal-routes/#universal-routes


Different background on initial creation

If you accidentally type a promise URL that already exists, that needs to be super obvious.
I propose we use a different background color on the page when clix=1.
(We could also make the "this promise has been clicked 1 time" more obvious or special-case it to "this promise has just now been created because you clicked on it!" but the main thing is for it to be immediately visually obvious the difference between hitting an existing promise and creating one, hence something drastic like a different background color.)

Complete


pls answer me :)

How to change the position of the hat.svg?

Hello @smallwhiteqwp,
Thanks for checking out the project. The position of the hat can be changed through CSS styles. The relevant code is here. You also have to update the values for different screen sizes if you want to make it responsive.
Best of luck!


Bound keys are lost in org-brain-visualize

Describe the feature
Using org-brain, executing org-mode-visualize would show a buffer which helps visualize the structure of entries. However, bound keys such as SPC SPC would show SPC SPC is undefined error. Basically, none of the key bindings i am used to have in doom-emacs are available.
Edit: I guess this would count as a feature request to support evil keybindings for org-brain in addition to having doom-specific keybindings in org-mode-visualize mode.
System information

```
SYSTEM  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /usr/bin/zsh
        uname      Linux 5.10.10-arch1-1 #1 SMP PREEMPT Sat, 23 Jan 2021 23:59:48 +0000 x86_64
        path       (/usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/git/bin /usr/local/go/bin /opt/sm/bin /opt/sm/pkg/active/bin /opt/sm/pkg/active/sbin /bin ~/Code/Go/bin ~/.bin ~/.cargo/bin /usr/lib/emacs/28.0.50/x86_64-pc-linux-gnu)
EMACS   dir        ~/.emacs.d/
        version    28.0.50
        build      Jan 03, 2021
        buildopts  --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-x-toolkit=gtk3 --without-xaw3d --without-compress-install 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -flto -fuse-linker-plugin' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
        features   XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2
        traits     (batch server-running envvar-file)
DOOM    dir        ~/dotfiles/.doom.d/
        version    2.0.9
        build      HEAD -> develop 56e9d273e 2021-01-28 21:23:07 -0500
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo hydra modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) multiple-cursors rotate-text snippets :emacs dired electric ibuffer vc (undo +tree) :term vterm :checkers syntax :tools (debugger +lsp) editorconfig (eval +overlay) (lookup +docsets) (lsp +peek) (magit +forge) :lang data emacs-lisp go javascript lua markdown (org +brain +dragndrop +ipython +pandoc +pomodoro +journal +present) python (rust +lsp) sh solidity yaml :email (mu4e +gmail) :app calendar irc :config (default +bindings +smartparens))
        packages   ((auto-highlight-symbol) (rust-mode :disable t) (format-all :disable t) (whitespace :disable t) (cargo) (flycheck-mypy) (parent-mode) (rust-playground) (org-present) (mu4e-dashboard :recipe (:host github :repo rougier/mu4e-dashboard)) (mu4e-alert) (protobuf-mode) (google-translate) (org-gtasks :recipe (:host github :repo rakanalh/org-gtasks :files (org-gtasks.el))))
        unpin      (rustic lsp-mode lsp-ui)
        elpa       (protobuf-mode)
```

Sorry for the late response. This request may be better suited to evil-collection. As a rudimentary workaround, give this a try:
;; Add to ~/.doom.d/config.el
(after! org-brain
  (set-evil-initial-state! 'org-brain-visualize-mode 'normal)
  (let (keys)
    (map-keymap (lambda (event function)
                  (push function keys)
                  (push event keys))
                map)
    (apply #'evil-define-key* 'normal org-brain-visualize-mode-map keys)))

I'm hoping this will be enough for rudimentary "evilification" of org-brain-visualize.


Windows Pre-Requisites

We can't use Docker Desktop at work anymore (haven't been able to for a long time now). I can, however, install WSL, and I can use Rancher Desktop. Before going through this on my work laptop, does anyone happen to know for sure that Rancher wouldn't work?
Rancher can be configured to use Moby/dockerd and does itself require WSL on Windows for this purpose. Just want to save myself some pain if there's no point.

Yup, works just fine.

Can be referred to confirm Rancher Desktop as a pre-req alternative of Docker Desktop.


Question : is there acro mode or only angle mode .

Is there acro mode or only angle mode ? Is there plan fo develop acro mode

you can disable the auto leveling by changing the values of the variable to false in the flight controller.
This will make it acro mode (3d flight mode)


Importmaps update delay

I am not experienced enough in JavaScript and importmaps to understand why the version on ga.jspm.io is lagging.
I must wait a week or so for every release before updating. It isn't a big deal, but I figured I'll let you know if it is something you can address on your side @hopsoft!
Thanks for the fantastic tool!
https://ga.jspm.io/npm:@turbo-boost/commands<EMAIL_ADDRESS>tells me it isn’t there but according to bin/importmap outdated it should be there!

This is interesting. No idea why it would take so long. Will need to investigate.

This should be resolved with the addition of VERSION to the JavaScript build.


Documentation does not match behaviour

I have now encountered this several times, the docstring, or the API docs don't always match actual behaviour of dask classes.  Here's the latest example, below I'm trying to concatenate several dask dataframes:
dfs = [
    pd.DataFrame(np.random.randint(10, size=(3, 2)), columns=('a', 'b'))
    for i in range(3)
]
ddfs = [dd.from_pandas(df, npartitions=1) for df in dfs]

These fail:
[ ]: ddfs[0].append(ddfs[1:])

NotImplementedError                       Traceback (most recent call last)
<ipython-input-16-fde3c66e1f54> in <module>
----> 1 ddfs[0].append(ddfs[1:])

~/.local/lib/python3.6/site-packages/dask/dataframe/core.py in append(self, other)
   2956         elif is_series_like(other):
   2957             other = other.to_frame().T
-> 2958         return super(DataFrame, self).append(other)
   2959
   2960     @derived_from(pd.DataFrame)

~/.local/lib/python3.6/site-packages/dask/dataframe/core.py in append(self, other)
   1687         if isinstance(other, (list, dict)):
   1688             msg = "append doesn't support list or dict input"
-> 1689             raise NotImplementedError(msg)
   1690
   1691         return concat([self, other], join='outer', interleave_partitions=False)

NotImplementedError: append doesn't support list or dict input

[ ]: ddfs[0].append(ddfs[1], ignore_index=True)
TypeError                                 Traceback (most recent call last)
<ipython-input-17-bc64a590a6d8> in <module>
----> 1 ddfs[0].append(ddfs[1], ignore_index=True)

TypeError: append() got an unexpected keyword argument 'ignore_index'

However the doc says both of the above are correct!
Am I missing something obvious?

We have a general issue about dask dataframe docstrings. Many are taken from pandas. The decorator borrowing from pandas is supposed to note when a parameter isn't supported (note that the signature in http://docs.dask.org/en/latest/dataframe-api.html#dask.dataframe.DataFrame.append only includes other).
FYI, for pandas and dask.dataframe you'll typically want concat rather than .append

Okay thanks, I'll go by only the signature from now on.
About concat, I knew that about pandas, but I couldn't find it in the "contents" at the beginning of the dask dataframe API page, but now I see there is an "Other functions" section that does not show up in the contents!
Thanks again :)


CXP-2269: Test rebasing on top of v2.0.0.Final

Closing as the build passed.

Reopening to test with the changes from https://github.com/sugarcrm/debezium/pull/130 ported.

Closing as all relevant builds passed. The failure in the Debezium Server build looks irrelevant.


Calendar Pickers

Chrome:

FireFox:

@jSylvestre what's the issue?  just that they look different?

@srkirkland Just that the chrome one has an extra date picker. chrome's built in?

REPORTS -- ex: https://peaks-test.ucdavis.edu/caes-cru/Report/PersonActions.  Probably just change textbox to type text?


WriteableBitmap throws an exception when accessing PixelBuffer

Describe the bug
Following the code example the WriteableBitmap is not properly costructed. PixelBuffer is null after construction. This is the control inspetion in Visual Studio after creation:

Steps to reproduce the bug
   var renderTarget = new WriteableBitmap(2048, 1024);

   // renderTarget is not null here, but next line throws an exeption
   var buf = renderTarget.PixelBuffer;

Expected behavior
As in the example here WriteableBitmap.PixelBuffer property
Screenshots
No response
NuGet package version
Windows App SDK 1.5.1: 1.5.240311000
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022-preview
Additional context
No response

The error throws at runtime, all looks good in the editor.   There is no other code between the two lines of code shown. The screenshot shows the object inspection with a breakpoint on the line var buf = ....
I'll try on an empty application.

I was also unable to reproduce this issue. @gmgallo do you hit this in a blank app?

No, I haven't tested in a blank app yet. I have to move on and don't have time to investigate.
I suspect that Visual Stuido is the one to blame, not this assembly. Strange things happen all the time, like this error is happening to me now. Xaml Hot-Reload not working on and off on the same project, and the list goes on and on,


Added new resource in JS section

I have updated the markdown file with a new resource in the JS section and added the description for the previous resource added by me. i.e., JavaScript.info

So thoughtful of you that you added the hacktoberfest-accepted tag, but my hacktoberfest PR's were accepted and I ordered the T-Shirt as well.😅😄


Ability to create folders

It would be nice as an enhancement.

Yeah, I was just about to propose this. I think this would help a lot with the UI as you could nest files within directories and keep the root small. Quick mockup:

That implementation would be awesome!

Great idea guys :-)

Any update?!


can't make extended_qm9_.pt by running "python3 extend_pyg.py ./data qm9_motifs_100.pt 32"

Hi!
Thank you for sharing your excellent work here !
I can't make extended_qm9_.pt by running "python3 extend_pyg.py ./data qm9_motifs_100.pt 32"
could you  please provide  extended_qm9_.pt?
thanks :)

I understand that running the 'extend_pyg.py' file can be challenging when users have different environments for CUDA compilation. I executed the 'extend_pyg.py' file using 8 V100 GPUs, with the following configuration details:
NVIDIA-SMI version: 515.65.01
Driver version: 515.65.01
CUDA version: 11.7
I have created a shared Google file containing the preprocessed 'extend_qm9.pt' data for your reference. You can access it through the following link: https://drive.google.com/file/d/1I2mbs8P-_WAhAyKbVwEzds9fG0Lxk8Sx/view?usp=sharing

Thank you for your prompt response and for sharing the 'extend_qm9.pt' data！Your help has been invaluable in my project. As a beginner in AI and graph neural networks, your work has been a great resource. Wishing you all the best in your future endeavors：）


fix: retain user RPC timeout if set via withTimeout

If a Callable has RetrySettings and the calculated RPC Timeout for an attempt is less than the constant, RPC timeout provided by the user via ApiCallContext.withTimeout, the attempt settings will win. This is not caller friendly.
This PR changes AttemptCallable, used for Unary RPCs, only attempts to set the ApiCallContext.withTimeout when it is not already set by the caller.
This was fixed for ServerStreaming RPCs in https://github.com/googleapis/gax-java/pull/1155
Addresses commentary in https://github.com/googleapis/gax-java/issues/1144.

@elharo do you want to take another pass or am I OK to merge?


Slackbot Sample

Figured I might as well take my learnings from my attempts and turn them into a sample. If someone better versed in Go could take a look at this and make sure I'm not making any silly mistakes that would be helpful.

@edwardrf did you have a chance to check this out? Just want to get a quick review of the Go code, since I'm not very familiar with the language 😛


Use unittest.mock instead

The line import mock depends the mock module from PyPI, so it also requires users to take care of an additional package installation.
It seems that this was installed at same time with some other dependencies so far; but now this line causes ModuleNotFoundError: No module named 'mock'.
Python provides unittest.mock modules as the standard library from Python 3.3+ and this is compatible with the mock module as a backport. This PR replaces import mock to from unittest import mock (revised version of #176).

/test

isort is angry. Please fix it! https://ci.preferred.jp/chainerio/71302/#L2090

/test


[FEATURE] Duplicate L10N code everywhere

Is there an existing issue for this?

[X] I have searched the existing issues

Is your feature request related to a problem? Please describe.
There is duplicate L10N code all over the place.  There shouldn't be.
Describe the solution you'd like
No response
Anything else?
No response

Fixed in 02161f0


可不可以实时获取音频文件

在AudioRecorder.onProgress 中data中没有实时返回音频路径，我像知道能不能实时获取音频路径
There is no real-time return audio path. I want to know if I can get the audio path in real time during recording. Thank you.

onProgress only works on iOS, you can set and save the audio path before recording started

I want to get audio files in real time during recording, which is not possible on Android yet.

ok, but I still don't get it why you want to get the file path while recording when you can get it in advance? maybe some explain?

@aJIEw
Because I want to get the stream information of the audio in real time, prevent the user's app process from suddenly dying during the half of the recording process, resulting in the need to re-record again.

well, in that case, you can call stopRecording on app exit, it seems that this lib doesn't support long-time running in the background(at least for android), so maybe better not use it for that purpose.

@aJIEw
My app may have unexpectedly caused an exit and can no longer call the specified function.

@aJIEw
我的目的是要实现随时获取音频并且实时的对该音频打分，如果录音完再进行打分的话，会有很长时间的延迟，录音越长，等待时间越长
My goal is to get audio at any time and score the audio in real time. If the audio is recorded and scored again, there will be a long delay. The longer the recording is, the longer the waiting time will be.

@aJIEw
我的目的是要实现随时获取音频并且实时的对该音频打分，如果录音完再进行打分的话，会有很长时间的延迟，录音越长，等待时间越长
My goal is to get audio at any time and score the audio in real time. If the audio is recorded and scored again, there will be a long delay. The longer the recording is, the longer the waiting time will be.

I see, what you want is recording and streaming at the same time (not supported by this library), you can try react-native-audio-record, let me know if that helps.

@aJIEw Thank you. That's exactly what I want.


logo image scales incorrectly

Ubuntu Linux 19.10
Brave Version 0.63.48 Chromium: 74.0.3729.108 (Official Build) (64-bit)

Thanks for reposting this @dantrevino!
I will get this fixed in the next release.


Proposal: running containers on multiple nodes with constraint:global

This issue proposes a new constraint to use alone or in conjunction with other constraints / affinities to force swarm to run newly created containers on "every" node that meets the criteria.
There are common use cases that users need to run multiple containers at once,
especially when they are scaling services to a specific zone of the cluster. (For example, a swarm cluster spanning across multi-cloud providers).
Run on every node:
$ docker run -e constraint:global nginx

The above command will run nginx onto every node returned by the scheduler.
Run on some nodes:
$ docker run -e constraint:global -e constraint:region==thailand nginx

The above command will run nginx onto every node label as region==thailand as they will be returned by the filter.
This is not as elegant as proposed by @aluzzardi in #601. But this constraint will partially implement global scheduling but with different (static) semantic. It will just work and usable in many common cases anyway.
cc @docker/swarm-maintainers
This will also solve #1705 (also ping @winggundamth)

I think it's a good idea, I'd also add a new "state" in the node managment, between "pending" and "healthy" like "warming up" so we don't start scheduling containers on a node until all it's global are launched.
The main issue will be docker ps ? do you expect one line per container ?

The main issue will be docker ps ? do you expect one line per container ?
Similar to a dangling, I'm thinking to propose:

docker ps --filter grouping=true

to allow grouping together all containers started by the same global constraint.
So this kind of filter will be available only when using swarm, just like -e constraint:.
WDYT?

@chanwit Good idea. +1 for this.
When adding new node in cluster, does global container need to be auto started on the new node?

To make it deterministic, it won't.
:-)

Good idea. +1
Sometimes, some containers like system/docker metric collector (cadviser, prometheus's exporter..) can be distributed to all nodes or some nodes.
I think that the proposal is useful for orchestration.

or registrator also, so +1 too.
This way I could even simply add it to my compose instead of my docker-machine provisioning script and by adding some depends_on to be sure it's started before doing anything else ...

This can be implemented with existing container constraints:
service:
    environment:
      - "affinity:container!=*service*"

This works well when starting the app (with docker-compose up or docker-compose scale service=N), but compose will fail when trying to use docker-compose up after images have been updated:
$ docker-compose up
creating app_service_1
$ docker-compose scale service=2
creating app_service_2
$ docker-compose build
Sending build context to Docker daemon
[...]
Successfully built a8b6ca53ce
$ docker-compose up
Recreating app_service_1

ERROR: for service  unable to find a node that satisfies container!=*service*

What's different about this proposal than what has already been included in 1.12?

You can close this since this proposal has been requested since Docker 1.10


Show outcome notification for build-in git command

When using built-in vscode git command like ">git fetch" or ">git merge", it would be nice to show notification showing the status of the command like "Successfully fetch" or "Successfully merge". With this notification, I know if the current command is successful, I can run another command.
Currently, I have to open the source control tab to see the line loader at the top.

Are you not getting a clock badge showing on the SCM icon on the Activity Bar when it is busy?

Currently, there is only just the top line bar in the source control tab and the clock badge in the Activity Bar to indicate that some git process is running. There's no immediate feedback given after Git operation. It'd be a game-changer to have that instant heads-up!
For example:
After we pull changes there is a notification or a message in the source control tab that shows the results of the pull. "Pull from  is complete", or "Warning! merge conflict when pulling from "
Similarly for a merge and sync, checkout,.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Scrape active subscriptions

is there a way of bypassing 'Getting your subscriptions (this may take a while) to only pull active subscriptions. i have over 2000 expired memberships and it takes ages to reload everytime.

I use “—sub-status active” to do this.

Asi te acomoda la lista en el programa por nombre y suscripciones activas para seleccionar
ofscraper -ss active --sort name
Y asi te baja todo de todas las suscripciones activas
ofscraper -ss active --username ALL --posts all

i use this ofscraper -l debug --account-type paid --sub-status active but still takes ages to load.

We have support for user list now
I can make another two special list.
ofscraper.main is for both active and expired, and is the main list onlyfans keeps track of for you
I will add an extra list can
ofscraper.active
And another one called
ofscraper.expired
It would be a little too difficult to try to figure out which list to pull on the fly.
But if you know you only want to scrape certain types of accounts that would be the way to go.

Hi - Thank you for adding this
i keep getting this error when using ofscraper -ul active
Exception: You have filtered the user list to zero
Please Select less restrictive filters and userlists
Exception in thread Thread-1 (logger_process):

Re-reading my previous post would have helped here
The list name is specifically "ofscraper.active"
The list you gave has no meaning unless you have a list with that name on the site

i got it :) THANK YOU!


[question] passive scanning

on passive scanning page it says that learning can be sped up by using the android scanner app.  what mode do you use it in - scanning or learning?
And I'm assuming that i should make the name of the device on the android scanner the same name as the device name that the scanning computers are learning about - e.g., wifi-XX:XX:XX:XX:XX:XX where XX:XX:XX:XX:XX:XX is the wifi mac address of the phone.
i used learning mode on the android scanner while the scanning computers (i have 2 rpi3's) were in learning mode.  It's a little odd - the android scanner crashes (or more accurately, the gui crashes) but as i monitor my mosquitto server, i can still see all of the learning data get published to mqtt.  But when i stop learning on the scanning computers and start passive scanning, the results are wrong.  i learned 2 rooms as described above, and then went to 1st learned room, and did a force stop on the android scanner app , put the scanning computer back to scan mode, and when monitoring the mosquitto traffic, it's reporting that the phone is in the 2nd learned room.  If i shut down passive scanning (sudo kill -9 on the rpi for the find3-cli-scanner) and turn the android scanner on the phone on, the mosquitto data shows the correct room.  (& similarly to above, if i leave the passive scanner running on the rpi's and turn on the android scanner on the phone, the android scanner gui will crash, but mosquitto is still showing scanning data from the phone).
Does it sound like i'm doing this correctly?  if so, any ideas on what to check on to see what might be going wrong w/ passive scanning?
thx, jay

what mode do you use it in - scanning or learning?

Either mode. Both modes will force the phone to periodically (every 10 seconds) make a probe request to the surrounding routers. This is the type of probe request that is needed for passive scanning. This probe request naturally occurs every minute to 10 minutes depending on phone use, so the app just speeds it up a bit.

I'm assuming that i should make the name of the device on the android scanner the same name as the device name that the scanning computers are learning about - e.g., wifi-XX:XX:XX:XX:XX:XX

Yep, this is correct.

Does it sound like i'm doing this correctly? if so, any ideas on what to check on to see what might be going wrong w/ passive scanning?

I'm not sure - are you actually telling the server that you are doing learning? In passive scanning it doesn't care whether or not the smartphone is "learning" or "tracking" mode. Instead you have to make a POST request to the server to specify, e.g.
$ http POST https://cloud.internalpositioning.com/api/v1/settings/passive \
     family=FAMILY device=wifi-XX:XX:XX:XX:XX:XX location="LOCATION YOU ARE LEARNING"

Please let me know if you have more questions! Your confusion is a bug in my documentation and I'd like to make it more clear for you and everyone else :)

yep - did that command to tell the server am doing learning.
am doing more learning with passive scanning to see if that helps.  this time, instead of using the android scanner on the phone, i plugged in the phone (it's a samsung), and turned on a video to keep the screen on.  It's learning more quickly (i can watch the number of data points via the dashboard) - but not as fast as using the android scanner.  I did this because i began to wonder about fingerprints and scanner source...
So, here's the question..  what is the difference in the fingerprints that the server learns from active scanning by the android scanner vs fingerprints that the passive scanner snoops and passes on to the server?
& if the server database has both fingerprint types for any given device in a given location - does it/can it differentiate between the two types?  or can it use either to make a location determination?  or does having both types confuse things?

something just feels like learning via passive scanning isn't working.  Learned some more, and the behavior seems like the reported location from scanning is whatever location is last learned.
i'm wondering if my scanning command above is wrong or maybe something about promiscuous mode operation isn't work right or something similar.
iwconfig reports:
pi@rpi2:~ $ iwconfig
wlan1     IEEE 802.11  Mode:Monitor  Frequency:2.432 GHz  Tx-Power=30 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

The phone is connected to a 5G radio (the particular access point i'm connected to has it's 2.4Ghz radio turned off).  I mention this because the above output shows a 2.4Ghz frequency...  maybe i need to connect to a different network?

Good, glad you figured it out.

what is the difference in the fingerprints that the server learns from active scanning by the android scanner vs fingerprints that the passive scanner snoops and passes on to the server?

They are mutually exclusive.
Fingerprints that are learned from active scanning are metrics for the distance between a phone and a router/access point.
Fingerprints learned from passive scanning are metrics for the distance between a passive scanner and anything that uses WiFi. In practice passive scanning is "reversed". Passive scanner X,Y,Z determine distances to phones/routers/computers A,B,C. A single passive scanner, X, has signals for A, B, C. In the server these scanners X,Y,Z are pooled together and reversed. Instead of inserting a fingerprint for X with signals to A,B,C, the fingerprint will actually be for A with signals X,Y,Z (similar to B,C).
The only way these would overlap is if you had a passive scanner that was also a router, which is possible but I don't think anyone would normally do this (though I tried).


drivers: modem: add Sierra Wireless HL7800 Modem Driver

The driver utilizes the CONFIG_NET_OFFLOAD setting to avoid the
normal handling of IP packets, and instead uses a socket-like
UART interface to handle incoming and outgoing data via AT commands.

LGTM

Thanks for your patience and thorough review.

@mike-scott I wonder if you could take a look at this PR that falls under your area of maintenance 👍

@mike-scott I wonder if you could take a look at this PR that falls under your area of maintenance

Looking today.  Sorry for the delay.


Upgrading SDK Build Tools and Implementation library

Summary of the Pull Request
Upgrading SDK Build Tools and Implementation library

PR Checklist

[ ] Closes: https://github.com/microsoft/PowerToys/issues/30917
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Bit unsure why the VCM Shared lib didn't get upgraded during this

/azp run

Merged main and fixed conflicts: https://github.com/microsoft/PowerToys/pull/30827 added WIL to SettingsAPI project.


Fix infinite recursion in ParseDescriptorBlockVariableUsage()

And refresh tests scripts to include all the test files.

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


does apollo 6.0 has active  lane chage algorithm to pass the car ahead（just in  a relatievely low speed）  in the lane follow  scenario ？

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04):
Apollo installed from (source ):
Apollo version (6.0):
Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

Please use bullet points and include as much details as possible:

Supporting materials (screenshots, command lines, code/script snippets):

You mean relatievely low speed ? Then how can we keep the car following? If this function on, the car always wants to overtake or slow down

You can refer to "PathLaneBorrowDecider" for this function. The ego vehicle need decide if it can borrow the lane first and then calculate the bypassing path.

This issue is closed due to long time no reply.


feat: Add CMEK support for cross-region read replicas

Fix #249
It is a breaking change. variable read_replicas has an extra key encryption_key_name

Thanks for the PR! 🚀✅ Lint checks have passed.

/gcbrun

Anyone experiencing weird issues with this?
I have been passing in the var, and now its saying the read replica KMS key will be set to null and requires replica replacement. I let it destroy, and give it another name or wait 7 days for the name to come available, and It creates the new replica instance just fine. However, on the next run, it goes to destroy it again.

I had replicas created before this version bump, they were already getting the encryption_key_name passed in as a value, so the state file has the encryption_key_name set. With this bump, its now trying to set that value to null, resulting in a replica recreation.

encryption_key_name  = (join("-", slice(split("-", lookup(each.value, "zone", var.zone)), 0, 2))) == var.region ? null : each.value.encryption_key_name
https://github.com/terraform-google-modules/terraform-google-sql-db/pull/251/files#diff-2961a2500544e56735fcf3af9d494ba4c33d54dba1211b88782b0c1c4805d81cR32
appears to be the culprit. There is no way i can continue without re-creating the replicas and ensuring that I pass in null the next creation. If i dont pass in null for replicas, the instance still gets created as the provider/api still accept it and the following TF runs will recreate it and be in a loop.

@jmymy Can you open an issue w/ the details? Would also be happy to review a PR.


feat(k8s): add redirect for status page

Link to Phabricator
Ticket https://phabricator.wikimedia.org/T365494

Prior discussion
Some discussion around what status code to use happened on Mattermost https://mattermost.wikimedia.de/swe/pl/hdmn83gjrbbquf4911pb3k5hkc

Describe the changes
This PR adds a chart that lets users define a list of from/to pairs that will create top level ingresses that redirect to the given URL.
Currently, the only use case is to redirect (temporarily) status.wikibase.cloud to https://wmde.github.io/wikibase-cloud-status/.

This is what I need help with
A few questions:

Does this really need to be so complex? Is there a simpler way to do this, e.g. by configuring the ingress-nginx/ingress-nginx chart correctly?
In the long run, does it even make sense to deploy this to staging?

For testing purposes, I left the ingress dangling in staging:
➜  wbaas-deploy git:(main) curl -I https://status.wikibase.dev                                                                                wbaas-local
HTTP/2 302
date: Tue, 04 Jun 2024 13:05:20 GMT
content-type: text/html
content-length: 138
location: https://wmde.github.io/wikibase-cloud-status/

Does this really need to be so complex? Is there a simpler way to do this, e.g. by configuring the ingress-nginx/ingress-nginx chart correctly?
There might be, but I couldn't think of or find one quickly. I think this is great as it is already.

In the long run, does it even make sense to deploy this to staging?
I guess it's harmless, plus we can use it for testing purposes in case the redirect will change in the future


chore(main): release 1.15.0

:robot: I have created a release beep boop
1.15.0 (2024-06-05)
Features

Add Infrastructure github action (5a14b30)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/andresousadotpt/reminder-bot/releases/tag/v1.15.0 :sunflower:


fix: no state in cache for finalized checkpoint state

Motivation

Got this error that cannot find finalized checkpoint state in a 0-historical checkpoint state node

Error: No state in cache for finalized checkpoint state epoch #273222 root 0x100589e1cdf61a69a71d3e8dc0d287e0d86df7e422402566d1c1b00ab7f69efc
    at StatesArchiver.archiveState (file:///usr/src/lodestar/packages/beacon-node/src/chain/archiver/archiveStates.ts:91:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at StatesArchiver.maybeArchiveState (file:///usr/src/lodestar/packages/beacon-node/src/chain/archiver/archiveStates.ts:54:7)
    at JobItemQueue.Archiver.processFinalizedCheckpoint [as itemProcessor] (file:///usr/src/lodestar/packages/beacon-node/src/chain/archiver/index.ts:108:7)

This is due to the reorg scenario when processed state doesn't know about the unknown root checkpoint state

Description

Cover reorg scenario: also persist any unknown root checkpoint states when processing a state
Performance note:

In normal condition we persist exactly 1 checkpoint state per epoch
In reorg scenario we may persist >1 (most likely 2) checkpoint states per epoch

part of #5968

e2e tests passed, ready for review

Looks good overall. Minor comments

:tada: This PR is included in v1.18.0 :tada:


Major rewrite and code cleanup

This is a major rewrite of the entire code base; however, backward compatibility is preserved.  Prior to pulling this into master, it would be a good idea to produce a preview release and get some additional testing in the real world.
Features:

The code is now thread safe.
Supports X-Sendfile and X-Accel-Redirect file serving optimizations.
All tests pass under MRI.

Switched to minitest.
100% code coverage.

All classes and methods are fully documented.

Yardoc is used to produce documentation.

The project is fully gem-ified.

Rake tasks have been added to help ensure future releases are produced consistently.

TBD:

Review the NEWS.md file descriptions for existing releases.

An additional feature:

Support for X-Sendfile and related file serving optimizations

I just tested on Windows, and there are currently 5 failures under MRI 2.1.6.  Those appear to be due to line ending differences which should be fairly easy to fix.  Unfortunately, the tests instantly cause a segfault under MRI 2.2.2 on that OS.
I'll work on fixing up the failing tests for Windows.

The tests now work on Windows.  I don't know what to do about the crash on MRI 2.2.2 though.

All tests pass on Windows with MRI 2.2.3, so the segfault must be a 2.2.2 bug.

I found the repository that was used to build the previous gem releases and used that to provide descriptions for those releases.

Excellent work @javanthropus ! I'm excited for this new version to come out. :+1:

Very nice! I'll go through the code and see if I have any comments/questions.
MRI 2.2.2 is only a couple of months old, so I suppose the Windows crashes might be due to some lingering bugs on that platform... We'll see. Great to be able to support grack on Windows anyway.

Sounds good.  I'm mostly concerned about the backward compatibility.  It would be nice to see some folks try this version out to see if it's a drop in replacement.  I don't want to preserve that logic for long, but we'll get more uptake if people can ease into the new way.

I'm getting just one failure on the tests:
  1) Failure:
GitAdapterTest#test_receive_pack [/Users/dawa/projects/grack/tests/git_adapter_test.rb:51]:
Expected /\A001b# service=receive-pack\n0000\d{4}cb067e06bdf6e34d4abebf6cf2de85d65a52c65e refs\/heads\/master\000 report-status delete-refs side-band-64k quiet ofs-delta.*\n0000\z/ to match "001b# service=receive-pack\n00000087cb067e06bdf6e34d4abebf6cf2de85d65a52c65e refs/heads/master\u0000report-status delete-refs side-band-64k quiet ofs-delta agent=git/2.2.0\n0000".

I can fix this by changing the expectation to the following:
%r{\A001b# service=receive-pack\n0000\d{4}cb067e06bdf6e34d4abebf6cf2de85d65a52c65e refs/heads/master\u0000report-status delete-refs side-band-64k quiet ofs-delta.*\n0000\z}

So it looks the regex should more lenient to allow the additional "\u0" and the lack of a space before "report-status"

In the test failure, I'll bet the only issue is that space character.  "\u0000" should be the same as "\000", unless there is an encoding problem.
What Ruby and Git are you testing with?  I ran with various Ruby versions in the 2.x series and Git 2.1.4 on Linux and Git 1.9.8 or thereabouts on Windows.

I'm on MRI 2.0.0 on OS X, git 2.2.0. I've noticed small differences like these between different git versions before. It's not really worth chasing all of them down I think, as long as it doesn't cause Travis to fail. Speaking of which, I wonder travis isn't automatically testing this PR branch. Will take a look. :)

Ok, think I'm finished reading and testing the code. Can't find any substantial issues really, and the code is so much more clear now!
One catch I came up with: you omitted the is_subpath? logic I implemented here in favor of the bad_uri? method, which just disallows any URI containing . or ... That's nice and clean, but there's an edge case it doesn't deal with:

cd to a testrepo you're serving via grack and do ln -s /path/to/some/dir/on/the/system loophole
Now any repositories in /path/to/some/dir/on/the/system can be cloned with:
git clone http://localhost:8080/testrepo/loophole/somerepo

It's not a very big issue since users will normally not be able to create symlinks in a directory being served by grack. But of course that might happen accidentally (or due to some other security issue), and then I think grack shouldn't escalate the problem. So for a request path of the form testrepo/bla/bla, I think we should check whether File.expand_path(path) is actually a subdirectory of root/testrepo. What do you think?

Given that you would have to have some level of admin access on a server in order to create such a symlink, the risk of exploitation via a symlink is rather low.  Further, it may actually be desirable in some cases to use a symlink intentionally, such as gluing together various locations on the filesystem due to space constraints or similar issues.

I'm mostly concerned about the backward compatibility. It would be nice to see some folks try this version out to see if it's a drop in replacement. I don't want to preserve that logic for long, but we'll get more uptake if people can ease into the new way.

After we merge this, I can ping some people who I think use te RJGitAdapter and ask them to give this a spin. If we give the new gem release a version like 0.3 (or wherever we want to start counting) or even 0.3-pre, users should be sufficiently warned about potential breaks in backwards compatibility.

I was thinking of bumping to version 0.1.0 so that we could begin following semantic versioning.  We could cut a pre-release of that for testing purposes (0.1.0-pre1).  When we're eventually ready to remove the backward compatibility code, we could bump to 1.0.0 to signify the breakage.

I was thinking of bumping to version 0.1.0 so that we could begin following semantic versioning.

:+1:
In other news: Travis isn't running yet for this PR because of the merge conflicts, of course.

Given that you would have to have some level of admin access on a server in order to create such a symlink, the risk of exploitation via a symlink is rather low. Further, it may actually be desirable in some cases to use a symlink

Fair enough I think. It's easy enough to override bad_uri? for any users who might want to impose additional checks.
If you can solve the merge conflicts, travis should test this branch and hopefully show all green lights. :)

I can merge the master branch into this PR.  For the most part, this will mean chucking whatever is in the master branch.  Can you think of anything in particular that needs to be preserved?

By all means, go ahead. Have to run now unfortunately, will see what happened tomorrow!

The last couple of commits should resolve the test problems that were seen by travis-ci and you @dometto.

Great, let's merge then, and I'll cut a preview release.

Great! There are rake tasks to help with version string management, tagging, and releasing.  Let me know if you run into any issues.

I just found a small difference in behavior with this new version.    The new version returns a 404, effectively denying all cloning (with the wrong result code) unless dumb HTTP mode is specifically requested.
I should be able to resolve this discrepancy, but this whole thing feels like permissions are being handled incompletely.  What I would prefer is to have settings for granting broad read and/or write access rather than partially limiting read access like we do now.  Such a change would definitely not be fully backward compatible though.  We couldn't support the automatic fallback mode, but maybe that isn't very widely used.
Thoughts?

I've got the change that fully manages read and write permissions ready to go.  As I mentioned, this would definitely break the case where someone denied upload-pack RPC and expected the dumb HTTP fallback to take over.  The upside is that this new code makes it even easier to extend the Grack::App class to handle per-user, per-repository permissions in a clean and simple way.
Should I add this to the PR or try to preserve backward compatibility for now?

I say add it to the PR. I think the fallback functionality is probably not used often, as is dumb http mode in general. Git supports smart http since 1.6.6. So I think sacrificing dumb http fallback in some cases for the sake of better  authorisation management is justified.

This last change is better, but we'll want to expand upon it in the future in order to make it easier to integrate with authentication systems.

Good to have some kind of authentication in place. Apart from my in-line questions about the receive_pack_rpc I have no comments. Unless you can think of something that has to be addressed now, I say we merge and cut a preview release. :)

I'll take a look at those methods you mentioned in a couple hours. I'll let
you know what's up then.
On Mon, Sep 14, 2015, 06:05 Dawa Ometto<EMAIL_ADDRESS>wrote:

Good to have some kind of authentication in place. Apart from my in-line
questions about the receive_pack_rpc I have no comments. Unless you can
think of something that has to be addressed now, I say we merge and cut a
preview release. :)
—
Reply to this email directly or view it on GitHub
https://github.com/grackorg/grack/pull/3#issuecomment-140040702.

@dometto, unless you find more issues, please go for the first pre-release.

First prerelease done!