Get Token request returned http error: 401

adal.adal_error.AdalError: Get Token request returned http error: 401 and server response: {"error":"invalid_client"
,"error_description":"AADSTS70002:
The request body must contain the following parameter: 'client_secret or client_assertion'.
I use code from example https://github.com/cmberryau/pypowerbi .
I change nothing except credentials.
Where I should use "client_secret"?
p.s. Sorry for bad english

Looks like you might be having an issue with adal authentication. Ensure you're able to authenticate with your credentials normally, if that is the case I can investigate this further.

Have the same problem

This is an authentication issue, which is handled by the adal library. https://github.com/AzureAD/azure-activedirectory-library-for-python

FYI: I managed to get token by supplying client secret.
token = context.acquire_token_with_client_credentials(resource_url, client_id=client_id, client_secret="sec")

FYI: I was also facing this issue & I managed to get token by supplying client secret.
token = context.acquire_token_with_client_credentials(resource_url, client_id=client_id, client_secret="sec")

Hi. Could you advise what must be the resource URL. I am trying to write a python script that accesses the dataset refresh status and update a DB table with that information. Can we get the client_id and client_secret for a specific powerbi workspace inside Azure AD? Please advice.

Resource url is this: https://analysis.windows.net/powerbi/api
You can get client secret from Azure AD. You need to assign permissions & click Grant permissions explicitly to make it work.

Resource url is this: https://analysis.windows.net/powerbi/api
You can get client secret from Azure AD. You need to assign permissions & click Grant permissions explicitly to make it work.

Thanks for the response. Will check this!

Check this example for complete usage https://bitbucket.org/omnistream/powerbi-api-example/src/master/

Brilliant document. Thanks for sharing. I am following that now. In my case I am writing a script to access the last dataset refresh time stamp .  Will I still need to register an app? Or is there any other app id and app secret that I can fetch in AAD?. Just trying to put things in perspective. Appreciate advice

Check this example for complete usage https://bitbucket.org/omnistream/powerbi-api-example/src/master/

Brilliant document. Thanks for sharing. I am following that now. In my case I am writing a script to access the last dataset refresh time stamp .  Will I still need to register an app? Or is there any other app id and app secret that I can fetch in AAD?. Just trying to put things in perspective. Appreciate advice


Replace superjson and its associated Babel plugin with our own date serialiser

We added superjson to handle serialisation of JavaScript Date objects through our Next.js props, but we don't use it for much else. Jamie spotted that it's preventing us from using the SWC compiler when we build:

info  - Disabled SWC as replacement for Babel because of custom Babel configuration "babel.config.js" https://nextjs.org/docs/messages/swc-disabled

I said I'd do a brief spike on replacing superjson with our own JSON Date serialiser/deserialiser, so we can use SWC for our builds – this PR is the result of that spike. It seems to work locally when I try it on a few pages where we've had issues with dates previously (e.g. events, what's on), and the site still builds correctly.
The interesting bits are in json.ts and _app.tsx; everything else is just pointing pages at the new function for serialising JSON.
We don't have to merge this, and if it turns out to be buggy or broken in some way, we should just roll it back rather than sinking too much time into it – but I think it's interesting to consider.

Based on a quick glance: it's ~30-40s faster to build the Docker images in Buildkite than before. 🥳

We've got a bit of flakiness in the e2e tests, so I'm going to hold off merging until that's resolved – this is a potentially disruptive change and I don't want to pile it on top of another one.


Fixed Matrix Multiplication in DDP

Matrix-vector multiplication is carried out first, instead of matrix-matrix multiplication. This cuts the number of memory allocations and runtime.

Coverage remained the same at 92.876% when pulling 4527aee33d5ac0f0ef6d94ba84da5b7d9ffd7dd2 on MaximilianJHuber:fix-ddp-matrix-mult into 30eac7739b0542e3c2e7169320d1f8314b8d7c11 on QuantEcon:master.

[Current coverage][cc-pull] is 92.87%

Merging [#123][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #123   diff @@
==========================================
  Files            19         19
  Lines          1137       1137
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1056       1056
  Misses           81         81
  Partials          0          0

Powered by Codecov. Last updated by [30eac77...4527aee][cc-compare]
[cc-base-branch]: https://codecov.io/gh/QuantEcon/QuantEcon.jl/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/QuantEcon/QuantEcon.jl/compare/30eac7739b0542e3c2e7169320d1f8314b8d7c11...4527aee33d5ac0f0ef6d94ba84da5b7d9ffd7dd2?src=pr
[cc-pull]: https://codecov.io/gh/QuantEcon/QuantEcon.jl/pull/123?src=pr

Great work, thanks!


Vendor<EMAIL_ADDRESS>

How to categorize this PR?

/area open-source
/kind enhancement
What this PR does / why we need it:
Vendor<EMAIL_ADDRESS>and adapt breaking changes.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Similar to https://github.com/gardener/gardener-extension-networking-calico/pull/293
Release note:

The following dependency is updated:
- github.com/gardener/gardener: v1.76.0 -> v1.77.2

/test pull-extension-networking-cilium-e2e-kind

@shafeeqes: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name	Commit	Details	Required	Rerun command
pull-extension-networking-cilium-e2e-kind	cde2c35 link	true	/test pull-extension-networking-cilium-e2e-kind
Full PR test history. Your PR dashboard. Command help for this repository. Please help us cut down on flakes by linking this test failure to an open flake report or filing a new flake report if you can't find an existing one. Also see our testing guideline for how to avoid and hunt flakes.

Looking into the failing test.

It's because go embed doesn't support symlinks, will fix it.

/hold

As far as I understand, the single configmap with symbolic links to it was replaced by two copies of the same. I do not like the approach as we need to update this configmap based on upstream cilium releases. Having two copies of the same data asks for trouble, i.e. outdated copies. If I understand it correctly, it looks like the symbolic links were only used for hash calculation of the configmap in the agent daemonset and operator deployment. Adapting those paths should be sufficient instead of duplicating the configmap. WDYT?

This is not possible because we cannot access a file outside the chart directory of the deployment.

/test pull-extension-networking-cilium

@ScheererJ I don't have much ideas for how to remove the duplication here. What should we do then?

/unhold

/lgtm


Refs #33125 Fixed PK creates redundant UNIQUE constraint when field become pk

Ticket link: https://code.djangoproject.com/ticket/33125
When new_type is primary key, we don't need to add unique key.
This issue also happen on MySQL.
it is redundant UNIQUE constraint like report.
I want to add the logic for checking whether unique key exists or not. but I can't find the interface for checking actual db side unique key.
If you know proper interface for checking this, please add or know me 🙇
CREATE TABLE `blog_pony` (
  `name` varchar(32) NOT NULL,
  `nickname` varchar(32) NOT NULL,
  PRIMARY KEY (`nickname`),
  UNIQUE KEY `blog_pony_nickname_3daa418a_uniq` (`nickname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
>>> Pony._meta.total_unique_constraints
[]

I updated the code.

buildbot, test on oracle.


AudioPluginInterfaceCallback object is not transmitted to service if client and service are different apps

In AudioPluginInterface.aidl there is setCallback() method that passes a callback object to the AudioPluginInterface service.
Its corresponding service setCallback() implementation receives in_callback correctly if the client and service are the same app (e.g. aapinstrumentsample on its own PluginManagerActivity), but if they are different apps then in_callback is nullptr.

It is blocking notify_parameters_changed() dogfooding implementation in aap-juce.

I wondered if cross-process callbacks are not supported, but it seems to work at least on Java level. Locally confirmed that this example works (it mentions an example git repo): https://stackoverflow.com/questions/13948671/how-can-i-use-aidl-remote-service-to-deal-with-defferent-clients-concurrent-req/34217138#34217138

Other possibilities:

NdkBinder does not support it yet
it is too early to send callback until onServiceConnected() call is done (it is currently done within the call)

After more investigation, it turned out that NdkBinder lacks android.os.Binder equivalent, and it leads to missing Stub class in the generated code.
When we bind our interface e.g. MyService in .aidl, there will be IMyService.Stub class and IMyService.Stub.Proxy class, along with IMyServiceDefault class. aidl(.exe) generates only IMyServiceDefault which only provides interface methods stubs.
android.os.Binder seems to do a lot of work and it is not easily ported to NdkBinder land (at least the full implementation equivalent would be hard task). We need to get around it.


[BUG] Modifiers get lost (kinda) when copying over local profile from SM 5.1

Please give System Info
OS: Linux Mint 20
CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
GPU: Intel Corporation HD Graphics 620 (rev 02)
Storage: Some SSD
Please give your StepMania Info
StepMania Version: 5.3 alpha 4.9.1
Theme: Simply Love (wip-outfox branch)
Describe the problem
For reference: the profile's Stats.xml contains
<DefaultModifiers>
<dance>C675, Overhead, Cel</dance>
</DefaultModifiers>

and Simply Love UserPrefs.ini contains
PlayerOptionsString=C675, Overhead, Cel
SpeedMod=675
SpeedModType=C

This is where things get weird.
Reproduction:

Select the newly copied over profile after starting outfox.
Select a song and hit enter. The arrows now scroll at 1x speed and the Wave acceleration is on. I never enabled Wave anywhere and the speed should be C675.
After failing/passing the song, start it again, but now hit enter twice to enter the user options.
The options show that C675 is selected.
Go to the uncommon options. The Wave acceleration is on. Disable it.
Start the song. Now the speed is correct and wave acceleration is off. When you play more songs in the same session the options keep being correct.
Quit out of the game. Start it again and select the broken profile. You are now back at step 2.

This issue does not happen with all profiles. Apparently there has to be something in the profile to trigger this behaviour. I included a broken and a working profile with the issue, both created and played with 5.1.
Describe what should happen
The speed should be at C675 and Wave acceleration should be off.
The modifiers should be remembered across restarts of the game.
Logs and Additional context
Logs: Logs.tar.gz
A 5.1 profile where the issue happens: 00000000.tar.gz
A 5.1 profile where the issue does not happen: 00000001.tar.gz

I've done some tests, and It may be due to the fact that the profile that causes the bug is loading an invalid noteskin case, as an example, I loaded the game without a Cel noteskin (as i don't even have one).
The following is a test of how data is being read in the xml, followed by what the game interprets.
Profile::LoadAllFromDir( /Save/LocalProfiles/00000006/ )
Loading /Save/LocalProfiles/00000006/Stats.xml
Done.
dance = C675, Overhead, Cel / [1x] (This is due to the Cel not making sense for the parser, so it returns the default modifiers set upon that point).

So i decided to use what i have on my own profile as settings with a CMod, C600, Overhead, Outfox-note, and loaded that.
Profile::LoadAllFromDir( /Save/LocalProfiles/00000006/ )
Loading /Save/LocalProfiles/00000006/Stats.xml
Done.
dance = C600, Overhead, Outfox-note / [C600, outfox-note]

With no issue, it was up an running. Still unsure where you're getting Wave from, as we have no refference of it being loaded as a Default Modifier. You should check your Preferences.ini for the DefaultModifiers (there are several per game) and your theme's DefaultModifiers (yep, they can set them too).

FWIW, I have the Cel noteskin installed for outfox and it also shows up as an available option in game.
(Let me know if you need the noteskin files, I can send you a tarball.)
Here are all the preferences files:
OutFoxPrefs.ini.txt
Preferences.ini.txt
ThemePrefs.ini.txt
Searching for the word "Wave" in the Save directory doesn't yield any relevant results either.
natano@lvalue:~/.stepmania-5.3/Save$ grep -Rw Wave .
./LocalProfiles/00000000/ECFA-Stats.xml:<Song Dir='Songs/The Starter Pack of Stamina/The Ninth Wave - [Braeden&Tuuc]/'>

I managed to reproduce the issue without Simply Love, but with the Soundwaves theme and a new profile:

Create a new profile
Start a game with that profile
Set speed mod to C675 and play a chart (make sure your profile gets saved)
Restart the game and start a game with that profile again
Your speed mod is now 1x and the Wave acceleration is on

C675 is special. This doesn not happen with C650 or C700. :man_shrugging:
The profile that I uploaded or any custom noteskins are not required to reproduce this issue.

I tried to use C680 on a 'bugged profile' (A profile that used C675 previously) and it was able to save my commonly used mods (C680, Overhead) with a non-stock noteskin (starlight-smnote).  So it's specifically C675 being bugged, not the profile handlers itself.

Looking more over it, my theory now seems it has to do in how the speedmod system was made before AMod was even a thing, given it's unsual implementation, and lack of updates over the years. Gonna look into that.

should be fixed in the next alpha - will leave open for the moment

I can confirm this is fixed on 4.9.7 (pre hotfix).


Add a debug for global classnames

Enact-DCO-1.0-Signed-off-by: Roy Sutton<EMAIL_ADDRESS>Checklist

[x] I have read and understand the contribution guide

[ ] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[x] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
Some components are either improperly adding class names that do not exist in their less files or they are missing placeholder classnames in cases where there is no additional functionality needed.
Resolution
Added a develop-time utility to log global class name leakage.
Additional Considerations
Currently pre-configured with some sandstone global class names.  Could make it configurable.  Could also probably use some sort of global toggle on/off.
Links
PLAT-113213
Comments

I think you're on to a solution there @ryanjduffy, with the class name comparison. This could be reconfigured to look for class names that match a certain obfuscation pattern, and any that don't match that are global, whether on purpose or accident. (globally set intentionally with :global() or ones without matching assignments in the JS(X).

Perhaps we could intercept the css import and proxy it to warn on property access instead?

I removed the custom classnames module and just left the leaking classname fixes.  This should be good to merge now.


App crashes when stopping the IBeaconScanner in a service that destroys itself afterwards

Hi,
I'm using your library in a react-native project where on user logout we want to stop the ibeaconscanner. We do this by sending a broadcast which we catch in a service called BeaconService:
public class UserStopServiceReceiver extends BroadcastReceiver
    {
        @Override
        public void onReceive(Context context, Intent intent)
        {
            BeaconService.this.destroyIntentional = true;
            IBeaconScanner.getInstance().stop();
            BeaconService.this.stopSelf();
        }
    }

However, not long after logout this crashes the app with the follow error:
09-19 17:38:50.008 19149-19149/be.imec.apt.wappr.debug E/AndroidRuntime: FATAL EXCEPTION: main
                                                                         Process: be.imec.apt.wappr.debug, PID: 19149
                                                                         java.lang.NullPointerException: Attempt to invoke virtual method 'android.bluetooth.le.BluetoothLeScanner android.bluetooth.BluetoothAdapter.getBluetoothLeScanner()' on a null object reference
                                                                             at mobi.inthepocket.android.beacons.ibeaconscanner.DefaultBluetoothFactory.canAttachBluetoothAdapter(DefaultBluetoothFactory.java:46)
                                                                             at mobi.inthepocket.android.beacons.ibeaconscanner.DefaultScanService.timedOut(DefaultScanService.java:133)
                                                                             at mobi.inthepocket.android.beacons.ibeaconscanner.handlers.TimeoutHandler$1.run(TimeoutHandler.java:45)
                                                                             at android.os.Handler.handleCallback(Handler.java:751)
                                                                             at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                             at android.os.Looper.loop(Looper.java:154)
                                                                             at android.app.ActivityThread.main(ActivityThread.java:6119)
                                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

This is how we init the iBeaconScanner in the service:
@Override
    public void onCreate()
    {
        super.onCreate();

        Log.i(TAG, "Beacon service is initializing");

        IBeaconScanner.initialize(IBeaconScanner.newInitializer(this).build());
        IBeaconScanner.getInstance().setCallback(this);

        userStopServiceReceiver = new UserStopServiceReceiver();
        registerReceiver(userStopServiceReceiver,  new IntentFilter(INTENT_USER_STOP_SERVICE));
    }

After a logout the timedOutHandler seems to be called and this triggers a null pointer exception because bluetoothAdapter is null.

Hey,
I understand that the issue is that, when you are inside a beacon, and stop monitoring, that the timeout (to trigger the exit callback) encounters a nullpointer exception as you stopped the service.
I'll have to fix the behavior. When you stop, the exit timeouts should be removed.
This is part of our next release, https://github.com/inthepocket/ibeacon-scanner-android/projects/1, however the problem is that I don't now exactly when this release is going to happen :/.

Yes, that is correct. Unfortunately it seems to trigger every time on the Android Emulator, causing a crash. Even though we don't start monitoring if EmulatorUtils.isEmulator() is true.

hello , I will product special I beacon,  I need to virtual I beacon connect with android app . please help me !

Two years later...
The problem is a simple null pointer exception that only occurs on emulators or more recent Android versions (9+ I suppose) when bluetooth is turned off.
BluetoothAdapter.getDefaultAdapter();
I will fix this bug (pr coming soon).


Assymetry in aggregations doc_count calculation

Developing with itemsjs i found strange assymetry in doc_count calculation for first and second facets
To reproduce this artefact i made fork of your  jsfiddle demo
i exclude third facet and cutted dataset to 4 items
and made next combination of Tags,Actors fields:
prison,Tim Robbins
mafia,Tim Robbins
prison,Christan Bale
mafia,Christan Bale
2 facets are symmetrical  and simalar behavior is expected -see  my demo
but.... if you check 2 different facet values  -you ll see strange assymentry in doc count calculation for different facets
printscreen supplied

Hey, please check if with conjunction=true you are getting desired results
  aggregations: {
    tags: {
      title: 'Tags',
      conjunction: true,
      size: 10
    },
    actors: {
      title: 'Actors',
      conjunction: true,
      size: 10
    }

Yes it is symmetry now. But not the right symmetry.
i will try to explain -better on examples:
I have 2 projects with facet navigation
https://www.roonready.com/  -its pure javascript -i got it somewhere
https://www.roonready.ru/  -its elastic search realization
Sorry -there are 2 differnet langauges -but similar data set and facets
If you explore it - you will see different behavior on each case
More right is elastic version
pure javascript is like "conjuction=true" -not so good
sorry , if not so clear

It does not matter if it is Elastic, Solr, Algolia, ItemsJS or other search engines. The faceted search results should be the same everywhere. It's just a math
In ItemsJS you can make conjunctive and disjunctive facets. Conjunctive is usually great if you have many values per field (i.e. tags, brands) and disjunctive usually if there is one value per field (i.e. country)
Please prepare a reproduction case (where you see a problem) with small dataset, configuration, input and your desired results (like here https://github.com/itemsapi/itemsjs/issues/77#issuecomment-849594304). It will be very helpful to understand if the problem is in the configuration or in ItemsJS per se

ok i will try
let i have dataset
{
    "items": [
      { "a": 1, "b": 3 },
      { "a": 1, "b": 4 },
      { "a": 2, "b": 3 },
      { "a": 2, "b": 4 }
    ]
  }

Configuration for facets
aggregations: {
    a : {
      title: 'Tags',
      size: 10
    },
    b: {
      title: 'Actors',
       size: 10
    }

i make request
filters: {
        a: [1],
        b: [3]
      }

result for now
{
  "data": {
    "items": [{ "a": 1, "b": 3 }],
    "agregations": {
      "a": {
        "buckets": [
          {
            "doc_count": 1,
            "key": 1,
            "selected": true
          },
          {
            "doc_count": 1,
            "key": 2,
            "selected": false
          }
        ],
        "name": "a",
        "position": 2,
        "title": "Tags"
      },
      "b": {
        "buckets": [
          {
            "doc_count": 1,
            "key": 3,
            "selected": true
          },
          {
            "doc_count": 0,
            "key": 4,
            "selected": false
          }
        ],
        "name": "b",
        "position": 1,
        "title": "Actors"
      }
    }
  }
}

desireable result
``{
  "data": {
    "items": [{ "a": 1, "b": 3 }],
    "agregations": {
      "a": {
        "buckets": [
          {
            "doc_count": 1,
            "key": 1,
            "selected": true
          },
          {
            "doc_count": 1,
            "key": 2,
            "selected": false
          }
        ],
        "name": "a",
        "position": 2,
        "title": "Tags"
      },
      "b": {
        "buckets": [
          {
            "doc_count": 1,
            "key": 3,
            "selected": true
          },
          {
            "doc_count": 1,
            "key": 4,
            "selected": false
          }
        ],
        "name": "b",
        "position": 1,
        "title": "Actors"
      }
    }
  }
}

the difference is last doc_count: 1 !!!!
Explanation:
doc_count for facet value  have to show to users: How many items will be found as soon this value will be active ( or will be added to already found items in conjunctive facet case) So if i take value 2 for "a" - it will be found -1 item : {a:2,b:3 } it is clear from
 {
            "doc_count": 1,
            "key": 2,
            "selected": false
          }

So the same expected for value 4 of b -to have doc_count:1 , as making it active produces 1 item  to be found {a:1,b:4}

@SergeyRe ok, there seems to be a bug! In ItemsJS 1.x there is your desired result and in ItemsJS 2.x not. I'll need a few days for debugging and fixing it.

Finally - bug with 2.1.5
2.0.0-alpha.1 - it ok
thid fiddle https://jsfiddle.net/SergeiRe/m1ogqsh2/18/ now with it and works fine

It seems to be ok for your case until 2.1.3. After that I've refactored code responsible for facets calculations a little bit.  I hope there will be simple fix

yes 2.1.2  is the last to work fine

Please review version 2.1.8 if it is ok. This version passes previous tests and your case.
This is your first fiddle with new version https://jsfiddle.net/cigol/1gso409e/
Keep in mind that conjunction for facets is true by default now so you need to set them as false in your case (https://github.com/itemsapi/itemsjs/pull/84)

Thanks a lot. Works fine in my project (~1000 items)


Updating to amqp version 2.4.2

As amqplib is quite old (https://pypi.org/project/amqplib/#history) and I had some issues with reconnecting, I propose to update it to amqp, which has the same interface, but is maintained and widely used.

Would it be possible to add some instrumentation testing for the GELFRabbitHandler to validate the implementation and usage of this library?

It would be an integration test, using an instance of rabbitmq. They are not in place, so it is not trivial to implement, which is why I did not include tests yet.
I see that you did add some for direct graylog integration testing, so I will try re-using those.

Doing a integration test would be preferred. As it also give a implicit example on how to setup graypy -> rabbitmq -> graylog.
Good luck with working off of that past branch. I sadly was struggling with setting up a rabbitmq -> graylog environment with docker that was performant and effective for testing.

Codecov Report

Merging #119 into master will increase coverage by 1.47%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #119      +/-   ##
==========================================
+ Coverage   95.97%   97.44%   +1.47%
==========================================
  Files           3        3
  Lines         273      274       +1
==========================================
+ Hits          262      267       +5
+ Misses         11        7       -4

Impacted Files
Coverage Δ

graypy/rabbitmq.py
93.22% <100%> (+7.01%)
: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 d3d1d85...4d92ac6. Read the comment docs.

@martinvy any updates on this PR? This seems to fix an issue I've been having with graypy/amqp.
The amqplib module is so old that is requires you to stick to a version of setuptools no newer than 59.8.0 in order to install graypy with the amqp extra. Otherwise after doing an install of graypy will get you this issue:
>>> import graypy
>>> graypy.GELFRabbitHandler()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'graypy' has no attribute 'GELFRabbitHandler'

It would be fantastic if we could get a new graypy release in pypi with this fix.

@cyber-conor Good question, I think this pull request is good to go. At the time nobody seemed to work on this project anymore, but I see some recent updates in the last months. @nklapste, could you have a look at this, and if you have the “authority” merge this if you are content?

Would love to see this merged! 💯

Hi guys, I am sorry for the late reply, I missed the notification.
I suggest to use newer amqp version. We currently use my fork in production for few years already, having "amqp>=2.5.1,<6.0.0" in setup.py. We intentionally do not hard-pin the exact version for better flexibility, but amqp==5.3.1 is installed on our systems at the moment to be exact.
My fork contains only one more change (comparing to the main repo) and that's allowing to set timeouts on GELFRabbitHandler, see this commit, which would be great to have also in the main repo.
The PR looks good otherwise. It is nice that you created also the test 👍


Remove dependency on Timber

Jake Wharton's Timber library is pretty awesome, but for an underlying library, it doesn't make much sense to take a dependency on it.
Look into using it in an extensible API way, or just create a LogLevel API with regular Android logs (ala Retrofit)

Will be adding a Log interface API into the Kotlin branch - that way, any consumer can handle it as they see fit.

This will operate similar to SwiftyTeeth's log api


feat: update triggers

Codecov Report
Attention: Patch coverage is 92.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 91.22%. Comparing base (0c85bd1) to head (abfe681).
Report is 1 commits behind head on main.

Files with missing lines
Patch %
Lines

.../journeys/record-investigation/triggers/schemas.ts
84.61%
2 Missing :warning:

...urneys/update-investigation/triggers/controller.ts
92.30%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #230      +/-   ##
==========================================
- Coverage   91.22%   91.22%   -0.01%
==========================================
  Files         245      247       +2
  Lines        3705     3739      +34
  Branches      593      601       +8
==========================================
+ Hits         3380     3411      +31
- Misses        321      324       +3
  Partials        4        4

Flag
Coverage Δ

91.22% <92.50%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Ensure all blockchain data types are de/serializable

All blockchain related data types must be able to be de/serialized in order to be stored in a persistent storage.
Question

Should we define katana own types instead of relying on 3rd party crates?
Newtype and define conversion methods ? reuse the 3rd-party types but expose it from a katana specific crate specifically for types ?  completely define new types ?

Completed in #1214


getRelatedTable() on ColumnMap instance throws exception

So I have this instance of Propel\Runtime\Map\ColumnMap, and it has a foreign key (isForeignKey() returns true). But, when calling getRelatedTable() on it, instead of receiving a TableMap from it, I get an exception:
"Call to a member function getTable() on null".
Closer inspection tells me getTable() is being called on "$this->table->getDatabaseMap()" (ColumnMap line 444), which returns null. So my guess is that the question should be: why is getDatabaseMap() returning null?
Still quite new to Propel, so I hope I gave enough information; if not, please tell me so.

The actual question is: Why do you fiddle around with ColumnMap directly? You shouldn't instantiate it on your own. Can you please post your use case, full stacktrace etc? Maybe using sandbox.propelorm.org.

I don't instantiate it on my own, it is what is returned by TableMap::getColumn(), as shown in this sandbox: http://sandbox.propelorm.org/171a236
The goal of all this is to get the metadata of columns from the model, as this already contains most of this data. Seeing this, it would not be sensible to define this metadata in another place again (keeping it DRY, and all that).

$map = $user::TABLE_MAP;
$table_map = new $map();

You shouldn't do that. Do instead $map::getTableMap() and you're golden.
Also, if you need references like in your fiddle, you need to make the table known to the runtime. You do that by letting the autoloader load  the TableMap. You can do that by calling OtherTable2TableMap::buildTableMap(); or simple loading OtherTable2 in your code like class_exists(OtherTable2::class). You need to do this because we do not load all available tables per default into the memory that were existent during build-time (to save memory&cpu).
See my fiddle http://sandbox.propelorm.org/8ffafe5.

Golden, not yet. Your fiddle works (thanks for that!), but now I have a new question: you write in your fiddle
Map\OrganisationTableMap::buildTableMap()

but how do I get the "Organisation"-part? In my fiddle I wrote "$user = new User()", but that was for explaining my question; in my use case I don't know the name of the model beforehand, as an instance of the model is inserted into my class. That's why I am doing "$map::getTableMap()" instead of "User::getTableMap()".

If you don't know your own models, you need to read your model definitions using the .xml files.
In Propel2 there's no such thing as index of all available models, so your only bet is the origin - the xml files.

That's a pity. In that case I wonder if it would not be faster to get all metadata from the XML in the first place, in which case I have two more questions:

does Propel have classes for that, that I can use/reuse?
if I added attributes to the XML that Propel didn't know, would Propel ignore them?

Yes and Yes. However, I'd use simplexml for performance reasons and cache that stuff.

OK, then. :D
Thanks a lot! You've been a great help.


Foundation: avoid unsafe allocations

Replace unsafe mutable pointer allocations for strings, opting to use
arrays.  This avoids unnecessary raw malloc/free handling.

CC: @gmittert @millenomi

@swift-ci please test


production server

Hi! We are ready to move to the main server. We have made all the corrections and the validator has accepted them. What are the next steps?

fine by me @cmil

The corpus is now online at https://dracor.org/pol.
You may still want to add some content README.md, maybe at least the information that is also in corpus.xml. Otherwise the link from dracor.org to the Github repo would be a bit pointless.


[Backport] Coordinator fix balance to try to move max segments instead of up to max segments

Backport of #5927 to 0.12.2.

oh noes, I don't have privileges to restart specific travis tests anymore

@drcrallen thanks for checking. I restarted.
It looks that only some committers have been added to the Apache Druid committers of Github. Did you set your Gitbox account?

@drcrallen you should be able to if you go through GitBox setup: https://gitbox.apache.org/setup/

@jihoonson, that sounds good, let's move #5927 outside of 0.12.2.


Try my implementation

Similar to others, I found many issues with this implementation. So I decided to create my own one. It is bug-free and works very good. You can find it here:
https://github.com/hula-ai/capsule_network_dynamic_routing

Great work!


proxy set up issues

this template comes with the proxy folder, but doesn't have enough documentations talking about how to set it up, and also the proxy doesn't work well with this template. In addition, when the proxy set up, some thumbnails are missing.
So please follow the steps below to set up the proxy:

inside the config.js file, set the "proxyUrl" to the "http://your path to the app/proxy/proxy.ashx?", also make sure the "portalURL" is pointing to "http://www.arcgis.com/" instead of your organization domain

inside the proxy.config file:
<serverUrl url="http://www.arcgis.com/"  matchAll="true" username ="test" password ="test"/>

Since there is an existing bug related, so the proxy will send some invalid requests.  <BUG-000088254 The JavaScript Identity Manager requests are incorrectly formatted, causing errors when going through the proxy.>
So we need to make changes in the code to workaround this bug inside proxy.ashx file by adding the following code:
if ((uri.Split('?').Length - 1) > 1)
{
StringBuilder sb = new StringBuilder(uri);
sb[uri.LastIndexOf("?")] = '&';
uri = sb.ToString();
}
...after this line:
if (uri.StartsWith("http%3a%2f%2f", StringComparison.InvariantCultureIgnoreCase) || uri.StartsWith("https%3a%2f%2f", StringComparison.InvariantCultureIgnoreCase))
The following namespace also needs to be added:
using System.Text;

Since If you are storing login information (username and password or client_id and client_secret) in the proxy you will want to use the addProxyRule option so that requests to the resources with the specified URL prefix are routed through the proxy. But the template is actually not using addProxyRule to append proxy prefix, so  you will need to make changes inside the coreLibrary\bootStrapper.js file by commenting the lines:
// esriConfig.defaults.io.proxyUrl = dojoConfig.baseURL + dojo.configData.values.proxyUrl;
// esriConfig.defaults.io.alwaysUseProxy = false;
// esriConfig.defaults.io.timeout = 180000;
instead adding the code :
urlUtils.addProxyRule({
urlPrefix: "http://www.arcgis.com/sharing/rest",
proxyUrl: dojo.configData.values.proxyUrl
});

Then the application should work, which means you could see the full list of the items inside the group without signing in. But you will find some thumbnails are missing, so you will need to do extra steps to make the thumbnails show up, which is inside the widgets/gallery/gallery.js file after line 249:
change from:
domStyle.set(divThumbnailImage, "background", 'url(' + itemResult.thumbnailUrl + ') no-repeat center center');
To:
var thumbnailUrl_proxy = dojo.configData.values.proxyUrl + itemResult.thumbnailUrl;
domStyle.set(divThumbnailImage, "background", 'url(' + thumbnailUrl_proxy + ') no-repeat center center');

PS: there is still a problem with this is when you trying to open an web map application, it will launch a new tab in browser and require you to sign in again. But you could access web app directly.

Thanks for bringing this to our attention @chen7012 . This app is also available as a hosted web app template in both ArcGIS Portal and ArcGIS Online. Configuring a proxy is not required to use the app in either of these environments.

Hi @chen7012.  Thank you for taking the time to share your proxy fix.....I've been banging my head trying to get this to work.
I'm having troubles following Step 3.  Can you share this snippet of code from your proxy.ashx?
Where exactly are you adding the following code?  Anywhere in the proxy.ashx?
if ((uri.Split('?').Length - 1) > 1)
{
StringBuilder sb = new StringBuilder(uri);
sb[uri.LastIndexOf("?")] = '&';
uri = sb.ToString();
}
And then add then following code?
if (uri.StartsWith("http%3a%2f%2f", StringComparison.InvariantCultureIgnoreCase) || uri.StartsWith("https%3a%2f%2f", StringComparison.InvariantCultureIgnoreCase))
Any help would be appreciated.
Thank you,
Bill

@MikeTschudi : Please assess

Branch proxy-update commit a3827b2cb09cd428727de0045f1b822edb1f91b7 is based on the changes that @chen7012 figured out.
The existing bug referred to appears when the JSAPI's Portal is used with a proxy; a bug report has been filed for it. In the meantime, proxy.ashx was modified to work around this bug. @wspiking, @chen7012 is referencing a newer version of the proxy, which is why you're not finding the "StringComparison.InvariantCultureIgnoreCase" landmark. I made the modifications to the repository's version of the proxy and will explore updating the proxy to the current 1.1 version in subsequent commit(s) in this branch, so please use the above commit URL to get just these changes.
For using the proxy, there's now a pair of sample tags in the proxy.config file--one for username and password and one for clientId and clientSecret. Pick one method, add the credentials, and uncomment that tag.
Another change is that the path to the proxy program is optional. If config.js' proxyUrl value is an empty string, then the proxy is not set up. It will work for public content and provide a message if the group has no public content. If the path is provided, on the other hand, it will be used by the app to access config.js' portalURL both for the group account and for the thumbnails. Note that the proxyUrl path in the Nov_2015 release was incorrect: the leading forward slash should not be there by default.
@allisonmuise, please review changes and instructions for clarity

@MikeTschudi : please merge this change into the develop branch.

Merged via commit<PHONE_NUMBER>af7e4b21460448b2a25e0adf2829de


DO NOT MERGE: Try to debug the ref count problem on Travis CI.

Print stacktrace information when StorageBlockBase::ref() and StorageBlockBase::unref() are called.

@jianqiao Thank you so much for starting this!


Comprehensive indices for advanced analytics queries

Per discussion with @avahowell and @hdevalence, it would be good to support a mode of operation for pd that tracks more data than is strictly necessary to perform as a node. Specifically, historical information about the previous values of things like the validator set, token supplies, and a lot else.
Keeping these things around and indexed would cost disk space and perhaps a small amount of performance, but it would enable people to more easily build custom functionality (e.g. sophisticated trading bots) atop pd without having to fork the codebase and maintain these indices themselves. However, since most users of pd would likely not need these extra indices and not want to pay in CPU time and disk usage for them, they should be opt-in, rather than always-on.
Things to consider:

How does this affect our database schema? (@aubrika)
What things might we want to track?
Is there an extensible way that we could allow people to specify more things to track than we initially think of, without modifying pd?
How fine-grained should the indexing toggle be, and how should that be implemented in such a way as to minimize code complexity and performance cost?

This is a relatively long-term consideration, not high priority at the moment, because it can be built after most other functionality is developed, and indeed probably should be, so we are better informed about the total schemata we are keeping track of.

One basic question is whether we should do this by means of our own tables and indexes in pd, or whether we should use Tendermint's event-indexing mechanism and tell people to configure Tendermint to use Postgres as a backend.

On the Tendermint front, a basic exploration could be:

[ ] how do we get Tendermint to use Postgres as a backend?
[ ] how are Events encoded into the database?
[ ] what Events should we start with?

@avahowell mentions that a lot of IBC relayers expect to be processing Events, so having event support in our code could be tied in to IBC integration.

Our plan is to just use ABCI events for now, rather than doing something special here.


Update resize values according to cloudinary docs

A few values here were not according to the docs and caused errors when using them.
https://cloudinary.com/documentation/transformation_reference#c_crop_resize
Reproduction showing all problematic resize types: https://codesandbox.io/s/blazing-worker-rdm60?file=/src/index.ts

Thanks @kedarguy Looks like the Cloudinary documentation is updated. I will merge your PR :)


Error 'User denied Geolocation' on web

It works just fine on mobile. On web, however, if permission is not granted it throws:
Error: User denied Geolocation
    at Object.throw_ [as throw] (http://localhost:58334/dart_sdk.js:5057:11)
    at html_geolocation_manager.HtmlGeolocationManager.new.getCurrentPosition (http://localhost:58334/packages/geolocator_web/src/html_geolocation_manager.dart.lib.js:37:23)
    at getCurrentPosition.throw (<anonymous>)
    at http://localhost:58334/dart_sdk.js:37450:38
    at _RootZone.runBinary (http://localhost:58334/dart_sdk.js:37320:59)
    at _FutureListener.thenAwait.handleError (http://localhost:58334/dart_sdk.js:32561:52)
    at handleError (http://localhost:58334/dart_sdk.js:33094:51)
    at Function._propagateToListeners (http://localhost:58334/dart_sdk.js:33120:17)
    at _Future.new.[_completeError] (http://localhost:58334/dart_sdk.js:32970:23)
    at async._AsyncCallbackEntry.new.callback (http://localhost:58334/dart_sdk.js:33006:31)
    at Object._microtaskLoop (http://localhost:58334/dart_sdk.js:37568:13)
    at _startMicrotaskLoop (http://localhost:58334/dart_sdk.js:37574:13)
    at http://localhost:58334/dart_sdk.js:33324:9

This is my code:
permission = await Geolocator.checkPermission();

      if (permission == LocationPermission.denied) {
        permission = await Geolocator.requestPermission();
        if (permission == LocationPermission.denied) {
          // Permissions are denied, next time you could try
          // requesting permissions again (this is also where
          // Android's shouldShowRequestPermissionRationale
          // returned true. According to Android guidelines
          // your App should show an explanatory UI now.
          bool? requestAgain = await generateAlertDialog(
            context,
            S.of(context).locationAccessDeniedTitle,
            S.of(context).locationAccessDeniedMsg,
            S.of(context).enableText,
            () => Navigator.pop(context, true),
            leftBtnText: S.of(context).disableText,
            leftBtnOnPressed: () => Navigator.pop(context, false),
          );
          if (requestAgain!) permission = await Geolocator.requestPermission();

          if (permission == LocationPermission.denied) return false;
        }
      }

      if (permission == LocationPermission.deniedForever) {
        // Permissions are denied forever, handle appropriately.
        await generateAlertDialog(
          context,
          S.of(context).locationAccessDeniedForeverTitle,
          S.of(context).locationAccessDeniedForeverMsg,
          S.of(context).okText,
          () => Navigator.pop(context, false)
        );
        return false;
      }

      // When we reach here, permissions are granted and we can
      // continue accessing the position of the device.
      await _getCoordinates();

And this is the method _getCoordinates():
Future<void> _getCoordinates() async{
    context.loaderOverlay.show();

    try {
      getUserInfo.position = await Geolocator.getCurrentPosition();
    } on LocationServiceDisabledException catch (_) {

    }

    _getNearYouRestaurants = _getRestaurantsNearYou();

    context.loaderOverlay.hide();
  }

The problem is that the calls
permission = await Geolocator.checkPermission();
permission = await Geolocator.requestPermission();

are non blocking on web. So the call to
await Geolocator.getCurrentPosition();

is made before permissions are granted/denied and if they are denied it throws error.
Am I doing it wrong or do these calls need to be blocking?

@FRANIAZA thank you for posting this issue. The geolocator_web package indeed contained a bug where it didn't await a future when calling the requestPermission method.
I have just release version 2.0.5 of the geolocator_web package containing the bug fix. If you are depending on the geolocator package you might need to run flutter pub upgrade to make sure you pull in the latest version of the geolocator_web package.


Fixed broken links

The links with the text "Microsoft White Papers for SQL Server 2012" were auto-redirecting to the Microsoft Docs homepage. I updated the broken links to this.

@BeardedFish : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks!


Updates sendgrid django backend library to a more up-to-date version

The old library (https://github.com/elbuo8/sendgrid-django) is no longer compatible with v4+ of the sendgrid-python API and hasn't been updated since January.  I am maintaining this new library, am currently using it in production, and plan on maintaining it in the future.
@ksigler7

 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.

thanks for the update @sklarsa! and thanks for creating and maintaining this new repo

Hello @sklarsa,Thanks again for the PR! We want to show our appreciation by sending                                              you some swag. Could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


Upload binaries to github release in actions

Added new release workflow, and made the ci workflow to trigger it when the publishing should happen.
There has been problems with openssl-sys crate. When cross compiling, openssl built for target is needed. Thus, I enabled vendored-openssl feature in crates-index, to make that simpler.

Not sure how to test the workflow. The simplified version is working on my fork.
https://github.com/staniewzki/cargo-semver-check/actions/runs/3630752868
https://github.com/staniewzki/cargo-semver-check/actions/runs/3630772995

Ah, sorry for that, no idea how those changes made it to the PR. Thanks for the GitHub PR interface tip!

Planning to make a new release either later today or tomorrow morning to test this out. Great job putting it together!


Overlapping address space on workspace creation

Based on this error message when creating a couple of TRE workspaces based on a template. When you don't specify a custom address space, TRE will create the address based on the size you have specified. Unfortunately, it has not been checked if the address space was already set for another workspace:
Hence this:
Message="Cannot create or update peering /subscriptions/*******/resourceGroups/rg-****tredev2-ws-071f/providers/Microsoft.Network/virtualNetworks/vnet-****tredev2-ws-071f/virtualNetworkPeerings/ws-core-peer-****tredev2-ws-071f.

Virtual networks /subscriptions/*******/resourceGroups/rg-****tredev2-ws-071f/providers/Microsoft.Network/virtualNetworks/vnet-****tredev2-ws-071f and /subscriptions/*******/resourceGroups/rg-****tredev2/providers/Microsoft.Network/virtualNetworks/vnet-****tredev2
cannot be peered because address space of the first virtual network overlaps with address space of virtual network
/subscriptions/*******/resourceGroups/rg-****tredev2-ws-e2f1/providers/Microsoft.Network/virtualNetworks/vnet-****tredev2-ws-e2f1 already peered with the second virtual network. Overlapping address prefixes: <IP_ADDRESS>/24.

There should be a checking mechanism for this in the workspace upon creation
Maybe this is related: https://github.com/microsoft/AzureTRE/issues/2986 but in our case we perform this sequentially, whereas the ticket mentioned performs workspace creation in parallel

Have you made any manual action on your environment like:

Delete workspace Resource Groups by other means than the TRE system (like via the azure portal)
Delete any items from the CosmosDB
?

@javos79 any update on this? Thanks.


[Hacktoberfest] update npm packages

Did not realized was using internal type for this
https://github.com/xkre/malaysia-inflation-calc/blob/52df377fc781b7c830e71ca8228e8d9aca4dc7e8/src/state/routeState.ts#L22
Maybe need to change  type to ({ query?: LocationQueryRaw; path: String; } & RouteLocationOptions)


How to try using T5

Great job, but CPM is too big for me. How can I use a small model like T5 or ChatGLM6B

Hi thanks for the interests in our work! You can try data preprocessing (training/dataset_interactive/make_data_search_model.py and training/dataset_pipeline/make_data.py) to obtain the training and test data, then use other repositories like T5 to train your own model. After training, you can modify the inference codes in this repo to do testing.


Add tools for working with nbs files in c++

Adds tools for working with nbs files in c++.
Contains a decoder that can read through an nbs file and an encoder for writing them

While we're at it, it would be nice to get the fix for the broken NBS index generation. Currently index files created during DataLogging recording are invalid, and I think this was fixed on the 4tel end.

Will do in another PR once this one gets merged


NonMaximumSuppression processor changed

This pull request is created for the task of debugging the low mAP score of the SSD300 model after refactoring some of the paz processors.

Requires refactoring for a cleaner code.


Commander Genius for Commander Keen

Project link:

https://clonekeenplus.sourceforge.io/
https://clonekeenplus.sourceforge.io/download.php

Project license: GPLv2
Does it work on 64-bit only Linux: YES
Is source code available?: YES
Is source code stored in Git?: YES

https://gitlab.com/Dringgstein/Commander-Genius

List of Steam AppIds of supported games:

https://steamdb.info/app/9180/

Additional information
id Software 2D platformer classic.

Thanks for the request, I just got the steam version since it was a dollar, so will work on this soon.

Added in https://github.com/luxtorpeda-dev/packages/pull/254


apptainer: 1.3.0 -> 1.3.1

Description of changes
Changelog: https://github.com/apptainer/apptainer/releases/tag/v1.3.1
cc @ShamrockLee @jbedo @SomeoneSerge
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 306626 run on aarch64-linux 1

2 packages built:

apptainer
apptainer-overriden-nixos

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

2 packages built:

apptainer
apptainer-overriden-nixos

apptainers.passthru.tests builds fine on both x86_64-linux and aarch64-linux.


dynamically generated JS code

As user is changing the operations above. This view of the js code required to generate the tx should update.

I actually just pitched this as a feature recently! I think it'd be awesome, but we're not going to get to it any time soon. Going to close this, when we eventually get to an overhaul I think we can reevaluate this as a concept.


Removed top navigation

Removed duplicate navigation. Left logo and search bar in the navbar.
In response to Issue #40

I didn't notice anything that might be different from the design references other than the submit button being a "button" instead of "input" with the type submit. Was that it or is there anything else you may have noticed?


gl-react-image: center and zoom props are only supported with resizeMode='cover'

this is  not  a bug . it's a function support. I think it's very important.
Because if the image width(or height)  is so long .
Can‘t  show a full image when the starting to end .
can't  reduce image.

@StevenKing9 that is the point of the cropping.
it will either zoom to fill width or height so that the image will cover the cropping area.
Dont think i really understand what is your question?


Example support for Burze.dzis.net v2.0.0

Hi, I have made this short example how you can add support for Burze.dzis.net v2.0.0+ to your card.
Fixes #201

Approach used in this PR can also handle changed entity ids:

This PR has been made mostly as a way of showing how the problem can be solved, not as an actual final solution - it was put together in a few hours as a proof of concept.
Potential improvements and checks that need to be performed:

I'm not 100% sure it is able to handle changing state of a sensor without refreshing page
Configuration can be stored in the memory in setConfig method to avoid making unnecessary calls to API during render phase (this data doesn't change; this will make scheduleUpdate method unnecessary)
I haven't tested if other integrations still work

To test if the card displays data correctly you can set coordinates to (0, 0) (manually, by editing core.config_entries file in .storage). You should be able to test if the card is refreshed correctly by changing a state of entities in dev tools.

This PR has been made mostly as a way of showing how the problem can be solved, not as an actual final solution - it was put together in a few hours as a proof of concept.

So this is not the solution and you don't want to work on it?

It can be treated as a starting point on a way to get a final solution. I can work on it, but unfortunately not at this moment, so you can take over development if you want to make it work sooner.

Just to clarify; should I put it on my TODO list or do you want to take over development?

Just to clarify; should I put it on my TODO list or do you want to take over development?

Honesty, i dont know when I will get to it so i would say yeah, put it there. leet me know when you work on this i will do the same, will see who gets it done first

@PiotrMachowski & @MrBartusek any hope to have burze.dzis.net working in HA AD2024? :)
Either remove burze.dzis.net from MeteoalarmCard as supported integration in readme.md or move on with this PR :) it already hangs like 9 months, and windy times are coming to Poland :)

@pskowronek
Quick workaround is known from the day when incompatibility started
https://forum.arturhome.pl/t/integracja-burze-dzis-net-jak-wyswietlic-tylko-ostrzezenia-wlaczone/5189/10?u=szopen

@pskowronek Quick workaround is known from the day when incompatibility started https://forum.arturhome.pl/t/integracja-burze-dzis-net-jak-wyswietlic-tylko-ostrzezenia-wlaczone/5189/10?u=szopen

yup, I think this was the post that led me here to make a ping in this PR :)


Lowered threshold for similar_answer

Previously I had used the same threshold for this rule as "username similar to website," which was way too high considering the difference in sizes between usernames and posts. After a little bit of experimentation, I've decided 70% is a good number to try.

Codecov Report

Merging #619 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master    #619   +/-   ##
======================================
  Coverage    61.2%   61.2%
======================================
  Files           5       5
  Lines        1044    1044
======================================
  Hits          639     639
  Misses        405     405

Impacted Files
Coverage Δ

findspam.py
81.04% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@Undo1 The codecov settings could use some tweaking.


Perlin Noise Type

Perlin noise is basically a morph between hollow and white noise when put into sound. Look into adding this in?

This actually prompted the addition of 4 noise types instead of just perlin, so it was a great deal!


the digit "1" has a weird formatting

It seems like an extra space was added on the right of "1" 🤔
Check below the space between 1 and 9

Yeah, this is due to the font choices. Try a monospaced font like Courier and it should be okay.

ah ok. Is there any other workaround for this besides changing the font?

If you have a particular font you like to use, you can examine all digits in that font, and then hardcode some padding into certain digits. This won't be a general solution, because the padding values will differ for each font, so you should fork the project and make your own modifications.

I just took a closer look at this and there seems to be a fix. I'm gonna create a new release in a moment.

I just released a fix in v0.2.4, please help test and report if your issue has been resolved. Thanks!

Following up on this. I did noticed the issue was fixed on our mobile app just not the web app

@yuhao-nyc Please check out this web app that used this plugin: https://d1qjxjz3vso8bm.cloudfront.net/#/
I don't notice any issues with number 1, is that what you are seeing as well?

If not, please let me know your environment: OS and browser. Thanks.

Hey @h65wang apologize for the late response. It does looks fine on the you post above but in my project it's still acting funny. i dont know if it's because the font i use. I'm running the app on my MBP + Chrome

.


Testinfra 3.x get_variables does not work

When using ansible 2.8 and testinfra 3.0.4 we cannot get variables.  The same problem occurs with Ansible 2.7 when using testinfra 3.0.4.
However, this works under ansible 2.7 and testinfra 2.1.0.  Looks like 3.x broke the get_variables functionality.
host.ansible('setup')
ansible_vars = host.ansible.get_variables()
ansible_vars['ansible_os_family']

    E       KeyError: 'ansible_os_family'

[jodewey:~/git/ansible-role-chrony]   : issue-3(+2/-3)+ ± pip freeze | egrep 'testinfra|ansible'
ansible==2.8.0
testinfra==3.0.4

Hi,
I didn't know about this side effect feature :) In testinfra 2.X we used ansible API directly and looks calling setup filled some variables cache returned by get_variables(). This doens't work in testinfra 3.X because we now call ansible in a subprocess.
I'm not sure we want to provide backward compatibility for this because this was a kind of magic side effect of calling setup.
You can write equivalent code with:
host.ansible('setup')['ansible_facts']['ansible_os_family']

Works like a charm.
Thanks @philpep 🤘


Share the assets (CSS/JS) across KSTAT/Drupal

Make KalaStatic bring in CSS/JS from Drupal 8
Make kalastatic_dot_module bring in CSS/JS from KSTAT

TODO

Render the JavaScript and CSS as HTML output kalastatic/css, kalastatic/js
Have KSTAT include the  CSS/JS in the Prototype
Have KSTAT include the CSS/JS in the Styleguide

https://github.com/kalamuna/kalastatic_dot_module/issues/22


Add NestJS plugin for ESLint to start catching issues before upgrade

This has few errors now revealed and help is needed to fix them...

@paazmaya did update some types
the rest is seems like false-positive

Disabled specific rules for those cases that were considered as false positives.


Video stabilization

Hi,
Is there a way to have video stabilization ?
Thanks.

I did a commit for it:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/commit/15be5effc70b91b489a9ba73970230a215838d24
Let me know if it is working for you.

Ok, super duper quick. Ave Cesar.
I will try and then I tell you.

Hi,
Thanks,
how can I specify this commit using gradle ?

Try this:
implementation 'com.github.pedroSG94:rtmp-rtsp-stream-client-java:15be5effc7'

Hi,
So its working fine but I implement the same on iphone and on android, the stabilization is not top notch.
Maybe using the camera 2 lib should be better when using stabilization.
Thank you very much to replied me quickly.


blog: introducing suspended jobs

cc @soltysh @ahg-g @alculquicondor
Tentatively dated it 2021-03-18. I'll update this later once we agree on a publish date.

/sig apps

Thanks for the super quick review, @alculquicondor and @sftim!
I forgot to mention @palnabarun @divya-mohan0209 and in the original PR description (required for visibility IIUC).

We'll move this through the blog review process.

@adtac Please could you update the Publish date of this blog per the second tab on https://docs.google.com/spreadsheets/d/1-rFkGmpyDN39gY2M_RX6Ugs_AIig9GXw1FkRLWWmWfw/edit?usp=drivesdk.
It is scheduled to be published on 12th April, 2021.

Thanks everyone for the reviews, I think I've addressed all the comments now. PTAL, thanks!

Markdown and wording LGTM

/lgtm

/approve


Fix Typo in param names

Fixes typos in the param names in comments in the LocalHorizontalCoordinateSystem header file

Looks good, thanks for the catch @germanmarques !


project ID does not have access to archive state

Using the Ganache CLI as below:
  -f https://mainnet.infura.io/v3/{project_id} \
  -m "clutch captain shoe salt awake harvest setup primary inmate ugly among become" \
  -i 999 \
  -u 0x9759A6Ac90977b93B58547b4A71c78317f391A28

After executing the following successfully: node mint-testnet-dai.js
The supply script supply-erc20-via-web3.js throws the following error:
Error: Returned error: Returned error: project ID does not have access to archive state
    at Object.ErrorResponse (/Users/timothydalbey/Development/crypto/experimental/supply/node_modules/web3-core-helpers/src/errors.js:29:16)
    at /Users/timothydalbey/Development/crypto/experimental/supply/node_modules/web3-core-requestmanager/src/index.js:166:36
    at XMLHttpRequest.request.onreadystatechange (/Users/timothydalbey/Development/crypto/experimental/supply/node_modules/web3-providers-http/src/index.js:110:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/Users/timothydalbey/Development/crypto/experimental/supply/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/Users/timothydalbey/Development/crypto/experimental/supply/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpResponseEnd (/Users/timothydalbey/Development/crypto/experimental/supply/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
    at IncomingMessage.<anonymous> (/Users/timothydalbey/Development/crypto/experimental/supply/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1201:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

Try restarting your ganache-cli of the forked chain. If you leave it running for too long this issue may come up.
If that doesn't work, and you're using Cloudflare as an HTTP provider, try using a different HTTP provider, like Infura.io.


Documentation does not reflect optional properties

For example for the RequestOptions there's no way to tell that only the url is required and all the other properties can be empty. I guess this will show up in other parts of docs as well.

addressed in crawlee docs


Json acceptor double vs single quotes

Is there anything that can be done to encourage valid json quote choices?
For example, I am using the hermes-2-pro model with a pydantic json prompt, and also doing this structured output using the same schema.
I get invalid outputs like:
{"questions": ["What are some common varieties of apples that have different colors and flavors?', 'How do

The structured generation will switch from enclosing with double quotes, to enclosing with single quotes.
It happens more often if the text is trying to 'quote' something.
Any tips?

A couple of things come to mind:

What temperature are you using? Try temp=0 (i.e. sampling the highest probability token).
Try to help the model focus on producing valid json by ending the prompt with the start of a JSON code block, e.g.:

Given the following paragraph, extract questions into a valid JSON object according to this JSON schema:
${schema}
Output:
```json

There are ways to reduce (or even zero out) the probability of selecting the single quote tokens, but this may remove valid outputs when the input does contain the single quote. In my experience, when the model is getting JSON quotes wrong, it means it's struggling to complete the task, and changing the prompt to be more precise helps.
If you don't mind sharing an example prompt that fails this way, I'll be happy to debug it on my system.

I've tinkered a bit more and you are completely right.
I've been able to get a variety of reliable results.
When it goes astray it does seem to be an indication that there is something problematic with the prompt.
Great job, thanks!


DO NOT MERGE ci: test webhook

Description of changes

Issue #, if available

Description of how you validated changes
Checklist

[ ] PR description included
[ ] yarn test passes
[ ] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
[ ] Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #12730 (f155717) into dev (ec9a2ba) will increase coverage by 47.61%.
The diff coverage is 48.14%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff             @@
##              dev   #12730       +/-   ##
===========================================
+ Coverage    0.00%   47.61%   +47.61%
===========================================
  Files        1296      842      -454
  Lines      149743    38302   -111441
  Branches     1296     7833     +6537
===========================================
+ Hits            0    18239    +18239
+ Misses     148447    18441   -130006
- Partials     1296     1622      +326

Impacted Files
Coverage Δ

...ify-category-function/src/events/prePushHandler.ts
33.33% <0.00%> (+33.33%)
:arrow_up:

...ib/S3AndCloudFront/helpers/configure-CloudFront.js
87.06% <ø> (+87.06%)
:arrow_up:

...lify-category-hosting/lib/S3AndCloudFront/index.js
89.65% <ø> (+89.65%)
:arrow_up:

...s/amplify-cli-core/src/errors/amplify-exception.ts
82.35% <ø> (+82.35%)
:arrow_up:

packages/amplify-cli-core/src/types.ts
100.00% <ø> (+100.00%)
:arrow_up:

packages/amplify-cli/src/commands/console.ts
0.00% <0.00%> (ø)

packages/amplify-cli/src/commands/pull.ts
0.00% <0.00%> (ø)

...y-provider-awscloudformation/src/push-resources.ts
20.73% <0.00%> (+20.73%)
:arrow_up:

...c/extensions/amplify-helpers/auth-notifications.ts
41.00% <4.34%> (+41.00%)
:arrow_up:

...service-walkthroughs/execPermissionsWalkthrough.ts
70.42% <11.11%> (+70.42%)
:arrow_up:

... and 20 more

... and 1275 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Speaker Page, Featured component and Grid component

speaker detail page
featured speaker component
speaker grid component

Disconnected mode navigation to a speaker is throwing an error:


Update release branch in unit tests

Updating release branch tests to be release-0.10 branch instead of release-0.9
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherrypick release-0.10

/meow


Request credentials for an os-climate bucket

Due to a security incident, I heard that we had to ask for a new access key for OSC S3 bucket. Would it be possible to issue that for me? Thanks! @redmikhail

Up! Can you please address this issue because I would like to access the S3 bucket? Thanks

you should receive a download link and passwd.  re-open this issue if you run into any problems


notification dont close

hi i use version 1.4.1 but when i use animate(true) my notification dont close. dissmisWithButton and DissmisWithDelay both not work.
it work if i use animate(false)

@ghost1372 Thank you for reporting this. I'll take a look today and publish a bugfix.
@UmutComlekci You did some changes on that particular piece, any ideas?

@ghost1372 Can you share with us buggy code block? We can understand the problem more clearly.

@umutComlekci
This is my code
var builder = NotificationMessageBuilder.CreateMessage();
            builder.Manager = this.Manager;
            builder.Message = this.Manager.Factory.GetMessage();
            builder.Background(AppVariable.BGBLACK);
            builder.HasBadge("هشدار");
                builder.Accent(AppVariable.RED);
                builder.HasHeader($"آیا برای حذف {param[1]} {param[0]} اطمینان دارید؟");
                builder.Dismiss().WithButton("بله",button=>{});
builder.Animates(true);
            builder.AnimationInDuration(AppVariable.NotificationAnimInDur);
            builder.AnimationOutDuration(AppVariable.NotificationAnimOutDur);

            builder.Queue();

@AleksandarDev  any update?

@ghost1372 I'll release bugfix tonight.


Consider Trusted Workflow Run Crate as specialization of Five Safes Crate

TRE-FX meeting 2023-08-31 propose an alternative to renaming, in that "Trusted Workflow Run Crate" can be an implementation of Five Safes Crate - as a workflow is not necessary for the other aspects of this profile.
I understand this to mean a specialization - in which case there would need to be two profiles.
In this case this profile trusted-wfrun-crate will only add workflow aspects (e.g. programming language, downloading of workflow), while most of the review and integrity process can be in the parent Five Safes Crate profile.
For now we have also considered pure "tasks" as workflows, as a CWL workflow for instance as an implementation detail provides way to specify container etc, which we generalize through the Workflow RO-Crate. An argument can be made that if the workflow is an implementation detail then it should also be so at the profile level, even if no alternative execution detail has been proposed.
For the developer there will then however be two layers of profiles to consider, in addition to underlying technologies like RO-Crate and BagIt. But it could make the "Five Safes Crate" review/integrity aspects general for TREs beyond workflow execution.

This refactoring is better to leave as candidate for generialization beyond TRE-FX - better stay with renaming for now. #12


CORS Problems

Gitea version (or commit ref): 1.9

Description
Even after the 1.9-update I still have issues with CORS:

only one single domain is configurable in cors.ALLOW_DOMAIN, setting it to '*' does not respond with the Origin-Domain but with * (which is not allowed for auth-Requests).
the cors.SCHEMA option doesn't seem to do anything (also, probably only allows one value)
in preflight-requests the authorization-header is omitted but querying the API even with an OPTIONS request results in a 403 Forbidden
What is repository.ACCESS_CONTROL_ALLOW_ORIGIN doing?

Those are mainly limitation/bug in the module: https://github.com/go-macaron/cors
For repository.ACCESS_CONTROL_ALLOW_ORIGIN it is for git http(s) protocol. You can find the PR that introduce it : https://github.com/go-gitea/gitea/pull/5719
On side-note: We maybe should clean some configuration and replace hsts and cors specific case via configuration like suggested here: https://github.com/go-gitea/gitea/pull/7423#issuecomment-510750655
It will allow more flexibility and we can suggest some configuration cases.

1 . & 2 . I understand, that cors.ALLOW_DOMAIN is limited to a single value. Adding a matcher or a list is something I should discuss at Macaron. Same for cors.SCHEMA.
4 . Thanks for clearing that
3 . is somewhat confusing as go-macaron src code explicitly states HTTP-200 for OPTIONS-Requests but Gitea responds with 403 Forbidden (as in not-authorized) which is obvious as a preflight request does explicitly not have any auth-header.

@sapk we have forked almost all macaron repositories to https://gitea.com/macaron. Please send PR to there and I think we could replace macaron with our forks on v1.10

@sapk, @lunny Currenly the AccessControlAllowOrigin is being ignored in repository.go. It's defined but it's not read from app.ini (both in master and release/v1.9)

1 . & 2. are taken care of in https://gitea.com/macaron/cors/pulls/3
3 . seems to be harder b/c the macaron CORS module should respond directly to OPTION-requests (with an empty body) as it does for errors instead of forwarding the request the next request handler

@HoffmannP , I am the original author of the macaron cors module. I thought that the module already responding to preflight requests here:
https://github.com/go-macaron/cors/blob/6fd6a9bfe14e9ed6ddf9265b6580f7638105b27b/cors.go#L124
Isn't that enough?

I think https://github.com/go-gitea/gitea/issues/7204 is related to 3.

ah! So, currently CORS handler is only set on the api endpoints.
https://github.com/go-gitea/gitea/pull/6289/files#diff-2620fdbeeb83ce43692534e6c2c39452R505
I would argue that anything that is not an "api" should not have to deal with CORS since it is not meant to called via Ajax from external domains.
So, is this login_oauth an api? Is this use-case trying to login via Oauth2 implicit flow? Does Oauth2 require CORS (I don't know)? If someone know how this type of things work with other websites, could possibly weigh in.

I am referring to this sections of the Oauth2 RFC.

Authorization Code Grant
Implicit Grant

Implicit Grant can be used via Ajax. Authorization Code Grant should not be used from Ajax.

@tonivj5

I think #7204 is related to 3.

Sorry, I don't see the relation

@tamalsaha
I'm not talking about non-API-endpoints, I'm talking about the API. As I see it, the problem is 1. the CORS handler is executed after the reqToken handler and second it returns nothing so according to the handler workflow it would not finish the response and hence reqToken could set it's own status.
CORS handler needs to be a before handler that responds with something (I have no idea what "If response anything" in the diagram means exactly)

Thanks @HoffmannP ! I am starting to see some of the issues but the fix is not clear to me.

(I have no idea what "If response anything" in the diagram means exactly)

Same here. Do I need to return true or something?

I think CORS handler should go before any other handler and only respond to preflight requests without checking for cookie or authz header. This will only check the CORS domain, verb etc settings.

This will need some rewiring. Right now the order is not correct. May be you can open a pr. I did not see this problem because in my case we were using cookie for auth and cookies are forwarded with cross site calls.

https://github.com/go-macaron/macaron/blob/213788aac5bca04b4ef40b4b3ab821d417dbf396/macaron.go#L173
// BeforeHandler represents a handler executes at beginning of every request.
// Macaron stops future process when it returns true.
type BeforeHandler func(rw http.ResponseWriter, req *http.Request) bool

I looked into the macaron source code and this is what I found:

m.Before() does not check for path so will not work for CORS.
https://go-macaron.com/docs/intro/core_concepts#handler-workflow

m.Use() are added a handlers in the Macaron instance
https://github.com/go-macaron/macaron/blob/213788aac5bca04b4ef40b4b3ab821d417dbf396/macaron.go#L184

for routed paths Use() handlers (middlewares) are run first and then the group handlers and then the actual handler
https://github.com/go-macaron/macaron/blob/213788aac5bca04b4ef40b4b3ab821d417dbf396/router.go#L185

context.run() is where the handlers are checked and if Written() and following handlers are not consulted.
https://github.com/go-macaron/macaron/blob/master/context.go#L119

So, I see 2 fixes are needed;

CORS handler should use context.Resp.WriteHeader() instead of context.Status() (comes from Renderer). This will property set the the Written() to true. Renderer also gets the same ResponseWriter() so this should not be necessary. But I am doing this out of an abundance of caution.

PR: https://gitea.com/macaron/cors/pulls/5

The #3 issue by the OP.

in preflight-requests the authorization-header is omitted but querying the API even with an OPTIONS request results in a 403 Forbidden

For this I have opened https://github.com/go-gitea/gitea/pull/7967
@HoffmannP might want to try this branch and see if this fixes your issue.


Create proper 429 request limit error response

The Problem
The error is unclear when this plugin hits a request limit.
Reproduction
Type --John1:1-3 in the editor, and then type a 0 at the end and delete it repeatedly.  Eventually, the request will return a HTTP 429 status code, indicating it's hitting a rate limit.  This is not shown to the user, however, and simply causes the suggester to stop updating.
Proposed Solution
Return the error in some way to the user - either by a notification popup or by replacing the content in the suggester with something relevant.

😢

a good idea

As a sidenote and addition - when I was looking for the cause of this, I had to replace the fetch in this line with requestUrl to get it to spit out a real error instead of a CORS error.  Likely a good change to make, but too small for a PR to fix only that.


shell example: "The goroutine will keep reading until the next keystroke before returning."

Hello, I'm trying to use the shell example to spawn several shells sequentially (open shell1, close shell1, open shell2, close shell2...). The issue is that after closing the first shell, the first keystroke in the second shell is dropped. I think it's related to the note in the example code // NOTE: The goroutine will keep reading until the next keystroke before returning..
How can I do to prevent this behavior?
Thanks!

Think I'm having the same issue. Did you find a solution?

Sorry for the delay.
I haven't been able to reproduce. Could you provide a way to test this?
Note that to achieve this, you need a single read loop always reading on stdin and then managing the shells process. If you have both the exec and the read loop, indeed you may have some issues like this.

Closing as it is likely related to the project using the lib rather than the lib.
Feel free to re-open if you still think it comes from the lib.


CSP issues

Maybe? I just updated the live site with the big webpack merge and see:
The Content Security Policy 'default-src 'self' 'report-sample' https://*.godbolt.org localhost:*;style-src 'self' 'unsafe-inline' 'report-sample' https://*.godbolt.org localhost:*;script-src 'self' 'unsafe-inline' 'report-sample' data: https://*.godbolt.org localhost:* https://*.twitter.com https://www.fullstory.com https://www.google-analytics.com https://apis.google.com https://ssl.google-analytics.com;img-src 'self' https://*.godbolt.org localhost:* data: https://www.google-analytics.com/ https://syndication.twitter.com https://ssl.google-analytics.com https://csi.gstatic.com;font-src 'self' data: https://*.godbolt.org localhost:* https://fonts.gstatic.com https://themes.googleusercontent.com;frame-src 'self' https://*.godbolt.org localhost:* https://www.google-analytics.com https://accounts.google.com/ https://content.googleapis.com/ https://rs.fullstory.com/ https://sentry.io https://platform.twitter.com/ https://syndication.twitter.com/;connect-src *;media-src https://ssl.gstatic.com' was delivered in report-only mode, but does not specify a 'report-uri'; the policy will have no effect. Please either add a 'report-uri' directive, or deliver the policy via the 'Content-Security-Policy' header.
godbolt.org/:1 The Content Security Policy 'default-src 'self' 'report-sample' https://*.godbolt.org localhost:*;style-src 'self' 'unsafe-inline' 'report-sample' https://*.godbolt.org localhost:*;script-src 'self' 'unsafe-inline' 'report-sample' data: https://*.godbolt.org localhost:* https://*.twitter.com https://www.fullstory.com https://www.google-analytics.com https://apis.google.com https://ssl.google-analytics.com;img-src 'self' https://*.godbolt.org localhost:* data: https://www.google-analytics.com/ https://syndication.twitter.com https://ssl.google-analytics.com https://csi.gstatic.com;font-src 'self' data: https://*.godbolt.org localhost:* https://fonts.gstatic.com https://themes.googleusercontent.com;frame-src 'self' https://*.godbolt.org localhost:* https://www.google-analytics.com https://accounts.google.com/ https://content.googleapis.com/ https://rs.fullstory.com/ https://sentry.io https://platform.twitter.com/ https://syndication.twitter.com/;connect-src *;media-src https://ssl.gstatic.com' was delivered in report-only mode, but does not specify a 'report-uri'; the policy will have no effect. Please either add a 'report-uri' directive, or deliver the policy via the 'Content-Security-Policy' header.

It doesn't appear to cause issues, though. Any ideas?

As the mesage says, the header is set to report only while no report url has been set. It is harmless, and will disappear once we enforce csp (It is not a small change, so we can first focus on getting webpack running smoothly)


Handling Buffer Accumulation in DeepStream Pipeline with Slow Inference Speed (app-source)

I previously shared a setup where I read an image buffer from a Redis server, converted it into a GStreamer buffer, and then created a DeepStream pipeline through an app-source. The buffer is ultimately pushed using this C++ code:
DslReturnType retval = dsl_source_app_buffer_push(L"app-source", buffer);

Now, in this setup where I'm using a player(interpipe-source) for DeepStream inference, I'm concerned about the scenario where the inference speed might be slower than the image push speed. In such a case, would image buffers continuously accumulate in a certain queue?
If yes, is there an existing structure that allows for the dropping of these accumulating buffers to prevent overload?
I'm currently using a fake-sink.
Thank you

@youngjae-avikus I plan to add two new component services to allow you to set the max-size of the input queue to any component... and control the leaky property.  See https://gstreamer.freedesktop.org/documentation/coreelements/queue.html#queue:leaky. With this you can set the queue to drop (leak) either the oldest or newest buffers when max queue size is reached.
Let me know if this meets your needs.

@youngjae-avikus I plan to add two new component services to allow you to set the max-size of the input queue to any component... and control the leaky property. See https://gstreamer.freedesktop.org/documentation/coreelements/queue.html#queue:leaky. With this you can set the queue to drop (leak) either the oldest or newest buffers when max queue size is reached.
Let me know if this meets your needs.

It seems to be true that things are accumulating in the queue.
In my case, maybe I set max-queue-size is 1, and my goal would be to inference the latest buffer at any time.
And it would be nice if there was an alarm if system was to be pushed back.

This work is now covered by issue #1225


Wrapping socket functions

[x] socket() creates a new socket of a certain socket type, identified by an integer number, and allocates system resources to it

[x] bind() is typically used on the server side, and associates a socket with a socket address structure, i.e. a specified local port number and IP address

[x] listen() is used on the server side, and causes a bound TCP socket to enter listening state.

[x] connect() is used on the client side, and assigns a free local port number to a socket. In case of a TCP socket, it causes an attempt to establish a new TCP connection

[x] accept() is used on the server side. It accepts a received incoming attempt to create a new TCP connection from the remote client, and creates a new socket associated with the socket address pair of this connection

[x] send() and recv(), or write() and read(), or sendto() and recvfrom(), are used for sending and receiving data to/from a remote socket

[x] close() causes the system to release resources allocated to a socket. In case of TCP, the connection is terminated

[x] gethostbyname() and gethostbyaddr() are used to resolve host names and addresses. IPv4 only.

[x] select() is used to pend, waiting for one or more of a provided list of sockets to be ready to read, ready to write, or that have errors

[ ] poll() is used to check on the state of a socket in a set of sockets. The set can be tested to see if any socket can be written to, read from or if an error occurred

[x] getsockopt() is used to retrieve the current value of a particular socket option for the specified socket

[x] setsockopt() is used to set a particular socket option for the specified socket

Closing as we covered pretty much everything (except for poll). We'll add that if there's demand.


FastCGI error: Stream got blocked, or terminated

Today  when i cleared opcode, i  got this error:

The command  I runed is " /usr/local/php-fpm/bin/php cachetool.phar opcache:reset". I never seen this error before.  after I  built again , the error disappeared.
This is  my  php environment  info:

I don't know what happened , could you explain it to me ? thanks a lot

The error seems to be related to the connection being terminated. Are you restarting php-fpm? Can you post more information about what you are doing and in the steps involved?

I'sorry that i don't have more info. the first picture recorded what  Jenkins  consoled out when building project. I'm sure it is  impossible that someone restarted php-fpm at that time .  If I see this error again , i will record more info and tell you . thanks .

We've been seeing this issue intermittently during deployments.
Our deployment script runs the following after updating a web app's document root symlink:
cachetool opcache:reset --fcgi=/run/php-fpm/www.sock

I'd say something like 1 time out of every 10, the follow error is thrown:
  In FastCGI.php line 143:

    FastCGI error: Stream got blocked, or terminated. (/run/php-fpm/www.sock)

  In Socket.php line 553:

    Stream got blocked, or terminated.

PHP and CacheTool versions are:
[root@srv-php1 ~]# php -v
PHP 7.4.23 (cli) (built: Sep 17 2021 14:35:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.23, Copyright (c), by Zend Technologies
[root@srv-php1 ~]# cachetool --version
CacheTool 6.1.1

I'll try updating CacheTool to the latest version and report back if it happens again.

Still have same issue with such config
[www]
user = www-data
group = www-data

listen = /run/php/php7.4-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0666

okok，this question we have lone  time no see,has been ignored .If we see this question again, we will try  your solution. Thanks a lot.
---- 回复的原邮件 ----
| 发件人 | @.> |
| 日期 | 2021年12月31日 15:48 |
| 收件人 | @.> |
| 抄送至 | @.>、State @.> |
| 主题 | Re: [gordalina/cachetool] FastCGI error: Stream got blocked, or terminated (#188) |
Still have same issue with such config
[www]
user = www-data
group = www-data
listen = /run/php/php7.4-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0666
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you modified the open/close state.Message ID: @.***>


Fix and improve Gardener Operator documentation

How to categorize this PR?

/area documentation
/kind bug
What this PR does / why we need it:
Fix and improve Gardener Operator documentation.
Parts of the Gardener Operator documentation were still using old implementation details, e.g.

virtual-kube-apiserver was exposed directly via load balancer instead of exposure via istio.
Some attributes of the Garden resource were moved from .spec to .spec.runtimeCluster.
.spec.virtualCluster.dns.domain was replaced with .spec.virtualCluster.dns.domains.

This pull requests fixes those issues thereby removing some contradictions and slightly improves wording in some places.
Which issue(s) this PR fixes:
Fixes #9334
Special notes for your reviewer:
Release note:

The gardener operator documentation now closes resembles the reality of the coding.

/cc @timuthy @rfranzke @vpnachev


Warden info

Could you add some statistics about the warden, so the user knows how angry it is or how likely it is to spawn?
As far as I know, those values are server-side, but it could be estimated based on the sound events the client gets.

How many times has the sculk shrieker shrieked until warden spawns
How angry is the warden right now (based on heartbeat rate, angry notices etc)
Estimated time until warden despawn (based on heartbeat and sniffing rate)

Disclamer: this request is a bit shameless because I actually want to add this to my mod, but just haven't been able to figure out, how. Obviously this would benefit your users as well and I would follow your license when forking.

The only thing I cannot figure out is the estimated time until warden despawn. There seems to be no way to get this.

According to

After sixty seconds of being "calm" and not detecting any vibrations, if the warden is on the ground, it burrows back into the ground and despawns.

it should be 60 seconds (1200 ticks) of the warden existing and the anger level being calm.

So, I now implemented the warden anger level to my mod and got some notes for you if you still want to do it.

The anger types can be gotten like warden.getAngriness() == Angriness.ANGRY and warden.getAngriness() == Angriness.AGITATED, no need to hardcode the values.
I was not able to calculate the despawn time as I couldn't get the timer to work and it expected additional variables anyway (the sniffing and vibration detections affect it, so these need to be counted for as well).

I think the most accurate despawn time is in warden.getBrain().getMemory(MemoryModuleType.DIG_COOLDOWN), but that seemed to be available server-side only to me. Maybe something can be done with warden.getDespawnCounter() though.

I didn't try the sculk shriekers at this time.
I got inspired by your code but the logic turned out to be so different that I didn't use it :grin:


ClientModel: Add async and sync enumerable client results

Draft design proposal for discussion for AsyncEnumerableResult<T> and EnumerableClientResult<T> types to add to System.ClientModel.
Based on requirements from the OpenAI clients to support streaming endpoints for chat and assistants APIs, we have the need to be able to return a result from clients' service methods that represents a collection of values returned via the response's ContentStream.
In .NET, this is best modeled as an async stream, and this means such a ClientResult type in System.ClientModel should implement the IAsyncEnumerable interface.  Since System.ClientModel clients also support synchronous service methods, we will provide a synchronous counterpart to the asynchronous that implements IEnumerable.
@tg-msft noted that these "streaming client results" look a lot like Azure.Core's AsyncPageable<T> and Pageable<T> types, and it is true that to the extent that are simply abstractions that represent collections of values, where streaming vs. polling is an implementation detail.
There are discussion points in the comments of this PR noting that we could use a GetRawResponses method in place of a GetRawResponse method to support implementations that use multiple responses to return subsets of elements in the collection.
Addresses:

https://github.com/Azure/azure-sdk-for-net/issues/42284
https://github.com/Azure/azure-sdk-for-net/issues/42483
https://github.com/Azure/azure-sdk-for-net/issues/42825

API change check
APIView has identified API level changes in this PR and created following API reviews.
System.ClientModel

Closing in favor of https://github.com/Azure/azure-sdk-for-net/pull/43840


[WIP] Enable use of Xvfb within Wraith

This is a PR for https://github.com/BBC-News/wraith/issues/73

What ever happened with this? I see a few related PRs but it doesn't seem that any have been accepted/merged and I don't see any support for xvfb.

Hi @kerasai, unfortunately everyone who worked on this tool inside the BBC left and there’s policy for contributing/maintaining something once people have left the BBC. Unfortunately the tool died when @daveblooman left.

Thanks for the reply.
Shortly after posting this, I realized that xvfb was not necessary at all when using phantomjs. At some point it was needed, but not any longer.


Allow size values as low as 0.001 in Camera3D's orthogonal/frustum mode

master version of https://github.com/godotengine/godot/pull/60035.
This allows for lower field of view (or higher zoom) in orthogonal and frustum camera modes.
The property hint also allows setting the size with greater precision.
This closes https://github.com/godotengine/godot/issues/59914.
Testing project (master only, will not work on 3.x): test_camera_frustum_min_size_master_1.zip
Press Space to toggle between perspective and frustum camera (configured to have a similar FOV).

Thanks!


Epic: Internal Frontend Improvements

This epic covers internal improvements to the GUI/Frontend

#431
#423
#405
#460

Closed for reprioritization in Continuum.


Disable ssh key verification in IBM VPC

Fix for #859
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

@JosepSampe
Hello, can you please explain what do i miss? Where the logic is wrong and what exception did it raise even when the specified ssh key pair is correct?
Unfortunately couldn't reproduce the issue and also didn't see LithopsValidationError in user logs

@kpavel For now I commented this piece of code because I don't know where it fails and why. It works ok for me too, and I was unable to reproduce the issue. The only thing I know is that without it, that issue does not appear.

@JosepSampe Thanks. I suspect that user may miss ssh-keygen binary