QUESTION - Exception Handling

I want to start using refit in my next project. I wonder if there is any clean way to handle all the exceptions thrown from one request instead of try catching it.
Imagine a special case where the request ends because internet wen't down. I wan't to deal with that and notify the user of that specific case.
I don't want to place all my requests inside a try catch.
Any suggestions?

Yes, place your requests in Try/Catch

@Cheesebaron the common error that I said above could happen in every request that I had in my application. Even if I use a generic method that encapsulates every call to have the Try/Catch to check the common erros, the code will have polluted with that.
I was asking this because refit could have a central error handling for cases like this.

You could write a custom HttpClientHandler that handles these kinds of errors

Thank you for the suggestion.
Looking at the HttpClientHandler the only overload that seems possible to intercept the request is the method SendAsync.
protected override System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
{
    try
    {
        return base.SendAsync(request, cancellationToken);
    }
    catch (Exception ex)
    {
        // get common exceptions here
    }
}

The problem is that base.SendAsync(request, cancellationToken);
returns a Task<HttpResponseMessage>witch only return exception when awaited.
So, with this approach it seems to be impossible to do what i need.

So why don't you just await base.SendAsync(request, cancellationToken);?

I could but after that i just need to return a Task<HttpResponseMessage>.

Just change the method to this:
protected override async System.Threading.Tasks.Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
{
    try
    {
        return await base.SendAsync(request, cancellationToken);
    }
    catch (Exception ex)
    {
        // get common exceptions here
    }
}

Yep, its ok now.
Now I'm facing another problem that is when the code executes the catch I must return something.
If i throw the exception i will be end in the same position as i start when writing this post. If I return null the refit request will throw.
What do you suggest in that case?

just return a new HttpResponseMessage() in the catch block and set
its properties as you please
On Mon, 6 Jun 2016 at 08:59 zeferino<EMAIL_ADDRESS>wrote:

Yep, its ok now.
Now I'm facing another problem that is when the code executes the catch I
must return something.
If i throw the exception i will be end in the same position as i start
when writing this post. If I return null the refit request will throw.
What do you suggest in that case?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/paulcbetts/refit/issues/240#issuecomment-223938877,
or mute the thread
https://github.com/notifications/unsubscribe/AGr-6h07Ptqvb5-IMD6LyAKGKIsgatLHks5qJAuzgaJpZM4Ius-t
.


Modal Footer Button placement

@katierik just filed this issue in org: https://github.com/patternfly/patternfly-org/issues/1290 to adjust the button placement in the modal.
This isn't a bug as the buttons exist on the right in Core, however I do remember discussion about the button placement. @mcarrano and @mcoker what do you think about moving the buttons to the left I don't think it will be a breaking change..?

@christiemolloy we have this issue to move the buttons - https://github.com/patternfly/patternfly-next/issues/1599
The problem with aligning the actions to the left is that the buttons would be out of order with the primary button as the last button in the list. We could try and fix that by using flex-direction to reverse the order visually, but that would give us a11y issues and may or may not cause other problems, depending on what someone has put in the modal footer (i.e., something other than buttons).
Can you think of a way to do it without creating a breaking change?

Hi, been looking at your code set and have a suggested fix. There are several ways to fix this.
`
// Solution 1. Use align-self: flex-start (left) or flex-end (right)
// or just apply another style on your footer to control the align-self to change the flex start or end direction.
// Adding another style to the footer maybe the clean way of doing it. If you ever decide to do RTL you can control this behavior and change this dynamically.
// to allow more flexibility but not making this specific to the footer.
.pf-c-modal-box__footer {
display: flex;
flex: 0 0 auto;
align-items: center;
margin-top: var(--pf-c-modal-box__footer--MarginTop);
text-align: left; /** Allows static text or content to be left align /
align-self: flex-start; / Makes all the flex items align to flex start or left **/
}
//Solution 2: Use display: inline-block. Text align will move buttons or any element to left. To make it to the right use text-align: right
// Same as above you can pass another css class to override the display flex to be display block.
.pf-c-modal-box__footer {
display: inline-block; /** override or change to be inline-block if you don't want to use flex-box /
margin-top: var(--pf-c-modal-box__footer--MarginTop);
text-align: left; / All items will be moved to the left **/
}
//Open code to the expand code to code pen. Add the following buttons and css changes to your //example modal or dev environment.
//Add the following css to the web inspector above or add another class to your footer change the display block direction.

  Primary

  Secondary

// Or add some class to change the align-self, ex. align-self-flex-start

  Primary

  Secondary

`

Hey @tqle, thanks for the contribution! These are all valid approaches, and I appreciate the feedback.
The problem with adjusting the alignment currently has to do with introducing a breaking change into a PatternFly user's UI, meaning we want to avoid changing an existing feature that would cause a user's UI to break in some way without a corresponding change in the user's application CSS, markup, etc. Aligning the footer or it's contents to the left would leave actions and potentially other content in the footer out of order since in a left-aligned footer, the actions should be ordered (primary to secondary) from left to right, and in a right-aligned footer, ordered right to left. We could try to visually rearrange the footer contents using flex-direction or order, but since we don't know what elements could exist in a user's modal footer, rearranging the contents could be a breaking change, too.
We have a breaking change release scheduled in the near future where we will be able introduce CSS changes into PatternFly that will need to be accompanied with markup changes in order for the components to display as intended. That work will be completed in https://github.com/patternfly/patternfly-next/issues/1599 if you would like to subscribe or be involved in any way.

@mccoker - Ok. I understand the issue.  The breaking change sounds like the best solution.  I guess my only question is if there is a limit on how many elements that go in the footer or what the ux guidelines for the footer content.  I'll be glad to help in any way.

@tqle I think this would be a great question to post on our forum where designers can answer questions about best practices, and it will serve as a resource for other users who may have this question in the future. https://forum.patternfly.org

Closing this issue in favor of #1599

As Christie stated, closing in favor of 1599


Image maker doesn't appear on bottom left

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
1818
Describe the bug
Image maker doesn't appear as an option on the bottom left.  I saw some with the same problem, but didn't find the if they found a solutions.
Video
https://www.youtube.com/watch?v=JZDKx7zcnAQ
Device model
Xiaomi MI 9 SE
Android version
10
Screen size
1080 x 2340
RAM
6 GB

You're not recording with FGA as instructed.
Because you used Android's built-in recorder, you made FGA blind.
Stop the FGA service, enable Recording in More Options, start the FGA service again and then try again.
The problem will probably disappear as soon as you've restarted the service.

I did enable the record screen now and restarted it. But i noticed that the use root for screenshots failed to get access, do you have any idea how to resolve this problem?
https://imgur.com/a/JlaufeA

You can only use "root mode" if you've unlocked your Bootloader and installed Magisk.
If you don't know what this means, ignore that config option.

I restarted my device, restarted the app too. Also i noticed that the app doesn't start the battle tbh.
I'm trying to follow the guide frow youtube. That's why i asked about the root settings.
Now the record file appeared at least, and it's like this https://www.youtube.com/watch?v=VRLJsU2ey14
The tap was made by me. Should i try usign the later versions?

https://github.com/Fate-Grand-Automata/FGA/wiki/Game-Area-detection#case-1-borders-around-fgo-are-black

Everything is working smoothly now, the button appeared too, thank you so much!


collect and report the test coverage

[x] unit tests
[ ] integration tests

@individual-it what about integration test

