Dagger is expecting injectable members

I have an app based on android-activity-graphs example.
Compile time checks passes, but at runtime I'm getting an exception:
 Caused by: java.lang.IllegalStateException: Errors creating object graph:
    com.app.NavigationController has no injectable members. Do you want to add an injectable constructor? required by class com.app.MainActivity
            at dagger.internal.ThrowingErrorHandler.handleErrors(ThrowingErrorHandler.java:34)
            at dagger.internal.Linker.linkRequested(Linker.java:183)
            at dagger.internal.Linker.linkAll(Linker.java:110)
            at dagger.ObjectGraph$DaggerObjectGraph.linkEverything(ObjectGraph.java:271)
            at dagger.ObjectGraph$DaggerObjectGraph.initBaseBindings(ObjectGraph.java:219)
            at dagger.ObjectGraph$DaggerObjectGraph.makeGraph(ObjectGraph.java:163)
            at dagger.ObjectGraph$DaggerObjectGraph.plus(ObjectGraph.java:231)
            at com.app.BaseActivity.onCreate(BaseActivity.java:28)

@Module(
        injects = {
                MainActivity.class,
                LoginFragment.class},
        complete = false
)
public class ApplicationModule implements DaggerModule {

    private Context context;

    public ApplicationModule(Context context) {
        this.context = context;
    }

    @Provides
    @Singleton
    ApiService provideApiService() {
        ...
        return restAdapter.create(ApiService.class);
    }
}

@Module(includes = ApplicationModule.class)
public class ActivityModule implements DaggerModule {

    private BaseActivity activity;

    public ActivityModule(BaseActivity activity) {
        this.activity = activity;
    }

    @Provides
    @Singleton
    NavigationController provideNavigation() {
        return new NavigationController(activity);
    }
}

NavigationController is injected in MainActivity which extends BaseActivity
public class BaseActivity extends Activity {
     //....

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Application application = getApplication();
        activityGraph = application.getApplicationGraph().plus(getModules().toArray());
        activityGraph.inject(this);
    }

    private List<? extends DaggerModule> getModules() {
        return Arrays.asList(new ActivityModule(this));
    }

What is the issue here?

You will also get the error if your appModule and activityModule both are injecting the same activity member. So maybe you start off with appModule and create activityModule, make sure this is not the case.


Support for downloading videos from USB storage

Is your feature request related to a problem? Please describe.
As far as I understand, download_videos() only downloads videos from the cloud server.
Despite check_new_videos() is telling me "True" and there are in fact new videos on the local USB storage, they are not being downloaded.
Describe the solution you'd like
A feature should be implemented like download_videos_usb() to download the video files from attached USB storage.

I was bored and did a little traffic snooping last night. Found 2 new endpoints while looking at videos on my sync module:
Send an empty (0 byte) POST to {blink.urls.base_url}/api/v1/accounts/{blink.account_id}/networks/{network}/sync_modules/{sync_module_id}/local_storage/manifest/request
(sync_module_id gets returned from blink.sync.attributes)
This should return a JSON "id" (the request_id)
Poll api.request_command_status with the request_id (I check every 2 sec) until "complete": true comes back.

To download a clip:
Another blank (0 byte) POST to this endpoint: {blink.urls.base_url}/api/v1/accounts/{blink.account_id}/networks/{network}/sync_modules/{sync_module_id}/local_storage/manifest/{manifest_id}/clip/request/{clip_id}
(clip_id's are from the local manifest)
This should return another request "id"
Just like above, poll api.request_command_status with that id until "complete": true comes back.
Download the MP4 with GET {blink.urls.base_url}/api/v1/accounts/{blink.account_id}/networks/{network}/sync_modules/{sync_module_id}/local_storage/manifest/{manifest_id}/clip/request/{clip_id}
I have some bad python running right now, slowly uploading the 600 videos from my local sync module, up to the servers, and then downloading them back. =)

Is this supported now - it seems Jul 26 release became 0.19.2 - not 0.20.0
Is there an example on how to get the file from USB?

Wow, great job @technoweenie314. I would love to know how you captured these, I had zero luck with Pi-ITM

This is awesome, thanks @technoweenie314  for reverse engineering and @perdue for re-reverse engineering and implementing :)
I was able to figure out, by pure guess work, that replacing "request" with "delete" in the (0 byte) POST with the {clip_id} can also be used to delete the clip from local storage.
Here is some very crude code to download and delete videos one-by-one from the sync module, this will save me having to painfully go through the Blink app everyday to clear out the videos:
print("Going through syncs...") for name, sync in blink.sync.items():   print(name)   #print(sync.attributes)   #print(sync._local_storage)   totalItems = len(sync._local_storage["manifest"])   itemNumber = 1   for manifestItem in sync._local_storage["manifest"]:     manifestItem.prepare_download(blink)     urlForVideo = blink.urls.base_url+manifestItem.url()     cameraName = manifestItem._camera_name     fileName = cameraName + manifestItem._created_at.strftime("%Y%m%d-%H%M%S") + ".mp4"     fileName = fileName.replace("/", "-")     print(str(itemNumber)+"/"+str(totalItems)+": "+fileName)     media = blink.cameras[cameraName].get_video_clip(urlForVideo)     if media.status_code == 200:       with open(path+fileName, "wb") as clip_file:         copyfileobj(media.raw, clip_file)       urlForDelete = urlForVideo       urlForDelete = urlForDelete.replace("request", "delete")       blink.auth.session.send(blink.auth.prepare_request(urlForDelete, blink.auth.header, None, "post"))     else:       print(media)     itemNumber = itemNumber+1     time.sleep(10)

Can someone please explain how to use with asyncio?

When I try to download the same clip again, I get the following error:
{
  "complete": true,
  "status": 1,
  "status_msg": "Command failed to complete",
  "status_code": 909,
  "commands": [
    {
      "id": 82623,
      "created_at": "2023-09-11T17:34:37+00:00",
      "updated_at": "2023-09-11T17:34:38+00:00",
      "deleted_at": null,
      "execute_time": "2023-09-11T17:34:37+00:00",
      "command": "local_storage_media",
      "state_stage": "sm",
      "stage_rest": "2023-09-11T17:34:37+00:00",
      "stage_cs_db": "2023-09-11T17:34:38+00:00",
      "stage_cs_sent": "2023-09-11T17:34:38+00:00",
      "stage_sm": "2023-09-11T17:34:38+00:00",
      "stage_dev": null,
      "stage_is": null,
      "stage_lv": null,
      "stage_vs": null,
      "state_condition": "error",
      "sm_ack": 1,
      "lfr_ack": null,
      "sequence": 82623,
      "attempts": 0,
      "transaction": "asd",
      "player_transaction": "rv4j5w8zethXLX4k",
      "server": null,
      "duration": null,
      "by_whom": " - ",
      "diagnostic": false,
      "debug": "{\"command_error\":null}",
      "opts_1": 0,
      "target": "sync_module",
      "target_id": 82623,
      "trace_parent": null,
      "sync_module_id": 82623,
      "parent_command_id": null,
      "camera_id": null,
      "siren_id": null,
      "firmware_id": null,
      "network_id": 82623,
      "account_id": 82623
    }
  ],
  "media_id": null
}

"82623" is a fake id.
The clip in question is still available on the app, but any attempts to retrieve it through the API fail.
Any ideas?


Fix st2-self-check script reporting success on failed runs

When the test run contains several nested workflows the script assumes it's succeeded if at least a single sub-workflow was successful. Instead of that, the check should refer to the parent workflow with "status: succeeded".
Example
id: 61b105a82f44ed586b2d24d0
action.ref: tests.test_inquiry_chain
parameters:
  protocol: http
  token: bbeb3f7d29e240ac83ce3d53fff90745
status: failed
result_task: get_workflow_details_1
result:
  failed: true
  return_code: 2
  stderr: ""
  stdout: ''
  succeeded: false
error: ""
traceback: None
failed_on: get_workflow_details_1
start_timestamp: Wed, 08 Dec 2021 19:21:12 UTC
end_timestamp: Wed, 08 Dec 2021 19:21:23 UTC
log:
  - status: requested
    timestamp: '2021-12-08T19:21:12.277000Z'
  - status: scheduled
    timestamp: '2021-12-08T19:21:12.434000Z'
  - status: running
    timestamp: '2021-12-08T19:21:12.697000Z'
  - status: failed
    timestamp: '2021-12-08T19:21:23.334000Z'
+--------------------------+------------------------+--------------------------+------------+-------------------------------+
| id                       | status                 | task                     | action     | start_timestamp               |
+--------------------------+------------------------+--------------------------+------------+-------------------------------+
| 61b105a8b1a7886ef90b7b15 | succeeded (4s elapsed) | execute_inquiry_workflow | core.local | Wed, 08 Dec 2021 19:21:12 UTC |
| 61b105acb1a7886ef90b7b17 | succeeded (2s elapsed) | get_inquiry_trigger      | core.local | Wed, 08 Dec 2021 19:21:16 UTC |
| 61b105afb1a7886ef90b7b19 | succeeded (0s elapsed) | get_inquiry_id           | core.local | Wed, 08 Dec 2021 19:21:19 UTC |
| 61b105b0b1a7886ef90b7b1b | succeeded (1s elapsed) | get_workflow_id          | core.local | Wed, 08 Dec 2021 19:21:20 UTC |
| 61b105b2b1a7886ef90b7b1d | failed (1s elapsed)    | get_workflow_details_1   | core.local | Wed, 08 Dec 2021 19:21:22 UTC |
+--------------------------+------------------------+--------------------------+------------+-------------------------------+

Now that you've already figured it out, I'm somewhere I can look up how I've dealt with something similar.
First I get an execution id (I only did chatops.match_and_execute, but it should be generalizable):
match_and_execute() {
  # usage: match_and_execute "<alias>" <timeout>
  # returns the execution id
  echoerr "chatops> ${1}"
  st2 --cacert=true run chatops.match_and_execute text="${1}" source_channel=vela user=${VELA_BUILD_AUTHOR} timeout=${2:-600} --attr result.result --json | jq -r .result.result
}

Then I query an execution status from bash:
assert_status() {
  # usage: assert_status <exec_id> <expected_status>
  local exec_status
  exec_status=$(st2 --cacert=true execution get --detail --json ${1} | jq -r .status)
  if [ "${2}" != "${exec_status}" ]; then
    echo failed
    echoerr "The alias execution should be ${2} but it is ${exec_status}!"
    return 4
  fi
  echo passed
  echo
}

