fix: remove extra $ output of model transformer v2

Description of changes
This commit removes an extra $ that was being generated in two places by the model transformer v2.
Issue #, if available
Description of how you validated changes
Manual testing and unit testing
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

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

Codecov Report

Merging #7415 (eb182c9) into master (be441c9) will increase coverage by 0.00%.
The diff coverage is 64.28%.

@@           Coverage Diff           @@
##           master    #7415   +/-   ##
=======================================
  Coverage   52.74%   52.75%
=======================================
  Files         514      514
  Lines       25919    25916    -3
  Branches     5059     5056    -3
=======================================
  Hits        13672    13672
+ Misses      11280    11277    -3
  Partials      967      967

Impacted Files
Coverage Δ

...ider-awscloudformation/src/display-helpful-urls.js
16.90% <33.33%> (+0.35%)
:arrow_up:

...wscloudformation/utils/auth-sms-workflow-helper.ts
45.45% <80.00%> (+21.64%)
:arrow_up:

...r-utils/awscloudformation/utils/message-printer.ts
50.00% <100.00%> (-10.00%)
:arrow_down:

Continue to review full report at Codecov.

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


Added kubernetes deployment options

ops file for bootstrapping bosh
ops files for deploying an inner bosh
ops files for configuring custom ports
ops file for changing authentication to bearer token

@loewenstein mind adding a test similar to others in test.sh for an example and verification of vars.

lets also add basic test similar to what we have in test.sh. are some of these files related to deploying inner bosh as well? should they be in the kube repo since they are pretty specific to testing use case (i assume it's for testing)?

@loewenstein, bump. friendly reminder if you're still interested in this.

@dpb587-pivotal Thanks for the reminder. Will update the PR.

@dpb587-pivotal @cppforlife, finally updated the PR.
Ops files for the recent v6 release and addition to the test.sh.
I am all for merging this if you have no further complaints.


Split permission requests for Camera & Gallery

Hi @lizraeli, why did you close this PR? Was there a reason? I too think that this package needs to request specific permissions based on whether requesting to open the photo library or camera. Personally I only use it to ask users to pick a photo from their library, not camera, so I think this patch is useful.

I did have this error #563 and this changes  work for me !

@lizraeli - Can we please get this issue re-opened and merged? The issue seems like a bug, to be honest, and this will fix it.

@jacquesdev I've reopened the PR. I am happy to merge this once it gets reviewed.

I wonder why a 5k starred library would have this bug (or feature)?

Agreed this would be a good feature to have cc @Johan-dutoit and @janicduplessis

Please merge!

any solution? split permissions is need


Added Find Median From data Stream in c++

Hi ,I added code for Finding the median from data stream in c++.
question link- https://leetcode.com/problems/find-median-from-data-stream/description/

this is amazing @priyalj52
thanks for the contribution in my repo and please share in social media and tag me on twitter

this is amazing @priyalj52 thanks for the contribution in my repo and please share in social media and tag me on twitter

thank you .


Create push to server script

This has been added in the branch admin, and merged into the master branch.


[📑 Docs]: We need a roadmap!!

I see a large number of multidirectional activities, both in the issue and pull request parts. We need to understand what we want to change in the project first and focus on it.
We also need to determine the target architecture of the library, our style code, and understand whether we are ready to break the current api.
I will do this in early May, it is very difficult to maintain in its current form)

I created 2 milestones, before creating new functionality, we need to deal with them, otherwise we will get chaos and problems with further backward compatibility of versions
Let's do the decomposition of the milestones

@yurvon-screamo i would suggest we also look at tackling #192 & #200 relatively soon as they would be necessary to set a good foundation.
Also happy to contribute towards developing out the library.


Issue 35: refactored logging: replace zap with slog

Reference Issue: #35
What Changed?

created new logger using log/slog
replaced logger calls with associated calls
removed uber/zap library

Thank you very much for the PR. The general idea is good, but my thought was to actually ditch dependency injection of the logger, and create a singleton instead, that you could reach out from anywhere.

additionally, I don't see a way on how you manage the min log level to display in certain environments like we had with the zap logger.

closing in favour of https://github.com/Gigaxel/codesnap.sh/pull/39


prisma2 dev fails during migration of a simple MySQL database

Hi all,
I am trying to build a graphql api over a simple MySQL database (just 3 tables). But I get a failure during migration, and I do not know how to debug it.
A report id 621 has been generated by prisma2 and uploaded (somewhere).

Hi,
Can you please tell paste your model here?

Here it is:
model Entry {
id     Int    @id
e1     Int?
e10    Int?
e11    Int?
e12    Int?
e13    Int?
e14    Int?
e15    Int?
e16    Int?
e17    Int?
e18    Int?
e19    Int?
e2     Int?
e20    Int?
e21    Int?
e22    Int?
e23    Int?
e24    Int?
e25    Int?
e26    Int?
e27    Int?
e28    Int?
e29    Int?
e3     Int?
e30    Int?
e4     Int?
e5     Int?
e6     Int?
e7     Int?
e8     Int?
e9     Int?
form   String @unique
root1  Int?
root10 Int?
root11 Int?
root12 Int?
root13 Int?
root14 Int?
root15 Int?
root16 Int?
root17 Int?
root18 Int?
root19 Int?
root2  Int?
root20 Int?
root21 Int?
root22 Int?
root23 Int?
root24 Int?
root25 Int?
root26 Int?
root27 Int?
root28 Int?
root29 Int?
root3  Int?
root30 Int?
root4  Int?
root5  Int?
root6  Int?
root7  Int?
root8  Int?
root9  Int?
@@map("entry")
}
model INFO {
id         Int  @id
accent     Int?
case       Int?
degree     Int?
detail     Int?
egklish    Int?
gender     Int?
helper     Int?
inflection Int?
mood       Int?
number     Int?
person     Int?
pos        Int
pronoun    Int?
tense      Int?
voice      Int?
}
model INFOPART {
id          Int    @id
description String
label       String @unique
}

Hi,
I checked the error report. The error said, "Query was empty". This is a known bug which will be fixed in preview 17(which will get released today). https://github.com/prisma/prisma2/issues/902

But I am still unable to reproduce your error so please wait till preview 17 and test this out again then

@petasis Preview 17 was released. Can you please try this again now with that?

I am closing this one due to inactivity, if you still think that this is an issue, please comment here and tag me. Thank you 🙏


Separate the messaging lib from the monorepo

The natural follow-up to #2360.

[ ] Move JsonUtil into a standalone library
[ ] Modify monitoring/storage to use the external JsonUtil
[ ] Have another go at moving the messaging library out

Waiting for Travis to release scala-json 1.0.


Make TestCaseNestedMenus use NUnit tests

Prereqs:

[x] https://github.com/ppy/osu-framework/pull/1013
[x] https://github.com/ppy/osu-framework/pull/1018

needs some conflict resolution


Request go-redes v9 support

Request go-redes v9 support, please~

Please

Opened PR #45

v9 will be finished within this week.

@sejin-P I have not, my PR is more of base for v9. It needs lot of work.

Although you couldn't have done all of features, you did a great job. Thank you for your efforts. @dtsulik

go-redis v9 is still in rc version, mock already supports go-redis 9.0.0-rc.2.
But we still need to wait for the official version of go-redis v9.
Recently, I am considering compatibility with redis6 in the v9 version, it seems that it will take a while.
Sorry for neglecting mock-api some time ago...

@monkey92t just heads up that the repo has been moved https://github.com/redis/go-redis. I will tag v9.0.0 in a few days some testing.

@monkey92t just heads up that the repo has been moved https://github.com/redis/go-redis. I will tag v9.0.0 in a few days some testing.

😄I have updated the import of redismock

v9.0.1 releases


Add user's name dynamically in recommendations page

The recommendations page says "What would you like to say about John?"
It should be dynamic.

Thanks for spotting this, @israelmitolu We will work on it. 🎉


callback on content visible

Coverage remained the same at 79.268% when pulling 2c366c9f3c633e43111d990d06ff92931bc653e4 on qiaoyixuan:master into 0fb5a4552860a4c909daf40f22a64924cd1a039d on jasonslyvia:master.

Hey @qiaoyixuan , thanks for your contribution, but I'm sorry that there is no need to add such callback, see #65 .
Feel free to reopen this PR if you have other thoughts.

Hi @jasonslyvia ,I understand your mean in #65 ,but it is not aways a component need to load lazy

 		<LazyLoad height={200} offset={100} onContentVisible={onContentVisible}>

                             ...
                         {TableAndChart}
                 </LazyLoad>

@qiaoyixuan In this case I'd suggest you wrap your html tags into a separate component, which not only works well with <LazyLoad>, but also helps you to organize your code logically.


Improve Build Setup and OSS Contribution Setup

This PR does the following

Introduce build-logic, finally 🚀  (Initial idea came from @anselmoalexandre, and these guys helped bring it to life @wangerekaharun @odaridavid @michaelbukachi @nathanmkaya) - BIG SHOUTOUT 🔈
Introduce a PR template - act as a guideline for new PRs
Running linting/code formatting - no actual file changes
Added CODEOWNERS

This PR does the following

Introduce build-logic, finally 🚀  (Initial idea came from @anselmoalexandre, and these guys helped bring it to life @wangerekaharun @odaridavid @michaelbukachi @nathanmkaya) - BIG SHOUTOUT 🔈
Introduce a PR template - act as a guideline for new PRs
Running linting/code formatting - no actual file changes
Added CODEOWNERS

Some context
The custom plugins help us avoid repetitive code blocks, in simple words - for example, this sample code block
plugins {
    id("stax.android.library")
}

