Request: Allow matching key to be URL and/or TITLE

This is more of a request than an issue, but... If like me you have multiple gmail accounts and want a rule to modify each different gmail account tab separately, because gmail does not put anything to identify your email address in the URL, but uses a generated URL scheme such as mail.google.com/mail/u/1/#inbox, there is no way to 'key' into each of your own different gmail tabs.
Therefore, could the rule 'Key' please be extended to selectably match against TITLE in addition to URL ?
Just a thought.
Cheers,
Dave

Hi @daveysaxt,
I'm not sure to understand what you want to achieve. Please provide an explicit example.
Best

I had in mind a similar request. I use google drive documents and sheets a lot and have several google sheets tabbed with different colors using the tab modifier. But the issue I am running into is that the URL will change as you edit the google sheet.
Is there any way the tab could link to the first part of the URL that does not change and the title of the tab to verify it?

@psilver1 You can use "Starts with" that will match the beginning of your URL fragment.
Also with both title matcher & URL matcher you can also match everything if you are familiar with RegExp.
Best

Basically, if you go into Gmail, the URL is generated by gmail, so if you have say 3 email accounts and go into all of them, each in a separate tab, as often I do, you get the urls:
https://mail.google.com/mail/u/0/
https://mail.google.com/mail/u/1/
https://mail.google.com/mail/u/2/
and if say you close tab .../u/1 by accident and open a new tab and re-log into that particular gmail, you're likely to get ...u/3
There is nothing in the gmail URL to match the u/0, u/1 or u/2 to say<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Only the Title of the tab (page) shows, for example "Inbox (6) -<EMAIL_ADDRESS>therefore identifying which of your email accounts the tab is displaying. So to create a rule that is triggered for a particular Title pattern rather than or in addition to a particular URL pattern would be needed.
As far as I understand it, the Title matching pattern field (at the bottom of the rule definition) is to match a part of the title and replace it with something else in the tab (page) title ? As is the URL pattern matching field at the bottom ? As far as I have tried, the Title matching pattern is not to identify a particular webpage for applying a rule to ?
What I was suggesting is that if the extension could use Title and/or URL to match against for determining if that rule should be applied to the tab (page)... for example having a different favicon for each of my (several) email accounts.
In summary,  URL pattern matching can't achieve this for dynamically generated URLs of the gmail kind. It is not guaranteed what u/n/ you will get in the gmail URL for any of your email addresses. There are other websites and services that also use dynamically generated 'session URLS' that are not the same every time a particular user starts such a session, and there is also nothing in the URL to identify the session (except to the server generating the page).
So, basically allowing the rule to be triggered by a pattern match on URL and/or Title. I did try using patterns in the first URL matching field to try and force a match to Title in the hopes that I could bust past the end of the URL and scan along to the title, but I guess the exetension specifically limits the regexp scan to just the URL 'field' ?
Many Thanks,
Dave

I got it. Yes the tab identification relies only on the URL and I have no plan to actually supports anything else (ref. to the focused scope inside the Readme file).
So yes if you apply a rule on a Gmail account, all will be affected.
Best


Add docs on kurtosis context set/ls

Where did you see the issue in our documentation?
https://docs.kurtosis.com/cli
Issue description
@chunha-park pointed out that we don't have docs on kurtosis context ls/set!

Duplicate of: https://github.com/kurtosis-tech/kurtosis/issues/1536


Blank window. No idea whats wrong. No errors

so ive set up the bot and the config as required in readme. json file is verified on the verifier provided in readme. When I run the py file, it just hangs. no feedback whatsoever. it doesnt crash nor provide anything. just a blank window

running py 3.9. everything is installed. (discum)

could this be due to lack of token? i've looked up how to get the token on various tutorials, but seems to be outdated. the numbers i grabbed may not be token

it could be since there nothing to login to then its just gonna hang but there is no errors to crash the program

is your method for obtaining login token the one with inspect element? I coudlnt find the token like in various yt videos. mind sharing the method?

I used ctrl+shift+I in the discord app itself as it's an electron app
Then you just refresh a couple of times and it should be there if I remember correctly

cool. seems to be working now. thanks!


While adding a client interface using SCAN option, the client interface is not enabling.

HI,
I am trying to add a client interface to 2.4Ghz wireless network using SCAN and selecting a network to join. Then after joining the client interface is not enabling, its showing "Wireless is disabled or not associated" status only.
Steps followed:

In Network -> Wifi -> Click on SCAN -> JOin any network.
After joining, the client interface is showing "Wireless is disabled or not associated" status.

Can you help me to understand why this is happening and how to solve this ?
Thank you..!

15.05 is no longer actively supported, please update to 18.06.


Test flake in bstr.dart

Hey @timsneath, this test is flaky:
https://github.com/timsneath/win32/blob/cc9933f2216b5da247227a050aa3e2f21421abaf/test/bstr_test.dart#L23-L26
If you run this test several times on your computer, you will notice that it sometimes fails.
Originally posted by @halildurmus in https://github.com/timsneath/win32/issues/406#issuecomment-1116141642

Yuck - that's annoying. How strange that it's intermittent. I'll take a look.
The BSTR data type is documented here, for my ease of reference later:
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/automat/bstr

Doh! The clue is in my own comment: "A BSTR should end with a word-length null terminator."
And then I go and allocate a DWORD. 🤦

Oops 😂

Should be fixed in 9bc07e40ee0035cbbab7bff9786e7d77fa09a046


'尝试修复配置Integer的ToStringSerializer不生效问题'

What this PR does / why we need it?
Summary of your change
Please indicate you've done the following:

[ ] Made sure tests are passing and test coverage is added if needed.
[ ] Made sure commit message follow the rule of Conventional Commits specification.
[ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.changyi.ccy seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

LGTM


Various

@Phil-Friderici could you have a look please

@ghoneycutt thanks for your commit! Like that the linebreak went into the code :) Guess that people who don't change their data will end up with two linebreaks in the end which seem acceptable to me.

released in v0.6.2


Add updated v2 graph images

thanks, do you think it is a good idea to seperate images here? I am just worried that the docs will contain a lot of images in a year or two and do not want to enlarge the main repo with a bunch of images and gif animations. Makes updating docs a little cumbersome.
Also I guess you have noticed a little irritating fact that when updating this repo, for "make docs-build" to take your changes they must be committed first (the build scripts seems to a do a git reset inside the docker container, not sure why)

btw, you were right to add the images here, just wanted to state why I did that and get a feeling if you think it was a good idea or not :)


⚠ Bofrost.at has degraded performance

In 886ac43, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1524 ms

Resolved: Bofrost.at performance has improved in 6444b5f after 6 minutes.


URI malformed error when current page HASH contains %25 in it

Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.10.0
Wrapper Library
Not Applicable
Wrapper Library Version
None
Description
If you configure MSAL on a page that uses hash for storing state and the hash contains %25 in it, when you call
client.acquireTokenSilent(..) it crashes
This seems to be similar to - https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/2125
The issue is that StringUtils.queryStringToObject double decodes the window.location.hash so
http://contoso.com/page.html#value=some%25value
has the hash decoded to
some%value
And then it tries to decode it again and crashes because decodeURIComponent thinks it has to decode %value to something and can't
Cannot work around this because the state has to be single encoded for the main application to work so I can't double encoded just to MSAL doesn't crash
Error Message
URIError: URI malformed
at decodeURIComponent ()
at o (msal.js?v=<IP_ADDRESS>-c17174:725)
at Function.e.queryStringToObject (msal.js?v=<IP_ADDRESS>-c17174:728)
at Function.e.getDeserializedHash (msal.js?v=<IP_ADDRESS>-c17174:1846)
at Function.e.hashContainsKnownProperties (msal.js?v=<IP_ADDRESS>-c17174:1851)
at Function.t.blockReloadInHiddenIframes (msal.js?v=<IP_ADDRESS>-c17174:3977)
at a.t.preflightBrowserEnvironmentCheck (msal.js?v=<IP_ADDRESS>-c17174:4625)
Msal Logs
No response
MSAL Configuration
{
   "auth":{
      "clientId":"x3exxe0x-a2c3-xxxx-xxxx-8xxx17xc7xxx",
      "authority":"https://login.microsoftonline.com/...",
      "knownAuthorities":[
         "https://login.microsoftonline.com/..."
      ],
      "protocolMode":"AAD",
      "redirectUri":"http://contoso.com/Login.aspx"
   },
   "cache":{
      "cacheLocation":"localStorage",
      "storeAuthStateInCookie":false
   },
   "scopes":[
      "api://...../my_scope"
   ]
}

Relevant Code Snippets
client.acquireTokenSilent({ scopes: ["openid", "profile"], account: "..." }).then(function (resp) { }).catch(function (error) { /* it crashes here */ debugger; })

Reproduction Steps
Have an HTMl page and set a HASH state via JS that contains an encoded value with percentage in it - like:
index.html#key=some%25value
Create your MSAL client and call acquireTokenSilently
The promise for acquireTokenSilently crashes with URI malformed error
Expected Behavior
StringUtils only decodes once or checks before re-decoding so that you don't crash the acquireTokenSilent promise. Or don't decode the HASH at all if not needed - because there is no MSAL state in that window.location.hash so why try to decode it?
Identity Provider
Azure AD / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari
Regression
No response
Source
External (Customer)

Hi @av-virlan! Thanks for raising this issue. We're currently looking into issue #3491 that looks similar to yours, so we'll update this issue when we confirm whether or not it has the same root cause.
I understand not wanting to keep the state double decoded for the main application's use, but is there a reason why you can't encode the state value you pass to acquireTokenSilent and then decode the state value that is returned before using it in the main application?
Thanks!

I can give that a shot - so something like this:
Before:
client.acquireTokenSilent({ ... }).then(function (resp) { }).catch(function (error){});
After:
client.acquireTokenSilent({ ..., state: encodeURIComponent(window.location.hash.substring(1)) }).then(function (resp) { }).catch(function (error){});

