rabbitmq multi-ack

Acknowledge entire batches instead of every single message using rabbit's multi-ack feature.
Our benchmarks in https://github.com/travis-ci/reliability/issues/93 suggest that we can expect this to reduce network traffic and increase throughput alot.
We also found a race condition in the periodic task that would create multiple rabbit connections, which could also explain some strange behaviours we've seen in travis-logs in the past. This has been addressed by initialising the connection early.
refs https://github.com/travis-ci/reliability/issues/123

This ran on org-production for a couple of hours, without any visible impact for the currently available RabbitMQ metrics, which led us to believe the bottleneck might be someplace else.
However, since it fixes the race condition and it should (at least in theory) reduce network throughput, we would still like to proceed with the changes.

However, since it fixes the race condition and it should (at least in theory) reduce network throughput, we would still like to proceed with the changes.

I completely agree with this. I think this may also be potentially related to some of the threading issues we see in Enterprise so worth getting sorted out!


feat!: initial implementation

i made various changes in my private fork but did not properly denote them, neither in git history nor changelog.
in this PR i make it right.
Required Checklist

[ ] Documentation has been altered or extended appropriately
[ ] This pull request and its commits address only a single concern
[ ] I have followed JonasPammer's Ansible Role Development Guidelines
[x] I am a nice guy

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Optional Checklist

[x] pre-commit was installed in local development environment (if not, a GitHub workflow will run pre-commit once you create the request)

[x] my commits are small, single-purpose, detailed and maybe even follow the conventional commit specification for extra convenience of the reviewer

[ ] converge to meet my guidelines

[ ] refactor to include my private forks' additions

[ ] add molecule test for a225ca114d31c90c7e311f6fbbbda5d4d2bf1377
[ ] add molecule test for 4d42d61b8e90bdc6ce6f291a7d155f717fe8175c

[x] refactored to include my private forks' additions

[x] converged to meet my guidelines