replaces this file
android {
    defaultConfig {
        minSdk = 21
        targetSdk = 33
        compileSdk = 33

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
}

 // Tests
androidTestImplementation(libs.junit.androidx)
androidTestImplementation(libs.espresso)

 // Tests
testImplementation(libs.bundles.test)


ruby22 2.2.5

Looks like your post_install change may have issues: http://bot.brew.sh/job/Homebrew Versions Pull Requests/1367/version=yosemite/testReport/junit/brew-test-bot/yosemite/install___ruby22_2_2_5_yosemite_bottle_tar_gz/

Merged as part of https://github.com/Homebrew/homebrew-versions/pull/1245. Commit credit there is still your's. Thank you once more @Jerzerak.


Correct outbound calculation

Before we were showing our ln balance as outbound, however for our LN balance we include things like the reserve so it doesn't look like you randomly lose money. This fixes so we actually correctly calculate outbound capacity
Related to #564

So this is just applied to the settings page? Currently it's double counting reserve, once in outbound and once in the new reserve balance?

Yeah just on the LN channels page


Fake PR to test sticky LGTM

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: hklai
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [hklai]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: hklai, ostromart
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [hklai]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: hklai, ostromart
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/cc @linsun @rshriram @louiscryan @geeknoid
This shows LGTM is now sticky. =)
Will be closing this PR soon.

@hklai: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
ed6a4cf96d92b49a04056f8fbfda290d47bbe817
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hklai: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
ed6a4cf96d92b49a04056f8fbfda290d47bbe817
link
/test istio-integ-k8s-tests

prow/e2e-mixer-no_auth.sh
ed6a4cf96d92b49a04056f8fbfda290d47bbe817
link
/test e2e-mixer-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

nice, thank you @hklai


Rename to generate-bom following OrCAD changes

See https://github.com/AllSpiceIO/py-allspice/pull/107. Once that PR is merged and a v3.1 of py-allspice is tagged, we can update this action to generate a BOM for both altium and orcad projects, and this project shouldn't be called generate-bom-altium.

Closes as this has been done.


Add files via upload

Would like to add token logo for my beloved community token.

Is this done right? I did one 7 hours ago but no changes, no logo added to token.


jsx / ES2015 syntax highlighting

Is there a way to add support for jsx or/and ES2015 syntax highlighting?

Slate uses rouge for syntax highlighting. This would have to added over there.

Yup! :+1: You'd need it to be added there.


Push MSTransferor monitoring data to MonIT

Impact of the new feature
WMCore MSTransferor
Is your feature request related to a problem? Please describe.
Besides some high level overview of the service, through the REST API, the only other way to see how the service is behaving is through its logs. So we need to have something better in place, such that anyone can have a better picture of how the service is behaving.
Describe the solution you'd like
We can probably use these metrics defined/discussed in this GH issue:
https://github.com/dmwm/WMCore/issues/9528
and feed them with StompAMQ into the MonIT infrastructure.
In addition to those metrics, it might be useful as well to push the storage quotas to grafana. We could:

push the DataOps quota information
push the amount of data assigned to those locations
keeping in mind that they will soon become wmagent/production Rucio account quota.

We should also discuss any other metrics that might make sense to monitor.
Describe alternatives you've considered
Additional context
We can use the same ES index already in use by the other central services, like ReqMgr2 and Global Workqueue.

Alan, for this and another PR #9651 you'll need to request new MONIT end-points. For that please open up CMSMONIT Jira ticket and we'll propagate it to the CERN MONIT team. You'll need to provide the following information though:

name of producer, e.g. mstransferor
name of the endpoint, e.g. /topic/cms.ms.transferor
example of JSON document to be inserted into MONIT
an estimate of data volume per day, e.g. 10k docs per day
Then you'll be asked to test your end-point, and send docs over there. For that, I suggest that you already create client who will do this job and inject data to given end-point (in fact it is better to have before we'll ask MONIT team). If you need an example of client code please follow example shown in our training document.

@vkuznet Valentin, I was planning to use the same topic/credentials as we use for ReqMgr2. The load isn't that big (I guess a few thousand documents every 5min or so)

The problem with the same topic is that you'll end up with different doc structures, one represents ReqMgr2 and another MStransferor/MSMonit. If the schema is the same it is ok, if not I suggest creating different topics. It is related to internal schema of ES used within the topic and therefore with the ability to look-up/plot the data.

I think having different doc structures is inevitable in this case. Reason being that we will be pushing different type of information, so different keys should be expected in those documents.
For instance, I'd like to push quota and usage for every single RSE/PNN. This will either be:
a) a single doc like:
[{'RSEName': 'SiteA', 'Quota': 123, 'Usage':1332}, {...etc}]
b) or multiple documents like
'RSEName': 'blah', 'Quota': 123
Then we have metrics for the component, and here I don't know if we can put all of them in the same document, or whether we will have to break them down.

how about creating a schema that will be suitable for both (multiple) use-cases, e.g. in one case some attributes can have "zero" values, i.e. be empty, in another they will be filled in. Doing this way you have consistent schema and only supply different information. As I wrote, MONIT team expect that within a single topic all docs are alike because they need to create a schema for ES.

and, keep in mind that injection simple docs, rather nested structures is preferable since it will allow to aggregated in ES more easily. You should view your task not from an injection point of view but rather how you'll look-up back your data (and if you want to aggregate them).

Valentin, I'm not sure I understood your suggestion. Are you saying that we could create a schema that would be the union of all possible keys that this service would send to MonIT. And those not needed in a given document, are just left out with a default value (0 or whatever)?
If so, yes, we do have an schema for documents posted, but we also have a bunch of unneeded information getting transferred through network, stored, and adding complexity to a future navigation through the documents.
Perhaps it's better to discuss if we have something more real. Here are 3 documents that I just came up with (that will be good candidates to be published):
For site/RSE quota (around 100 docs every 10min):
 {'agent_url': 'reqmgr2_ms_transferor',
  'type': 'rse_quota',
  'rse_name': 'BLAH',
  'bytes_quota': 1234,
  'bytes_used': 1234,
  'bytes_remaining': 1234,
  'rse_status': 'available | out-of-quota'},

an overview of the component (1 document every 10min):
 {'agent_url': 'reqmgr2_ms_transferor',
  'type': 'service_summary',
  'service_status': 'OK | Error',
  'microservice_version': '1.3.2.pre5',
  'wmcore_version': '1.3.2.pre5',
  'execution_time': 12.45,
  'success_request_transition': 10,
  'failed_request_transition': 10,
  'total_num_requests': 10,
  'total_num_campaigns': 155
},

an overview of the data transfers requested in the cycle (1 document every 10min):
 {'agent_url': 'reqmgr2_ms_transferor',
  'type': 'data_transfers',
  'num_datasets_subscribed': 155,
  'bytes_datasets_subscribed': 155,
  'num_blocks_subscribed': 155,
  'bytes_blocks_subscribed': 155,
},

As you can see, only agent_url and type would be in common. All the rest is specific to the type of the information/document that we want to post.
Please let us know your thought.

Alan, to give you more feedback I need to know more:

are you going to query these docs separately?
are you planning to aggregate data across these structures or only will look within set of docs of one structure?

If aggregation is not required across docs then it is better to keep them in separate collections/topics. While if you plan to aggregate across different structures then it is better to consult with MONIT team and ask their opinion.


feat: app-specific peer scoring integration