I'm back - I just tested the above and it doesn't change anything. If you look at the stacktrace the issue starts from preflightBrowserEnvironmentCheck method which calls blockReloadInHiddenIframes which is hardcoded to use window.location.hash instead of the state I pass in the request.
So the issue is not with acquiring itsel but with the pre-validation which is hardcoded to use window.location.hash (at least in MSAL 2.10.0)

@av-virlan I'm able to reproduce the issue, I'll do some more investigating to determine the best fix/workaround and will update this issue when I have more information, thanks!

@hectormmg @bmahall This got fixed by #3903, correct?

Yes, this was fixed in #3903.

@hectormmg @jasonnutter any idea on when an updated msal-browser build will be released with a fix for this?

@av-virlan Latest version of msal-browser should contain this fix.

@jasonnutter thanks I see it's published on NPM. I was looking for it in Github Releases and was only seeing 2.16.0, didn't think to check NPM directly 👍


🐛 [Bug] Encountered TRT Error in Dynamo compile path

Bug Description
When compiling GPT-2 with Dynamo compile, the following error is encountered:
[07/01/2023-00:07:12] [TRT] [E] 3: [executionContext.cpp::enqueueInternal::795] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::enqueueInternal::795, condition: bindings[x] || nullBindingOK
)

Additionally, this does not seem to cause failures in the Dynamo runtime (not caught by pass_through_build_failures), and it appears both with and without the experimental runtime.
To Reproduce
model = GPT2Model.from_pretrained("gpt2").eval().cuda()
input_ids      = torch.randint(0, 2, (1, 14), dtype=torch.int32).cuda()
attention_mask = torch.randint(0, 2, (1, 14), dtype=torch.int32).cuda()
traced = transformers_trace(model, input_names=["input_ids", "attention_mask"]).eval().cuda()
fx_trt_model = torch_tensorrt.compile(traced, ir="dynamo_compile", inputs=[input_ids, attention_mask], debug=True, pass_through_build_failures=True, min_block_size=10)

Expected behavior
The model should not encounter TRT errors while compiling.
Environment

Torch-TensorRT Version (e.g. 1.0.0): 2844630
PyTorch Version (e.g. 1.0): 2.1.0.dev20230620+cu118
TensorRT Version: 8.6.1

Additional context
This error no longer appears when we apply the @fake_tensor_unsupported flag to the backends, as was removed in #1955. It is unclear whether this is the direct cause of the bug, however.
Additionally, this bug seems to appear only sometimes, and not consistently.

Relevant: CI Failures on #2003, #2070, #1944


Preview should not be enabled when no row is available

If a filter rules out all learners, the preview window still opens with an error.

Solved in Version B.3.0.0


Improve Cleanup of Jupyter processes on Notebook and/or ADS Close

Partial fix for #3477.
Changes include:

When calling process.kill (if the process still exists), terminate the process non-gracefully
When ADS closes, ensure that we call jupyter notebook stop before killing the child process (otherwise, 'jupyter notebook list' will think there's a jupyter notebook still running on a certain port after the process ends)
Don't notify the user if there was a problem when closing the notebook (if there is a problem, seems unlikely that the user could take any action anyway)
Always try to kill the child processes even if there was a problem when sending a message to Jupyter to stop
Delete a handle to the existing manager when calling close notebook in ExtHostNotebook

I will investigate whether we can reduce the number of Jupyter processes in a bit.

public checkProcessDied(childProcess: ChildProcess): void {

nit: But this isn't a great name for this method since it doesn't indicate that we kill the process if it doesn't exit gracefully in time. Something like ensureProcessEnded would be better IMO

Refers to: extensions/notebook/src/jupyter/serverInstance.ts:79 in 3e3c964. [](commit_id = 3e3c964052d29c7842453b28c09527d115361281, deletion_comment = False)


Quick fix for Get-TargetResource of SPOSite

This change is

@NikCharlebois Tests are failing. Can you update the test?

Yep, I am on it.

Codecov Report

Merging #44 into Dev will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              Dev      #44      +/-   ##
==========================================
+ Coverage   93.05%   93.14%   +0.09%
==========================================
  Files           6        6
  Lines         518      525       +7
  Branches        1        1
==========================================
+ Hits          482      489       +7
  Misses         35       35
  Partials        1        1

Impacted Files
Coverage Δ

...365DSC/DSCResources/MSFT_SPOSite/MSFT_SPOSite.psm1
89.28% <100%> (+0.6%)
:arrow_up:

...SC/DSCResources/MSFT_O365Group/MSFT_O365Group.psm1
92.12% <100%> (+0.25%)
:arrow_up:

Continue to review full report at Codecov.

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


Add tests with pytest

A few test cases for sanity sound good. I only tested by hand. Do you think we should have a fully functional LaTeX env and some pytests with file comparisons?
Originally posted by @duetosymmetry in https://github.com/duetosymmetry/ads2inspire/issues/11#issuecomment-738347269

Thanks for opening the issue, @matthewfeickert!

[ ] Decide on a set of test cases, at least one test for each feature
[ ] Create minimal .tex and .bib file(s) which will cover all test cases
[ ] test_* functions (with file comparisons) that pytest will run
[ ] Add a github action (likely using @xu-cheng's https://github.com/xu-cheng/texlive-action and https://github.com/xu-cheng/latex-docker, as originally mentioned by @matthewfeickert in https://github.com/duetosymmetry/ads2inspire/pull/11#issuecomment-738376880)


Parchment mappings

Currently, parchment mappings cannot be used on MultiLoader-Template, as the Common project uses vanillagradle, which only supports mojang mappings. This means that when, for instance, navigating code in IntelliJ, code in the Common part will link to the normal, mojmaps-without-parameter-names mappings, even if the Forge or Fabric buildscripts are changed to use parchment. This could be fixed by switching the Common setup to use loom, though I am not sure what other routes might be possible. I do know that there is currently a pull request draft for mapping support open on vanillagradle, but I am not sure what the timeline looks like for that.

Assuming it is the same PR,
https://github.com/SpongePowered/VanillaGradle/pull/47
If I recall correctly, the devs behind it are currently busy with other things unfortunately.
I currently use https://plugins.jetbrains.com/plugin/17485-scribe, which does help a bit for parameter names, although I do recognize it isn't a solution.
As for moving common to loom, we don't have any current plans to move away from VanillaGradle (it does exactly what we need and does it well), you of course can make the move to loom yourself in your own project (also look into QuiltFlower if you do, I've heard it is rather good), but right now, the most we may do is add a branch or an example for loom as common.

This issue may be relevant to you to get parchment mappings, although it is currently not a fully working solution
https://github.com/jaredlll08/MultiLoader-Template/issues/17

I've already gotten loom working in common; I can put my solution in that issue though, if it wasn't already working

Can this be closed now, since common uses ModDevGradle with NeoForm now?


Upgrade Jackson to 2.15.0

Description
Upgrade Jackson to 2.15.0
it aligns with Camel Kamelets catalog
https://github.com/apache/camel-kamelets/pull/1464
Note: there is an API break in transitive dependency with Snake Yaml which required one code change in Camel JBang.
backport from https://github.com/apache/camel/pull/10039
Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I formatted the code using mvn -Pformat,fastinstall install && mvn -Psourcecheck

We can only upgrade to jackson 2.15.x on main branch for Camel v4 as SB 3.1 is upgraded as well.
Camel v3 releases are on 2.14.x for now (I upgraded them to 2.14.3)
https://issues.apache.org/jira/browse/CAMEL-19351


Improve message history handling in get_chat_messages_by_id

Avoid potential borrowing issues with temporary values
Resolve E0716 error related to dropped temporary value while borrowed

This change ensures that self.messages_history always contains a valid value after the operation, improving overall robustness of the chat history management.

solved this on #59 but Arc seems a better solution

aww... ok :)

@ivanmntnautes Hey, can you fix the conflicts before I merge? :)


Minor JavaDoc update.

Linux Build 1428 is now running using a merge of 0b9019396f0b95f767feb8b38d2623698decfd48

Core - Full Integration Build 691 is now running using a merge of 0b9019396f0b95f767feb8b38d2623698decfd48

Windows Build 1093 is now running using a merge of 0b9019396f0b95f767feb8b38d2623698decfd48

Linux Build 1428 outcome was SUCCESS using a merge of 0b9019396f0b95f767feb8b38d2623698decfd48
Summary: Tests passed: 3075, ignored: 65 Build time: 0:17:59

Windows Build 1093 outcome was SUCCESS using a merge of 0b9019396f0b95f767feb8b38d2623698decfd48
Summary: Tests passed: 3075, ignored: 65 Build time: 0:19:22

Core - Full Integration Build 691 outcome was SUCCESS using a merge of 0b9019396f0b95f767feb8b38d2623698decfd48
Summary: Tests passed: 2827, ignored: 412 Build time: 0:48:19


Add Navbar to the website

Please, go through these steps before you submit a PR.

[x] My Pod Leader knows I'm working on this Pull Request
[x] I've explained what the Pull Request is adding.
[x] I've explained why this is important.

We have tried to solve issue #4. The navbar comes into view after the page is scrolled by a certain height.

Also added a hamburger icon for toggling the sidebar.

The user experience with this implementation needs to be improved. Users should not have to scroll to a certain height before they see the navbar. I am not able to see the navbar because I use a big screen. The navbar should be displayed immediately after the page is opened.

The user experience with this implementation needs to be improved. Users should not have to scroll to a certain height before they see the navbar. I am not able to see the navbar because I use a big screen. The navbar should be displayed immediately after the page is opened.

Hi @grace-omotoso we only added the view on scroll only because we found it in the issue #4 description:

As the portfolio gains more information, it may make sense to add a navigation bar. This bar should include the logo on the left side but only once the page has scrolled down a bit.


Bumped version and updated readme

@escamoteur Hi! I've landed any outstanding PR's, and did a clean up pass.
This PR just bumps the version and updates the change log.
I don't seem to have permissions to upload to pub.dev though. You'll have to run the magic command :)