[ ] add step to run a command that checks vhost validness before reload/restarting/..., and possibly (e.g. opt-out'ably) revert the previous vhost if failed before actually ansible-failing

oops, i never used review, i thought i could comment a commit but its the whole pr
well you learn every day


Plugin not showing when using "search for plugins"

Joplin 1.6.6 on Windows isn't showing the plugin:

I've been using it directly from this repo so I never noticed it wasn't showing in the search results.
I removed the jpl to check and it is still not being found.

That's because I haven't published it yet to the plugin repository. As soon as that happens, I will post it in the forum.

That's because I haven't published it yet to the plugin repository. As soon as that happens, I will post it in the forum.


Make curl user-agent configurable

Yap makes http requests to a root server, and that root server is sometimes in shared hosting. Allowed user agents in shared hosts can be a moving target. It would be nice to have a configuration setting for the user agent, with a sane default if it's not set.
Central Indiana had to change the getUserAgent function to return Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0 to get requests working,.

The fix was changed to support user agent issues with siteground.


[HOTFIX] build fail after merge #1151

What is this PR for?
#1151 has been created created before #1139 merge.
#1151 was passing CI but it's failing in master with #1139 merged.
[INFO] --- frontend-maven-plugin:0.0.25:grunt (grunt build) @ zeppelin-web ---
[INFO] Running 'grunt build --no-color' in /Users/moon/Projects/zeppelin/zeppelin-web
[INFO] Running "jscs:all" (jscs) task
[INFO] requireSpaceBeforeBinaryOperators: Operator = should not stick to preceding expression at src/components/saveAs/saveAs.service.js :
[INFO]     21 |      angular.element('body').append('<iframe id="SaveAsId" style="display: none"></iframe>');
[INFO]     22 |      var frameSaveAs = angular.element('body > iframe#SaveAsId')[0].contentWindow;
[INFO]     23 |      content= BOM + content;
[INFO] ---------------------^
[INFO]     24 |      frameSaveAs.document.open('text/json', 'replace');
[INFO]     25 |      frameSaveAs.document.write(content);
[INFO] >> 1 code style errors found!
[INFO] Warning: Task "jscs:all" failed. Use --force to continue.
[INFO]
[INFO] Aborted due to warnings.

What type of PR is it?
Hot Fix
Todos

[x] - Fix problem

What is the Jira issue?
ZEPPELIN-1138,  ZEPPELIN-235
Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

Merge it in master (and branch-0.6 while #1151 is merged in branch-0.6) as a hotfix


Removed AcmeDemoBundle from the regular Symfony distribution

The problem
The new Symfony Installer downloads the Symfony packages created with these scripts. The problem is that they include the AcmeDemoBundle which all non-newcomer Symfony developers want to remove.
The proposed solution

The AcmeDemoBundle is no longer included in the regular Symfony distribution. This way the installer creates a fresh and empty Symfony application. This is the last feature to finish the installer.
A new script (build_demo.sh) creates a new Symfony_Demo.zip file which contains the latest stable version of Symfony and the AcmeDemoBundle. This is the package that we'd promote for newcomers and it would allow us to improve the AcmeDemoBundle to include more features and better explanations.

Nice proposal, I agree with @javiereguiluz !

Totally agree. We should remove that!

Me parece genial!

+1

+1

:+1:

+1

+1

+1

:+1:

+1

Of course, +10000

+1

+1

+1

+1

:+1:

+1

+1

+1

:+1:

+1

+1

+1
Why not offering the AcmeDemoBundle as a Composer package or having a Symfony Demo Edition?

@hhamon that's exactly we're trying to do at the moment:

We'll provide soon a new symfony demo command in the Symfony Installer (see PR: https://github.com/symfony/symfony-installer/pull/118)

:+1:

Thank you @javiereguiluz.


Update header and footer, including new MIT logo

This makes the branding and logo changes that are being rolled out across the Libraries' web platforms. it also picks up some fixes to broken markup that were revealed during a11y evaluation.
Ticket: https://mitlibraries.atlassian.net/browse/PW-72
Developer
Stylesheets

[x] Any theme or plugin whose stylesheets have changed has had its version
string incremented.

Secrets

[ ] All new secrets have been added to Pantheon tiers
[ ] Relevant secrets have been updated in Github Actions
[ ] All new secrets documented in README
[x] No secrets are affected by this change

Documentation

[ ] Project documentation has been updated
[x] No documentation changes are needed

Accessibility

[ ] ANDI or Wave has been run in accordance to
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)

Stakeholder approval

[x] Stakeholder approval has been confirmed
[ ] Stakeholder approval is not needed

Dependencies
NO dependencies are updated
Code Reviewer

[ ] The commit message is clear and follows our guidelines
(not just this pull request message)
[ ] The changes have been verified
[ ] The documentation has been updated or is unnecessary
[ ] New dependencies are appropriate or there were no changes

Coming back to this after the year-end break, I find myself perilously close to falling into the same rabbit hole that's consumed us in December here. I think you're on to something, though - and the two rules you're suggesting seem to make things better. Thanks for digging into this a bit more.
I'm going to push a commit to make these tweaks, and will proceed with deploying this tomorrow.
One of the takeaways on this whole rebranding effort is the need for clear documentation for future-us to understand how our clever CSS approaches work, for the next time we need to make changes like this.


JavaDoc: remove EPH from Other Packages

update pom.client.xml for removing EPH from Other Packages.

Can one of the admins verify this patch?

This looks fine, but it has a lot of extra commits. I guess squash and merge will take care of it.


Install Failure Due to Missing lz4 Dependency on Debian 11

Using this role on a fresh debian 11 server fails, see error logs here:
https://github.com/RedlineTriad/private_server/actions/runs/10395280145/job/28786958496#step:6:102
It seems a commit addressing this is already being worked on but not released or fully working yet.
Just writing this issue for traceability, updates, and googleability.
Will see if I can work around it on my own for now.

Expand for full error
```yaml
TASK [borgbase.ansible_role_borgbackup : Install main Python packages] *********
failed: [pascal.build] (item={'name': 'borgbackup', 'version': False}) => changed=false
  ansible_loop_var: item
  cmd:
  - /opt/borgmatic/bin/pip3
  - install
  - borgbackup
  item:
    name: borgbackup
    version: false
  msg: |-
    stdout: Collecting borgbackup
      Using cached borgbackup-1.4.0.tar.gz (3.8 MB)
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'error'
:stderr:   error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Detected and preferring libcrypto [via pkg-config]
      Traceback (most recent call last):
        File "/opt/borgmatic/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/borgmatic/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/borgmatic/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-aiyqpg17/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/tmp/pip-build-env-aiyqpg17/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-aiyqpg17/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 145, in <module>
        File "<string>", line 125, in lib_ext_kwargs
      Exception: Could not find lz4 lib/headers, please set BORG_LIBLZ4_PREFIX or ensure liblz4.pc is in PKG_CONFIG_PATH.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

</details>

I also took 5 minutes to try and upgrade to debian 12 but it seems I get the same error there :(

I can confirm that using the latest commit at the time of writing fixes this issue for debian 12:
roles:
  - name: borgbase.ansible_role_borgbackup
    src: git+https://github.com/borgbase/ansible-role-borgbackup.git
    version: 0e5e8766264233788eeb0abb1d48e854cedcf7aa

I'm using this on Debian 12, but set it to use the distro package and NOT build from source. Maybe using the distro package would be a better default?

I found https://github.com/borgbackup/borg/pull/8117 and the bundled software was removed, meaning you have to provide liblz4, libstd, and libxxhash outside of Borg 👍

I added the following pre_task to the playbook used by borg:
  pre_tasks:
    - name: Install system deps
      become: true
      ansible.builtin.apt:
        pkg:
          - liblz4-dev
          - libzstd-dev
          - libxxhash-dev

Works fine on Ubuntu 22.04

Same here. Time to add those to the project.


browserslist: Drop 0.2% usage threshold to 0.15%

This adds back Chrome 72, Chrome 70, Firefox 68, Opera 68, Safari 12.1, and Samsung 9.2.  Firefox 68 is still Debian stable’s default browser despite reaching end of upstream ESR support a few days ago.  This probably has no practical effects with IE 11 still listed.
Testing Plan: Diff of yarn browserslist:
 and_chr 85
 and_ff 79
 and_qq 10.4
 and_uc 12.12
 android 81
 android 4.4.3-4.4.4
 baidu 7.12
 chrome 85
 chrome 84
 chrome 83
 chrome 81
 chrome 80
 chrome 79
+chrome 72
 chrome 71
+chrome 70
 chrome 49
 edge 85
 edge 84
 edge 18
 firefox 80
 firefox 79
 firefox 78
+firefox 68
 ie 11
 ios_saf 14.0
 ios_saf 13.4-13.7
 ios_saf 13.3
 ios_saf 13.2
 ios_saf 13.0-13.1
 ios_saf 12.2-12.4
 ios_saf 12.0-12.1
 ios_saf 11.3-11.4
 ios_saf 11.0-11.2
 ios_saf 10.3
 ios_saf 10.0-10.2
 ios_saf 9.3
 kaios 2.5
 op_mini all
 op_mob 59
 opera 70
 opera 69
+opera 68
 safari 14
 safari 13.1
 safari 13
+safari 12.1
 samsung 12.0
 samsung 11.1-11.2
+samsung 9.2

Merged, thanks @andersk!  The test failure was the puppeteer flake, hopefully fixed today.


Support for nars?

https://github.com/anchore/syft/blob/b20310eaf847c259beb4fe5128c842bd8aa4d4fc/syft/pkg/cataloger/java/archive_filename.go#L111
could you please add "nar" to this case statement so it can support grype scanning NiFi nars?

curious! is a nar just a jar? That is, is it the same metadata (like with war, ear, etc) just with a different name? Or is there more metadata to parse?

A nar is basically a shaded jar. It's very similar to a WAR but instead of a WEB-INF the root is META-INF (like in a JAR). Under the META-INF there are other text files that essentially have to do with licensing. A short and sweet overview can be found here: https://medium.com/hashmapinc/nifi-nar-files-explained-14113f7796fd

Thanks for the details! I think this would be a reasonable addition to the list of archive filenames. We will add this to our backlog but please let us know if you want to submit a pull request yourself--we can help you through the process if you need.
We think the only things that need to change are a new glob for .nar files here:
https://github.com/anchore/syft/blob/b20310eaf847c259beb4fe5128c842bd8aa4d4fc/syft/pkg/cataloger/java/archive_parser.go#L22
And in the list here:
https://github.com/anchore/syft/blob/b20310eaf847c259beb4fe5128c842bd8aa4d4fc/syft/pkg/cataloger/java/archive_filename.go#L111

@tgerla Could I tackle this? If @ZENinjaneer doesn't plan to of course

@Shanedell have at it!


Exercise 4 Level 5 - .equals() comparison is not working

I'm currently not able to assign my index of the dot ".". My code is as follows:
int indexNum = 0;
int indexDot = 0;

for (int i = 0; i < (numOfCols * numOfCols) - 1; i++) {
            if (puzzleList.get(i).equals(".")) {
                indexDot = i;
            }
            if (puzzleList.get(i).equals(numToMove)) {
                indexNum = i;
            }
        }

Then when I checked the index numbers using the CodeCrunch test case with new Puzzle(4).move(12), IndexNum was working as it printed "11" when printed but IndexDot remained zero, and hence the positions of 12 and "." could not be swapped.
I'm not sure why my .equals() comparison method is not working. Is there a particular way in my implementation that caused it to not work happen? I have not overridden the method. Would appreciate any help on this.

In the for loop, your conditional check (numOfCols * numOfCols) - 1 returns 15 in this case, since the initial position of "." is at index 15, your loop will never enter the first if-else check.

Thank you! Turns out it was just a careless error :/


Hovering over buttons in find / replace mode doesn't show built-in help tooltips

VSCode Version: Insiders and current
OS Version: Windows 10 RTM

Steps to Reproduce:

Create a new file
Press CTRL + F
Hover the mouse over the buttons in the search / replace box
Notice that the help tooltips don't appear

Cheers,
Trevor Sullivan
https://trevorsullivan.net
https://twitter.com/pcgeek86

I cannot reproduce on Mac nor Windows.

@pcgeek86 I also cannot reproduce. I get all the tooltips on WIndows 10, even for disabled (greyed out) buttons.

@bpasero @alexandrudima Is there some way to investigate what's going on here? Debug logs or something?


[BUG] JobTaskSQLTask query attribute should not be mandatory

Preliminary checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of laktory.

Description
When trying to set a sql task that is sourced from a file, there shouldn't be a need to specify query attribute. Currently laktory is complaining if we leave query out of the job yaml definition.
Example Code
tasks:
  - task_key: task_1
    sql_task:
      file:
        path: /Workspace/.code/jobs/etl/etl_task_1.sql

Installed Versions
Laktory version info:
--------------------
laktory-0.4.15
path-C:\\Users\\goda\\.conda\\envs\\main\\Lib\\site-packages\\laktory
python-3.12.7 | packaged by Anaconda, Inc. | (main, Oct  4 2024, 13:17:27) [MSC v.1929 64 bit (AMD64)]
platform-Windows-2019Server-10.0.19045-SP0
--------------------
azure-identity-NOT FOUND
azure-storage-blob-NOT FOUND
black-NOT FOUND
boto3-NOT FOUND
databricks-sdk-0.34.0
deltalake-NOT FOUND
flit-NOT FOUND
inflect-7.4.0
mkdocs-NOT FOUND
mkdocs-material-NOT FOUND
mkdocs-video-NOT FOUND
mkdocstrings-NOT FOUND
networkx-3.4.1
numpy-2.1.2
pandas-2.2.3
planck-0.0.6
plotly-NOT FOUND
polars-1.10.0
prompt_toolkit-3.0.48
pulumi-NOT FOUND
pulumi_databricks-NOT FOUND
pyarrow-17.0.0
pydantic-2.9.2
pyspark-3.4.0
pytest-8.3.3
pytest-cov-NOT FOUND
pytest-examples-NOT FOUND
python-dateutil-2.9.0.post0
pyyaml-6.0.2
settus-0.0.11
sqlparse-0.5.1
typer-0.12.5
typing_extensions-4.12.2
yfinance-0.2.46

Closed in https://github.com/okube-ai/laktory/pull/280


[Skype for Business] doesn't render buttons or HTML

System Information
SDK Version: 3.13.1
Issue Description
No way to send HTML content to a Skype for business client. According to https://msdn.microsoft.com/en-us/skype/skype-for-business-bot-framework/docs/overview it should be possible.
The messages are always sent as plain text and not HTML.
Example Code
builder.Prompts.choice(session, "What's your preferred language?", "English|Spanish|Arabic", { listStyle: builder.ListStyle.button });
Expected behavior
The message should appear with three buttons.
Actual Results
The output is like this: https://www.screencast.com/t/awcds8Et1
Either no buttons or numbered list of three options.
Question
Doesn't Skype for business support HTML content? Or is it some particular Skype for business client?
[bug]
[javascript]
[nodejs]
[node.js SDK]
[skypeforbusiness]
[botbuilder]

It sounds like you have two separate issues: HTML not rendering and buttons not rendering. According to the documentation, both of these are expected:

Some Skype for Business clients may not support Markdown or HTML rendering, so bot messages will fall back to text on those clients.

Skype for Business does not support rendering cards and buttons. The cards and buttons sent by a bot will fall back to text in the Skype for Business clients.

If you're having problems with your options not appearing, I recommend sending the options explicitly as text.

Closing due to inactivity


Add alternative factory method to add services

Alternative way to pass a factory method when adding new services.
This allow the passing of context (or Client of the context) to the constructor of the service.
Alternatively to this:
    micro.sdk.run(
        servers=["nats://localhost:4222"],
        services=[
            EchoService(some_configuration="some value"),
        ],
        trap_signals=True,
    )

this also works:
    micro.sdk.run(
        servers=["nats://localhost:4222"],
        services=lambda ctx: EchoService(ctx, some_configuration="some value"),
        trap_signals=True,
    )

There can be multiple services created. Lambda (or callable) return an iterable of services.

I removed the argument services in my latest commit as I could not find a unique way to start applications defined with a service list and applications defined with a setup coroutine. I added a CLI, and wanted to have a "single way" of writing apps.


Cleaned up README

Cleaned up README, removed old Insights proxy steps, etc.

Codecov Report

Merging #2269 (0dbb1c3) into master (ae8e76b) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 0dbb1c3 differs from pull request most recent head 04c0a39. Consider uploading reports for the commit 04c0a39 to get more accurate results

@@           Coverage Diff           @@
##           master    #2269   +/-   ##
=======================================
  Coverage   70.46%   70.46%
=======================================
  Files         400      400
  Lines        7406     7406
  Branches     1624     1624
=======================================
  Hits         5219     5219
- Misses       2155     2159    +4
+ Partials       32       28    -4

Impacted Files
Coverage Δ

src/components/pageTitle/pageTitle.tsx
15.55% <0.00%> (ø)

src/components/charts/costChart/costChart.tsx
10.76% <0.00%> (ø)

...omponents/charts/dailyCostChart/dailyCostChart.tsx
9.09% <0.00%> (ø)

...nts/reports/reportSummary/reportSummaryDetails.tsx
13.26% <0.00%> (ø)

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 ae8e76b...04c0a39. Read the comment docs.


Please pester valve to hire people who actually play TF2 to maintain it. They make billions, they can afford to hire more and stop contracting out their crunches.

Since other threads regarding this issue have now piled up with comments, and were originally never about the true issue, I thought I'd make a new, clean thread.
Most of you have by now heard of PazerOP's Bot Detector.
It is strongly recommended that you do not use this script.
This script can and will be abused.
The TF2 community is in grave danger, and we must all spread this information.
If this script gains too much attention and users, the owner of the script will have FULL POWER over the players.
This sounds crazy, but it is true. Not even Valve will be able to save us!
If everyone were to use this script, the owner could add whoever he wants to the blacklist.
If we let this happen, the owner will have the power of Valve in his hands. He will be able to ban ANYONE he wants to!
Please advocate against this dangerous script whenever and wherever you see it mentioned.
For further information, please read through these threads if you haven't yet.
https://steamcommunity.com/app/440/discussions/0/2798377186389969969/?ctp=7
https://steamcommunity.com/app/440/discussions/0/2798376797410238545/?ctp=6

pazer is hitler!!!
source: just trust me my mann

Believe me, if I was in charge of Valve's hiring or employee allocation, I would love if TF2 got more attention.
Copy/pasting my reply from the SCUD thread:

I have not, and will never add people to the official playerlist unless:

they are cheating (beyond a reasonable doubt -- "wow that was an incredible shot" is not beyond a reasonable doubt)
they are racist (literally just don't say the nword in text chat)
they are an exploiter (abusing a bug in the game to cause a significant negative impact to the game: repeated & intentional sticky traps through walls, infinite health heavies, etc. running around as a civillian because you picked up a weapon at a strange time is not worthy of being marked as an exploiter)

I will not add people to the list simply because I "don't like them" or any other silly reason. If you do not trust me, delete playerlist.official.json, or don't use the tool.
If you have any actual evidence of me abusing my position (or any position I have ever had, for that matter), please share it. Otherwise this thread is just conspiracy theories.

pazer is hitler!!!
source: just trust me my mann

hey man thats no way to treat someone. thats the same as me saying your whole bot thing is working. its not true at all


Custom building doesn't work on windows

gulp is not a function

@moeiscool
You should install it globally: "npm install -g gulp"
@nolimits4web @valnub @ZanderBrown
Can be closed.


Reaper crashes whenever I try to load Sfizz VST3 or LV2 (Fedora Linux)

System: Fedora 39, Sfizz 1.2.3, latest Reaper.
Whenever I try to load Sfizz in Reaper, it crashes, and the terminal's logs are not very useful :
jack: created client
jack: non-realtime threads
jack: activated client
[sfizz] new synth
Killed

I can test out Sfizz inside Carla with no problem.
But inside Reaper it crashes.
It's even worst : it crashes even when I load Sfizz through a Carla Rack, i.e.: create a new track inside Reaper using a Carla Rack, then load Sfizz. That doesn't make any sense -_-'

Ok it's fixed, it was a problem related to realtime.
For the record, in case someone got the same issue, on Fedora Linux, install realtime-setup: sudo dnf install realtime-setup.
In /etc/group, add your user to the group realtime.
Also it may be needed to do that (in my case): sudo systemctl mask rtkit-daemon.service.
Reboot the computer, and it should be all right.


Doesn't work with pagination

Hi All,
Just a quick one, it appears that this won't work when attempting to use Laravels built in pagination method.
Not sure if I'm doing this wrong but I can replicate it with the following:
Even getting a generic collection of anything, in this example I'll use a holiday:
$response = \Geocode::make()->address('ME10 4PB');
$lat = $response->latitude();
$lng = $response->longitude();

$holidays = \App\Holiday::within(5, 'miles', $lat, $lng)->get();

This will work with get(), however when doing the following:
$response = \Geocode::make()->address('ME10 4PB');
$lat = $response->latitude();
$lng = $response->longitude();

$holidays = \App\Holiday::within(5, 'miles', $lat, $lng)->paginate(5);

The following error occurs:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'distance' in 'having clause' (SQL: select count(*) as aggregate from (
Select *
From holidays
Where holidays.lat Between 51.267621070961 And 51.412343929039
And holidays.lng Between 0.62098592375332 And 0.85265447624668
) As holidays where `guests` >= 1 having `distance` <= 5)

Same here, would like to see pagination capability added. Currently I switched over to an ugly scope;
    public static function scopeGetByDistance($query, $lat, $lng, $distance)     {         $results = DB::select(DB::raw('SELECT id, ( 3959 * acos( cos( radians(' . $lat . ') ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(' . $lng . ') ) + sin( radians(' . $lat .') ) * sin( radians(lat) ) ) ) AS distance FROM users HAVING distance < ' . $distance . ' ORDER BY distance') );         if(!empty($results)) {             $ids = [];             foreach($results as $q) {                 array_push($ids, $q->id);             }             return $query->whereIn('id',$ids)->orderBy('id','desc');         }         return $query;     }
use like:
Model::GetByDistance($latitude, $longitude, $distance)->paginate(20)
this is for distance in miles.

Thanks, thats a great workaround for now :)

Hey @lukecurtis93 and @selfpaidinc
See my other issue on the best way to use this with pagination:
https://github.com/jackpopp/geodistance/issues/13


Build app targeting modern browsers with auto fallback

Build app targeting modern browsers with auto fallback
https://cli.vuejs.org/guide/browser-compatibility.html#modern-mode

@bonustrack I can't find foamtree anywhere in this repo. How is this setup?

@samuveth I'm not sure what you are talking about

@bonustrack this https://snapshot.page/report.html

@samuveth Ok it's here: https://bafybeicax4cbj72r3nezceuwcpusczfg6uoxdkxwn2a4bq3sxtok26yiwq.on.fleek.co/modern-report.html


Stop conditionally including rules, instead conditionally include output files

This will enable users to request a single final stage as True in the config file, and Snakemake will still be able to find the path of rule dependencies to produce output files from the requested step.
The plan is simple:

Stop conditionally including rules in the main Snakefile. Instead conditionally include output files into the all_files list in the rule files of each sub step of the workflow.

Fixed in #55


[REQUEST] Please Add Cookie Option In Prase

Please Add cookie option in prase i cannot make a lot of configs because there are no cookie option in prase but its available in blackbullet please add it in openbullet

check the Docs mate! it's already on it.
Just do : <COOKIES(the cookie name)>
and for a cookie that name changes , you can use the cookie value char,num,even symbols.
just do : <COOKIES {e8+=}> , this will bring you the cookie name as a var.


cpan install Verilog-Perl seems to be broken

I've done this many time in the past without issue but today it seems to be failing.  (I tried this on several systems and different versions of perl 5.30.0, perl 5.26.3.  All with same result).  I also tried variations of invoking cpan or cpanm like perl -MCPAN -e 'install Verilog-Perl;'
$ sudo cpan install Verilog-Perl
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 23 Sep 2020 15:17:03 GMT
>(error): Could not expand [Verilog-Perl]. Check the module name.
>(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
>(info): and you provide the -x option on invocation.
>(error): Skipping Verilog-Perl because I couldn't find a matching namespace.

My workaround with cpanm:
$ sudo cpanm https://cpan.metacpan.org/authors/id/W/WS/WSNYDER/Verilog-Perl-3.470.tar.gz
--> Working on https://cpan.metacpan.org/authors/id/W/WS/WSNYDER/Verilog-Perl-3.470.tar.gz
Fetching https://cpan.metacpan.org/authors/id/W/WS/WSNYDER/Verilog-Perl-3.470.tar.gz ... OK
Configuring Verilog-Perl-3.470 ... OK
Building and testing Verilog-Perl-3.470 ... OK
Successfully installed Verilog-Perl-3.470
1 distribution installed

Anyone else see a problem?

I see the same issue.

CPAN doesn't seem to any longer understand the difference between the distro name and package name.  As a workaround use "cpan install Verilog::Language" instead.


[FEATURE] Add compression ratio parameter for image saving

🤩 Features description [Please make everyone to understand it]
add acompression ratioparameter for image saving , so that swanlab can store some useful image like model_graph clearly.

👍 What problem does this feature solve
support image saving
👾 What does the proposed API look like
swanlab.Image（image.png,cratio = 1.0）

We can use swanlab.Image.cratio for global settings

We add a size parameter in swanlab.Image, rule are as follows：

The default size is None, which means no scaling
If the size is an integer type such as 1024, it will be scaled if the side length exceeds 1024
if the size is a list or tuple type, such as (512, 512), it will be scaled to that size; if it is (512, None) or (None, 512), then it will be proportionally scaled based on the side with a numerical value.


suppressing sensitive openssl output

What this PR does / why we need it:
This code will keep generated cert data from ending up in logs.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #3984
Special notes for your reviewer:
If applicable:

[ ] documentation
[ ] unit tests
[ ] tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

Thanks @ryanhartje! /lgtm pending E2E

I'm trying to make sense fo the windows e2e failures. I don't see anything immediately obvious but I do notice that they seem to grab some logs before spinning down the cluster in this step:
scp -i /go/src/github.com/Azure/acs-engine/_output/kubernetes-southcentralus-12569-ssh -o ConnectTimeout=30 -o StrictHostKeyChecking=no azureuser@kubernetes-southcentralus-12569.southcentralus.cloudapp.azure.com:/tmp/k8s-* /go/src/github.com/Azure/acs-engine/_logs/kubernetes-southcentralus-12569.southcentralus.cloudapp.azure.com

Does this preserve any of the kubernetes logs somewhere? I otherwise don't see anything about why the node(s) didn't come up healthy.


Feature request: Add an option to replace the link in the "Copy link" option with an fxtwitter/nitter link

As title says, add an option in the Control Panel so that when the user selects "Copy Link" in the Twitter UI, the link in the clipboard is either an fxtwitter.com or nitter.net link to the same post.

Looking for this as well, please!
Maybe an entirely separate button for copying the post's link could also be introduced, it would make things a lot easier in terms of sharing.


Excess property in audio datasets and confusing argument description in audio pretraining task

📚 Documentation
There is a min_sample_size argument in audio pretraining task with confusing description (min sample size to crop to for batching). It is used only to set internal min_length property of dataset to filter small examples.
I propose to remove min_length property in favor of min_sample_size in audio datasets and improve description of this parameter.
I prepared branch, which I can submit as PR if this issue makes sense: https://github.com/pytorch/fairseq/compare/master...gazay:min_max_sample_size?expand=1

CC @alexeib

CC @alexeib

please submit it!


Just a hint: how to make color pkg works in go test command.

Currently, this package does not works when run command go test.
Such as t.Errorf("error message") will not print colored text content.
A bypass solution:
First, color.NoColor = false is a must to config.
Them, color.Red("error message") + t.FailNow()  == t.Errorf()
And it works for me now.

Thanks, your question has the answer I need 👍


use deep quality comparison for derived updates

Instead of using strict comparison on derived property changes, uses the _.isEqual method. Helps prevent triggering unnecessary change events when a derived property is not a primitive data type.

Just that last comment. Looks like it's worth a shot!

:)

Thank you!


Setting/Updating section header for specific section

Hi!
I am fetching data from web API, and appending in a specific tableView section. So I have the scenario when I get results for section 1 before for section 0.
How to set/update setSectionHeaderModels for specific index. I am considering updating section title (data) after getting response from the web api.

Hi!
You should probably store section header models in your view model or view controller depending on your architecture. Then, update headerModelProvider on MemoryStorage:
manager.memoryStorage.headerModelProvider = { index in return <headerModel by index>}

Then call reloadData:
tableView.reloadData()

This is needed, because UITableView does not have explicit API for updating only headers/footers.
Also, consider updating data when you've already received both API responses, this may lead to more consistent behavior and UI.


Add accessors and mutators for all state of wasi:http/outgoing-request and outgoing-response

This change has two purposes:

adding the accessors enables treating the resource's representation of all state as canonical, instead of requiring a component to retain a copy of all state contained in the resource.

Adding mutators for all state supports use cases where it's required to change a request's/response's state after writing to its body. This is in particular the case when implementing preexisting systems or specifications, such as the WHATWG fetch spec used in JavaScript environments.

(Stacked on #7260)

I'll ensure that both copies of the wit files are in sync once I've worked through any feedback

This is much easier to accept than #7260 which I think we want to see a tested implementation for in order to land. b663ccf, on the other hand, is trivial. Can you rebase this PR to be just that commit?

I sent this upstream as https://github.com/WebAssembly/wasi-http/pull/65, I'll work on an implementation in another PR

I think this is redundant with main now, as we've implemented the upstreamed mutators. Do you mind if we close this PR @tschneidereit ?

I'm going to close this due to @elliottt's prior comment and the main changes having been incorporated.


NFLDB 2017 Postseason

Has the schedule url for the 2016-17 Postseason been updated? I've updated the pip, and ran all of the troubleshooting from the 2015-16 Postseason issue, but it only updates Week 17 of the 2016 regular season.

I believe I got it fixed. I think I was running the scheduler update in the wrong directory. Carry on!


Update PPP

addtask, edittask, and deletetask are no longer valid commands.
edit is now handled only in EditCommand. EditTaskCommand is not used except in tests, which will be modified later.
AddTaskCommand is still used since add 1 -tn NewTask issues a command to add task, distinct from add -n Ben ..... It would be better handled by the separate, internal AddTaskCommand, rather than having two cases of execution flow in AddCommand.
The same follows for DeleteTaskCommand.

Codecov Report

Merging #188 (d3b1213) into master (6a6ccf6) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #188   +/-   ##
=========================================
  Coverage     60.02%   60.02%
  Complexity      711      711
=========================================
  Files           115      115
  Lines          2977     2977
  Branches        364      364
=========================================
  Hits           1787     1787
  Misses         1073     1073
  Partials        117      117

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 6a6ccf6...d3b1213. Read the comment docs.


Set Default Queue Size

Currently the queue size is unbounded by default in async mode which could cause days of backlog on the events. We have a customer who sends days old events from an earlier outage after the network recovered.

Alternatively we could set a max age i suppose.

Some more context:
We have logback event reporting set up (warning and error)
We had huge database problems last week, this has been fixed 2 days ago. The service that uses that database was not restarted during that time and today we still see events coming in from 3-4 days ago.
Also the sentry dashboard reports 2500 events per hour coming in which made me worry that events got lost. But we of course see no recent data because these events are all added to the past.
We of course don't want this old events flood to make that we lose today's events because of applied quota.

I think this makes sense. We can set a default and offer an option. One thing though,

made me worry that events got lost

Just to be clear, adding this will cause events to be lost.

hehe, indeed, but I am more worried about sparse events from today than thousands of similar bulk events from 3 days ago.
I guess some bound queue + time to live on events would be best?

Some thought fragments: ideally, we'd be able to maintain a relatively representative sample of events that ensures new events are preferred to be delivered to the Sentry server earlier, while not totally dropping older events. If we were to use a bounded FIFO queue, this would cause the sample to be biased (probably an understatement) towards older events at the expense of dropping newer events. If were were to use a circular buffer, this would cause the sample to be biased towards newer events at the expense of losing data about older events. A reasonable compromise might be to implement some sort of weighted random sampling when the queue grows beyond it's capacity — ideally, we'd be able to implement this with a bounded priority queue, but no implementation exists in the Java standard library, so we'd have to implement one ourselves.

Best would be to filter out

I'm not sure that I understand, filtering on what criteria?

Oops, just saw that this was edited on the web UI. We do all of the normalization and aggregation on the server side and would like to avoid reimplementing that behavior in the SDK but maybe there's something we can do on the SDK side that doesn't introduce too much complexity.

A couple thoughts:

The low hanging fruit we could release right away is to set a new default queue bound here: https://github.com/getsentry/raven-java/blob/master/raven/src/main/java/com/getsentry/raven/DefaultRavenFactory.java#L146

We'd also want to support something like -1 to disable the queue (I think?).
Does this seem like something we should do? Any thoughts on default sizing?

For sampling I think we can pretty easily make use of something like this: https://github.com/twitter/commons/blob/master/src/java/com/twitter/common/stats/ReservoirSampler.java

We'd need to add a way to grab an item off the end. The problem is that we'd also be leaving the Java Concurrent collection behind (LinkedBlockingQueue), and so we'd have to synchronize the whole send call in AsyncConnection and also whatever fetch method we create on the other side. I... can't imagine a use case where a user is going to be critically bound on attempting to send exceptions to Sentry... but it's something we need to consider.

Any thoughts on default sizing?

My initial thoughts: probably no more than a one minute backlog on the Medium plan (50 events)?

Default value of 50 is in master, do we have strong opinions on whether sampling should be done now, or should we revisit after the default limit is out for a while?

I think releasing with the GH-221 makes sense now. I think that sampling would be a more ideal implementation, but I don't think that needs to be a high priority at the moment.


Create design for push message notifications

#45 and #46 added push notifications and navigating to /add-social-agent


UIRefreshControl+AFNetworking.h File not found error

Hi Im getting UIRefreshControl+AFNetworking.h file not found error on my mac and some other Macs, when i change to other MAC, i'm not getting this type of issues.
I'm wonder why im facing such error only on my MAC and Some other Macs only. But  its working some other MACs.

@srinadhK We have tests validating those files are available through the framework. This is most likely some sort of project configuration on your end.
We use the issues list on Github for tracking bugs and feature requests directly related to AFNetworking so we can focus on improving the project.
Thanks!
:beers:


Travis NPM deployment doesn't work

Normally, having a commit on our master branch tagged with vX.Y.X, triggers both:

a styleguide deployment to http://style.buildit.digital/
a NPM package deployment to https://www.npmjs.com/package/@buildit/gravity-ui-sass

On the most recent v0.11.0 release, the former worked fine but the latter did not happen.
The offending build log is here: https://travis-ci.org/buildit/gravity-ui-sass/builds/446548115
(I tried re-running that build, but the result was the same)
The build logs show this error:
Skipping a deployment with the script provider because this branch is not permitted: v0.11.0

No idea why this used to work but now fails. Our .travis.yml file hasn't been touched in months and this used to work fine.
Can someone please investigate and fix?

I think I may have found the culprit. Saw this warning messagein the most recent release build (which again failed to deploy to NPM):
Preparing deploy
NPM version: 6.4.1
Authenticated with email<EMAIL_ADDRESS>and API key ****************c311
NPM API key format changed recently. If your deployment fails, check your API key in ~/.npmrc.
http://docs.travis-ci.com/user/deployment/npm/
~/.npmrc size: 48

Sure enough, later on when it tries to do npm publish this happens:
npm notice === Tarball Details ===
npm notice name:          @buildit/gravity-ui-sass
npm notice version:       0.11.1
npm notice package size:  61.8 kB
npm notice unpacked size: 179.9 kB
npm notice shasum:        8931ee2e019258ead34d8e729de6036bc1a03572
npm notice integrity:     sha512-myIC6zhvUvS2j[...]iI5eio1oOIwfw==
npm notice total files:   72
npm notice
npm ERR! publish Failed PUT 401
npm ERR! code EAUTHUNKNOWN
npm ERR! Unable to authenticate, need: Basic, Bearer
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2018-11-28T16_50_34_047Z-debug.log

This is fixed, BTW! 👍


How to generate a package metadata hex?

Hey,
I see that you put a raw hex here: https://github.com/OmniBTC/Aptos-AMM-swap/blob/main/tests/interface_tests.move#L122. Wondering how could one generate a package metadata hex?
I try:
hexdump -ve '1/1 "%02x"' ./build/lp/package-metadata.bcs

But it ends up different result than yours, while using the same command above with .mv ends up the same result.

@adirutwn
let data = fs.readFileSync('package-metadata.bcs');
console.log(data.toString("hex"))

let data = fs.readFileSync('lp_coin.mv');
console.log(data.toString("hex"))


[BUG] Error on gui close

I just expect the inventory to close, without returning an error. Whenever I close a custom gui, I get the following error: https://pastebin.com/cyLdfn5d. I using version 4.3.0 of obliviate-invs:core with maven and 4.3.0 using the pagination api. And my minecraft server is running paper 1.21 dev builds.
Checklist
Ensure you've done everything in this list before submitting the issue. (Just put the 'X' char between brackets.)

[x] I explained the expected behavior.
[x] I explained current behavior.
[x] I shared console outputs or I said there is no output.
[x] I did not assume that people already knew what I was doing.

We haven't officially added support for Obliviate-invs in 1.21. Of course, you can use it but I have doubts. Can you provide the GUI code?

public class MainMenuGui extends Gui {
    private final MarketManager market;

    public MainMenuGui(@Nonnull Player player, MarketManager market) {
        super(player, "main-menu", "Marketplace", 6);
        this.market = market;

        this.pagination.registerPageSlots(2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35);
    }

    private final PaginationManager pagination = new PaginationManager(this);

    private Filter selectedFilter = Filter.PRICE_LOW_TO_HIGH;
    private Category selectedCategory = Category.ALL;

    @Override
    public void onOpen(InventoryOpenEvent event) {
//        Add border
        for (int i = 1; i <= 53; i++) {
            if (i % 9 == 1 || (i >= 38 && i <= 45)) {
                addItem(i, new Icon(Material.BLACK_STAINED_GLASS_PANE).setName(" "));
            }
        }

        //        Add categories to the side
        rebuildCategoryIcons();

        addItem(47, new Icon(Material.EMERALD_BLOCK).setName("§aCreate Listing").onClick(e -> {

        }));

        addItem(48, new Icon(Material.CHEST).setName("§aMy Listings").onClick(e -> {

        }));

        addItem(49, new Icon(Material.EMERALD).setName("§aBought Items").onClick(e -> {

        }));

        addItem(50, rebuildFilterIcon().onClick(e -> {
            switch (selectedFilter) {
                case PRICE_LOW_TO_HIGH:
                    selectedFilter = Filter.PRICE_HIGH_TO_LOW;
                    break;
                case PRICE_HIGH_TO_LOW:
                    selectedFilter = Filter.ALPHABETICAL;
                    break;
                case ALPHABETICAL:
                    selectedFilter = Filter.RARITY;
                    break;
                case RARITY:
                    selectedFilter = Filter.PRICE_LOW_TO_HIGH;
                    break;
            }

            addItem(50, rebuildFilterIcon());
            calculateAndUpdatePagination();
        }));

        addItem(51, new Icon(Material.COMPASS).setName("§aSearch").onClick(e -> {

        }));

        calculateAndUpdatePagination();

        addItem(52, new Icon(Material.ARROW).setName("§aPrevious").onClick(e -> {
            if (pagination.getCurrentPage() != 0) {
                pagination.goPreviousPage();
                calculateAndUpdatePagination();
            }
        }));

        addItem(53, new Icon(Material.ARROW).setName("§aNext").onClick(e -> {
            if (!pagination.isLastPage()) {
                pagination.goNextPage();
                calculateAndUpdatePagination();
            }
        }));
    }
}
    ```

After closing the gui, the player inventory acts as the gui, meaning players cant interact with their inventory

Thank you for the observations. I'll be interested as soon as possible.

an easy fix, is to just overwrite the onClose method on the gui

can u explain me how can i fix that, as same is happening for me.


Helm Chart updates for upgrades

Note: Based on https://github.com/SUSE/stratos-ui/pull/1157
Applies the following to the Helm chart

Moves Deployments to StatefulSet
Uses pre-install, post-delete and pre-upgrade hooks to enable purging of chart and allow upgrades

 (2) Investigate how upgrades work in Helm


Mask snapshots variables

Signed-off-by: Sayali Gaikawad<EMAIL_ADDRESS>Description
Although these secrets cannot be called by any fork apart from this repo, just placing an extra security by masking it if someone tries to print it on console.
Reference: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#masking-a-value-in-log
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@gaiksaya , What is the motivation for printing these values masked at all? Why echo them at all?

@dlvenable I was also curious but here is the thing:

The way add-mask works is that it takes a value and from that point onwards when that value is to be written to the logs, it’ll be masked. And this is the important point to note, masking will only be applied to log messages after it is used, so you need to ensure it’s used as early as possible, relative to the usage of the value you wish to mask.

So by masking it with echo, all further usages will be masked as well.

Say we had the following:
echo "::add-mask::$SONATYPE_USERNAME"
echo "::add-mask::$SONATYPE_PASSWORD"
echo "$SONATYPE_USERNAME"
echo "$SONATYPE_PASSWORD"

It would output the following?
MASKED_USERNAME
MASKED_PASSWORD
MASKED_USERNAME
MASKED_PASSWORD

Actually all its echos is **** Here is a sample run https://github.com/gaiksaya/opensearch-sdk-java/actions/runs/4131383871/jobs/7138963461#step:5:18


Cucumber.parallelrunner is skipping files in 0.9.0.RC3 compared to <IP_ADDRESS>

I have the same code base which breaks when switched from <IP_ADDRESS> to 0.9.0.RC3. I am using the CucumberRunner.parallel method where i give the tags,filesas list,thread,karateOutputPath
I am using the below code and my feature files in the directory doesn't have any @wip tag on the scenarios.
getTags method is basically returning a list with only ~@wip tag so I am basically giving input where I want to run every scenario other than wip tag in that folder.
public void testParallel() {
String karateOutputPath = "target/surefire-reports";
String featureDir = "src/test/resources/features/a";
KarateStats stats = CucumberRunner.parallel(getTags(), Utils.getFilesByType("src/test/resources/features/a",new String[] {"feature"},true), 1, karateOutputPath);
}
mvn -Denv=QA1 -Doptions="--tags ~@wip" -DfeatureDir="src/test/resources/features/a" clean test
13:16:41.042 [main] INFO c.i.karate.cucumber.CucumberRunner - Karate version: 0.9.0.RC3 13:16:41.237 [pool-1-thread-1] INFO c.i.karate.cucumber.CucumberRunner - <<skip>> feature 1 of 2: \src\test\resources\features\a\A.feature
13:16:41.246 [pool-1-thread-1] INFO c.i.karate.cucumber.CucumberRunner - <<skip>> feature 2 of 2: \src\test\resources\features\a\B.feature

wrong. should be -Dcucumber.options="--tags ~@wip"
try again. and remember FULL WORKING EXAMPLE next time.

@ptrthomas I had explained how the getTags() method is getting the ~@wip as lost in cucumberrunner.parallel method . I am not following the way as how you have done cucumber.options and I have custom method to get the system property from maven command to parse different properties so don’t worry about the maven command.
Problem is the feature files are getting skipped when you pass a tag that doesn’t exist in those feature file . For example let’s say you have a feature file that doesn’t have a tag as ~@wip and Call the cucumber.parallel method then it fails in 0.9.0.RC3 . Again this works fine without any code change in <IP_ADDRESS> .
More detail : I am using the CucumberRunner.parallel(tags,featurefilesaslist,threadcount,outputpath)
Where tag is a list where the array list only has ~@wip
Feature files is a list where you can point to just one file with the content below
Thread count can be 1
And output path can be target/surefire-reports
Feature file:
@tagx
Scenario:
Given def x = { x : “123”}
When print x
At the execution it will skip the file in 0.9.0.RC3

the feature files are getting skipped when you pass a tag that doesn’t exist in those feature file

sounds like the correct behavior to me.
I can do this all day.

@ptrthomas files dont have to get skipped when tag doesn't exist in them .  I was trying to create a sample for this issue but i dont see the issue with the sample i created either with <IP_ADDRESS> or 0.9.0.RC3 in my non-work laptop. Not sure why it was failing with my other computer with the same exact thing. if you pass the tag as ~tagthatdoesntexist and the tag is not part of any scenario or feature the scenario will be executed. That is the correct behavior and the sample mentioned below actually runs both the feature file and that is expected. I need to see whats going on with my other computer where these samples were skipped.
@Test
public void run(){
    List<String> tags = new ArrayList<String>();
    tags.add("~@wip");
    KarateStats stats = CucumberRunner.parallel(tags,new ArrayList<>(Arrays.asList("src/test/resources/features/test.feature","src/test/resources/features/x.feature")),3,"target/surefire-reports");
}

test.feature
@y
Feature: sample
@x
Scenario: sample test
Given def x = { y : "20"}
Then print x
x.feature
@y
Feature: sample
@y
Scenario: sample test
Given def x = { y : "20"}
Then print x

not able to replicate. please follow the instructions: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue


Optimized code

Optimize this code by tuning the hyperparameters of the QSVM model

I close This PR. Because this code is not Optimize.


In-project custom extension in .vscode/

For large projects, it can make sense to have very customized VSCode extensions that are tightly coupled to specific patterns and policies within the codebase and aren't meaningfully generalizable. Currently there isn't a great solution for these use-cases:

publishing to public marketplace creates unnecessary clutter and isn't viable for anything "secret" to an org
publishing to an internal marketplace creates extra a lot of extra overhead and cost to essentially boomerang an extension back its only relevant project
distributing vsix packages is inelegant at scale and loses the ability to automatically propagate updates to users

Ideally a project could define its own extension(s) in the .vscode/ directory and have that extension be automatically loaded and activated when working within its workspace. This would enable a much more streamlined project+extension integration and effortless propagation of updates to users. There are some edge-cases that would have to be considered, like how to trigger reloads of extension during forward development or branch switching and whether users can opt out of the extension.
This could also have the side-effect of making some initial extension development easier in general, as work could be started directly against the codebase that inspired the idea before being split out into its own standalone project.

The Workspace Extensions feature arrived in April 2024
See #206783

Oh awesome. I didn't see it in the docs, but I'm hyped that it's already available. Thanks!


Binary File Ispector: select focus is overwritten

https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/typedarrays/
The blue border focus doesn't show up, so is presumably overwritten later

@dstorey this is because of an style in EdgePortal that overwrite the outline property.
@melanierichards @ststimac can we overwrite this style? (at least for this demo)

@sarvaje where is the overwriting style in Edge Portal? That doesn't seem like it should be happening in the first place. But to answer your question you can make an exception if needed on this demo.

sorry @melanierichards, the overwrite is in EdgeCore.

@melanierichards @sarvaje this is probably because demo.css restyles the select and file input so the styles are clashing. Best fix would be just to remove that custom styling as it isn't adding any value now we have a house style.

I agree with @dstorey.


not an issue - question on related libraries in nodejs

Is there anything that comes to mind here?
I'm facing a challenge with mysql replication sending too much down the wire and need something like this library to throttle the transactions
https://github.com/nevill/zongji/issues/118

https://npm.io/search/keyword:backpressure


Fixed duplication of Signin and Logout items in drawer items.

Description
Fixed duplication of Signin and Logout items in drawer items.
Related issues and discussion
Issue Number: #2020

Hey @jaindiv26,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: 41119b60-0099-11e9-b792-3f85a2f5cc5a


fix(ci): changed token-type from github-token to PAT.

Issue link
Relates #141
What does this PR do?

Updated token-type to use GitHub PAT
Generated PAT package-cleanup whose scope is package:read and package:delete
Added Repository Secret for passing PAT to CI

What does not include in this PR?
N/A

Create new PAT (classic one) with scope package:read and package:delete:

and added repository secrets:


Sign of life in Minutes

Description and Motivation
Adds a sign of Life in x Minutes defined in the .env to be more consistent between different chains.
Still outputs the amount of blocks.
Related Issues
#12

Checklist:

[x] I have read Migaloo's contribution guidelines.
[x] My pull request has a sound title and description (not something vague like Update index.md)
[x] All existing and new tests are passing (if any).
[ ] I updated/added relevant documentation.
[x] The code is formatted properly using eslint

LGTM


shmat: Invalid argument

When running on my Raspberry Pi3 (Linux raspberrypi 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux) with a BladeRF x115 I get this error:
kal -s GSM850 -v -D
debug: FPGA Master Clock Freq:  52000000
debug: decimation            :  192
debug: RX Subdev Spec        :  B
debug: Antenna               :  RX2
debug: Gain                  :  0.450000
shmat: Invalid argument
terminate called after throwing an instance of 'std::runtime_error'
what():  circular_buffer: shmat
Aborted
What to do next?

Having the same issue here, is it possible this error is being thrown due to us using the applicaiton on an ARM based processor?

Any work arounds would  be greatly appreciated

Same problem here, on Raspberry Pi 3 Model B, (Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux) with bladeRF 40X, I also get the following error:
./kal -s GSM850 -v -D
debug: FPGA Master Clock Freq:	52000000
debug: decimation            :	192
debug: RX Subdev Spec        :	B
debug: Antenna               :	RX2
debug: Gain                  :	0.450000
shmat: Invalid argument
terminate called after throwing an instance of 'std::runtime_error'
what():  circular_buffer: shmat
Aborted

hi, has anyone manage to solve this issue?

For Raspbian use this patch (like kalibrate-rtl arm_memory)
`diff --git a/configure.ac b/configure.ac
index 5f4f19a..003bbf4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,11 +32,7 @@ AC_SUBST(BLADERF_CFLAGS)
OSX doesn't support System V shared memory
AC_CANONICAL_HOST
-case "$host_os" in

darwin*)

  AC_DEFINE([D_HOST_OSX], [], [building for OSX])

  ;;

-esac
+AC_DEFINE([D_HOST_OSX], [], [building for OSX])
AC_CONFIG_FILES([Makefile
src/Makefile])
diff --git a/src/Makefile.am b/src/Makefile.am
index 98bc1ef..43fe52e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,4 +21,4 @@ kal_SOURCES =
version.h
kal_CXXFLAGS = $(FFTW3_CFLAGS) $(USRP_CFLAGS)
-kal_LDADD = $(FFTW3_LIBS) $(USRP_LIBS)
+kal_LDADD = $(FFTW3_LIBS) $(USRP_LIBS) -lrt`

hi @elcdrue could you be more specific? i couldn`t sove this problem.
tks a lot

Same issue here. I've been looking for a solution for 3 days now...

+1

Just downloaded and compiled this today on my Raspberry Pi. I am getting the same output as the original poster. Is there a fix yet?


--target-platform contains binaries for multiple platforms

I am running 'flutter build apk --debug --target-platform=android-arm'.
After inspecting the apk, it still has .so files targetting x86 and x86_64.
The espected behaviour, is that the apk will only contain binaries for the target platform.

@safield
Can you provide flutter doctor -v ?

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


camera preview pic with 90 degree rotation  and long

i use this proj in fragmet and i want to capture pic at portrait state but surface show pic with 90d and long .also half of  viewfider goes out of my screen . what should i do ?
thanks
best wishes

Please use tesseract user forum for asking question.


Release Notes should support the outline view

Issue Type: Feature Request
Release Notes always have a lot of sections. There's a table of contents at the top, but it only lists some of the highlights.
It would be really great if the Outline view actually worked in Release Notes and showed the whole hierarchy of headers. That way I could quickly skip past things like Notebooks or Debugging, or jump back to a section I read earlier.
VS Code version: Code 1.65.0 (b5205cc8eb4fbaa726835538cd82372cc0222d43, 2022-03-02T11:11:20.886Z)
OS version: Darwin x64 21.3.0
Restricted Mode: No

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


custom DNS01 test fails when secondary nameserver is unresponsive

Describe the bug:
I'm attempting to implement a custom DNS01 challenge solver for deSEC.  I'm nearly finished, but I ran into a problem while running the test.  The relevant output when running go test is:
...
I0211 12:19:05.881419   14004 wait.go:296] Returning authoritative nameservers [ns1.desec.io., ns2.desec.org.]
I0211 12:19:05.952083   14004 wait.go:124] Looking up TXT records for "cert-manager-dns01-tests._mydomain.com_."
I0211 12:19:15.972368   14004 wait.go:162] UDP dns lookup failed, retrying with TCP: read udp <IP_ADDRESS>:34555-><IP_ADDRESS>:53: i/o timeout
I0211 12:19:35.976366   14004 wait.go:162] UDP dns lookup failed, retrying with TCP: read udp <IP_ADDRESS>:47313-><IP_ADDRESS>:53: i/o timeout
    suite.go:49: error waiting for DNS record propagation: dial tcp <IP_ADDRESS>:53: i/o timeout
...

It seems that ns2.desec.org nameserver is currently unavailable.  I'll have to check with deSEC to see what going on with that.  It appears the test requires all nameservers to return the TXT record so a fault with one of them causes the test to fail.
So that I could continue testing, I put a temporary entry in my host file to resolve ns2.desec.org to the same address of deSEC's primary nameserver, ns1.desec.io.  After that, I can get all tests to pass, but I'm guessing I might run into problems when I actually deploy this to my cluster while the nameserver is still down.
The webhook code I'm working on is located here, but I don't have the documentation in place yet.
Expected behaviour:
Have tests pass when at least one of the provider's nameservers is available.
Steps to reproduce the bug:
Run go test for custom dns provider webhook while one of the providers nameservers is unavailable.
Environment details::

cert-manager version:  v1.1.0

/kind bug

As I expected, I ran into a problem trying to deploy a certificate in my cluster.  The challenge is stuck in the pending state when there's no response from ns2.desec.org:
Status:
  Presented:   true
  Processing:  true
  Reason:      Waiting for DNS-01 challenge propagation: dial tcp <IP_ADDRESS>:53: i/o timeout
  State:       pending


DMC cartpole.xml using mjx crashes

How to ask for help
Hi,
I'm a scholar and I'm trying to use MuJoCo for the cartpole on the gpu.
I'm looking for some help with the dmc cartpole xml file together with mjx, which can be found here.
Here is what I use for simulation, and which I would expect to work.
import jax.numpy as jnp
import mujoco as mj
from mujoco import mjx

model = mj.MjModel.from_xml_string(open("cartpole.xml").read())
mjx_model = mjx.device_put(model)
data = mjx.make_data(mjx_model)

data = data.replace(ctrl=jnp.ones(1))
mjx.step(mjx_model, data),

However, I get the following error. Is this mujoco file not supported anymore, or not yet supposed to work?
.venv/lib/python3.10/site-packages/mujoco/mjx/_src/device.py:108: UserWarning: Solver mjSOL_NEWTON is not supported, reverting to CG.
  warnings.warn(f'Solver {name} is not supported, reverting to CG.')
Traceback (most recent call last):
  File ".venv/lib/python3.10/site-packages/jax/_src/array.py", line 254, in __len__
    return self.shape[0]
IndexError: tuple index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "examples/policy-learning/meh.py", line 11, in <module>
    mjx.step(mjx_model, data),
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/forward.py", line 57, in wrapper
    res = fn(*args, **kwargs)
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/forward.py", line 347, in step
    d = forward(m, d)
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/forward.py", line 57, in wrapper
    res = fn(*args, **kwargs)
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/forward.py", line 329, in forward
    d = _actuation(m, d)
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/forward.py", line 57, in wrapper
    res = fn(*args, **kwargs)
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/forward.py", line 154, in _actuation
    force = scan.flat(
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/scan.py", line 192, in flat
    _check_input(m, args, in_types)
  File ".venv/lib/python3.10/site-packages/mujoco/mjx/_src/scan.py", line 131, in _check_input
    if len(a) != size[typ]:
  File ".venv/lib/python3.10/site-packages/jax/_src/array.py", line 256, in __len__
    raise TypeError("len() of unsized object") from err  # same as numpy error
TypeError: len() of unsized object

Hi @bayerj - it looks like you are using MuJoCo 3.0.0 - can you instead try the recently released 3.0.1?  I just tried cartpole.xml with it and it worked fine.  Thanks!

That worked! Thanks.


Support setting permission_id in trx.sign for multisig

When trying to do multi-signature using an 'active' permission you need to be able to set the Permission_id in the transaction's contract e.g.
create_tx["raw_data"]["contract"][0]["Permission_id"] = 2

However, the problem here is that the transaction's raw data, and therefore the txID will need to be changed as a result of updating the transaction.
TronWeb handles this situation by taking a permissionId argument to its trx.multisign function, which if >0 where the transaction's contract doesn't have a Permission_id already, causes TronWeb to add the Permission_id to the contract before POSTing the transaction to wallet/getsignweight which then returns an updated transaction (in transaction.transaction) containing a corrected txID, which can then be signed.
This is how the code might look using tronapi to do the signing after this issue is fixed (in this case the wallet/getsignweight is only done on the first call to trx.sign):
create_tx = tron.transaction_builder.send_transaction('to', 1, 'from')
tron.private_key = 'first private_key'
signed1_tx = tron.trx.sign(create_tx, multisig=true, permission_id=2)
tron.private_key = 'second private_key'
signed2_tx = tron.trx.sign(signed1_tx, multisig=true, permission_id=2)
response = tron.trx.broadcast(signed2_tx)

Something like this should be added to your examples scripts to show how multisign should be used.

Will do


Investigate ways to further reduce the need for custom request wrapper functions

One of the design goals for Netable was to reduce the need for "wide" enums or function interfaces to specify sets of operations, stuff like:
enum Endpoint {
  case getFoo
  case setFoo(Foo)
  case getBar
  case setBar(Bar)
  //... dozens of other endpoints
}

class Api {
  func getFoo(completion: (Foo?) -> Void) {
     request(Endpoint.getFoo) {
        //...
     }
  }

  func setFoo(_ foo: Foo, completion: (Bool) -> Void) {
     //...
  }

  // ... dozens of other functions
}

Netable has been quite successful at reducing uses of the first, but much less successful at reducing uses of the second. Adding the finalization logic removed one important source of boilerplate in those sorts of API wrappers, but there's still enough stuff that you want to be done in a common way per request but that the request interface doesn't capture, that there is often need for those sort of wrappers. Some common ones we see a lot:

We want some common global or semi-global data to be set on certain types of requests. "Every time we read the user put that in LoginManager.currentUser".
We want local common error handling of some type. "404 errors on this request get transformed into another error type because that has some special meaning here"
We want some sort of global common error handling. "All of these apis should generate a warning error toast when network errors happen on them".

Assuming we still think that boilerplate is worth reducing further (which is a question we should ask first, rather than just charging ahead with this, in particular this question does interact with some of our thinking on how repositories and services should be structured in the overall architecture, which has evolved a fair bit since Netable started), we should do a bit more systematic of an audit of what the full set of things that still require that kind of point of functionality that can't fit into the request objects, and look into ways to specify those bits of behaviour as part of the request.

specify those bits of behaviour as part of the request

One follow up though, I say the above, but in fact some of the functionality might be better NOT as part of the request. Global error handling, in particular, might make more sense as some callback (or Combine publisher, or whatever) on the Netable instance rather than as part of a request.

It's been my experience with past projects, that we usually run into a situation where we've got a giant Manager or Model class full of thin wrappers on netable.request due to one of a couple situations:

There's a bunch of ViewModel or Model classes that all need to use the same/similar requests, so they can't directly call netable.request without creating a lot of redundant code.

We need to do some kind of complex post-processing with the request result, or failure, that doesn't really fit into the ViewModel without becoming a pyramid of doom really quickly.

Additionally, I think we've got two other issues in the pipeline that Nigel's mentioned that could influence this pretty heavily:

Supporting global error handling
Changing our philosophy at Steamclock to more heavily use Repositories to group blocks of code that interact with similar data

Finally, I think that there's a chance that while we'd like to avoid these custom request wrapper functions, doing so at the expense of larger blocks of code in ViewModels/other places is probably a net loss for a codebase.
With all that being said, here's what I think makes sense as our next course of action:

Encourage users to group similar requests into Repositories, with separate Netable instances where appropriate. Note that this will likely result in repositories being a big collection of fetch/publishers for each piece of data, which isn't ideal and sort of the problem we originally set out to fix, but I think the lesser of two evils :/
Change onCompletion to onSuccess() and onFailure?() with onFailure falling back to a netable-level default error handling (covered in #79)

Files as #92

Hey all!
I've been assigned this ticket and there been a lot of conversation, and it seems the last bit of convo was "we'll think about this later, with the except of ticket #92", which I have done to some extent and have asked for some mentorship on.
To me having just come into this, it seems a lot of what this is discussing now exists (with the exception of #92). So my question is what is the scope of this ticket and what is it you're wanting me to tackle here?

Yeah, I don't think there are any other concrete tasks here until we've had a little more discussion on it.
Looking at some recent examples of usage, it seems like this claim of mine at least: "but repositories could probably use Netable directly rather than needing to wrap it behind another abstraction", has not proven true in practice, that a lot of repositories in our current apps do generally have an associated service that seems to consist of exactly the sort of extremely thin wrapper around Netable that we say we are trying to avoid. It looks like the main reason for that now is maybe testability (at least in the most modern of the projects using the architecture). Like the service has an interface and a concrete implementation that is near trivial, but we need the abstraction to be able to replace the trivial implementation against Netable with a less trivial, I guess the open questions now are:

Is testability the main reason we sill need to create thin wrappers?
If so, is there some alternate approach to testabilty we can take (maybe the ability to mock requests at the Netable level in some way?) that would let us dispense with the current "null" services?

Is testability the main reason we sill need to create thin wrappers?

IMO yes, the biggest responsibility for repos right now in my mind (other than passing data between VMs) is negotiating caching and handling the logic for dealing with cached/fetched data.
I think if we were able to come up with some alternate way to ensure that we're able to test the caching logic and fetching from Netable separately, we might be able to remove or significantly reduce the size of the service layer in our apps?

Yeah, that's a correct understanding of what we mean by that. In particular "thin" or "boilerplate" wrappers are ones where the fact that it is wrapped tends to not provide a lot of value because the wrapping is trivial, something like (A slightly modified example from a client project you may be familiar with 😄 ):
protocol UserServiceProtocol {
    func getCurrentUser(id: String) async throws -> User
    func getPaymentHistory(id: String) async throws -> [PaymentItem]
    func getUserMessagingPreferences(id: String) async throws -> UserMessagingPreferences
}

class UserService: UserServiceProtocol {
    func getCurrentUser(id: String) async throws -> User {
        try await request(CurrentUserQuery(id: id))
    }

    func getPaymentHistory(id: String) async throws -> [PaymentItem] {
        try await request(PaymentHistoryQuery(id: id))
    }

    func getUserMessagingPreferences(id: String) async throws -> UserMessagingPreferences {
        try await request(MessagingPreferencesQuery(id: id))
    }

    //...
}

Doing this is necessary to make the network request mockable with the current architecture, but this does mean that every time you add a request, you need to touch three places (these two types and the request type itself), two of which are trivial, to add any new request. It would be better if we didn't have to add those and could just dispense with these wrappers and use the requests directly where the wrappers are being called now, but that requires some solution to how to mock network requests without using the protocol to swap in a new implementation of the wrapper.

I think this ticket needs a little more thought before any tasks can be done on it as to how to solve the test issue.
I don't have a great idea with how to proceed on this ticket, so am going to unassign myself from actively working on this right now, if that makes sense to you @brendanlensink.


No way to get text of the entire page

I'm trying to get the page title and body text to cache for local searching. However, using html, body, etc. don't allow me to get the text of the entire page. I can use title as a selector to get the page title, but if I can't get the body text at the same time, I can't easily save those together into my local cache (I'd like to use a (title, body) tuple for saving them). Is there something I'm missing here? Would resolving this be in-scope for crabler?
If I'm thinking about implementing it, I was thinking of a new on_page handler that would provide the entire page in one request that would compliment the existing on_html handler. Would that be in scope for this library?

Gathering body text wouild involve walking over entire tree of elements under body in search of text nodes and concatenating them. Most of libraries do this under the hood when you invoke .text() method or something similar. Im not oposing to have a method like that in crabler, but i dont have any plans atm to add it myself. PRs are always welcome. Hope that clarifies things.

I need this functionality, so was considering adding it, though I'm liking your comment about the body, maybe call it on_body. I don't see a reason to include the <head> in this part, as the use case is to get all the text of the actual page, which shouldn't come from anything in <head>.
Would it make sense to call .text() on everything or instead pull all the raw text and strip out any and all tags afterwards? I would think the latter approach would be faster, though probably benchmarking is in order...

So I'm thinking that the issue is really that there's no way to get the "raw" source of an element from crabquery::Element from what I can tell. I could on_html(body, ...) and then call html() (which is what jQuery uses I think) to get the interior HTML. Then I could extract everything I need from there. But it looks like crabquery is a separate lib, would it be reasonable to add such a method there? I think that's the most versatile approach.

you can add full_text method to crabquery::Element that would simply first call text() method and then get children() of a node and append all the full_text() calls from those to a string.

you can probably also extend crabquery::Element if you implement your own trait in your code and then implement it on Element type (you can implement your own traits on 3rd party types).

and yeah, you can send PR to crabquery library, its fine. I would publish it then and update dependencies in crabler.


chore: bump to<EMAIL_ADDRESS>

This PR bumps the trader-quickstart to<EMAIL_ADDRESS>

Already covered in #267


Try json optimization

@hashedone asked some questions about ownership of variables and passing String vs &str. I realised much of the API was designed when my Rust knowledge was much weaker. I would like to allow novice developers to use the simple case, but we should allow contract developers to use &str in InstantiateMsg, ExecuteMsg, and QueryMsg to avoid copies, without affecting anyone else using this framework. (opt-in per contract).
I tried to make a simple demo on Hackatom to see what affect it would have on gas cost (as we currently meter this, so we have a nice comparison).
I had to make a few changes open to more lifetimes in cosmwasm-std, but eventually hit an issue in serde-json-wasm:
pub fn from_slice<T>(v: &[u8]) -> Result<T>
where
    T: de::DeserializeOwned,
{
    let mut de = Deserializer::new(v);
    let value = de::Deserialize::deserialize(&mut de)?;
    de.end()?;

    Ok(value)
}

https://github.com/CosmWasm/serde-json-wasm/blob/main/src/de/mod.rs#L574-L584
Before I go deeper into this rabbit hole, I would like some feedback. Seems like a rather simple change to make it more general, but let devs still use existing code as DeserializedOwned without any changes.

At very high level, Deserialize with reference fields can only be used if the data source outlives the data source. This is the case in our usage:
fn _do_execute<M, C, E>(
    execute_fn: &dyn Fn(DepsMut, Env, MessageInfo, M) -> Result<Response<C>, E>,
    env_ptr: *mut Region,
    info_ptr: *mut Region,
    msg_ptr: *mut Region,
) -> ContractResult<Response<C>>
where
    M: DeserializeOwned + JsonSchema,
    C: Serialize + Clone + fmt::Debug + PartialEq + JsonSchema,
    E: ToString,
{
    let env: Vec<u8> = unsafe { consume_region(env_ptr) };
    let info: Vec<u8> = unsafe { consume_region(info_ptr) };
    let msg: Vec<u8> = unsafe { consume_region(msg_ptr) };

    let env: Env = try_into_contract_result!(from_slice(&env));
    let info: MessageInfo = try_into_contract_result!(from_slice(&info));
    let msg: M = try_into_contract_result!(from_slice(&msg)); // msg outlives msg (var shadowing is evil)

    let mut deps = make_dependencies();
    execute_fn(deps.as_mut(), env, info, msg).into()
}

DeserializeOwned is needed for deserializers with a vanishing data source, such as streaming deserializers.
So I don't see anything conceptually wrong with that. I just wonder if it is really with the effort to save a few string copies.

I also do not know to what degree schemars supports deriving JSON schema from reference fields. I did not find anything in the repo. This should be tested.

I don't think it is that much code, good point about checking json serializer.
Mainly I want to see if we can make the std lib support such a case without too much work and mainly seems like I just need to annotate lifetimes

Wait, now I remember why there are no &str. We can't properly do that in JSON, as it may need to escape strings, so it gets quite complicated CoW if we try to maybe avoid heap-allocations. Nothing easy.
You commented this in serde-json-wasm https://github.com/CosmWasm/serde-json-wasm/issues/16#issuecomment-625756622

I'm going to close this approach, we need String for all JSON deserialization.


Why do I need mysql for a python package?

Guys, I just tried to install your module, however it asks me for some mysql configuration.
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: /bin/sh: 1: mysql_config: not found
    /bin/sh: 1: mariadb_config: not found
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-9i47p9nz/mysqlclient/setup.py", line 15, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-9i47p9nz/mysqlclient/setup_posix.py", line 65, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-install-9i47p9nz/mysqlclient/setup_posix.py", line 31, in mysql_config
        raise OSError("{} not found".format(_mysql_config_path))
    OSError: mysql_config not found
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9i47p9nz/mysqlclient/

I don't have 'mysql' server on this computer, and also I would like to avoid installing another deamon on my computer.
I would like just your point of view. Thanks

Duplicate of #250.

Duplicate of #250.


Add detach_faces method

Close #4533

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

Project coverage is 81.59%. Comparing base (567fd28) to head (cdccddd).
 Consider uploading reports for the commit e94dada to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4534      +/-   ##
==========================================
+ Coverage   81.57%   81.59%   +0.01%
==========================================
  Files         110      110
  Lines       53594    53602       +8
==========================================
+ Hits        43721    43737      +16
+ Misses       9873     9865       -8


[strongly] add use responsive

Summary of problem or feature request

[strongly] add use responsive
https://www.datatables.net/blog/2014-07-16
or How to Extend -> function table()
Code snippet of problem
vendor/yajra/laravel-datatables-oracle/src/Html/Builder.php
public function table(array $attributes = [])
    {
        $this->tableAttributes = array_merge($this->tableAttributes, $attributes);

        //append start---------------------------------------
        $thead = [];
        foreach($this->collection->toArray() as $row){
            $thead[] = 'html->attributes($row).'">'.$row['title'].'	';
        }

        return '
html->attributes($this->tableAttributes) . '>

'.implode('',$thead).'

';
       //append end---------------------------------------
    }

System details

Operating System CentOS 6.7
PHP Version 5.6
Laravel Version 5.2.30
Laravel-Datatables Version 6.10.1

@imagine10255, thank you for the suggestions! Will review and try to implement this. There is a change in behavior and this might be a breaking change so we need to be careful. Thanks!

Thanks for your response

@imagine10255, what are the attributes needed for the responsive extension? I think we need to limit it to only this attr: ['class', 'id', 'width', 'style']? Let me know if I miss something. I just tested the snippet and I think we can implement this request.
    public function table(array $attributes = [])
    {
        $this->tableAttributes = array_merge($this->tableAttributes, $attributes);

        $th = [];
        foreach ($this->collection->only(['class', 'id', 'width', 'style']) as $row) {
            $th[] = 'html->attributes($row) . '">' . $row['title'] . '	';
        }

        $htmlAttr = $this->html->attributes($this->tableAttributes);

        return '

' . implode('', $th) . '

';
    }

Code snippet of problem
app/DataTables/Backend/System/UserDataTable.php
/**
     * Optional method if you want to use html builder.
     * @return \Yajra\Datatables\Html\Builder
     */
    public function html()
    {
        return $this->builder()
            ->ajax(asset('smart/backend/system/user'))
            ->addHideId()
            ->addCheckbox()
            ->addColumn(['data' => 'name','data-class'=>'expand','title' => '使用者名稱'])
            ->addColumn(['data' => 'account', 'data-hide'=>'xs', 'title' => '使用者帳號'])
            ->addColumn(['data' => 'email', 'data-hide'=>'xs', 'title' => '電子郵件'])
            ->addEnable()
            ->addCreateAt()
            ->addUpdateAt()
            ->addAction()
            ->parameters();
    }
    }

/**

reference http://<IP_ADDRESS>/themes/preview/smartadmin/1.8.x/ajax/index.html#ajax/datatables.html
So, I think need attr [data-class,data-hide]
data-class : [expand] open and close btn event column
data-hide : hide column on max @px
Thanks for your response,

Thanks for the feedback. I just updated the PR and added data-class and data-hide attributes. Will merge and release this PR later this week. If you can, please do test and verify that the PR works. 👍

:+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1:

Is this working? I can't get it..


Fix(#748) make AsyncServletProperties.Threads class available everywhere

fix(server): change AsyncServletProperties.Threads modifier to public

Please update commit message to conform conventional commit specs (and pass commitlint).

@egormasalitin Why did you close the PR? Because of that it can no longer be merged.


Question : Custom health check feature

Hello,
Our system has a custom health check that we use to determine health of all nodes in the cluster.
I see orchestrator has its own checks to determine if a node is in good health.
Is there a way for us to add our custom health check in addition to the default health check as a part of orchestrator ?

@dbcoder22 sorry for the late response. This sounds like it can get complicated.
orchestrator is not a monitoring system per-se ; what kind of health checks were you thinking of?

@shlomi-noach thanks a lot for getting back. We have a custom maintenance scheduler that marks a node at temp-down as its scheduled for weekend reboot. This ensures that these nodes are not promoted  during graceful fail overs
We can of course our own process to do this and mark the node as "not to promote" in orchestrator, but we were wondering if this can be integrated in the orchestrator health check so that there is just one source of truth to get all node and cluster status.

What would be the nature of the health-check itself? What would orchestrator need to do to determine "health", and what would "healthy" mean, in this case? Would "unhealthy" only mean don't promote" or would there be other implications?
I'm trying to figure out how many nuances there could be to this request.

The nature of health check would be to perform a call to rest api to get the current status of that node and determine if its up for maintenance or not. Its not really about the health of the node but determine if that node is eligible for promotion. Yes, unhealthy in this check would mean 'don't promote'

Thanks for clarifying. It's unlikely that this will be added in orchestrator, unfortunately. I'd advise to proceed outside of orchestrator and set promotion-rule to must-not.

Oh ok. No worries we will look into this and figure out a way. Thank you so much :)


Fastlane isn't warning users that the captured output could contain sensitive information

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
The issue template tells users to use the --capture_output argument or fastlane env command and blindly paste the output in issues, but it contains the entire Fastfile's contents, which could contain sensitive or private information. It also contains the path to the project that uses Fastlane, which is not relevant at all, and the Apple Developer Team ID, which feels odd, even if it's not a security problem. It would be great if the messages would be prefixed by a warning stating these.

This is a great idea! Any chance you'd want to create a PR with the recommended language when --capture_output is used? We are always looking for good PRs from our awesome community to help improve fastlane.  😄
Also, I wonder if you've taken a look at PR #9818 fixing an issue in capture_output that prevented sensitive data from being obfuscated. Perhaps this bug was preventing fastlane from working correctly when outputting your environment. This fix recently shipped in a production release of fastlane.

Can you remove / unsubscribe  me from this list please
Sent from my iPhone

On 27 Jul 2017, at 2:18 AM, Mark Pirri<EMAIL_ADDRESS>wrote:
This is a great idea! Any chance you'd want to create a PR with the recommended language when --capture_output is used? We are always looking for good PRs from our awesome community to help improve fastlane. 😄
Also, I wonder if you've taken a look at PR #9818 fixing an issue in capture_output that prevented sensitive data from being obfuscated. Perhaps this bug was preventing fastlane from working correctly when outputting your environment. This fix recently shipped in a production release of fastlane.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@mpirri, As far as I can see, that PR obfuscates used API tokens, but, personally, as I said, I would like for the Apple Developer Team ID to be removed too.

@kkiran33 I think that you can only unsubscribe yourself from the issue on the right hand side of this screen. Sorry for the noise 😄

Hey @revolter - we are always happy to make sure that sensitive information is not shared in public. As @mpirri mentioned we would be more than happy to review a PR with some more output warning users that there could be sensitive info in the output. Would you want to submit a change to make that happen? Thanks!! 🐙  🚀

@ohayon, I would like to, but I'm not accustomed to the codebase at all. Also, would interactively asking the user if they want some section included or not be ok? For example:

Would you like to include the contents of your Fastfile:
fastlane_version "1.109.0"
default_platform :ios
...
y/n: |

Or just print a warning to the console urging the users to check the entire clipboard content for sensitive information?


Is there a way to add files to the manifest rather than overriding it?

I have a website and a website builder with multiple themes. I am trying to build a theme, without overriding the other ones in the mix-manifest.json. It would be fine if I could just stop the themes from ever touching the mix-manifest.json so I can just use that for the main website.
Is this possible? Or is that what you are adding in #3096 ?

If I understand what you're asking for correctly then yes that is what we'll be adding. In the mean time you can use the laravel-mix-merge-manifest npm package: https://github.com/kabbouchi/laravel-mix-merge-manifest


folder for downloaded media

Hello, in wich folder can i see the downloaded media and files?
thanks

Hi @timonsinrumbo
You'll finde the Downloads in your "Downloads" folder on the internal storage. Downloads only work if you have given the "Storage" permission manually (see #46)


[json] Don't propose keys that are already existing

Problem
When authoring a JSON file, such as a Microsoft Azure Resource Manager (ARM) JSON Template, the Visual Studio Code editor is showing all of the available properties for an object, instead of only showing the properties that the user has not yet specified.

Expected Result
I would naturally expect that the Visual Studio Code Intellisense returns only the JSON properties that the user hasn't defined yet. I shouldn't be prompted to insert a duplicate key.
Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
http://trevorsullivan.net
http://twitter.com/pcgeek86

Fix delivered

@aeschli Impressive, thank you.
Cheers,
Trevor Sullivan