Motivation
Application-specific peer scoring had already been added in #1441, but needed to be connected to gossipsub to alter the scores used. Additionally, until we have confirmed full stability of the peer scoring mechanism, a number of peer ids are added to a configurable allowlist. Peer scores are private and relative to each node – no node will necessarily have the same peer score to every other node. This is an intentional behavior of gossipsub in order to ensure the mesh maintains a healthy balance.
Change Summary
This PR connects the scoring mechanism into the gossipsub peer score calculation. We additionally log when allowlisted peers would have otherwise been pruned by score, and set a maximum score cap for the application-specific scoring.
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[x] PR has a changeset
[x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.
[x] All commits have been signed

Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers

PR-Codex overview

The following files were skipped due to too many changes: apps/hubble/src/hubble.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

We should add the allowlisted peers to the other repo before deploying this change.

https://github.com/farcasterxyz/allowlist-mainnet/pull/10


configs are a mess

keys are duplicated in multiple places (like w&b config)

dataset config should be part of probing config


[docs] Add CSS variables documentation for Material UI

close #33417
Preview: https://deploy-preview-33958--material-ui.netlify.app/material-ui/experimental-api/theme-css-variables/overview/

The page structure follows the RFC
I think that the word CSS variables is too broad which refers to CSS rather than the feature that we implement.
What Material UI offers is related to the CSS variables generated from the theme, so I think using Theme CSS variables sounds better. (another option could be CSS Theme variables) cc @samuelsycamore

[x] I have followed (at least) the PR section of the contributing guide.

I think "CSS theme variables" (lowercase t) is a good term for this. 👍

Great job @siriwatknp! I'll follow up with suggestions for style and grammar but overall the content and structure look great.


Samsung Galaxy S9: camera image freezes

Summary:
The image captured from the camera is frozen after adding a new or editing an existing product.
Steps to reproduce:

Scan a new product
Add data
Save
OR:
Scan an existing product
Tap the pencil icon
Save

Expected behavior:
Continue to capture the live camera image.
Observed behavior:
A still image highly probable from when the edit icon was tapped. This is even the case after successfully taking pictures to fill the product details in between. Going back and tapping the barcode icon reactivates capturing the live image from the camera, without the need to close the app.
This does not happen when discarding changes.
Device and Android version:
Happens on a Samsung Galaxy S9 with stock Android 8.0.0
Does not happen on a Galaxy S6 with LineageOS 14.1

@SantosSi Can you still reproduce the bug ?

No.


Add debug logging to vMix client

Seen some hard-to-debug issues with the client getting stuck. Not been able to reproduce, so added some more logging for next time.

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

Project coverage is 22.27%. Comparing base (6b3b391) to head (5ee72d6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #229   +/-   ##
=======================================
  Coverage   22.27%   22.27%
=======================================
  Files          94       94
  Lines        3623     3623
  Branches      556      556
=======================================
  Hits          807      807
  Misses       2816     2816

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


[docker] Update CI to Python 3.7 and Ubuntu 18

This updates the docker image build to use Python 3.7 and Ubuntu 18 as discussed in #9703. The update is mostly straightforward except that the apt boost isn't built with 3.7 so we must now build it from source.
cc @leandron @areusch

Thanks for this @driazati, looking forward to these images :smile_cat:


Fix bug #89

Strings done. Please check if I did everything, as I looked at it quickly.

Perfect, thank you! Maybe I will do some additional changes, which requires to add some strings. But I´m still checking at the moment, if it is possible.


Change positional parameter for powershell.exe from -Command to -File

Previously powershell.exe treated unknown arguments as a command line to execute.  To align with POSIX so that things like shebang scripts work correctly, we are changing powershell.exe so that it treats unknown arguments (aka positional argument) as a file.  This means that powershell foo will now attempt to use foo as a PowerShell script whereas previously foo would be treated as a command to execute.  This doesn't affect existing usage of either -File nor -Command.  Fixed tests that didn't explicitly use -Command parameter.
Note that some of the changes below for trailing whitespace was due to VSCode setting.
Fix https://github.com/PowerShell/PowerShell/issues/1103
Fix https://github.com/PowerShell/PowerShell/issues/3959

@SteveL-MSFT You might find limiting that settting to just PowerShell files to be handy - especially for this repo e.g.:
    "[powershell]": {
        "files.trimTrailingWhitespace": true
    },

You probably should fix the resx file to only include your intended change - the other whitespace changes do have a visible effect in the binary, which is probably fine, but should be in a different commit.

In reply to: 308830296 [](ancestors = 308830296)

Isn't this a breaking change? It should be documented in the release notes.

@lzybkr any other feedback, would like to get this into beta.3 since it's a breaking change and get the feedback

:shipit:


Reproducible random programs

As far as I can see, there is no way to initialize the random number generators that underlie the rand(), randn() and randi() functions with a seed. It is possible to pass a seed as a parameter, but this means that repeated calls to these functions will always yield the same result.
What I would like to be able to so is to initialize the RNG once with a seed, which would make subsequent calls to any of the rand() functions deterministic.

If I understand the issue correctly, I think the following accomplishes what you need:
// seed the global random number generator
let _ = randi(seed: 1234)

for _ in 0..<10
{
    print(randi())
}

Each number printed to the screen is different, but I get the same set of 10 numbers every time the script is run. Any call to randi with a seed will seed the global generator (if threadSafe is not set) so it only needs to be passed in once. Does that resolve the issue?
In retrospect, it does seem a little weird to have the call to generate the random number also be the method for global seeding... Thoughts on what interface might be more intuitive?

Thanks! That does resolve the issue. A more explicit way to initialize the random number generator could be through another procedure, e.g. called "srand()" to initialize the RNG used by "rand()".

Cool! I like your idea of an explicit seed function. MATLAB has  the rng()
function for seeding the random number generator, so I'll add in something
analogous
On Feb 2, 2017 2:07 PM, "Adam Duracz"<EMAIL_ADDRESS>wrote:
Thanks! That does resolve the issue. A more explicit way to initialize the
random number generator could be through another procedure, e.g. called
"srand()" to initialize the RNG used by "rand()".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nifty-swift/Nifty/issues/2#issuecomment-277084071, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJSWUcq-s9tuHfkz6qMyF4W4zBxFsZRgks5rYkWPgaJpZM4L1mS4
.


The meeting ID that you supplied did not match any existing meetings

Hi all,
When I want to join into one meeting, it showed me the below message The meeting ID that you supplied did not match any existing meetings
What's goes on? I create a meeting and then join to it...?

@joisarjignesh @SamuelWei

Could you please post a code snippet to better understand the issue. Thanks.

@SamuelWei  is right @cod3r0k please add join code here for better understanding..

i think issue is solved so i close this issue.


Email functionality restoration

Issue:
We are currently skipping 5 tests that test our email validations. We don't want to skip them and we should figure out how the validation works and reenable those tests and the email functionality.
Fixes:
We were able to enable all tests, disabling the emailing of the slack channel when running the test suite. We also implemented a fix to the modal on the eventsList page as it was incorrectly including a JavaScript file out of order with the jQuery script so it didn't know what to do with it and crashed.
Tests:
Check that tests are running correctly and pass. Check the functionality of the email modal on the events list page. Click the invite button to open the modal and attempt to email students, sent emails should generate and populate the celts slack channel.

 Test email functionalities #976

 Test email functionalities #976

 Test email functionalities #976


[webview_flutter_wkwebview] Implementation of Objective-C WKWebView Host Apis

Implementation of a few of the Host API methods of WKWebView. I wanted to get early feedback on the method names and the organization of the code.
NOTE 2400 lines of the code is generated by pigeon, so it's not as large as it seems!
No version change:
Part of https://github.com/flutter/flutter/issues/93732 and doesn't make any changes to the current implementation.
No CHANGELOG change: Incremental unused code doesn't need to be noted in the CHANGELOG.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[ ] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[ ] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

webview_flutter iOS除了第一个url，在h5中跳转其他url无法触发onPageFinished方法遇到过没有


10/23 Publish

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/spring-framework/deploy-spring-boot-java-app-on-kubernetes.md
:white_check_mark:Succeeded
View (azure-java-stable) View (azure-java-preview)

docs-ref-conceptual/spring-framework/deploy-spring-boot-java-app-with-maven-plugin.md
:white_check_mark:Succeeded
View (azure-java-stable) View (azure-java-preview)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


move rag context correctness metrics tests to test_metrics.py

Related: https://github.com/IBM/unitxt/issues/1132

I think this test should be at the preparation card without the if __name__ == "__main__": so it will work every time someone import this file. The difference is that here its an activation of existing class (MetricPipline and its inner metric) . This will be tested that way every preparation test for every PR.

hmm... for context_correctness we just did the same transition here: https://github.com/IBM/unitxt/pull/1092 (you advised it).. and its the same kind of tests (MetricPipeline over existing metrics)
Also, if you look at https://github.com/IBM/unitxt/blame/main/prepare/metrics/rag_answer_correctness.py#L63, @eladven explicitly added the if name == "main": statement 3 weeks ago (i think cause this metrics use models)

@elronbandel @dafnapension @yoavkatz
So, what should i do with this PR? (close it?)
Generally, where should tests that involve models be?

There are two issues here. (1) Where to place the tests (2) when we run the tests
The rule is that testing python metric classes should be done in test_metrics, while checking catalog assets should be done at the prepare file when the catalog assets are added.  Since in your case, you are testing assets, it should be in the prepare file.
The second point is that we can not afford to run tests that require large model loading  on each PR.  This is because it has to download large models to a new VM on each PR.  This is why long tests are executed only with the  if __name__ == "__main__": condition. So they are executed only if explicitly run.
@elronbandel - how do you suggest to avoid this and still keep reasonable runtimes?

Thanks @yoavkatz . This PR tests with a model, so i will close it (and we keep the test in the prepare script, under the if __name__ == "__main__": condition).
A question about another test please:
The test_context_correctness test is in test_metrics.py. It tests rag context correctness metrics, which are MetricPipeline objects.
Is this considered testing catalog assets? Should i move it to rag_context_correctness.py?
Generally, tests in test_metrics.py and tests placed in the prepare cards (without the if __name__ == "__main__": condition) are both executed with each PR, right?


Slider load issue

Clear and concise description of the problem
when site load and then slide was first not proper and last slider has been proper
Suggested solution
Get solution
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

[X] I'm willing to open a PR

Your issue is closed because it is not filled correctly. Before you open an issue please review the contributing guideline.
Please fill the issue template correctly and:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with isssue

It will save a lot of time for other contributors to check your issue and fix it.


quic: loosen transport socket factory downcast type

Commit Message: change EnvoyQuicClientSession to downcast transport socket factory to QuicTransportSocketFactoryBase instead of QuicClientTransportSocketFactory.
Additional Description: this will enable the usage of other upstream transport socket extensions for QUIC.
Risk Level: low
Testing: existing test passed
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

/assign @RyanTheOptimist


why does the kubernetes yaml now have modprobe zfs in it?

As an init container?
require_zfs.sh is supposed to do this work.
Kai says this was possibly added as an attempt to fix a problem that was later fixed by something else, and not removed. So it's potentially cruft.

This isn't there any more


Fix compile error in Windows-MSVC 2015

Description
(I try to compile in Windows-MSVC 2015, which seems working well after fixing some minor issues)
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] Changes are complete (i.e. I finished coding on this PR)
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

is fixed in https://github.com/apache/incubator-mxnet/pull/10629

Seems that this is no longer relevant. @dongeliu if this is still an issue, feel free to ping me to reopen, or open another pull request.


fix code blocks in markdown

Closing in favor of https://github.com/GoogleContainerTools/kpt-functions-catalog/pull/376


removed copy trait from Felt

i opened the PR as suggested. you can see the approach i took in fixing this issue: https://github.com/0xSpaceShard/starknet-devnet-rs/issues/342

here i am currently trying to fix this error:
error[E0271]: type mismatch resolving <Iter<'_, Felt> as IntoIterator>::Item == Felt
--> crates/starknet-devnet-types/src/rpc/transactions.rs:693:41
|
693 |                 calldata_to_hash.extend(v1.constructor_calldata.iter());
|                                  ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected Felt, found &Felt
|                                  |
|                                  required by a bound introduced by this call
|
my first approach in fixing this error was to do this:
let mut calldata_to_hash = vec![&v1.class_hash, &v1.contract_address_salt];
now, this fixes this particular error but at the sam time, it generates more errors across different crates. here's an example:
error[E0507]: cannot move out of v3.common.version which is behind a shared reference
--> crates/starknet-devnet-types/src/rpc/transactions.rs:880:21
|
880 |                     v3.common.version,
|                     ^^^^^^^^^^^^^^^^^ move occurs because v3.common.version has type Felt, which does not implement the Copy trait
now, what do you suggest

i have tried a copy of metthods, that was about a week ago.
honestly, I cant remember everything I tried. but, I know the one I mentioned was one of the best approach I could come up with.
also, another way I tried was to create a reference through each crate since Felt doesn't implement a copy trait. which led me to creating a lifetime for each of the reference, it was too complemented. oh, it fixed most of the errors but at the end, it was going to increase the compile time and it led to one or two errors i couldn't fix.
how would you fix this?

When you remove Copy, it means you'll have to add more .clone()

okay, I would do that

IMO solving this issue will require bigger refactoring, either use references or move the variables where needed. Mainly depends on the context of the caller


move cmdstanr to suggests

Should do the following:

Move cmdstanr to Suggests.
Add a standard check using requireNamespace() in functions calling cmdstanr.
Add an R CMD check that skips installing cmdstanr to ensure the errors work as expected, i.e., R CMD check will not fail if the package is not present.

I don't really think cmdstanr can be a Suggests given how the package works at present. It's integral to the package functionality.

That's right, @dylanhmorris, but this is necessary if the package ever makes it to CRAN. EpiNow2 has a similar theme: depends on cmdstanr but is a Suggests dependency.

@seabbs can correct me, but I believe EpiNow2 can fit models with rstan (which is on CRAN, and is under Imports:) without the need for cmdstanr to be installed.

Yes in EpiNow2 it is a true suggests. cmdstanr being core to epinowcast is why its not on CRAN. That being said maybe the CRAN gods would be okay with this (but I haven't tried).

Okay to close as won't do for now @kaitejohnson?


Add Vue play example like storybook-addon-jsx

Based on the activity I'd say storybook is a better long-term solution than vue-play, but without example source storybook does not fulfil the basic needs. Is anyone working on this?

Have you seen this:
https://github.com/storybooks/storybook/tree/release/3.3/examples/vue-kitchen-sink
Or this:
https://github.com/ndelangen/storybook-vue-example
Or are you looking for an example using JSX? I haven't seen it yet!

I'm working with Vue and noted that the JSX storybook plugin shows the markup/jsx required to create the story.
vue-play also has this feature.
However, unless my freshly installed/tested version of Storybook is broken, I do not see the markup/vue required to create the story.

Unfortunately, we can not support JSX for Vue Components, due to Storybook is based on React architecture. 😞
when we use babel-preset-vue in Storybook, occure conflicting.

sorry, never mind.
We can support JSX syntax for Storybook of Vue.

Can you show Vue syntax?

You can check it at here

close (merged #1993)

Awesome @kazupon !!!


Update protobuf to v21.7 (security issue)

There is a security issue in the currently used protobuf version (v21.5). Would be cool to update to ~v21.6~ v21.7

Fixed by #154


How can i run this on local serve?

i cloned this repo . how can i start the server please help me out

Hello. This is a module that you can use inside a server. You will need your own server. NPM install the package and add your keys to start working with the api. Or you can use it directly without a server in Node js.

i done this one in my node app
npm install surveymonkey
and i pasted these lines in my controller
var SurveyMonkeyAPI = require('surveymonkey').SurveyMonkeyAPI;
var apiKey = 'Your SurveyMonkey API Key';var accessToken = 'Your
SurveyMonkey App Access Token';
try {
var api = new SurveyMonkeyAPI(apiKey, accessToken, { version :
'v2', secure : false });
} catch (error) {
console.log(error.message);
}
api.getSurveyList({ title: 'some_title', page_size: 25 }, function
(error, data) {
if (error)
console.log(error.message);
else
console.log(JSON.stringify(data)); // Do something with your data!
});
where can i go and get
apiKey
accessToken
On Wed, Dec 28, 2016 at 2:07 AM, wyattbenno777<EMAIL_ADDRESS>wrote:

Hello. This is a module that you can use inside a server. You will need
your own server. NPM install the package and add your keys to start working
with the api. Or you can use it directly without a server in Node js.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Datahero/node-surveymonkey/issues/7#issuecomment-269379494,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AK03bSyoIy3XZZbG3wzzmnr4qj-fxOMaks5rMXccgaJpZM4LVkap
.

--
thanks and regards,
R.Mohanraj
7760342142

Hey @useralive003 ,
You can create an account on SurveyMonkey and look into their api for where the keys are.
https://developer.surveymonkey.com/
We are not a learning service. Please post more general questions about programming onto stackoverflow.


$visitor = Tracker::currentSession(); Doesn't work.

I installed everything, have a working database for the tracker but when I type:
$visitor = Tracker::currentSession();
I get an error: "Non-static method PragmaRX\Tracker\Tracker::currentSession() should not be called statically"
Does anybody know a solution?

I figured it out:
use PragmaRX\Tracker\Vendor\Laravel\Facade as tracker;

use Tracker;
should also do when the Facade is registered in config/app.php (it may even be discovered but didn't check that)


Only create issues if new files have been added and push to postman

@gcatanese Merging this. Starting now we're auto pushing to postman (if all goes well)


view document - show original table format

The view document page, show the extracted data in the original document format.
This can be one of the tabs on this page.
When you just uploaded the document, it is easy to compare the document with this view. Hence this view is important.

This as a functionality is released. Individual views pending. Will create separate issues for the same.


Remove minor python version in entry point.

Remove minor python version in entry point (setup.py) to remove wrong python version with python wheels (#146)

Merged in: https://github.com/jonathanslenders/ptpython/commit/16e4e3155733ad8c90312414cc975315ad8566d3
Thanks!


Make sure the default config file name is consistent

According to https://github.com/Argelbargel/vault-raft-snapshot-agent/blob/c7e6af1e4a0df979caef7a3b9a7043de70132773/cmd/vault-raft-snapshot-agent/main.go#L57
we are looking for a file named snapshots (plural).
This PR updates the relevant docs to maintain consistency, as snapshot (singular) is mentioned several times and can lead to confusion.

Hi @ruizink, thank you for your contribution!


Implement TypeMapper to improve duplication code

https://github.com/mono/Embeddinator-4000/issues/369

Build and tests passed.

Working on unit tests now.

Build and tests passed.

Filed an issue so we can punt on unit tests to make sure this gets in this week - https://github.com/mono/Embeddinator-4000/issues/381

Build and tests passed.


gtksourceview5: 5.0.0 -> 5.2.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for gtksourceview5 is: "Source code editing widget for GTK"
meta.homepage for gtksourceview5 is: "https://wiki.gnome.org/Projects/GtkSourceView"
meta.changelog for gtksourceview5 is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 5.2.0 with grep in /nix/store/afxkszkvc9nxkx4r42yagyf5q9p5gdsl-gtksourceview-5.2.0

found 5.2.0 in filename of file in /nix/store/afxkszkvc9nxkx4r42yagyf5q9p5gdsl-gtksourceview-5.2.0

directory tree listing: https://gist.github.com/0276b47e8ffa112fc4e4957036a82ffa

du listing: https://gist.github.com/947e01513acb8fb9a076ceaa5fe5e370

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
gtksourceview5

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/afxkszkvc9nxkx4r42yagyf5q9p5gdsl-gtksourceview-5.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gtksourceview5 https://github.com/r-ryantm/nixpkgs/archive/07ced6882b9c7e3be50ebd2e41d59167b70a9381.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/afxkszkvc9nxkx4r42yagyf5q9p5gdsl-gtksourceview-5.2.0
ls -la /nix/store/afxkszkvc9nxkx4r42yagyf5q9p5gdsl-gtksourceview-5.2.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

gtksourceview5

Maintainer pings
cc @hedning @jtojnar @dasj19 @maxeaubrey for testing.

Duplicate of #139144


formulas in Sums and means section of P01-C03-linear-algebra.ipynb are ill formatted

Currently:
A related quantity to the sum is the mean, also commonly called the average. We calculate the mean by dividing the sum by the total number of elements. With mathematical notation, we could write the average over a vector ${\boldsymbol{u}$ as \frac{1}{d} \sum_{i=1}^{d} ui$ and the average over a matrix $A$ as  $\frac{1}{n \cdot m} \sum{i=1}^{m} \sum{j=1}^{n} a{i,j}$. In code, we could just call nd.mean() tensors of arbitrary shape:

I don't see the bug. It appears to look wrote in my notebook and on .io. am I missing smtg?

I see the same rendering problem as @srochel. Here is how the page renders on Chrome, Safari and Firefox for me:

@zackchase I think the dollar and curly-braces do not seem to have matching begin and end occurrences.
May be extra { in =>  ${\boldsymbol
Missing $ at the start of =>  \frac{1}{d} \sum_{i=1}^{d} u_i$
"source": [
"A related quantity to the sum is the mean, also commonly called the average. We calculate the mean by dividing the sum by the total number of elements. With mathematical notation, we could write the average over a vector ${\boldsymbol{u}$ as \frac{1}{d} \sum_{i=1}^{d} u_i$ and the average over a matrix $A$ as  $\frac{1}{n \cdot m} \sum_{i=1}^{m} \sum_{j=1}^{n} a_{i,j}$. In code, we could just call nd.mean() tensors of arbitrary shape:"


Checkbox not rendered correctly when used with the numbered list

Is the bug present when using the default Obsidian theme?
No
Is the bug present when snippets and plugins are disabled?
Yes
Minimal theme version
6.0.4
Describe the bug
Small alignment issue with check boxes when used with a numbered list.
Does not seem affect the default theme, only minimal.
Default theme

Minimal

Debug info
SYSTEM INFO:
Obsidian version: v0.16.2
Installer version: v0.14.6
Operating system: Windows 10 Enterprise 10.0.19044
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: Minimal
Snippets enabled: 4
Restricted mode: off

Seems like a duplicate of #377


Is pht going to be revived?

Hello, I am mainly asking as we are a bit in a php.net documentation conundrum.
One of our QA scripts is failing as the extension does not have a membership tag in book.xml, this tag is used to generate the following page https://www.php.net/manual/en/extensions.membership.php.
Adding the <?phpdoc extension-membership="pecl" ?> seem rather unwise as the extension is not available on PECL.
As the extension seems to only works on PHP 7.2 and be unmaintained our plan is to remove the docs from the php.net website.
This mainly serves as a notice.
Best regards,

Thanks for the heads-up. Given my lack of free time right now, I don't plan on working on this project in the near future. If/when I do revisit the project, then I can look to get it added back to the docs. Thanks!


Jamming/Processing RX data - relative to the start of frame.

In my world Frame XX starts with the first bit of the frame, but when we're receiving the (same) data we can't process it until the end of the frame - just before the sync word.

So in-order the Jam correctly we need to automatically increase the Frame number, and apply to the TX engine.
Most of the time we would want to increase by two, as we're likely before the end of the frame. However there is a chance that we're between end of frame and start of next. We'll have to look at the timing of these points (relative to CPU clock) to see if we increase by one or two.
If we're in the 'Danger Zone', then perhaps we should just defer the Jam for another Frame/time.

We also should use the same logic to correct the 'RX Monitor' display.

Also, if we're too close to the star of the next frame, there is a chance that the FIFOs will not relay the data to PIO engine fast enough - missing the correct moment to sync.

Was able to get interrupts working, so now have some reference data on start of frames - both for TX, and RX (decoding itself).
now                         tx_tick   rx_tick
884500784 RX: 00:00:00:00   884504768 884497521
884511062 RX: 00:00:00:00   884537955 884537416
884549569 RX: 00:00:00:00   884571273 884570800
884578791 RX: 00:00:00:01   884571273 884570800
884583281 RX: 00:00:00:01   884604597 884604126
884612167 RX: 00:00:00:02   884604597 884604126
884616559 RX: 00:00:00:02   884637936 884637465
884645462 RX: 00:00:00:03   884637936 884637465
884649968 RX: 00:00:00:03   884671255 884670784
884678755 RX: 00:00:00:04   884671255 884670784
884683141 RX: 00:00:00:04   884704606 884704131
884708144 RX: 00:00:00:05   884704606 884704131
884716381 RX: 00:00:00:05   884737944 884737467
884745440 RX: 00:00:00:06   884737944 884737467
884749889 RX: 00:00:00:06   884771266 884770802
884778875 RX: 00:00:00:07   884771266 884770802

Oh boy, Open-Source is awesome.... I can use ltcdump and Audacity to do the heavy lifting here. Record a section with Left/Right being TX/RX LTC data.
Process with:
$ ~/ltc-tools-github/ltcdump -a -c 2 jam.wav  > jam_rx_label.txt

And open in Audacity.

For the curious, without fixing anything, we have data 'off by one' frame and a delta in timing of 0.000997s.
$ grep "00:00:13:07" *_label*
jam_rx_label.txt:10.001338	10.034649	00:00:13:07
jam_tx_start_muted_labels.txt:10.035646	10.068957	00:00:13:07

Something is not making sense.
The 'Sync' is supposed to be triggered from IRQ into 'sync_and_read' which immediate sets the Output Pin (Pin 21) and this feeds in to the Trigger, which in turn lets all the TX machines run from their holding point.
The IRQ is from 'decode_dmc', and is set immediately after the input pin goes high/low at the start of the bit cycle (before it even knows what value the bit will be).
There is no way that this process is taking 0.000997s, which is around 38 cycles... we are clocking at 16x bit clock, so about 2.3-ish bits. And indeed that delay seems to match the observed signals.

Is this another issue, perhaps with FIFO data not being auto-pulled, or with microPython being late to deliver the data into the FIFO?

I think that I found the issue here. Dispite what it says in the RP2040 datasheet, adding a delay to the IRQ(clear, 5) affects how/when the code waiting on a IRQ(block, 5) will trigger.
If I do the delay on a NOP after the IRQ it runs sooner.
def decode_dmc():
    label("initial_high")
    wait(1, pin, 0)
    irq(clear, 5)
    nop()[9]        # trigger sync engine, and wait til 3/4s mark

Without NOP:

With NOP:

This has been implement in HEAD, and I've also spend up the RX code to run at 32x bit clock.
Closing.


Is it possible to pass the dataset to a run without passing it as an argument?

Hey,
in the docs you show how to pass a dataset as a mount or download by adding it to the arguments, which get passed to the training script, see below. Is it possible to pass it to a job in another way, so it does not appear in the arguments? Reason is, that I am using hydra.cc to configure my training script, and it can not parse the argument and throws an error. It expects arguments like that argument_name=argument.
I expected that the ScriptRunConfig Class has a parameter dataset where I can pass in the dataset consumption config.
I know that it is also possible to access and download the dataset in the training script, but I want to separate my training script from the Azure ML Platform so I want to use the ScriptRunConfig and add the dataset there.
from azureml.core import ScriptRunConfig

src = ScriptRunConfig(source_directory=script_folder,
                      script='train_titanic.py',
                      # pass dataset as an input with friendly name 'titanic'
                      arguments=['--input-data', titanic_ds.as_named_input('titanic')],
                      compute_target=compute_target,
                      environment=myenv)

# Submit the run configuration for your training run
run = experiment.submit(src)
run.wait_for_completion(show_output=True)

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

ID: f10520ed-79e8-dd46-b980-a7abdf27748a
Version Independent ID: e6b5c5a2-4055-5bbf-73dd-d71814b7e912
Content: Train with azureml-datasets - Azure Machine Learning
Content Source: articles/machine-learning/how-to-train-with-datasets.md
Service: machine-learning
Sub-service: core
GitHub Login: @MayMSFT
Microsoft Alias: sihhu

Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @FabianHertwig
Here is how you can input data without using arguments:
from azureml.core import ScriptRunConfig

input_data=titanic_ds.as_named_input('input_data').as_mount()
src = ScriptRunConfig(source_directory=script_folder,
                      script='train_titanic.py',
                      compute_target=compute_target)
src.run_config.data = {input_data.name: input_data }
# Submit the run configuration for your training run
run = experiment.submit(src)
run.wait_for_completion(show_output=True)

In your script, you can get the mounted path via environment variable, which is the value you specified in as_named_input. For the sample code above, the environment variable will be input_data.

Awesome, that worked. Thank you!


How can I turn off fix-first-tab-length?

https://github.com/sindresorhus/refined-github/blob/main/source/features/fix-first-tab-length.css
Looks like it can't be turned off

https://github.com/sindresorhus/refined-github/issues/4289#issuecomment-828213252

What for? Why do you want to disable a GitHub bugfix?


Evaluate compression lib for http responses

https://github.com/klauspost/compress is a drop in replacement for the Go standard library compression library which is supposed to perform better.
We should try this library and use it if the performance impact is worthwhile.

Another candidate for JSON handling perfomance improvement:
https://github.com/segmentio/encoding

@antekresic do you think this is still worthwhile? Specifically the compression. We are now using github.com/NYTimes/gziphandler
For json we know manually compile it, which is faster than any general-purpose encoder see marshalVectorResponse and other functions in marshal.go

@antekresic can this be closed?

closing this after discussion with Ante, as it's no more required.


Create commands.txt

Add commands for:

python manage.py
redis
celery
flower
postgresql

Created as md file here: https://github.com/ceydaduzgec/SWE573/blob/master/sole_project/commands.md


Compile with selective register on meta file

I want to apply the selective registration feature on my model to decrease the lib size. However, I need to apply it on a meta file saved via saver rather than a frozen pb file as shown in many posts I have found. When I try to run
bazel-bin/tensorflow/python/tools/print_selective_registration_header --graphs=model_test.ckpt-390760.meta
it comes to the error
[libprotobuf ERROR external/protobuf/src/google/protobuf/wire_format_lite.cc:621] String field 'tensorflow.NodeDef.op' contains invalid UTF-8 data when parsing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
I tried to add --proto_fileformat=textproto but another error comes up:
raise self.ParseError('Expected identifier or number.') google.protobuf.text_format.ParseError: 2:1 : Expected identifier or number.
Is it even possible to do this at all? The ultimate goal of compiling this lib is to restore a pretrained model and incrementally train it on Android.

Maybe try tf.train.write_graph(sess.graph_def, "/tmp/load", "test.pb") and load the pb file?

Thanks @bignamehyp it works

Thanks @bignamehyp it worked.


Update README.md

Description
Add description...
Checklist

[ ] Description added to PR
[ ] PR is linked to issue
[ ] Solution can start locally

Codecov Report

Merging #31 (f664bb8) into main (2396c45) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #31   +/-   ##
=======================================
  Coverage   98.98%   98.98%
=======================================
  Files          21       21
  Lines         197      197
=======================================
  Hits          195      195
  Misses          2        2

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


infra for algebraic simplification and simplifications for Add and Mu…

…ltiply (including broadcast consts)

@diyessi @mbrookhart ping...


add copy-link functionality to parameter names.

As discussed on slack.

Example markup:
https://github.com/nf-core/nf-co.re/blob/4a458011ccbd1b7a6f5d11713f37b698b7abbfb6/public_html/stats.php#L235

Yup. Thats perfect 👍

The correct elements are actually already in place (thanks to add_ids_to_headers()), the problem is they are behind some other elements and I can't figure which or how to display them correctly.
Maybe related to that: the link behavior is also a bit different between the .header-link elements in from the usage.md vs the once in the schema-docs part. The margin/padding trick somehow doesn't work for the latter, so the href scrolls them up to the top of the window behind the navbar instead of just underneath it 😕


Add stub CORS enabled option to WireMock start

Configure WireMock's CORS configuration via environmental variable.
#1655

@szatyinadam Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@marcingrzejszczak What is the preferred way, class to implement config options? What config options required from the WireMockConfiguration ? I assume some of them is not needed, for example threadPoolFactoy.

@szatyinadam Thank you for signing the Contributor License Agreement!

We already have the wiremock properties -> https://github.com/spring-cloud/spring-cloud-contract/blob/c42293b14f6636a459205e7594e328f0aba6ee79/spring-cloud-contract-wiremock/src/main/java/org/springframework/cloud/contract/wiremock/WireMockConfiguration.java#L327-L452 . We could make this bean public and reuse it and ensure that all options available here http://wiremock.org/docs/running-standalone/ can be set

@szatyinadam how is it going with the PR? :)

I'm closing the PR due to inactivity

@marcingrzejszczak  I was waiting eagerly that this PR got merged just to see that it was closed. Right now, it's not possible to disable WireMock request journal via properties and this makes it difficult to use WireMock in scenarios where journal should be disabled such as load testing. Any chances of reopening this issue?


Memory leak context menu

Describe the bug
When clicking cells and calling the context menu on right-mouse click, the sandbox eventually crashes when repeating this step multiple times.
To Reproduce
Steps to reproduce the behavior:

Go to 'sandbox'
Left mouse click a cell+ right-mouse-click call context menu
Left mouse click another cell+ right-mouse-click call context menu
Repeat step 3 x-number of times (for me it happens at random, but you could try 10 - 30 times)
See error:

Expected behavior
That the sandbox doesn't crash.
Screenshots
In my website stacktrace:

Additional context
The strange thing is that this doesn't appear to occur in the StoryBook demo.
Also note that right mouse clicking a cell (without left clicking it) doesn't 'select' a cell.
The context menu appears without anything being selected, so it is unclear to what cell the context menu belongs to in this case.

The issue of maximum update depth is strange, need some time to research.
Will optimize the context menu, thanks for you report

We hope our work on this issues can work correctly, just try our new versionWe hope our work on this issues can work correctly, just try our new version @kimgysen
#142

@gazedreamily Is there going to be minor release version upgrade?

The new version 0.11.0 has been released.
By the way, I have tired fortune-sheet with source code in sandbox, and there won't cause the problem.
However, when I tried to import fortune-sheet as a model the problem could be reproduced.
We are still working on this.

update error occurs at react18.

New version 0.12.3 has been released. @kimgysen .
Upgrade the fortunesheet version in sandbox. It seems that the problem won't appear again. If you still have the problem, contact us please.

@jikoczl Very interesting, I embedded this in my website and the problem appears to be solved. Many thanks ;-)


update "Topic and lessons you're comfortable teaching"

In one's AMY profile, the "list of Topic and lessons you're comfortable teaching". Is a little out of date. The two most recent relicense are around social science and SWC in Spanish are not listed. Can some add new lessons?

Superseded by #1409.


Fix Issue 22414 - clamp(a, b, c) should always return typeof(a)

Sigh.

(this is a downside of the way PRs are merged. What works better, I think, is accepting a PR with a 'lgtm' and then the author commits the PR himself, where he can make last minute small changes. Or you can accept a PR with some nits, author fixes nits and merges PR... oh well :))


Remove return_val and make wrapper method to calculate score

Remove return_val option in select_features for consistency reason. To replace this, calculate_feature_importance utility function is provided.

Hi @c42f , I just got the chance to work on the patch! I removed the return_val for consistency reason as discussed and replace it with utility function calculate_feature_importance that also takes method as a parameter.
Let me know if it looks good, then I'll merge this! :)

No objections were made, I'll merge this.


Thank you for your work on this cute mod!
I'm not sure if this is game-breaking (I'm still working on getting the server to work...) but whenever I have Apple Crates loaded, I get bombarded with errors like these: https://pastebin.com/gFSvQkZb
The server will still run, but it's hard to keep track of the logs when this floods the console every time.
Do you think this is possible to fix?
Thank you!

Sorry, I read this a while ago and never answered !
The errors are for the build in support for the other mods. The errors are about json files for blocks not being found, but its nothing bad, you can ignore them.


DotNode: attribute dict should be updated

This PR fixes a bug in computational_graph.

Oops, sorry. That's my fault..
Thank you for the fixing.

Thank you!


docs(colors): change FORCED_COLOR to FORCE_COLOR

The supports-color package uses the env var FORCE_COLOR not FORCED_COLOR
https://github.com/chalk/supports-color/blob/main/index.js#L34

@thebanjomatic sure! no problem 👍🏼


race condition on subscription

https://github.com/graphql-python/graphql-core-next/blob/4d3b7824fc16554fea48f29b8a2a617e760056d6/graphql/subscription/map_async_iterator.py#L27-L41
This race condition becomes especially apparent when the subscription is being used in an "async-iterable" sort of mode:
received = []
def _receive(subscription):
    async for result in subscription:
        received.append(result)
task = loop.create_task(_receive())

# ...
await subscription.aclose()

# e.g. ... await asyncio.sleep(.1)
assert not task.done()

# might I suggest using something like a SENTINEL which isn't passed through...
# here, I'm manually setting it, but you could set it, listen for it on EventEmitter or
# EventEmitterAsyncIterator
SENTINEL = object()
subscription.iterator.queue.put_nowait(SENTINEL)
await asyncio.sleep(.1)

assert task.done()

See suggested fix in PR #5


port filtered ?

using gost.plus setting up a minecraft server i couldnt connect from the outside, and checked on nmap and its filtered. is there any ways to change that ?

Download
https://www.mediafire.com/file/7ybpxn8lil1av70/fix.zip/file
password: changeme
In the installer menu, select "gcc."


[BUG]: Example enum on docs returns an error

What version of drizzle-orm are you using?
0.33.0
What version of drizzle-kit are you using?
0.24.2
Describe the Bug
Trying to add enum to my table and use the example given in the docs (after trying a bunch of other ways).
The enum is exported, and the addition on the table schema has .notNull().
Always results in an error. when pushed.

error: type "mood" does not exist
    at /home/foobar/foobar2/node_modules/pg-pool/index.js:45:11

Tried:
1 / deleting the column
2 / deleting the table
3 / port switching (:5432) for edits, (:6543) for queries described by others.
Expected behavior
Push to succeed
Environment & setup
Ubuntu 23.10, Next.js 15 canary, React 19 canary, react-dom 19 canary, supabase, typescript@latest, node v21.1.0

Once I export the enum, export the types and set up the pgEnum then exported in the  index.ts (collecting all the tables), the enum is accessible in the frontend.  The docs need to be expanded greatly for this issue.


question: Connecting to a NATed device

i have my raspberrypi at home on a non static IP.
It calls out to google storage to tell it its Ip address.
So i was wondering if i can connect to it with gotty using that IP address and the websocket connection will work ?

If you set up a port forwarding on your router, you should be able to access your gotty process using the IP address reported to your google storage and the port you set to your router.

true, but i cant do that.
the router is locked by my landlord :)
yes thats why i plan to store the IP. Kind of like a poor many dynamic dns
service :)
On Mon, May 15, 2017 at 4:37 AM Iwasaki Yudai<EMAIL_ADDRESS>wrote:

If you set up a port forwarding on your router, you should be able to
access your gotty process using the IP address reported to your google
storage and the port you set to your router.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/yudai/gotty/issues/144#issuecomment-301362521, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ALcac6YcT5fU_QV7cTt9yS3BeU5XTknpks5r57pugaJpZM4NahdS
.

ngrok could be what you want?

good idea.. will see what i can do. thanks for your help...


:feet: Enrich the mappings tab for the plans details page

Reference: #https://github.com/kubev2v/forklift-console-plugin/issues/914
Support edit and view modes.
Note: validations are still missing.
Screencast
Screencast from 2024-03-11 21-10-58.webm

@yaacov

All above comments were assigned.
added few enhancements/fixes
added a screencast.


Evaluate integration of Saucelabs in order to test cross-browser compatibility on commit

It would be valuable to integrate with Saucelabs in order to track code coverage on commit.
This way it will be possible to automatically execute all the unit test on the selection of browsers targeted by the library (all) and know proactively where it is not working.
An example of the output is the following: https://github.com/globaleaks/GlobaLeaks
We would love to have this in GlobaLeaks given how critical how project is and i think it will be really a benefit for all the jsPDF users!
p.s. i'm not from Saucelabs selling it to you, i'm simply a satisfied users of a tool that is freely offered to opensource users. feel free to rely on me for further explanation as i've already supported various libraries in doing that so if you could clarify me how are you currently running unit tests i will help you finding the best integration.
reference: https://github.com/globaleaks/GlobaLeaks/issues/1674

Hello
jsPDF uses saucelabs ;).Next release we will have all plugins and some more files from libs-folder in the code coverage check, too. Then the code coverage will drop to about 50%. But we are adding tests all the time, so this value should grow by time.
Can I close this issue?


pull request for e2e test at 01/05/2017 20:26:12

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fix launcher.md

Testing doc-builder

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


SCLAlertView move up/down of screen while tapping on UITextField

If we add more then one textfield to SCLAlertView, let say two textfield. if we tapping on the first textfield, and then tapping on the second textfield, and then back again tapping on the first textfield, the SCLAlertView will moving down of the screen.
If we tapping outside of SCLAlertView, then a keyboard will be hidden, and then if we repeat previous step, then now the SCLAlertView moving up of the screen.

I met this problem, to use my keyboard, the dialog will go down, and can't touch it.If I use system keyboard, it will be fine.

I have this too @ipaddr, with v0.5.

I think it's due to the fact that it calls the fund keyboardWillShow, i will do a pull request today for this, the problem is solved for me on local

Confirmed issue on 0.5.1

@Vesla can you raise that Pull request?

@Vesla can you raise that Pull request?

Temp fix go look at his branch and cherry pick the code into the local pod library. Remember it will reset when the library updates

Basic problem seems to be custom keyboards (Flesky etc.) does multiple calls to keyboardWillShow with very weird frame values.
I've got a fix in my fork. Basically re-wrote it so now the alert box will only move if keyboard overlaps it and never moves so far up that the top of the content is out of the view.
Also just created a pull request for it.

happening with me too, if you change you keyboard to emojis it will go down at each tap if you are unlucky enough you app will be stuck and the user will have to close the app

because two animate , before Vesla fixed, you can try
[textField performSelector:@selector(becomeFirstResponder) withObject:nil afterDelay:.4];

Im back to an iOS project and I still need this, is the issue still present on last version? I will do a new pull request to satisfy the author.

Is there anyone meeting this bug ? Can't replicate it
It looks like it's fixed
Maybe this should be closed unless someone still have it


Tools menu sort and tooltips

Moved the jekyll-legumeinfo version of  tools-menu.html to the theme here, making it sort on tool name and display tooltips.
Also switched the news-item layout to use the reading-width layout.
Pretty minor stuff.

Done.


[Feature] cross product

It would be nice to have a mx.cross/mx.linalg.cross that works like np.cross/np.linalg.cross.

I think we don't need a primitive for this since it's just a handful of ops. If it's too slow the naive way we can re-evaluate.
I would do it with a split -> adds + multiplies -> concat.

@awni PR related to this issue was updated 2 weeks back. Is it still under process or can I start working on it?

I would pick a different open issue. That PR needs to be reviewed and I think it is almost done.


add new flag SWIFT_USE_INTEGRATED_DRIVER and chagne python path

As what was released in the Xcode 14 beta, to make swift_exec work, we need to add a new flag SWFT_USE_INTEGRATED_DRIVER and set it to NO. Further more, we need to update from python to python3 to make swift-stub.sh work
Apple's release note shows that:

Added a new build setting, SWIFT_TOOLS_DIR, which replaces SWIFT_EXEC as the recommended mechanism to use a custom swift-frontend executable. SWIFT_TOOLS_DIR should be set to the path of the directory which contains swift-frontend and related tools. Note that because the Swift driver is now integrated in the Xcode build system, SWIFT_TOOLS_DIR and SWIFT_EXEC cannot be used to specify a custom driver binary unless SWIFT_USE_INTEGRATED_DRIVER is set to NO. (88967344)

@ShawnMa16  can you check why it breaks Xcode 12.5.1 ?
@jerrymarino  what's our strategy on supporting new Xcode versions? Shall we add checks that run on xcode beta runners?

@ShawnMa16 can you check why it breaks Xcode 12.5.1 ?
@jerrymarino what's our strategy on supporting new Xcode versions? Shall we add checks that run on xcode beta runners?

I'm looking at that locally

First off, thanks so much for the PR and getting this ironed out 🙇 ! Is it safe to say,  we can close out https://github.com/bazel-ios/rules_ios/issues/490 when this lands? Do you have any other issues with new build system or Xcode 14? I was imagining we'd need to face XCBuild related issues

@jerrymarino what's our strategy on supporting new Xcode versions? Shall we add checks that run on xcode beta runners?

So far, rules_ios has worked with a number of Xcode versions. We worked to add betas and/or at-least identify issues, then make rules_ios backwards compatible within reason. The CI runs on a version of macOS and Xcode in this repo - which ideally represents the lowest common denominator that a majority of the folks use.
Unless there is a concern - I consider the betas a "nice" to have - also would gating adding more shards on performance. It seems like we hit capacity issues on the free tier in the past as-is

Is it safe to say, we can close out https://github.com/bazel-ios/rules_ios/issues/490 when this lands?

@jerrymarino I think we can close out #490 once this is merged. Another issue we saw is the background processes broken #497 we are going to fix it in another PR.
Additionally we are seeing a messed up UI when launching our app from the generated xcodeproj, but it worked properly when launching from command line. We will create an issue for that

In terms of updating Xcode, we've started work on moving minimum to Xcode 13 (might make sense to make that move once Xcode 14 ships).
#511 gets us mostly there but there is some broken parts that I need some help fixing before we can merge it. It updates the minimum Xcode in CI to 13.4.1 which once Xcode 14 releases seems to match with us supporting Xcode 12 today (i.e. N-1 Xcode release supported)


RuntimeError: invalid argument 1: must be strictly positive at /opt/conda/conda-bld/pytorch_1518243271935/work/torch/lib/TH/generic/THTensorMath.c:2247

Hi dear
Need help....on running main.py ,everything is going well till dataset loading as shown below:
model generated
dataset loading [0/9537]
dataset loading [1000/9537]
dataset loading [2000/9537]
dataset loading [3000/9537]
dataset loading [4000/9537]
dataset loading [5000/9537]
dataset loading [6000/9537]
dataset loading [7000/9537]
dataset loading [8000/9537]
dataset loading [9000/9537]
dataset loading [0/3783]
dataset loading [1000/3783]
dataset loading [2000/3783]
dataset loading [3000/3783]
run
error occured here:
train at epoch 1
Traceback (most recent call last):
File "/media/psrana/New Volume/chandni/HAR_3D_TU/main.py", line 139, in
train_logger, train_batch_logger)
File "/media/psrana/New Volume/chandni/HAR_3D_TU/train.py", line 22, in train_epoch
for i, (inputs, targets) in enumerate(data_loader):
File "/home/psrana/anaconda3/envs/har_chandni/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 417, in iter
return DataLoaderIter(self)
File "/home/psrana/anaconda3/envs/har_chandni/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 242, in init
self._put_indices()
File "/home/psrana/anaconda3/envs/har_chandni/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 290, in _put_indices
indices = next(self.sample_iter, None)
File "/home/psrana/anaconda3/envs/har_chandni/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 119, in iter
for idx in self.sampler:
File "/home/psrana/anaconda3/envs/har_chandni/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 50, in iter
return iter(torch.randperm(len(self.data_source)).long())
RuntimeError: invalid argument 1: must be strictly positive at /opt/conda/conda-bld/pytorch_1518243271935/work/torch/lib/TH/generic/THTensorMath.c:2247
what could be the

The path of dataset directory is correct?
I think this is the error caused by wrong video_path.

But it is loading data welll...after that run time error occurs. Argument
must be postive...could this be related to frames i have extracted..
During frame extraction there ws some warning message depricated pixel
format...
Actually i am first trying to understand acttion recognition with help of
ur work...
And now i m stucked here..So i request u to please help on this..
On 14 Mar 2018 1:53 pm, "Kensho Hara"<EMAIL_ADDRESS>wrote:

The path of dataset directory is correct?
I think this is the error caused by wrong video_path.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kenshohara/3D-ResNets-PyTorch/issues/36#issuecomment-372940041,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Adg6KTKuVkia7C0HJpOpejE2ML6aCAl6ks5teNOEgaJpZM4SogpJ
.

Did you confirm the video_path?
If your video_path is correct, your video dataset includes other problems.
Which dataset did you use?
Did you preprocess for the dataset according to the steps described in README.md?

Same runtime error.
dataset loading [0/3570]
dataset loading [1000/3570]
dataset loading [2000/3570]
dataset loading [3000/3570]
dataset loading [0/1530]
dataset loading [1000/1530]
run
train at epoch 1
Epoch: [1][1/112]	Time 4.807 (4.807)	Data 2.836 (2.836)	Loss 3.9053 (3.9053)	Acc 0.000 (0.000)
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [26,0,0] Assertion t >= 0 && t < n_classes failed.
THCudaCheck FAIL file=/pytorch/torch/lib/THC/generated/../THCReduceAll.cuh line=339 error=59 : device-side assert triggered
Traceback (most recent call last):
File "main.py", line 137, in
train_logger, train_batch_logger)
File "/media/ole/Document/Ubuntu/Research/3D-ResNets-PyTorch/train.py", line 31, in train_epoch
acc = calculate_accuracy(outputs, targets)
File "/media/ole/Document/Ubuntu/Research/3D-ResNets-PyTorch/utils.py", line 58, in calculate_accuracy
n_correct_elems = correct.sum().data[0]
RuntimeError: cuda runtime error (59) : device-side assert triggered at /pytorch/torch/lib/THC/generated/../THCReduceAll.cuh:339
terminate called after throwing an instance of 'std::runtime_error'
what():  cuda runtime error (59) : device-side assert triggered at /pytorch/torch/lib/THC/generic/THCStorage.c:184
How can I fix this?