Note how I used --detail --json. --detail makes it put only the current execution (no children) in a table, and then --json says "actually give me the table as json". Thus, you only get info about the current execution in json format instead of a series of json objects for the execution and its children.
This is what one of my tests using those functions looks like:
ALIAS_EXEC_ID=$(match_and_execute "tc list" 120)
echo ALIAS_EXEC_ID=${ALIAS_EXEC_ID}
assert_status "${ALIAS_EXEC_ID}" "succeeded"

To be clear, I'm not recommending you change the approach for this PR. I just wanted to share it while I was thinking about it as a possible future enhancement.

@cognifloyd That does multiple requests, adding smart code, complexity, and jq as a dependency.
Form the code:
    OUTPUT=$(st2 run ${TEST} protocol=${PROTOCOL} token=${ST2_AUTH_TOKEN})
    echo "${OUTPUT}" | grep "status" | grep -q "succeeded"
    EXIT_CODE=$?

    if [ ${EXIT_CODE} -ne 0 ]; then
        echo "Test output: ${OUTPUT}"
        ((ERRORS++))
    fi

In our case, the workflow would show the original human-readable execution output as-is.
That's helpful in identifying more quickly in logs what's wrong when things failed with the st2-self-check.
When the e2e tests failed, someone is looking at logs, and the instance is destroyed already, the things should be as simple and obvious as possible.
Just a different approach depending on what matters more in a particular situation.

@amanda11 @nzlosh @cognifloyd Thanks everyone for the reviews :wink:


DNN-6615: Users cannot subscribe to public security role

fixed version of sproc GetServices

@sleupold please re-fix for DNN 9.2.0 release

I will review and resubmit asap

Closing, @sleupold will be submitting a new pull request

it appears this never made it over to DNN9.3 either. I still this as an issue.


Support for Portuguese (Brazil)

Hello, just starting the ptBR ManageIQ/Cloudforms language.

I think this PR can be closed, seeing there's pr #14179


Error running benchmark on Windows

Running node ./benchmark/benchmark.js as instructed in CONTRIBUTING.md
See comments thread in PR#971 for more details on this issue.
Error:

npm i -g --prefix xxx serve will install stuff to different folders. I'm taking serve as an example here because it has less dependencies:
On linux (npm 8.8.0):
xxx/bin
xxx/bin/serve
xxx/lib
xxx/lib/node_modules
xxx/lib/node_modules/serve/
xxx/lib/node_modules/serve/{package files here}

On windows (npm 9.8.1):
serve
serve.cmd
serve.ps1
xxx/node_modules
xxx/node_modules/serve
xxx/lib/node_modules/serve/{package files here}

Need to check why this is happening, is that OS-specific behavior or something else.

npm i -g --prefix xxx serve will install stuff to different folders. I'm taking serve as an example here because it has less dependencies:
On linux (npm 8.8.0):
xxx/bin
xxx/bin/serve
xxx/lib
xxx/lib/node_modules
xxx/lib/node_modules/serve/
xxx/lib/node_modules/serve/{package files here}

On windows (npm 9.8.1):
xxx/serve
xxx/serve.cmd
xxx/serve.ps1
xxx/node_modules
xxx/node_modules/serve
xxx/node_modules/serve/{package files here}

Need to check why this is happening, is that OS-specific behavior or something else.

removed "Windows" from the issue title, since not sure if this is OS-specific

https://www.google.com/search?channel=fs&client=ubuntu&q=npm+--prefix+not+work+in+windows
Seems solution is to repeat path after --prefix Or use cd with extra package.json explicit.


Docker build fails when installing profiling package

Is there an existing issue for this?

[X] I have checked for existing issues https://github.com/getsentry/profiling-node/issues
[X] I have reviewed the documentation https://docs.sentry.io/
[X] I am using the latest SDK release https://github.com/getsentry/profiling-node/releases

How do you use Sentry?
Sentry Saas (sentry.io)
SDK Version
0.3.0
Link to Sentry event
No response
What environment is your node script running in?
Node/Express, fails when building docker container.
How is your code deployed and bundled?
Building container using following dockerfile.
WORKDIR /app
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
COPY . /app
RUN npm run build:ts

FROM node:16.13.0-alpine
WORKDIR /app
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
COPY --from=builder /app/.uploads /app/.uploads
COPY --from=builder /app/migrations /app/migrations
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/assets /app/dist/assets
CMD node dist/src/server.js
EXPOSE 3000

Steps to Reproduce

Add profiling to project according to docs.
Initiate build with dockerfile above
See it fail with below error.

Expected Result
Build completes with no errors related to sentry.
Actual Result
#8 92.22 error /app/node_modules/@sentry/profiling-node: Command failed.
#8 92.22 Exit code: 1
#8 92.22 Command: node scripts/check-build.js
#8 92.22 Arguments:
#8 92.22 Directory: /app/node_modules/@sentry/profiling-node
#8 92.22 Output:
#8 92.22 @sentry/profiling-node: Precompiled binary found, attempting to load...
#8 92.22 /app/node_modules/@sentry/profiling-node/scripts/check-build.js:51
#8 92.22   throw e;
#8 92.22   ^
#8 92.22
#8 92.22 Error: Error relocating<EMAIL_ADDRESS>_ZSt28__throw_bad_array_new_lengthv: symbol not found
#8 92.22     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
#8 92.22     at Module.load (node:internal/modules/cjs/loader:981:32)
#8 92.22     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
#8 92.22     at Module.require (node:internal/modules/cjs/loader:1005:19)
#8 92.22     at require (node:internal/modules/cjs/helpers:102:18)
#8 92.22     at Object.<anonymous> (/app/node_modules/@sentry/profiling-node/scripts/check-build.js:24:3)
#8 92.22     at Module._compile (node:internal/modules/cjs/loader:1101:14)
#8 92.22     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
#8 92.22     at Module.load (node:internal/modules/cjs/loader:981:32)
#8 92.22     at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
#8 92.22   code: 'ERR_DLOPEN_FAILED'
#8 92.22 }

@Himiath thanks for the report. Does the failure happen when you are running yarn install? If so, would it be possible for you to switch to npm just to test and give us the output of the following command? npm install --verbose --foreground-scripts @sentry/profiling-node?
I have just tested the code you shared on docker app and it worked without any issues

@Himiath I think this might be related to the issue described here - https://github.com/microsoft/vscode/issues/178748
Would you mind trying to use node 16.20-alpine docker image?

I have tried the 16.20-alpine image and it worked a charm. Currently over our ratelimit so can't verify in the dashboard but I see one dropped profile on my account so looks like it is working with this deployed to our dev environment as well!


Add refresh method to Orm instance.

Get new instance by querying by pk.
Call modify on instance with new instance fields.

see #4


Centralize path in one node instead of in each of the mobs, and make them reference the path

