Use bun for installation if applicable

This PR is part of an overall effort  to allow Rails developers to completely use the Bun JS runtime and bundler without needing to use Node.JS and Yarn.
This gem is automatically invoked when a new rails projects is created and before this PR would always use Yarn. After this PR this gem will detect which JS bundler is being used and use the correct one so that Yarn doesn't accidentally slip into your Rails project.
I have opened a companion PR to the turbo-rails repo as well.
Example run of javascript:install:bun and bin/rails stimulus:install
☁  test_app [main] ./bin/rails javascript:install:bun
Compile into app/assets/builds
      create  app/assets/builds
      create  app/assets/builds/.keep
      append  app/assets/config/manifest.js
      append  .gitignore
      append  .gitignore
Add JavaScript include tag in application layout
      insert  app/views/layouts/application.html.erb
Create default entrypoint in app/javascript/application.js
      create  app/javascript
      create  app/javascript/application.js
Add default package.json
      create  package.json
Add bin/dev to start foreman
      create  bin/dev
Add default Procfile.dev
      create  Procfile.dev
Ensure foreman is installed
         run  gem install foreman from "."
Successfully installed foreman-0.87.2
Parsing documentation for foreman-0.87.2
Done installing documentation for foreman after 0 seconds
1 gem installed
Add default bun.config.js
      create  bun.config.js
Add build script to package.json
☁  test_app [main] ⚡  bin/rails stimulus:install
Create controllers directory
      create  app/javascript/controllers
      create  app/javascript/controllers/index.js
      create  app/javascript/controllers/application.js
      create  app/javascript/controllers/hello_controller.js
Import Stimulus controllers
      append  app/javascript/application.js
Install Stimulus
         run  bun add @hotwired/stimulus from "."
bun add v1.0.0 (822a00c4)

 installed<EMAIL_ADDRESS>

 1 packages installed [931.00ms]

Can confirm that this works.
This must be released to allow rails new --js bun to work without --skip-hotwire in Rails 7.1.0


[SAP Solutions Connector] Outage of collector and getting historical data

Describe the bug
We had an outage over 13h from our docker containers, because was some newtork web proxy issues.
After we restarted the containers again, it seems it is not going back where he was not able to sent data.
So all data was missing from last 13h and he started right away from timestamp after proxy worked again.
During the outage the container where running and usual "web proxy authentication failed" terminal messages occurred.
So could it be that the meta.db is still populating timestamps, because SAP RFC connections where still successful, only event
upload to log analytics API was not working.
Agent Version
Latest docker container and agent update log from 26th Aug
To Reproduce
Steps to reproduce the behavior:

Leave docker container running
No Web proxy for RFC SAP connections
Force web proxy for external communication to fail
Wait
Fix web proxy again
Data collector is only streaming live data from the timestamp where proxy worked again, no data from outage-window

Hi @geraldfehringer, This issue needs to be investigated by our concern SAP solution team to check the issue and access the required logs, so we kindly request you to raise a support ticket case in azure portal, so our support team can check into it and direct this issue to SAP team. closing this issue from GitHub. If you still need support for this issue, feel free to re-open it any time. Thank you for your co-operation.


shorten copyright header

Coverage remained the same at 91.481% when pulling 702cb2daecc0f4bbcb60a47d79e8336e950aaf04 on copyright-header into 15c9cfa5d021f32636ddad4416930b0977b1ce67 on master.

Coverage remained the same at 91.481% when pulling 702cb2daecc0f4bbcb60a47d79e8336e950aaf04 on copyright-header into 15c9cfa5d021f32636ddad4416930b0977b1ce67 on master.

Coverage remained the same at 91.481% when pulling 702cb2daecc0f4bbcb60a47d79e8336e950aaf04 on copyright-header into 15c9cfa5d021f32636ddad4416930b0977b1ce67 on master.

The failing build is unrelated to the code, some Pypi issues it seems. https://travis-ci.org/rm-hull/ssd1306/jobs/184302170


Please Provide Nightly Builds

I would like to be able to test a change that is not included in the latest release of phantomjs. Is there any chance nightly builds could be provided?

@JamesMGreene try this: https://travis-ci.org/

This is unlikely feasible in the near future, see also #13828 and #15344.


UI Enhancement (suggested by Hiro)

[ ] Auto-scale the bar chart y-axis min and max values: It shouldn't be hard to do so - it gives better visibility on which bar is relatively better.
[ ] Sortable error cases for each bar: It might be helpful to allow the error case table to be sortable according to columns. I want to know the longest sequence etc.