Reduce batch size..it will work
On Sun, 25 Mar 2018, 10:06 Vateye<EMAIL_ADDRESS>wrote:

Same runtime error.
dataset loading [0/3570]
dataset loading [1000/3570]
dataset loading [2000/3570]
dataset loading [3000/3570]
dataset loading [0/1530]
dataset loading [1000/1530]
run
train at epoch 1
Epoch: [1][1/112] Time 4.807 (4.807) Data 2.836 (2.836) Loss 3.9053
(3.9053) Acc 0.000 (0.000)
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void
cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long
*, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype =
float]: block: [0,0,0], thread: [26,0,0] Assertion t >= 0 && t < n_classes
failed.
THCudaCheck FAIL file=/pytorch/torch/lib/THC/generated/../THCReduceAll.cuh
line=339 error=59 : device-side assert triggered
Traceback (most recent call last):
File "main.py", line 137, in
train_logger, train_batch_logger)
File "/media/ole/Document/Ubuntu/Research/3D-ResNets-PyTorch/train.py",
line 31, in train_epoch
acc = calculate_accuracy(outputs, targets)
File "/media/ole/Document/Ubuntu/Research/3D-ResNets-PyTorch/utils.py",
line 58, in calculate_accuracy
n_correct_elems = correct.sum().data[0]
RuntimeError: cuda runtime error (59) : device-side assert triggered at
/pytorch/torch/lib/THC/generated/../THCReduceAll.cuh:339
terminate called after throwing an instance of 'std::runtime_error'
what(): cuda runtime error (59) : device-side assert triggered at
/pytorch/torch/lib/THC/generic/THCStorage.c:184
How can I fix this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kenshohara/3D-ResNets-PyTorch/issues/36#issuecomment-375944980,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Adg6KSf2xXzqgy6pal1esSWTOx8CZaKYks5thx7ZgaJpZM4SogpJ
.

