Support for Test-Driven Development

Test-Driven Development (TDD) is widely recognized as a good way to develop software.
Sadly, using TDD with this library has been impossible, because there is no good way to assert on the state of the UI.
To fix this, I started work on some getters that return the current state of some widgets and help with creating small and maintainable unit tests.
(See also this discussion I started a while back: https://github.com/ratatui-org/ratatui/discussions/78)
I hid these changes behind a feature flag called "unstable-testing-mode", because I'm not quite certain if this is the best way to implement this feature.
This feature is also by no means complete yet. It's just here to gather feedback and to (maybe) get some help implementing it.

Hey, this seems like a lot of extra code baggage to carry around, and I'm not seeing the obvious benefit (mainly as although it's supposed to support TDD, there are no tests that show that it supports TDD).
The fields of each widget are kind of like parameter objects to the render widget call. Their primary purpose is not behavioral, but just to provide data for the render function. So generally the field methods should store the value passed in and be done with it (there are a few exceptions to this). This suggests to me that the main value in testing would be in testing the result of the render calls rather than worrying about what the fields hold.
Can we take a step back from the implementation for a minute and look at a vertical piece (i.e. a single widget / area of your app) of the problem you're solving with this? What do the tests that you want to write for an application look like?

Thanks for your reply @joshka!
My usecase for this is something like this:
My application should show some tabs for some categories of data defined in a config file.
For this, I wrote the function get_category_tabs:
fn get_category_tabs<'a>(categories: &Vec<Category>, current_tab: usize) -> Tabs {
    let titles: Vec<Line> = categories
        .iter()
        .map(|category| Line::from(vec![Span::styled(&category.title, Style::default().fg(Color::Cyan))]))
        .collect();

    let tabs: Tabs = Tabs::new(titles)
        .block(Block::default().borders(Borders::ALL).title("Categories"))
        .select(current_tab)
        .style(Style::default())
        .highlight_style(Style::default().add_modifier(Modifier::BOLD).bg(Color::Yellow));

    return tabs;
}

Testing the output of the render call is quite complex and brittle, because I would need to either

mock a console window and assert its exact state
use a real console window and check each character.
This is a lot more overhead than I need in my tests, because I trust ratatuis rendering functions, I just want to assert that my code passes the correct values to the renderer.

So instead I test the state of the returned tabs object like this:
  #[test]
    fn categories_tabs() {
        let categories = vec![
            Category {
                title: "title 1".to_string(),
                actions: vec![],
            },
            Category {
                title: "title 2".to_string(),
                actions: vec![],
            },
        ];
        let tabs = get_category_tabs(&categories, 0);

        let tab1 = tabs.get_titles()[0].to_string();
        let tab2 = tabs.get_titles()[1].to_string();

        assert_eq!(tab1, "title 1");
        assert_eq!(tab2, "title 2");
    }

While this test is quite basic, it gives me confidence that the tabs are rendered with the correct titles everytime, even if I refactor some functions.
I didn't add tests for my library code, because I felt like adding tests for getters would be a lot of overhead. The idea with the derive macro is great, I will look into that.
I hope I cleared up some things, but feel free to ask more questions :)

Something I've been pushing for more of internally is to write our unit tests for widgets like the following to cut out the backend etc:
#[test]
fn categories_tabs() {
    let categories = vec![
        Category {
            title: "title 1".to_string(),
            actions: vec![],
        },
        Category {
            title: "title 2".to_string(),
            actions: vec![],
        },
    ];
    let tabs = get_category_tabs(&categories, 0);

    let mut buffer = Buffer::empty(Rect::new(0, 0, 30, 3));
    tabs.render(buffer.area, &mut buffer);

    let mut expected = Buffer::with_lines(vec![
        "┌Categories──────────────────┐",
        "│ title 1 │ title 3          │",
        "└────────────────────────────┘",
    ]);
    expected.set_style(
        Rect::new(2, 1, 7, 1),
        Style::new().cyan().on_yellow().bold(),
    );
    expected.set_style(
        Rect::new(12, 1, 7, 1),
        Style::new().cyan().on_yellow().bold(),
    );
    assert_buffer_eq!(buffer, expected);
}

The output is useful for finding when there is an error in the test (e.g. title 3 and the second background color is different in the test):
expected: Buffer {
    area: Rect { x: 0, y: 0, width: 30, height: 3 },
    content: [
        "┌Categories──────────────────┐",
        "│ title 1 │ title 3          │",
        "└────────────────────────────┘",
    ],
    styles: [
        x: 0, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,
        x: 2, y: 1, fg: Cyan, bg: Yellow, underline: Reset, modifier: BOLD,
        x: 9, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,
        x: 12, y: 1, fg: Cyan, bg: Yellow, underline: Reset, modifier: BOLD,
        x: 19, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,
    ]
}
actual: Buffer {
    area: Rect { x: 0, y: 0, width: 30, height: 3 },
    content: [
        "┌Categories──────────────────┐",
        "│ title 1 │ title 2          │",
        "└────────────────────────────┘",
    ],
    styles: [
        x: 0, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,
        x: 2, y: 1, fg: Cyan, bg: Yellow, underline: Reset, modifier: BOLD,
        x: 9, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,
        x: 12, y: 1, fg: Cyan, bg: Reset, underline: Reset, modifier: NONE,
        x: 19, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,
    ]
}
diff:
0: at (12, 1)
  expected: Cell { symbol: "t", fg: Cyan, bg: Yellow, underline_color: Reset, modifier: BOLD, skip: false }
  actual:   Cell { symbol: "t", fg: Cyan, bg: Reset, underline_color: Reset, modifier: NONE, skip: false }
...

You might wonder why the content is displayed like an array of strings like this. It feeds pretty well into a Red Green Refactor flow. Most of the time when I write unit tests for ratatui, I'll write a stub of what will end up in the expected buffer and then just copy the actual rendering out to the test. It's not usually much more than 10-15 seconds. I'd like it to be shorter though.
There's some ergonomics missing from this that would be nice to speed that flow up perhaps:

A way to write the buffer state and formatting in one line in a way that still makes it visually easy to detect
More concise error reporting / perhaps something similar to pretty_assertions that does color?
A reduction in the extraneous noise - perhaps switching Buffer::with_lines(vec![...]) to something a little like:

let selected_style = Style::new().cyan().on_yellow().bold();
let normal_style = Style::new().cyan();
assert_widget_renders!(
    tabs,
    [
        "┌Categories──────────────────┐",
        "│ title 1 │ title 2          │",
        "└────────────────────────────┘",
    ],
    [
        (Rect::new(2, 1, 7, 1), selected_style),
        (Rect::new(12, 1, 7, 1), normal_style),
    ]
);

Imagine that this is the output* of the test - would that solve most of your TDD issues?

(the styles could probably be collapsed to just the unique styles and spat out as style_1, style_2 etc.)

Ideally with a derive macro approach we'd find a way to reduce a bunch of code for both setters and getters (i.e. perhaps all the existing builder functions could be replaced with some macro magic, which would make this something we can implement across all the widgets at once)
imagine:
#[derive(..., WidgetBuilders]
#[cfg_attr(test, derive(WidgetGetters)]
struct Tabs {
// unchanged (doc comments moved to properties from functions that are removed
}

impl Tabs {
  fn new() {
  // unchanged
  }

  // every builder function is deleted
}

I do like the way you propose to structure unit tests for ratatui, but I think we should split our discussion between unit tests internal to ratatui (that need to assert the exact render output) and tests external to ratatui (that trust the renderer and just want to assert that some properties are set correctly).
My main issue with these sort of tests is the need of a "correct" border around the tabs. Because I trust ratatui and I don't want to test the renderer itself, I don't need to care if the Tabs look like this:
        "┌Categories──────────────────┐",
        "│ title 1 │ title 2          │",
        "└────────────────────────────┘",

or like this:
        "┌Categories──────────────┐",
        "│ title 1 │ title 2      │",
        "└────────────────────────┘",

It is nice to have the option though, and it's definitely the correct / best way to test the render function output.
The elegance of "my" way of testing is being able to just find out one field of the widget, instead of having to check each property individually.
So as long as i don't care about the exact rendering, a test like the one I proposed above is a lot more stable.

I think the derive macros should have their own disscussion, but I really like the way you are going with here.
Sadly, my rust knowledge is not close to being advanced enough to implement a macro like this :/

BTW, i really apprechiate the way this conversation is going, if I have the time in the future I will definitely contribute more to ratatui.

There's some related discussion on this in https://github.com/ratatui-org/ratatui/issues/619

Thanks for the notification @joshka!
Feel free to close this merge request if #619 gets merged. It's aim is basically the same, but the scope isn't as broad and the implementation is actually getting worked on. (I sadly don't have a lot of time for working on this right now)

Bad bot :D


Added : 2405 Optimal-Partition-of-String in Cpp

File(s) Modified: 2405 Optimal-Partition-of-String.cpp, etc..._
Language(s) Used: cpp, etc..._
Submission URL:https://leetcode.com/problems/optimal-partition-of-string/description/
//: # "Getting the Submission URL"
//: # "Go to the leetcode Submissions tab"
//: # "and click on the Accepted status of your submission.]"
//: # "Finally copy the URL from the nav bar, it should look like https://leetcode.com/problems/[problem-name]/submissions/xxxxxxxxx/"

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

Solution is similar to other PRs


Fix React Native example

Description
Somewhere in the past few months our React Native example has broken. From the looks of it some dependencies have updated how their work internally which resulted in the example breaking.
Steps to reproduce
Try and run the example.
Additional context
I think we should recreate the example from scratch using expo-cli and I have done that already when testing, but the next part is we need detox for automatic testing. This is what I wasn't able to figure out with the limited time I spent on the issue. Since I was able to create a working react native example perhaps we should use that, but for our testing we make a separate directory?
Hedera network
other
Version
v2.12.0
Operating system
Linux

Didn't realize linking this issue would close it as well. This issue is technically not finished because our automatic testing is in fact broken with the current example. However, said that the example does run if you manually execute it which is better than not running at all. I'm going to table this issue for now as detox and jest-expo aren't playing very well together right now, but I hope they'll play better later when we revisit the issue.


Bumped Mesos and mesos-modules to master.

High Level Description
Bumps Mesos and mesos-modules to the HEAD of their master branches.
Related Issues

MESOS-8014 Provide HTTP authenticatee interface re/usable for the scheduler library.
...

Checklist for all PR's