For A* nav, take everything out of the mob's astar_nav except the move_along_path, and give it a modifiable copy of path to use as it's own."
`mob.astar_nav.path = $"/root/main/astar_path".get_path

Otherwise the game might get pretty laggy pretty fast on less-powerful machines (unnecessary calculations)

Though this is really only for optimization, I might get lazy / put more effort elsewhere.

Fixed in #37


Uniform treatment, description and API for Ergo errors

Various kinds of errors are reported in different ways in the ergo compiler and runtime. We should provide consistent support and reporting for errors.
A JSON description (either included in an exception or returned by a call to the Ergo compiler) would be useful. This could possibly align with VScode error description. Here is a corresponding code snippet from the ergo-vscode-plugin:
diagnostics.push({
                severity: vscode_languageserver_1.DiagnosticSeverity.Error,
                range: {
                    start: { line: line - 1, character: column },
                    end: { line: line - 1, character: column }
                },
                message: message,
                source: 'ergo'
            });

Handled in #168


Cleanup Mail::Exim spec and fix Mail::Sendmail/Mail::Exim ~ escaping

Fix for #1121, but contains some cleanup in spec/mail/network/delivery_methods/exim_spec.rb first.  I wanted to add tests for escaping ~ properly, but the large amount of duplication made the file hard to understand.

@Benabik Any update on this?

Is there something I need to update?  Still is on top of master and passes tests.

The travis errors seem to have nothing to do with my PR?


Gfg error

I have to submit a problem multiple times like 5-6 times in GeeksforGeeks then it is showing in the github repository.

How long do you wait after solving a problem? Depending on your network speed, give it anywhere from 4-10 seconds, and decrease it later. It is supposed to work perfectly. Please share details on your LeetHub version and repository URL.

I waited for 20-30 seconds.
The LeetHub version is 1.1.1
Repository URL: https://github.com/chirantan-basu01/Daily-Problem-Solving

Hmm that's strange. Can you first try a leetcode problem and see if the same issue persists? If not, kindly try another gfg problem. Make sure your submission is actually correct. LeetHub only takes correct submissions.
If the same error persists, you should see some error logs in console. Kindly add those screenshots.

Yeah. Now it's working all good. I don't know what happened yesterday.


CI: add a linting step for all of our custom bitbake recipes

This PR is inspired by #110, which mentions running meta-openembedded's oe-stylize.py on the bitbakes files in meta-lxatac.
Now that I have learned that there is a linter script for bitbake files I want it as a GitHub action.
So here is a pull request to add it.
TODO before merging:

[ ] Make sure the action runs without errors

@hnez While I like the idea in general, I have some objections against running this in CI: The script is not too actively maintained (primarily got some PEP8-related fixes over the last years) and is not part of oe-core. I have seen several false positives I had to re-fix manually in some recipes (like when properly using self-defined variables).
Thus I'd say it is a good tool for running manually on your recipe, but I am not sure if we should enforce it in CI automatically.

I've just rebased the PR, just to have a second look at the output of the job.
On the one hand I really like having one canonical version of source files with their formatting defined by a formatter, on the other hand oe-stylize.py does not seem to be up to the task yet, like rustfmt, prettier or clang-format are.
I will close the PR for now. Maybe some day we will have an appropriate auto-formatter.


RunTimeError when training SPLADE - .get_world_size() issues

Hi,
Im trying to train a splade model using the guidelines at (https://github.com/texttron/tevatron/tree/main/examples/splade),
But I am getting following runtime error
Traceback (most recent call last):
File "/home/src/tevatron/examples/splade/train_splade.py", line 135, in
main()
File "/home/src/tevatron/examples/splade/train_splade.py", line 116, in main
trainer = SpladeTrainer(
File "/home/src/tevatron/examples/splade/train_splade.py", line 31, in init
self.world_size = torch.distributed.get_world_size()
File "/home/anaconda3/envs/myenv/lib/python3.9/site-packages/torch/distributed/distributed_c10d.py", line 867, in get_world_size
return _get_group_size(group)
File "/home/anaconda3/envs/myenv/lib/python3.9/site-packages/torch/distributed/distributed_c10d.py", line 325, in _get_group_size
default_pg = _get_default_group()
File "/home/anaconda3/envs/myenv/lib/python3.9/site-packages/torch/distributed/distributed_c10d.py", line 429, in _get_default_group
raise RuntimeError(
RuntimeError: Default process group has not been initialized, please make sure to call init_process_group.
code snippet from train_splade.py:
class SpladeTrainer(TevatronTrainer):
    def __init__(self, *args, **kwargs):
        super(SpladeTrainer, self).__init__(*args, **kwargs)
        self.world_size = torch.distributed.get_world_size()

Do you know why am I getting this error?
Thanks alot in advance :)

probably there is a bug. I'll take a look

Hi,
this bug fixed in https://github.com/texttron/tevatron/pull/67

Thanks :)


Added IEEE Programming Languages Dataset with Stacked bars and heatmap

closes #20
prerequisites:

[ ] branch is up-to-date with the branch to be merged with, i.e. develop
[ ] build is successful
[ ] code is cleaned up and formatted

Summary
One view creates a stacked bar ranking with all metric for each year. The metric are weighted by the IEEE Spectrum weights.
The other view creates two rankings with heatmaps. One ranking for 2018, and one with years 2014-2017, ranked by year 2017.

updates are added to the PR

Updated the string conversion. Sorry for the delay, was on holiday.

In the mean time, @thinkh includes some style changes that requires to update your preview images

Images in 500px*254px and with the new style.


Need documentation for flutter driver when used with apps that include native UI

Use case
Reference to https://github.com/appium/appium/issues/12919,
Flutter goes with flutter drive, the e2e test tool, but it does not work with app that has both flutter view and native view (such as embedding Flutter to existing app), or flutter view with web view (open a webview in Flutter).
Having appium flutter driver in Appium would solve both problems above, similar to http://appium.io/docs/en/writing-running-appium/web/hybrid/
Proposal
In order to create/contribute to an appium driver, there should be a document of what kind of protocol/communication flutter drive is using.

Blocker for e2e testing for apps dependent on native components. Hopefully, this is in the work.

@collinjackson for his input

@RedBrogdon is working on adding such types of examples to https://github.com/flutter/samples/tree/master/add_to_app for Android.
@collinjackson might be interesting describing the range of valid testing strategies and APIs you've been working on in https://flutter.dev/docs/testing.

Relevant PR for integration tests via espresso in add-to-app: https://github.com/flutter/samples/pull/323/files

@RedBrogdon Until flutter_driver works with web views, is there a suggested work around for it? A way that Google recommends to get defer out of flutter_driver, login, then get back into it. I was thinking of using flutter_driver with espresso to actually log in, but that doesn't seem to be working right now (I filed this https://github.com/flutter/flutter/issues/54780).

@collinjackson would be the expert here as far as the internal details of the espresso plugin, but I did need to play with the versions of some of the gradle artifacts when I was adding espresso tests to the sample apps.

bump

bump

bump

Please don't bump, it adds noise.  If there were updates on this issue someone would comment on it.

cc @dnfield @johnpryan

If you haven't already, take a look at the espresso package: https://pub.dev/packages/espresso. It's something that was launched last year to help with Android-to-Flutter-and-back tests.
The documentation for the plugin has some good info, and we added an example test to one of the add-to-app samples: https://github.com/flutter/samples/blob/master/add_to_app/fullscreen/android_fullscreen/app/src/androidTest/java/dev/flutter/example/androidfullscreen/ExampleInstrumentedTest.kt.

If you want to interact with native views from withing Dart tests run from flutter test, take a look at Patrol :)

This is not something we will be doing, folks are able to add their own extensions to driver as necessary (as seen above).
If you want an example of doing something like this with flutter_driver (we won't make this package public, you could take a look at https://github.com/flutter/flutter/tree/master/dev/tools/native_driver), or otherwise I recommend https://pub.dev/packages/patrol.
Duplicate of https://github.com/flutter/flutter/issues/34345.


To reuse num-rational or not

Hi Jacob,
What are your plans regarding dashu-rational? Do you want to implement Ratio in dashu or reuse the one in num-rational?
Advantages of a re-write:

No forced dependency on num-integer.
Better performance (num-rational does a lot of unnecessary clones).

Disadvantages of a re-write:

More work.

Hi David, thanks for your interest. My current plan will be to implement num_integer:Integer first so that dashu_int::UBig/IBig can be used as the base type for num_rational::Ratio, which should be fairly easy. Then I'm going to implement dashu_rational from scratch, because it's relatively easy to implement the rational library.
Specifically, I'm planning to implement two types of rational numbers. One is a rational number with numerator and denominator always normalized (with GCD ripped off), the other is a number without normalization forced during operations, because GCD is the costliest step for rational numbers.

num_integer::Integer is implemented for UBig/IBig in version 0.2.1, so it can be used with num-rational. I'm going to implement a rational number library in the next big release. Close it for now, if you met any problems with num-rational + IBig, please create new issues.

v0.3 has been published and it contains a library for rational numbers. Feel free to have a look and any feedback are welcome!


Cleanup size_report script

Update size_report to argparser
Cleanup argument handling / error support -- make the script a bit more user friendly

Codecov Report

Merging #10890 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #10890   +/-   ##
=======================================
  Coverage   53.32%   53.32%
=======================================
  Files         215      215
  Lines       25886    25886
  Branches     5705     5705
=======================================
  Hits        13803    13803
  Misses       9763     9763
  Partials     2320     2320

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 8d56730...2359113. Read the comment docs.


CAMEL-19060: move the isFailureHandled logic to a field in the ExchangeExtension to avoid costly operations

This is a small optimization aimed at that avoiding costly operations in AbstractExchange#getProperty. It brings a small but noticeable improvement to SEDA (and probably others):
-- Patch
Mean:<PHONE_NUMBER>4285704
Geometric mean:<PHONE_NUMBER>9513963
Standard deviation: 7040.578210525716

-- 4.0.0-M1
Maximum: 490420.0
Mean:<PHONE_NUMBER>285715
Geometric mean:<PHONE_NUMBER>851105
Standard deviation: 8802.284218119967

@davsclaus @oscerd I guess one of you might one to double check this PR.


TINY-9428: Code Scanning

I'm closing this since we don't think it's a good idea the code scanning should be done on the tinymce main repo not the dist repo since we shouldn't patch this repo.


ability to rename handler to whatever we want

Following lambdex_handler.py:handler requirement leads to some issues in my project. It would be cool if we could have the entry point be anything we want:
python_awslambda(
name="some_name",
handler="some_handler.py:foo",
runtime="python3.7",
lambdex_handler_name="built_name.py:bar"
)

@raytorres280 I'm sorry I missed this. N.B. that python_awslambda(...) is a Pants construct at another level above Lambdex. Lambdex does allow you to specify both a custom module (-M / --script-module) and a custom function in that module (-H / --script-handler):
:; pex --python python3.11 lambdex -c lambdex -- build -h
usage: tmpii257196 build [-h] [-s FILENAME] [-e PACKAGE:NAME] [-H FUNCTION] [-M FILENAME] [-o FILENAME] PEXFILE

positional arguments:
  PEXFILE               The pex file to turn into a lambdex package.

options:
  -h, --help            show this help message and exit
  -s FILENAME, --script FILENAME
                        The script to include, if any. (default: None)
  -e PACKAGE:NAME, --entry-point PACKAGE:NAME
                        Set the entry point of the lambda function to this package:name tuple. (default: None)
  -H FUNCTION, --script-handler FUNCTION
                        Invoke this function within the script. (default: handler)
  -M FILENAME, --script-module FILENAME
                        Root module of the lambda. (default: lambdex_handler.py)
  -o FILENAME, --output FILENAME
                        Write output to this path. Otherwise, modifies the input file in-place. (default: None)

@raytorres280 I'm going to close this as answered. Please speak up if you have further questions, but also note that #35 will be released presently in Lambdex 0.2.0 and be the last version of Lambdex released. You can see the MIGRATION guide if you want Lambdex-like functionality from a normal modern PEX without needing Lambdex, but Pants has better options now a days as well.


[FEATURE] - wstunnel support

Is your feature request related to a problem? Please describe.
Tunneling through websockets using https://github.com/erebe/wstunnel would help in bypassing port based blocking.
Using wstunnel with wireguard currently requires a complicated configuration with 3 apps working together, when ideally the wireguard app would perhaps just include the wstunnel binary and have an exposed configuration interface to use it.
Describe the solution you'd like
wstunnel included with wgtunnel, with a built-in socks client to make use of it.
Describe alternatives you've considered
The alternative is currently hairy.

😍😍😍😍😍❤❤❤❤❤❤❤

Thank you for the feature request. I'll look into this!

Is your feature request related to a problem? Please describe. Tunneling through websockets using https://github.com/erebe/wstunnel would help in bypassing port based blocking. Using wstunnel with wireguard currently requires a complicated configuration with 3 apps working together, when ideally the wireguard app would perhaps just include the wstunnel binary and have an exposed configuration interface to use it.
Describe the solution you'd like wstunnel included with wgtunnel, with a built-in socks client to make use of it.
Describe alternatives you've considered The alternative is currently hairy.

Hahaha i literally just came to post this exact thing. Can you tell me how you have it working at the moment though? Can I PM you for faster response? If no, thats fine. If you can tell me how you have it working with websocket connection, I'll see if I can also get it done because I am searching for the same thing.

The info I have on making this work currently is in this thread: https://github.com/erebe/wstunnel/issues/292

The info I have on making this work currently is in this thread: erebe/wstunnel#292

Thanks, I just checked it out. Hopefully wgtunnel implements this into the app.
So currently for it to work on your phone, you have to issue the following command in termux?
.\wstunnel client -c 10 -L 'udp://51820:localhost:51820?timeout_sec=0' wss://vpn.server.com:443 --tls-sni-override vpn.server.com

Hey, any update for websocket and SNI/bughost support in WGtunnel? I'm willing to be a tester also.


Feature Request: Disable Token HUD buttons

Is your feature request related to a problem? Please describe.
I don't feel the need to have always accessible buttons on the token HUD.
Describe the solution you'd like
An option to hide the buttons or move them to the Token settings menu would be nice.
Additional context
Somewhat related, having this addon enabled alongside Mount Up causes the Mount Up button to disappear.

I would like to suggest that this implementation be done separately for the "different movements" button and the "terrain toggle" button. I, for example, use the movement types button, but not the terrain one.

That's indeed the plan. v1.6.2 will add:

Two client settings to turn off each button individually (and also hide the terrain stuff automatically when terrain ruler / enhanced terrain layer aren't installed).
Two options in the token config to turn off the buttons for that token only.
A dropdown selection for the movement speed in the token config, so you can pick the movement speed there if you don't want to use the button at all.
Two world settings to restrict the buttons to a certain permission level.


Element should emit an event when hidden changes

Describe the solution you'd like
It could be useful for a page to listen to when an element's hidden state changes. Some potential event patterns-

Achange event, and include a boolean for whether the element is shown or hidden.
Separate show and hide events
An evaluated event that gets run whenever  showHide gets run, regardless of change.

This could potentially also be used by host pages to use show-when logic without adding any child elements to the component itself.
Describe alternatives you've considered
Host pages could use MutationObserver to watch for changes, but it would be easier for them to be able to simple attach a listener to the element directly.

This makes sense to me. But I haven't thought through the uses, so I'm not sure which option is best.


Remove group dash button of non-social arms.

Added a check to ensure arm is social.

[#90111634]

:smiley_cat:


User's Guide:  document --diskcheck= option

This issue was originally created at: 2008-04-02 15:26:24.
This issue was reported by: stevenknight.
stevenknight said at 2008-04-02 15:26:24

Add User's Guide section(s) with suitable simple examples.
Text can be sent to SK if you don't want to mess with the DocBook input files.

stevenknight said at 2008-04-02 15:26:31

Milestone.

stevenknight said at 2008-04-02 15:30:09

Milestone.

garyo said at 2008-08-20 04:38:24

Triage: move from 1.0. For 1.0.1 if anyone has time (not Steven!); otherwise
move to 1.x.

gregnoel said at 2008-09-02 15:21:45

Move unfinished 1.0.1 issues to 1.1.

stevenknight said at 2008-10-17 05:59:05

Update target milestone to 1.2.

gregnoel said at 2008-12-04 17:41:09

1.2 is frozen; issues that didn't make it into 1.2 are moved to 1.3.

stevenknight said at 2009-11-10 17:44:45

Give back 1.3 (?) doc issues to issues@scons.

stevenknight said at 2010-06-01 18:11:49

Reassigning to gregnoel per bug party triage.
The goal is to try to get this done ASAP, if possible for 2.0.  It's more important to create the words
and examples than to get the formatting right; I can format if need be, just attach a patch if so.
Finding someone else to take one of your issues is all right.

garyo said at 2010-06-05 12:00:58

I'm working on this.  I wrote something & sent it to Steven.  It's not clear to
me where it should go in the Users Guide.

gregnoel said at 2010-06-05 12:07:59

Make sure Gary gets the credit.

gregnoel said at 2010-06-05 12:10:45

Lest I forget, thanks for taking on this task.

garyo said at 2012-09-01 10:01:49

Bumping all old issues targeted for past releases to 2.x.

To what extent is the diskcheck option still useful in its current form?  e.g. the sccs/rcs stuff doesn't really seem to be very current.

Dead. Closing.


quest

Hi! i just started playing this pack and i am having trouble passing the second quest for some reason when i build a stencil table it wont register in the quests that i actually did

Hello and thank you @PizzaGuru - working on a fix at the moment. Should be out in the next half hour.
For the time being, if you have cheats enabled, type the command /ftbquests editing_mode, then open the quests GUI, right-click the quest and select 'complete instantly'. You might have to do this for the part builder quest as well.


ARROW-13814: [CI] Fix Spark master integration tests

Increase the maven code cache to the recommend 1g to fix Spark Scala tests with latest Arrow.

@github-actions crossbow submit test-conda-python-3.8-spark-master

@github-actions crossbow submit test-conda-python-3.8-spark-master

@github-actions crossbow submit test-conda-python-3.8-spark-master

Hmm, not sure what's causing the problem. I can reproduce it locally, then I make a change and seems to be fixed but then pushing the change has no effect here..

@kiszk do you have any clue why we are having trouble compiling Spark master + Arrow Java master?

Looks like it has been failing for a while, first failure was on May 13 and seems to be related to this issue https://issues.apache.org/jira/browse/SPARK-35387 also fixed on May 13. I'll try the same fix here.

@github-actions crossbow submit test-conda-python-3.8-spark-master

Looks like I finally found the culprit :sweat_smile:
Could you please review @kszucs or @jorisvandenbossche ?


Add main attribute to package.json

Add main attribute to package.json to define the entry point to the module. This means the module can be be loaded via Browserify/Webpack when used an as npm dependency.

Hi @gavboulton : thanks a lot for this suggestion, I'm going to deploy it for other plugins. ;)

You're welcome @nico3333fr.


WinUI 3 Gallery - Dark mode isn't working

Describe the bug
I've installed WinUI 3 Controls Gallery from Windows Store on both Windows 10 and Windows 11 systems. Started it and switch to dark mode in settings but nothing happens. The app remains white.
Steps to reproduce the bug
Steps to reproduce the behavior:

Download gallery from Windows Store
Start and go to settings
Switch to dark

FYI: Default mode in Windows 10/11 is light mode.
Expected behavior
It should become dark
Actual behavior
It stays white
Screenshots

Version Info

[X] App downloaded from Store

<IP_ADDRESS>

[ ] App built locally from source

Windows 10 version:

[X] May 2020 Update (19041)

Device form factor:

[X] Desktop

Hi @Symbai! Thanks for filing this issue. I believe that this was fixed in the latest WinUI 3 Gallery update. I'll close this for now but feel free to reopen it if you are still having issues with it.


Web Interface for collaboration

While a free and open source SubEthaEdit now really removes the entry barrier to do live ad hoc collaboration with your peers, it would be great if SubEthaEdit could also sever a web app on demand so anybody could join and follow a document without having to have a mac.
E.g. think EtherPad served from the SubEthaEdit app on demand so you truly collaborate with anyone at any time. Current web technologies have advanced enough that this is a very viable option to have a great web app running and talking to SubEthaEdit.

I love this Idea. Having the ability to easily host your own instance of EtherPad by just starting a Mac App would be awesome!
I have looked into the current crop of Open Source Implementations of collaborative text editors, and it seems that they tend to use a CRDT data type to synchronize text editing between clients.
What type of protocol is SubEthaEdit using? My understanding is that it was developed before we understood how to formalize CRDT data types and is therefore (still?) using Operational Transforms based algorithms? Is there documentation besides the code that details the protocol / datatypes SEE is using for this?
Would be lovely to find out there is a standard protocol that is already supported by an open source software. :)

You can dig around in the pre 3.0 releases to find out some more artefacts of documentation that should still be valuable (both for the protocol and for the transforms). There is #20 to track creating this documentation again.
Essentially SubEthaEdit is just attaching operational transform rules for the basic selection and replace text operations, all found in the Source/Operation folder in the xcode project.
Yes, SubEthaEdit was done before CRDTs were popular. And personally, I prefer the transforms from a point of view that you don't get those tombstones you'll have to manage, e.g. for the ad hoc collaboration it accumulating way less of non-data-data. But there is more pro/cons around this. For now I only lifted up the existing implementation to build and run again, this should not be seen as a technology endorsement at this point in time.
There is a lot out there, so I'm happy to take pointers. Also with HTTP2 streaming being almost as capable as BEEP it might be worth investigating switching to it for various reasons.
From an architectural perspective I think it would be best to allow for other collaboration protocols to interop with the app if possible and the other protocols are defined enough.

Some working open source implementations can be seen here:

https://github.com/blindpad/blindpad
https://github.com/ipfs-shipyard/peer-pad

The question would be how to interface with such a system?
One way would be for SEE to start such a server in a background-process and log in to it as a client for webshared text-files. To implement this, a transmogrified for the Operational Transforms to the crdt operations and some web socket programming would be required.
Sounds a bit hackisch, but on the other hand, something that would at least be relative straightforward.

Yeah - some sort of adaptation layer, that would translate between those worlds. I guess it would be best to prototype something and then go from there. I think it would be best to put those concrete ideas into separate github issues and explore. This one was really meant to actually have SubEthaEdit serve a fully functional web interface in the local network and if port mapping is up also to the outside world.


Get-ADSIPrincipalGroupMembership Change Proposal

Proposals:

Run Add-Type -AssemblyName System.DirectoryServices.AccountManagement during module import
Currently you have to manually import that assembly in order for Get-ADSIGroup to work (to reproduce, import this module in a clean session, then run Get-ADSIGroup - it will not work until you add the above assembly - I would consider this to be a bug)
Modify Get-ADSIPrincipalGroupMembership to allow people to search for Groups as well as User Group Membership (I have already made the necessary changes for this, see below for more info)

While using this excellent module, I noticed I was not able to get the Group Membership of an actual Group - it only allowed for users.  I have added that functionality to this script, and tested that it is working (I have also replaced this script in my local ADSIPs module)..
The following changes were made:

Added the ability to provide a Group within the -Identity parameter (you can use the same 6 attributes to search for a user, just like you can when searching for a User:  "DistinguishedName", "Guid", "Name", "SamAccountName", "Sid", -"UserPrincipalName"
Added a parameter for -GroupInfos that acts just like -UserInfos, but it is specific to Groups
Ensured you can still pass -DomainName, as well as -Credentials along with -Identity
Removed -NoResultLimit, as this is pointless per the comment block
Cleaned up parameter type validation
Cleaned up some redundant code
Cleaned up the begin block

I have verified this is working (even on a trusted domain, not in the same forest)..
Overall, this adds a lot of flexibility to this function.

Looks good awesome work @oze4 !
Thank you so much!


Test coverage drop when upgrading to 0.11.2 from 0.10.0

When upgrading from simplecov 0.10.0 to 0.11.2 our code coverage drops significantly.  We go from 100% to 87.67%.
This is the result set from the 100% test coverage simplecov 0.10.0 run.
resultset_0_10.txt
This is the result set from the 87.67%
resultset_0_11.txt
The only difference between these two runs is the upgrade to simplecov 0.11.2 and running bundle.
I have noticed some files are in more sections with the newer version.  For example, a file may show up in 1 and 2 of 4 in the 0_10 result set instead of just 1 of 4 in the 0_11 result set.  The additional entries seem to have all lines as 0's.  I'm guessing these extra all 0 entries are driving down the test coverage during the merge.
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin14.3.0]
Rails 4.1
RSpec 3.4.1
We are using parallel_tests 1.5.1 with 4 threads.
Tests are invoked with rake parallel:spec[4]
We are not using a .simplecov file.

Problem comes from track_files.  Setting track_files to false in spec_helper in the SimpleCov.start 'rails' block fixes this.

@David-Sharpe Could this be caused by https://github.com/colszowka/simplecov/pull/441 ?

@David-Sharpe Setting track_files to false excludes all files with 0% coverage from the report, arbitrarily inflating our coverage metrics. Not including track_files false shows no ops as not being covered, deflating our coverage metrics.
What is the option for getting accurate coverage metrics?

This should be fixed with the recent merge of the track files fix, if not please let us know


Update loading-assets.mdx

Hi, I've added an example on how to apply multiple textures to different faces of a BoxGeometry instance. It differed from how it was done in React Three Fiber (by passing "material-0", ..., "material-5" in the attach prop for each material), so I thought this would be worth highlighting in the documentation.

We may at some point get to a feature parity when it comes to the attach API but I'm not a fan of the array index access because it's somewhat limited: the array index can only be placed at the end of the attach string, what happens if there's some value but not an array, etc. So I find this approach safer from a consumer point of view and I agree that this example has been missing, thanks a lot! ❤


Branch delete email data class

Resolve #85

delete email data class of person
modify all affected classes to deference email class
modify sample JSON files to remove the email field

Codecov Report

Merging #86 (bcbd51d) into master (fd19b37) will decrease coverage by 0.61%.
The diff coverage is 85.71%.

@@             Coverage Diff              @@
##             master      #86      +/-   ##
============================================
- Coverage     70.32%   69.70%   -0.62%
+ Complexity      399      386      -13
============================================
  Files            72       71       -1
  Lines          1267     1228      -39
  Branches        129      122       -7
============================================
- Hits            891      856      -35
+ Misses          344      341       -3
+ Partials         32       31       -1

Impacted Files
Coverage Δ

...main/java/foodwhere/logic/commands/AddCommand.java
100.00% <ø> (ø)

...rc/main/java/foodwhere/logic/parser/CliSyntax.java
80.00% <ø> (-3.34%)
:arrow_down:

...java/foodwhere/logic/parser/EditCommandParser.java
92.30% <ø> (-0.55%)
:arrow_down:

...c/main/java/foodwhere/logic/parser/ParserUtil.java
96.77% <ø> (-0.45%)
:arrow_down:

...main/java/foodwhere/model/util/SampleDataUtil.java
20.00% <ø> (ø)

src/main/java/foodwhere/ui/ReviewCard.java
0.00% <ø> (ø)

src/main/java/foodwhere/ui/StallCard.java
0.00% <ø> (ø)

src/main/java/foodwhere/model/person/Person.java
97.29% <66.66%> (-0.33%)
:arrow_down:

...ain/java/foodwhere/logic/commands/EditCommand.java
96.72% <100.00%> (-0.30%)
:arrow_down:

.../java/foodwhere/logic/parser/AddCommandParser.java
100.00% <100.00%> (ø)

... and 1 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Meta lamp/lending pool/frontend/add wallet switcher

Sometimes if there is a validation error that's thrown from inside a wallet there is an unreadable message that fills the entire screen:


bazel: improve developer-local flow UX.

Build a recursive make cache in a parallel directory to where Bazel thinks the repository rule
outputs are. E.g. if Bazel think the deps are in ~/.cache/bazel/89676793239ac96d94294e6c7a44597f/external/envoy_deps,
the cache lives in ~/.cache/bazel/89676793239ac96d94294e6c7a44597f/external/envoy_deps_cache.
This allow us to avoid Bazel falsely clobbering all the make build directories everytime it thinks
there is a dependency change (e.g. a single recipe is modified). We then defer to make to figure
out when it's time to rebuild these deps. If something gets really messed up, bazel clean
--expunge still works with this cache.
Underlying issue tracked in https://github.com/bazelbuild/bazel/issues/2792.

Always output stuff after the build of external deps, to signal what's happened. Otherwise, it
appears mysterious to the user where all the time went as Bazel doesn't report progress.
Underlying issue tracked in https://github.com/bazelbuild/bazel/issues/1289.

Add a bazel fetch step to the documentation so that the mystery hang when Bazel first builds
the external deps is understandable.
Underlying issue tracked in https://github.com/bazelbuild/bazel/issues/1289.

At a high level this looks fine to me. @lizan can you take a look since you are actually likely to use this?


fix(curriculum): Convert blockquote elements to triple backtick syntax for Coding Interview Prep

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

PR Purpose: Converts blockquote elements to triple backtick syntax in the Description and Instructions sections of the Coding Interview Prep challenges.
Related to issue #35991

@ojeytonwilliams I believe I have resolved this issues you pointed out.

@RandellDawson Yep, LGTM now, thanks.

Looks like we are just waiting on #35912 to be fixed/merged which is waiting on #35825 to be reviewed/merged.  I will try to offer a review on #35825 tomorrow.  I am going to sleep now.

With #35912 being closed the potential conflicts went away.  Nice work, again!


Error during fastqc-1 step

Hi, I got the following error while trying to run the workflow using test data:
Traceback (most recent call last):
File "/usr/games/singularity", line 11, in
load_entry_point('Endgame-Singularity==1.0', 'gui_scripts', 'singularity')()
File "/usr/lib/python3/dist-packages/singularity/init.py", line 78, in main
i18n.set_language(force=True)
File "/usr/lib/python3/dist-packages/singularity/code/i18n.py", line 109, in set_language
gettext_language = gettext.translation(TEXTDOMAIN_PREFIX + 'messages', _get_main_localedir(), languages=[lang], fallback=True)
File "/usr/lib/python3/dist-packages/singularity/code/i18n.py", line 56, in _get_main_localedir
main_localedir = dirs.get_writable_file_in_dirs('locale', 'i18n')
File "/usr/lib/python3/dist-packages/singularity/code/dirs.py", line 220, in get_writable_file_in_dirs
write_dir = write_dirs[dir_name]
KeyError: 'i18n'

Hi @PHemarajata
Unfortunately, I don't know how to interpret this error message at the moment. I just tested out the repo via a fresh install following the directions on the README and had success. Did you follow the install steps as listed on the README? If not, what were the commands you tried for installing and running?

It looks like there's a conflict with 'singularity' on your machine. Unfortunately on Ubuntu and Debian, there's a package called 'singularity' that's actually a game. It conflicts with the 'singularity-container' package. Try uninstalling 'singularity' first, if that doesn't resolve it, then try reinstalling singularity-container.

Hi! I tried the method @jhphan suggested and it worked. Thank you so much!


splitting responses + references == messiness

@chrisrude something i've noticed with this is that with splitting responses on, every single split response replies to the same message, which can look a little messy. Off the top of my head there are two obvious solutions: either only having the first split part of the response reply to the request message (which i guess would make it unclear when the response ended some times) or having the response be in a single message (which is very humanlike but could be slow).
I think the second solution could be more elegant, and it could also be used to reuse the deprecated response streaming feature: instead of dumping the entire response at once, the bot would split it up as usual, but instead of sending them as different messages, it could edit the original message split response by split response (my impressions are that this would call the discord API far less times that the original text streaming implementation and work way more smoothly than the original implementation)

Originally posted by @rebek43 in https://github.com/chrisrude/oobabot/issues/31#issuecomment-1564488716

Playing around with this, it seems that having it just reply-mention the very first message in a chain works the best.  The reason is that the requests to oobabooga should be serialized anyway, so we will always finish off the first reply in its entirety before starting on an unsolicited reply.
Ironically, this is how things worked in the very first implementation. :)


Install - Newbee

Hi All,
Can someone please help me.
Im wanting to develop code on a product called SenseNet and this is a prerequisite, However I cant see how to install or what to do with it to get this product working.
Any ideas on how to get it installed?

Find the installer here: https://github.com/mikefourie/MSBuildExtensionPack/releases
Took me a minute as well


Error of fused_dense module of flash_attn

Hi author, I have compiled and installed fused_dense_lib successfully. But when I tried to run the finetuning code, I encountered this error: "RuntimeError: linear_act_forward failed." which is due to the line 291 in InternVideo2/single_modality/models/internvideo2.py. The complete error is as shown below:
Traceback (most recent call last):
File "", line 1, in
File "/nvme/miniconda3/envs/internvideo/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/nvme/miniconda3/envs/internvideo/lib/python3.8/site-packages/flash_attn/ops/fused_dense.py", line 457, in forward
out = fused_mlp_func(
File "/nvme/miniconda3/envs/internvideo/lib/python3.8/site-packages/flash_attn/ops/fused_dense.py", line 391, in fused_mlp_func
return FusedMLPFunc.apply(
File "/nvme/miniconda3/envs/internvideo/lib/python3.8/site-packages/torch/cuda/amp/autocast_mode.py", line 97, in decorate_fwd
return fwd(*args, **kwargs)
File "/nvme/miniconda3/envs/internvideo/lib/python3.8/site-packages/flash_attn/ops/fused_dense.py", line 257, in forward
output1, *rest = fused_dense_cuda.linear_act_forward(
RuntimeError: linear_act_forward failed.
Could you please help me to fix this? Thank you very much.

I have not met this problem. Maybe you can refer to this issue https://github.com/Dao-AILab/flash-attention/issues/289#issuecomment-1620944622.

I have not met this problem. Maybe you can refer to this issue Dao-AILab/flash-attention#289 (comment).

Thank you for your reply. I follow the above comment to not use fused_mlp with DeepSpeed. This can fix this error.


Invisible update cart button issue in case downloadable product added into cart.

Issue Reference
#6368
Description
Showing update cart button if a downloadable product added into cart with other product.
And hide in case only downloadable product exist into cart.

@papnoisanjeev
Not working, Please find the screenshot Here

@Sanjaybhattwebkul
Please check now.

@papnoisanjeev
Now, this is working fine. please find the screenshot Here

@Sanjaybhattwebkul,
Have you verified with all product types because I have seen quantity box check has been removed?

@devansh-webkul
Yes i have verified with all types of products, please find the screenshot Here

@devansh-webkul Yes i have verified with all types of products, please find the screenshot Here

For bundle, quantity box is false in the abstract type class.


Layout glitches on Android when keyboard is opening or closing.

There are short visual distortions on keyboard transitions. However Ionic View app does not have such issue, thus it is seems to be solvable. My device is Nexus 4, Android 5.1. However I noticed similar behaviour on other devices.
Link to the video: http://d.pr/v/16ErH
Test app : http://d.pr/f/V56v
Does anyone has a clue what is the reason for that?

Greetings @timuric!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Greetings @timuric!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.


maxAge and sameSite doesn't work in $cookie rules

Please answer the following questions for yourself before submitting an issue

[X] Filters were updated before reproducing an issue
[X] I checked the knowledge base and found no answer
[X] I checked to make sure that this issue has not already been filed

AdGuard version
7.18.0 nightly 1 (4744) (CL 1.14.60, DL 2.5.25 )
Browser version
Chrome 125
OS version
Windows 11
Issue Details
Steps to reproduce:

Add this rule:

$cookie=test;maxAge=30;sameSite=strict,domain=example.org

Navigate to - https://example.org/
Open browser console and run:

document.cookie = 'test=1'

Refresh website

Expected Behavior
Values for Expires / Max-Age and SameSite should be modified.
Screenshot

Actual Behavior
Values for Expires / Max-Age and SameSite are not modified.
Screenshots
No response
Additional Information
It works fine in with AdGuard extension, so I guess it should also works with apps.

@AdamWr Hello! CoreLibs can only patch Set-Cookie response headers and Cookie request headers, so this is by design.

Hello :)
Maybe I don't understand something or understand something incorrectly, but shouldn't it add a Set-Cookie to the Response Headers with value sameSite=strict and appropriate Expires / Max-Age value?
The same like it does when just $cookie=test is used?
Screenshot

If I add Set-Cookie with test=;sameSite=strict to Response Headers in devtools, then it's set correctly and it's visible in Application tab.
Screenshots

@AdamWr Sorry, I forgot about this issue :)
Your original test involves setting a cookie through a JS API, hence it doesn't work: there are no headers to modify.
The $cookie modifier must never add cookies -- only modify those that are already present in either the request's Cookie header or the response's Set-Cookie header and whose names match the string or the regex in the modifier's value.
It is weird that you're seemingly able to add Set-Cookie headers to a response with $cookie rules. I can't replicate that, but if it is indeed true, then maybe that is what needs to be fixed :)

Your original test involves setting a cookie through a JS API, hence it doesn't work: there are no headers to modify.

That's true, but the last step is to refresh website, and when I refresh website then I see Cookie: test=1 in request headers.
Screenshot

So if I understand correctly, it should be modified by the rule but it isn't.

@AdamWr Ah, I see. The dev tools show the request as it is being sent out by Chrome. To view the request as it arrives at the destination after being modified by AdGuard you'll have to use a MITM proxy or your own HTTP server and make sure that the traffic between it and the browser is filtered by AdGuard.

I didn't test it yet as you suggested, but if a cookie is modified by AdGuard then these changes shouldn't be visible in Application tab in devtools (after refreshing website)?
The same as it is when I use this rule ($cookie=test;maxAge=30;sameSite=strict,domain=example.org) in AdGuard extension?
Screenshot

To be honest, I don't understand why it cannot be done.
If you can remove cookie by adding Set-Cookie: test=; expires=Thu, 01 Jan 1970 00:00:00 GMT to Response Headers, then why it cannot be modified the same way by adding for example Set-Cookie: test=; Max-Age=5; sameSite=strict, what's the difference?

@AdamWr We can not add Set-Cookie for corresponding Cookie header for the following two reasons:

This cookie may belong to the upper domain, not the current domain
In some cases this will prolong Cookie lifetime, not reduce it

Okay, so I guess that it can be closed.


Send static pages through "mini" template while still utilizing main application layout?

Is there a way to use high_voltage to send the contents of each static page through one "mini" template? I want to use my base application layout, so I'm not sure changing the layout config option is the correct method. For example, rather than style each static page with markup that will be repeated across each static page, define one template that is rendered within the main application layout, and send the contents of each static page into that template?

It sounds like a custom layout would probably work best in your case here. Shared behavior between the layouts could potentially be encaspulated by extracting partials to be used in each layout.
You could also checkout Rails' support for nested layouts, though it's quite minimal. http://guides.rubyonrails.org/layouts_and_rendering.html#using-nested-layouts


stream info: rename the extended response flag and response flag

Commit Message: stream info: rename the extended response flag and response flag
Additional Description:
Further work of https://github.com/envoyproxy/envoy/pull/31719

Rename the ResponseFlag enum to CoreResponseFlag.
Rename the ExendedResponseFlag to ResponseFlag.
Add new test to ensure the legacyResponseFlags() method works as expected.
Minor update to the macro of registering new custom response flag. (short -> short_flag_string, long -> long_flag_string)

Risk Level: low. No new logic.
Testing: unit.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

/retest

/retest

cc @zuercher I think the core code change also require a LGTM from you. Could you take a look when you have free time? Thanks.


simple_barcode_scanner: ^0.1.6

please give me solution in android working fine but ios throughing this error
error :     Running pod install...
CocoaPods' output:
↳
Preparing
Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
  Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)

Finding Podfile changes
  A simple_barcode_scanner
  R barcode_scanner
  - Flutter
  - cometchat_calls_sdk
  - cometchat_calls_uikit
  - cometchat_chat_uikit
  - cometchat_sdk
  - cometchat_uikit_shared
  - flutter_native_splash
  - fluttertoast
  - image_picker_ios
  - package_info_plus
  - path_provider_foundation
  - permission_handler_apple
  - shared_preferences_foundation
  - url_launcher_ios
  - video_player_avfoundation
  - wakelock_plus
  - webview_flutter_wkwebview

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `cometchat_calls_sdk` from `.symlinks/plugins/cometchat_calls_sdk/ios`
-> Fetching podspec for `cometchat_calls_uikit` from `.symlinks/plugins/cometchat_calls_uikit/ios`
-> Fetching podspec for `cometchat_chat_uikit` from `.symlinks/plugins/cometchat_chat_uikit/ios`
-> Fetching podspec for `cometchat_sdk` from `.symlinks/plugins/cometchat_sdk/ios`
-> Fetching podspec for `cometchat_uikit_shared` from `.symlinks/plugins/cometchat_uikit_shared/ios`
-> Fetching podspec for `flutter_native_splash` from `.symlinks/plugins/flutter_native_splash/ios`
-> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios`
-> Fetching podspec for `image_picker_ios` from `.symlinks/plugins/image_picker_ios/ios`
-> Fetching podspec for `package_info_plus` from `.symlinks/plugins/package_info_plus/ios`
-> Fetching podspec for `path_provider_foundation` from `.symlinks/plugins/path_provider_foundation/darwin`
-> Fetching podspec for `permission_handler_apple` from `.symlinks/plugins/permission_handler_apple/ios`
-> Fetching podspec for `shared_preferences_foundation` from `.symlinks/plugins/shared_preferences_foundation/darwin`
-> Fetching podspec for `simple_barcode_scanner` from `.symlinks/plugins/simple_barcode_scanner/ios`
[!] No podspec found for `simple_barcode_scanner` in `.symlinks/plugins/simple_barcode_scanner/ios`

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/external_sources/path_source.rb:14:in `block in fetch'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:997:in `fetch_external_source'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:976:in `block (2 levels) in fetch_external_sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:975:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:975:in `block in fetch_external_sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:974:in `fetch_external_sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:422:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:162:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods:
↳
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin24/rbconfig.rb:21: warning: Insecure world writable dir /Users/krishnapadamaity/Documents/Flutterworkspace in PATH, mode 040777
Error running pod install
Error launching application on iPhone 16 Pro.