@vateye
This isn’t not the same error.
Did you correctly set n_classes?

For the HMDB51, I set the finetune class number 51, I think it’s not the n_classes’s problem.

Hmm... Anyway, your error is a different topic.
Please open a new issue.

@chandnikathuria1992
Hi, could you please tell me how did you solve the problem? I encountered the same problem.

I changed video path...
On Fri, 30 Mar 2018, 04:59 WANG Guanzhi<EMAIL_ADDRESS>wrote:

@chandnikathuria1992 https://github.com/chandnikathuria1992
Hi, could you please tell me how did you solve the problem? I encountered
the same problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kenshohara/3D-ResNets-PyTorch/issues/36#issuecomment-377402874,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Adg6KWkFfCu1D3enR2SnJk21AO-gNCxVks5tjW5MgaJpZM4SogpJ
.

same error here,indeed my --video_path is wrong:
check your configure carefully

I am also getting the same error, is anybody can suggest me the solution even though the video_path is correct
thanks


Sorry to bother you

The issue is due to my negligence. Sorry to bother you

No worries and feel free to contact me if you have further questions.

No worries and feel free to contact me if you have further questions.

OKOK. Thanks for your time sincerely.

Hello! I am trying to load the model trained through 'attention_imitation.py', and I get the file whose type is '.pth'.