[X] Included a test which will fail if code is reverted but test is not. If there is no test please explain here: the changes are covered by the Mesos and DC/OS test suite.
[X] Read the DC/OS contributing guidelines
[X] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[X] mesos-modules changelog
[X] mesos changelog
[X] Test Results

@mesosphere-mergebot label [Work In Progress]
@mesosphere-mergebot bump-ee

I was looking with @klueska yesterday on how to do this :+1:

@mesosphere-mergebot bump-ee

@adam-mesos I was hoping to get a better "High Level Description" and list of related issues before marking this as ready for review... but I couldn't find any volunteers yet ;-)

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

@lingmann @orsenthil this one has been pending for a while. It has the approvals but seems like the CI is not picking up the approvals.

@asridharan - there is only one approval since the last push in EE.

And EE does not have any reviews.


pouchdb plugins: Promise is not a constructor

Bug: I'm receiving and issue with adding pouchdb plugins, such as pouchdb-find.
Error:
taskqueue.js?b66b:9 Uncaught (in promise) TypeError: Promise is not a constructor
    at new TaskQueue (eval at ./node_modules/pouchdb-find/lib/abstract-mapreduce/taskqueue.js (0.chunk.js:364), <anonymous>:9:18)
    at Object.eval (eval at ./node_modules/pouchdb-find/lib/abstract-mapreduce/index.js (0.chunk.js:356), <anonymous>:22:21)
    at eval (eval at ./node_modules/pouchdb-find/lib/abstract-mapreduce/index.js (0.chunk.js:356), <anonymous>:701:30)
    at Object../node_modules/pouchdb-find/lib/abstract-mapreduce/index.js (0.chunk.js:356)
    at __webpack_require__ (main.js:687)
    at fn (main.js:110)
    at eval (eval at ./node_modules/pouchdb-find/lib/adapters/local/abstract-mapper.js (0.chunk.js:396), <anonymous>:4:25)
    at Object../node_modules/pouchdb-find/lib/adapters/local/abstract-mapper.js (0.chunk.js:396)
    at __webpack_require__ (main.js:687)
    at fn (main.js:110)

Uncaught (in promise) TypeError: Promise is not a constructor
    at new TaskQueue (eval at ./node_modules/pouchdb-find/lib/abstract-mapreduce/taskqueue.js (0.chunk.js:364), <anonymous>:9:18)
    at Object.eval (eval at ./node_modules/pouchdb-find/lib/abstract-mapreduce/index.js (0.chunk.js:356), <anonymous>:22:21)
    at eval (eval at ./node_modules/pouchdb-find/lib/abstract-mapreduce/index.js (0.chunk.js:356), <anonymous>:701:30)
    at Object../node_modules/pouchdb-find/lib/abstract-mapreduce/index.js (0.chunk.js:356)
    at __webpack_require__ (main.js:687)
    at fn (main.js:110)
    at eval (eval at ./node_modules/pouchdb-find/lib/adapters/local/abstract-mapper.js (0.chunk.js:396), <anonymous>:4:25)
    at Object../node_modules/pouchdb-find/lib/adapters/local/abstract-mapper.js (0.chunk.js:396)
    at __webpack_require__ (main.js:687)
    at fn (main.js:110)

Version: 3.4.0
Node: v7.4.0
npm: 4.5.0
Browser: testing in Chrome version 57.0.2987.133

Steps (added to HomePage\index.js):
npm install pouchdb-find@latest --save
npm install pouchdb-browser@latest --save
npm install pouchdb@latest --save

import PouchDB from 'pouchdb'; // alternatively 'pouchdb-browser'
import PouchFind from 'pouchdb-find';
PouchDB.plugin(PouchFind);

Is this possibly an issue because of Webpack and Babel?

I'm getting the same issues. I suspect Webpack as well. Will post back here when (if!) I find a solution.

Wasn't able to get this to work, but I ended up simply including node_modules/pouchdb/dist/pouchdb.js from my Html... the old-fashioned way!
Sometimes I wonder if Webpack et al aren't far more trouble than they're worth, esp while first getting things set up.

I saw this too.
A fresh npm install gave me a 6.3.x  where I was expecting ^6.1.2.  A different project worked with the same semantics using 6.2.0:
import * as pouch from 'pouchdb-browser';
...
this.db = new pouch(RECORD_DB_NAME);
A quick downgrade to 6.2.0 using npm install<EMAIL_ADDRESS>--save --save-exact and I'm back in business.