I think the first is finished, right? If so maybe we can change the title of this to only cover the second (it's best to have descriptive titles in issues).
Regarding the second, I think this is a good idea and I think by default it could be sorted in order of ascending accuracy. This way, for text generation tasks the worst cases would come first, for example. This might be something I can start working on next.


Add cost into food properties

Cost are store into "Despesa Coletiva" e "Despesa individual"
The cost of each could be the mean.


Added new Asterisk Events to AMI Manager.

Added event handlers for AttendedTransfer, BlindTransfer, BridgeEnter, BridgeLeave, BridgeCreate and BridgeDestroy, and added a gitignore-file

Ah, there are some inappripriate types in the BlindTransferEvent.cs file (TransfereePriority and TransfererPriority which should have been integers).
Let me know if you want a new pull request with that fixed.


IE11: ajax.getJSON returns string response

Bug Report
Current Behavior
With IE11 ajax.getJSON returns the response string
Expected behavior
With IE11 ajax.getJSON should return an object as other browsers do
Reproduction
** Please provide repro code does not involves framework, or other setups to address this bug is specific to rxjs core **

REPL or Repo link:
https://johnhunter.github.io/rxjs-ie11-getJSON-issue/

// Global rxjs from<EMAIL_ADDRESS>var ajax = rxjs.ajax.ajax;

var url = 'https://api.github.com/users?per_page=2';

var users = ajax.getJSON(url);
var subscribe = users.subscribe(
  function(res) { console.log(typeof res, res) },
  function(err) { console.error(err) }
);

IE11 typeof res is "string"
Chrome typeof res is "object" as expected

Environment

Runtime: Browser IE11
RxJS version: 7.2.0

Seems like a workaround for now would be to check the type and JSON.parse:
const obj = typeof res === 'string' ? JSON.parse(res) : res;

Thanks @benlesh. I know that all IE support will be removed in v8 but do you think this regression will be patched in v7?
From PR https://github.com/ReactiveX/rxjs/pull/5661 it looks like this might have always been the behaviour with v7 (we were upgrading from 6.x.x).

Closing, version 8 is almost out and I no longer have to support IE.


Revert "Call a microservice running on Fargate using API Gateway inte…

Reverts aws-samples/step-functions-workflows-collection#201

Please move the Step functions definition to a separate file, referencing in line on the template.yaml is not best practice


Ensure Link header is not longer than 1-KB

Resolves: https://jira.duraspace.org/browse/FCREPO-2235

@awoods I have not updated the version numbers yet. I apologize for that, still playing with this mvn version:set command


The lr value increased with epoch when trained swin-trasformer (small architecture)

the config file:
...
model = dict(
    type='ImageClassifier',
    backbone=dict(
        type='SwinTransformer', arch='small', img_size=224, drop_path_rate=0.5),
    neck=dict(type='GlobalAveragePooling', dim=1),
    head=dict(
        type='MultiLabelLinearClsHead',
        num_classes=17,
        in_channels=768,
        init_cfg=None,  # suppress the default init_cfg of LinearClsHead.
        loss=dict(type='CrossEntropyLossWeight', pos_weight=[21.7, 4.641, 62.992, 53.503, 2.663, 164.863, 44.948, 42.736, 12.895, 14.641, 206.611, 18.267, 42.915, 153.185, 223.893, 194.329, 5.727] , use_sigmoid=True)
        #[21.7, 4.641, 62.992, 53.503, 2.663, 164.863, 44.948, 42.736, 12.895, 14.641, 206.611, 18.267, 42.915, 153.185, 223.893, 194.329, 5.727]
        #cal_acc=False
        ),
    init_cfg=[
        dict(type='TruncNormal', layer='Linear', std=0.02, bias=0.),
        dict(type='Constant', layer='LayerNorm', val=1., bias=0.)
    ],
    # train_cfg=dict(augments=[
    #     dict(type='BatchMixup', alpha=0.8, num_classes=17, prob=0.5),
    #     dict(type='BatchCutMix', alpha=1.0, num_classes=17, prob=0.5)
    # ])
    )

...

# schedules
paramwise_cfg = dict(
    norm_decay_mult=0.0,
    bias_decay_mult=0.0,
    custom_keys={
        '.absolute_pos_embed': dict(decay_mult=0.0),
        '.relative_position_bias_table': dict(decay_mult=0.0)
    })

# for batch in each gpu is 128, 8 gpu
# lr = 5e-4 * 128 * 8 / 512 = 0.001
optimizer = dict(
    type='AdamW',
    lr=5e-4 * 196 * 7 / 512,
    weight_decay=0.05,
    eps=1e-8,
    betas=(0.9, 0.999),
    paramwise_cfg=paramwise_cfg)
optimizer_config = dict(grad_clip=dict(max_norm=5.0))

# learning policy
lr_config = dict(
    policy='CosineAnnealing',
    by_epoch=False,
    min_lr_ratio=1e-2,
    warmup='linear',
    warmup_ratio=1e-3,
    warmup_iters=20 * 1252,
    warmup_by_epoch=False)

runner = dict(type='EpochBasedRunner', max_epochs=400)

Yes.  But loss is wired. When set  warmup_iters=5,(10, 20 , ) warmup_by_epoch=True , the loss declined. But rised after epoch 5 （10，20）.
But the base architecture of swintransformer is OK , their settings is same except for architecture setting  (base , small)

Maybe you can try to modify the learning rate and learning rate scheduler to fit your dataset.

Cloud please tell me how to calculate the lr decay and about warmup lr. the two strategies make me confused.
for example 1:
paramwise_cfg = dict(
    norm_decay_mult=0.0,
    bias_decay_mult=0.0,
    custom_keys=dict({
        '.absolute_pos_embed': dict(decay_mult=0.0),
        '.relative_position_bias_table': dict(decay_mult=0.0)
    }))
optimizer = dict(
    type='AdamW',
    lr=0.0011484375000000002,
    weight_decay=0.05,
    eps=1e-08,
    betas=(0.9, 0.999),
    paramwise_cfg=dict(
        norm_decay_mult=0.0,
        bias_decay_mult=0.0,
        custom_keys=dict({
            '.absolute_pos_embed': dict(decay_mult=0.0),
            '.relative_position_bias_table': dict(decay_mult=0.0)
        })))
optimizer_config = dict(grad_clip=dict(max_norm=5.0))
lr_config = dict(
    policy='CosineAnnealing',
    by_epoch=False,
    min_lr_ratio=0.01,
    warmup='linear',
    warmup_ratio=0.001,
    warmup_iters=8800,
    warmup_by_epoch=False)
runner = dict(type='EpochBasedRunner', max_epochs=400)

I can found the register function on optimize and lr_update file on mmcv . but I don't know how to execute the warmup and lr_update strategy on the whole pipeline. So I don't know how to calculate the lr change according what. Cloud you give me the
formula that calculates the lr for reference. I didn't calculate it correctly according to the source code.

The wired thing is that same strategy on swintransformer base architecture is ok but no small.

the loss declines fast.

The learning rate scheduler implementation of CosineAnnealing is in mmcv. As for the detail formula, you can refer to the PyTorch docs

Has this question been solved?

Has this question been solved?

Yeah! Solved!
Thank you for your reminder


Error: Expected signal to be an instanceof AbortSignal or EventTarget on running custom config slash commands

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: Windows 11
- Continue version: 0.8.58
- IDE version: VS Code Latest
- Model: Mistral API

config.ts file:

config.slashCommands?.push({
    name: "refactor",
    description: "Analyze and provide detailed refactoring suggestions for the selected code",
    run: async function* (sdk) {
      const input = await sdk.input;

      const systemMessage = `
        You are an expert code refactoring assistant. Analyze the provided code and suggest comprehensive refactoring improvements. Follow these steps:

        1. Code Analysis:
        - Identify code smells and anti-patterns
        - Analyze complexity and maintainability issues
        - Review naming conventions and code structure
        - Check for potential performance bottlenecks

        2. Refactoring Suggestions:
        - Provide specific, actionable refactoring recommendations
        - Explain the benefits of each suggested change
        - Include before/after code examples
        - Prioritize suggestions by impact and implementation effort

        3. Implementation Guide:
        - Provide step-by-step refactoring instructions
        - Include refactored code with detailed comments
        - Highlight potential risks and how to mitigate them
        - Suggest tests to verify refactoring changes

        Here is the code to refactor:
        ${input}

        Organize your response in clear sections and provide practical, production-ready solutions.
        `;

      // Send the system message to the LLM
      for await (const message of sdk.llm.streamComplete(systemMessage, {
        // temperature: 0.7,
        maxTokens: 4096,
        // topP: 0.9,
      })) {
        yield message;
      }
    },
  });

Description
As mentioned above, I have added this command and when trying to run this, I get the error. Normally running anything without the custom slash command does not result in an error.
To reproduce

Add the custom slash command I gave above
Select a code and use that command
See the error

Log output
[Extension Host] Error handling webview message: {
  "msg": {
    "messageId": "23b691a9-8d04-4a5e-8cea-37f2cef0ac80",
    "messageType": "command/run",
    "data": {
      "input": "/refactor \n\n src/pages/PackageDetail.tsx (213-222)\n      {/* WhatsApp Contact Button */}\n      <a\n        href=\"https://wa.me/1234567890\"\n        target=\"_blank\"\n        rel=\"noopener noreferrer\"\n        className=\"fixed bottom-8 right-8 bg-green-500 text-white p-4 rounded-full shadow-lg hover:bg-green-600 transition-colors z-40\"\n      >\n        <Phone className=\"h-6 w-6\" />\n      </a>\n    </div>\n```",
      "history": [
        {
          "role": "user",
          "content": [
            {
              "type": "text",
              "text": "/refactor \n\n```tsx src/pages/PackageDetail.tsx (213-222)\n      {/* WhatsApp Contact Button */}\n      <a\n        href=\"https://wa.me/1234567890\"\n        target=\"_blank\"\n        rel=\"noopener noreferrer\"\n        className=\"fixed bottom-8 right-8 bg-green-500 text-white p-4 rounded-full shadow-lg hover:bg-green-600 transition-colors z-40\"\n      >\n        <Phone className=\"h-6 w-6\" />\n      </a>\n    </div>\n```"
            }
          ]
        }
      ],
      "modelTitle": "Mistral Large",
      "slashCommandName": "refactor",
      "contextItems": [],
      "historyIndex": 0,
      "selectedCode": [
        {
          "filepath": "src/pages/PackageDetail.tsx (213-222)",
          "range": {
            "start": {
              "line": 212,
              "character": 0
            },
            "end": {
              "line": 221,
              "character": 0
            }
          }
        }
      ]
    }
  }
}

Error: Expected signal to be an instanceof AbortSignal or EventTarget

@lakshits11 we've recently introduced the abort signal in some new places, there was a large PR for this last week and it's possible that some bugs have inadvertently been introduced.
For your reference:

https://github.com/continuedev/continue/pull/2935
https://github.com/continuedev/continue/pull/3013

Also a heads-up: we will most likely be de-emphasizing slash commands in the future, maybe not straight out deprecating them but at least seriously rethinking them.

@lakshits11 this is a discussion we've mostly been having internally but it's related to a couple things:

We are working on a new prompt file format that will be released soon. The use case that I'm seeing in your code - building a custom system message for a specific use case - will be covered by that. It will be easier to work with because it's going to be a simple text file (think .yaml or .json).
Some of the functionalities of the slash commands will be incorporated into an upcoming release with tool usage. In essence, your model will get access to something similar to Slash commands and will be able to take actions by itself.
Slash commands are not particularly popular compared to other Continue features.
Slash commands often confused users / didn't behave as users expected.

The official example at https://docs.continue.dev/customize/tutorials/build-your-own-slash-command#custom-slash-commands also results in the same error message. Could you please update it to work with your recent changes?

@ArdaE I have just tried running the example slash command locally and it appears to be working as expected. Which version of Continue are you currently on? I tested this on v0.8.61.

@tomasz-stefaniak It works now. It looks like the example has been updated. It didn't have the new AbortController().signal, line at the time I tried it. Thanks for your attention to this.

I've tried the same change in @lakshits11's "refactor" slash command above, and that too works now on my machine. Once @lakshits11 verifies this too, I think this issue can be closed.
In short, simply add new AbortController().signal, after systemMessage,, just before the { in the original post above.


Bug when trying to run time series

"Invalid time range type object 'datetime.datetime' has no attribute 'datetime'"
https://d1igaxm6d8pbn2.cloudfront.net/get_stats?timestamp=2016-06-09T00%3A00%3A00Z&_type=series&steps=1&layer=GHRSST_L4_MUR_Sea_Surface_Temperature&colormap=GHRSST_Sea_Surface_Temperature.xml&_scale=1&bbox=-90%2C-180%2C90%2C180&bins=10&end_timestamp=2016-06-10T00%3A00%3A00Z

Closed by #41


Invalid ios permission "notification"

Bug
I have upgraded my RN to 0.61.X and subsiquently upgraded my react-native-permissions to 2.0.2
I have followed the installation process in the documentation but now i am getting
Invalid ios permission "notification". Must be one of:

• ios.permission.BLUETOOTH_PERIPHERAL
• ios.permission.CALENDARS
• ios.permission.CAMERA
• ios.permission.CONTACTS
• ios.permission.FACE_ID
• ios.permission.LOCATION_ALWAYS
• ios.permission.LOCATION_WHEN_IN_USE
• ios.permission.MEDIA_LIBRARY
• ios.permission.MICROPHONE
• ios.permission.MOTION
• ios.permission.PHOTO_LIBRARY
• ios.permission.REMINDERS
• ios.permission.SIRI
• ios.permission.SPEECH_RECOGNITION
• ios.permission.STOREKIT

in my console.
It doesn't seem like IOS (or Android for that matter) handle the ability to check Notifications now?
React native info output:
System:
    OS: macOS Mojave 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Memory: 319.98 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.10.0 - /usr/local/bin/node
    npm: 6.11.3 - /usr/local/bin/npm
  SDKs:
    iOS SDK:
      Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-25 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8<IP_ADDRESS>91312
    Xcode: 11.0/11A420a - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.2 => 0.61.2
  npmGlobalPackages:
    react-native-cli: 2.0.1
Franciss-MacBook-Pro:enlitened-student-app francisleigh$

Library version: 2.0.2
Steps To Reproduce
upgrade react-native-permissions
run app
Describe what you expected to happen:
i'd expect the library to be able to handle notification 'permissions.

Is check("notification") replaced with checkNotifications()

yes - because the notification permission is so nuanced, it's not just off/on

Thank you!, I should have read the documentation again.


support distributed dead lock detection  (WIP)

WIP
Support distributed deadlock detection

Implement deadlock proto related RPC server interface

Wrap former detector  into new DeadLockDetector, add role to this new detector, and process requests based on current role(leader/follower)

Add detectConn and detectClient to do stream send and recv

Add code path to process first region role change callback

The storage engine still has some problems #267 #268,  the distributed tests are not done yet.

@coocood PTAL  distributed tests not done yet, thx

@coocood @bobotu  PTAL

@bobotu @coocood  PTAL

Detector code and test case ported from tidb dependent package, the slice is changed to list and some extra utils are added like entry size counter.
detectionConn and detectClient removed.
Entry recycling logic added

conflicts resolved.

Edge expire validation added in doDetect
OnRoleChange implementation based on newly region event handler goroutine

@coocood @bobotu  PTAL

LGTM


Fix GitHub app access token gen

https://github.com/jbpratt/managed-release-bundle/pull/1 example PR

/lgtm


more async

Codecov Report

Merging #336 (1725c65) into main (787d959) will decrease coverage by 0.07%.
The diff coverage is 77.52%.

@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
- Coverage   71.44%   71.36%   -0.08%
==========================================
  Files         180      180
  Lines        7291     7358      +67
  Branches      554      555       +1
==========================================
+ Hits         5209     5251      +42
- Misses       1950     1975      +25
  Partials      132      132

Impacted Files
Coverage Δ

pyEX/alternative/alternative.py
54.54% <28.57%> (-12.13%)
:arrow_down:

pyEX/account/__init__.py
52.45% <50.00%> (ø)

pyEX/commodities/commodities.py
74.21% <86.11%> (-4.58%)
:arrow_down:

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 787d959...1725c65. Read the comment docs.


web3one.3 Mnemonic invalid or undefined

My truffle v5.0.0-beta.2 migration fails to deploy to rinkeby infura API.
The issue seems to be from not correctly processing the mnemonic.
Here is my .env file setup with a sample mnemonic and removed API key.
MNEMONIC="prevent indoor veteran upgrade salad limit prefer sausage december write giggle battle wisdom remind giant"
INFURA_API_KEY="###"

Here is my truffle.js setup.
require('dotenv').config();
const HDWalletProvider = require("truffle-hdwallet-provider");

module.exports = {
  // See <http://truffleframework.com/docs/advanced/configuration>
  // to customize your Truffle configuration!
  networks: {
    development: {
      host: "<IP_ADDRESS>",
      port: 8545,
      network_id: "*" // Match any network id
    },
    rinkeby: {
      provider: () => new HDWalletProvider(process.env.MNENOMIC, "https://rinkeby.infura.io/v3/" + process.env.INFURA_API_KEY),
      network_id: 4,
      gas: 3000000,
      gasPrice: 21
    }
  },
  compilers: {
     solc: {
       version: "0.4.24"
     }
  }
};

Here are my dependencies.
"dependencies": {
    "bn.js": "^4.11.8",
    "dotenv": "^6.2.0",
    "ganache-cli": "^6.2.3",
    "openzeppelin-solidity": "^2.0.0",
    "truffle": "^5.0.0-beta.2",
    "truffle-hdwallet-provider": "^1.0.0-web3one.3"
  }

Here is my error.
$ truffle migrate --network rinkeby
Error: Mnemonic invalid or undefined
    at new v (/Users/###/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-pr
ovider/src/index.js:51:1)
    at Object.provider (/Users/###/truffle.js:14:23)
    at Object.create (/Users/###/.config/yarn/global/node_modules/truffle/build/webpack:/packages/truffle-provider/index.js:15:

1)
    at Config.get [as provider] (/Users/###/.config/yarn/global/node_modules/truffle/build/webpack:/packages/truffle-config/ind
ex.js:208:1)
    at Object.detect (/Users/###/.config/yarn/global/node_modules/truffle/build/webpack:/packages/truffle-core/lib/environment.
js:58:1)
    at Object.<anonymous> (/Users/###/.config/yarn/global/node_modules/truffle/build/webpack:/packages/truffle-core/lib/command
s/migrate.js:170:1)
    at cb (util.js:368:39)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)

Sounds like this is resolved: https://gitter.im/ConsenSys/truffle?at=5c115bfb8d4f3a2a7cb042de

I am getting this same error. It all of the sudden started happening even though my .env file has no changes... what's the solution? 🤔


Added left truncate

Truncate the beginning of the word, and not the end.
I couldn't properly test this unfortunately.

Hi @BojanKogoj and thank you for your PR.
I still have some issue setting up unit tests with typescript stack, but it will come soon!
I'm going to try your contribution in my code asap, and probably add the middle value to your position parameter (in order to have something like Truncate...of text)

Alright. I tried to set up tests, but they just wouldn't work somehow. Middle truncating sounds quite good if I'm honest, maybe you could add url truncating as well (somewebsite.com/.../some-page)

URL truncating is a good idea, but sounds a little bit too specific and may deserve its own filter. In a near future, I'm going to adapt my angular-url-parser to angular2. With this asset, it will be really easy to implement your proposition.


Tommy Has No Issue

me, myself and I do not have a problem.

[ ] problem #1
[ ] problem #2

Sample Code:
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}

SQL Code
SELECT * FROM Everything


New plugin: PHP5 OPcache

APC has been replace by the Zend OPcache engine starting with PHP 5.5. This plugin collects Zend Opcache's internal stats (system and memory stats). A php script allowing to query the stats in JSON format is included.

This looks awesome. Can't wait to see it merged in.

Looks promising!

Is this going to be merged in?


Document binaryninja.core_set_license in user docs.

https://api.binary.ninja/#binaryninja.core_set_license is documented in our API, but nowhere in our user documentation for Commercial/headless processing.
This allows setting a license at runtime (which seems like a very useful thing to be able to do when batch processing w/ a portable install on other servers). I personally use this frequently.
My initial instinct (and where google led me when searching this) was that it would be documented or mentioned on this page:  https://docs.binary.ninja/dev/batch.html

see 25b82434dff420390f7e0090fe29f5fd31966787


Add alarm and throttling for API

Context
The API went down for a few days without us knowing because we got DOSed.
Problem or idea
We should add an alarm so we know next time, but also add throttling to prevent this from happening at all.
Solution or next step
Add a cloudwatch alarm. Set up an ACL WAF on the load balancer based on IP.

Closing and opening https://github.com/AlexsLemonade/scpca-portal/issues/321


Local Installation error

Describe the bug
After installing gatsby cli and all the dependencies using npm.
When we use npm run develop to start and develop the project. It shows the following error

I had to increase node-sass version as without doing that node npm i was throwing errors about node-sass and node-sharp

You can add a file named variables.sass as follows on your own.

The content of the variables.sass
$text-color: #242526; $primary: #54AD28; $light-secondary: #E6ECEE; $secondary: #24598B; $dark-grey: #666666; $grey: #808080; $light-grey: #D3D3D3; $very-light-grey: #C9C9C9; $red: #F24423; $very-dark-grey: #63676A; $xs-and-less: (min-width: 576px); $tiny-and-less: (min-width: 768px); $md-and-less: (min-width: 992px); $sm: (min-width: 576px); $sm-and-less: (max-width: 576px)

Thank you @KaveeshaPiumini it worked for me. I was finally able to run webiu locally.

Im not able install it locally

please help me


Clean Old password when user click goBack

Details

Follow up PR of https://github.com/Expensify/App/pull/5275 to SignInPage.
Tests |QA Steps

Go to the login page.
Add an email manually.
Press continue and add password on the next page manually.
Click Go back.
Add the email again.
Click continue and confirm that there is no password on the next page.
Click go back.
Select an email from the password Manager.
Confirm that email is autofill.
10 click continue and confirm that there is a password auto-filled for that email.

Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[ ] iOS
[ ] Android

Screenshots

Web | Desktop

https://user-images.githubusercontent.com/24370807/145724260-58da2e33-e113-472d-9910-3192ad397d6b.mp4
Mobile Web

iOS

Android

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by @mountiny in version: 1.1.20-3 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

@parasharrajat,
What password manager should we use to validate Desktop? We are able to test Web and mWeb, but not sure how to trigger it for Desktop app.

It's fine, you don't need to test it on the Desktop @mvtglobally .

🚀 Deployed to production by @Julesssss in version: 1.1.21-1 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Updating Slot Count when Bag of Holding/Any Container is Stashed

When the Bag of Holding is "Stashed" the total number of slots should also be reduced.

I guess we should activate/deactivate any active effects on items when they are stashed.
@OyajiWeeb  As a workaround you can manually toggle the effect on/off on the Effects tab of the character sheet:


C version of disunity

C version of disunity: https://github.com/dpull/AssetBundleParser
Can be used for unity native plugin,example: https://github.com/dpull/AssetBundlePatch

Good job, I guess it should perform better than my Java version. Does it support Unity 5 already?

A few days


Error: AnchorError occurred. Error Code: InstructionFallbackNotFound. Error Number: 101. Error Message: Fallback functions are not supported.

Error: AnchorError occurred. Error Code: InstructionFallbackNotFound. Error Number: 101. Error Message: Fallback functions are not supported.
I just want to mint nft. It shows me error in invoke method. When i remove invoke function from smart contract it executes. Please help me to get rid of this problem. Code github repo- https://github.com/springrainroni/nft_anchor.git

can you solve the question？

make sure you have the most up to date IDL...checking this helped me solve this error


Fixing permissions issue in local IIS webs

Please remember to squash the commits when you merge (or before).

Thanks Jimmy!


Update dependencies to the latest version

As tokio 0.2 runtime is not compatible with tokio ^1.

Thanks for the PR!


Cant run ledokku hosting in digital ocean

I have setup the Ledokku as described in the installation guide. I could reach the Dokku ssh and key setup but I cannot go into the Ledokku console. Dokku tells me the Ledokku is not deployed. SSH could be okay as my putty can log on without password.  Also, I have assigned permanent IP, too.
Dokku 0.21 image in digital ocean.
tail -f /var/log/auth.log
Unable to negotiate with <IP_ADDRESS> port 58676: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
root@Ledokku:~# dokku config:set ledokku DOKKU_SSH_HOST=ledokku.production-dokk
-----> Setting config vars
DOKKU_SSH_HOST:  ledokku.production-dokk
-----> Restarting app ledokku
!     App ledokku has not been deployed
root@Ledokku:~# dokku enter ledokku
App ledokku has not been deployed
How can get this to work?

I have got a similar issue as well -
Steps to reproduce

Install dokku from DO Marketplace
ssh into droplet
run installation scriptwget https://raw.githubusercontent.com/ledokku/ledokku/v0.7.0/ledokku-bootstrap.sh
sudo bash ledokku-bootstrap.sh

Console Log
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-128-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Sat Oct 22 06:23:45 UTC 2022

  System load:  1.4                Users logged in:          0
  Usage of /:   3.3% of 154.88GB   IPv4 address for docker0: <IP_ADDRESS>
  Memory usage: 6%                 IPv4 address for eth0:    <IP_ADDRESS>
  Swap usage:   0%                 IPv4 address for eth0:    <IP_ADDRESS>
  Processes:    177                IPv4 address for eth1:    <IP_ADDRESS>

8 updates can be applied immediately.
2 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

********************************************************************************

Welcome to DigitalOcean's 1-Click Dokku Droplet.
To keep this Droplet secure, the UFW firewall is enabled.
All ports are BLOCKED except 22 (SSH), 80 (HTTP), 443 (HTTPS),
2375 (Docker) and 2376 (Docker).

In a web browser, you can view:
 * The Dokku 1-Click Quickstart guide: https://do.co/3nzKhrp#start
 * Your Dokku setup page: http://<IP_ADDRESS>

For help and more information, visit https://do.co/3nzKhrp

********************************************************************************
To delete this message of the day: rm -rf /etc/update-motd.d/99-one-click
root@fat-dokku:~# wget https://raw.githubusercontent.com/ledokku/ledokku/v0.7.0/ledokku-bootstrap.sh
--2022-10-22 06:23:58--  https://raw.githubusercontent.com/ledokku/ledokku/v0.7.0/ledokku-bootstrap.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2604 (2.5K) [text/plain]
Saving to: ‘ledokku-bootstrap.sh’

ledokku-bootstrap.sh                                        100%[=========================================================================================================================================>]   2.54K  --.-KB/s    in 0s

2022-10-22 06:23:59 (36.8 MB/s) - ‘ledokku-bootstrap.sh’ saved [2604/2604]

root@fat-dokku:~# sudo bash ledokku-bootstrap.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    14  100    14    0     0     39      0 --:--:-- --:--:-- --:--:--    39
-----> Creating ledokku...
=> Creating volume
=> Installing redis plugin
-----> Cloning plugin repo https://github.com/dokku/dokku-redis.git to /var/lib/dokku/plugins/available/redis
Cloning into 'redis'...
remote: Enumerating objects: 2457, done.
remote: Counting objects: 100% (675/675), done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 2457 (delta 394), reused 633 (delta 373), pack-reused 1782
Receiving objects: 100% (2457/2457), 489.08 KiB | 1.14 MiB/s, done.

     App ledokku has not been deployed
       Waiting for container to be ready
       Creating container database
       Securing connection to database
=====> Postgres container created: ledokku
=====> ledokku postgres service information
       Config dir:          /var/lib/dokku/services/postgres/ledokku/data
       Config options:
       Data dir:            /var/lib/dokku/services/postgres/ledokku/data
       Dsn:                 postgres://postgres:5769f692470216b90bc8c8105bf65aaa@dokku-postgres-ledokku:5432/ledokku
       Exposed ports:       -
       Id:                  2c80dfcb7af5e8647e7fc6362bb87e7d70fb52e3268360fb8f4e439a97a4ab5c
       Internal ip:         <IP_ADDRESS>
       Links:               -
       Service root:        /var/lib/dokku/services/postgres/ledokku
       Status:              running
       Version:             postgres:14.5
-----> Setting config vars
       DATABASE_URL:  postgres://postgres:5769f692470216b90bc8c8105bf65aaa@dokku-postgres-ledokku:5432/ledokku
-----> Restarting app ledokku
 !     App ledokku has not been deployed
-----> Setting config vars
       DOKKU_SSH_HOST:  <IP_ADDRESS>
-----> Restarting app ledokku
 !     App ledokku has not been deployed
-----> Setting config vars
       JWT_SECRET:  NrROVHZqkmTlqhBQP6EpiGBacTPBdbe6
-----> Restarting app ledokku
 !     App ledokku has not been deployed
=> Installation
 !     `git:from-image ledokku ledokku/ledokku:0.7.0` is not a dokku command.
 !     See `dokku help` for a list of available commands.

I've hit a wall a couple of times as well.
For me solving the issue required a full restart after doing a kernel update on a fresh Ubuntu 22.04 install. After this I could install Dokku just fine.
But before you install Ledokku you need to setup the basics like url for Dokku (Check the Dokku installation pages).
And wait for DNS to finish propagating if you're pointing a domain at this which can take 5min to 24hours depending on how you do this.


cross product utility function.

I think the proper way to do this (but that requires structs) is to make cross_product accept an array of 'Ranges' over an arbitrary type.

The idea with the output function is good, but I think we need destructuring assignments first to make it nice.


chore(deps): update dependency @aws-sdk/client-dynamodb to v3.429.0

This PR contains the following updates:

Package
Type
Update
Change

@aws-sdk/client-dynamodb (source)
dependencies
minor
3.362.0 -> 3.429.0

Release Notes

aws/aws-sdk-js-v3 (@aws-sdk/client-dynamodb)
v3.429.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.428.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.427.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.425.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.423.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.421.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.420.0
Compare Source
Features

client-dynamodb: Amazon DynamoDB now supports Incremental Export as an enhancement to the existing Export Table (4ff14d6)

v3.418.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.417.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.415.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.414.0
Compare Source
Features

region-config: add aws region runtime extension codegen (#5157) (b9d59e8)

v3.413.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.410.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.409.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.408.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.405.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.398.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.395.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.391.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.388.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.387.0
Compare Source
Features

clients: allow client creation without configuration (#5060) (a9723dc)

v3.386.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.385.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.382.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
3.379.1 (2023-07-28)
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.379.1
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.378.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.377.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.370.0
Compare Source
Bug Fixes

codegen: pkg.json merge behavior (#4954) (4fc0b7f)

v3.369.0
Compare Source
Note: Version bump only for package @aws-sdk/client-dynamodb
v3.363.0
Compare Source
Features

client-dynamodb: This release adds ReturnValuesOnConditionCheckFailure parameter to PutItem, UpdateItem, DeleteItem, ExecuteStatement, BatchExecuteStatement and ExecuteTransaction APIs. When set to ALL_OLD,  API returns a copy of the item as it was when a conditional write failed (cef0845)
clients: use migrated @smithy packages (#4873) (d036e2e)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: src/lambdas/retrieve-historic-recipes/package-lock.json

File name: src/lambdas/persist-recipes/package-lock.json

File name: package-lock.json

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

⚠ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!"


iOS install: ld: library not found for -lBranch

Hi,
I'm struggling with the install for 0.4.0 on iOS, here is the error message :
ld: warning: directory not found for option '-L/Users/michaell/Dev/new/proactive/RNApp/ios/build/Debug-iphoneos/Branch'
ld: library not found for -lBranch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've followed carefully all the steps required.
Thanks

did you follow the "full installation" or the pod install instructions?

I tried both, but couldn't make it work, at the end, I decided not to include it for the moment.

it sounds like Branch is not being included. I would double check your podfile, make sure Branch is included, update to the latest version of cocoa pods, and rerun pod install.

This error I got over it at the end, I needed to manually link libBranch.a on top of libRNBranch.a, but that led to other errors, will update as soon as I can detail

So, I tried on a fresh basis with the latest version (0.4.1), install worked well, but since I'm using RN0.27.2 it gives me an error with the NativeEventEmitter .
I tried 0.4.0 and 0.3.0 it compiles with no error, but then gives me undefined is not an object (evaluating RNBranch.setDebug), which I guess means it doesn't recognise the lib is loaded.
One thing that looked weird is that I tried rnpm unlink the lib, but it would only let me for Android, for iOS it gives me an error, I don't know if that is linked with my issue though.
Any thoughts here?
Thanks

I've tried reinstalling the latest version, followed carefully all the instructions, I have an error  on line #import "RNBranch.h"

I have not used rnpm since a much earlier version.
I suspect you are missing the third step here where you add rnbranch to the header search paths so that it can be discovered at application boot time.
Also for reference I am referring to usage with the most basic install with a podfile roughly as follows:
Podfile
target 'MyApp' do
  pod 'Branch'
  //...

@mlumbroso did things work out for you? Let me know, I am happy to dig in further if needed.

@rt2zz I will try again tomorrow, will let you know.
I still believe something went wrong the first time I installed it, since rnpm unlink can't unlink it with the error.

I opened an issue regarding rnpm :
https://github.com/facebook/react-native/issues/9504

@mlumbroso got it. fwiw you can still remove the module manually by undoing all of the steps listed here: https://github.com/BranchMetrics/react-native-branch-deep-linking/blob/master/docs/installation.md#manual-linking
Are you still getting the same error ld: library not found for -lBranch? That looks like an issue with how the Pod is setup. I would recommend trying to reset your pods as follows:

rm -rf Pods
rm Podfile.lock
pod install

Also double check pod 'Branch' is in your Podfile. Before doing all that you might also consider upgrading your ruby and cocoapods packages as well.

I redid those steps (including deleting old .xcworkspace) to no avail :
_ If I include LibBranch.A from the pods in the frameworks, I have ld: library not found for -lBranch
_ If I don't, I can compile but I have the problem when running the app : undefined is not an object (evaluating RNBranch.setDebug)

This sounds like progress. Lets go the second route (i.e. do not link libBranch.a)
_ If I don't, I can compile but I have the problem when running the app : undefined is not an object (evaluating RNBranch.setDebug)
This indicates RN did not load RNBranch as a native module. You probably need to go into build phases > link binary with libraries > link libRNBranch
Make sure you are linking libRNBranch.
Also double check in Build Settings > Header Search Paths > add $(SRCROOT)/../node_modules/react-native-branch/ios

I tried again, it's doing the same error (undefined is not an object)
I also followed this step after : http://stackoverflow.com/questions/18376416/the-target-overrides-the-other-ldflags-build-setting-defined-in-pods-pods
which adds indeed something with branch in the other flags
And then it gives me back the error : library not found for -lBranch
No matter if i include libRNBranch, libBranch or both or none.
I noticed something weird on the RNBranch.xcodeproj on my Libraries, the Frameworks/libBranch.a is displayed in red and the path is something like /MyProject/node_modules/react-native-branch/ios/build/Debug-iphoneos/libBranch.a
which doesn't exist.
Might it be that?

New update :
I deleted everything linked to pod (xcworkspace, build phases, pod files...) and rebuilt  it.
With LibRNBranch.a included and pod reinstalled, on first compile I have these errors :
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_Branch", referenced from:
      objc-class-ref in libRNBranch.a(RNBranch.o)
  "_OBJC_CLASS_$_BranchLinkProperties", referenced from:
      objc-class-ref in libRNBranch.a(RNBranch.o)
  "_OBJC_CLASS_$_BranchUniversalObject", referenced from:
      objc-class-ref in libRNBranch.a(RNBranch.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I redo the step of the stack overflow (add inherited to linker flags), I'm back to library not found for -lBranch

FOUND IT!!!
Adding $(inherited) to other linker flags was necessary but not enough, I had to add it to Library Search Paths too. Glad it's finally working....

Yes!! we will definitely add that explicitly to the docs.
Regarding Testflight, it does not care which branch environment you use. Does deep linking work for you in the simulator but not in Testflight? or does it fail to resolve in both environments?
What happens when you follow a branch link? Does it take you to the fallback url?

Yes it does, with links generated from iOS, not from Android though

You can debug a link by adding ?debug=1 to the end of it and opening in a browser: https://dev.branch.io/getting-started/integration-testing/guide/ios/#debugging-an-individual-link
Based on the symptoms you are describing it sounds like you have the wrong branch key in iOS. For good measure I would recommend adding both the test branch domain and live branch domain to your "Associated Domain" in xcode. then verify that the branch key being used is the same for both iOS and android.
You can also create some test links in the branch admin in the Marketing Links section. I have found it useful in the past to set up a quick test link page on surge.sh with a few links that I can quickly tap into.
Also iirc some people have had issues testing universal links in the simulator, so make sure to try it on a physical iOS device.

Hi,
thanks for your answers.
I'm testing on real devices with testflight build.
I looked at the debugs, what I see on the ones created in Android, there is the source property :
source	android
that I don't see in iOS.
I added both domains in Associated domains, added both keys as per the instructions. My app should be in prod today, I will test if I have any more luck there.

No more luck with the App Store version, so it's not linked to testFlight.

Maybe there is a more appropriate place than here to solve this issue, please tell me if this is the case :-)

Any news?

@mlumbroso can you ping me by email (visible in my github profile)

Wanted to check if you guys got this sorted out? Would be great to post the solution here.

There have been some pretty big changes regarding how builds are done for iOS with 2.0.0. I don't think this issue is relevant anymore. Closing.

I was getting similar errors, but from the command-line when trying to run xcodebuild

OUND IT!!!
Adding $(inherited) to other linker flags was necessary but not enough, I had to add it to Library Search Paths too. Glad it's finally working....
Maybe it should also be added to the iOS SDK documentation, if that happens to someone else.
PS : Now testing it, I wasn't able to make it work on TestFlight, do I need to set up a test key, or should live key alone also works on TestFlight?

How exactly do you add $(inherited) to the header search paths @mlumbroso ? I was trying to add it as in the following screenshot but I don't know precisely what you did to fix it. Can you advise me?

In addition, where did you manage to obtain the libRNBranch.a binary file? I am unable to find its anywhere in packages list. Did you find it uploaded somewhere on the internet? Please get back to me at your earliest convenience. Your help is greatly appreciated. Thanks.


Pull region from ~/.aws/config

https://github.com/aws/aws-sdk-go/issues/384

Is the reference to the issue above to say 'wait for Amazon to decide' or just for reference to the known limitations of the ~/.aws/config? The ~/.aws/config_is_ technically for CLI config only. I've typically shelled out to the CLI to ask for this value and, if none is set, use some default (like 'us-east-1'). This behavior (to not include the CLI-configured~/.aws/config` values) is pretty standard across all of the non-CLI SDKs.

Either or, I don't mind if we read from it directly or wait for them. It would be great to just swap profiles with a single export

I was planning to implement reading the file directly. But the ~/.aws/config file format seems to be non-TOML based. Does anyone know what format this is:
[default]
region = us-west-2
[profile test]
region = us-east-1

Pretty much any ini parser should work I'd think, TOML is pretty much just that

46545c7

@tj thanks! Wasn't sure if we had a particular ini parser in mind, we can switch out if required.


"on_deactivate()" seems not called when setting the controller to be "inactive"

Hi,
I tried diffbot.launch.py and rrbot_system_position_only.launch.py. The printing information in on_activate() is printed out in console, but when I "ros2 control set_controller_state forward_position_controller inactive" and "ros2 control set_controller_state diffbot_base_controller inactive", the printing information in "on_deactivate()" is not printed in console.
Another question is: will on_deactivate() be automatically called when I terminate the startup node (press ctrl+c indiffbot.launch.py)?
Thanks!
Jia

Hi,
I think this is not an issue/question of this demo-repository but of https://github.com/ros-controls/ros2_control directly.
My experience on the termination with ctrl+c is that it is not really reproducible what happens (independent of ros2_control) ;)

I tried diffbot.launch.py and rrbot_system_position_only.launch.py. The printing information in on_activate() is printed out in console, but when I "ros2 control set_controller_state forward_position_controller inactive" and "ros2 control set_controller_state diffbot_base_controller inactive", the printing information in "on_deactivate()" is not printed in console.

Oh, this is very strange. this should definitely not happen. This part of ros2_control is well tested. I would not expect bugs there, nevertheless it is possible. I will test this when testing new restructured examples in #232  to be sure. Can you check the example one from this PR and report if you get the same behavior?

Another question is: will on_deactivate() be automatically called when I terminate the startup node (press ctrl+c indiffbot.launch.py)?

I can not answer you in detail

I tried diffbot.launch.py and rrbot_system_position_only.launch.py. The printing information in on_activate() is printed out in console, but when I "ros2 control set_controller_state forward_position_controller inactive" and "ros2 control set_controller_state diffbot_base_controller inactive", the printing information in "on_deactivate()" is not printed in console.

Oh, this is very strange. this should definitely not happen. This part of ros2_control is well tested. I would not expect bugs there, nevertheless it is possible. I will test this when testing new restructured examples in #232 to be sure. Can you check the example one from this PR and report if you get the same behavior?

Another question is: will on_deactivate() be automatically called when I terminate the startup node (press ctrl+c indiffbot.launch.py)?

I cannot answer you in detail – I know that we had a discussion about this and about catching events. But for what I know, we are not doing a graceful “shutdown” of the framework. It is definitely something to think about, but until now, it wasn't really an issue in all the robots we have tested this.
This functionality has to be shaped well since it would include all standard and user-components to have pre-defined behavior.

Yes. I can reproduce the behavior and find a new problem..
Environment: ros2 humble, ubuntu 22.04, x86_64.
The ros2_control_demo is in commit 1007b1dfe44f4146e64b04666a1164adeaf8ffa1.
I comment the print information of read()&write() in diffbot_system.cpp. When launching diffbot.launch.py, the info in on_activate() is printed out.
When ros2 control set_controller_state diffbot_base_controller inactive, the info in on_deactivate() is not printed out. But this controller is successfully disactived by "ros2 control list_controllers".
When ros2 control set_controller_state diffbot_base_controller active again, the node dies. error message is:
[INFO] [spawner-4]: process has finished cleanly [pid 17612]
[ros2_control_node-1] Stack trace (most recent call last) in thread 17583:
[ros2_control_node-1] #6    Object "", at 0xffffffffffffffff, in
[ros2_control_node-1] #5    Source "../sysdeps/unix/sysv/linux/x86_64/clone3.S", line 81, in __clone3 [0x7f62867269ff]
[ros2_control_node-1] #4    Source "./nptl/pthread_create.c", line 442, in start_thread [0x7f6286694b42]
[ros2_control_node-1] #3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f6286adc2b2, in
[ros2_control_node-1] #2    Object "/opt/ros/humble/lib/controller_manager/ros2_control_node", at 0x555b4ec873db, in
[ros2_control_node-1] #1    Object "/opt/ros/humble/lib/libcontroller_manager.so", at 0x7f6286efe7a7, in controller_manager::ControllerManager::update(rclcpp::Time const&, rclcpp::Duration const&)
[ros2_control_node-1] #0    Object "/opt/ros/humble/lib/libdiff_drive_controller.so", at 0x7f627c3baf89, in diff_drive_controller::DiffDriveController::update(rclcpp::Time const&, rclcpp::Duration const&)
[ros2_control_node-1] Segmentation fault (Signal sent by the kernel [(nil)])
[ERROR] [ros2_control_node-1]: process has died [pid 17555, exit code -11, cmd '/opt/ros/humble/lib/controller_manager/ros2_control_node --ros-args --params-file /tmp/launch_params__3imcxhq --params-file /home/jia/Workspace/ros2_ws/install/ros2_control_demo_bringup/share/ros2_control_demo_bringup/config/diffbot_controllers.yaml'].

I can reproduce your behavior.
Honestly I'm not sure about the lifecycle of the hardware interface, should it be activated/deactivated automatically if doing so with the controllers? @destogl?
The segmentation fault happens only with the diffbot example. I do not see a difference from rrbot with diffbot hardware from this repository, according to the stack trace the diff_drive_controller throws the error caused from a nullptr? I'll have a look if there is a difference in the lifecycle of the different controllers.
[ros2_control_node-1] Stack trace (most recent call last) in thread 16525:
[ros2_control_node-1] #6    Object "", at 0xffffffffffffffff, in
[ros2_control_node-1] #5    Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7f662cee09ff, in
[ros2_control_node-1] #4    Object "/usr/lib/x86_64-linux-gnu/libc.so.6", at 0x7f662ce4eb42, in
[ros2_control_node-1] #3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7f662d0de2b2, in
[ros2_control_node-1] #2    Source "/workspaces/ros2_rolling_ws/src/ros2_control/controller_manager/src/ros2_control_node.cpp", line 81, in operator() [0x55f1261e40d0]
[ros2_control_node-1]          79:         // execute update loop
[ros2_control_node-1]          80:         cm->read(cm->now(), measured_period);
[ros2_control_node-1]       >  81:         cm->update(cm->now(), measured_period);
[ros2_control_node-1]          82:         cm->write(cm->now(), measured_period);
[ros2_control_node-1]          83:
[ros2_control_node-1]          84:         // wait until we hit the end of the period
[ros2_control_node-1] #1    Source "/workspaces/ros2_rolling_ws/src/ros2_control/controller_manager/src/controller_manager.cpp", line 1741, in update [0x7f662d4f3957]
[ros2_control_node-1]        1739:       if (controller_go)
[ros2_control_node-1]        1740:       {
[ros2_control_node-1]       >1741:         auto controller_ret = loaded_controller.c->update(
[ros2_control_node-1]        1742:           time, (controller_update_rate != update_rate_ && controller_update_rate != 0)
[ros2_control_node-1]        1743:                   ? rclcpp::Duration::from_seconds(1.0 / controller_update_rate)
[ros2_control_node-1]        1744:                   : period);
[ros2_control_node-1] #0  | Source "/workspaces/ros2_rolling_ws/src/ros2_controllers/diff_drive_controller/src/diff_drive_controller.cpp", line 249, in set_value
[ros2_control_node-1]     |   247:   for (size_t index = 0; index < static_cast<size_t>(params_.wheels_per_side); ++index)
[ros2_control_node-1]     |   248:   {
[ros2_control_node-1]     | > 249:     registered_left_wheel_handles_[index].velocity.get().set_value(velocity_left);
[ros2_control_node-1]     |   250:     registered_right_wheel_handles_[index].velocity.get().set_value(velocity_right);
[ros2_control_node-1]     |   251:   }
[ros2_control_node-1]     | Source "/workspaces/ros2_rolling_ws/src/ros2_control/hardware_interface/include/hardware_interface/loaned_command_interface.hpp", line 66, in set_value
[ros2_control_node-1]     |    64:   const std::string & get_prefix_name() const { return command_interface_.get_prefix_name(); }
[ros2_control_node-1]     |    65:
[ros2_control_node-1]     | >  66:   void set_value(double val) { command_interface_.set_value(val); }
[ros2_control_node-1]     |    67:
[ros2_control_node-1]     |    68:   double get_value() const { return command_interface_.get_value(); }
[ros2_control_node-1]       Source "/workspaces/ros2_rolling_ws/src/ros2_control/hardware_interface/include/hardware_interface/handle.hpp", line 111, in update [0x7f662417a0f1]
[ros2_control_node-1]         109:   void set_value(double value)
[ros2_control_node-1]         110:   {
[ros2_control_node-1]       > 111:     THROW_ON_NULLPTR(this->value_ptr_);
[ros2_control_node-1]         112:     *this->value_ptr_ = value;
[ros2_control_node-1]         113:   }
[ros2_control_node-1]         114: };
[ros2_control_node-1] Segmentation fault (Signal sent by the kernel [(nil)])

I tried to investigate the segmentation fault, but did not find the source.
What I did: I extended the diff_drive_controller test, but this one does not throw any errors.
  state = controller_->get_node()->deactivate();
  ASSERT_EQ(state.id(), State::PRIMARY_STATE_INACTIVE);
  ASSERT_EQ(
    controller_->update(rclcpp::Time(0, 0, RCL_ROS_TIME), rclcpp::Duration::from_seconds(0.01)),
    controller_interface::return_type::OK);

  // activate again
  state = controller_->get_node()->activate();
  ASSERT_EQ(State::PRIMARY_STATE_ACTIVE, state.id());

  publish(linear, angular);
  // wait for msg is be published to the system
  ASSERT_TRUE(controller_->wait_for_twist(executor));
  ASSERT_EQ(
    controller_->update(rclcpp::Time(0, 0, RCL_ROS_TIME), rclcpp::Duration::from_seconds(0.01)),
    controller_interface::return_type::OK);

How can the set_value be called but the this-pointer be obsolete? The on_activate/on_deactivate methods of the diffbot_system do not change the pointers. Anyhow, the problem seems to be the in the handles, and those are not managed by the hardware-interface of ros2_control_demo_example_2.
@destogl or @bmagyar: Any other suggestions how to narrow that down?

How can the set_value be called but the this-pointer be obsolete? The on_activate/on_deactivate methods of the diffbot_system do not change the pointers. Anyhow, the problem seems to be with the handles, and those are not managed by the hardware-interface of ros2_control_demo_example_2.

This sounds like quite a deep problem. Maybe something in the Resource Manager when we change interface flags is not right. But we are not moving them or invalidating them.
Do we have a test for this in Resource Manager?

Hi,  I've created that PR for ros2_controllers that solves the issue for me, please check it out. :)

DiffDriveController is not deactivated, but the hardware is deactivated. This causes nullptr – it seems that an interface or its value get invalidated in on_activate() method. (I would bet this is the issue) - in your test you are missing deactivation of controller.

@destogl to clarify this: the segmentation fault happens when the controller is deactivated while the hw component being still active (there are two topics mixed in this issue). I'll have a look on the PR of @Noel215, I fear I still don't understand the handle registration sufficiently.

Automatic deactivation of controller is not implemented when hardware gets deactivated. Presently, this will not even be detected since the interface is still there is hardware is inactive.

ok

The lifecycle of hardware should work as expected. One should check if override of the methods is done correctly. Nevertheless, we might be missing something here… can you check the tests and see if they should be extended to detect if an implementation of SystemInterface::on_deactivate is actually called?

We don't have any tests for the hardware components in this repo yet, see #46! do you have a hint to examples of tests we should add here?

I'll close this issue now, summary from the initial post of @xibeisiber :

hardware component is not automatically deactivated if controller is deactivated -> therefore this method is not called
segmentation fault was fixed with https://github.com/ros-controls/ros2_controllers/pull/596

lets discuss the other points in the linked issues


[Docs] Auto-Gen rules for Pod Controllers link not working in verify-images page

Is your feature request related to a problem? Please describe current state:

Describe the solution you'd like:

In verify images page inside writing policies link to auto-gen seems to be broken as it is showing 404 not found
Describe alternatives you've considered:

It can be fixed by auto-gen
Additional context

Contributor Resources

Contributing Guidelines

/assign


Playwright for Java 1.19 throws Exception when trying to open new Page

Playwright 1.18 works but 1.19 dont.

The problem is in browser.newPage()
Im using java.runtime.version=1.8.0_181-b13
Thanks :) and keep rocking

Looks like you are connecting to remote playwright which is older than 1.19. Note that both client and server have to have same versions to work correctly. If that's not the case please share a repro.

Yep it throws when i use .connect method with a external provider using launch not problem is thrown. I think this will close the issue.


Getting started guide - install new CAPI providers

Until we have the UI we will need to supply instructions on how to install new providers using the CAPI operator.

Currently blocked by https://github.com/rancher-sandbox/rancher-turtles/issues/18


In case if 'credentials_source' is equal to 'none', no credentials ar…

…e required.
Client works in read_only mode.
#111414802
Signed-off-by: Alexey Miroshkin<EMAIL_ADDRESS>

Hello Yulia and Alexey,
I was wondering if instead of introducing a new configuration key we default the credentials source to CredentialsSourceNone (or maybe call it AnonymousCredentials) if credentials_source is empty and no access key and secret key have been specified. We should still do validation if an access key was provided but no secret key and if a secret key was provided with no access key.
@calebamiles

@calebamiles @cppforlife sounds good, but there is already the default credential source. if we can safely change it - we are in

@hashmap @barthy1 Thanks for the PR, we'll take this on and make updates as @calebamiles has described.

@hashmap @barthy1 Whoops, miscommunication. @cppforlife informed us that you guys had already started work on this.

@hashmap, @barthy1 we merged in the PR and changed the defaults a bit because we needed an interview story here in SF. Sorry for any extra work you have done on your end and thanks for the PR!


Replace which with a manual implementation using SearchPathW

This pull request removes our dependency on which, which Kenny so helpfully pointed out we don't need: https://gist.github.com/kennykerr/a4375597c7507182570576cf9e7b6ae5

Can you split up the SFI feed changes and the which crate changes so we aren’t blocking one for the other? 😄

(sshhh bot, I was on vacation)


it's possible video call with this gem???

it's possible video call with this gem???
thanks.

Probably yes, but I have not yet tried it.
You can call Skype-API directry.
Skype.exec "CALL USER_NAME"

This works.
Skype.exec "VIDEOCALL user_name"

thanks :)


fix baseurl bug for archive releases

Description

Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

Deploy preview for calico ready!
Built with commit b1a4011e4d85a232f31bda4a35d26aeeb488ef50
https://deploy-preview-3479--calico.netlify.app

Deploy preview for calico ready!
Built with commit adbd2a27c86577314e2e7fe637cc92361a55e517
https://deploy-preview-3479--calico.netlify.app


Develop a User-Centric Onboarding Game

Pull Request Details:

Title: Develop a User-Centric Onboarding Game
PR Link: #18
Issue: #17

Next Steps:
I'm ready for feedback and any necessary revisions. Please review at your earliest convenience, and feel free to provide comments or suggest improvements.
Thank you for your time and consideration!

Hi User,
Thank you for your pull request. I appreciate your contribution to our project.
I have reviewed your changes and everything looks good. Please be patient, and I'll get back to you as soon as possible.
If you have any questions or need further assistance, don't hesitate to ask.
Best regards,
Jayesh


Task completion appreciation.

Upon completion of the task, a pop-up box will be displayed to appreciate the user, motivating them to complete the task. This will enhance user engagement.
Kindly assign me the issue and add the Hacktoberfest label to it. @SauveJeanLuc

@tanya172 .
You are right.
Something like this.

Replacing the words with task appreciations words
Removing the buttons

Thank you for your response.!
On Wed, Oct 12, 2022, 02:40 SAUVÉ Jean-Luc @.***> wrote:

Assigned #118 https://github.com/SauveJeanLuc/coffee-tasks/issues/118
to @tanya172 https://github.com/tanya172.
—
Reply to this email directly, view it on GitHub
https://github.com/SauveJeanLuc/coffee-tasks/issues/118#event-7566405334,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVMVWWWSDJJZQRQ2V2II4JLWCXJUNANCNFSM6AAAAAARCUXFFE
.
You are receiving this because you were assigned.Message ID:
@.***>

I'd an idea. Why not confetti? In the colors of the app, https://confettijs.org/

Hey, is this completed?
If not, what needs to be done?

@hugekontrast ,
That's a great idea.
Raise a PR for this.

Okay sir.

How does this looks?

I've completed the design only confetti and making-it-work is left.


metronome word checking

metronome: current word needs to match metronome box words. currently requiring you to type above words. okay when words are the same. becomes a problem when you double-click to remove some words.

edited to match only metronome words


Import a module into the current namespace

Suppose I have a module declared in a file:
module IO
  def a; end
  def self.b; end
end

And I require it:
require "./io.cr"

I have two options. I can either include IO to import the instance method a into the current namespace; or call b by fully qualifying it (IO::b).
I would like to be able to use module methods fully qualified (IO:b), whilst also having the option to import the same methods into the current namespace:
import IO
b()

In other words, how can I import the class methods of IO into the current namespace as instance methods?

Just like in Ruby you need to extend a module. Yet, it won't extend the module methods (self.b) but the instance methods (a) as class/module methods (a becomes self.a).
Please ask such questions on stackoverflow with the crystal-lang tag. Thanks!

@ysbaddaden: You misunderstand me. This was less of a question, and more of a request for a missing feature.
It makes sense to wrap library code in a module. And yet, there is no way to import the contents of a module into the current namespace. Importing the instance methods as class methods doesn't cut it.

Is the section "extend self" from the docs what you are looking for?

Ah, I wasn't aware of that. I would prefer something that I could invoke in the target namespace, rather than in the source module; but I guess it will suffice. Thank you.


Factory sample fails on PlatformIO build

Overview
Adding the fix from the PR #3 in this sample, for fix similar issue than #2, I have the next output:
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  12.2% (used 39972 bytes from 327680 bytes)
Flash: [======Error: The program size (1323221 bytes) is greater than maximum allowed (1310720 bytes)
*** [checkprogsize] Explicit exit, status 1
====]  101.0% (used 1323221 bytes from 1310720 bytes)

If I comment this lines:
platform_packages =
    framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3

the compiling disapear, but the factory don't works, and the output is:
 ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x42098d1e
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x39c
load:0x403b6000,len:0x9a4
load:0x403ba000,len:0x2868
SHA-256 comparison failed:
Calculated: 9127e332554622857d5c753c9ffbb9862bfb72e81ded80db80617d5974000cec
Expected: 867c0d6cb8d08f5a22bebcb1e4a5d457c2700a1c6b76abeb4d778eadcc3446e2
Attempting to boot anyway...
entry 0x403b61c0
E (308) psram: PSRAM ID read error: 0x00ffffff

Maybe we need arduino-esp32 2.0.3 version but with different partition scheme?

It should be that the animation or font takes up a lot of space, resulting in insufficient flash space. In this case, the partition table can be modified to expand the space for storing programs.

I tested it with two partitions schemas but I had the same error.

Maybe there is still a problem with the configuration of platfromIO.

I will submit a Github action for try to probe this hypothesis

I am reconfiguring platfromIO. ini

I have reconfigured the platfromIO.ini file in the factory

From the continuous integration workflow (with my last PR #6 ) sound like that the compiling issue was resolved. I'm out of my house, I don't have here the board, but sounds like that will works.

Why are you using still the outdated Arduino Core 2.0.3? Many bug fixes have been done in actual Core 2.0.5.


Add Fluent files extension (.ftl)

See Fluent project and an example of .ftl files usage.

googling this extension does not land on fluent but instead freemarker templates -- as such it cannot be accepted


Use Celery to implement tasks to run collectors in a distributed fashion

Issue Type

Feature request

Expected Behavior

Query all the collectors in parallel
Merge the results at the end of the process (use Celery Canvas)

Current Behavior

The collectors are queried sequentially.

GitMate.io thinks possibly related issues are https://github.com/request-yo-racks/api/issues/5 (Implement a Facebook collector), https://github.com/request-yo-racks/api/issues/6 (Implement a Full contact collector), https://github.com/request-yo-racks/api/issues/22 (Implement a proper interface for the collectors), https://github.com/request-yo-racks/api/issues/24 (Use the Yelp collector in addition to the Google one), and https://github.com/request-yo-racks/api/issues/23 (Research spike: Services we could use as collectors).


bug: Next.js error page (404, 400, 500) reload infinitely in development env

Provide environment information

System:
OS: Windows 10 10.0.22622
CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Memory: 5.87 GB / 15.87 GB

Binaries:
Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 3.2.2 - C:\Program Files\nodejs\yarn.CMD
npm: 8.16.0 - C:\Program Files\nodejs\npm.CMD

T3 info: "ct3aMetadata": { "initVersion": "5.6.0" },

Describe the bug
I'm not sure if this is a bug, i'm also not sure if this is T3 template issue or Next.js issue, but the app keep reloading when I'm on 404 or any other error page and it's really annoying any laggy, I want to investigate a way to stop this.
To reproduce

Create a T3 app
Navigate to a page that doesn't exist to get a 404 error

Just scaffolded a new T3 app, and navigated to a 404 page, can't reproduce what you're saying.

Would love if you could make a video of gif of the issue

Just scaffolded a new T3 app, and navigated to a 404 page, can't reproduce what you're saying.

Would love if you could make a video of gif of the issue

check F12, you will see the page reloaded, it doesn't shown here because the page content is simple to load

I still can't understand what you're saying, if you could make a video or gif that would be helpful

I still can't understand what you're saying, if you could make a video or gif that would be helpful
Record.zip
Pls check this

I still can't understand what you're saying, if you could make a video or gif that would be helpful

Record.zip Pls check this

As you can see the script on-demand-entries-client.js keep running trying to reload the page, this, doesn't happened in production build though

I still can't understand what you're saying, if you could make a video or gif that would be helpful

Record.zip Pls check this

I won't open a zip file from sorry, its very sus. Please make a GIF or a video and embed it in your markdown

I still can't understand what you're saying, if you could make a video or gif that would be helpful

Record.zip Pls check this

I won't open a zip file from a stranger sorry, its very sus.  Tried this in a create-next-app too, its happening there as well. So this is probably a nextjs issue, you should open an issue there


fix(webpack): move Rslib to devDependencies

Summary
Avoid installing Rslib as dependencies of @rsbuild/plugin-webpack-swc.
Related Links

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

NIce catch 👍


unit-testing-assertion-wrappers.ipf: Prefer GetNiceStringForNumber

In that way we have always all digits printed out instead of only the first six as %g does.
Close #292.

I think it is not required to commit IMTest.pxp as there are no effective changes made?

Thanks again! Fixed.


Implement the project section

Your Repository Title With Link
Short Description
This pull request adds a "Projects" section to the developer portfolio. The section includes a display of project cards with images, titles, descriptions, and links of each project.
Points Added Or Removed
Added:
A new "Projects" section with a briefcase icon.
Three project cards with images, titles, descriptions, and links.
Links To Issues
issue #110
Files Changed
index.html: Added the section for displaying the project cards.
styles.css: Updated styles for the new "Projects" section, including layout, hover effects, and responsiveness.
assets folder: added an assets folder to store the images used in the profile section

@AfubeAngel  can you re-fork the main branch and then reopen the pull request to the project-section-2 branch ? thankyou, all the code looks good to me

@divyanshudhruv Alright. Would pull to ensure it is up to date with the merged PRs

sure

@divyanshudhruv Done. So I reforked and pulled the update


feat: add workspace cli

What type of PR is this?
/kind feature
What this PR does / why we need it:
add workspace cli
Which issue(s) this PR fixes:

Fixes #604

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

275 of 323 (85.14%)  changed or added relevant lines in 14 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.4%) to 74.995%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/workspace/util.go
0
1
0.0%

pkg/cmd/workspace/cmd.go
24
26
92.31%

pkg/cmd/workspace/create/cmd.go
28
30
93.33%

pkg/cmd/workspace/delete/cmd.go
27
29
93.1%

pkg/cmd/workspace/delete/options.go
19
21
90.48%

pkg/cmd/workspace/show/cmd.go
27
29
93.1%

pkg/cmd/workspace/update/cmd.go
29
31
93.55%

pkg/cmd/workspace/create/options.go
24
28
85.71%

pkg/cmd/workspace/show/options.go
22
26
84.62%

pkg/cmd/workspace/update/options.go
24
28
85.71%

Files with Coverage Reduction
New Missed Lines
%

pkg/engine/operation/watch.go
1
85.93%

Totals

Change from base Build<PHONE_NUMBER>:
0.4%

Covered Lines:
7567

Relevant Lines:
10090

💛  - Coveralls


REST OptionsAction() won't return, but run action instead

When there's a preflight request (with OPTIONS method) coming I see that OptionsAction() sets the corresponding "Allow" headers. However after that it lets the script run further, so the actual action will run and after the real request comes (for example a POST request) the action will run again.
Why isn't there a "return" or a "Yii::$app->end()" present in OptionsAction()? Now, because of the fact that the actual action runs twice it doubles the pageload time.
According to [this flowchart] (http://www.html5rocks.com/static/images/cors_server_flowchart.png) only a HTTP response should be set without the body (so the script shouldn't run the action itself).

However after that it lets the script run further, so the actual action will run and after the real request comes (for example a POST request) the action will run again.

Do you mean the options action will run twice in the same request? How comes?

No. The options action runs only ones, but it doesn't end the app, so the action I'm sending the request to will run twice.
For example a client sends a request to example.com/controller/test then this is what happens:

an OPTIONS http method will be sent first and OptionsAction() will run
OptionsAction() will set the "Allow" header and won't end the script but will let it run further
actionTest() will run for the first time and return with success
client sends the real POST request now
actionTest() runs again

See a screenshot what I mean (please ignore the data validation error now):

OptionsAction() will set the "Allow" header and won't end the script but will let it run further
actionTest() will run for the first time and return with success

I don't understand why these two steps will happen in the same OPTIONS request. In each request, only one action will run. How comes it runs two in this case?

That is also what I don't understand. I guess that when there's a request with OPTIONS method Yii, will automatically run this action: https://github.com/yiisoft/yii2/blob/master/framework/rest/OptionsAction.php
But it will not return anything (only set the "Allow" HTTP header) and it will also run the requested actionTest().

how were you able to know that actionTest gets executed on the OPTIONS request?

@fernandezekiel: I put a sleep(4) in actionTest() and I saw that the response time for OPTIONS method was also 4000ms and for the POST method it was also above 4000ms.

what's your URL config for actionTest?

@pappfer I think it's better you do a step-by-step debugging to find out why...
From your screenshot, it seems the OPTIONS request returns body content with length 0, which is expected. The POST request is another separate one.

@fernandezekiel: I'm using default yii\rest\UrlRule for that controller. I unset actionIndex and using my own, see below.
@qiangxue I attached another screenshot. I'm using productController actionIndex(). I added a sleep(5) in actionIndex() and see the response times.
public function actions()
    {
        $actions = parent::actions();
        unset($actions['index']);
        return $actions;
    }

    public function actionIndex() {
    	sleep(5);
        // + other code and at the end return HTTP 200 status here
    }

if you are using the yii\rest\UrlRule and unsetting the index why is your screenshot about the POST request?

@fernandezekiel I'm unsetting the index action because I'm using my own one. I want to send a POST request to it (I think it doesn't matter in this case whether I wanna send a POST or a GET to it) and first it sends the OPTIONS request. But for both the OPTIONS and POST it gets into my actionIndex() and waits 5 seconds, so it takes 10 seconds to load this action.
What I don't understand is that why does the OPTIONS request get into my indexAction()?

can you show us your url rules? try also throwing an exception in the actionIndex and do a raw OPTIONS request using some kind of rest api client,

Seems like the problem was indeed because of using the wrong URL. I was using "/product" instead of "/products" (I don't have enableStrictParsing enabled at the moment). I'm not sure that this behavior is normal, though.
However I experience another related problem now. I'm sending an OPTIONS request to "/products" with an Access-Control-Request-Method: PUT header and OptionsAction() sets the Allow header to this: Allow: GET, POST, HEAD, OPTIONS.
So the PUT method should not be allowed but still the response will be 200 OK and then the real PUT request will be sent (which shouldn't be the case, because it's not an allowed method).

Also, when I declare a new method and add it to the URL rule, it won't respond to an OPTIONS request.
For example I have this URL rule:
[
    'class' => 'yii\rest\UrlRule',
    'controller' => [
        'user'
    ],
    'except' => ['delete'],
    'extraPatterns' => [
    'POST confirm' => 'confirm',
    'POST forgotten-password' => 'forgotten-password',
    'POST change-password' => 'change-password',
    'DELETE deleteall' => 'deleteall',
]

When the browser sends the preflight OPTIONS request (for example to /users/confirm) it will get a 404 error, so the real request won't be sent at all.

why is the real PUT request sent when it's not even an allowed method?

it should be your client app's responsibility to determine if it should still send the PUT request despite of the results of the preflight
also ... do you also not see the Access-Control-Allow-Methods  in the OPTIONS response?

When the browser sends the preflight OPTIONS request (for example to /users/confirm) it will get a 404 error, so the real request won't be sent at all.

is this all of your rule for user ? there is no pattern it seems to handle the OPTIONS request

I thought that OptionsAction() handles it automatically. So do you mean I should have it something like this?
[
    'class' => 'yii\rest\UrlRule',
    'controller' => [
        'user'
    ],
    'except' => ['delete'],
    'extraPatterns' => [
    'POST confirm' => 'confirm',
    'OPTIONS confirm' => 'options',
    'POST forgotten-password' => 'forgotten-password',
    'OPTIONS forgotten-password' => 'options',
    'POST change-password' => 'change-password',
    'OPTIONS change-password' => 'options',
    'DELETE deleteall' => 'deleteall',
    'OPTIONS deleteall' => 'options',
]`

Allow vs Access-Control-Allow-Methods
I am working on angular-ionic mobile app and wired up my first REST Api with Yii2.
While trying to use a PUT request, chrome sends pre-flight OPTIONS to check if permitted methods include PUT. By default Yii2 reponds with an Allow header instead of the expected (by Chrome) Access-Control-Allow-Methods. The response contains the Allow header but Chrome reports Method PUT is not allowed by Access-Control-Allow-Methods.
Upon digging further, I found that yii\rest\OptionsAction is responsible in preparing the allowed header. I fiddled with the CORS settings for more than an hour in trying to get the expected header but without success.
I ended up creating my own class extending yii\rest\OptionsAction simply replacing the Allow in the last line:
    namespace app\components;

    use Yii;

    class OptionsAction extends \yii\rest\OptionsAction {
      public function run($id = null) {
        if (Yii::$app->getRequest()->getMethod() !== 'OPTIONS') {
          Yii::$app->getResponse()->setStatusCode(405);
        }
        $options = $id === null ? $this->collectionOptions : $this->resourceOptions;
        Yii::$app->getResponse()->getHeaders()->set
        ('Access-Control-Allow-Methods', implode(', ',
          $options));
      }

    }

then I overrode the actions in my controller:
    public function actions() {
      $actions = parent::actions();
      $actions['options'] = [
        'class' => 'app\components\OptionsAction',
      ];
      return $actions;
    }

I wonder if anyone else has come across this one or a better solution

In fact: MDN expects Access-Control-Allow-Methods NOT Allow

@mohamed-nazim  , I had the same problem. I'm making a call with $.ajax command adding the Header of Authorization Bearer and my access token. My method is POST in this case.
As I can read here:
http://stackoverflow...ax-cors-request
when you do that, browser makes an extra call to the same URL with OPTIONS method as described here.
I saw your approach but ... is there something needed in the urlManager rules ?
(like maybe here: https://github.com/yiisoft/yii2/issues/7966#issuecomment-111701983)
Because, I think I'm not reaching the controller because the rules.
Thank you !

This might help. Add this code in web/index.php
// Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) {
    header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
    header('Access-Control-Allow-Credentials: true');
    //header('Access-Control-Max-Age: 86400');    // cache for 1 day
}

// Access-Control headers are received during OPTIONS requests
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
        header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PATCH, PUT, DELETE");
    if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
        header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
    exit(0);
}

The problem was with CORS. Earlier,browsers did not allow ajax requests to be made to a domain which is different than that of a client as it was considered as a security threat. Modern browser's can make cross domain ajax request's as long as the server co-operates with the client.So this is what actually happens when there is a cross domain request from a browser:

First the browser sends 'Preflight' request to the service to gather authorization information(which was a request with the header method as 'OPTIONS' in my case) from the WCF service. In return the Web Service sends Access Control Allow Origin as a part of its response header.
Chrome and Safari then made a second request to the Web Service now that they have the authorization details of the service.Whereas Firefox and IE did not prefer to make a second ajax request to the service

So the solution was to modify the response from the WCF service in case there is a 'Preflight request' made to it.I modified the response sent by the service in case there is a 'Preflight request' to send an HTTP 200 OK Response. This allowed browsers like IE and Mozilla to send the actual request after the preflight request.
Add this code in web/index.php
// Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) {
    header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
    header('Access-Control-Allow-Credentials: true');
    header('Access-Control-Max-Age: 86400');    // cache for 1 day
}

// Access-Control headers are received during OPTIONS requests
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
        header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PATCH, PUT, DELETE");
    if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
        header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
    exit(0);
}

Server Side Access Controll

CORS issues here could be related to https://github.com/yiisoft/yii2/issues/6254

I do not see an issue in yii code here, everything discussed here seems to be for clarifying how yii should be configured to work as expected. closing this.


Style the "on" state of the geolocate button

As a followup to #5587, we should show give the geolocate button an enabled style when the user's location is shown.

I would add that the icon used is very unintuitive, at least to me. I do not look at that and understand what it does. I would recommend to change the icon to either the pin/drop icon or this:

I think these are more commonly used to indicate "Find my location"

@forteller Hmm I just checked the Google Maps and Apple Maps apps and both use a very similar icon to ours (at least in the US localization). But the Google Maps website uses one like you show.
I think both are valid icons and I personally don't like the crosshairs.


UKD-UKD-S5 (B WP3.5) FY24 Q1 Dec'23  Quarterly update

This report is submitted using the form at https://ls.st/ikc-qu.
This is for the period 01/OCT/23 to 31/DEC/23.
A copy of the annual evaluation with the quarterly plan for that period is available at https://lsst-uk.atlassian.net/wiki/download/attachments/766869533/UKD-UKD-S5-FY23-AnnualReport.pdf?api=v2

06/FEB/24

sent Manda a request to submit the QU

10/FEB/24

submitted by Manda and copy sent to Terry


Prevent crashes with config updates on android.

This PR fixes crashes in Android caused by keyboard, language settings, layout direction, and navigation changes.

In the future AndroidPlatform.hx will configure this, so I added d27aaebc01de01dc1943edb05d48d507ef2aba0a to 8.2.0-Dev. How's that look?

It's looking good


Allow specifying component for Typography in case of no matches

Expected Behavior

With irrelevant options elided, this:
<MUIDataTable
        title={title}
        columns={columns}
        options={{
            textLabels: {
              noMatch: <CircularProgress size={24} style={{marginLeft: 15, position: 'relative', top: 4}} />,
            }
            noMatchTypographyComponent: "div",
        }}
        data={tableRows}
      />

Results in this when there are no matches:
<Typography component="div">
   <CircularProgress size={24} style={{marginLeft: 15, position: 'relative', top: 4}} />
</Typography>

Which gives us a structure like:

…

Which, while a little unnecessary, is valid.
Current Behavior

With irrelevant options elided, this:
<MUIDataTable
        title={title}
        columns={columns}
        options={{
            textLabels: {
              noMatch: <CircularProgress size={24} style={{marginLeft: 15, position: 'relative', top: 4}} />,
            }
            noMatchTypographyComponent: "div",
        }}
        data={tableRows}
      />

Results in this when there are no matches:
<Typography>
   <CircularProgress size={24} style={{marginLeft: 15, position: 'relative', top: 4}} />
</Typography>

Because Material UI’s CircularProgress wraps its contents in a div, this gives us a structure like:

…

Which causes a DOM nesting validation error.
Your Environment

Tech
Version

Material-UI
4.9.12

MUI-datatables
3.0.0

React
16.13.0

browser
Chrome 83

Thank you for the report. I've put a fix for this in v3.2.0, which should come out next week and is available in beta here:
npm install<EMAIL_ADDRESS>

That was so quick! Thank you very much.

Fixed in version 3.2.0


Review which fields are required or optional and update the code accordingly

Something to fix: we need to review which fields are required or optional and update the code accordingly
List of required fields

List of required fields

This completes the first stage of work to review our required and optional fields - we have provided a list of all fields.
Once the list has been reviewed any changes will be written as new issues therefore we can close this issue as completed.


[Subtask] [Netty] Metrics system

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Search before asking

[X] I have searched in the issues and found no similar issues.

Describe the subtask
We should more Netty metrics to ensure our system load.
Parent issue
#133
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

assgin for me,thx


Fix name of TestPassThroughFilterChain

Fixes https://github.com/istio/istio/issues/32868

/test all

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all