Thanks a lot. I try to do it as soon as possible.
With which address could I invite you as uploader at pub?
Am 10. Feb. 2022, 08:45 +0100 schrieb Shawn @.***>:

@escamoteur Hi! I've landed any outstanding PR's, and did a clean up pass.
I also bumped the version and updated the change log.
I don't seem to have permissions to upload to pub.dev though. You'll have to run the magic command :)
You can view, comment on, or merge this pull request online at:
https://github.com/escamoteur/get_it_mixin/pull/23
Commit Summary
• 2f7b89d Bumped version and updated readme
File Changes
(2 files)
• M CHANGELOG.md (6)
• M pubspec.yaml (2)
Patch Links:
• https://github.com/escamoteur/get_it_mixin/pull/23.patch
• https://github.com/escamoteur/get_it_mixin/pull/23.diff
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>

<EMAIL_ADDRESS>🙇


feat: validate new issues GHA

Adds a new Github action that validates new issues.
The Action will:

Post a comment if sfdx or sf are older than latest
Post a comment if the full --verbose version output was not included
Add the more information needed label

Here is an example of all 3 cases: https://github.com/iowillhoit/gha-sandbox/issues/22
This PR also updates ISSUE_TEMPLATE
Testing Instructions:

Create issues here: https://github.com/iowillhoit/gha-sandbox/issues
Versions check looks for<EMAIL_ADDRESS>and sfdx-cli/x.x.x
Verbose check looks for pluginVersions or Plugin Version: (to support json and stdout)

@jshackell-sfdc 3 markdown files for review here. The rendered templates can be viewed here: https://github.com/iowillhoit/gha-sandbox/issues/22

Ok @mshanemc , updated this to add and remove labels. Also added another workflow that will watch for updates to the PR body and comments. I think we have good coverage on scenarios that we will encounter. I will try to monitor this and make sure it is working as expected over the coming weeks.
See the note about adding a validated label.
Testing comments: https://github.com/iowillhoit/gha-sandbox/issues/32
Testing body edit: https://github.com/iowillhoit/gha-sandbox/issues/33
sf and sfdx: https://github.com/iowillhoit/gha-sandbox/issues/34
Testing comment edits: https://github.com/iowillhoit/gha-sandbox/issues/35


NW6 | Orlando Morales | HTML-CSS-Module | Week4 | Portfolio WebSite

Learners, PR Template
Self checklist