Issue has been fixed in ^0.1.7


CLOUD-47753 simple wasb fs implementation

@keyki
simple WASB filesystem without dash - can be useful for small test clusters and PoCs

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1858/


Add unit tests for system prompt messages

Cover such cases with system prompt with unit tests
https://github.com/epam/ai-dial-adapter-vertexai/issues/119

Based on this I see that adapter replaces system message with user message and concat them
It's a significant change and might lead to unexpected behaviour of LLM and degradated accuracy of model's output
I would suggest to review the approach

@Puzer The system instructions have been fully supported in https://github.com/epam/ai-dial-adapter-vertexai/pull/137
I am closing the issue as not relevant anymore.


When a PDF breaks to a new line, Markdown will also break to a new line.

When a PDF breaks to a new line, Markdown will also break to a new line. Is there any configuration to change this behavior? I want the text to be continuous.

Markdown is basically text, so it should not be a problem to remove multiple new lines

Thank you so much for providing such a great tool! @darkcheftar
You are right, it's not a tricky problem
I would greatly appreciate it if this feature could be built in ～
import re
import sys

def fix_markdown_linebreaks(input_file, output_file):
    with open(input_file, 'r', encoding='utf-8') as f:
        content = f.read()

    fixed_content = re.sub(r'([^\n])\n(?![\n\s#-])', r'\1 ', content)

    with open(output_file, 'w', encoding='utf-8') as f:
        f.write(fixed_content)