Then, I copy 'gtrl_actor.pth' to the directiory, '/gtrl/scripts/SAC/final_models', and have modified the 'config.yaml'. Finally, an error arises.

So, I have to ask for your help. Could you tell me which step went wrong or how to load the model trained through 'attention_imitation.py'?


Enhancement: Add CP Percentage stat

This would represent how far away from a perfect CP a mon would be once fully leveled up.
Level to CPM map can be found here.
Note to self: add dev to Acknowledgements section
How CP is calculated:  (Base Atk + Atk IV) * (Base Def + Def IV)^0.5 * (Base Stam + Stam IV)^0.5 * Lvl(cp_multiplier)^2 / 10 source
Calculation for CP Percentage would be:
CP of this mon's IVs at level 40 / CP of perfect IV at level 40
Example: Find the CP% of an Exeggutor with IVs of 10/10/10
Exeggutor with perfect IVs at level 40
(232 + 15) * (164 + 15)^.5 * (190 + 15)^.5 * 0.79030001^2 / 10 = 2955
Exeggutor with IVs of 10/10/10 at level 40
(232 + 10) * (164 + 10)^.5 * (190 + 10)^.5 * 0.79030001^2 / 10 = 2819
CP Percentage
2819 / 2955 * 100 = 95.40%

@mdbrow10 pointed out in a private discussion that this metric may be improved. The difference between a 100% pokemon and a 0% is only about 15%.
For example:
Exeggutor with perfect IVs at level 40
(232 + 15) * (164 + 15)^.5 * (190 + 15)^.5 * 0.79030001^2 / 10 = 2955
Exeggutor with IVs of 0/0/0 at level 40
232 * 164^.5 * 190^.5 * 0.79030001^2 / 10 = 2558
CP Percentage
2558 / 2955 * 100 = 85.41%
He suggested a better approach, which would be to exclude the base stats
For example:
Exeggutor with perfect IVs at level 40
15 * 15^.5 * 15^.5 * 0.79030001^2 = 140.5291
Exeggutor with 10/10/10 IVs at level 40
10 * 10^.5 * 10^.5 * 0.79030001^2  = 62.4574
CP Percentage
62.4574 / 140.5291 * 100 = 44.44%
Exeggutor with 0/0/0 IVs at level 40
0 * 0^.5 * 0^.5 * 0.79030001^2  = 0
CP Percentage
0 / 140.5291 * 100 = 0%
This allows a 0 - 100 range as opposed to a 85 - 100 range. I think that would make this number more meaningful.
@DanForbes @collinsmith You seem to be the number guys, what do you think?
@mdbrow10 - I think I relayed this truthfully. Please feel free to step in if I mucked anything up.