I had similar problems with typings :-(
https://stackoverflow.com/questions/45805307/typeerror-pouchdb-1-default-is-not-a-constructor
The proposed answer removed type information, unfortunately

I have similar issue with the Promise is not a constructor:

Any one can give me some hint how to resolve the error?

+1

I found a solution but it's a bad practice, just copy the file on on the /dist folder of the pouchdb plugin.

Closing in favor of the above solution.


Delete un-supported AAD features.

Parent issue: #23710
Delete these features of AAD in azure-spring-boot-starter-active-directory:

group-name based access control. Discussed with AAD developers, they think that group-name should not used to authorize, because group-name can be changed in Azure AD. We should use Role-based access control (RBAC) instead.
group-id based access control. group-id is not human understandable when develop web-application. We should use Role-based access control (RBAC) instead.
AADAuthenticationFilter and AADAppRoleStatelessAuthenticationFilter. spring-security-oauth2-resource-server has provided resource-server feature, we should delete our resource-server implementation. The filter implementation was first add in  microsoft/azure-spring-boot#97 It's on 2017-08-07. At that time, there is no spring-security-oauth2-resource-server.

we need to add this into the migration guide, would you please create one issue to track this?

@stliu
I created an issue: https://github.com/Azure/azure-sdk-for-java/issues/23940

Closing this issue because related PR has been merged.


v1.1.1

Improve testing

Codecov Report

Merging #61 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master     #61     +/-   ##
========================================
+ Coverage    97.4%   97.5%   +0.1%
========================================
  Files           6       6
  Lines         962     962
========================================
+ Hits          937     938      +1
+ Misses         25      24      -1

Impacted Files
Coverage Δ

lineage/__init__.py
96.2% <100%> (+0.34%)
:arrow_up:

lineage/resources.py
98.96% <0%> (ø)
: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 8f9397c...de4e57c. Read the comment docs.

And re-structure library using cookiecutter-pylibrary...


🧱  Import AWS Shield Resources

Import AWS Shield protected resources as per this conversation.

I've since spoken to David Sibley and we do not need to import the EIP, in fact we cannot. This activity was more aimed at other accounts in MP
I can confirm that we only have EIPs in each of the accounts:
analytical-platform-compute-production
analytical-platform-ingestion-production
data-platform-apps-and-tools-production

Some more information here.


Improve Editor Right Click Events

Quick solution for #101 to prevent two menus from appearing when right-clicking in the editor. Can be switched out to only show EditorBubbleMenu instead if desired.

oh yeah great point – we might wanna replace this with a custom context menu in the future too! Thank you!

just realized that this disables the default browser context menu too, so it won't work 😓
Closing this for now – thank you though!


guess subcommand read 32KB only as sample data even  I define guess_sample_buffer_bytes explicitly.

Related: https://github.com/hiroyuki-sato/embulk-parser-jsonpath/issues/15
Expect behavior
guess sub command read guess_sample_buffer_bytes bytes as sample data.
Actual behavior
guess sub command read 32KB only as sample data even log output Try to read 3,072,000 bytes.
Environment

Embulk 0.8.31
embulk-parser-jsonpath: 0.2.0

Details
guess code is below.
    class Jsonpath < TextGuessPlugin
      Plugin.register_guess("jsonpath", self)

      def guess_text(config, sample_text)      def guess_text(config, sample_text)
puts "sample_text size: #{sample_text.size}"

seed.yml
in:
  type: file
  path_prefix: test.json
  parser:
    type: jsonpath
    root: "$.results"
exec:
  guess_sample_buffer_bytes: 3072000
out:
  type: stdout

ls -lh test.json
-rw-r--r--  1 user  wheel   2.4M Sep  7 08:54 test.json

embulk guess -I /path/to/embulk-parser-jsonpath/lib -g jsonpath seed.yml
2017-09-07 09:01:07.169 +0900: Embulk v0.8.31
...
2017-09-07 09:01:10.093 +0900 [INFO] (0001:guess): Try to read 3,072,000 bytes from input source
...
sample_text size: 32768
org.jruby.exceptions.RaiseException: (null) unexpected token at '{
      "name": "Jarod Muller",
      "city": "Gradyfurt",
      "street_name": "Lind L'
	at RUBY.load(/Users/hsato/.embulk/jruby/2.3.0/gems/multi_json-1.12.1/lib/multi_json.rb:124)
	at RUBY.process_object(/path/to/home/.embulk/jruby/2.3.0/gems/jsonpath-0.5.8/lib/jsonpath.rb:87)
	at RUBY.enum_on(/path/to/home/.embulk/jruby/2.3.0/gems/jsonpath-0.5.8/lib/jsonpath.rb:73)
	at RUBY.on(/path/to/home/.embulk/jruby/2.3.0/gems/jsonpath-0.5.8/lib/jsonpath.rb:65)
	at RUBY.guess_text(/path/to/embulk-parser-jsonpath/lib/embulk/guess/jsonpath.rb:13)
	at RUBY.guess(uri:classloader:/embulk/guess_plugin.rb:78)
	at RUBY.guess(uri:classloader:/embulk/guess_plugin.rb:24)

Error: (null) unexpected token at '{
      "name": "Jarod Muller",
      "city": "Gradyfurt",
      "street_name": "Lind L'

@muga Hm, maybe this one... Can you have a look when you have time?
https://github.com/embulk/embulk/blob/5c63e070e49c80975b453edec5b0115d97e669ab/embulk-core/src/main/java/org/embulk/exec/GuessExecutor.java#L232-L233


docs: features/software-catalog/external-integrations

Very good. One topic we have internally is to implement some kind of federation between multiple Backstage instances and implementing a custom processor was exactly what we also had in mind!

@Fox32 Hmmmm. Federation is actually an interesting approach to achieving security boundaries. Is that why you are looking into it? #3218

@freben Access rights is one reason, but the topic is a bit bigger:
Beside our internal instance we want to help our customers to build up their own instances. They won't be able to use our instances, as they want to connect their CI/CD environment and their custom tooling. CI/CD might be quite different between each other. However we want to share stuff like documentation and entity definitions of selected components we share with them (especially APIs). Think about them like other teams in the same company were we want to transparently share components and their APIs, but the teams use a different tooling.


nixos/usbguard: don't use path literal for pure evaluation

#256295 reintroduced ruleFile option, but set the default as a path literal, which was a "string path" previously.  This breaks evaluation for being impure:
error: access to absolute path '/var/lib/usbguard/rules.conf' is forbidden in pure eval mode (use '--impure' to override)
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Ah sorry 😔 I messed that up :/
I'll be back at my laptop in ~30mins and take a look

I have a systems flake which essentially contains my nixosConfigurations, which is regularly built by my personal Hydra.  Thus the flake defines hydraJobs with one Job per machine, and Hydra fails to evaluate with the path literal.  The affected branch uses nixpkgs/nixos-unstable-small for nixpkgs.  Besides Hydra, what also fails is nix flake show and nix eval --raw .#nixosConfiguration.<name>.config.system.build.toplevel for a machine <name> which uses the USBGuard module.  Machines who don't evaluate fine, though.


Build a Milestones of Mindee document

Build a Milestones of Mindee document which will help me for PR, history and articles. It will also be nice for new employees to see what we've accomplished and for those being with us for a while to see everything they achieved!

This is great we can use the Github Milestone feature and put a due date for the end of eery month

Oh no, I'm talking about Mindee Milestones history like "first version deployed" and "hire our first sales person" or "reach 20 millions in MRR"...

Oh 😃😃😄, but won't it be nice to use the GitHub Milestone and create releases for our documentation as well.

True!


Fixed missing Intrinsics class.

Fixes #603

 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.:x: podgorodetskiy sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Restore state on orientation change

Hey Mike,
On an orientation change, and upon classic scenario when the activity recreates the TileView, it is TileView's responsibility to restore its state. Here is a good link.
Today, TileView doesn't save the last zoom nor the position. It would be a nice default behavior not to lose the zoom and position when switching to landscape mode.
In fact, i have already done this and i'd like to know if you are interested for a PR.

Hm, that's a tough one...  Do RecyclerView or ViewPager do this?  I wouldn't mind making this optional, perhaps, something like saveState and restoreState, that the user could call in onPause and onResume...  that said, it's going to be challenge with some devices to get the scroll position recreated - the post trick to set initial scroll position does not work on all devices...

Most of framework's view save their state. This is when we have custom view that we have to deal with onSaveInstanceState and onRestoreInstanceState.
I had it working. In onSaveInstanceState, it saves the relative coordinates of the middle of the screen between the bounds defined by defineBounds. It also saves the scale.
In onRestoreInstanceState, it simply sets the scale and does :
/**
 * This is important to schedule a scroll change and not do it right away, as it won't work
 * otherwise.
 */
  post(new Runnable() {
    @Override
    public void run() {
      scrollToAndCenter( ss.relativeX, ss.relativeY );
    }
 });

sounds reasonable, go ahead and PR (or actually maybe wait until the other PR is done, unless you're sure we won't have conflicts)...
other than that, specifically about state, how about just save getScrollX/Y and restore with scrollTo( savedX, savedY )?  if you're saving and restoring scale anyway, you don't need to compute anything...  also has another benefit if the user is not using relative bounds...

exactly! I need to wait the other PR.
And sure if this doesn't need to have bounds defined its better. I remember had a reason to do this, but i forgot why...
So agreed.

:thumbsup:

About the fact that this should be optional, as you probably know, the save state mechanism is only triggered if the TileView has an id (see doc :

Note: In order for the Android system to restore the state of the views in your activity, each view must have a unique ID, supplied by the android:id attribute.

)
So if we don't want the state to be change, we just don't set an id to the view. Are you ok with this?

yes


Error when building the database sample project for iOS on Xcode

I'm following the instructions found on the Firebase Database Quickstart page, and correctly generating the Xcode project from Unity. I can see that the podfile is correctly generated as well as the podfile.lock and Pods folder. But when I try to build it from Xcode, I get multiple errors on on GTMLogger.m:

.../Pods/GoogleToolboxForMac/Foundation/GTMLogger.m:48:46: 'retain' is unavailable: not available in automatic reference counting mode
.../Pods/GoogleToolboxForMac/Foundation/GTMLogger.m:48:46: ARC forbids explicit message send of 'retain'

I searched for this type of ARC errors but found nothing relating to firebase. I also tried installing the pods directly (with pod install), and modifying the podfile to generate the xcworkspace file, and opening this file on Xcode instead of the project file, but this gave different errors, like:

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock.

Which I also did a lot of research on but none of the solutions provided worked (cleaning the project, pod install, pod update, pod deintegrate, etc.)
Finally, based on this thread, it was suggested that the xcworkspace is not really needed because the unity compilation injects all of the necessary dependencies directly in the generated xcodeproject.
So I'm back to the original setup, only using the xcode project generated as is by unity, unable to build because of the ARC errors listed above.
My current setup is:

Unity 5.5.2f1 (tried also with Unity 5.5.3f1)
XCode 8.3.2
Firebase 3.0.1 (only using the Database sdk)
Pod 1.2.1 (tried also with Pod 1.2.0)

Any ideas on how to proceed?

Hi Tjjos.
Are you at least able to playtest in the Unity editor?  I can't get the database testapp to work at all in 5.6.0f3. I get runtime errors when I try to playtest in the unity editor and linking errors when running the build from Xcode on an iPhone target.
By the way. is it necessary to install the individual coco pods when building in Unity? Because the documentation on the firebase site mentions that only for direct iOS development.
If any Firebase devs are reading this, it would be great if you could build the demos and the sdk into an asset and put it up on the Unity asset store and make sure that it just works out of the box with as little fiddling as possible. Thanks!

The GTM logger compile error you ran into suggests that the Firebase plugin didn't get to set the appropriate compile flags for the module.  Do you have the editor log from your build that you can share?  If you turn on verbose logging in "Assets > Play Services Resolver > IOS Resolver > Settings" we'll be able to start to figure out what's going on.
Also, you're correct in Unity 5.5 we integrate directly into the project without a workspace so that "Build & Run" works as expected.  Since Unity 5.6 there is support for Unity to open up Xcode workspaces in which case we have an option to use Cocoapods "correctly" generating the workspace that Unity opens.
FYI: We just released v4.0.0 with some bug fixes and features you may want to check out
https://firebase.google.com/support/release-notes/unity#4.0.0
Cheers,
Stewart

Thanks Stewart!
I got it working by editing the path of missing files.
Now my issue is that I had to give up on Firebase temporarily because I need Geofire for my game and it doesn’t exist yet for Unity. So now I am stuck with using MySQL for the time being. :( - It’s just for demo purposes and as soon as you guys get Geofire happening for C# Unity with the search-by-distance fictionality then I will be able to start using firebase again so my game can scale properly.
Thanks Again!
Isaac
Agent Argyle
indie game studio
<EMAIL_ADDRESS>agentargyle.com

On Jun 9, 2017, at 2:21 PM, Stewart Miles<EMAIL_ADDRESS>wrote:
The GTM logger compile error you ran into suggests that the Firebase plugin didn't get to set the appropriate compile flags for the module. Do you have the editor log from your build that you can share? If you turn on verbose logging in "Assets > Play Services Resolver > IOS Resolver > Settings" we'll be able to start to figure out what's going on.
Also, you're correct in Unity 5.5 we integrate directly into the project without a workspace so that "Build & Run" works as expected. Since Unity 5.6 there is support for Unity to open up Xcode workspaces in which case we have an option to use Cocoapods "correctly" generating the workspace that Unity opens.
FYI: We just released v4.0.0 with some bug fixes and features you may want to check out
https://firebase.google.com/support/release-notes/unity#4.0.0 https://firebase.google.com/support/release-notes/unity#4.0.0
Cheers,
Stewart
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/firebase/quickstart-unity/issues/77#issuecomment-307502854, or mute the thread https://github.com/notifications/unsubscribe-auth/AL-GTfhpEAIo08J0wJXSFAEi7ZhLjntbks5sCbdDgaJpZM4NDjtY.


Fix Rails 7.0.x CI version constraint

Current CI version constraint has started matching Rails 7.1 which is now out. Make sure the range covers 7.0.x explicitly. We'll need to add Rails 7.1 to the build matrix and fix any issues but this gets the build passing.

Going to merge this straight in to get the builds ✅ again


Edit Element Parameters

Story: Edit Element Parameters
As a User
I want to edit the parameters of a selected element
So that I can customize the elements as per requirements.
Acceptance Criteria:

[ ] Clicking on a card should open a drawer on the right side.
[ ] The drawer should display the parameters of the selected element's Type (if Type : itself, if TypeRef: the given Type).
[ ] The parameters should be editable through a form in the drawer.
[ ] Changes made in the form should be reflected in the element. (#87 )

@LissiEitel Do we already have the full list of information expected to be displayed in the drawer? On the design mockup we described type and dummy property as one of the parameters, let me know if you have the full list of expected parameters or you plan to request it in the near future

we only have those right now:

But i think we have to final specify them again and check what we need for the LN

Dependant from #87

@LissiEitel here is the screenshot.
I think there is a little gap between the design and ui : the drawer has a default title and description + inputs for all attributes (inlcuding name and description).

Should this be the same as the current element name and description (like in the screenshot). In this case, we should remove these attributes in the form and make the title and description editable by clicking on it (with an edit icon next to it on hover)
or a more generic title to describe the action and help the user on what he can do in this sidebar. Something like title: "Edit Type", description: "You are editing {{ typeName}} which is part of the {{ element }} element. Save to reflect changes in the SCD file."

What do you think ?

Closed by #171


ExecForEach

Equivalent to shell xargs. For example, this use case: https://gist.github.com/Skraelingjar/9aabc58aa26f5b814411e69d67b342fe

Would like to help out on this.

Great! Thanks @gagneet. One thing you could do to get the ball rolling is to write a short script program, which assumes the existence of ExecForEach, or whatever we decide to name it, along the lines of the linked use case. Once we're happy with the design, we can then write a test for it.

I am thinking the func would look roughly something like this:
func (p *Pipe) Xargs(cmd ...string) *Pipe {
	// do something with the output of the previous command
}

or
func (p *Pipe) Xargs(cmd string) *Pipe {
	// do something with the output of the previous command
}

This would take a Pipe and use its output to perform more commands. I am still thinking through, as I look to find more scenarios that the Xargs commands can be used in.

@bitfield what do you think?

I think using ExecForEach should be more or less exactly like using Exec(), but with the addition of a placeholder value in the supplied command. In fact, why don't we use Go template syntax, which is even more powerful?
script.ListFiles("*.php").ExecForEach("php {{ . }}").Stdout()


Clear incorrect values from email queue table upon upgrade

delete all records from sys_queue_email table where:
`params` LIKE "-f%"

https://github.com/unaio/una/commit/848c49326da88f2660651dab107587cfedb6da38


Use a single shared SDS cluster

Split out of https://github.com/istio/istio/pull/21038 because that PR
got a bit too complicated

for https://github.com/istio/istio/issues/20697

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-istioio-k8s-tests_istio
ba13ab354986be7689d15ccddbe3ee422636f77d
link
/test integ-istioio-k8s-tests_istio

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

/retest

Is there any performance improvements by replacing Google gRPC with Envoy gRPC?

This has huge performance impact on Pilot, since the XDS response size is greatly reduced. I didn't get hard numbers on that impact yet though. In terms of the performance for SDS, I don't think that is a major factor we are worried about. The reason for the switch is that we can't have a single cluster with google gRPC as far as I can tell

I'll run some tests and update this
On Thu, Feb 13, 2020 at 2:59 PM Costin Manolache<EMAIL_ADDRESS>wrote:

@costinm approved this pull request.
Great ! Would be nice to include some perf numbers, I suspect will reduce
CPU on pilot quite a bit, right now >1/2 of the generated config is the
duplicated sds clusters.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/21108?email_source=notifications&email_token=AAEYGXKNCCJHY2GZHABG2STRCXGFBA5CNFSM4KUXFKAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVP77JI#pullrequestreview-358612901,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEYGXLDKLXHKJOPV4ITHWTRCXGFBANCNFSM4KUXFKAA
.

This drops XDS response size by 10%, so pretty substantial for such an easy change

/cherrypick release-1.5

@howardjohn: #21108 failed to apply on top of branch "release-1.5":
error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	pilot/pkg/networking/core/v1alpha3/cluster.go
M	pilot/pkg/networking/core/v1alpha3/gateway.go
M	pilot/pkg/networking/core/v1alpha3/gateway_test.go
M	pilot/pkg/security/authn/v1alpha1/policy_applier_test.go
M	pilot/pkg/security/model/authentication.go
M	tools/packaging/common/envoy_bootstrap_v2.json
Falling back to patching base and 3-way merge...
Auto-merging tools/packaging/common/envoy_bootstrap_v2.json
Auto-merging pilot/pkg/security/model/authentication.go
CONFLICT (content): Merge conflict in pilot/pkg/security/model/authentication.go
Auto-merging pilot/pkg/security/authn/v1alpha1/policy_applier_test.go
Auto-merging pilot/pkg/networking/core/v1alpha3/gateway_test.go
Auto-merging pilot/pkg/networking/core/v1alpha3/gateway.go
Auto-merging pilot/pkg/networking/core/v1alpha3/cluster.go
Patch failed at 0001 Use a single shared SDS cluster

In response to this:

/cherrypick release-1.5

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


Panda testing notes

There are a few remaining tasks left for adding the PandA:

Refactor panda grid scans to use some common code with regular fast grid scans
Give an optional input parameter for Hyperion to decide whether or not to use the panda
Then we should do some manual testing to confirm everything still works after the refactor, then we can start to use it with real samples.

Closing this as the second part is definitely done. First still to do but I think covered elsewhere


how to add a json  header like userInfo: {"permissions":[]}  can not be create by Expressions

Is your feature request related to a problem? Please describe.
when i use requestInterceptor,i add a header like
userInfo:{"permissions":[]}
and then will went exception
if i have to transform this param ,how i resovled it;

Hello, @Iam95a  please provide a more detailed description of the issue, including steps to reproduce, expected result and actual result. Also, please provide a minimal, complete, verifiable example that reproduces the issue.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Release V0.6.0

Pull Request Test Coverage Report for Build 141

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.85%

Totals

Change from base Build 139:
0.0%

Covered Lines:
564

Relevant Lines:
642

💛  - Coveralls


connectivity/check: Fix wrong NodePort service selection on validation

It is possible for the tuples of node IP and port to be mismatched in
the case of NodePort services, causing the connectivity test to try to
establish a connection to an non-existent tuple.
For example, see the following output:
⌛ [gke_cilium-dev_us-west2-a_chris] Waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node) to become ready...
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 1:
🐛 Error waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node): command terminated with exit code 130:
Connectivity test failed: timeout reached waiting for NodePort <IP_ADDRESS>:30774 (cilium-test/echo-other-node)

Nodes:
$ k get nodes -o wide
NAME                                   INTERNAL-IP
gke-chris-default-pool-1602ae11-bn2n   <IP_ADDRESS>
gke-chris-default-pool-1602ae11-ffsh   <IP_ADDRESS>

Cilium pods:
$ ks get pods -o wide | rg cilium
cilium-7sq59   <IP_ADDRESS>   gke-chris-default-pool-1602ae11-bn2n
cilium-mbvxl   <IP_ADDRESS>    gke-chris-default-pool-1602ae11-ffsh

Services:
$ k -n cilium-test get svc
NAME              TYPE       CLUSTER-IP    PORT(S)
echo-other-node   NodePort   <IP_ADDRESS>   8080:30774/TCP
echo-same-node    NodePort   <IP_ADDRESS>   8080:32186/TCP

Echo pods:
$ k -n cilium-test get pods -o wide
NAME                              READY   STATUS    IP            NODE
client-6488dcf5d4-bxlcp           1/1     Running   <IP_ADDRESS>   gke-chris-default-pool-1602ae11-bn2n
client2-5998d566b4-lgxrt          1/1     Running   <IP_ADDRESS>   gke-chris-default-pool-1602ae11-bn2n
echo-other-node-f4d46f75b-rgzbk   1/1     Running   <IP_ADDRESS>    gke-chris-default-pool-1602ae11-ffsh
echo-same-node-745bd5c77-mxwp7    1/1     Running   <IP_ADDRESS>    gke-chris-default-pool-1602ae11-bn2n

If we take the pod "echo-other-node-f4d46f75b-rgzbk", it resides on node
"gke-chris-default-pool-1602ae11-ffsh", which has node IP of <IP_ADDRESS>.
However, if we look at the CLI output, it is trying to establish a
connection to the other node IP, <IP_ADDRESS>, which is obviously wrong.
Fix this by checking if the echo pod resides on the same node as the
node for the service.
Fixes: https://github.com/cilium/cilium-cli/issues/342
Signed-off-by: Chris Tarazi<EMAIL_ADDRESS>

@aditighag I don't think this PR is breaking that. The problem is that the nodeIP,nodePort tuple itself is wrong.

The problem is that the code was making it possible to have a tuple like <IP_ADDRESS>,2222 or <IP_ADDRESS>,3333

Based on my last comment, I don't understand why these combinations are incorrect. /cc @brb

I'm also confused for the same reasons as @aditighag.

For example,

Node A has IP <IP_ADDRESS>
Node B has IP <IP_ADDRESS>
echo-same-node is a NodePort svc on node A with port 2222
echo-other-node is a NodePort svc on node B with port 3333

The problem is that the code was making it possible to have a tuple like <IP_ADDRESS>,2222 or <IP_ADDRESS>,3333

My understanding of NodePort services is that connecting to the port on any node will connect you to the service, i.e. that the tuples <IP_ADDRESS>,2222 and <IP_ADDRESS>,3333 are valid tuples as the node should forward to the traffic to the service, wherever the service resides.
For example, the Kubernetes docs on NodePorts say (emphasis mine):

If you set the type field to NodePort, the Kubernetes control plane allocates a port from a range specified by --service-node-port-range flag (default: 30000-32767). Each node proxies that port (the same port number on every Node) into your Service. Your Service reports the allocated port in its .spec.ports[*].nodePort field.

If this understanding is correct, then the test failures in the OP would seem to be valid failures, which would be hidden by this PR.
Very happy to hear where this interpretation is incorrect!

Is this PR fixing the connectivity check for NodePort of kube-proxy or for Cilium's kube-proxy-replacement?

@aditighag @twpayne Ah thanks for pointing that out. I was definitely under the wrong assumption that the nodeIP would only reach out to the local node.


Incorrect behavior of granting access for the extension to existing authentication session using Manage Trusted Extensions functionality

Does this issue occur when all extensions are disabled?: This issue occurs with VS Code functionality FOR the extensions.

VS Code Version: 1.92.2
OS Version: macOS 13.6.8

Steps to Reproduce:

Create an extension with AuthenticationProvider, based on the sample: https://github.com/microsoft/vscode-extension-samples/blob/main/authenticationprovider-sample/src/authProvider.ts

Sign in, using credentials.

Go to Accounts -> extension's account -> Manage Trusted Extensions:

Observe the list of trusted extensions for the selected account:

Uncheck the extension from the list of trusted and press OK:

Observe an event is fired inside vscode.authentication.onDidChangeSessions subscription and method await vscode.authentication.getSession(MyAuthenticationProvider.id, [], { createIfNone: false }) returns undefined:

Observe the option Grant access to {Auth Provider} for {Extension}... (1) appeared under the Accounts menu:

Select Accounts -> Grant access to {Auth Provider} for {Extension}... (1)

Observe a confirmation popup and press Allow:

Observe an event is fired inside vscode.authentication.onDidChangeSessions subscription and method await vscode.authentication.getSession(MyAuthenticationProvider.id, [], { createIfNone: false }) returns session:

Observe Grant access to My Provider for My Extension... (1) is no longer exists in the Accounts menu:

Repeat steps 3 - 7 for removing the extension from the list of trusted extensions again.

Navigate to Accounts -> extension's account -> Manage Trusted Extensions

Check the extension as trusted and press OK:

An event is fired inside vscode.authentication.onDidChangeSessions subscription and method await vscode.authentication.getSession(MyAuthenticationProvider.id, [], { createIfNone: false }) returns session:

Actual Result:
Grant access to My Provider for My Extension... (1) is still available in the Accounts menu, even though access has been granted:

Expected Result:

Grant access to My Provider for My Extension... (1) should NOT be available in the Accounts menu.

Consequences:
Since VS Code doesn’t provide a direct API to detect when the extension is checked/unchecked in the "Manage Trusted Extensions" dialog, it is impossible to work with authentication correctly.
While both, user account and Grant access to My Provider for My Extension... (1) are available in the Accounts menu, it allows the possibility to sign in under two accounts, even if { supportsMultipleAccounts: false } was passed during registering the Authentication Provider, using
context.subscriptions.push(
    vscode.authentication.registerAuthenticationProvider(
      'myCustomProvider',
      'My Provider,
      new MyAuthenticationProvider (context.secrets),
      { supportsMultipleAccounts: false },
    ),
  );

To reproduce this behavior follow these steps:

Navigate to Accounts -> account -> Sign Out
Observe Sign In with My Provider to use My Extension (1) appeared in the Accounts menu
Sign in, using another account
Observe new user account appeared in the Account menu.
Press Grant access to My Provider for My Extension... (1)
Observe both, previous and new account for the same extension presented in the Accounts menu.

You basically want this: https://github.com/microsoft/vscode/issues/104008
but this bug can track the fact that, yes, if you grant access via the Trusted Extensions quick pick, it should clean up any account menus.

You basically want this: #104008
but this bug can track the fact that, yes, if you grant access via the Trusted Extensions quick pick, it should clean up any account menus.

Well yes, I think there should be at least one option available here: an api providing possiblity to track when access is granted/revoked, as described in https://github.com/microsoft/vscode/issues/104008, or Accounts menu item Grant access to My Provider for My Extension... (1) should work correctly and disappear from menu when user grants access directly or indirectly.


Unable to find the challenge on hypixel.net

Before creating an issue, first upgrade cfscrape with pip install -U cfscrape and see if you're still experiencing the problem. Please also confirm your Node version (node --version or nodejs --version) is version 10 or higher.
Make sure the website you're having issues with is actually using anti-bot protection by Cloudflare and not a competitor like Imperva Incapsula or Sucuri. And if you're using an anonymizing proxy, a VPN, or Tor, Cloudflare often flags those IPs and may block you or present you with a captcha as a result.
Please confirm the following statements and check the boxes before creating an issue:

[x] I've upgraded cfscrape with pip install -U cfscrape
[x] I'm using Node version 10 or higher
[x] The site protection I'm having issues with is from Cloudflare
[x] I'm not using Tor, a VPN, or an anonymizing proxy

Python version number
Run python --version and paste the output below:
Python 3.8.1

cfscrape version number
Run pip show cfscrape and paste the output below:
Name: cfscrape
Version: 2.1.1
Summary: A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.
Home-page: https://github.com/Anorov/cloudflare-scrape
Author: Anorov
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: /usr/lib/python3.8/site-packages
Requires: requests
Required-by:

Code snippet involved with the issue
import cfscrape

scraper = cfscrape.create_scraper(delay=10)  # returns a CloudflareScraper instance
# Or: scraper = cfscrape.CloudflareScraper()  # CloudflareScraper inherits from requests.Session
print (scraper.get("https://hypixel.net").content)  # => "<!DOCTYPE html><html><head>..."

Complete exception and traceback
(If the problem doesn't involve an exception being raised, leave this blank)
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/cfscrape/__init__.py", line 251, in solve_challenge
    challenge, ms = re.search(
AttributeError: 'NoneType' object has no attribute 'groups'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    print (scraper.get("https://hypixel.net/").content)  # => "<!DOCTYPE html><html><head>..."
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.8/site-packages/cfscrape/__init__.py", line 129, in request
    resp = self.solve_cf_challenge(resp, **kwargs)
  File "/usr/lib/python3.8/site-packages/cfscrape/__init__.py", line 204, in solve_cf_challenge
    answer, delay = self.solve_challenge(body, domain)
  File "/usr/lib/python3.8/site-packages/cfscrape/__init__.py", line 290, in solve_challenge
    raise ValueError(
ValueError: Unable to identify Cloudflare IUAM Javascript on website. Cloudflare may have changed their technique, or there may be a bug in the script.

Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues."

URL of the Cloudflare-protected page
https://hypixel.net/
URL of Pastebin/Gist with HTML source of protected page
https://paste.ee/p/TiNCJ

So there seems to be a script right before the one required by the challenge
<script type="text/javascript">
//<![CDATA[
!function(){var t=function(){try{return!!window.addEventListener}catch(t){return!1}},n=function(n,e){t()?document.addEventListener("DOMContentLoaded",n,e):document.attachEvent("onreadystatechange",n)};n(function(){document.getElementById("h-content").style.display="block"},!1)}();
//]]>
</script>

// ---- The one required below
<script type="text/javascript">
  //<![CDATA[
  (function(){
    var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
    b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
    b(function(){
      var a = document.getElementById('cf-content');a.style.display = 'block';
...
</script>

(this might be a update to cloudflare challenge page, but i dont see it on kissanime.ru)
changing init.py L249 from
javascript = re.search(r'\<script type\=\"text\/javascript\"\>\n(.*?)\<\/script\>',body, flags=re.S).group(1) # find javascript

to
all_scripts = re.findall(r'\<script type\=\"text\/javascript\"\>\n(.*?)\<\/script\>',body, flags=re.S) # find javascript
javascript = next(filter(lambda w: "jschl-answer" in w,all_scripts))

finds the one having something which would most probably be in the


Wrong language

Hello, this project is market with wrong language:
https://github.com/Josenzo/spserver
Is in PHP, i know it has too many .as files, it because the client for test is writen in ActionScript.
Thank you.

Hi @Josenzo - you can exclude files from the language statistics using the overrides described here: https://github.com/github/linguist#overrides

Hello @Josenzo - You can tell Linguist to ignore your .as files with README#Overrides.


Alolan Pokemons should evolve in the Alolan Evolution

Expected Behavior
Alolan Pokemons should only have Alolan Evolutions
Current Behavior
At the moment Alolan Pokemons show their default (non-Alolan) evolution.
Context (Environment)
pokemongo-json-pokedex version: 3.1.2

Fixed with #23


Animation Bezier Editor - fixed vertical zoom around mouse

Fixed vertical zoom so it zooms vertically around the mouse cursor not around the window center.

Thanks!


ProductID on getProductOrderBook overridden by default PublicClient.ProductID

When using the getProductOrderBook method of PublicClient, the response always makes use of the PublicClient.productID ('BTC-USD') rather than use any the argument passed to the productID parameter of the method.
Replication:
Both of the following lines, despite different productID parameters, will return the SAME result: that for the PublicClient.productID, IE 'BTC-USD' (counter to the instructions in the README).
publicClient.getProductOrderBook('BTC-USD', (error, response, book) => {console.log(book) });
=> { sequence:<PHONE_NUMBER>, bids: [ [ '14580', '2.55392861', 14 ] ], asks: [ [ '14580.01', '9.33786435', 7 ] ] }
// Okay

publicClient.getProductOrderBook('LTC-BTC', (error, response, book) => {console.log(book) });
=> { sequence:<PHONE_NUMBER>, bids: [ [ '14580', '2.55392861', 14 ] ], asks: [ [ '14580.01', '9.33786435', 7 ] ] }
// WTF??

If we set the PublicClient.productID before each line, then they will return the expected result. I'm using this as a workaround at present, but I get pretty upset when I follow README instructions that straight up don't work.
publicClient.productID = 'BTC-USD'
publicClient.getProductOrderBook('BTC-USD', (error, response, book) => {console.log(book) });
=> { sequence:<PHONE_NUMBER>, bids: [ [ '14580', '2.55392861', 14 ] ], asks: [ [ '14580.01', '9.33786435', 7 ] ] }

publicClient.productID = 'LTC-BTC'
publicClient.getProductOrderBook('LTC-BTC', (error, response, book) => {console.log(book) });
{ sequence: 360636631, bids: [ [ '0.01703', '595.12056327', 48 ] ], asks: [ [ '0.01704', '226.653572', 25 ] ] }

I assume this is probably a scoping issue, but someone better with JS than I could confirm.

@ManickYoj It sounds like you're not using the latest version in the master branch.

despite different productID parameters, will return the SAME result

The test suite proves otherwise, and here's the behavior that I see.
> client.getProductOrderBook('BTC-USD', (error, response, book) => {console.log(book) });
> { sequence:<PHONE_NUMBER>,
  bids: [ [ '14519.99', '5.42405078', 36 ] ],
  asks: [ [ '14520', '0.33616341', 5 ] ] }

> client.getProductOrderBook('LTC-USD', (error, response, book) => {console.log(book) });
> { sequence:<PHONE_NUMBER>,
  bids: [ [ '245.76', '1636.48541679', 18 ] ],
  asks: [ [ '245.77', '180.19602585', 10 ] ] }

Please be sure to upgrade your gdax dependency.
npm install coinbase/gdax-node

# or

yarn add coinbase/gdax-node

This is also related to not having the latest versions published on NPM at the moment. Please feel free to chime in on the discussion in #148.
If the above fixes your issue, please feel free to close; otherwise, please provide additional information.

but I get pretty upset when I follow README instructions that straight up don't work.

Aside, I understand that you were frustrated, but please take your anger elsewhere. I personally work on this project with zero compensation.  This is an open source wrapper library that you have free license to use.

this is probably a scoping issue, but someone better with JS than I could confirm

I get it. Debugging can be hard, but please don't first assume that a problem is someone else's fault before you fully understand the issue yourself.
❤

Fair - followed the npm install gdax instruction on the README to install.
Upset was the wrong word. Frustrated was a better choice, and it was with the code, not the maintainers. I understand open source is open source and I do appreciate your work.
Thanks for the swift response.


Where to run the modules (Robot or PC) and how they communicate?

Hey Igor, thank you for the interesting repo... I am trying to get it to work but I cannot figure out how the speech recognition (which is running fine on my pepper) communicates with the conversational engine on my computer?
In the notebook you provided all the code is supposed to be running on my laptop except from "robot part" right?
I woul be very glad for your help :)
Originally posted by @VasilisAvgoustakis in https://github.com/igor-lirussi/Dialogue-Pepper-Robot/issues/2#issuecomment-1570455018

I suggest starting with the repo running everything on the computer, commanding the robot only to listen and to speak.
(Just acquire the robot IP, run the speech recognition program, and also run the notebook.)
The modules are separated to grant flexibility to run them in the robot or the computer.
But to run them on the robot minor changes are required and:

the performances will be slower than running on your pc
no difference in microphone/speakers, always the robot ones will be used

Examples

if you run the speech synthesis code in the robot, you don't need to open a session like the first part of SPEECH SYNTHESIS in the notebook, you can copy and paste the Python code after that and run it in the robot head computer.

if you run the speech recognition code in the robot you don't need the ProxyService to communicate, but you need to modify the SpeechReceiverModule

if you want to run the conversational engine in the robot should be sufficient move the Ab.jar file in it, and run also the speech recognition internally or, if the speech recognition is in the PC, change the way in the SpeechReceiverModule gets the answer from the conversational engine.

As you can see there are lots of combinations and I didn't cover all of them, but with minor adaptations can work.
NOTE: In the notebook, the "robot part" is only the code that requires the robot, that's why it's called like that, but the modules can be run anywhere.

Thank you so much for the clarification now I am much further with the process...but I still after running all the "robot part" code do get the error :
INF: ReceiverModule: started!
INF: ReceiverModule.del: cleaning everything
INF: ReceiverModule: stopping...
Exception RuntimeError: '\tproxy::proxy\n\tNULL values were passed as arguments' in <bound method DialogueSpeechReceiverModule.del of <main.DialogueSpeechReceiverModule; proxy of <Swig Object of type 'AL::module *' at 0x7fab14774b70> >> ignored
I cannot get what goes wrong... does that say something to you?
Thanks a lot for taking the time :)

Did you run also the speech recognition on a separate shell with python2:
conda activate python2
python module_speechrecognition.py --pip (your robot IP)
with your robot connected to the same network of your PC?


Check for previous/existing GitHub issues/module proposals

[X] I have checked for previous/existing GitHub issues/module proposals.

Check this module doesn't already exist in the module indexes

[X] I have checked for that this module doesn't already exist in the module indexes; or I'm proposing the module to be migrated from CARML/TFVM.

Bicep or Terraform?
Terraform
Module Classification?
Pattern Module
Module Name
avm-ptn-networking-azurefirewall
Module Details
Wanted to create a pattern module that deploys all of Azure Firewall WAF and APRL recommendations. It will include multiple modules for other services.
Do you want to be the owner of this module?
Yes
Module Owner's GitHub Username (handle)
cshea-msft
(Optional) Secondary Module Owner's GitHub Username (handle)
No response

Hi @cshea-msft , we need more details why this should be pattern module. Can you provide some architecture diagram or anything else based on what this module will be developer?

@prjelesi so there is an ask to have all modules follow up the APRL aka.ms/aprl recommendations. For Firewall some of the recommendations are easy to hard code like Zones but not setting monitoring or ddos on the vnet with the firewall. I can create examples but I thought maybe creating a Pattern that does all those things would work.
Np if this doesn't fit but figured i would bring it up.

@cshea-msft let's take is offline and discuss. We will update issue based on agreement.

@cshea-msft we will pause this until we have clear picture what we will achieve with this pattern module.

I am closing this and we will reopen in case that we need to have pattern module to cover wider number of resources.


Rich Text example: _handleKeyCommand should return DraftHandleValue

_handleKeyCommand was returning a boolean instead of DraftHandleValue, which caused an error with Typescript (and I assume Flow too)

oh that's weird... anyone know why the test failed?

@dakom - thanks for submitting this PR! Can you please rebase this & then I'll be happy to merge it in :)


[NIFI-2303] Update lineage styles

reviewing

Hovering over the icons in the lineage graph is extremely sensitive to have it highlight the path.  I think it is getting confused about when you're over the image in teh circle versus other parts of the circle.  When over image directly it doesn not highlight.  Could you take a look?

Ok went through it all.  Can you check into the above comment on the icon blocking path highlighting.  Otherwise, looks good!

Actually if you widen the screen the white background stops a sort of light gray background appears.
Also, there appears to be a way to close the screen in the top left of the lineage display window but unless you know it is there you cannot see it.  You can click on the whitespace area in the top right corner though and it nicely closes just that window and goes back to your search.

also of note you can right click in the gray area when the screen widens and get the default context menu of the browser whereas if you stay over the white lineage area you cannot other than when right-clicking on an item (as expected and then it is a normal context menu)

I can confirm the issues @joewitt has mentioned. Additionally, the context menus still appear to be picking up some old styles. They should look just like the component context menus.

Also for the context menus I recommend changing the Expand icon to fa-plus-square (from fa-plus-square-o) and Collapse to fa-minus-square (from fa-minus-square-o); this reversed style will better match the others

cool checking it out now


wrong link in "Backups at Aiven" page

What's wrong?
this page has the wrong link (periodic cleanup of powered-off services). This still refers to help.aiven.io.
URL of affected page, and any other information
https://docs.aiven.io/docs/platform/concepts/service_backups

Thanks for the report @kamonspecial . Any help.aiven.io pages that now redirect to the docs landing page indicate that there's no replacement content for that topic - with nowhere to link to, we send users to the home page so they can search or navigate from there. Anyone at Aiven can create the documentation, but since the link is not broken, I will close this issue.


issue-116, remove sshconfig lib, substitute Crypto lib for MacOS compatibility

Fixes #116 #140

Why 13 files changed?

The mess comes from the wrong claimed direction initially (issue-116-> main). I had changes the direction, but it hooked some previous commits. My fault sorry. The best option is to deny this PR and issue a new one, though I checked differences and I didn't see any critical points. -)

Just cherry-picked the commits. Please take a look and if it's okay then it's ready for merging


AutoTVM x86 Tutorial is broken on MacOS

python tune_relay_x86.py
Extract tasks...
Tuning...
[Task  1/12]  Current/Best:    0.00/   0.00 GFLOPS | Progress: (0/400) | 0.00 sTraceback (most recent call last):
  File "tune_relay_x86.py", line 183, in <module>
    tune_and_evaluate(tuning_option)
  File "tune_relay_x86.py", line 157, in tune_and_evaluate
    tune_kernels(tasks, **tuning_opt)
  File "tune_relay_x86.py", line 142, in tune_kernels
    autotvm.callback.log_to_file(log_filename)])
  File "/Users/bingxu/tvm/python/tvm/autotvm/tuner/tuner.py", line 92, in tune
    measure_batch = create_measure_batch(self.task, measure_option)
  File "/Users/bingxu/tvm/python/tvm/autotvm/measure/measure.py", line 236, in create_measure_batch
    attach_objects = runner.set_task(task)
  File "/Users/bingxu/tvm/python/tvm/autotvm/measure/measure_methods.py", line 326, in set_task
    super(LocalRunner, self).set_task(task)
  File "/Users/bingxu/tvm/autotvm/measure/measure_methods.py", line 196, in set_task
    raise RuntimeError("Cannot get remote devices from the tracker. "
RuntimeError: Cannot get remote devices from the tracker. Please check the status of tracker by 'python -m tvm.exec.query_rpc_tracker --port [THE PORT YOU USE]' and make sure you have free devices on the queue status.

python -m tvm.exec.query_rpc_tracker --port 9000
Tracker address localhost:9000

Server List
----------------------------
server-address	key
----------------------------
::1:50954	server:$local$device$9000
----------------------------

Queue Status
------------------------------------------
key                  total  free  pending
------------------------------------------
$local$device$9000   1      0     1
------------------------------------------

I think we have seen this issue before, but I am not sure how we should fix it in the tutorial. Does the workaround of changing localhost to a real address such as <IP_ADDRESS> work for you? macOS seems to have many more network interfaces than other systems we have tried AutoTVM on, so maybe there is something strange when resolving localhost.


Fix index and review technology explanors

Description of the issue
Recently, a PR was merged to master referring to the work on ticket https://app.zenhub.com/workspaces/operations-5fa2d8f2df78bb000f7fb2b5/issues/ebi-ait/hca-ebi-wrangler-central/237
However, this PR was not reviewed after the changes and it has led to a couple of issues.
The index on the left of the git pages displays all the new documents and some hyperlinks are broken.
This needs revision and a new PR fixing these issues.
Acceptance criteria

[ ] A PR has been created with the issues addressed
[ ] The PR is reviewed successfully by at least some other person and merged to master

Add typical graphs for each type of technology

Some issues. But most of the fixes have been done by @Wkt8 already

Fixed. The pages have been restructured.

@ESapenaVentura to take a quick look.

https://github.com/ebi-ait/hca-ebi-wrangler-central/pull/981/files I have created a quick PR fixing some visual issues I found
Other than that, LGTM!

Merged.


consider moving registration of event listeners out of update function in design-editor-element.js

@hsiwkin could you provide more description about this issue?

Every time the update function is triggered we register an event listener - this block of code starts with: iframeDocument.addEventListener('pageshow', () => {.
The idea behind this task is to either register it elsewhere (so it be executed once, not every time update function is triggered) or at least move the large block of code responsible for the action executed on this event to separate function to make the code of update function more readable.

thank you, so in fact refactoring of update function is needed...


subsys: usb: usb_c: Refactor Sink common code

Move non-sink specific code into common code
Signed-off-by: Sam Hurst<EMAIL_ADDRESS>

Codecov Report

Merging #53582 (7b5780e) into main (aea1770) will decrease coverage by 0.12%.
The diff coverage is n/a.

:exclamation: Current head 7b5780e differs from pull request most recent head 1bb4499. Consider uploading reports for the commit 1bb4499 to get more accurate results

@@            Coverage Diff             @@
##             main   #53582      +/-   ##
==========================================
- Coverage   45.87%   45.75%   -0.13%
==========================================
  Files         545      544       -1
  Lines       67879    68068     +189
  Branches    16599    16647      +48
==========================================
+ Hits        31142    31146       +4
- Misses      31185    31370     +185
  Partials     5552     5552

Impacted Files
Coverage Δ

include/zephyr/cache.h
100.00% <ø> (ø)

include/zephyr/net/ethernet.h
53.84% <ø> (ø)

include/zephyr/spinlock.h
75.00% <ø> (ø)

kernel/init.c
95.65% <ø> (ø)

lib/cpp/abi/cpp_ctors.c
60.00% <ø> (ø)

lib/cpp/abi/cpp_dtors.c
100.00% <ø> (ø)

lib/cpp/abi/cpp_init.c
100.00% <ø> (ø)

lib/cpp/abi/cpp_init_array.c
100.00% <ø> (ø)

lib/cpp/minimal/cpp_new.cpp
35.71% <ø> (ø)

lib/cpp/minimal/cpp_virtual.c
0.00% <ø> (ø)

... and 15 more

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 aea1770...1bb4499. Read the comment docs.


[KYUUBI #3325] [FEATURE] [AUTHZ] Privilege checks for permanent views and skipping shadowed tables

Why are the changes needed?

fix #3325
Permanent views are generally registed globally and then used for unifing, masking, joining tables for different practical purposes. The data manager would like to authorize views to users , but not all the source tables.
Authz plugin is not satisfiying this senario as it checks privileges all the source table instead of the permanent views.
Suggesting chaning behaviour of PrivilegesBuilder

check privileges for permanent view
skip privileges check for shadowed source view of permanent views

How was this patch tested?

[x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Codecov Report

Merging #3326 (e6237c1) into master (f88c4cb) will decrease coverage by 0.01%.
The diff coverage is 43.47%.

@@             Coverage Diff              @@
##             master    #3326      +/-   ##
============================================
- Coverage     51.53%   51.51%   -0.02%
  Complexity       13       13
============================================
  Files           475      478       +3
  Lines         26475    26498      +23
  Branches       3694     3699       +5
============================================
+ Hits          13643    13651       +8
- Misses        11504    11515      +11
- Partials       1328     1332       +4

Impacted Files
Coverage Δ

.../kyuubi/plugin/spark/authz/PrivilegesBuilder.scala
68.94% <0.00%> (-0.44%)
:arrow_down:

.../plugin/spark/authz/util/PermanentViewMarker.scala
0.00% <0.00%> (ø)

...plugin/spark/authz/ranger/ViewAccessAnalysis.scala
50.00% <50.00%> (ø)

...he/kyuubi/plugin/spark/authz/util/AuthZUtils.scala
43.58% <50.00%> (+0.73%)
:arrow_up:

...gin/spark/authz/util/RuleEliminateViewMarker.scala
50.00% <50.00%> (ø)

...ugin/spark/authz/ranger/RangerSparkExtension.scala
100.00% <100.00%> (ø)

...uubi/engine/spark/events/SparkOperationEvent.scala
88.88% <0.00%> (-5.56%)
:arrow_down:

...rg/apache/kyuubi/ctl/cmd/log/LogBatchCommand.scala
78.00% <0.00%> (-2.00%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
82.60% <0.00%> (-0.63%)
:arrow_down:

...rc/main/scala/org/apache/spark/ui/EnginePage.scala
78.93% <0.00%> (-0.30%)
:arrow_down:

... and 6 more

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

cc @minyk @packyan who might be interested.

hi @bowenliang123, please help resolve the conflicts when you have time

thanks, merged to master


Enable links that will provide emails or automatically send emails.

Time estimate to enable links (once functionality is fully in place): a day.
Depends on https://github.com/usdigitalresponse/shelby-co-employment-screener/issues/37 .

Subsumed by other issues.


Update the high level arch guide per Paras

Actually, I just realized that this diagram ONLY has DSE, and not Cassandra, so I'm waiting for a reply from Paras.

@polandll and @dougwettlaufer It is great to show new backends that we support. However, I am -1 on switching the diagram to the one in the PR because it implies that Stargate only supports DSE.
A diagram that shows that we support DSE and different versions of Cassandra is okay.

Also, what happened to the gRPC* and Events* based extensions? Shouldn't we include them back?

Closing per discussion with @polandll


Migrationg project to 2.0.3 ( t4 templates transformation: MsieJavaScriptEngine.JsRuntimeException)

Hi;
I can't transform t4 templates. I'm getting this error:
Error       Running transformation: MsieJavaScriptEngine.JsRuntimeException: Script threw an exception: TypeError: Unable to get property 'length' of undefined or null referenceTypeError: Unable to get property 'length' of undefined or null reference
at getBaseType (Unknown script code:64:57)
at classToExternalType (Unknown script code:326:13)
at visitNode (Unknown script code:375:29)
at Anonymous function (Unknown script code:390:58)
at visitEachNode (Unknown script code:7195:17)
at forEachChild (Unknown script code:7350:17)
at visitNode (Unknown script code:390:17)
at Anonymous function (Unknown script code:390:58)
at visitNode (Unknown script code:7183:13)
at forEachChild (Unknown script code:7447:17)
at MsieJavaScriptEngine.JsRt.Ie.ChakraIeJsRtJsEngine.InvokeScript[T](Func`1 func)
at MsieJavaScriptEngine.JsRt.Ie.ChakraIeJsRtJsEngine.Evaluate(String expression)
at MsieJavaScriptEngine.MsieJsEngine.Evaluate[T](String expression)
at Microsoft.VisualStudio.TextTemplating833F0E0806575BBBE02D80DB6152D798CA818415080B80EEB94229CDC6FB615064FE2F7BCD45EFEE89F767E8D7E1EC7795D9FA4397F886EBAE6C30F2551FFE87.GeneratedTextTransformation.TSTypeLister.List()
at Microsoft.VisualStudio.TextTemplating833F0E0806575BBBE02D80DB6152D798CA818415080B80EEB94229CDC6FB615064FE2F7BCD45EFEE89F767E8D7E1EC7795D9FA4397F886EBAE6C30F2551FFE87.GeneratedTextTransformation.TransformText()
I followed your migration tutorial. Is there something I am missing?

Thanks for stack trace, probably found the location, can you update to 2.0.4

Thanks volkan, it worked. Although for some reason, CustomerID wasn't generated in OrderForm and I was getting compiling error. I added it manually, rebuild the solution, opened it, stopped the execution, removed the added line, transformed t4 templates and voila: the CustomerID did get generated this time. Weird.

There may be some glitches at start. It was really challenging to make 4 different languages work together, C#, Saltaralle, TypeScript and Javascript in the end.

Yeah I hear ya man. I most certainly appreciate your effort. I watched BUILD's "What's New in TypeScript?" https://channel9.msdn.com/Events/Build/2016/B881](url) and I think I'm sold. Best of luck.

I'm too geting following error:
Running transformation: MsieJavaScriptEngine.JsRuntimeException: Object expected
at MsieJavaScriptEngine.ActiveScript.ActiveScriptJsEngineBase.InvokeScript[T](Func`1 func)
at MsieJavaScriptEngine.ActiveScript.ActiveScriptJsEngineBase.Evaluate(String expression)
at MsieJavaScriptEngine.MsieJsEngine.Evaluate(String expression)
at Microsoft.VisualStudio.TextTemplating6AE85C52723D0B742902F85BA4179D6F69A23F91C2E41CE8EC4DFDFE28BC6D5FE7ECD399E629C4237D6B0B92E56A959F2DBD33AF9931AE4F51BD4246C582F322.GeneratedTextTransformation.TSTypeLister.SetupJsEngine() in E:\WORK\Projects\MySerene\MySerene\MySerene.Web\Imports\ServerTypings..\CodeGenerationHelpers.ttinclude:line 251
at Microsoft.VisualStudio.TextTemplating6AE85C52723D0B742902F85BA4179D6F69A23F91C2E41CE8EC4DFDFE28BC6D5FE7ECD399E629C4237D6B0B92E56A959F2DBD33AF9931AE4F51BD4246C582F322.GeneratedTextTransformation.TSTypeLister.List() in E:\WORK\Projects\MySerene\MySerene\MySerene.Web\Imports\ServerTypings..\CodeGenerationHelpers.ttinclude:line 262
at Microsoft.VisualStudio.TextTemplating6AE85C52723D0B742902F85BA4179D6F69A23F91C2E41CE8EC4DFDFE28BC6D5FE7ECD399E629C4237D6B0B92E56A959F2DBD33AF9931AE4F51BD4246C582F322.GeneratedTextTransformation.TransformText() in E:\WORK\Projects\MySerene\MySerene\MySerene.Web\Imports\ServerTypings\ServerTypings.tt:line 32		E:\WORK\Projects\MySerene\MySerene\MySerene.Web\Imports\ServerTypings..\CodeGenerationHelpers.ttinclude	251
can any one gaide me for this please
im using win7 64 bit os and vs2017 community with sql server 2008 and google chrome leatest version


[opentitantool] Allow switching pins in and out of alternate mode

Some pins of HyperDebug default to being used for UART/SPI/I2C/etc. and
were not previously usable as GPIO.  This change allows opentitantool to
set their mode to "Input", "Output", or "PushPull", while retaining the
ability to set them back to their "Alternate" mode.

By the way, this PR will close Issue #16685 .


Facing error in using CNN on MNIST

I was using colossalAI for applying CNN on the MNIST dataset but the following error occurs which I am not able to remove:
[Epoch 0 train]:   0%|          | 0/6000 [00:00<?, ?it/s]
TypeError                                 Traceback (most recent call last)
 in ()
6     max_epochs = num_epochs,
7     display_progress = True,
----> 8     test_interval = test_interval
9 )
4 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
1100         if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1101                 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102             return forward_call(*input, **kwargs)
1103         # Do not call functions when jit is used
1104         full_backward_hooks, non_full_backward_hooks = [], []
TypeError: forward() takes 2 positional arguments but 11 were given
I have attached the link to the jupyter notebook.
https://colab.research.google.com/drive/15Yiv7EBAc6eWV14aGEl0GP3-AMZLSr06?usp=sharing

Hi @Ambrish001 , we would like recommend you to git clone and pip install from source. As these are early versions, functionality can be a bit unstable but the main branch of the repository is always update to date. Indeed, we have updated the API to be more user-friendly. The documentation https://colossalai.org/ is also in line with the main branch. We provided an example of resnet on cifar10 in the examples folder, which is similar to your case. Perhaps you can take it a s a reference. Feel free to reach me if any issue persists. 😃

When I used git clone and pip installed it from source, the following error arises :
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
----> 1 import colossalai
2 from colossalai.engine import Engine, NoPipelineSchedule
3 from colossalai.trainer import Trainer
4 from colossalai.context import Config
5 import torch
3 frames
/usr/local/lib/python3.7/dist-packages/colossalai/amp/apex_amp/init.py in ()
2 import torch.nn as nn
3 from torch.optim import Optimizer
----> 4 import apex.amp as apex_amp
5
6
ModuleNotFoundError: No module named 'apex'

Hi Ambrish, you can solve this problem by installing apex
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

but we will have another pull request to handle this error as apex can be an optional dependency for colossalai. Thanks for finding this!

The problem is still not solved. A similar issue arises when I install apex
ModuleNotFoundError                       Traceback (most recent call last)
 in ()
----> 1 import colossalai
2 from colossalai.engine import Engine, NoPipelineSchedule
3 from colossalai.trainer import Trainer
4 from colossalai.context import Config
5 import torch
3 frames
/usr/local/lib/python3.7/dist-packages/colossalai/amp/apex_amp/init.py in ()
2 import torch.nn as nn
3 from torch.optim import Optimizer
----> 4 import apex.amp as apex_amp
5
6
ModuleNotFoundError: No module named 'apex.amp'

Link - https://colab.research.google.com/drive/1n6RZGjkjoq408bu92D41v3QL7cF5HCNq?usp=sharing
Also, when I use !pip install ColossalAI deepspeed , then this error occurs at last step:

ValueError                                Traceback (most recent call last)
 in ()
6     max_epochs = num_epochs,
7     display_progress = True,
----> 8     test_interval = test_interval
9 )
6 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py in cross_entropy(input, target, weight, size_average, ignore_index, reduce, reduction, label_smoothing)
2844     if size_average is not None or reduce is not None:
2845         reduction = _Reduction.legacy_get_string(size_average, reduce)
-> 2846     return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
2847
2848
ValueError: Expected input batch_size (1) to match target batch_size (0).

Hi, there is an error occurred when installing apex. Let me clone your notebook and reproduce the error.

Hi @Ambrish001 , I have cloned your google colab and fixed some bugs for you. You can refer to our documentation for the latest api and examples. Meanwhile, this colab is not using any advanced feature, but that's definitely fine. If you wish to explore more advanced tools, you can refer to this page to specify some configuration.
Colab shared at:
https://colab.research.google.com/drive/1Qbo_mBCHXgUMl2GKTYAWo73sHtV9uqlC?usp=sharing
The colab will expire in 1 day so do copy it to your own google drive.
Feel free to get back to me if you still encounter bugs or have any question. More than willing to help :)

Hi, @Ambrish001 . Hope that you are able to run now. I will close this issue.


Ensure there is only one weather controller instance

This fixes issues where the weather is updated by the app delegate, but
the update isn't actually reflected in the UI.

Ooh tricky 🍭

Dependency injection! 👍


Getting build loops repeating shell and processes build

Describe the bug
When activating the shell for the set up documented below the build takes a long time and repeatedly logs the Building processes and Building shell steps.
To reproduce
Setup and logs: https://gist.github.com/sebasmagri/a18ba94bd994d22db42bf28dc834d876
Version
devenv 1.1.0 (x86_64-linux) installed with home-manager

That doesn't look good, let me look into it.

@sebasmagri it's because you're launching devenv up inside enterShell by using backticks for quotes, which creates a loop:
enterShell -> devenv up -> enterShell -> devenv up -> ...

@domenkozar darn, good catch... should have been obvious. thanks a lot for looking into this!


press-kit: add press contacts and info

Added press contact and info as proposed in #1486. Suggestions are welcome.
The page still needs a lot of work, but for now i only added the new sections on top of what we already have.
preview of the entire page:


Add support for Elixir

Add syntax highlighting support for Elixir: http://elixir-lang.org

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 22 Nov 2013 at 8:41

Bump! I hope this gets implemented soon! 😩

In the meantime, I find the Python prettyfier does a great job for Elixir.

The only reason I keep coming back here is to see Elixir Syntax Highlighting on Stackoverflow (which uses this library).

Is there a grammar for Elixir handy?  Is it's syntax similar to any other language?

Is there a grammar for Elixir handy? Is it's syntax similar to any other language?

It is 'fairly' similar to Ruby, it is basically an immutable, functional Ruby without the weird monkey-patching stuff.  Could probably start with that.  It is a very macro-driven language, has few to no keywords, though some like def are fairly ubiquitous for function definition and defmodule for defining a module and such, but technically even those are macros and may change what they mean depending on if another macro context or not.  I guess it would be best to describe it as a Lisp Macro system of a language with a Ruby syntax...  Intensely powerful, though keywords can be even project dependent.  I can get you a list of the 'global' ones though, but things should be colorized based on context and usage as well, not just simple regex.

I don't care about the distinction between reserved keywords and macro names.  If the elixir community benefits from something being presented as a keyword, then put it on the keyword list.
Saying it's similar to Ruby doesn't help me much since the canonical ruby grammar is 12k lines of dense yacc.
Is # comment a line comment?  What about
=begin
...
=end

blocks?
What are string delimiters?
Is there any syntax for variable interpolation within a string?
Are ' allowed in identifiers?
Are there any facilities for embedding a language?  Not just a macro invocation, but ways of changing the lexical conventions?
Are there any naming conventions that are widely followed especially ones that could distinguish types from variables reasonably reliably?  Like UpperCamelCase types in Java.
What file extensions are typically used for Elixir sources?  Are the lexical conventions the same for all of those?

As in it was 'based' on ruby, but simplified to remove cruft.

Is # comment a line comment? What about
=begin
...
=end
blocks?

Thank god no, just # to end of line.

What are string delimiters?
Is there any syntax for variable interpolation within a string?

A few kinds for a few different string types:
"binary string here" = " are binary string delimiters
'charlist string here' = ' are charlist string delimiters
"Interpolations is #{"supported in these blocks"}" = #{..code} allows for arbitrary code within a string, as long as it returns a binary/charlist of the same type as the outer type
"Escapes\nare supported too" = \ escapes of the usual C variety are supported.
Charlist is a list of integral characters:
[72, 105] = 'Hi'
Binary is a UTF-8 encoded binary:
<<72, 105>> = "Hi"
Strings can naturally be multi-line.  However for ease of embedding " or ' in a string, or both, you can triple up " or ', such as:
"""a biniary string""" = "a binary string"
'''a charlist string''' = 'a charlist string'
"""both support multi-
line""" = "both support multi-
line"

There are also sigil's, they start with ~ then have a single character, if the single character is upper-case then no escaping or interpolation is performed, if lower-case then it is, the sigil can have a unique set of delimiters in the supported list of <>, {}, [], (), ||, //, "", or '', and after the closing delimiter can have a set of options.  You cannot embed a delimiter set within itself, so something like ~s( this is an ( invalid ) string) since it terminates at the first ).  The character if:
c/C = Creates a charlist, thus ~c{Hello World} = Hello World, and C turns off interpolation/escaping s/S = Creates a binary, thus ~s(Hello World) = "Hello World", etc...
w/W = Creates a list of binary words separated by spaced, thus ~w[Hello World] = ["Hello", "World"]
r/R = Create a regex from the string, thus ~r/foo/iu = Regex.compile("foo", "iu")
Users can create their own sigils using any identifier character not used from above.

Are ' allowed in identifiers?

Nope.

Are there any facilities for embedding a language? Not just a macro invocation, but ways of changing the lexical conventions?

Other than macro's strings can also be processed via macros, thus yes you can define any language, can embed python if you want, so for example someone could define this:
# ~P Could call something like `Python.compile(codeString)` and could output elixir AST for example
output = ~P{
  def greet(name):
      print 'Hello', name
}
output.greet("world")

However those are always delimited by one of the above string delimiters, where """ unique code here """ or ''' stuff ''' is the most common format.  And yes some of these exist, an template system one is built into elixir for example, compiles the template to fast executable AST at compile-time, usually used for html templates and such.

Are there any naming conventions that are widely followed especially ones that could distinguish types from variables reasonably reliably? Like UpperCamelCase types in Java.

Language enforced actually.  First of all the language is dynamically, not statically typed.  Basically you have:
Identifiers start with [a-zA-Z], followed by any number of [a-zA-Z0-9@_], followed by an optional ! or ? (or nothing).
Atoms = They always start with : or end with : if they are used as a key, or they are upper-case.  If upper-case initial character they are an identifier but with optional dots . anywhere between the beginning and end characters excepting ! or ? at the end (as they are not available standalone).  In essence :atom is an atom, Atom is a different atom (equal to :"Atom"), if used as a key in a map or so the : can be at the end like ${key: value} = %{:key => value}, and any identifier starting with an upper-case character is an Atom, unquestionably.  An Atom is a program-wide unique enumeration, :atom will always equal :atom but will never equal a :different atom, highly efficient, used everywhere (simple integer comparison at run-time).  Atoms can support arbitrary characters if they are wrapped in delimiters like :"this atom has spaces".
Modules are just atoms with dots between them, so MyModule.SubModule is just an atom, but with a dot followed by a lowercase lettered identifier, like MyModule.SubModule.myFunc references a function on the MyModule.SubModule module named myFunc.
Function reference:  To point to a function (for anonymous application or so) the arity of the function followed the reference of the function, thus MyModule.SubModule.myFunc/2 says that you are pointing to the specific function of myFunc that takes two arguments.
A function reference or anonymous function is called via dot syntax on an identifier that starts with a lower-case character.  There is no namespace overlap between bindings and function names, thus something.() calls an anonymous function on the binding something, and something() calls the local function something.  If something is referenced without () it is always a binding/variable.

What file extensions are typically used for Elixir sources? Are the lexical conventions the same for all of those?

*.ex is an elixir source file.
*.exs is an elixir script that can be executed directly.
*.eex is the template format as its own file for convenience, it uses a file extension before it to define a base type, so "something.html.eex" is an eex template for the html format, or "something.text.eex" or "something.whatever.eex", etc....
Those are the only source files to worry about that are built in with Elixir.
More information about its parser is available in the parser description itself, it is an easy to parse language overall though, this is the actual parser itself (yrl format, kind of like yacc):  https://github.com/elixir-lang/elixir/blob/master/lib/elixir/src/elixir_parser.yrl
The Atom editor plugin has grammars as well that work decently (and is simple):  https://github.com/elixir-lang/language-elixir/tree/master/grammars
The Intellij plugin has a lex parser that can be used for reference at (although it is not quite accurate:  https://github.com/KronicDeth/intellij-elixir/blob/master/src/org/elixir_lang/Elixir.flex

I submitted a PR for adding Elixir support, feel free to have a look: https://github.com/google/code-prettify/pull/478

This can probably be closed once https://github.com/google/code-prettify/pull/478 gets included in a release.


Upgrade to countries 3

Proof-of-concept upgrading countries to v3

country_selelct gem should be compatible with countries 2
s.add_dependency 'countries', '>= 2.0'


Invalid link to slack.

Invalid link to Slack in readme.

Is there any way we can join https://vibora-io.slack.com/


CheckNameAvailabilityResult.IsAvailalbe -> CheckNameAvailabilityResult.IsAvailable for Azure Storage

Description
Fixes #3618 and marks the old property as obsolete.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] I have read the contribution guidelines.
[x] The pull request does not introduce breaking changes.

General Guidelines

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[ ] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[ ] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

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

@azuresdkci test this please


WIP: Updating boilerplate

The only real changes here are in the fact. Could someone take a look at it and make sure my logic is sound?

Rebase and squash? A lot has changed.

I think we can close this. Looks like someone else modulesync'd this module.

OK by me.