if __name__ == "__main__":
    if len(sys.argv) != 3:
        print("usage: python script.py <input_file> <output_file>")
        sys.exit(1)

    input_file = sys.argv[1]
    output_file = sys.argv[2]
    fix_markdown_linebreaks(input_file, output_file)
    print('done!')

Hey @Ryokki,
Thanks for @jzillmann he is the actual owner for the tool,
I just love to help.
And hopefully I am helpful.


Documentation mistake

in the documentation http://meanjs.org/docs/0.4.x/#troubleshooting it's saying
git checkout 0.4.0
which should be
git checkout v0.4.0

@devypt Do you want to submit a PR for this?

@codydaig  yes

@codydaig where is the docs repo?

@devypt It's the gh-pages branch of this repo.


AssertionError: Unsupported ONNX operator: StridedSlice

Just as this error shows

I just checked the implementation of this operator in tensorflow, the logic looks more complex than it should be.
I will try to replace this operator with constant, while since there are dozens of them (maybe one hundred), I don't know whether this would work. Another thing is, this operator contains lots of 0 dim output. As long as TASO support 0-dim, then shouldn't be a blocker

Actually 2 situations:

a dimension with size 0
dimension size == 0

These 2 are different.

It's just very hard to replace this op with constant, since there are hundreds of them and need to replace both shape and value. (If value only, the following operators would result in wrong shapes)
When I tried to dump the real value, there is a bug from tensorflow DebugString() which causes segmentation fault