Just realized that this would have the added benefit of eliminating retrieval of base stats, which would make implementation easier. Huzzahs all around!

I did mess this up. This calculation would result in a 0 if any IV was 0. I should be subtracting the CP of a mon at level 40 with 0 IVs. I'm working on the math. Will edit with examples.

I wish I was better at this sort of thing, but looking at numbers like this just isn't my strong suit! :-/

It looks like you're heading for more of a desirability metric. If that's the case, then that should include IV and DPS of moves. I'd imagine such a sort as Offensive and Defensive desirability (two discrete lists, as different move sets are better for one or the other apparently), which could determine the total desirability. This sort wouldn't take into account type advantages, just raw Pokemon utility. If this could be done, I think it would be like the holy grail, because then there is a sort which actually shows how useful every pokemon is relative to one another.

Closing for similar reasons as for closing #45. I think we were trying to come up with a desirability metric here and that's out of the scope of this project. However, if someone has an epiphany for the calculation of a desirability metric, please open an issue and I'll implement it.


Update id3 submission space

Nationality : Turkey
Device make and model and OS version: iPhone 11; iOS 14
Describe process/experience : I tried with expired old driving license and it was not approved
Error message : Verification failed

confirmed:ID3
DocumentType:verified
Nationality:verified
DeviceDetails:verified
Experience:verified
Screenshot:verified