we first need to run the tests in CI (see #16) and then we also should collect the test-coverage of the integration tests


Remove previous session history for pwsh and zsh

For pwsh and zsh, history is flushed to the file after every command that is run and we can also parse out the commands perfectly AFAICT including new lines. Contrast this to bash which doesn't flush and doesn't retain new lines (in a regular setup).

Because of this it would be ideal if we could remove previous session history all together for pwsh and zsh to consolidate on a single source of truth. However, we only parse pwsh and zsh history a single time per window currently and if we got rid of previous session we would need to track and continually update the window's knowledge of file history. An important thing to keep in mind here is we want no pty host latency when triggering the run recent command so when do we sync the history exactly?
For bash the problem is more complicated because:

bash does not flush history to file until the session exits
if bash it doesn't exit properly it can sometimes discard history
bash doesn't retain new lines, once you exit a session and history is flushed, even another bash session doesn't know 2 lines in .bash_history are 2 commands:

Code pointer to where terminal command history is maintained: https://github.com/microsoft/vscode/blob/b0d60e8e2e90bc9d7913611c176d14b8eb91b532/src/vs/workbench/contrib/terminal/common/history.ts


Tooling check

Description:
$subject.

Related issues: https://github.com/ballerina-platform/ballerina-standard-library/issues/2556


Http 500: No devices found to debug. Please ensure that a device is connected and awake and retry.

I am trying to run on "remote device". I ping.
I just got this issue.

This repository is deprecated and not actively maintained. Please refer to https://github.com/microsoft/remotebuild which is the new repository. Open an issue over there (so others who may have the same problem can benefit) and we'll troubleshoot what's going on.


Taping on message action

Is there a way to get response when I tap on message? For example I received an image and would like to tap on it and have it in fullscreen.
All I need is to determine what message I tapped and if it's a picture message I want to have access to that UIImage.
Is something like this even possible with this library? Since it is not using any indexPath technique so I have no clue what to do
Please give some reasonable help
Thank you!

@atainter Any words on that?

@yarodevuci I think you could for example:

Add a method to the ContentNode class via extension (e.g. respondToTap())
Create a ImageContentNode subclass and override this method to do what you want (you'll maybe need to hold a reference to your view controller, like in the TextContentNode class, via the corresponding initializer)
Create a MessageNode subclass, and make it call the responseToTap method of its contentNode attribute when you tap it (by overriding viewDidLoad for example)

And you should be good. It's not really straightforward, but it should work.


How to install latest version of Talos in Google Colab?

I'm trying to install the latest version of Talos in Google Colab.
I used pip as follows: pip install talos==0.6.6
However, I noticed that I get the version 0.6.4 instead when I print ta.__version__
How can I fix that?
Thanks

Interesting. Can you try pip install talos -U or then you could also do pip install git+https://github.com/autonomio/talos and that should get you the latest version.

Interesting. Can you try pip install talos -U or then you could also do pip install git+https://github.com/autonomio/talos and that should get you the latest version.

I tried both of them and I still get the version 0.6.4 when I print ta.__version__
What's really weird is when I try to reinstall Talos using  pip uninstall talos it displays Uninstalling talos-0.6.7.
How is that possible? Is something wrong with ta.__version__?

And this is happening in a totally remote Google colab notebook that does not have any connection with your local machine or some remote host?

Yes, it has nothing to do with my machine. The code is run on the cloud of Google Colab.
I finally managed to install the latest version of Talos using pip install git+https://github.com/autonomio/talos
I still get version 0.6.4 when I print ta.__version__ but I don't get any error in my code after the update. I believe Talos was updated to version 0.6.7 anyway.
There is probably something wrong with ta.__version__ which does not display the currently installed version.

That is in fact 0.6.7 version, but __init__.py had still the old version.


Add broadcasting functionality for Div and Sub ops.

Hi,
Added broadcasting functionality for Div and Sub ops following the examples of Add and Mul.
Regards,
Hovhannes

I signed it!

It has been 14 days with no activity and the awaiting response label was assigned. Is this PR still valid? Assigning the stalled label. Please comment to reassure me that this is still being worked on.

I fixed conflicts and committed them, so please remove "stalled" label

Can you look at the test failures?
In file included from tensorflow/contrib/lite/kernels/pooling.cc:26: ./tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h:1415:6: error: redefinition of 'BroadcastDiv' void BroadcastDiv(const T* input1_data, const Dims<4>& input1_dims,      ^ ./tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h:1347:6: note: previous definition is here void BroadcastDiv(const T* input1_data, const Dims<4>& input1_dims,

Thanks jhseu for help.


Add additional_condition callback, and additional_attributes callback

Adds an additional condition to any/all CRUD actions for this resource:
function additional_condition({resourceDefinition, crudAction, req}) {
  return {user_id: req.user.id};
}

And an additional_attributes callback, for creation:
function additional_attributes({resourceDefinition, crudAction, req}) {
  return {user_id: req.user.id};
}

Useful for authorization around ownership.
Split out from #25

additional_attributes has been moved to #238
Also, #237 documents fixing some of the bugs with the current, simple implementation of additional_condition.


local npm install: "Error: Unimplemented type: 4" - broken PBF cache

Steps to reproduce

Install mapscii by npm, or by snap (Kubuntu Linux 18.04.2 Bionic Beaver)
Run mapscii
Get error

Current behavior

sudo npm install -g mapscii

npm WARN deprecated<EMAIL_ADDRESS>CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
/usr/bin/mapscii -> /usr/lib/node_modules/mapscii/bin/mapscii.sh
+<EMAIL_ADDRESS>added 27 packages from 20 contributors in 1.517s

mapscii

Error: Unimplemented type: 4
    at Pbf.skip (/usr/lib/node_modules/mapscii/node_modules/pbf/index.js:200:20)
    at Pbf.readFields (/usr/lib/node_modules/mapscii/node_modules/pbf/index.js:41:45)
    at new VectorTile (/usr/lib/node_modules/mapscii/node_modules/@mapbox/vector-tile/lib/vectortile.js:8:23)
    at Tile._loadTile (/usr/lib/node_modules/mapscii/src/Tile.coffee:31:13)
    at /usr/lib/node_modules/mapscii/src/Tile.coffee:26:24
    at tryCatcher (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/usr/lib/node_modules/mapscii/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)

Welcome to MapSCII! Use your cursors to navigate, a/z to zoom, q to quit.

Expected behavior

map displayed.

Steps to fix

rm -rf ~/.mapscii/cache
app starts normally

According to https://wiki.openstreetmap.org/wiki/PBF_Format , Type 4 is optional Info info = 4; // May be omitted in omitmeta - perhaps the downloaded mapfile was corrupt?
Perhaps this could be handled in-app, or at least given a more descriptive error message - meanwhile, the error and fix is discoverable here.


coverageReporters seems to be not supported

Things to consider before raising a bug
It seems coverageReporters is not supported, willing to make a PR to add it, but not sure where to start.
Describe the bug
I get the follow error
'● Validation Warning:\n' +
  '\n' +
  '  Unknown option "coverageReporters" with value ["html", "text", "text-summary", "cobertura"] was found.\n' +
  '  This is probably a typing mistake. Fixing it will remove this message.\n' +
  '\n' +
  '  Configuration Documentation:\n' +
  '  https://jestjs.io/docs/configuration\n' +
  '\n'

A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Create a project with jest config with coverageReporters https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options

Desktop (please complete the following information):

OSX

@alexkev great that you are considering fixing this 🙏 . I see it too. On thing missing from your issue is the impact.
For me the impact of this is that test explorer can't discover tests. I think at least the error message should be clearer that you'll need to remove the coverageReporters config line and restart VS Code to fix the problem. Perhaps it should be a fatal error rather than just a warning.


Chaining off of cached Promise causes cached value to be modified

I just recently found out that when using this library to memoize a function that returns a promise that if you chain a .then off the cached value and then return anything besides the original value (or don't return anything at all) then you will end up modifying the cached value to whatever you returned (or undefined if you don't return anything).
Example:
'use strict';

var memoize = require('memoizee'),
	promise = require('bluebird');

var returnPromisifiedArray = function ( number ) {
	return new promise(function (resolve, reject) {
        resolve([{val : number}]);
    });
}

var returnTestArray = function ( numberInArray ) {
	console.log('Cache miss! Called with: ' + numberInArray);
	return returnPromisifiedArray(numberInArray);
};

var returnTestArrayMemoized = memoize(returnTestArray, {primitive: true, max: 1000});

var runTest = function () {
	return returnTestArrayMemoized(1)
		.then(function (value) {
			console.log(value);
			value = value.map(function(item) {
				item.badVal = 'fail';
				return item;
			});
			return value;
		}).catch(function (err) {
			console.log('unexpected error');
		});
};

runTest(); // Retrieves [ {a : 'b'} ] from the cache (expected value)
runTest(); // Retrieves [ {a : 'b', b : 'c'} ] from the cache (not the expected value)

This example appears to be hitting line 78 and 86 in configure-map.js which is setting the cache to have the original return value and then later returns it, which potentially allows for modifications to be made to the cached value.
Not sure if you consider this part of the scope of #35 or not, but I figured it couldn't hurt to log it here in case other people also run into this.

Also, if the value that is resolved in the Promise that is cached is an array of numbers then the cached value is not modified.
Example:
'use strict';

var memoize = require('memoizee'),
	promise = require('bluebird');

var returnPromisifiedArray = function ( number ) {
	return new promise(function (resolve, reject) {
        resolve([number]);
    });
}

var returnTestArray = function ( numberInArray ) {
	console.log('Cache miss! Called with: ' + numberInArray);
	return returnPromisifiedArray(numberInArray);
};

var returnTestArrayMemoized = memoize(returnTestArray, {primitive: true, max: 1000});

var runTest = function () {
	return returnTestArrayMemoized(1)
		.then(function (value) {
			console.log(value);
			value = value.map(function(item) {
				item.badVal = 'fail';
				return item;
			});
			return value;
		}).catch(function (err) {
			console.log('unexpected error');
		});
};

runTest(); // Retrieves [ 1 ] from the cache (expected value)
runTest(); // Retrieves [ 1 ] from the cache (expected value)

Note that the only difference between the two examples is:
Cache Modification Example: resolve([{val : number}]);
Cache Non-modification Example: resolve([number]);

@mrodrig this is expected and very natural behaviour when JavaScript is concerned, also it doesn't have to do anything with promises. You're test case can be much simpler:
var memoizedFn = memoize(function (id) { return {}; });

var obj = memoizedFn('foo');
obj.hello = 'bar!';

var otherObj = memoizedFn('foo');
console.log(otherObj.hello); // bar
console.log(otherObj === obj); // true

If you use memoize to cache functions that return objects, you should expect same objects being returned on cache hit calls, and if one of consumers modifies result object, such modification will naturally be visible for all other consumers of object, and will remain across cache hits.
The one way to avoid it, is to clone object before you try to mess with it, or find some other way to store needed values.


:sparkles: add two sections about my hair and running

Current dependencies on/for this PR:

master

PR #29   👈

This comment was auto-generated by Graphite.


Fix the resource_url for UUID primary key

Fixed issue that was originally resolved on #90

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ac8638d). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #131   +/-   ##
=========================================
  Coverage          ?   65.97%
=========================================
  Files             ?       18
  Lines             ?      435
  Branches          ?        0
=========================================
  Hits              ?      287
  Misses            ?      148
  Partials          ?        0

Impacted Files
Coverage Δ

src/auditlog/mixins.py
0% <0%> (ø)

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 ac8638d...a21a74f. Read the comment docs.

Hi!, sorry for the delay... I wrote a test but couldn't make it work though.
This is the test I tried to implement on UUIDPrimaryKeyModelModelTest:
def test_admin_resource_url(self):
    ma = LogEntryAdmin(LogEntry, admin.site)
    obj_log_entry = self.obj.history.first()
    self.assertNotEqual(self.ma.resource_url(obj_log_entry), obj_log_entry.object_repr)

The test requires a proper admin config on auditlog_test

ok ill take a look at it


Forever while loop does not work with true

The following program compiles without any issue:
void print(string value);

i32 main() {
   while 1 == 1 {
      print("hello, world!");
   }
   return 0;
}

However, this does not work:
void print(string value);

i32 main() {
   while true {
      print("hello, world!");
   }
   return 0;
}

The following error is printed by LLVM:
Branch condition is not 'i1' type!
  br i8 1, label %2, label %3
i8 1
LLVM ERROR: Broken module found, compilation aborted!
Aborted (core dumped)

It's seems like a type mismatch in the LLVM bytecode.

Seems like, for condition of br instruction, the LLVM IR does not take true as a value of type i1  but it does take the result of the comparison operation as a value of type i1.
Where exactly is the keyword true parsed?

Does br expect i1 or i8? Currently true is represented by i8.
https://github.com/itssamuelrowe/kush/blob/3e4e4bc96e0bb488c09001efae82e3f2583d72f9/source/generator.c#L246

br expects a boolean value, i.e., i1. Also is there a specific reason you need 8 bits to represent true or false?

I don't think i8 is a necessity. We can go with i1.

This issue has been fixed: https://github.com/itssamuelrowe/kush/commit/371c8ab49ad0225e1b80430b4a85d1cb86a47cb1


More than 1 stop Command is Required to stop the Daemon

If the Gigablast is tarted by
gb -d

then the
gb stop

has to be called more than once to stop the daemon.

ok thank you
do we have to adjust hosts.conf file to add the IP of a live server on the Cloud?
or will it still run at localhost:8000?
Lisa


HBASE-25135 Convert the internal seperator while emitting the memstor…

Change the internal seperate to '#' so that we support families that have '_' in it.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 43s
Docker mode activated.

-0 :warning:
yetus
0m  3s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ master Compile Tests _

+0 :ok:
mvndep
0m 23s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
4m 53s
master passed

+1 :green_heart:
compile
1m 40s
master passed

+1 :green_heart:
shadedjars
8m  1s
branch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 23s
hbase-hadoop-compat in master failed.

-0 :warning:
javadoc
0m 47s
hbase-server in master failed.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 17s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
4m 46s
the patch passed

+1 :green_heart:
compile
1m 38s
the patch passed

+1 :green_heart:
javac
1m 38s
the patch passed

+1 :green_heart:
shadedjars
9m 22s
patch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 23s
hbase-hadoop-compat in the patch failed.

-0 :warning:
javadoc
0m 52s
hbase-server in the patch failed.

_ Other Tests _

+1 :green_heart:
unit
0m 41s
hbase-hadoop-compat in the patch passed.

+1 :green_heart:
unit
131m 43s
hbase-server in the patch passed.

169m  3s

Subsystem
Report/Notes

Docker
Client=19.03.13 Server=19.03.13 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2486

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 3daf41bac3ae 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / ee02e673b7

Default Java
2020-01-14

javadoc
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-hadoop-compat.txt

javadoc
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt

javadoc
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-hadoop-compat.txt

javadoc
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/testReport/

Max. process+thread count
3844 (vs. ulimit of 30000)

modules
C: hbase-hadoop-compat hbase-server U: .

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
2m  8s
Docker mode activated.

-0 :warning:
yetus
0m  3s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ master Compile Tests _

+0 :ok:
mvndep
0m 29s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
5m 36s
master passed

+1 :green_heart:
compile
2m  0s
master passed

+1 :green_heart:
shadedjars
10m 17s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m 19s
master passed

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 18s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
5m 30s
the patch passed

+1 :green_heart:
compile
1m 45s
the patch passed

+1 :green_heart:
javac
1m 45s
the patch passed

+1 :green_heart:
shadedjars
9m 16s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m 22s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
0m 52s
hbase-hadoop-compat in the patch passed.

-1 :x:
unit
244m 30s
hbase-server in the patch failed.

287m 55s

Subsystem
Report/Notes

Docker
Client=19.03.13 Server=19.03.13 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk8-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2486

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux c71281bbed20 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / ee02e673b7

Default Java
1.8.0_232

unit
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/artifact/yetus-jdk8-hadoop3-check/output/patch-unit-hbase-server.txt

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/testReport/

Max. process+thread count
2999 (vs. ulimit of 30000)

modules
C: hbase-hadoop-compat hbase-server U: .

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2486/1/console

versions
git=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Thanks for the review. Test case failure are unrelated to the fix. Will merge now.


add support for proteus:",(protobuf field id)" in golang tag

Now you can specify the ID of the peoto file in the following way:
type Example struct {
    Filed int32 \`proteus:",101"\`
}

This example will generate the following protobuf message.
message Example {
        int32 Filed = 101;
}

Please rebase on the latest master - it should fix the CI.

Add tests and example


update latest samples to 1.0.0-rc1-update1

samples/latest updated to 1.0.0-rc1-update1.
This commit fixes #1155

Hi @sfilatov, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@sfilatov, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, DNFBOT;

@glennc ?

ping

I think the latest means the aspnetvnext feed in myget, not the last stable in nuget.

Outdated. I will close because ongoing work #1277 will switch latest sample to current latest version


Install Renovate bot to devfile registry

Which area/kind this issue is related to?
/area ci
Issue Description
Follow the Installation notes here in order to add renovate to the devfiles org. Some details:

At first only the registry repo should be included to the bot's configuration. In the future all other repos will be added.
After the installation of renovate a PR will be created to the registry repo. We will have to update this PR with the following configuration:

{
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": [
      "config:base",
    // Using this helper in order to pin digest of github action
      "helpers:pinGitHubActionDigests"
    ],
    // Helps the bot only to run these managers and skip all others
    "enabledManagers": ["regex", "github-actions"],
    "regexManagers": [
      {
        // Using regex manager to define a custom way to fetch devfile image tags
        "fileMatch": [
          "devfile.*y[a]?ml$"
        ],
        "matchStrings": [
          "image: (?<depName>\\S*):(?<currentValue>\\S*)"
        ],
        "datasourceTemplate": "docker",
        "depNameTemplate": "{{{depName}}}"
      }
    ],
    "packageRules": [
        // Grouping github-actions in order to reduce renovate PR noise
        {
          "matchManagers": ["github-actions"],
          "groupName": "github actions",
          "groupSlug": "github-actions",
          "commitMessageTopic": "{{depName}}"
        }
    ],
    // Ignoring these paths in order to reduce PR noise
    "ignorePaths": [
      "**/docker/**",
      ".ci/**",
      "tests/**"
    ]
}

Acceptance Criteria

[x] Ensure all image references (including innerloop and outerloop) are updated for every stack
[ ] Add renovate.json and invite the self hosted bot to registry repo
[x] #1138 should also be completed in the same PR

/area ci

I'd suggest to configure the self-hosted renovate-runner not to onboard by default. With that, every repo you do want to onboard, just add the renovate.json file and add the repository name to the renovate-runner config.js file.

@lmilbaum moving the discussion to the parent issue :)

Epic https://github.com/devfile/api/issues/992 was opened to address manually updating the Node.js v12 actions since the due date is more imminent.  We can wait for renovatebot to be installed to remediate the other deprecating action https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Created PR in order to add the renovate.json configuration to the registry repo. Once is reviewed & merged we can add the repo to the self hosted renovate runner as mentioned previously.

Regarding https://github.com/devfile/registry/pull/205 I've sent a reminder to the stack owners in order to review the pr so we can proceed with the installation of renovate.

All conversations with owners have been resolved and the PR is now again ready to be reviewed :)

Re-Opening the issue as we have to add the repo to the self-hosted runner

The registry repo is now included to the self hosted runner config. The last step is to invite their bot to registry repo

The bot is now invited to the repo and the demo of this feature is ready. Moving back to current sprint and marking it as done

@thepetk Out of curiosity, where are demos usually stored? A Youtube playlist? On the shared drive?


Performance issue

I have run benchmarks and seems like we have some issue with performance, so I suggest doing the following to fix ones:

[ ] Rewrite nothing using Rust.
[ ] Use nothing instead nothing.

I made a program to know if we should implement nothing on Rust

...and as you can see the output is no

That is already implemented

@filippocld Seems like the current implementation of nothing works really slowly on some OS, such as
Ubuntu 16.04

and Windows 10:


bug ingesting Q2 datasets

Error when ingestin Q2 datasets, example in notebook https://github.com/earthpulse/eotdl/blob/main/tutorials/notebooks/04_q2_datasets.ipynb
Loading STAC catalog... New version created, version: 48
100%|██████████| 308/308 [01:01<00:00,  4.98it/s]
Ingesting STAC catalog...
[Errno 2] No such file or directory: '/home/.../data/sentinel_2_q2/catalog.json'

fixed in v2024.12.28, both cli and API
Error was in class MLDatasetQualityMetrics (https://github.com/earthpulse/eotdl/blob/main/api/api/src/usecases/datasets/stac.py) when computing metrics and storing updated catalogs, we were not saving as SELF_CONTAINED, hence storing absolute paths instead of relative paths and breaking the ingestin in the API.


WASM asset loading

This PR adds basic asset loading support for wasm32 target (see assets_wasm example).
Currently only AssetServer.load is implemented (AssetServer.load_sync makes no sense in web context, load_asset_folder is tricky, because it will need some html parsing, but it seems doable in the future).

In single_threaded_task_pool.rs, you can delete all Send bounds because spawned tasks are run on the same thread that has spawned them. This should fix the compilation errors on wasm.
diff --git a/crates/bevy_tasks/src/single_threaded_task_pool.rs b/crates/bevy_tasks/src/single_threaded_task_pool.rs
index 8899feb9..de641760 100644
--- a/crates/bevy_tasks/src/single_threaded_task_pool.rs
+++ b/crates/bevy_tasks/src/single_threaded_task_pool.rs
@@ -59,8 +59,8 @@ impl TaskPool {
     /// This is similar to `rayon::scope` and `crossbeam::scope`
     pub fn scope<'scope, F, T>(&self, f: F) -> Vec<T>
     where
-        F: FnOnce(&mut Scope<'scope, T>) + 'scope + Send,
-        T: Send + 'static,
+        F: FnOnce(&mut Scope<'scope, T>) + 'scope,
+        T: 'static,
     {
         let executor = &async_executor::LocalExecutor::new();
         let executor: &'scope async_executor::LocalExecutor<'scope> =
@@ -90,8 +90,8 @@ pub struct Scope<'scope, T> {
     results: Vec<Arc<Mutex<Option<T>>>>,
 }

-impl<'scope, T: Send + 'scope> Scope<'scope, T> {
-    pub fn spawn<Fut: Future<Output = T> + 'scope + Send>(&mut self, f: Fut) {
+impl<'scope, T: 'scope> Scope<'scope, T> {
+    pub fn spawn<Fut: Future<Output = T> + 'scope>(&mut self, f: Fut) {
         let result = Arc::new(Mutex::new(None));
         self.results.push(result.clone());
         let f = async move {

Ok, removing WIP mark as I'm quite happy how it looks like now.
@cart  could you take a look? I've changed a bit interface of AssetLoadRequestHandler -  handle_request is async now (with help of async_trait macro). I've changed also the way async loader are kept in AssetServer: RwLock<Vec<Arc<dyn AssetLoadRequestHandler>>> instead of Arc<RwLock<Vec<Box<dyn AssetLoadRequestHandler>>>> - this allows for easy passing Arc to spawned future.
@smokku - I've added missing ThreadPool.spawn implementation to single_threaded_task_pool  with some comment - could you take a look?

I've added missing ThreadPool.spawn implementation to single_threaded_task_pool with some comment - could you take a look?

The multi-threaded implementation returns Task<T> which is a future that can be awaited (returning the spawned future value).
Maybe we could use oneshot channel to pass a value from inside of spawn_local to a Received wrapped as a Task?

Maybe we could use oneshot channel to pass a value from inside of spawn_local to a Received wrapped as a Task?
Looks promising, but I'm not sure if it will work when sender is on other executor than receiver, will try.

@cart could you take a look?

@mrk-its sure thing. looking now!

Also note that I'm sorting out the future of the asset system with @kabergstrom right now, so there will likely be same breaking changes in the near future.

Also note that I'm sorting out the future of the asset system with @kabergstrom right now, so there will likely be some breaking changes in the near future.

Sure, I'll try to keep wasm part working and up to date.


checkout in filepath instead of rust.rustLangSrcPath when debugging

Which OS: Arch Linux
Which LLDB version (lldb -version): 3.9.1
Which VSCode version (Help/About): 1.10.2
What is the problem and how did you get there:
Cargo hello_world
Changed code to:
fn main() {
    println!("Hello, world!");
    println!("tes");
    let mut ten = 10;
    ten += 10;
    for _ in 0..ten {
        if ten % 2 == 0 {
            ten+=1
        }
    }
}

{
	"version": "0.2.0",
	"configurations": [
		{
			"type": "lldb",
			"request": "launch",
			"name": "Debug",
			"program": "${workspaceRoot}/target/debug/hello_world",
			"args": [],
			"cwd": "${workspaceRoot}"
		}
	]
}

Set breakpoint line at 2.
run debug hit next until the error
Error:
Unable to open 'range.rs': File not found (/checkout/src/libcore/iter/range.rs).
It should be looking in the set "rust.rustLangSrcPath": "/home/host/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src",
note:
sudo ln -s /home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/ /checkout fixed this issue for me.

rust.rustLangSrcPath is a configuration setting of a different plugin.
But even if I used it anyway, there's no reliable way to find out which part of the path is a build machine-specific prefix.  If you'd like to step into libstd, please use the source path remapping feature.


Comparisons based on secondary or derived metrics must be explicit

An proposed policy change states that comparisons based on secondary or derived metrics must be explicit.
Performance is clearly a primary metric. Is power a primary or a secondary metric? In either case, a derived metric such as inferences per second per Watt would need to be presented alongside the primary metrics.
Are we good with that?

Anton: Could you please ask this question in the original PR discussion? https://github.com/mlcommons/policies/pull/69

We cannot use any normalized metric because the metric is not constant:  Performance and Power do not scale linearly, so trying to do a ratio is misleading.  Performance and Power should continue to  be reported separately as has been done in r1.0
As regards primary or secondary metric , I do not understand the context of the question.  I would think that we'd need to go back to the WG where this was discussed or brought up rather than solve in Power WG.

Moved my comments to the PR discussion : mlcommons/policies#69
We can close this issue


Simulating two-qubit error channel with Cirq

Hi, all! I encounter the problem that it seems not obvious to use Cirq to simulate 2-qubit error. However, these tyeps of errors are often encountered when considering device-like noise. In this case, I defined myself with the two-qubit deplorizing error and thermal error, which consists of dephasing and reset error as follows.
class SingleQubitThermal(cirq.SingleQubitGate):
    def __init__(self, pz: float, p_reset: float) -> None:
        self.pz = pz
        self.p_reset = p_reset

    def _mixture_(self):
        ps = [1.0 - self.pz - self.p_reset, self.pz, self.p_reset]
        ops = [cirq.unitary(cirq.I), cirq.unitary(cirq.Z), cirq.ops.reset]
        return tuple(zip(ps, ops))

    def _has_mixture_(self) -> bool:
        return True

    def _circuit_diagram_info_(self, args) -> str:
        return f"SingleQubitThermal({self.pz, self.p_reset})"

class TwoQubitDeplorizing(cirq.Gate):
    def __init__(self, p: float) -> None:
        self._p = p

    def _mixture_(self):
        ps = [1.0 - self._p, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15\
            , self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15]
        ops = [cirq.unitary(cirq.I), cirq.unitary(cirq.linalg.kron(cirq.X, cirq.I)), cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.I))\
            , cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.I)), cirq.unitary(cirq.linalg.kron(cirq.I, cirq.X))\
                , cirq.unitary(cirq.linalg.kron(cirq.I, cirq.Y)), cirq.unitary(cirq.linalg.kron(cirq.I, cirq.Z))\
                    , cirq.unitary(cirq.linalg.kron(cirq.X, cirq.X)), cirq.unitary(cirq.linalg.kron(cirq.X, cirq.Y))
                    , cirq.unitary(cirq.linalg.kron(cirq.X, cirq.Z)), cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.X))
                    , cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.Y)), cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.Z))
                    , cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.X)), cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.Y))
                    , cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.Z))]
        return tuple(zip(ps, ops))

    def _num_qubits_(self):
        return 2

    def _has_mixture_(self) -> bool:
        return True

    def _circuit_diagram_info_(self, args) -> str:
        return f"TwoQubitDeplorizing({self._p})"

Then, I add the noise after each gate applied in a circuit, and simulate in the following form.
noisy_result = noisy_simulator.simulate(circuit, qubit_order=qubits,
                                initial_state=initial_state)
noisy_state = noisy_result.final_density_matrix
noisy_state = scipy.sparse.coo_matrix(noisy_state)

However, it output that DensityMatrixSimulator does not support the two channel that I defined. So, I want to ask how to solve this problem?

Hi @ironmanaudi this doesn't look like it's an issue or bug with the Cirq library itself, but is instead a question about how to use the library. I'm happy to answer the question here, but next time it might be better to post on stackoverflow.com in the quantum computing section under the Cirq tag. There are different issues with each channel provided:
The first channel won't work because the contract of _mixture_ is being violated. _mixture_ expects channels that can be described using probabilities of applying a given unitary. The reset operation is non unitary and won't work. It might be worth looking into trying to fill out the _channel_ function instead.
For the second channel the cirq library functions are being used in the incorrect order. Instead of something like:
def _mixture_(self):
        ps = [1.0 - self._p, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15\
            , self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15, self._p/15]
        ops = [cirq.unitary(cirq.I), cirq.unitary(cirq.linalg.kron(cirq.X, cirq.I)), cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.I))\
            , cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.I)), cirq.unitary(cirq.linalg.kron(cirq.I, cirq.X))\
                , cirq.unitary(cirq.linalg.kron(cirq.I, cirq.Y)), cirq.unitary(cirq.linalg.kron(cirq.I, cirq.Z))\
                    , cirq.unitary(cirq.linalg.kron(cirq.X, cirq.X)), cirq.unitary(cirq.linalg.kron(cirq.X, cirq.Y))
                    , cirq.unitary(cirq.linalg.kron(cirq.X, cirq.Z)), cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.X))
                    , cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.Y)), cirq.unitary(cirq.linalg.kron(cirq.Y, cirq.Z))
                    , cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.X)), cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.Y))
                    , cirq.unitary(cirq.linalg.kron(cirq.Z, cirq.Z))]
        return tuple(zip(ps, ops))

one would probably want:
def _mixture_(self):
        ps = [
            1.0 - self._p,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
            self._p / 15,
        ]
        ops = [
            np.eye(4),
            cirq.linalg.kron(cirq.unitary(cirq.X), cirq.unitary(cirq.I)),
            cirq.linalg.kron(cirq.unitary(cirq.Y), cirq.unitary(cirq.I)),
            cirq.linalg.kron(cirq.unitary(cirq.Z), cirq.unitary(cirq.I)),
            cirq.linalg.kron(cirq.unitary(cirq.I), cirq.unitary(cirq.X)),
            cirq.linalg.kron(cirq.unitary(cirq.I), cirq.unitary(cirq.Y)),
            cirq.linalg.kron(cirq.unitary(cirq.I), cirq.unitary(cirq.Z)),
            cirq.linalg.kron(cirq.unitary(cirq.X), cirq.unitary(cirq.X)),
            cirq.linalg.kron(cirq.unitary(cirq.X), cirq.unitary(cirq.Y)),
            cirq.linalg.kron(cirq.unitary(cirq.X), cirq.unitary(cirq.Z)),
            cirq.linalg.kron(cirq.unitary(cirq.Y), cirq.unitary(cirq.X)),
            cirq.linalg.kron(cirq.unitary(cirq.Y), cirq.unitary(cirq.Y)),
            cirq.linalg.kron(cirq.unitary(cirq.Y), cirq.unitary(cirq.Z)),
            cirq.linalg.kron(cirq.unitary(cirq.Z), cirq.unitary(cirq.X)),
            cirq.linalg.kron(cirq.unitary(cirq.Z), cirq.unitary(cirq.Y)),
            cirq.linalg.kron(cirq.unitary(cirq.Z), cirq.unitary(cirq.Z)),
        ]
        return tuple(zip(ps, ops))

There is also a built in multi qubit depolarizing channel which can be used as well with: cirq.depolarize(p=0.001, n_qubits=2)

As an alternative to defining your own channel types, you could instead create a MixedUnitaryChannel, which can be constructed from a sequence of (probability, unitary) tuples like the tuple returned above.

@ironmanaudi going to close this for now.


Links to show example are broken on

Hi @mcintyre321 I hope this message finds you well with everything. I love your project and I hope to see all the features of the datatables implemented on it.
Just wanted to note that Create a controller (see example) and render the partial (see example) link on the demo site are not working.
I know this might not be the place to post this issue but it was the only way to notify you.
Best Regards
Keep the good code coming :)

Thanks, there are quite a few issues on the docs. I'll take a look at them when I get a chance (or any pull requests gratefully accepted!)


StarforgedOracle File Error "Could not read file cache."

Hi.  Thanks for making this.  I was just researching how to do exactly this but was probably going to have to figure out how to do it programmatically when you already did.  I'm having an issue though.
Some tables in StarforgedOracleTables aren't working.  Below is the error I saw when viewing factions in the main page.  I'm not sure what's going on.  I just learned about Obsidian and am not sure about the linking process, but it seems like something may be broken either on my end or on the .md files.  Not sure though.  Thanks
Will
FACTIONS ERROR

ERROR

EDIT MODE

PREVIEW MODE

I fixed the error manually.  There were missing references to the tables.

dice: 1d100
NameTemplate

1 - 40
dice: [[StarforgedOracleTables#^FactionsLegacy]] dice: [[StarforgedOracleTables#^FactionsAffiliation]]

41 - 55
dice: [[StarforgedOracleTables#^FactionsLegacy]] dice: [[StarforgedOracleTables#^FactionsIdentity]]

56 - 70
dice: [[StarforgedOracleTables#^FactionsIdentity]] of the dice: [[StarforgedOracleTables#^FactionsLegacy]] dice: [[StarforgedOracleTables#^FactionsAffiliation]]

71 - 100
dice: [[StarforgedOracleTables#^FactionsAffiliation]] of the dice: [[StarforgedOracleTables#^FactionsLegacy]] dice: [[StarforgedOracleTables#^FactionsIdentity]]

^FactionsNameTemplate

I am not sure how to fix it in python.

Just wanted to say thanks @willshattuck ! You fixed the problem for me.

Other than highlighting the issue I'm not sure what I did. :-)


Spawn do not exist!

I'm trying to use the new version 1.0.1 with PNG compression but it keeps giving me the error:
Compressing PNG image: ionic.png
child_process.js:1162
throw errnoException(err, 'spawn');
^
Error: spawn UNKNOWN
at exports._errnoException (util.js:746:11)
at ChildProcess.spawn (child_process.js:1162:11)
at exports.spawn (child_process.js:995:9)
Can you take a look?

Seems to be a Windows only issue

Yes it seems to be a problem with Node's child_process.spawn itself.
Thanks for the report, I'll check it at night.

Could you please give me more information about your environment? I'll test this update in a Windows 10 machine with Node 0.12.7

Fixed in version 1.0.2


Fetch weather forecast

Open Weather Maps has an API which allows us to forecast the next 5 days. We could have another worker, which will run daily and fetch this forecast.
Two things to pay attention:

Most of our stuff is showed/fetched hourly: the current weather, the prediction
There will be an overlap, which should result in an update at the database: for instance, the forecast for tomorrow I got yesterday could be different from the one I get today. Let's assume the difference is more accuracy and update the database straight away.

That said, one could key all our entities by UTC time, always flooring to the zero minute of the current hour. With that, we could roll-up the tuple (weather_current, bedroom_info) keyed by timestamp.
The bedroom temperature forecast for each case could be calculated and stored in a different collection, using the same key.
As we are running free, lets used capped collections to having mong automatically cleaning things up for us.

The database is laid out. All good to fetch the weather forecast.

This is done.


Istio install manifest file along with Ingress-gateway worked with 1.5 and issues in 1.9 version

(NOTE: This is used to report product bugs:
To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities
To ask questions about how to use Istio, please visit https://discuss.istio.io)
*Bug description * Same file was used for installation in Istio 1.5, i have changed lot of things to update as many of the components are deprecated Istio install manifest file along with Ingress-gateway  in 1.9 version
[ ] Docs
[ X] Installation
[ X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
Steps to reproduce the bug
run the below file using istioctl manifest
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
1.9.0
How was Istio installed?
istioctl manifest apply -f .\manifest.yml
Environment where the bug was observed (cloud vendor, OS, etc)
Azure-AKS
Additionally, please consider running istioctl bug-report and attach the generated cluster-state tarball to this issue.
Refer cluster state archive for more details.
        apiVersion: install.istio.io/v1alpha1
        kind: IstioOperator
        metadata:
          namespace: istio-system
          name: istio
        spec:
          profile: default
          values:
            gateways:
              istio-ingressgateway:
                #sds:
                  enabled: true
          components:
            base:
              enabled: true
            ingressGateways:
              - name: istio-ingressgateway
                enabled: true
                namespace: test-ingress
                k8s:
                  overlays:
                    - apiVersion: v1
                      kind: Gateway
                      name: micro-ingress
                      patches:
                       - path: spec.servers
                         value:
                          - port:
                              number: 80
                              name: http
                              protocol: HTTP
                            hosts:
                            - "*" #host should be specify in VirtualService
                            tls:
                              httpsRedirect: true
                          - port:
                              number: 443
                              name: https
                              protocol: HTTPS
                            hosts:
                            - "*"
                            tls:
                              mode: SIMPLE
                              credentialName: secret
                              privateKey: sds
                              serverCertificate: sds
                  serviceAnnotations:
                    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
                  service:
                    ports:
                    - name: status-port
                      port: 15020
                      targetPort: 15020
                    - name: http2
                      port: 80
                      targetPort: 8080
                    - name: https
                      port: 443
                      targetPort: 8443
                    loadBalancerIP: xx.xx.xx.xxx
                  resources:
                    limits:
                      cpu: 2000m
                      memory: 1024Mi
                    requests:
                      cpu: 100m
                      memory: 128Mi

istioctl manifest apply -f .\manifest.yml
This will install the Istio 1.9.0 default profile with ["Istio core" "Istiod" "Ingress gateways"] components into the cluster. Proceed? (y/N) y
Error: failed to install manifests: errors occurred during operation: overlay for Gateway:micro-ingress does not match any object in output manifest. Available objects are:
HorizontalPodAutoscaler:test-ingress:istio-ingressgateway
Deployment:test-ingress:istio-ingressgateway
PodDisruptionBudget:test-ingress:istio-ingressgateway
Role:test-ingress:istio-ingressgateway-sds
RoleBinding:test-ingress:istio-ingressgateway-sds
Service:test-ingress:istio-ingressgateway
ServiceAccount:test-ingress:istio-ingressgateway-service-account

@howardjohn can you please help us in this installation setup using above manifest on new Azure Kubernetes cluster, I have changed the manifest file accordingly but when I install it giving me issues, we have used similar for 1.5 version it is working.

@bianpengyuan
When i run with few commands it is installing with istio, default gateway, but it is not working when i update with overlay how we installed in1.5 version, it can be reproduced by running above file & command.
error is pasted above


Separate project membership from takes

Reticketing from https://github.com/gratipay/gratipay.com/issues/3144#issuecomment-71684060:

Maybe we should separate memberships from takes. When people become inactive we drop their takes to zero, but that wouldn't drop them from the team anymore, and they could start taking again if they come back. If they don't come back for some time then we drop them from the team entirely.

+1 from @kaguillera at https://github.com/gratipay/gratipay.com/issues/3144#issuecomment-71705641 and @nobodxbodon at https://github.com/gratipay/inside.gratipay.com/issues/986#issuecomment-272980954. @dmk246 is the third one right now who is doing significant work but for her own reasons is not taking money. These folks are important members of our team even if they're not taking money right now.

Would this include adding members who aren't legally eligible for takes (e.g., who haven't completed verification or who can't accept American money)? I would see this working as being on the team but having inability to set takes at all.

Would this include adding members who aren't legally eligible for takes (e.g., who haven't completed verification or who can't accept American money)? I would see this working as being on the team but having inability to set takes at all.

I had thought that this would be up to the user—they can take or not take as they choose. But I guess since taking depends on filing national identity, then yes, someone could be a member of the project but not capable of taking.

national identity

I was thinking specifically of @kaguillera, yes.


It was corrected so that a build might pass in Xcode7.

It was corrected so that a build might pass in Xcode7.

Thanks for submitting a PR. Those changes were already made and merged into the master branch, please see https://github.com/Mozharovsky/CVCalendar/pull/115

Thank you so much for your contributions! It means a lot for this project! :+1:


Completely fill gaps in data using spline fit

Gaps still present, despite spline fit code. Fill gaps, especially in baseline data. This is especially noticeable in 2019 and 2022 data.

Gaps filled using approx() function.


Modified Few feature of ABAP Git

Modified the feature of Advanced-> Object to files feature . earlier it was single single doc we can download but have modified it and made it as select option written logic for that and it's working as expected . Working On some other feature , which will helpful for end user.

Pull requests welcome

@supriya42 are you working on this?

I have made this change and now i am using it as well

@supriya42

closing


itv.com/btcc Unable to find videos

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2020.05.08
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: ['-f', 'bestvideo[ext=mp4][height<=1080]+bestaudio[ext=m4a]/best[ext=mp4][height<=1080]/best[height<=1080]/best', '--console-title']
[debug] Custom config: []
[debug] Command-line args: ['https://www.itv.com/btcc/articles/btcc-2019-brands-hatch-gp-race-action', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.05.08
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg git-2019-12-19-99f505d, ffprobe git-2019-12-19-99f505d
[debug] Proxy map: {}
[ITVBTCC] btcc-2019-brands-hatch-gp-race-action: Downloading webpage
[download] Downloading playlist: BTCC 2019: Brands Hatch GP race action
[ITVBTCC] playlist BTCC 2019: Brands Hatch GP race action: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: BTCC 2019: Brands Hatch GP race action

Description

Youtube-dl seems unable to find videos on any of the pages I have tried from https://www.itv.com/btcc/btcc-2019-races recently. I was able to download from itv.com/btcc links I had in a batch file around January but the page format seems to have changed from itv.com/btcc/races/[page name] to itv.com/btcc/articles/[page name] since then.

Same error here. ytdl fails to collect any video id from the page:
$ youtube-dl -v --geo-bypass-country UK -o "/mnt/usb_12/xTransfer/%(title)s-%(id)s.%(ext)s" --dump-single-json https://www.itv.com/btcc/articles/btcc-2020-brands-hatch-gp
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--geo-bypass-country', u'UK', u'-o', u'/mnt/usb_12/xTransfer/%(title)s-%(id)s.%(ext)s', u'--dump-single-json', u'https://www.itv.com/btcc/articles/btcc-2020-brands-hatch-gp']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28.pk
[debug] Python version 2.7.16 (CPython) - Linux-5.4.51-v7+-armv7l-with-debian-10.4
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1
[debug] Proxy map: {}
{"extractor": "ITVBTCC", "_type": "playlist", "title": "BTCC 2020: Brands Hatch GP", "extractor_key": "ITVBTCC", "webpage_url": "https://www.itv.com/btcc/articles/btcc-2020-brands-hatch-gp", "entries": [], "id": "btcc-2020-brands-hatch-gp", "webpage_url_basename": "btcc-2020-brands-hatch-gp"}

$ youtube-dl -v --geo-bypass-country UK -o "/mnt/usb_12/xTransfer/%(title)s-%(id)s.%(ext)s" --playlist-items 1-3 https://www.itv.com/btcc/articles/btcc-2020-brands-hatch-gp
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--geo-bypass-country', u'UK', u'-o', u'/mnt/usb_12/xTransfer/%(title)s-%(id)s.%(ext)s', u'--playlist-items', u'1-3', u'https://www.itv.com/btcc/articles/btcc-2020-brands-hatch-gp']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.16 (CPython) - Linux-5.4.51-v7+-armv7l-with-debian-10.4
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1
[debug] Proxy map: {}
[debug] Using fake IP None (UK) as X-Forwarded-For.
[ITVBTCC] btcc-2020-brands-hatch-gp: Downloading webpage
[download] Downloading playlist: BTCC 2020: Brands Hatch GP
[ITVBTCC] playlist BTCC 2020: Brands Hatch GP: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: BTCC 2020: Brands Hatch GP

@franhp I incorporated your changes and tried at https://www.itv.com/btcc/articles/btcc-2020-brands-hatch-gp but didn't work either. Did you try them recently? Or maybe something else changed in the meantime since your patch?

Oops, my bad. I incorporated the changes on @franhp branch but didn't noticed this https://github.com/ytdl-org/youtube-dl/pull/25254 pull was more recent. The later worked perfectly for me.


High values from PMS

Hi, I've noticed that the values from the PMS reported via MQTT are way higher than the ones reported locally.
Local reading at 79 and sending at 120. Some times the readings even lock on high value and don't go down even placing the sensor at the exhaust of my air purifier. I've placed with two other sensors running on a ESP and the values are reported via the script are always far from what the other sensors report.
https://imgur.com/a/NbRluZU

The values currently used are a calculation that does not represent the real number of particles read by the sensor.
For more info please check #5


Ani development

Before I review this PR, can you merge in your other PR (https://github.com/AniMachaidze/step/pull/6)? And then fix merge conflicts? You'll need to fix merge conflicts before you can submit this PR.


Fix audio related issues

Fixes #692
Fixes #693
Fixes #275
This also adds a lot of checks around having/granting access to the microphone, which might help reduce or troubleshoot problems people are having with recording sound
Also, the last beta was recording sound for me, so if someone can validate that this fixes #693 (using the build) that would be great

@Geroimparable @kevincannon Can you test https://kap-artifacts.now.sh/fix-recording-with-sound and see if it fixes #693 for you?

Just teested this and it worked for me! 💪💪


Are there any plan to support ksh?

RT

Yes, ksh is POSIX compatible, try initializing with
eval "$(fasd --init posix-alias posix-hook)"


Teller new currently fails in master branch

Expected Behavior
teller new should successfully build a .teller.yml file.
Current Behavior
Fails with the following error:
FATA[0004] could not create configuration                error="template: t:276: function \"stage\" not defined"

Possible Solution

Steps to Reproduce

clone master branch
teller new, pick any secret provider
get error

Context

Specifications

Version: $ teller version
Platform:

Looks like this potentially broke on this PR: https://github.com/tellerops/teller/commit/358cd8393a72c1661e6876ddc39e52c6475b30b3

thanks, resolved part of Teller 2.0


what is your gym version

it said
AttributeError: 'EnvSpec' object has no attribute 'max_episode_seconds'
in /EPG/epg/envs/random_robots.py", line 130, in meta_reset
max_episode_seconds=spec.max_episode_seconds
It may be my gym version is not the same as yours.
my gym is gym-0.14.0

I also encountered this error.

I found a solution.
'meta_reset' function in 'random_robots.py' file doesn't have max_episode_seconds value.
We should assign a value for running.
Maybe this code doesn't pre-checked before upload.


CLI auto-complete support

Crate
ibc-relayer-cli
Summary
Add auto-complete support using a rust crate (clap/gumdrop) that can automatically generate the completions file (see Clap::gen_completions()).
Acceptance Criteria
We should be able to achieve something like this ->

The hermes documentation and README.md should provide instructions for setting this up. Also, installers/packages should be updated to include and source the completions file.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

I ended up here because of this. :smile:
https://github.com/informalsystems/ibc-rs/blob/09a4b114b7fd414547c539bc8d541470c30b8164/scripts/gm/bin/shell-support#L110
I can take a look at this. This can be done in the same way rustup completions (bash|fish|zsh).
Here is how Archlinux distributes shell completions for Rustup.
    # Generate completion files.
    mkdir -p "$pkgdir/usr/share/bash-completion/completions"
    "$pkgdir"/usr/bin/rustup completions bash > "$pkgdir/usr/share/bash-completion/completions/rustup"
    "$pkgdir"/usr/bin/rustup completions bash cargo > "$pkgdir/usr/share/bash-completion/completions/cargo"
    mkdir -p "$pkgdir/usr/share/fish/vendor_completions.d"
    "$pkgdir"/usr/bin/rustup completions fish > "$pkgdir/usr/share/fish/vendor_completions.d/rustup.fish"
    mkdir -p "$pkgdir/usr/share/zsh/site-functions"
    "$pkgdir"/usr/bin/rustup completions zsh > "$pkgdir/usr/share/zsh/site-functions/_rustup"
    "$pkgdir"/usr/bin/rustup completions zsh cargo > "$pkgdir/usr/share/zsh/site-functions/_cargo"

This should be easy to do with clap 3.x.

clap_generate used to exist already, which is now deprecated in favor of clap_complete when clap 3.x reached stable.
My changes for Modelator are at informalsystems/modelator@0aa7d41.

I feel clap should provide a shell-completion feature to do this automatically.

I think we need to approach this by way of #1752, when we can start using clap 3.0 stable.

My changes for Modelator are at informalsystems/modelator@0aa7d41.

@rnbguy Any chance to get the rnbguy/rust/clap-v3 branch for modelator merged soon? I've used it in #1777 draft, let's see if MBTs pass.

@rnbguy Any chance to get the rnbguy/rust/clap-v3 branch for modelator merged soon?

I'm a bit out of date and see https://github.com/informalsystems/modelator/pull/163 has been merged. The question then turns into "when is the next release?"

I will do a patch release at the end of the day :)

modelator 0.4.2 is up :smiley:


feat(ui): enhance Card hover effects with smooth animations & gradients

Enhanced Card Component Hover Effects
Overview
This PR improves the visual feedback and interactivity of our Card component by implementing more sophisticated hover animations. The changes create a more premium, polished feel while maintaining subtle and professional transitions.
Changes Made

Refined scale transform to 1.02 for subtler movement
Implemented progressive shadow elevation (shadow-lg)
Added theme-aware gradient overlay using primary/secondary colors
Enhanced transition timing with 300ms duration and ease-out curve
Added subtle border highlight using primary color
Improved performance by adding pointer-events-none to overlay

Visual Examples
Before:

Basic card appearance

After:

Multi-layered hover effect
Theme-integrated gradients
Smoother transitions

Technical Details

Uses existing theme tokens (primary/secondary)
Maintains existing component API
No breaking changes to existing implementations
Fully responsive and accessible

Screenshots/Videos

https://github.com/user-attachments/assets/bec5c406-1d88-4b1e-9bde-dbf65b06776e
Notes

All existing Card component props and functionality remain unchanged
The enhancement is purely visual and doesn't affect the component's structure

@veepanshu-kasana update your sync fork.

@mdazfar2 Thank you for the review! I've updated my fork to sync with the latest changes from the main repository.


ENH: Allow saving relative paths to settings

ctkCoreSettings allows storing paths relative to an "application home" folder. This makes it easy to create fully portable applications (that do not have absolute paths in application settings).
It will be used with this development in 3D Slicer: https://github.com/Slicer/Slicer/pull/5029

@jcfr This is ready, please have a look. We can set ApplicationHomePlaceholder to use <APPLAUNCHER_DIR> as a basis of relative paths.

@jcfr if you don't have any further comments then I would merge this so that we can proceed with the Slicer pull request.

It looks good to me, thanks for address the comment.
Then, within Slicer, I suggest to update these lines by changing occurrences of:
QSettings settings(q->extensionsSettingsFilePath(), QSettings::IniFormat);

into
ctkCoreSettings settings(q->extensionsSettingsFilePath(), QSettings::IniFormat);
settings.setApplicationHomeDirectory(qSlicerCoreApplication::application()->slicerHome());
settings.setApplicationHomePlaceholder("<APPLAUNCHER_SETTINGS_DIR>");

And it look like you did so already :+1:


Child is drawn above a border while animating

Steps to Reproduce
Dartpad
I know it really isn't visible here ; it is however jumps to the eye on mobile. Here's a screenshot I took where you can see two white pixels on the right side of the border, which come from the TextField. Screenshot taken as I was spamming the right-side arrow (used to open/close the widget), try it yourself but you'll need to squint your eyes.
I'm mainly here to understand if this is intended behavior from Flutter, and if so, what is the standard way to go about solving this particular issue.
Expected results:
The child isn't drawn above the specified border of the container.

I am experience it on an Android 10 device, Android 12 emulator, and Dartpad, all on the stable channel.
You probably couldn't reproduce it become it only appears during the animation. To simply matters, please replace _widthFactor.value by 0.5 in order to obtain this result, where the issue from my first screenshot appears :

Thanks for the clarification @TheCarpetMerchant, I am able to reproduce the issue on stable and the master channel on all platforms. Probably this is one of the anti-aliasing issues, I am unable to find it right now. Labeling for further insights from the team.
https://user-images.githubusercontent.com/31410839/173083918-7e0e74d8-9486-4ad0-a8c4-e7dc41efb0e1.mov

code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        iconTheme: const IconThemeData(
          color: Colors.white,
        ),
      ),
      home: Scaffold(
        appBar: AppBar(title: const Text('Title')),
        body: const Align(
          alignment: Alignment.topRight,
          child: ReaderSearch(),
        ),
      ),
    );
  }
}

class ReaderSearch extends StatefulWidget {
  const ReaderSearch({
    super.key,
  });

  @override
  State<ReaderSearch> createState() => _ReaderSearchState();
}

class _ReaderSearchState extends State<ReaderSearch>
    with SingleTickerProviderStateMixin {
  static final Animatable<double> _easeInTween =
      CurveTween(curve: Curves.easeIn);
  static final Animatable<double> _halfTween =
      Tween<double>(begin: 0, end: 0.5);

  late AnimationController _controller;
  late Animation<double> _iconTurns;
  late Animation<double> _widthFactor;

  bool _isExpanded = true;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(
        duration: const Duration(milliseconds: 250), vsync: this);
    _widthFactor = _controller.drive(_easeInTween);
    _iconTurns = _controller.drive(_halfTween.chain(_easeInTween));
    _controller.value = 1.0; // To start opened
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  void _handleTap() {
    setState(() {
      _isExpanded = !_isExpanded;

      if (_isExpanded) {
        _controller.forward();
      } else {
        _controller.reverse().then<void>((_) => setState(() {}));
      }
    });
  }

  Widget _buildChildren(BuildContext context, Widget? child) {
    return Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        Material(
          elevation: 4,
          borderRadius: const BorderRadius.all(Radius.circular(8)),
          child: ClipRRect(
            borderRadius: const BorderRadius.all(Radius.circular(8)),
            child: Container(
              decoration: const BoxDecoration(
                color: Colors.black,
                border: Border.fromBorderSide(BorderSide(color: Colors.red)),
                borderRadius: BorderRadius.all(
                  Radius.circular(8),
                ),
              ),
              height: 82, // TextField + border
              child: Row(
                mainAxisAlignment: MainAxisAlignment.end,
                mainAxisSize: MainAxisSize.min,
                children: [
                  Align(
                    widthFactor: _widthFactor.value,
                    child: child,
                  ),
                  Container(
                    decoration: const BoxDecoration(
                      color: Colors.black,
                      borderRadius: BorderRadius.all(
                        Radius.circular(8),
                      ),
                    ),
                    height: 82, // TextField + border
                    width: 48,
                    child: IconButton(
                      onPressed: _handleTap,
                      icon: RotationTransition(
                        turns: _iconTurns,
                        child: const Icon(
                          Icons.keyboard_arrow_left_rounded,
                          size: 36,
                        ),
                      ),
                    ),
                  ),
                ],
              ),
            ),
          ),
        ),
      ],
    );
  }

  @override
  Widget build(BuildContext context) {
    final bool closed = !_isExpanded && _controller.isDismissed;

    final Widget result = Offstage(
      offstage: closed,
      child: TickerMode(
        enabled: !closed,
        child: Row(
          children: [
            // Close
            IconButton(
              onPressed: () {},
              icon: const Icon(Icons.clear_rounded),
            ),

            // Text field
            SizedBox(
              width: MediaQuery.of(context).size.width -
                  ((48 * 3) + 16) -
                  2, // 3 icons + padding, -2 because of the border AO3RED
              child: TextField(
                decoration: InputDecoration(
                  labelText: 'Search in text',
                  floatingLabelBehavior: FloatingLabelBehavior.always,
                  enabledBorder: const OutlineInputBorder(
                    borderSide: BorderSide(
                      color: Colors.white,
                    ),
                  ),
                  border: const OutlineInputBorder(
                    borderSide: BorderSide(
                      color: Colors.white,
                    ),
                  ),
                  suffixIcon: IconButton(
                    onPressed: () {},
                    icon: const Icon(
                      Icons.clear,
                    ),
                  ),
                ),
              ),
            ),

            // 48 more pixels after this point

            const SizedBox(
              width: 8,
            ),

            Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                // Up arrow
                InkWell(
                  customBorder: const CircleBorder(),
                  onTap: () {},
                  child: const Padding(
                    padding: EdgeInsets.all(8),
                    child: Icon(
                      Icons.keyboard_arrow_up_rounded,
                      size: 24,
                    ),
                  ),
                ),

                // Down arrow
                InkWell(
                  onTap: () {},
                  customBorder: const CircleBorder(),
                  child: const Padding(
                    padding: EdgeInsets.all(8),
                    child: Icon(Icons.keyboard_arrow_down_rounded),
                  ),
                ),
              ],
            ),
          ],
        ),
      ),
    );

    return Padding(
      padding: const EdgeInsets.all(8),
      child: AnimatedBuilder(
        animation: _controller.view,
        builder: _buildChildren,
        child: closed ? null : result,
      ),
    );
  }
}

flutter doctor -v (mac)
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3 21E230 darwin-arm, locale en-IN)
    • Flutter version 3.0.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (3 days ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! CocoaPods 1.10.2 out of date (1.11.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin
        usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.66.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 12 Pro (mobile) • 19FD0231-BFF0-441D-B584-AD94C4084525 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 101.0.4951.64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 3.1.0-0.0.pre.1138, on macOS 12.4 21F79 darwin-arm, locale en-IN)
    • Flutter version 3.1.0-0.0.pre.1138 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d9be807192 (26 hours ago), 2022-06-06 21:16:49 -0700
    • Engine revision 48864fc837
    • Dart version 2.18.0 (build 2.18.0-170.0.dev)
    • DevTools version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.67.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.42.0

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 6AE1D692-DB57-4C3E-ADCA-66842182426B • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 102.0.5005.61

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

I do not know that this is anti aliasing (https://github.com/flutter/flutter/issues/14288).
It looks like the white lines are appearing over the red box decoration as they animate into view.

To note : I might also be using the Animation incorrectly. It makes sense that the child is drawn above the parent. What doesn't (to me, at least) is that the border is affected by this. The average human brain expects the content not to cross the border.
But if someone has a solution to this by using Flutter in a different way I'm all for it, of course.

It may be a bug, or is may be an issue an issue of composition in your code, I am not sure. You may find a quicker answer to debugging this code by asking on stackoverflow. :)

Stackoverflow won't take too kindly to me asking "is there anything wrong with this code" I'm afraid x)


X axis of Time Series does not show proper date formats

move[bot] commented on Apr 10, 2019, 4:31 PM UTC:
phellstrand77 commented on Mar 4, 2019, 10:29 PM UTC:
Make sure these boxes are checked before submitting your issue - thank you!

[ ]  I have checked the superset logs for python stacktraces and included it here as text if there are any.
[ ]  I have reproduced the issue with at least the latest released version of superset.
[ ]  I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version
0.29.0rc8
Expected results
Expecting 'Dual Axis Line Chart' to display X axis with proper dates; e.g. 1970, 1971, 1972, etc. or Jan 1 2008, Jan 2 2008, Jan 3 2008, etc; whatever data exist and date level selected.
Actual results
The X axis does not show proper date formats. Attached show the results from the demo 'Birth' dashboard. Same erroneous results is aceived when using other datasets too. When using other BI, e.g. Tableau, the X axis shows dates correctly using the same datasets.
Steps to reproduce
Simply view the 'Birth' demo dashboard, when explore the 'Average and Sum Trends' chart.

This issue was moved by kristw from apache/incubator-superset#6975.
This issue was moved by kristw from apache-superset/superset-ui-plugins#50.

The codebase on this repo has been moved to the main Apache Superset repo, and consequently the repo is in the process of being archived. See the Superset Improvement Proposal for details: https://github.com/apache/superset/issues/13013 . While all currently open issues and PRs will be closed, we encourage you to reopen this issue on the main repo if it is still relevant.


Issue with Regex looking for umask value in bashrc (5.6.5)

Describe the Issue
In the task named "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive", ansible task is looking for the umask value in /etc/bashrc, /etc/profile and /etc/login.defs and the patch has to replace the actual value of umask (for example umask 022) to umask 027.
But it seems that, after testing the regex (^(?i)(\s+UMASK|UMASK)\s0[0-2][0-6]) using the line i have in my file /etc/bashrc ([ umask -eq 0 ] && umask 022), it does not match anything.
Expected Behavior
I expect that my /etc/bashrc has umask set to 027 after running the CIS compliance playbook.
Actual Behavior
After running the playbook, the value of umask in /etc/bashrc is still 022 and oscap compliance to cis is still not validated for this task.
Control(s) Affected
"Ensure the Default Bash Umask is Set Correctly"
Environment :

branch being used: devel
Ansible Version: 2.8.7
Host Python Version: 2.7.5
Ansible Server Python Version: 2.8.7

Possible Solution
I tried this regex for my case and it seems to work well :
(?i)(umask)\s0[0-2][0-6]

hi @byjunks
Thank you for raising this issue, while i can see you are using an older version of ansible (glad its still works for you). You are correct your example would not be caught by the current regex. Feedback and real world examples like this help us to ensure we can capture as many variations as possible. The original regex was only failing as it expected it at the beginning of the line. The solution you have provided is therefor a much cleaner fix. I will add this to a new branch today ready for PR.
many thanks
uk-bolly

Dear,
I want to raise the issue again.
It seems that this line in the file login.defs is not removed :
UMASK           022
I tried with this regex but it doesn't solve the issue : (?i)([uU][mM][aA][sS][kK]\s*\d*)
Best regards,
Constan


[Bug][config-ui] Create blueprint page gets blank out

Search before asking

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

What happened

What you expected to happen
should be seeing Jira scope page
How to reproduce
follow the screen-shots:

create a new blueprint
pick 2 connections, one Jira and one GitHub in my case, both were "Online"
continue to step 3, click "add transformation rules" for the GitHub scope
click the Jira connection on the top left corner
see a blank page

Anything else
No response
Version
19aa62d80f6813bd4f66f3c1e271fe55ebffcebd from #2534
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

@klesh Will investigate and resolve.

@klesh Fixed with #2586


Export GPX as track or route ?

Currently, GPX exports are routes ( tag).
They probably should be tracks ( tag).
https://en.wikipedia.org/wiki/GPS_Exchange_Format
@camillemonchicourt, what do you think about that ?

From what I know and read in the article, a track is a record of where i went, a route is where to go using a GPS.
So it would mean that GPS exports to upload in a GPS should be routes as they actually are.
I'll talk about it with a colleague GPS specialist to confirm.

After talking with our GPS specialist, i was wrong.
Route are lines between waypoints, so they are very connected to waypoints while a track is a real line.
So indeed lines GPS exports should be tracks and not routes.

OK, thanks.


Fakerbot not searching namespace

Example1:
C:\Users\richard.bulger>faker search beer -v

Sorry, we couldn't find a match 😢

C:\Users\richard.bulger>faker search yeast -v
Faker
└── yeast=> 5526 - Brettanomyces lambicus
Faker
├── as_you_like_it=> I like this place and willingly could waste my time in it.
└── as_you_like_it_quote=> Can one desire too much of a good thing?.

Note that the first result for beer returns nothing. But the second for yeast, which is a method of beer does. (Also note that the namespace name isn't shown in the result tree, which I've raised in #1565 )
Also, in the second result, you can see it also returns irrelevant results from the Shakespeare namespace. Not sure why.
Example2:
C:\Users\richard.bulger>faker search simpsons -v
Faker
└── i_groups=> Two Two

Doesn't return any simpons namespace stuff, but returns a Kpop one...

@akabiru

Example 2 is matching "simpsons" as the kpop method is split in 2 before comparison, "i" and "group". As such, it will match anything with an "i" in the search string:
C:\Users\richard.bulger>faker search xxxxxxxxxxxxxxxxxxxx -v

Sorry, we couldn't find a match 😢

C:\Users\richard.bulger>faker search xxxxxxxxxxxxxxxxxxxxi -v
Faker
└── i_groups=> Seo Taiji and Boys

Thanks for reporting this @richardbulger . This is actually an Open Issue on Fakerbot https://github.com/akabiru/fakerbot/issues/8 .
At the moment, search only matches against the method name parts -> https://github.com/stympy/faker/blob/master/lib/cli/reflectors/search.rb#L39-L42 I'm very open to suggestions on how we could improve the search algo. 🙂

Hey folks, @jdcorley has been looking into this on https://github.com/akabiru/fakerbot/issues/8 - we're shifting the conversation here. 🙂
The list reflector actually builds a hash of faker constants and their methods via the Reflectors::List#all_descendants_with_methods method.
We could potentially search against that data store? i.e. match against the constant (key) and also the methods

Curious to know what you think.

Sounds good to me. I think it's valuable that it searches full namespace hierarchy (eg TvShows and BojackHorseman) along with the methods.
I think it would be good if it lists the methods of the namespace in the results, also

@akabiru I’m very close to solving it haha I have the search including the namespaces now but now it’s just dumping all the namespaces during the search plus any methods that match the query. So I’m working on getting it to select the right namespaces to return relevant to the query.

Awesome! Feel free to raise a Draft PR maybe we can help unblock that bit. 👍

We should be able to close this issue. Resolved in https://github.com/faker-ruby/faker-bot/pull/38


Travis build script update to check for go fmt & vet; Build status, Go Doc & Go Report status badges added to README

Build script update:

go fmt check
go vet check
running with atomic coverage mode

README update to include following badges:

Travis build status
Go Doc reference
Go Report

Other changes to address fmt, vet & assignment related issues

LGTM

Thank you @theganyo
I'll go ahead and merge this PR now.


Fixes check for the type in order to perform correct count method.

Codecov Report

Merging #243 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #243   +/-   ##
========================================
  Coverage    92.79%   92.79%
========================================
  Files           56       56
  Lines         1942     1942
  Branches       185      185
========================================
  Hits          1802     1802
- Misses         116      117    +1
+ Partials        24       23    -1

Impacted Files
Coverage Δ

datahub/search/management/commands/sync_es.py
95.58% <ø> (ø)
:arrow_up:

datahub/company/admin.py
88.88% <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 7f43eb0...b238221. Read the comment docs.


Fix seg-fault in pipelining submitter

After the code cleaning merge, pipelining throws seg fault

So there existed two different seg-faults

The loggin_generator after merge was a bit broken (or used older version, not sure) and the raw requests it produced were faulty HTTP/1 instead of HTTP/1.1.
There was a weird issue with malloc and array initialization of response requests. For a small number of requests the malloc for responses was creating a seg fault, but array initialization was working fine. But for a large number of requests malloc was working fine while array init was producing a seg fault. It was solved using vectors for the Response objects

closed after https://github.com/fotiskoun/CCF/pull/31