Added basic webdriver tests

LGTM - does this include anything to auto-run on Travis or is that a separate PR?

Chatted offline - this should run 'npm test' on Travis for new PRs because we specify "node" as our env.


Using nedb's syntax with mongodb

I would like to use mongodb using the syntax that nedb has. Is there a way to do that?

Hello,
Thanks, much appreciated :) Unfortunately while NeDB copied MongoDB's syntax so that most developers would already know it, 100% upwards compatibility was not the goal. You can use an ODM such as Mongoose though to help you with a cleaner syntax. I used Mongoose in the past and it is good.


Navigation with Parameters

I'm submitting a ...

[x] feature request

Navigation with Parameters.

Resolved in https://github.com/RommelTJ/rn-food-app/pull/10


Proper dealing with Void statements

(Create a Unit type -- should be there) and map to it

was done https://github.com/hkuplg/fcore/blob/develop/compiler/BaseTransCFJava.hs#L401


Dependency Upgrade Needed: Conan < 1.60.0 does not work on new linux distributions

Describe the bug
The requirement that Conan be less than or equal to v1.59.0 makes basilisk incompatible with Fedora 38+ as described here, because Fedora 38 adopts GCC 13 and Conan doesn't support GCC 13 until v1.60.0.
I assume this will be true of other linux distributions going forward, so it's probably time to get serious about upgrading conan.
To reproduce
Steps to reproduce the behavior:

Install Fedora 38
sudo dnf update
Follow basilisk installation instructions. Will fail at python3 conanfile.py.

Expected behavior
Resulting error is described here.
Desktop (please complete the following information):

OS: Fedora (but will become true of other new distributions)
Version 38+
Python version 3.11.4

Additional context
Workaround for now is to downgrade GCC, but since older versions aren't available through dnf install, the older version has to be built from source.

A slightly easier workaround that I have found is to edit ~/.conan/settings.yml and add "13", "13.1", "13.2" to the list of supported gcc versions.


Cleanup fulfilled requests after approve

Issue:

https://github.com/airbnb/superset/issues/1500

Scenario:
Different entries in permission requests could have been fulfilled after one role approval, they should be automatically cleaned up after approval
Example:

user creates permission request on one table
user is granted Admin role
user's previous permission requests should be cleaned up

needs-review @bkyryliuk

PTAL @bkyryliuk

looks pretty neat, left couple comments. @vera-liu ^^

LGTM once tested on staging for different types of users.


Branch 0.7.1

Fixes issue with cloning of Resource parameters

Coverage remained the same at 99.492% when pulling 4d99aef7ebe4088ffa80da610db43f2a9a989793 on branch-0.7.1 into b605ebb1f1e7a28faa50b6ad421cc7b5990fcc07 on master.

Coverage remained the same at 99.492% when pulling 4d99aef7ebe4088ffa80da610db43f2a9a989793 on branch-0.7.1 into b605ebb1f1e7a28faa50b6ad421cc7b5990fcc07 on master.

Coverage remained the same at 99.492% when pulling 4d99aef7ebe4088ffa80da610db43f2a9a989793 on branch-0.7.1 into b605ebb1f1e7a28faa50b6ad421cc7b5990fcc07 on master.

Coverage remained the same at 99.492% when pulling 4d99aef7ebe4088ffa80da610db43f2a9a989793 on branch-0.7.1 into b605ebb1f1e7a28faa50b6ad421cc7b5990fcc07 on master.

Coverage remained the same at 99.492% when pulling 4d99aef7ebe4088ffa80da610db43f2a9a989793 on branch-0.7.1 into b605ebb1f1e7a28faa50b6ad421cc7b5990fcc07 on master.


Added option to use react-slick-styles to the readme

I created the react-slick-styles package to supplement react-slick. I understand why these styles files weren't included in this package but it seems wasteful to install the whole slick package just for the styles. Having a cut down package with just the styles gives people that option.

Sorry we can't add this at the moment.


No need to log user locations independently anymore

The user location info is updated when logging in or by UpdateUserLocationRequest, while both of them can be logged currently and we don't need independent logic to log user location.


fix(.travis.yml): declare env vars on one line

Without this change, Travis CI runs a separate job for each environment variable, which was unintended.

Note: This IS different than https://github.com/deis/registry-token-refresher/pull/10


Add month

I am interested in adding a add_months function. Does that sound like a reasonable thing to have in this library.

It would be, but I ran into some trouble trying to decide what it should do if the specific day doesn't exist in the new month.
For example, if you add one month to January 31, what should the result be? I think it depends on the application whether February 28 (or 29 in leap years) or March 1 is what you want.
I suppose we could also return an Result<Date, InvalidDayOfMonth>. That also has the nicety that for all valid values, adding and subtracting the same amount of months is guaranteed to return the original date.
We could even have three versions: one that returns a Result, one that rounds down and one that rounds up.

yeah. I think returning an error to cover those edge cases is the right thing to do. Then the users can decide how they want to handle those cases.

Right, implemented most of it on master now.
I also added InvalidDayOfMonth::next_valid() and InvalidDayOfMonth::prev_valid() to help deal with the edge cases.
That allows you to write date.add_months(15).unwrap_or_else(|e| e.next_valid()).
I think I still want to add an extension trait to allow Result<Date, InvalidDayOfMonth>::or_next_valid() and or_prev_valid().
Then you can just write date.add_months(15).or_next_valid().
I also probably want to add more tests in general before the next release.

This has been released as 0.2.0 :)


Used cached toolchain containers by default.

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[x] Ready to merge

Summary

In 2.0 CLEAN_TOOLCHAIN_CONTAINERS defaults to y unless QUICK_REBUILD_TOOLCHAIN=y is set. This means that most of the time when running make clean we will remove all the build containers associated with the current checkout (they are identified via the docker variable MARINER_BUILD_DIR which is included in each image).
The containers are tagged with a hash of the interesting input components (./container/toolchain-sha256sums ./container/toolchain_build_in_chroot.sh ./create_toolchain_in_container.sh). This means if a branch changes any of these files the previous containers will not be valid and the bootstrap will be re-run.
The bootstrap container is generally extremely stable, which means this build should be a very uncommon event. Unfortunately, with the current behavior of make clean these containers are discarded very easily (you can use make clean CLEAN_TOOLCHAIN_CONTAINERS=n, but this feels unnatural).
With his change, globally setting QUICK_REBUILD=y becomes a valid strategy for building (and maybe that can be set to on by default as well?). Prior to this using that flag would often result in several hours wasted rebuilding the bootstrap toolchain even if we could have downloaded all the toolchain rpms.
Now at least we will skip over the bootstrap quickly and the incremental toolchain can build very fast if all rpms are available in the repo.
Change Log

Default CLEAN_TOOLCHAIN_CONTAINERS=n

Does this affect the toolchain?

YES
Test Methodology

Local builds

Force rebuild: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=528368&view=results
No rebuild:     https://dev.azure.com/mariner-org/mariner/_build/results?buildId=527997&view=results

3.0 builds always regenerate raw toolchain, both builds seem ok though.


Cannot clone LFS repo

Gitea version (or commit ref): 1.7.1
Git version: 2.20.1 windows
Operating system: Windows Server 2012-R2, client Windows 10
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ X] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[ X] Not relevant

Log gist:

Description
I am struggling to get Gitea with LFS working in our environment.  I have a Windows Server 2012-R2 server "snttnsrtl01" and a Windows 10 client. Both have the same version  of Git and Git LFS installed.  I connect the client to the server over our corporate VPN. I login to the server with Remote Desktop and open snttnsrtl01:3000 with Chrome.  I login as the Gitea admin and create an organization called "MCD-CIM" and a team called "test". I create 2 users "fraines" and "rainwf" and add them to the team. I create a bare repository "test-lfs2" under the MCD-CIM organization and make it available to the "test" team.
First question: is any further initialization of the repository required at this point?
While still logged into the server, I then clone the test-lfs2 repository to a folder on the server.  I add a .gitattributes and a file called client1.txt containing the word "test". I commit and do a git push origin master.  It prompts me for a username and password. I supply the information for the fraines user account.  The push completes  and when I refresh the dashboard on the Gitea page, both files appear.
The .gitattributes file is as follows:
*.txt filter=lfs diff=lfs merge=lfs -text lockable

I then go to the client and remove all Windows Credentials that are associated with previous trials.                                                                                I then execute the following in a bash window. I am using http, because I am on a private network.
git clone http://snttnsrtl01:3000/MCD-CIM/test-lfs2.git

Here are the results:

Sat, Feb  9, 2019  7:31:31 AM
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 22 (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (22/22), done.
Downloading client1.txt (6 B)
Error downloading object: client1.txt (5891b5b): Smudge error: Error downloading client1.txt (5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03): LFS: Get http://localhost:3000/MCD-CIM/test-lfs2.git/info/lfs/objects/5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03: dial tcp [::1]:3000: connectex: No connection could be made because the target machine actively refused it.
Errors logged to C:\MCDean-Git-Projects\test-lfs2.git\lfs\logs\20190209T073201.5402165.log
Use git lfs logs last to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: client1.txt: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Sat, Feb  9, 2019  7:32:01 AM

Oddly, if I create, add, commit, and push another .txt file, it prompts me for username and password (I enter those for rainwf) and it works with no error.
I have captured the following on the server:

app.ini: gitea configuration for server
bareconfig: config for the test-lfs2 bare repo
cloneconfig: config for the test-lfs2 cloned repo
serverenv: output of git lfs env
logserver: gitea.log for the time period above.

I have captured the following on the client:

clientconfig: .git/config for the test-lfs2 repo
clientenv: output of git lfs env
clientlog: C:\MCDean-Git-Projects\test-lfs2.git\lfs\logs\20190209T073201.5402165.log

The files are in the attached "lfs-clone-issue.zip".
Hopefully, you can tell me what I have done wrong.  Thanks in advance for your help.
--
lfs-clone-issue.zip
--

The date clone date commands were separate commands at the bash prompt. Somehow, they were copied to the same line in the problem description.

I'm sorry you're having difficulty.
The original issue report was essentially unreadable due to formatting issues - I've tried to reformat it to make it a bit clearer.
If you look closely at the response from the git clone command you'll see it tells you what the problem is:

Error downloading object: client1.txt (5891b5b): Smudge error: Error downloading client1.txt (5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03): LFS: Get http://localhost:3000/MCD-CIM/test-lfs2.git/info/lfs/objects/5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03: dial tcp [::1]:3000: connectex: No connection could be made because the target machine actively refused it.

Looking closely at this line you'll see that your client is trying to get its LFS objects from:

http://localhost:3000/MCD-CIM/test-lfs2.git/info/lfs/objects/5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03

Instead of presumably your intended domain of snttnsrtl01 and if you look closely at the provided app.ini you will see that you are telling gitea that it should tell users to look for it on localhost:
[server]
SSH_DOMAIN       = localhost # <--
DOMAIN           = localhost # <--
HTTP_PORT        = 3000
ROOT_URL         = http://localhost:3000/ # <--
DISABLE_SSH      = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = D:/gitea/data/

You cannot have Gitea run on localhost and some other domain at the same time - unless you have some rewriting proxy. You probably want:
[server]
SSH_DOMAIN       = snttnsrtl01 # <--
DOMAIN           = snttnsrtl01 # <--
HTTP_PORT        = 3000
ROOT_URL         = http://snttnsrtl01:3000/ # <--
DISABLE_SSH      = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = D:/gitea/data/

PS you've posted your app.ini with its secrets in entirety, you should not use those secrets again.

Thank you so much. This fixed my problem. On a Saturday no less!
It is just a test installation.
It was not clear to me that the URLs in app.ini were a reference for the instance of Gitea running on the server or for the client connecting to the server.


Any way to increase get_max_int_value() on 32bit systems?

I do the following, and I receive this:
echo $hashids->get_max_int_value(); //2147483647

Is there any alternative means to increase the max int value on a 32bit system? I have fairly large numbers I need to decode and encode.

We don't have support for out-of-range int encoding/decoding yet across libraries (although it's planned). But for the meantime, you can simply split the large number and encode it in chunks (and do the reverse - merge upon decoding):
/* instead of encoding it this way: */
$hashids->encode(5183105597964288);