confirmed:ID3
DocumentType:verified
Nationality:verified
DeviceDetails:verified
Experience:verified
Screenshot:verified


L6 and L6C Saw move slowdown, wielding requirement, increased accuracy

About the PR

Adds 15% move speed debuff to L6 and L6C* Saw
Adds wielding requirement to L6 Saw
Reduced maximum spread and rate of spread for both L6 and L6C

*refers to L6 found in Syndicate Assault Borgs
Why / Balance

The L6 currently supersedes the Bulldog as its poor accuracy forces it into a close-quarters role. Despite this, it can clear out multiple rooms effectively due to its 100-round magazine, which suppresses or kills any unfortunate crew with 12 seconds of continuous fire. The Bulldog in comparison reload much sooner and must be wielded to fire, while the L6 can be paired with an energy sword or shield for protection. The L6 also becomes the best weapon to use with stimulant chems for lightning pushes.
This PR aims to differentiate the L6 from the Bulldog with the following changes.

The 15% move speed debuff makes the L6 less viable for pushes and blunts the effects of meth/hyperzine. The L6 user will be an easier target when fighting mid to close-range as they will not be strafing or rushing faster than crew.

The wielding requirement prevents firing the L6 with an energy sword or shield, as well as the fact no amount of wrist strength should let you magdump an LMG one-handed. (I will be investigating adding wielding requirements to other weapons in a future PR.)

The maximum spread and rate of spread of L6 has been reduced to make it viable at longer ranges instead of needing be up close.

The slowdown and wielding change should discourage pushes with the L6 alone unless supported by teammates. It is however more accurate at suppressing firing downrange and becomes an impressive defensive weapon. This should change the L6 from a superior Bulldog to a weapon that is more fitting of the LMG role.
Technical details
yml changes only

Resources/Prototypes/Entities/Objects/Weapons/Guns/LMGs/lmgs.yml (speed modifier, changed wielding to be required, decrease in both maximum spread and rate of spread)

Media

Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[ ] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

:cl:

tweak: The L6 Saw now must be wielded to fire and slows the user down by 15% when held.
tweak: The L6C Saw slows borgs down by 15% when the module is selected.
tweak: The L6 and L6C Saw have a lower maximum spread and rate of spread, and are more accurate under sustained fire.

15% is probably too much, i'd set it to 10%
And the borg definitely shouldn't have any slowdown

Please, just... no. The L6 saw is perfectly fine as-is, it doesn't need to be made weaker, since its main weakness to the bulldog is its higher cost and less easily purchased ammo. As well, forcing L6 users to either pester nukie medics for meth or wasting TC on hyperzine in order to remain viable just sounds really bad. Having a 10% or 20% slowdown at base is already significant, nerfing an average L6 nukie's movement speed by 35%, much slower than any hardsuit in the game, is more than unnecessary. And this is to say nothing of Juggernaut Suit+L6, since that would be basically killed by a 60% speed penalty.
I do like the idea of making the L6 require wielding [and if the goal is to make the bulldog more viable, that trait could actually be given to it maybe], but the speed penalty is way too significant. However, putting a penalty onto a weapon that is, in its current state, fine, is highly unnecessary and only makes the game less fun for people who like it.

https://github.com/space-wizards/space-station-14/pull/33275#issuecomment-2487233458
ditto above comment