[ ] I have committed my files one by one, on purpose, and for a reason
[ ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
[ ] I have tested my changes
[ ] My changes follow the style guide
[ ] My changes meet the requirements of this task

Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.

https://deploy-preview-174--cyf-module-html-css.netlify.app/multipage-clone/


validate struct inside a map

Hi all
I'm using govalidator to validate the incoming data for my REST backend.
Due to the special nature of this data I use an array (slice) inside of the main struct.
If I validate the data with govalidator.ValidateStruct(incomingData) everything works fine except for the validation of the data inside the mentioned slice. The workaround for me is to create a for loop and call govalidator.ValidateStruct(childItem) for every item that is inside the slice.
I created a playground so you can get a better understanding of what I'm talking about.
Is there a better solution for this?

Hi @daseinhorn,
Have you tried adding valid:"required" to the Struct field?
type MainStruct struct {
	Content []ChildStruct `json:"content" valid:"required"`
}

Yes, it seems to be solved with valid: "required" tag.


[HW] Pramod Tiwari

Name: Pramod Tiwari
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/pramodtiwari64/
Attach the homework screenshots below for both step II and step III:

Hello, Pramod, well done! You did the CQL Console part of the homework.
But to complete it, please head to the two short courses as in the 'homework' section of the README, finish them, and post their "congratulations" screenshot. Then we will be able to award you the badge!
Thank you!


Compiler error whan adding imports BOOL to the builtin MAP module

I came across this issue while working on https://github.com/kframework/k/pull/221.
There are several tests that fail because of this (e.g. https://github.com/kframework/k/blob/master/k-distribution/tests/regression-new/is-variable/a.k).
Here's some repro steps:

let's say a.k contains

requires "domains.k"

module A
    // empty
endmodule

run kompile --backend java --syntax-module A  a.k -d . (same command used in the tests). No problem here!

Open k-distribution/include/builtin/domains.k and locate the MAP module, then add imports BOOL :

module MAP
  imports LIST
  imports SET
  imports BOOL // new

  // ...

run kompile --backend java --syntax-module A  a.k -d . again, and this time we get [Error] Compiler: Module Map must be visible at the configuration declaration.

Going back to a.k, we can "fix it" by importing MAP:

requires "domains.k"
module A
    imports MAP // Not it kompiles! (same command as above)
endmodule```

Alternatively, this is another way:

module A
imports DOMAINS // This also kompiles
endmodule```

If this is still an issue, please re-open with the new bug report template and reproduction steps against newest K.


Shaka fails to play HLS with error code 4017 (HLS_INVALID_PLAYLIST_HIERARCHY)

We have issue with our HLS stream which seems to work just fine with demo player but doesn't work in our own custom made player. For some reason when trying to play out https://csm-e-tv4se2-eb.tls1.yospace.com/csm/live/283556008.m3u8?yo.up=https://mtvdashliveusptest1-a.akamaized.net/live/ETEST/ETEST.isml/&yo.ap=https://tv4-ys-intermediate.akamaized.net/prod/&pid=44989&s=44004003&dcid=computers_html5&t=html5%2Cwww.katsomo.fi%2Chttp%3A%2F%2Fwww.katsomo.fi%2C44004003%2Ctesti_15012020_sl1_yospace%2Cpremium it fails with mentioned error.
Is there some special tweaking made on the demo player page, for instance custom HLS manifest parser etc. or how is it so that demo player is able to play mentioned m3u8 playlist without issues but our own player not?

Is there anything custom made on the demo player page which is not included by default in Shaka's compiled library? For some reason on demo page, HLS' parsePlaylist method is called only with media playlists but in our case first playlist gets parsed is the master playlist and thus Shaka throws HLS_INVALID_PLAYLIST_HIERARCHY error.

So, in our case, method createStreamInfo_() inside hls_parser.js calls this:
const playlist = this.manifestTextParser_.parsePlaylist(         response.data, absoluteMediaPlaylistUri);
..where response.data has mysteriously MASTER PLAYLIST data while absolueMediaPlaylistUri refers to VARIANT's URL.

We don't do anything special on the demo.  Make sure you are loading the same version of the library and not using some older version.  Can you provide a link to your site so we can see what is going on?  Are you registering any request/response filters in your app that may be affecting the data?  Are you using a service worker or proxy that may be affecting the responses?

Making sure that same version of the library is loaded is kinda tricky as demo page loads Shaka in hundreds of pieces and not the bundled version. So unfortunately, no, this does not answer my question.

You can just look at the top-right of the demo to see the version.  The demo loads the uncompiled version by default, but you can change this to the compiled bundle at the bottom of the page in the DEMO MODE section.

To expand on what @TheModMaker said, the only things special about the demo page are:

It loads the uncompiled Shaka Player by default (change to the compiled version at the bottom of the page)
You're seeing the latest release by default (currently v3.0.10, but you can find older versions through https://index-dot-shaka-player-demo.appspot.com/)

To be sure it's not an issue with compilation, try this link from the bottom of the demo page to switch to compiled mode: https://shaka-player-demo.appspot.com/demo/#build=compiled  If your content still plays there, the compiled vs uncompiled difference is not relevant.
If your app uses an older version of Shaka Player than the demo, that could easily explain the difference in behavior.  We may have fixed a relevant bug since the release you're using, and upgrading may solve the problem in your app.
If you have a service worker in your app, or network filters installed in your Shaka Player config, this could also explain the issue, since any of those things could alter network responses before we process them.
@tomraut, does this help?

Yes, thanks.


collect_or_id has problems with types from other packages

Consider the following example, which is a decorated graph, where an attribute on vertices will store objects of type DenseAxisArray (from JuMP https://jump.dev/JuMP.jl/stable/manual/containers/#DenseAxisArray). When grabbing the attribute using chained indexing versus directly indexing, the type of the return object is different. Strangely, the chained access returns some internal data of the DenseAxisArray. See minimal ex below, on version Catlab v0.16.8
using Catlab, JuMP

@present SchGraphJuMP <: SchGraph begin
    Var::AttrType
    var::Attr(V,Var)
end

@abstract_acset_type AbstractGraphJuMP <: AbstractGraph

@acset_type GraphJuMP(SchGraphJuMP, index=[:src,:tgt]) <: AbstractGraphJuMP

graphopt = @acset GraphJuMP{JuMP.Containers.DenseAxisArray} begin
    V = 3
    E = 2
    src = [1,2]
    tgt = [2,3]
end

jumpmod = JuMP.Model()

for v in vertices(graphopt)
    var = @variable(
        jumpmod,
        [t ∈ 5:10],
    )
    graphopt[v,:var] = var
end

graphopt[2, (:tgt,:var)]
graphopt[2, [:tgt,:var]]
graphopt[3, :var]

Chained access returns:
6-element Vector{VariableRef}:
 _[19]
 _[20]
 _[21]
 _[22]
 _[23]
 _[24]

Directly accessing returns (as expected):
1-dimensional DenseAxisArray{VariableRef,1,...} with index sets:
    Dimension 1, 5:10
And data, a 6-element Vector{VariableRef}:
 _[19]
 _[20]
 _[21]
 _[22]
 _[23]
 _[24]

Ok the issue has to do with collect_or_id. See below:
subpart(graphopt, 3, :var)
ACSets.ACSetInterface.collect_or_id(subpart(graphopt, 3, :var))

The really heavy-handed approach would be to have a JuMP extension and then overrides for the various container types so they interact with collect_or_id properly. If nothing else better exists, I suggest that is a viable route, I am rather strongly convinced that a killer app for acsets is structuring optimization models, and operations research type models, generally.

Thanks again @epatters and @kris-brown for the quick fix! Can confirm that the problem where I discovered this behavior now works flawlessly: https://github.com/slwu89/Orcas.jl/blob/main/src/BasicSchedule.jl#L278-L324


revert hlist addition to codecs

I think addition of hlists to Codecs has been more pain than anything else, compile times are staggering once your protocol grows. Honestly I do not see what value it brings about. This is the commit that introduced hlists on Codecs:
https://github.com/oncue/remotely/commit/a087b00149d63af808136c148af330d27df4dc95
@timperrett @stew @runarorama WDYT?
If reverting that change is is not desirable, could we then at least find a better way that does not make scalac crap out once the protocol starts to grow?

@ahjohannessen im ok with reverting this out - i liked the way it was before too

@timperrett I can do the necessary work wrt reverting this out


Typed array unexpected behaviour when used as a func parameter in GDScript

Godot version
v4.0.beta13.official [caacade56]
System information
Windows 10
Issue description
Typed arrays seems to work different when used as parameters for GDScript functions vs C++ binded functions. Hopefully, the following code snippet is self explainatory. Thanks for your work.
Steps to reproduce
Open a new scene, add a TileMap node and attach it the following script:
extends TileMap  # Using TileMap as is the one where I found the issue

# Given this function with a typed array as an argument:
func foo(_packed_array: Array[Vector2i]) -> void:
	pass

func _ready():
	var typed_array : Array[Vector2i] = [Vector2i()]
	foo(typed_array)  # Works fine!

	var any_array = [Vector2i()]
	foo(any_array)  # Invalid type in function 'foo' in base 'TileMap'. Cannot convert argument 1 from Array to Array

	var casted_array = [Vector2i()] as Array[Vector2i]
	foo(casted_array)  # Invalid type in function 'foo' in base 'TileMap'. Cannot convert argument 1 from Array to Array

	foo([Vector2i()])  # Works fine!
	foo([Vector2i()] as Array[Vector2i])  # Invalid type in function 'foo' in base 'TileMap'. Cannot convert argument 1 from Array to Array

	# However, using a C++ binded method that expects an Array[Vector2i], i.e: TileGrid, you can totally:
	set_cells_terrain_path(1, typed_array, 0, 0)  # Works fine!
	set_cells_terrain_path(1, any_array, 0, 0)  # Works fine!
	set_cells_terrain_path(1, casted_array, 0, 0)  # Works fine!
	set_cells_terrain_path(1, [Vector2i()] as Array[Vector2i], 0, 0)  # Works fine!
	set_cells_terrain_path(1, [Vector2i()], 0, 0)  # Works fine!

Minimal reproduction project
N/A

For record, everything will work in the snippet except any_array. Neither foo nor set_cells_terrain_path will accept it after PR is merged.

That make sense, thank you @vonagam


Cells.operator &(Cells, int) may contain a bug

https://github.com/SunnieShine/Sudoku/blob/c90ea0e35d801a0091d9e395afec04f9286ed923/src/Sudoku.Core/Collections/Cells.cs#L1142

It seems that I've forgot to consider the case that the argument subsetSize is greater than map.Count.


allow TLS in the configuration

Can you please merge to allow a TLS configuration for the redis connections so we don't need to store the source on our side?

@thoas is this repo still active?


"Extract method" produces syntax error with multiline except clause

 Environment data

Language Server version: 2021.12.0
OS and version: linux x64
Python version (and distribution if applicable, e.g. Anaconda): Originally observed with CPython 3.8 in a virtual environment and reproduced using the CPython 3.10 system install
python.analysis.indexing: undefined
python.analysis.typeCheckingMode: off

 Scenario
(see below for full code snippets)
Assume we have a try/except clause like the following somewhere in the function we want to refactor:
try:
    raise ValueError("This is a test")
except (
    KeyError,
    ValueError,
) as e:
    print(e)

We highlight a range of lines that contains the above lines, hit the :bulb: and select "Extract method".
 Expected behaviour
Assuming the code did not have any syntax errors before, the resulting code should also be free of syntax errors.
 Actual behaviour
A line break is added between ( and as e: in the second-to-last line of the above example, causing a syntax error.
try:
    raise ValueError("This is a test")
except (
    KeyError,
    ValueError,
)
as e:
    print(e)

 Logs

Python Language Server Log
[Info  - 9:50:42 PM] Pylance language server 2021.12.0 (pyright acfc919d) starting
[Info  - 9:50:42 PM] Server root directory: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist
[Info  - 9:50:42 PM] No configuration file found.
[Info  - 9:50:42 PM] No pyproject.toml file found.
[Info  - 9:50:42 PM] Setting pythonPath for service "vscode_python_extract_broken": "/bin/python"
[Warn  - 9:50:42 PM] stubPath /home/jhoeke/git/vscode_python_extract_broken/typings is not a valid directory.
[Info  - 9:50:42 PM] Assuming Python version 3.10
[Info  - 9:50:42 PM] Assuming Python platform Linux
Search paths for /home/jhoeke/git/vscode_python_extract_broken
  /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib
  /home/jhoeke/git/vscode_python_extract_broken
  /home/jhoeke/git/vscode_python_extract_broken/typings
  /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stubs/...
  /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/bundled/stubs
  /usr/lib64/python3.10
  /usr/lib64/python3.10/lib-dynload
  /home/jhoeke/.local/lib/python3.10/site-packages
  /usr/lib64/python3.10/site-packages
  /usr/lib/python3.10/site-packages
[Warn  - 9:50:43 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 9:50:43 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 9:50:43 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 9:50:43 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 9:50:43 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Info  - 9:50:43 PM] Searching for source files
[Info  - 9:50:43 PM] Found 1 source file
[Info  - 9:50:43 PM] Background analysis(1) root directory: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist
[Info  - 9:50:43 PM] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setImportResolver
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
[FG] parsing: /home/jhoeke/git/vscode_python_extract_broken/demo.py (16ms)
[FG] parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (61ms)
[FG] binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/builtins.pyi (29ms)
[FG] binding: /home/jhoeke/git/vscode_python_extract_broken/demo.py (1ms)
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /home/jhoeke/git/vscode_python_extract_broken/demo.py ...
[BG(1)]   parsing: /home/jhoeke/git/vscode_python_extract_broken/demo.py (17ms)
[BG(1)]   parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (56ms)
[BG(1)]   binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/builtins.pyi (23ms)
[BG(1)]   binding: /home/jhoeke/git/vscode_python_extract_broken/demo.py (0ms)
[BG(1)]   parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/typing.pyi [fs read 1ms] (18ms)
[BG(1)]   binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/typing.pyi (7ms)
[BG(1)]   parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (6ms)
[BG(1)]   binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
[BG(1)]   parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (7ms)
[BG(1)]   binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/types.pyi (3ms)
[BG(1)]   parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (4ms)
[BG(1)]   binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/typing_extensions.pyi (2ms)
[BG(1)]   parsing: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (0ms)
[BG(1)]   binding: /home/jhoeke/.vscode/extensions/ms-python.vscode-pylance-2021.12.0/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
[BG(1)] getSemanticTokens full at /home/jhoeke/git/vscode_python_extract_broken/demo.py (166ms)
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 16:0 at /home/jhoeke/git/vscode_python_extract_broken/demo.py (1ms)
Background analysis message: analyze
[BG(1)] analyzing: /home/jhoeke/git/vscode_python_extract_broken/demo.py ...
[BG(1)]   checking: /home/jhoeke/git/vscode_python_extract_broken/demo.py (6ms)
[BG(1)] analyzing: /home/jhoeke/git/vscode_python_extract_broken/demo.py (6ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
Background analysis message: analyze
[BG(1)] analyzing: /home/jhoeke/git/vscode_python_extract_broken/demo.py ...
[BG(1)]   parsing: /home/jhoeke/git/vscode_python_extract_broken/demo.py (1ms)
[BG(1)]   binding: /home/jhoeke/git/vscode_python_extract_broken/demo.py (1ms)
[BG(1)]   checking: /home/jhoeke/git/vscode_python_extract_broken/demo.py (14ms)
[BG(1)] analyzing: /home/jhoeke/git/vscode_python_extract_broken/demo.py (16ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] parsing: /home/jhoeke/git/vscode_python_extract_broken/demo.py (5ms)
[FG] binding: /home/jhoeke/git/vscode_python_extract_broken/demo.py (1ms)
Background analysis message: getSemanticTokens delta
[BG(1)] getSemanticTokens delta previousResultId:1638910243387 at /home/jhoeke/git/vscode_python_extract_broken/demo.py (1ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: markFilesDirty
Background analysis message: analyze

 Code Snippet / Additional information

Example Code
def main():
    """Demo of the bug"""

    print("Select from here")

    try:
        raise ValueError("This is a test")
    except (
        KeyError,
        ValueError,
    ) as e:
        print(e)

    print('...to here and select "Extract method" in the 💡 menu.')

    return 0

Result
def main():
    """Demo of the bug"""

    new_func()

    return 0

def new_func():
    print("Select from here")

    try:
        raise ValueError("This is a test")
    except (
        KeyError,
        ValueError,
    )
    as e:
        print(e)

    print('...to here and select "Extract method" in the 💡 menu.')

This is a very useful project! Thanks for the great work :heart:
I noticed this bug today and although it wasn't really a big problem, i figured i'd file a report anyways since i didn't find one. Please let me know if you need any further information.

I can add that it's not limited to except clause, multiline with statement also results in incorrect syntax:
with open(
    "filepath",
) as f:
    pass

becomes
def new_func():
    with open(
    "filepath",
)
    as f:
        pass

Even a multiline function call becomes weirdly indented (but still valid syntax):
print(
    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
)

becomes
def new_func():
    print(
    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
)

Thank you for reporting this issue.


Cloud Security

Best Practices for Securing Cloud Infrastructure
Cloud Misconfigurations: The Biggest Security Threat
Shared Responsibility Model in Cloud Security
Data Encryption in the Cloud: What You Need to Know

Repeated check for new issue


replace tinydownload with official repository

I think it would be appropriate to use an official repository instead of using a separate third party site which hosts the file and could potentially modify it. I know this might not be a big deal but it is cleaner this way?

Kinda iconic that you describe the use of an "official repository" and the next thing you do is sudo add-apt-repository :thinking:
(Reading https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media, it doesn't seem official - i.e. maintained by the ffmpeg-authors - at all)
The file on tinydownload was uploaded there by @ritiek and they claim it can't be modified by anyone after uploading, so I think it's fine. It's also only for the tests where it's convenient to have ffmpeg set up pretty fast.
I don't think we need to change this.

FFmpeg builds supporting all necessary encoders that spotify-downloader may use (libmp3lame, libfdk-aac, libopus) aren't available (at least the last time I checked). Though, if there is such a build on an apt repository, it may help us dealing with issues where these third party sites may delete our FFmpeg binary in a blink.


How to use multiple scenes and switch between them?

Hello,
Suppose I have two scenes - Menu Scene and Game Scene.
How do you recommend using this hook to manage multiple scenes?

I would start by saying that is not supported in an elegant way, but will try to offer some solutions.
You could do it by loading another scene entirely.  Here is a demo that uses react-babylonjs, but the principle is the same /react-babylonjs/examples/basic/toggle-scene/.  This will create a new engine completely.
Load a new scene when your game state changes:
const [gameState, setGameState] = useState('menu');
{(gameState === 'menu') &&
  <Scene onSceneMount={loadMenu} />
}
{(gameState === 'game') &&
  <Scene onSceneMount={loadGame} />
}

It may be better to just show the menu on top of the game, if you use full screen.  You can always pause/hide the actual game.
You could also render a different scene in your onRender method.  That won't work with this package.  You will need to maintain references to 2 scenes.  Essentially you would do this:
engine.runRenderLoop(() => {
  if(state.value === 'menu') {
    menuScene.render();
  } else {
    gameScene.render();
  }
})

Benefit of that over creating new scenes is the 2 scenes are always loaded, so you can switch immediately and maintain state easier across the scenes.  I think the best solution still is to load menu on top and have a more dynamic scene, but may not work for your game.  I do somewhat support that in react-babylonjs, but I have never tried.  You can load 2 scenes in an Engine:
/** if you remove the cameras from a scene - it will not render **/
<Engine ...>
  <Scene />
  <Scene />
</Engine>

Thank you for the reply. Will try these out. Going to start with a simpler route with your suggestion and show/hide menu.
Appreciate all the work you do!


request help: How to implement thread sleep in Nginx Test

Issue description
I would like to extensively test the batch processor as the functionality is strongly coupled with timer functionalities. Is there an efficient way to write a sleep function inside the test cases instead of writing a while loop? I could not find any useful pointers in nginx test repo.

can you prove us a mini case? I can not sure I got your point completely.

I would like to write a test case to test the inactive timeout. The following are the configurations.

Inactive Timeout = 2 S
Batch Max Size = 100

I would like to push an entry to the buffer at 0s and wait till 2s and push another entry. In this manner, I can reach the line segment of the code block[extending buffer timer]. To achieve this I need to wait for 2s before pushing the next entry to the buffer in the test case.
I've tried this solution but unfortunately, it does not work as expected.
require "socket"

function sleep(sec)
    socket.select(nil, nil, sec)
end

sleep(2)

@sshniro you can try ngx.sleep(2).

Thanks!


langflow Insert as dependency failed

Describe the bug
Because langflow (0.5.8) depends on jina (3.15.2)
and jina (3.15.2) depends on opentelemetry-exporter-prometheus (>=1.12.0rc1), langflow (0.5.8) requires opentelemetry-exporter-prometheus (>=1.12.0rc1).
So, because no versions of opentelemetry-exporter-prometheus match >=1.12.0rc1
and torchdb depends on langflow (0.5.8), version solving failed.
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
langflow = { version = "0.5.8", extras = ["local"] }
Browser and Version

Version [0.5.8]

Hey, I just released version 0.5.9, could you check if this is fixed?

Hey, I just released version 0.5.9, could you check if this is fixed?

Fixed.


handle dvb_teletext codec

Hi,
recordings on my sat-receiver tend to have a dvb_teletext codec stream in it. I am fine to loose it by using the script however it simply fails to handle it because of ffmpeg not being able to handle it. Maybe there is some logic you can apply to simply filter out streams that are unnecessary?

Input #0, mpegts, from 'test.ts':
Duration: 02:22:02.31, start: 17401.347889, bitrate: 8245 kb/s
Program 134
Stream #0:00x20: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:1[0xff]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:20x103: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s (clean effects)
Stream #0:30x104: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 192 kb/s (clean effects)
Program 135
Program 137
Program 138
Program 144
Program 4008
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:2 -> #0:1 (ac3 (native) -> aac (native))
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (ac3 (native) -> aac (native))
Stream #0:0 -> #0:4 (? (?) -> mov_text (native))
Decoder (codec dvb_teletext) not found for input stream #0:0

Can you post the full ffprobe -show_steams output for one of these failing files?

On Jun 29, 2017, at 12:43 PM, jkoopmann<EMAIL_ADDRESS>wrote:
Hi,
recordings on my sat-receiver tend to have a dvb_teletext codec stream in it. I am fine to loose it by using the script however it simply fails to handle it because of ffmpeg not being able to handle it. Maybe there is some logic you can apply to simply filter out streams that are unnecessary?
Input #0, mpegts, from 'test.ts': Duration: 02:22:02.31, start: 17401.347889, bitrate: 8245 kb/s Program 134 Stream #0:00x20: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:1[0xff]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:20x103: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s (clean effects) Stream #0:30x104: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 192 kb/s (clean effects) Program 135 Program 137 Program 138 Program 144 Program 4008 Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:2 -> #0:1 (ac3 (native) -> aac (native)) Stream #0:2 -> #0:2 (copy) Stream #0:3 -> #0:3 (ac3 (native) -> aac (native)) Stream #0:0 -> #0:4 (? (?) -> mov_text (native)) Decoder (codec dvb_teletext) not found for input stream #0:0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/mdhiggins/sickbeard_mp4_automator/issues/753, or mute the thread https://github.com/notifications/unsubscribe-auth/ADcO6nezbtYPWODuzJNN9IkV5_iBRCZJks5sI9QtgaJpZM4OJk2Y.

Sure:
ffprobe version 3.3.2 Copyright (c) 2007-2017 the FFmpeg developers
built with FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --enable-shared --enable-pic --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --cc=cc --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcelt --disable-chromaprint --disable-libdc1394 --disable-debug --enable-htmlpages --disable-libfdk-aac --enable-ffserver --disable-libflite --enable-fontconfig --enable-libfreetype --enable-frei0r --disable-libfribidi --disable-libgme --disable-libgsm --enable-iconv --disable-libilbc --disable-indev=jack --disable-libkvazaar --disable-ladspa --disable-libmp3lame --disable-libbluray --enable-mmx --disable-libmodplug --disable-netcdf --disable-openal --disable-indev=openal --disable-opencl --enable-libopencv --disable-opengl --disable-libopenh264 --disable-libopenjpeg --enable-optimizations --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --enable-runtime-cpudetect --disable-librubberband --enable-libschroedinger --disable-ffplay --disable-outdev=sdl --disable-sdl2 --disable-libsmbclient --disable-libsnappy --disable-indev=sndio --disable-outdev=sndio --disable-libsoxr --disable-libspeex --enable-sse --disable-libssh --disable-libtesseract --enable-libtheora --disable-libtwolame --enable-libv4l2 --enable-vaapi --enable-vdpau --disable-libvidstab --enable-libvorbis --disable-libvo-amrwbenc --enable-libvpx --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxcb --enable-libxvid --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi --disable-gcrypt --enable-gmp --disable-librtmp --enable-gnutls --disable-openssl --enable-version3 --disable-nonfree
libavutil      55. 58.100 / 55. 58.100
libavcodec     57. 89.100 / 57. 89.100
libavformat    57. 71.100 / 57. 71.100
libavdevice    57.  6.100 / 57.  6.100
libavfilter     6. 82.100 /  6. 82.100
libavresample   3.  5.  0 /  3.  5.  0
libswscale      4.  6.100 /  4.  6.100
libswresample   2.  7.100 /  2.  7.100
libpostproc    54.  5.100 / 54.  5.100
[h264 @ 0x80c217400] SPS unavailable in decode_picture_timing
[h264 @ 0x80c217400] non-existing PPS 0 referenced
[h264 @ 0x80c217400] SPS unavailable in decode_picture_timing
[h264 @ 0x80c217400] non-existing PPS 0 referenced
[h264 @ 0x80c217400] decode_slice_header error
[h264 @ 0x80c217400] no frame!
[h264 @ 0x80c217400] mmco: unref short failure
Last message repeated 1 times
[h264 @ 0x80c217400] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[mpegts @ 0x80c271000] PES packet size mismatch
Last message repeated 1 times
Input #0, mpegts, from test.ts':
Duration: 02:22:02.31, start: 17401.347889, bitrate: 8245 kb/s
Program 134
Stream #0:00x20: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:1[0xff]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:20x103: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 384 kb/s (clean effects)
Stream #0:30x104: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 192 kb/s (clean effects)
Program 135
Program 137
Program 138
Program 144
Program 4008
Unsupported codec with id 94215 for input stream 0

Pushed an update that should blacklist that codec and prevent the FFMPEG failure
Give it a show and let me know

On Jun 29, 2017, at 12:46 PM, jkoopmann<EMAIL_ADDRESS>wrote:
dvb_teletext

Brilliant. Thanks. Working like a charme.
On 29.06.17 | KW26, 18:49  "Michael Higgins" <notifications<EMAIL_ADDRESS>wrote:
Pushed an update that should blacklist that codec and prevent the FFMPEG failure
Give it a show and let me know

On Jun 29, 2017, at 12:46 PM, jkoopmann<EMAIL_ADDRESS>wrote:
dvb_teletext

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/mdhiggins/sickbeard_mp4_automator/issues/753#issuecomment-312025922, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALQBJaEhc40De4h_6_neqvNe9JHs1E00ks5sI9V-gaJpZM4OJk2Y.


Ignore specific files when generating the client

Is your feature request related to a problem? Please describe.
When generating the client from open api spec, sometimes we need to prevent some specific files to be overwritten. I haven't found a native support in openapi-python-client currently.
Describe the solution you'd like
We can follow the .gitignore pattern and provide something like .openapi_python_ignore.
Describe alternatives you've considered
N/A
Additional context
N/A

When you say files being overwritten, do you mean in the generated client? i.e. generate version A, update it to version B, but leave some files untouched? Or do you mean you want to ignore parts of the spec itself? If so this is likely a duplicate of #55 as that should get you where you need.

@clasnake ,  I think you are describing the same issue that I am facing:  This generator does not seem to allow for files not defined by the spec inside the package.
After a quick browse it appears that the same methods used to in the generate command are used in the update command, seen here.  This means that the package is essentially wiped every time an update command is executed as far as I can tell.
If I'm right, this means that potentially a .openapi-python-ignore is feasible, but an initial implementation may affect the generate and update commands.
@emann , what I am describing is similar to what the openapi-generator tool has implemented.

@emann / @dbanty ,  I don't intend to push, but ...

What are your thoughts on this feature?  Am I missing something?
Is this project open to new contributors?
If some implementation allowing for file/directory ignore patterns materialized... would you want it to affect generate and update commands?

@bolbken in order:

Sounds like a great feature, and you’re correct in your assessment of current behavior.
Yes! Though currently we’re rather slow to respond / review 😅. I am mostly limited to weekend time at the moment.
I think it’d make sense to mirror the functionality from openapi-generator. update was just the easy alternative to full ignore functionality so you could leave metadata / external packages in place. I think it just becomes a special case of generate with prebaked ignore rules.. right? I don’t actually use update myself anymore so I could be forgetting something >_>.

@dbanty  Thanks for the quick, concise response.
In the coming weeks I may take this on and attempt an implementation.  This is truly a superior generator for python clients from openapi specs.  Looking forward to potentially being able to contribute in the future.  Thanks! :)

Hi @dbanty -- I am curious if you think this feature belongs in this library. I certainly do, though there seem to be several plausible implementations.


Question : doing complex searches based on order

Sorry if this is the wrong place to ask a usage question, but I am currently using rethinkdb but want to move my current code to boltdb.
How do I do think like:
Select * from users where username = x sortby ascending ?
It seems like the only way is to fireach using an iterator in memory, and then keep a counter ? But even then not sure.
The other thing is how to model a child \ parent relationship. Say a product catalogue of DRI ks with various types of drinks,

Make sure you are aware that boltdb is a key-value database, and not a relational database. A lot of operations like the ones above will not be possible with boltdb. As it were, the one you mentioned is actually possible, as long as you are using the username as the key. From the README:
Prefix scans
To iterate over a key prefix, you can combine Seek() and bytes.HasPrefix():
db.View(func(tx *bolt.Tx) error {
	// Assume bucket exists and has keys
	c := tx.Bucket([]byte("MyBucket")).Cursor()

	prefix := []byte("1234")
	for k, v := c.Seek(prefix); bytes.HasPrefix(k, prefix); k, v = c.Next() {
		fmt.Printf("key=%s, value=%s\n", k, v)
	}

	return nil
})

Range scans
Another common use case is scanning over a range such as a time range. If you
use a sortable time encoding such as RFC3339 then you can query a specific
date range like this:
db.View(func(tx *bolt.Tx) error {
	// Assume our events bucket exists and has RFC3339 encoded time keys.
	c := tx.Bucket([]byte("Events")).Cursor()

	// Our time range spans the 90's decade.
	min := []byte("1990-01-01T00:00:00Z")
	max := []byte("2000-01-01T00:00:00Z")

	// Iterate over the 90's.
	for k, v := c.Seek(min); k != nil && bytes.Compare(k, max) <= 0; k, v = c.Next() {
		fmt.Printf("%s: %s\n", k, v)
	}

	return nil
})

Thanks makes it easy.
I guess for joins / cardinality I should check the docs.
If anyone can point me to example code on github that would be super
On Mon, 22 Feb 2016, 15:43 David Vorick<EMAIL_ADDRESS>wrote:

Make sure you are aware that boltdb is a key-value database, and not a
relational database. A lot of operations like the ones above will not be
possible with boltdb. As it were, the one you mentioned is actually
possible, as long as you are using the username as the key. From the README:
Prefix scans
To iterate over a key prefix, you can combine Seek() and bytes.HasPrefix()
:
db.View(func(tx *bolt.Tx) error {
// Assume bucket exists and has keys
c := tx.Bucket([]byte("MyBucket")).Cursor()
prefix := []byte("1234")
for k, v := c.Seek(prefix); bytes.HasPrefix(k, prefix); k, v = c.Next() {
    fmt.Printf("key=%s, value=%s\n", k, v)
}

return nil

})
Range scans
Another common use case is scanning over a range such as a time range. If
you
use a sortable time encoding such as RFC3339 then you can query a specific
date range like this:
db.View(func(tx *bolt.Tx) error {
// Assume our events bucket exists and has RFC3339 encoded time keys.
c := tx.Bucket([]byte("Events")).Cursor()
// Our time range spans the 90's decade.
min := []byte("1990-01-01T00:00:00Z")
max := []byte("2000-01-01T00:00:00Z")

// Iterate over the 90's.
for k, v := c.Seek(min); k != nil && bytes.Compare(k, max) <= 0; k, v = c.Next() {
    fmt.Printf("%s: %s\n", k, v)
}

return nil

})
—
Reply to this email directly or view it on GitHub
https://github.com/boltdb/bolt/issues/518#issuecomment-187211346.

I'm not 100% confident, but I do not think that you will be able to do joins or cardinality with boltdb. Those are operations that can be done by a relational database. Boltdb is not a relational database.

@joeblew99 As @DavidVorick mentioned, there's no concept of indexes in Bolt. However, you can build your own which do effectively the same thing.
The easiest way is to add a bucket that serves as the index. Let's say you have an Accounts bucket with a one-to-many relationship to a Users bucket. Each of these would be keyed on their primary key (Account ID and User ID, respectively). If you wanted to be able to look up Users by account you can add another bucket (called UserAccounts or Users.AccountID or whatever) and use nested buckets. The key would be the AccountID and then the key each nested bucket would be the UserID (with no value).
It ends up looking like this:
- Accounts (bucket)
  - 100: {Name:"ABC Corp"}
  - 200: {Name:"Widgets, Inc"}

- Users (bucket)
  - 1: {Name:"Susy", AccountID: 100}
  - 2: {Name:"John", AccountID: 100}
  - 3: {Name:"Abby", AccountID: 200}

- Users.AccountID (bucket)
  - 100 (bucket)
    - 1:
    - 2:
  - 200 (bucket)
    - 3:

Then if you want to retrieve users by account ID then you simply go to the User.AccountID bucket and then into the nested bucket for the given Account ID and you can read all the User IDs for that account.

To perform your search by username, you would need something similar. You would need a separate bucket to map username to user id:
- Accounts
  - 100: {Name:"ABC Corp"}
  - 200: {Name:"Widgets, Inc"}

- Users
  - 1: {Name:"Susy", AccountID: 100}
  - 2: {Name:"John", AccountID: 100}
  - 3: {Name:"Abby", AccountID: 200}

- Users.Name
  - "Abby": 3
  - "John": 2
  - "Susy": 1

However, if your data set is small it can be easier to simply brute force load the data and then perform filtering & sorting.

That nails it. Thanks Ben.
Quite easy concept. Take the primitives of what SQL does and do the same in
golang.
If the compute and data is on the same box its still fast.
If you can point me to examples of code doing the sort , order , etc would
be great. I understand if not any time.
I had a look around github but did not have much luck :)
Now when you want to shard the boltdb physically ( for perf or throughput
reasons ) the design pattern would be map reduce type of thing I assume ?
If yes, it looks to me like:

code up map reducers on top of the primitive sort, group etc code.
physically you can either deploy the map reducers above OR put at the
exact same level as the primitives and allow all servers ( with boltdb and
golang code together ) to talk to each other. A simple load balancer then
picks the leader of that request for the map reduce.

On Tue, 23 Feb 2016, 15:41 Ben Johnson<EMAIL_ADDRESS>wrote:

@joeblew99 https://github.com/joeblew99 As @DavidVorick
https://github.com/DavidVorick mentioned, there's no concept of indexes
in Bolt. However, you can build your own which do effectively the same
thing.
The easiest way is to add a bucket that serves as the index. Let's say you
have an Accounts bucket with a one-to-many relationship to a Users
bucket. Each of these would be keyed on their primary key (Account ID and
User ID, respectively). If you wanted to be able to look up Users by
account you can add another bucket (called UserAccounts or Users.AccountID
or whatever) and use nested buckets. The key would be the AccountID and
then the key each nested bucket would be the UserID (with no value).
It ends up looking like this:

Accounts (bucket)

100: {Name:"ABC Corp"}
200: {Name:"Widgets, Inc"}

Users (bucket)

1: {Name:"Susy", AccountID: 100}
2: {Name:"John", AccountID: 100}
3: {Name:"Abby", AccountID: 200}

Users.AccountID (bucket)

100 (bucket)

1:
2:

200 (bucket)

3:

Then if you want to retrieve users by account ID then you simply go to the
User.AccountID bucket and then into the nested bucket for the given
Account ID and you can read all the User IDs for that account.
To perform your search by username, you would need something similar. You
would need a separate bucket to map username to user id:

Accounts

100: {Name:"ABC Corp"}
200: {Name:"Widgets, Inc"}

Users

1: {Name:"Susy", AccountID: 100}
2: {Name:"John", AccountID: 100}
3: {Name:"Abby", AccountID: 200}

Users.Name

"Abby": 3
"John": 2
"Susy": 1

However, if your data set is small it can be easier to simply brute force
load the data and then perform filtering & sorting.
—
Reply to this email directly or view it on GitHub
https://github.com/boltdb/bolt/issues/518#issuecomment-187723608.

For inspiration of the map reduce in golang:
https://blog.gopheracademy.com/advent-2015/glow-map-reduce-for-golang/

@joeblew99 Yeah, essentially Go becomes your query language. :)
If you are brute forcing the sorting by loading the objects into memory and then sorting then you can simply use the built-in sort package. There are some examples in the package docs.
As far as map/reduce, that's a much more complex topic (and outside of the scope of Bolt). Certain operations are map/reducible but some are not. There's quite a bit of documentation on the subject and it looks like that Glow package might be a good starting point.

Hi @joeblew99
Maybe you can use this https://github.com/ahmetb/go-linq
this lib aims we can do query like RDBMS in our slice, once you get data from BoltDB, you can play with it.


Support generic scoped types for java

Fixes #1828
Checklist

[x] I have added tests
[/] I have updated the docs and cheatsheet
[/] I have not broken the cheatsheet

I have updated the test to be a bit clearer.


RestClient::BadRequest (400 Bad Request): while posting.

I was using the code like as follows -
def broadcast_on_facebook(donation)
client = FBGraph::Client.new(:client_id => facebook_account.uid ,:token => facebook_account.access_token)
u = client.selection.me.info!
client.selection.user(u[:id]).feed.publish!(
:message => "I donated for #{donation.cause.name} on 97 Changes. Feels good and satisfied to be helpful to somebody in need.",
:name => "Donate Now !!",
:link => "#{RETURN_URL_LOCALHOST}?uuid=#{uuid}",
:picture => 'https://d3nwyuy0nl342s.cloudfront.net/images/modules/header/logov3-hover.png',
:caption => donation.cause.description
)
donation.update_attributes(:broadcasted => true)
end
This code used to give me RestClient::BadRequest error sometimes. And this behavior was very random. It took me long to debug that issue which was with :caption part here. As sometimes, values for :caption was more than 255 characters and so request was failing. It took some time to figure out and change above code to use :description rather than :caption.
Just posting here so somebody may find helpful, also can fbgraph has something to reflect errors little better way?

This code used to give me RestClient::BadRequest error sometimes. And this behavior was very random. It took me long to debug that issue which was with :caption part here. As sometimes, values for :caption was more than 255 characters and so request was failing. It took some time to figure out and change above code to use :description rather than :caption.
Just posting here so somebody may find helpful, also can fbgraph has something to reflect errors little better way?


Use Kustomize + Make to generate OSS manifests

Following the instructions to build from source, I found that the process was a bit cumbersome and error-prone, for a few reasons:

Not all required manifests were included (the ns reconciler cluster role was missing)
The setup required me to build the images every time I exported manifests, even if I knew that nothing had changed that would render different images (which hurt iteration speed on my scripting downstream)
The output was a jumble of files, with unclear/nonexistent naming conventions

Using Kustomize and moving most of the actual code into Makefile.oss, I was able to greatly simplify scripts/build-oss.sh, and also make it possible to run parts of that process directly through make (as long as GCP_PROJECT and TAG are provided). For example, you can now bundle the manifests required to install Config Sync with make -C <repo root> oss-manifests GCP_PROJECT=<your project> TAG=latest, without triggering Docker builds or pushes.

Take a look at https://github.com/GoogleContainerTools/kpt-config-sync/pull/148 as I think it should solve most of the same problems, as well as de-duping the make target for OSS manifests. I do like your usage of kustomize here, I agree that it adds readability and simplicity

/ok-to-test

I'm gonna close this since #148 landed 🎉


[Feature] support for new send destination

Looks like the new version of the Android app has send destination to car.
I will look at the latest build and see if this api can be easily called.

SendPOI's
Execute URL: /service/g2/sendPoi/execute.json
Service Callback URL: /service/g2/sendPoi/status.json
{ "pois": [List Data Element of items below] };
{name : elem.data("name"),
formattedAddress : elem.data("formattedaddress"),
latitude : elem.data("latitude"),
longitude : elem.data("longitude"),
streetNumber : elem.data("streetnumber"),
street : elem.data("street"),
city : elem.data("city"),
state : elem.data("state"),
zip : elem.data("zip")
}
}


[KMM Error] java.lang.UnsatisfiedLinkError

Describe the bug
Hi @MaximPestryakov, I tried to use 3.1.14 into KMM project, but i got java.lang.UnsatisfiedLinkError. And i checked the package name from KMM(com.trustwallet.core) is not same as wallet-core(wallet.core.**). I am sure i have loaded the .so file but i am not sure if i setup the project in right way.
here is my shared module gradle file, wallet-core implementation in app module

Screenshots

@BreakZero Thanks for reporting! I've just fixed this issue: #2929. Please, wait for the next release. And be careful as this library may be unstable. Also, you can only specify it once for common target:
val commonMain by getting {
    dependencies {
        implementation("com.trustwallet:wallet-core-kotlin:3.1.14")
    }
}


Client Notes: Add in PREFIX for index to improve command parsing.

 Should add in an prefix to improve this.
Not the highest priority right now.

Moving to v1.4 due to low priority

Not going to do this for v1.4, may consider as further extension.


Provide the ability to organize block type sets, reorder them in the dashboard.

It would be nice to have block sets sorted alphabetically in the add panel (or having a page allowing to change the display order, as it seems to be possible in the db).

Related to this, displayOrder appears to be ignored in the block add panel. For each Set It just spits the blocks in the order they come out of the BlockTypes table.

Sort order ought to be something that is respected at the block type set level, so that an admin could reorder the block types in the dashboard for each set, and have that persist.

The whole blocks display would be clearer if it were organised by set and sort displayOrder. Then with an ability to drag sets into order or drag blocks into order within a set. And the whole sets and blocks order respected in the add pane and any other block selecting menu.

Fixed in #6875 !


Power-saving sleep makes some Wine games perform really bad

The power-saving usleep introduced with bebe0bfc3da37f6261d0be2b77f74cd3ea58870d makes some Wine games perform really badly: The game stutters, with the framerate going down to <5fps (estimated) every few seconds. Specifically, both TrackMania Nations: United and Audiosurf are unplayable with the default configuration. Setting PRIMUS_SLEEP=10 fixes the problem: Both games remain perfectly fluid (>=30fps, I would estimate).
Some other games I tried are not affected, which is why it took me so long to notice this.
This is with Debian testing, an NVIdia GeForce 630M and an Intel Sandybridge GPU.

Can you try checking how CPU frequency scaling affects it? Specifically, by checking whether using "performance" scaling governor and p-state/acpi scaling driver changes things.

Can you try checking how CPU frequency scaling affects it?  I can try that.

and p-state/acpi scaling driver changes things.

What exactly would I have to do to try this?

On Tue, Mar 31, 2015 at 4:18 PM, Ralf Jung<EMAIL_ADDRESS>wrote:

Can you try checking how CPU frequency scaling affects it?  I can try that.

Right, and ...

and p-state/acpi scaling driver changes things.

What exactly would I have to do to try this?

You can use dmesg | grep -iE p.?state to see if pstate driver is used by
default. If so, you can boot with intel_pstate=disable on the kernel
command line to disable it, and then the old acpi scaling driver will be
used.

Changing the governor to "performance" did not have any noticeable effect.
Then I rebooted with intel_pstate=disable, and indeed now things behave much better. Of course, I won't leave the p-states disabled...
I also did a crazy (stupid?) experiment and set PRIMUS_SLEEP to 150. The effect was that it would sleep longer and longer with every frame, presumably it would take 150% of its previous sleep time, not knowing that it could actually have been much faster... in other words, it seems the heuristic is not good at compensating that it slept too long (and will only do that in 10% steps, with the default setting, I guess). Mind you, this is without actually looking at the code.

On Tue, Mar 31, 2015 at 9:54 PM, Ralf Jung<EMAIL_ADDRESS>wrote:

Changing the governor to "performance" did not have any noticeable effect.
Then I rebooted with intel_pstate=disable, and indeed now things behave
much better. Of course, I won't leave the p-states disabled...

This flag does not disable frequency scaling altogether, it switches from
Intel p-state driver to ACPI cpufreq driver. Intel p-state driver is
relatively new, and I've seen  mentions that sometimes it has worse
behavior (nothing specific though). What kernel version are you running?

I also did a crazy (stupid?) experiment and set PRIMUS_SLEEP to 150. The
effect was that it would sleep longer and longer with every frame,
presumably it would take 150% of its previous sleep time, not knowing that
it could actually have been much faster... in other words, it seems the
heuristic is not good at compensating that it slept too long (and will only
do that in 10% steps, with the default setting, I guess). Mind you, this is
without actually looking at the code.

Right, setting PRIMUS_SLEEP at 100 or above is not useful, and recovering
after a long delay takes several frames. Currently the heuristic is
extremely simple.

—
Reply to this email directly or view it on GitHub
https://github.com/amonakov/primus/issues/164#issuecomment-88208117.

This flag does not disable frequency scaling altogether, it switches from
Intel p-state driver to ACPI cpufreq driver. Intel p-state driver is
relatively new, and I've seen  mentions that sometimes it has worse
behavior (nothing specific though).

I see. I did not have problems so far. Whatever that means^^

What kernel version are you running?

$ uname -a
... 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux


Typos: some corrections

Thanks for this fix! Could you please squash your commits and fix the sign-off. Happy to merge it!

Hi! I'd separated them for ease of understanding and did the editing from the Github web interface, which doesn't offer squashing.
Tried to squash and sign-off locally. Let me know if this ok.

Hi! I'd separated them for ease of understanding and did the editing from the Github web interface, which doesn't offer squashing.
Tried to squash and sign-off locally. Let me know if this ok.

mh ... seems that your patch causes a conflict now :/ ... and for successful DCO check we need a sign-off for every commit.
I suggest that you locally do a rebase -i, squash everything into as many commits as needed (for logical separation) and make sure that every commit has the sign-off. Then you do a push -f.

Hi @axelsimon, did you have time to look at Marcus' comment on your PR?  We would need the DCO to accept the PR and it currently also doesn't merge with master. thanks!

I will close this PR due to low activity. I am happy to reopen.

Hey @mbrandenburger, i finally managed to rebase all the changes properly and squash all commits to a single logical commit, which is signed-off. I think these improvements should now be mergeable.
Would you please reopen the PR? :)

Github doesn't let us reopen a PR if the underlying branch was updated after the PR was closed. Can you create a new PR with the updated branch?


More Python 3 fixes

@DailyDreaming Here are some fixes I have done on top of your python23compat branch. I "fixed" some problems I ran into getting the tests up and running (such as the Makefile trying to always use 2.7 versions of things), and I've fixed a couple bugs that made tests fail.
I've now hit the find_global problem that was mentioned this morning. I can try fixing that, but I wanted to PR this first, into your python23compat pr.

I left the Makefile 2.7 requirements in purposely just for the time being, since that meant being able to merge incrementally while keeping it python2.7 consistent.  I took out the other 2.7 gatekeepers that mostly seemed redundant though.
If you're curious, using the python3 Unpickler's find_class method as a first naive drop in replacement:
        if sys.version_info[0] == 2:
            unpickler.find_global = filter_main
        else:
            unpickler.find_class = filter_main

Yields the error:
Traceback (most recent call last):
  File "/home/quokka/git/deltoil23/toil3/toil/src/toil/test/src/workerTest.py", line 58, in testNextChainableJobGraph
    self.assertEquals(jobGraph2, nextChainableJobGraph(jobGraph1, self.jobStore))
  File "/home/quokka/git/deltoil23/toil3/toil/src/toil/worker.py", line 98, in nextChainableJobGraph
    successorJob = Job._loadJob(successorJobGraph.command, jobStore)
  File "/home/quokka/git/deltoil23/toil3/toil/src/toil/job.py", line 900, in _loadJob
    return cls._unpickle(userModule, fileHandle, jobStore.config)
  File "/home/quokka/git/deltoil23/toil3/toil/src/toil/job.py", line 930, in _unpickle
    unpickler.find_class = filter_main
AttributeError: '_pickle.Unpickler' object attribute 'find_class' is read-only

Also, jenkins is down since we disabled Edwin's account on AWS. I've asked Erich to re-enable it, but expect a lot of tests to fail before that's addressed.

OK, I think I've come up with a solution for the unpickler: if monkey-patching the Python 2 method name fails, define a class and override the Python 3 method name.
Now I'm on to finding all the places we try to pickle to/from text-mode files; I've caught enough of them that I can get src/toil/test/batchSystems/batchSystemTest.py::MaxCoresSingleMachineBatchSystemTest::testServices to pass, which seems to exercise some of the fileStore and jobStore code.

Cool.  I like the unpickler solution.

It looks like we've settled on file store streams (for e.g. writeSharedFileStream) being binary-mode, so you have to encode/decode text going to/from them in Python 3. Does that make sense? Do we want to think about enhancing the API to let you specify what kind of stream you want, to make text IO easier?

It looks like we've settled on file store streams (for e.g. writeSharedFileStream) being binary-mode, so you have to encode/decode text going to/from them in Python 3. Does that make sense?
I chose binary-mode because it seemed the closest to the old python2.7 code, since the old strings were bytestrings, but I don't have any strong reason to keep it that way.  The decision was semi-arbitrary, but honestly, having not coded a lot of python 3, I am not familiar with what the typical convention there is.  If it looks odd to you having it be 'wb' and 'rb', then I am not opposed at all to going in the other direction so long as we try to be consistent.
Do we want to think about enhancing the API to let you specify what kind of stream you want, to make text IO easier?
If that's a use-case you have, and feel others would use, then sure.  I'm not opposed at all.  I do have a vague suspicion that that might create complications, but no concrete reason that it would.

If the data can be either text or binary, then the best approach is
it to have the same parameters as open (encoding and error) and behaive
consistently.
DailyDreaming<EMAIL_ADDRESS>writes:

It looks like we've settled on file store streams (for e.g.
writeSharedFileStream) being binary-mode, so you have to encode/decode text
going to/from them in Python 3. Does that make sense?
I chose binary-mode because it seemed the closest to the old python2.7 code,
since the old strings were bytestrings, but I don't have any strong reason to
keep it that way. The decision was semi-arbitrary, but honestly, having not
coded a lot of python 3, I am not familiar with what the typical convention
there is. If it looks odd to you having it be 'wb' and 'rb', then I am not
opposed at all to going in the other direction so long as we try to be
consistent.
Do we want to think about enhancing the API to let you specify what kind of
stream you want, to make text IO easier?
If that's a use-case you have, and feel others would use, then sure. I'm not
opposed at all. I do have a vague suspicion that that might create
complications, but no concrete reason that it would.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.*

I think we want to put off a change to the stream API until we get Python 3 actually working and passing the tests. Then we can add support for Pythonic specification of what kind of stream we want, and remove a bunch of encode/decode calls.
@DailyDreaming I'm getting to the end of the tests I can run locally that are failing. Is there a way to run e.g. the Azure job store tests outside of Jenkins?

@adamnovak To the first, I agree with deferring other changes until this is done.  To the second, run make docker and set:
TOIL_TEST_INTEGRATIVE=True;
TOIL_AZURE_KEYNAME=;
TOIL_AZURE_ZONE=westus;


Added diagnostic and recipe of Wenzel et al. , J. Climate 29 (2016)

This PR adds all necessary diagnostics and recipes for the paper mentioned in the table. Necessary for @axel-lauer's ESMValTool paper.

Tasks

[x] Create an issue to discuss what you are going to do, if you haven't done so already (and add the link at the bottom)
[x] Give this pull request a descriptive title that can be used as a one line summary in a changelog
[x] Make sure your code is composed of functions of no more than 50 lines and uses meaningful names for variables
[x] Circle/CI tests pass. Status can be seen below your pull request. If the tests are failing, click the link to find out why.
[x] Preferably Codacy code quality checks pass, however a few remaining hard to solve Codacy issues are still acceptable. Status can be seen below your pull request. If there is an error, click the link to find out why. If you suspect Codacy may be wrong, please ask by commenting.
[x] Please use yamllint to check that your YAML files do not contain mistakes
[x] (Only if really necessary) Add any additional dependencies needed for the diagnostic script to setup.py, esmvaltool/install/R/r_requirements.txt or esmvaltool/install/Julia/julia_requirements.txt (depending on the language of your script) and also to meta.yaml for conda dependencies (includes Python and others, but not R/Julia)
[x] If new dependencies are introduced, check that the license is compatible with Apache2.0

New recipe/diagnostic

[x] Add documentation for the recipe to the doc/sphinx/source/recipes folder and add a new entry to index.rst
[x] Add provenance information

Closes #516

@mattiarighi I addressed all of your comments and successfully tested the recipe after that :+1:


Purpose for collecting and sharing user information

We should consider adding indicators on the purpose of information collection and use, in line with internationally recognized privacy principles (e.g., OECD Privacy Principles).  Companies should specify the purpose of data collection and limit the subsequent uses to the fulfillment of the specified purposes. I recommend adding the following indicators under a new criterion in the privacy category.

The company clearly discloses its purpose for collecting user information.
The company clearly discloses its purpose for sharing user information.
The company clearly disclose that it limits its use of user information to the purpose for which it was collected.
The company clearly discloses the purpose for combining user information from various services (if it does combine).

@TatevSarg thanks for the suggestion! We agree with your suggestions, but are unsure where we should place these suggestions in the Standard. Should it go under Transparency? Data Collection? Privacy policies? Do you mind making this issue a pull request and suggesting where to place it in the Standard? Thanks so much!

Katie, I tried to make the changes and pull a request but I do not think it worked. So here are my suggestions as to where these additional indicators should go. I propose adding another sub-section under "Is it Private" called "Purpose for collecting and sharing user information" with the following test names:
Test Name
Purpose specification
Criteria
The company clearly discloses why it collects, aggregates and shares user information.
Indicators

The company clearly discloses its purpose for collecting user information.
The company clearly discloses its purpose for sharing user information.
The company clearly discloses the purpose for combining user information from various services (if it does combine).

Test Name
Limitation on Information Use and Sharing
Criteria
The company clearly discloses that it limits use of information to the purposes specified at the time of collection.
Indicators

The company clearly discloses that it limits its use of user information to the purposes for which it was collected.
The company clearly discloses that it obtains consent from users if the purposes for which it uses  information change (I just added this one).
The company clearly discloses that it shares user information as is reasonably necessary for the service to work (this one was suggested in #74 )

Alternatively, we can add the indicators into existing test names such as "Data Collection" and "Data Use"

Perhaps connect to https://github.com/TheDigitalStandard/TheDigitalStandard/issues/84


net: replace reth-primitive imports with alloy-eips

Progress on https://github.com/paradigmxyz/reth/issues/10749

Removing this unused import leads to this
error[E0432]: unresolved import `alloy_eips`
  --> crates/net/eth-wire/tests/fuzz_roundtrip.rs:51:9
   |
51 |     use alloy_eips::BlockHashOrNumber;
   |         ^^^^^^^^^^ use of undeclared crate or module `alloy_eips`
   |
help: there is a crate or module with a similar name
   |
51 |     use alloy_rlp::BlockHashOrNumber;
   |         ~~~~~~~~~

Removing this unused import leads to this
error[E0432]: unresolved import `alloy_eips`
  --> crates/net/eth-wire/tests/fuzz_roundtrip.rs:51:9
   |
51 |     use alloy_eips::BlockHashOrNumber;
   |         ^^^^^^^^^^ use of undeclared crate or module `alloy_eips`
   |
help: there is a crate or module with a similar name
   |
51 |     use alloy_rlp::BlockHashOrNumber;
   |         ~~~~~~~~~

you need to demote it to a dev dependency instead, it's used in a test