/* encode it in chunks: */
$hashids->encode(51831055, 97964288);

I appreciate the response and the great class you've created. I suppose I can work with that. Thank you.

Glad could help.


Issue with lein send-invites

Hi Guy,
i am not able to get this script to work, it seems the demo is having the same issue? , the cron job appears to fail: Ive attached a tail of the logs
2015-02-12T17:03:33.668221+00:00 app[scheduler.2811]: (Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.pom from central)
2015-02-12T17:03:34.902087+00:00 app[scheduler.2811]: (Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.pom from clojars)
2015-02-12T17:03:35.303735+00:00 app[scheduler.2811]: (Retrieving ring-mock/ring-mock/0.1.5/ring-mock-0.1.5.pom from clojars)
2015-02-12T17:03:35.631836+00:00 app[scheduler.2811]: (Retrieving pjstadig/humane-test-output/0.6.0/humane-test-output-0.6.0.pom from clojars)
2015-02-12T17:03:35.940197+00:00 app[scheduler.2811]: (Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar from central)
2015-02-12T17:03:36.140647+00:00 app[scheduler.2811]: (Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar from clojars)
2015-02-12T17:03:36.401683+00:00 app[scheduler.2811]: (Retrieving ring-mock/ring-mock/0.1.5/ring-mock-0.1.5.jar from clojars)
2015-02-12T17:03:36.399638+00:00 app[scheduler.2811]: (Retrieving pjstadig/humane-test-output/0.6.0/humane-test-output-0.6.0.jar from clojars)
2015-02-12T17:03:37.482056+00:00 app[scheduler.2811]: Picked up JAVA_TOOL_OPTIONS:  -Djava.rmi.server.useCodebaseOnly=true
2015-02-12T17:03:43.641065+00:00 app[scheduler.2811]: Failed!
2015-02-12T17:03:44.475614+00:00 heroku[scheduler.2811]: Process exited with status 1
2015-02-12T17:03:44.485690+00:00 heroku[scheduler.2811]: State changed from up to complete

I haven't pulled any of the updates into the demo app yet. Are you using the latest from the master branch?

yea

it seems work fine with g0v/invieyoself right now!

Guys I am with the same problem.
I cloned actual version from repository and deploy it in Heroku following README steps, the app is running ok, I can assign emails but logs show "Failed!" when try to send invites.
My tool versions are:
PhantomJS - 1.9.8
CasperJS    - 1.1.0-beta3
Any ideia about?
Thanks

@wenderjean DId you try the PR https://github.com/seabre/inviteyoself/pull/10? Maybe It will fix the problem, I guess.

@Gasol Thanks for sharing, I did not have seen this PR before. It works now.

This isn't working for me. It seems like the same issue.
←[32m2015-08-06T00:14:53.775988+00:00 heroku[scheduler.2682]:←[0m Starting process with command `lein send-invites`
←[32m2015-08-06T00:14:54.336012+00:00 heroku[scheduler.2682]:←[0m State changed from starting to up
←[32m2015-08-06T00:14:55.475287+00:00 app[scheduler.2682]:←[0m Picked up JAVA_TOOL_OPTIONS:  -Djava.rmi.server.useCodebaseOnly=true
←[32m2015-08-06T00:14:55.458258+00:00 app[scheduler.2682]:←[0m Add phantomjs/casperjs paths ...
←[32m2015-08-06T00:15:00.170053+00:00 app[scheduler.2682]:←[0m (Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.pom from central)
←[32m2015-08-06T00:15:01.394672+00:00 app[scheduler.2682]:←[0m (Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.pom from clojars)
←[32m2015-08-06T00:15:02.011888+00:00 app[scheduler.2682]:←[0m (Retrieving ring-mock/ring-mock/0.1.5/ring-mock-0.1.5.pom from clojars)
←[32m2015-08-06T00:15:02.361498+00:00 app[scheduler.2682]:←[0m (Retrieving pjstadig/humane-test-output/0.6.0/humane-test-output-0.6.0.pom from clojars)
←[32m2015-08-06T00:15:02.662621+00:00 app[scheduler.2682]:←[0m (Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar from central)
←[32m2015-08-06T00:15:02.857555+00:00 app[scheduler.2682]:←[0m (Retrieving ring-mock/ring-mock/0.1.5/ring-mock-0.1.5.jar from clojars)
←[32m2015-08-06T00:15:03.080294+00:00 app[scheduler.2682]:←[0m (Retrieving pjstadig/humane-test-output/0.6.0/humane-test-output-0.6.0.jar from clojars)
←[32m2015-08-06T00:15:03.081455+00:00 app[scheduler.2682]:←[0m (Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar from clojars)
←[32m2015-08-06T00:15:03.703508+00:00 app[scheduler.2682]:←[0m Picked up JAVA_TOOL_OPTIONS:  -Djava.rmi.server.useCodebaseOnly=true
←[32m2015-08-06T00:15:13.492002+00:00 app[scheduler.2682]:←[0m Failed!
←[32m2015-08-06T00:15:14.218022+00:00 heroku[scheduler.2682]:←[0m State changed from up to complete
←[32m2015-08-06T00:15:14.204404+00:00 heroku[scheduler.2682]:←[0m Process exited with status 1

Hey @jmoont I did just as described in #10 PR and works for me. Maybe you can try to pull our fork and test or see if has some changes between your version and ours.
https://github.com/RubyCastsBrasil/inviteyoself

@wenderjean still didn't work with the same error - how can I debug this?


"ValueError: incomplete format" on LogfmtFormatter

Hi,
I am trying to use LogfmtFormatter as such:
h = Handler()
h.setFormatter(LogfmtFormatter())

And getting following error:

--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/init.py", line 1025, in emit
msg = self.format(record)
File "/usr/lib/python3.7/logging/init.py", line 869, in format
return fmt.format(record)
File "/usr/lib/python3.7/site-packages/logfmt/formatter.py", line 27, in format
'at=%' % record.levelname,
ValueError: incomplete format
Call stack:
File "my.py", line 72, in
logger.info('Hello, World!')
Message: 'Hello, World!'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/init.py", line 1025, in emit
msg = self.format(record)
File "/usr/lib/python3.7/logging/init.py", line 869, in format
return fmt.format(record)
File "/usr/lib/python3.7/site-packages/logfmt/formatter.py", line 27, in format
'at=%' % record.levelname,
ValueError: incomplete format
Call stack:
File "my.py", line 73, in
logger.debug('Hello, World!')
Message: 'Hello, World!'
Arguments: ()

Looking at the code, is a %s missing?

Thanks for reporting this issue! I haven't maintained this project for many years. https://github.com/wlonk/logfmt-python took it over awhile ago and is probably better suited to addressing this bug.


Promises in Sails.js

I just started on Sails.js and besides associations the only other issue I've come up against that is a really pain is the "Pyramid of Doom" or "Callback Hell."
Is there any plan to integrate promises into Sails.js to avoid this?
I can imagine that a successful implementation of promises would create a very flat and delightful DSL.

Yay for Bluebird in Waterline!!

btw re pluggable promises, here's where that happens in WL2 if you're interested in contributing: https://github.com/mikermcneil/waterline2/blob/master/standalone/Deferred/Deferred.js#L58

Actually, what's the best way to implement Promises in Sails.JS v0.11.3 or v0.11.4?

return Model.findOne(pk).where(where).then(matchingRecord => {
leads to "a promise was created in a handler but was not returned from it"
How to solve?


add imageFormat prop to support jpeg or png

png is sharper on small docs like labels

Thanks for this @charleskoehl and sorry the delay. Could you include some images samples showing the difference, just to better understand why to customize this? Does affect the size as well?

@charleskoehl I think you have an error. You restrict the types to "pdf" and jpeg but in the other places you have "png"
https://github.com/ivmarcos/react-to-pdf/pull/43/commits/fe2919872b53741f1af0646a210c39797af85f80
https://github.com/ivmarcos/react-to-pdf/pull/43/commits/a84476a2d77af1907c10490965c415d7870085fe

Thanks for this! Closing due to the release of v1.0.1 supporting image format prop using the canvas attributes, please refer to the advanced options example in https://github.com/ivmarcos/react-to-pdf#usage.


Custom Variable 'Reference' Type Value is Incorrect

Discussed in https://github.com/Snow-Shell/servicenow-powershell/discussions/217

Originally posted by RichardMawdsley December  7, 2022
Hi There,
Been using the CustomVariable option on the Get-ServiceNowRecord function for some time and it's working great.  However, I'm unsure if I've found a bug or if it's just pulling the wrong information back, but what I'm getting is incorrect when the Type is 'Reference'.
$RITM = Get-ServiceNowRecord -ID $SNNumber -IncludeCustomVariable -New
$RITM.CustomVariable

Returns:
@{Value=ddf18f001b217700dfa575d6cc4bcb47; DisplayName=Location; Type=Reference}

When if I look in ServiceNow, the actual value is:
London - Main Office

Same is resulted without '-New' too.  Unsure if it's related to the -DisplayValue parameter or this was supposed to resolve this very problem, but seemingly adding it causes the .customvariable to be empty.
I assume that what it's pulling is the ID or something of that value, but I'm not a ServiceNow admin so unsure on that.  Thanks in advance.

Hi @RichardMawdsley.  I assume the value being returned is the sysid for 'London - Main Office' in the Location lookup/table.  If you can confirm, we can add this as an enhancement.  This is expected as reference lookups for the underlying value require dot sourcing, if possible, or another call to the referenced table.

Hi @gdbarron , yes had it confirmed that this is the sysid.  Much appreciated if this enhancement could be added!

@RichardMawdsley the update is in.  Would you mind testing?


Update javascript with dotNet changes

Replicate changes from

fix "since" prefix bug (#103)
fix bugs 0913 (#105)
fix a preproposition bug (#108)

@enzocanoo,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Bump haml version requirement in gemspec

haml versions below 5.1.1 will crash with rails 6.0.0 due to a missing Erubi constant.
See: https://github.com/haml/haml/issues/1011
background: rails_admin crashed for me because i had an old (but still accepted according to gemspec) haml version laying around when installing.

No, this does not mean that RalisAdmin is not compatible with haml < 5.1.1.
Library dependency should be broad as much as possible, and if users encounter a problem they can apply their own strategy to avoid versions with the problem.