Robotics Ultrasonic-motor control

Robotics Lab book
Project Description:
Ultrasonic-Motor Control, 4/10/24, Engineered by Cole Gale.
Goal
The Goal of the assignment is to control two motors with 4 buttons, each one corresponding to a direction to move in (i.e. Forward, Backwards, Left, and Right). There also needs to be an ultrasonic sensor that stops the motors, sets an LED to HIGH to indicate that it's stopped, and override the buttons if the ultrasonic sensor is too close to an object.
Required Parts:

Name
Quantity
Component

U1
1
Arduino Uno R3

PING1
1
Ultrasonic Distance Sensor

D1
1
Red LED

R1
1
220 Ω Resistor

S1, S2, S3, S4
4
Pushbutton

U2
1
H-bridge Motor Driver

M1, M2
2
DC Motor

R2, R3, R4, R5
4
100 Ω Resistor

Diagram Design:

Code:
int pin = 2; // the pin for the ultrasonic sensor
// bool stopped = false;
bool canMove = true; // the bool to tell if the motors can move or not.

void setup()
{
  // setting all the pins to their corresponding mode
  pinMode(3, OUTPUT); // STOP LED
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(2, OUTPUT);

  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, INPUT);
  pinMode(11, INPUT);

  Serial.begin(9064);
}

void loop()
{
  // Getting ultrasonic distance
  long pingDuration, centimeters;

  pinMode(pin, OUTPUT); // setting the ultrasonic sensor to output
  digitalWrite(pin, LOW); // pinging the ultrasonic sensor to tell it to get the distance
  delayMicroseconds(2);
  digitalWrite(pin, HIGH);
  digitalWrite(pin, LOW);

  pinMode(pin, INPUT); // setting the ultrasonic sensor to input to get the reply

  pingDuration = pulseIn(pin, HIGH); // pinging...
  centimeters = microsecondsToCentimeters(pingDuration); // converting microseconds to centimeters.

  Serial.println(centimeters); // outputting in the serial monitor
  if (centimeters < 65) {  //checking if the object is closer than 65 cm
    canMove = false; // if true then set the canMove variable to false
    digitalWrite(3, HIGH); // turn on the STOP LED
  } else {
    canMove = true; // if false then set the canMove variable to true
    digitalWrite(3, LOW); // turn off the STOP LED
  }

  if (canMove) { // checking if canMove is equal to true
    if (digitalRead(8) == HIGH) { // checking if the button connected to this pin is reading HIGH
    	fullStop(); // stop and set all the pins connected to the H-bridge to LOW
    	forward(); // use the function to move in the corresponding direction
    } else if (digitalRead(9) == HIGH) { // if the pin 8 is returning LOW then check if this pin is returning HIGH and so on
    	fullStop();
    	backward();
    } else if (digitalRead(10) == HIGH) {
    	fullStop();
    	left();
    } else if (digitalRead(11) == HIGH) {
    	fullStop();
    	right();
    } else {
    	fullStop();
    }
  }
}

void fullStop() {
   // set all motor pins to LOW
  digitalWrite(6, LOW);
  digitalWrite(4, LOW);
  digitalWrite(5, LOW);
  digitalWrite(7, LOW);
}

void forward() { // move forward by setting the correct pins to the H-Bridge and so on for all the other move functions (backward, right, left)
  digitalWrite(6, HIGH);
  digitalWrite(5, HIGH);
}

void backward() {
  digitalWrite(4, HIGH);
  digitalWrite(7, HIGH);
}

void right() {
  digitalWrite(4, HIGH);
  digitalWrite(6, HIGH);
}

void left() {
  digitalWrite(7, HIGH);
  digitalWrite(5, HIGH);
}

long microsecondsToCentimeters(long microseconds) {
  return microseconds / 29 / 2; // return a calculation that turns microseconds into centimeters
}

Iterations:
Test
The motors are moving in the wrong direction when pressing the forward button.
Fix
I changed my code to put other pins to HIGH as well as to use what I learned from this issue to correctly input the other directions.
Retest
All motor's now move in the correctly designated direction for that button.

Finished the code.


Can not perform this action after onSaveInstanceState

I'm seeing this crash many times in my crashlytics. I can not reproduce it on my device though.
Any idea why only a few users are seeing this crash? (My app orientation is set to Portrait)
Fatal Exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(Unknown Source)
at android.support.v4.app.FragmentManagerImpl.modifiesAlpha(Unknown Source)
at android.support.v4.app.BackStackRecord.dump(Unknown Source)
at android.support.v4.app.BackStackRecord.commit(Unknown Source)
at android.support.v4.app.DialogFragment.show(Unknown Source)
at ikvaesolutions.xxxxxxxxxxx.custom.FancyAlertDialog.onCreate(Unknown Source)
at ikvaesolutions.xxxxxxxxxxx.custom.FancyAlertDialog.onCreate(Unknown Source)
at ikvaesolutions.xxxxxxxxxxx.custom.FancyAlertDialog$Builder.show(Unknown Source)
at ikvaesolutions.xxxxxxxxxxx.activities.SplashScreenActivity.showDisclaimer(Unknown Source)
at ikvaesolutions.xxxxxxxxxxx.activities.SplashScreenActivity.access$000(Unknown Source)
at ikvaesolutions.xxxxxxxxxxx.activities.SplashScreenActivity$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5530)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:733)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:623)

This error still occurs. It could be fixed by modifying the show() method inside the FancyAlertDialog.java class like described here:
https://stackoverflow.com/a/35431196/754730

@amarilindra you could update to the new version in the releases


update vendor to latest kubernetes 1.14.0

some of the kubernetes independent packages are moved out of the tree to new projects.
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

@Madhu-1 its good to move to latest so, 1.14. But I feel,  till we stabilize master with v1.0.0 spec with the merge, we should wait.

Should wait for https://github.com/ceph/ceph-csi/pull/297

added DNM label to avoid accidental merging

can you send this PR to master branch?  from now onwards we will be using master for csiv1.0 development, Thanks

rebased with master, PTAL

@leseb @ShyamsundarR  PTAL

@Madhu-1 went through understanding the dependency tree and such, being new to go myself, I have a few questions, which may influence the PR or just be educational for me, hence posting them here to begin with.

From what I understand tracing one of the dependency that we use (apimachinery) its compatibility statement, states that a version is compatible with exactly that version of kubernetes. Thus, if we move to 1.14 for apimachinery (as done in the change in this PR) what is the guarantee that the built image will work with v1.13 kubernetes?

client-go seems to have more relaxed compatibility matrix, but also states that APIs that are removed on the server but still present in the client-go libraries would not function as required. So, how do we ensure we use a set of APIs that are supported and continue to be supported across at least kubernetes versions that we want to support.

A broader question, as we are using kubernetes APIs, and the above compatibility constraints apply afaict, does this mean we need to generate images for different kubernetes versions?

Discussed the issue in another forum and figured that kubernetes is backward compatible (at least to an extent) and so we should actually be at deps that are 1.13, in an effort to work against v1.13-15.
I would hence suggest that this change NOT be done at the moment, as we would still need to support kubernetes v1.13.

lgtm. thanks !


Really full featured and precise polygon tool

The current poly drawing tool is really just a minimum viable product. We need a full featured tool that:

is touch compatible
works on click-and-drag as well as click (then move and click again)
supports adding/removing points
provides a good crosshair cursor on all platforms

Hi @rsimon, any updates on this ?

Still not yet, I'm afraid. But it is still on the list. (And creeping up the priority ladder, since most other essential features + bugs have been addressed.)

In case anyone is still waiting for this: this is now moving up the priority list. Should be there before end July at the latest.

See also #151


Change how transaction status polling is done

Currently we send transactions in near-api-js using broadcast_tx_commit and it caused issues like https://github.com/near/near-api-js/issues/127 because nearcore will return an unstructured error for timeout and it makes it difficult to handle on the client side. However, not only does the error on nearcore side take longer time to fix, broadcast_tx_commit is also not really the best way to submit transactions. I suggest that we use a combination of EXPERIMENTAL_broadcast_tx_sync and EXPERIMENTAL_check_tx to handle transaction submission and status checking on near-api-js side. This completely eliminates the possibility of timeout error from nearcore side and allows more flexibility for polling transaction status as there is no internal polling in nearcore in either EXPERIMENTAL_broadcast_tx_sync or EXPERIMENTAL_check_tx.
Some caveats:

Errors need to be handled properly. When EXPERIMENTAL_check_tx returns InvalidNonce for example, it actually means that the transaction likely has already succeeded and therefore the nonce on the access key has increased, making the original transaction invalid.
When EXPERIMENTAL_check_tx returns None, it means that the transaction is still valid, but this might imply that something went wrong in between (get stuck in mempool for example). So near-api-js should have some timeout on its own to decide that the transaction is not accepted and a new one should be sent.

@vgrichina @kcole16 What do you think?

@bowenwang1996 how do we distinguish:

this transaction is invalid because other transaction got submitted with given nonce (or larger)
this transaction actually got submitted successfully. Does check_tx provide such distinction?

Also note that without any way to get push with update on status of transaction this method of submitting transactions going to be inherently higher latency than properly done server-side implementation would be. So it’s only acceptable as a workaround while nearcore needs to come up with some solution that can be permanent.

 I think it should work fine if the network is running normally, but you are right in that if the network is slow it can be quite suboptimal. But again, I don't think having internal polling helps a lot in this case.

I think it should work fine if the network is running normally

Making one extra request is never good. Neither for client on slow connection (easily few extra seconds per extra request), nor for nearcore.
If I'm already checking on a given TX, why not return full status? It looks like now I need to call both tx-status and check_tx continuously in a loop while waiting for transaction to land.

Good point. I think we can make check_tx fetch transaction status as well. cc @frol

@frol Should we merge back check_tx login into tx-status - tx-status should just support either hash or full transaction bytes and return status or invalid?
@vgrichina you mentioned that every other service returns result. Are you saying that services don't have timeouts? If the question that our timeouts are too short for most cases in _commit operation - we can extend it. E.g. we have legit timeouts right now when some nodes are not operating.
@frol @bowenwang1996 in our _commit operations while we polling, we should also check if transaction is still valid within the polling loop.
E.g. tx_status_fetch can stake either hash or transaction itself. And ping TxStatus ViewClient with that. And it can then return if transaction becomes invalid during polling.

@ilblackdragon original issue was that we not just timed out early, but also timed out in case of error. So both cases were indistinguishable. Ideal API based on long-polling would be:

you send tx, it either times out or returns result/error when it becomes available
if it times out – we can call the same RPC again with same transaction and it also either times out or returns result/error when done
this is done in the loop until client-side timeout happens

Alternatively without long-polling but with web sockets:

send tx asynchronously, subscribe for updates for given tx hash
get all status updates on tx pushed via web socket subscription

I agree with @vgrichina and it can be solved actually pretty easily. Filed an issue here: https://github.com/nearprotocol/nearcore/issues/2867
near-api-js should just switch to retry broadcast_tx_commit if it timed out.

if it times out – we can call the same RPC again with same transaction and it also either times out or returns result/error when done

just to be clear – this should be idempotent. If transaction has already succeeded before – I expect to get success submitting it again.

If transaction has already succeeded before – I expect to get success submitting it again.

That makes sense. We can check transaction status first.

@vgrichina are you working on this?

@janedegtiareva I've made workaround https://github.com/near/near-api-js/pull/350
AFAIK @bowenwang1996 also submitted better fix on nearcore side:
https://github.com/nearprotocol/nearcore/pull/2883
I'm not sure whether it's propagated to testnet/mainnet already.
@bowenwang1996 where is this released already?

@vgrichina it is available on betanet and will be released to testnet next Monday. Given that it is already Thursday I won't think  it makes sense for me to patch testnet with this commit right now.

Can this issue be closed now @bowenwang1996, or do you have more suggestions?

It appears that something doesn't work very well. I have seen people reporting nonce issues and other issues with retry. We should probably look into it.

It appears that something doesn't work very well. I have seen people reporting nonce issues and other issues with retry. We should probably look into it.

Seems to be resolved in https://github.com/nearprotocol/nearcore/pull/3061


:loud_sound: added sound for the visualisation

Added sound effects when traversing the array according to the selected element's height
Sorry my code formatter just changed most of the js file :D

@Raamyy Thanks ya Ramy for your effort to enhance it, it's really appreciated regardless changing the formats of the whole file :D
Merged ✅


The Safari version is wrong for me

"My Safari version : 17.4.1 (196<IP_ADDRESS>.14)
The script return: 605.1.15" - @NatachaH
From:
https://gist.github.com/julienetie/af1c6cb289047cbcbdfd4b7e2f9b1492?permalink_comment_id=5012484#gistcomment-5012484

I added a fix
@NatachaH are you able to re-test?

Yes it works, thank you !
Quick question, is it normal in Firefox and Chrome to not have the full version number (e.g.: Firefox version 124.0.2 return 124.0) ? Not a huge probleme because I still can detect the version, but just for my own knowledge :D

Thanks for confirming. Good question, I can't confirm just yet but I was actually looking into this for Safari and they do normalize the versions in their UAs like your example. I'll add a ticket for that.


Need for absolute paths when doing a payu clone -r could be clearer

Doing a payu clone using a relative restart path doesn't work with a warning:
Cloned repository from om2 to directory: /g/data/tm70/as2285/payu/om2-clone-r
Checked out branch: om2_1deg_ryf
laboratory path:  /scratch/tm70/as2285/access-om2
binary path:  /scratch/tm70/as2285/access-om2/bin
input path:  /scratch/tm70/as2285/access-om2/input
work path:  /scratch/tm70/as2285/access-om2/work
archive path:  /scratch/tm70/as2285/access-om2/archive
/g/data/tm70/as2285/payu-dev/payu-dev/lib64/python3.11/site-packages/payu/branch.py:46: UserWarning: Given restart path om2/archive/restart000 does not exist. Skipping setting 'restart' in config file

...

As it relies on an absolute path
https://github.com/payu-org/payu/blob/master/payu/branch.py#L245-L246
This could be clearer in the docs and help, e.g.:
$ payu clone --help
usage: payu clone [-h] [--model MODEL_TYPE] [--config CONFIG_PATH] [--laboratory LAB_PATH] [-k] [--branch BRANCH] [--new-branch NEW_BRANCH_NAME] [--restart RESTART_PATH]
                  [--parent-experiment PARENT_EXPERIMENT]
                  repository local_directory
...
  --restart RESTART_PATH, -r RESTART_PATH
                        The restart path from which to start the model run
...

its also not clear to me why the relative path can't work?

Thanks for raising this issue! Yeah relative paths should be supported..
So restart path is added to the configuration as part of the checkout method and is resolved to an absolute path: https://github.com/payu-org/payu/blob/e59d4005db7a5ae73e4055903945a665f908533b/payu/branch.py#L51
The error is happening because checkout runs inside the newly cloned directory. So the clone method could be changed to resolve the restart path before passing the path to checkout. The code documentation will need to be fixed too.


Extend has-statement s3 filter to check for full bucket policy definitions in addition to policy names.

thanks for the pr. i pushed a commit with some minor changes/cleanups. modified the matching logic to be more explicit, (default not match), also switched value in statement[key]  to equality check.


Add makefile and docker build support

This simply adds a makefile and container for easier building on OSX.

/assign @castrojo

/lgtm
/approve


Fix access to undefined stack index on ExpressionParser

Follow up to #64

Follow up to #64

1) Yay\ParserOptimizationTest::testExpressionParserWithGoodExpressions with data set
"Expression 446" ('3 << 3 >> 2 . 2', true)

The behavior of unparenthesized expressions containing both '.' and '>>'/'<<'
 will change in PHP 8:  '<<'/'>>' will take a higher precedence

There are still some precedence changes on some operators though, these last failures will require some thought. The ExpressionParser will have to be conditionally different regarding the PHP version.
BTW we should be thankfull these warnings were added, this is something nobody would notice without the engine warnings/notices.

1) Yay\ParserOptimizationTest::testExpressionParserWithGoodExpressions with data set
"Expression 446" ('3 << 3 >> 2 . 2', true)
The behavior of unparenthesized expressions containing both '.' and '>>'/'<<'
will change in PHP 8:  '<<'/'>>' will take a higher precedence

There are still some precedence changes on some operators though, these last failures will require some thought. The ExpressionParser will have to be conditionally different regarding the PHP version.
BTW we should be thankfull these warnings were added, this is something nobody would notice without the engine warnings/notices.

IMO you should not fix these in your tests. Even though these are rightful warnings from PHP that the code generated might be not what you want. Nevertheless, it's still 100% valid PHP syntax. The tool did exactly what it was told to. So I don't see a problem.


Additional method signatures for type extensions to remove the need for attributes

Is your feature request related to a problem? Please describe.
Currently using type extensions, such as extending "Query", "Mutation" or others, require you to use the ExtendObjectTypeAttribute. For a project that does not otherwise require attributes this seems forced.
Describe the solution you'd like
Add the following two additional IRequestExecutorBuilder extension methods for use in Startup.
AddTypeExtension<TExtension, TExtends>(this IRequestExecutorBuilder builder);
AddTypeExtension<TExtension>(this IRequestExecutorBuilder builder, Type extendsType);

Bump. I think this is a good addition.

'ExtendObjectTypeAttribute' translates to an ObjectTypeExtension meaning we would need to introduce something like an AddObjectTypeExtension.

I will move this back to the backlog for another release. For now you can substitute this on your own .... essentially wrap the T into ObjectTypeExtension() and pass in the descriptor delegate to bind it to name or type.


Add experimental warning to pipenv

I think it is good to mark this feature as experimental and state that the API is unstable (this way we have some flexibility regarding semantic versioning as well...)

Coverage remained the same at 98.469% when pulling ef5a03a40d4c43f03d025cf0feab1c06e684c105 on abravalheri:improve-docs-for-3.1 into 88a78497a827df9204227ce8da7ef7e5725a84ea on blue-yonder:master.

@abravalheri, cool, thanks!


[#117] fix too eager validation evaluation on $error access

Inverses access order in $error to prefer $dirty check first, which avoids a dependency on validation output.
Fixes #117

Codecov Report

Merging #118 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #118   +/-   ##
=======================================
  Coverage   99.37%   99.37%
=======================================
  Files          18       18
  Lines         319      319
=======================================
  Hits          317      317
  Misses          2        2

Impacted Files
Coverage Δ

src/index.js
99.02% <100%> (ø)
: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 6105831...c3b1bc7. Read the comment docs.


VS and battle settings aren't saved

They will need a revamp to match whatever online settings we offer, and we probably want to show them unconditionally just like the time trial ones.

This is done.


fix comment for localStorage

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

I think this PR is repeated with #1062.

Codecov Report

Merging #1063 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1063      +/-   ##
==========================================
+ Coverage   47.15%   47.17%   +0.01%
==========================================
  Files         117      117
  Lines        7144     7144
==========================================
+ Hits         3369     3370       +1
  Misses       3513     3513
+ Partials      262      261       -1

Impacted Files
Coverage Δ

supernode/store/local_storage.go
62.94% <ø> (ø)
:arrow_up:

supernode/daemon/mgr/scheduler/manager.go
22.6% <0%> (+0.68%)
: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 e026d27...e907850. Read the comment docs.

I think this PR is repeated with #1062. Cloud you please close it?

Which one should I delete, #1062 or #1063?  #1063 is to squash some old commits.


Removing the Forum

I'm thinking to remove the forum and encourage people to sign up here. One less login... What do you guys think?

People will use forum as users also, not only developper. Not sure some would create a login in GitHub with something they may not be even know.

Exactly, and it will also help prevent some wierd questions here.

Sounds good!

I feel most reports and questions will end up here anyways... We can keep the forum for now, but I don't feel like it'll be used much (also b/c there isn't a lot of activity).

Forums // Deprecated
Github, Social, Support Tickets // TODO

Yeah, I feel deprecating the forum is a good move.
Have to set up a mailing list as well...


[Feature] Added Flow match_id attribute for efficient overlapping matches updates

Description of the change
Release notes

Added match_id attribute on Flow as a unique match identifier for efficient overlapping matches updates, minimizing extra DB lookups that would be needed otherwise.
Match OF10 as_dict to only included explicit set values.

This picture illustrates a POST /api/kytos/flow_manager/v2/flows/ on flow_manager (that's in progress on https://github.com/kytos-ng/flow_manager/issues/75), by leveraging this match_id there's a single update, minimizing DB round trips when inserting or updating a flow, minimizing locks and delegating as much to Mongo whenever applicable

I wasn't going to support OF10 either on this attribute, since we have mapped the issues to deprecate it, but since we haven't yet and the fix was simple I committed it. We can drop OF1.0 on issue #50 .

Thanks for reviewing @ajoaoff @italovalcy


CC Analyze unit test

CC Analyze

Thank you very much for your time. I will merge this pull request after I have fixed the credit card analyzer.


Front-end | Categories

Oki na, Colored Box nalang for now... Can open an issue in the future... "Nice to have" nalang yung pictures


how to degrade only what's present in Antimony?

Hello,
Is there a way to write a degradation reaction that is only "active" when there's something to be degraded in Antimony?
Consider this model where A leads to degradation of B:
const deg_k = 0.01
var A = 10.0
var B = 2.0
// A degrades B
A + B -> A; deg_k * A

This allows values of B to become negative. I'd like to instead make it so B is only "deleted" if it's present. I tried to bake this, using events, into the rate of the degradation reaction:
const deg_k = 0.01
var A = 10.0
var B = 2.0
var B_present = 1.0

// indicator variable for whether B is present
at (B > 0): B_present = 1.0;
at (B <= 0): B_present = 0.0;

// A degrades B
A + B -> A; deg_k * A * B_present

Is there a better way to say it in Antimony?
(I know I can make the reaction proportional to abundance of B but I have other reasons not to do that).
Thank you and happy new year!

Did the event approach work?
Herbert
On Fri, Dec 29, 2017 at 9:43 AM, Yarden Katz<EMAIL_ADDRESS>wrote:

Hello,
Is there a way to write a degradation reaction that is only "active" when
there's something to be degraded in Antimony?
Consider this model where A leads to degradation of B:
const deg_k = 0.01
var A = 10.0
var B = 2.0
// A degrades B
A + B -> A; deg_k * A
This allows values of B to become negative. I'd like to instead make it
so B is only "deleted" if it's present. I tried to bake this, using
events, into the rate of the degradation reaction:
const deg_k = 0.01
var A = 10.0
var B = 2.0
var B_present = 1.0
// indicator variable for whether B is present
at (B > 0): B_present = 1.0;
at (B <= 0): B_present = 0.0;
// A degrades B
A + B -> A; deg_k * A * B_present
Is there a better way to say it in Antimony?
Thank you and happy new year!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/321, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDmT8k5YNWbFfBoUK35ER33TaRxH1ks5tFSTFgaJpZM4RPRsb
.

Not completely. If I start with B being non-zero, it appears to work:
MODEL_STR = '''
const deg_k = 0.01
var A = 2.0
var B = 1.0
var B_present = 1.0

at (B > 0.0): B_present = 1.0;
at (B <= 0.0): B_present = 0.0;

// A degrades B
A + B -> A; deg_k * A * B_present
'''

model = te.loada(MODEL_STR)
t_start = 0.0
t_end = 300.0
result = model.simulate(start=t_start, end=t_end)
var_names = model.timeCourseSelections
plt.figure()
for var in var_names:
    if var == "time": continue
    plt.plot(result["time"], result[var], label=var)
plt.axhline(y=0.0, linestyle='--')
plt.legend()

giving:

But if B is 0.0 to begin with, it fails to trigger the event, so this:
MODEL_STR = '''
const deg_k = 0.01
var A = 2.0
var B = 0.0
var B_present = 1.0

at (B > 0.0): B_present = 1.0;
at (B <= 0.0): B_present = 0.0;

// A degrades B
A + B -> A; deg_k * A * B_present
'''

gives:

This is one for Lucian I think. I'm not sure what the best way is for this.
What happens if you did this:
A + B -> A; deg_k * A * B
B is only degraded is there is B, no B and nothing happens.
Herbert
On Fri, Dec 29, 2017 at 11:09 AM, Yarden Katz<EMAIL_ADDRESS>wrote:

Not completely. If I start with B being non-zero, it appears to work:
MODEL_STR = '''
const deg_k = 0.01
var A = 2.0
var B = 1.0
var B_present = 1.0
at (B > 0.0): B_present = 1.0;
at (B <= 0.0): B_present = 0.0;
// A degrades B
A + B -> A; deg_k * A * B_present
'''
model = te.loada(MODEL_STR)
t_start = 0.0
t_end = 300.0
result = model.simulate(start=t_start, end=t_end)
var_names = model.timeCourseSelections
plt.figure()
for var in var_names:
if var == "time": continue
plt.plot(result["time"], result[var], label=var)
plt.axhline(y=0.0, linestyle='--')
plt.legend()
giving:
[image: test_bnonzero]
https://user-images.githubusercontent.com/96318/34445428-a658986e-eca1-11e7-8cdb-150c26f76779.png
But if B is 0.0 to begin with, it fails to trigger the event, so this:
MODEL_STR = '''
const deg_k = 0.01
var A = 2.0
var B = 0.0
var B_present = 1.0
at (B > 0.0): B_present = 1.0;
at (B <= 0.0): B_present = 0.0;
// A degrades B
A + B -> A; deg_k * A * B_present
'''
gives:
[image: test_bzero]
https://user-images.githubusercontent.com/96318/34445478-e39b8b96-eca1-11e7-932e-66b68cb8ae01.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/321#issuecomment-354487926,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDiu2dBEbEO4hxcolk2ltGmTtjo7Eks5tFTkHgaJpZM4RPRsb
.

Thanks. Sure, what you proposed would work - that's what I was getting with making the reaction "proportional to abundance of B" in original post, but that also changes the dynamics of degradation.

Ok I see, was wondering why you hadn't done that.  This is probably a
question for Lucian.  If I think of something else I'll let you know.
Herbert
On Fri, Dec 29, 2017 at 11:34 AM Yarden Katz<EMAIL_ADDRESS>wrote:

Thanks. Sure, what you proposed would work - that's what I was getting
with making the reaction "proportional to abundance of B" in original post,
but that also changes the dynamics of degradation.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/321#issuecomment-354490744,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDtL3SxYWqWYBYSND5XAaa2dJK63lks5tFT6ngaJpZM4RPRsb
.

The simplest way to accomplish what you want is just:
A + B -> A; deg_k * A * (B>0)
The only problem is that using a Boolean in a numeric context is only legal
in SBML L3v2.  However, it will work anyway in roadrunner/tellurium.  If
you want a valid l3v1 or l2 model, you'll have to turn this into a
'piecewise' function:
A + B -> A; deg_k * A * piecewise(1,B>0,0)
The reason the event approach didn't quite work is that events fire when
the trigger changes from false to true.  If if starts off 'true', it will
never fire.  Your approach could work anyway, but you have to set B_present
to its correct value to start with:
var B_present = B>0; # (or the piecewise function again: piecewise(1,B>0,0) )
at (B > 0.0): B_present = 1.0;
at (B <= 0.0): B_present = 0.0;
In this approach, B starts off correct, and gets updated appropriately by
the events when that changes.
Another way would be to declare that both triggers started off as 'false'
at t0:
var B_present = 1.0
at (B > 0.0), t0=false: B_present = 1.0;
at (B <= 0.0), t0=false: B_present = 0.0;
In this approach, the underlying SBML sets the 'initialValue' attribute on
both Trigger elements to 'false', so whichever is true at the start of the
simulation is seen to 'change' from false to true, causing the event to
fire.
That's three ways to solve the problem when you only wanted one, but
hopefully the other methods will come in handy in some other situation ;-)
-Lucian

We should move this thread to the discussiun forum.
Herbert
On Fri, Dec 29, 2017 at 1:32 PM Lucian Smith<EMAIL_ADDRESS>wrote:

The simplest way to accomplish what you want is just:
A + B -> A; deg_k * A * (B>0)
The only problem is that using a Boolean in a numeric context is only legal
in SBML L3v2. However, it will work anyway in roadrunner/tellurium. If
you want a valid l3v1 or l2 model, you'll have to turn this into a
'piecewise' function:
A + B -> A; deg_k * A * piecewise(1,B>0,0)
The reason the event approach didn't quite work is that events fire when
the trigger changes from false to true. If if starts off 'true', it will
never fire. Your approach could work anyway, but you have to set B_present
to its correct value to start with:
var B_present = B>0; # (or the piecewise function again:
piecewise(1,B>0,0) )
at (B > 0.0): B_present = 1.0;
at (B <= 0.0): B_present = 0.0;
In this approach, B starts off correct, and gets updated appropriately by
the events when that changes.
Another way would be to declare that both triggers started off as 'false'
at t0:
var B_present = 1.0
at (B > 0.0), t0=false: B_present = 1.0;
at (B <= 0.0), t0=false: B_present = 0.0;
In this approach, the underlying SBML sets the 'initialValue' attribute on
both Trigger elements to 'false', so whichever is true at the start of the
simulation is seen to 'change' from false to true, causing the event to
fire.
That's three ways to solve the problem when you only wanted one, but
hopefully the other methods will come in handy in some other situation ;-)
-Lucian
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/321#issuecomment-354502766,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDgDonPac1Xtk8NTwsGSNujvGlkxfks5tFVotgaJpZM4RPRsb
.


Vera code could use improvements

As per PR https://github.com/home-assistant/home-assistant/pull/2391/files/e10dc0c530b5de6336190eab6141d6322df89385#r69051969 suggestions.  These suggestions can be applied to the other Vera and/or Lock modules upon which the Lock code was based.

@rhooper I'm happy to restructure the VeraDevice attribute code as @balloob suggested. I'm adding a power attribute anyway. What's there is a 80% refactor of earlier code. So I should finish it off!
Of course find if you'd like to do this!

@pavoni Happy to have you do that restructuring if you're already in the mood to do so, especially since you'll be adding another feature.


After upgrade Flutter to 2.5.0 flutter web pull up not work

It work well in Android platform.

same problem

It work well in Android platform.

It work well in Android platform.

use scrollbehavior
look up=>https://flutter.dev/docs/release/breaking-changes/default-scroll-behavior-drag

It work well in Android platform.

It work well in Android platform.

use scrollbehavior
look up=>https://flutter.dev/docs/release/breaking-changes/default-scroll-behavior-drag

It works OK when I add this to wrapper SmartRefresher. Thanks
              child: ScrollConfiguration(
                  behavior:
                      ScrollConfiguration.of(context).copyWith(dragDevices: {
                    PointerDeviceKind.touch,
                    PointerDeviceKind.mouse,
                  })

It is not working for me at all.

It work well in Android platform.

It work well in Android platform.

use scrollbehavior
look up=>https://flutter.dev/docs/release/breaking-changes/default-scroll-behavior-drag

It works OK when I add this to wrapper SmartRefresher. Thanks
              child: ScrollConfiguration(
                  behavior:
                      ScrollConfiguration.of(context).copyWith(dragDevices: {
                    PointerDeviceKind.touch,
                    PointerDeviceKind.mouse,
                  })

Can you give us and example on it?

It work well in Android platform.

It work well in Android platform.

use scrollbehavior look up=>https://flutter.dev/docs/release/breaking-changes/default-scroll-behavior-drag

It works for me. Thanks~

For those who stumbled upon this issue recently you need to add the ScrollConfiguration to the refresher widget instead of the child of refresher.
Eg:
ScrollConfiguration(
      behavior: ScrollConfiguration.of(context).copyWith(
        dragDevices: {
          PointerDeviceKind.touch,
          PointerDeviceKind.mouse,
          PointerDeviceKind.trackpad,
          PointerDeviceKind.stylus,
        },
      ),
      child: SmartRefresher(
        enablePullDown: true,
        header: BezierCircleHeader(
          bezierColor: YOUR_COLOR,
          circleColor: Colors.white,
        ),
        footer: CustomFooter(
          builder: (BuildContext context, LoadStatus mode) {
            Widget body;
            if (mode == LoadStatus.idle || mode == LoadStatus.loading) {
              body = CircularProgressIndicator.adaptive();
            } else if (mode == LoadStatus.failed) {
              body = Text("Load Failed!Please Retry!");
            } else {
              body = Text("No more Data");
            }
            return Container(
              height: 55.0,
              child: Center(child: body),
            );
          },
        ),
        controller: _refreshController,
        onRefresh: () async {
        },
        child: YourChildWidget(),
      ),
    );

For those who stumbled upon this issue recently you need to add the ScrollConfiguration to the refresher widget instead of the child of refresher.
Eg:
ScrollConfiguration(
      behavior: ScrollConfiguration.of(context).copyWith(
        dragDevices: {
          PointerDeviceKind.touch,
          PointerDeviceKind.mouse,
          PointerDeviceKind.trackpad,
          PointerDeviceKind.stylus,
        },
      ),
      child: SmartRefresher(
        enablePullDown: true,
        header: BezierCircleHeader(
          bezierColor: YOUR_COLOR,
          circleColor: Colors.white,
        ),
        footer: CustomFooter(
          builder: (BuildContext context, LoadStatus mode) {
            Widget body;
            if (mode == LoadStatus.idle || mode == LoadStatus.loading) {
              body = CircularProgressIndicator.adaptive();
            } else if (mode == LoadStatus.failed) {
              body = Text("Load Failed!Please Retry!");
            } else {
              body = Text("No more Data");
            }
            return Container(
              height: 55.0,
              child: Center(child: body),
            );
          },
        ),
        controller: _refreshController,
        onRefresh: () async {
        },
        child: YourChildWidget(),
      ),
    );

Is this added to the documentation?

For those who stumbled upon this issue recently you need to add the ScrollConfiguration to the refresher widget instead of the child of refresher.
Eg:
ScrollConfiguration(
      behavior: ScrollConfiguration.of(context).copyWith(
        dragDevices: {
          PointerDeviceKind.touch,
          PointerDeviceKind.mouse,
          PointerDeviceKind.trackpad,
          PointerDeviceKind.stylus,
        },
      ),
      child: SmartRefresher(
        enablePullDown: true,
        header: BezierCircleHeader(
          bezierColor: YOUR_COLOR,
          circleColor: Colors.white,
        ),
        footer: CustomFooter(
          builder: (BuildContext context, LoadStatus mode) {
            Widget body;
            if (mode == LoadStatus.idle || mode == LoadStatus.loading) {
              body = CircularProgressIndicator.adaptive();
            } else if (mode == LoadStatus.failed) {
              body = Text("Load Failed!Please Retry!");
            } else {
              body = Text("No more Data");
            }
            return Container(
              height: 55.0,
              child: Center(child: body),
            );
          },
        ),
        controller: _refreshController,
        onRefresh: () async {
        },
        child: YourChildWidget(),
      ),
    );

Is this added to the documentation?

Not sure actually

Could you open a new MR to add this to the documentation?

Could you open a new MR to add this to the documentation?

Sure, will try to do it this week 🙌

Could you open a new MR to add this to the documentation?

@SalahAdDin done 🙌

There still be small problem with this implementation: when we use scroll on mouse (not dragging the screen) then "onLoading" is never triggered...


Feature/Admin#2225 Update Handover report in line with application form improvements

What's included?
Ensure that the handover report is still populated correctly following the changes to the application form on Apply.
Note: The changes will apply to _applicationVersion 3.
Closes Update Handover report in line with application form improvements #2225
Who should test?
✅ Product owner
✅ Developers
✅ UTG
How to test?
Example exercise: https://admin-develop.judicialappointments.digital/exercise/6LHFYxCon9P6u96QLvwe/reports/handover

Go to "Handover" report.

Click "Refresh" button to refresh data.

Click "Export data" and check if "Judicial experience" is populated correctly. For this example, "Judicial experience" should be:
Judicial - Junior XXX
Quasi-judicial - Senior XXX

Risk - how likely is this to impact other areas?
🟢 No risk - this is a self-contained piece of work
Additional context

@HalcyonJAC @JeremykJAC Minor amend on this one - carriage return needs to be inserted between the two entries in the Judicial Experience field; currently appears like this:


java.lang.OutOfMemoryError

If you will rapidly touch and move PdfView (rapidly scroll with many fast touches) it woudn't be able to run GC and eventually'll give java.lang.OutOfMemoryError.
Please, add some delay before new "swipe"/"scroll" to give GC time to run.

post some code, i havent had this problem even when i just tested my code with drags moves pinch moves etc.

@1stmetro No code, just using this library.

+1

请问能取消缩放监听吗？


error when importing libamy

Hi...
after running:
sudo python3 setup.py  install
and following the "Using amy.py's local mode" I'm getting this error:
>>> import amy, alles
Using <IP_ADDRESS> as local IP for multicast IF
>>> amy.live() # starts an audio callback thread to play audio in real time
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kasparsj/Work/alles/amy.py", line 148, in live
    import libamy
ImportError: /usr/local/lib/python3.6/dist-packages/libamy.cpython-36m-x86_64-linux-gnu.so: undefined symbol: raw_file

Ah, apologies. Alles/AMY is fast moving and we re-factored the "live" bit. Instead of rendering audio in Python interpreter, start a desktop alles instance instead, which will play the audio via multicast to Python. See getting-started.md. I'll fix up this documentation asap.

Fixed up the READMEs and etc to reflect this new reality. Thanks for the report

Thanks man :))


Rust

Description
Project proposal
Why
Rust is one of the most important programming languages today. It's also independent of any company, which means it depends on funding: https://blog.rust-lang.org/2020/08/18/laying-the-foundation-for-rusts-future.html
Rust is used by a myriad of cryptocurrency projects:

https://github.com/tomusdrw/rust-web3
https://github.com/rust-in-blockchain/awesome-blockchain-rust

Code of Conduct
By submitting this pull request, I confirm I've read and complied with the CoC 🖖

The CI flow could not re-run for PRs that are more than a month ago. Therefore, I ask for comments from those who haven't voted yet.
@defi-er  Do you agree to this? Please react by 👍 or reply to this comment.

The CI flow could not re-run for PRs that are more than a month ago. However, I will merge this proposal because all the committee members have approved this.


add cohan-mbf

Added ,,cohan" planner type in start_arena.launch, changed cohan planner launch file and added yaml file for the parameter

@voshch
Added ,,cohan" planner type in start_arena.launch, changed cohan planner launch file and added yaml file for the parameter.
The Simulation works and the robot reaches his goal while avoiding dynamic and static obstacles.
But getting meanwhile the Error Output:
[ERROR1] [1699966292.517392331, 12.980000000]: No Transform available Error: "base_footprint" passed to lookupTransform argument source_frame does not exist.
ERROR2: cannot launch node of type [cohan_layers/agents_bridge.py]: Cannot locate node of type [agents_bridge.py] in package [cohan_layers]. Make sure file exists in package path and permission is set to executable (chmod +x)
(I Could not find the by the error2 mentioned file agents_bridge.py,  the
Error is caused by the file hateb_local_planner_params.yaml in line 35) .
Currently trying to fix the Error.


Adding intellij files

Fixing IMLs from maven to gradle conversion, also linux/windows issues.

This change is

Coverage remained the same at 53.656% when pulling 9727a58acf56dff5bdcbb455cc0c6218bea64053 on iml-fixes into 5d8d1e6c2ffaed2f2a19976a874357f9f7831648 on master.

Not merging, platform instability problems plague this PR and the GDAL 2.0 upgrade in general.


Remove useless data_model_utils.tabular.same_document

make docs failed. Can you remove the same_document related document as well?

I removed leftover imports. make docs ran w/o error locally.


Python : Numpy

Description
Covering the necessary information about the use of numpy in python
Type : Documentation
Domain
Python_Domain
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

@adityabisoi please assign me this issue

@adityabisoi is this issue open for audio ??? if yes then do assign it to me.
I would like to work on this issue as audio contri

/assign

@adityabisoi am I good to continue with his

Topic is already covered


Docs in the monorepo

In the main doc repo (https://github.com/eclipse/deeplearning4j-docs) I see the warning:

Warning: DO NOT edit the user guide directly in this repository. Commits will be reverted. Please make changes to the main repository here, run the autogeneration process, and open a pull request.

Where the 'here' is https://github.com/eclipse/deeplearning4j/tree/master/docs which doesn't exist.
In the mono repo I can't find any docs. Where can I find it?

Hi, you can find the published docs here:
https://deeplearning4j.konduit.ai/

Thanks for answer, but where I can find source for contributing (PR for https://github.com/eclipse/deeplearning4j-docs is prohibited)?

Ah, I see. Thanks for offering!  Our docs are hosted on gitbook now. It's not the most friendly for outsiders right now... @treo  would know better than me about the whole process there. I'll reopen this to document this.

@dariuszzbyrad  here, send PRs to this github repo. Thanks! https://github.com/KonduitAI/deeplearning4j-gitbook-sync/


EFI stub: Generating empty DTB

Hi, when I start linux, the following error prompt appears. What are the causes? The environmental deployment steps are operated according to the prompts in WIKI.
Shell> fs0:\Image root=/dev/vdb console=ttyS0 rootwait earlycon
EFI stub: Booting Linux Kernel...
EFI stub: Generating empty DTB
EFI stub: Exiting boot services...

This is a complete debugging information, how can I start Linux. From the results, I did not successfully start linux. Thank you!
Mapping table
      FS0: Alias(s):HD0b:;BLK1:
          VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,0070001000000000)/HD(1,GPT,7AB3A125-3BB3-4B5B-8467-3E951A7E16E5,0x800,0xFF7DF)
     BLK2: Alias(s):
          VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,0080001000000000)
     BLK0: Alias(s):
          VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,0070001000000000)
Press ESC in 5 seconds to skip startup.nsh or any other key to continue.
Shell> fs0:\Image root=/dev/vdb console=ttyS0 rootwait earlycon
FSOpen: Open '\Image' Success
FSOpen: Open '\Image' Success
FSOpen: Open '\Image' Success
FSOpen: Open '\Image' Success
[Security] 3rd party image[0] can be loaded after EndOfDxe: VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,0070001000000000)/HD(1,GPT,7AB3A125-3BB3-4B5B-8467-3E951A7E16E5,0x800,0xFF7DF)/\Image.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B FE5FE040
InvalidateInstructionCacheRange:RISC-V unsupported function.
Loading driver at 0x000FB996000 EntryPoint=0x000FC1CE6A2
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF FE618518
ProtectUefiImageCommon - 0xFE5FE040
  - 0x00000000FB996000 - 0x0000000001364000
InstallProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA FF6F4858
EFI stub: Booting Linux Kernel...
ConvertPages: failed to find range 200000 - 1563FFF
EFI stub: Generating empty DTB
EFI stub: Exiting boot services...
TimerDriverSetTimerPeriod(0x0)
SetUefiImageMemoryAttributes - 0x00000000FF695000 - 0x000000000000B000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF68B000 - 0x000000000000A000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF682000 - 0x0000000000009000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE5D5000 - 0x000000000001B000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF679000 - 0x0000000000009000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF670000 - 0x0000000000009000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE5BC000 - 0x0000000000008000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE57B000 - 0x0000000000007000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE573000 - 0x0000000000008000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.

Thank you for your reply.
Still unable to boot linux.
Shell>  fs0:\Image root=/dev/vdb console=ttyS0 rootwait earlycon=uart8250,mmio,0
x10000000
FSOpen: Open '\Image' Success
FSOpen: Open '\Image' Success
FSOpen: Open '\Image' Success
FSOpen: Open '\Image' Success
[Security] 3rd party image[0] can be loaded after EndOfDxe: VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,0070001000000000)/HD(1,GPT,3EFC8659-B7F2-4920-9627-899B3AF2AD7B,0x800,0xFF7DF)/\Image.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B FE5FE040
InvalidateInstructionCacheRange:RISC-V unsupported function.
Loading driver at 0x000FB996000 EntryPoint=0x000FC1CE6A2
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF FE618518
ProtectUefiImageCommon - 0xFE5FE040
  - 0x00000000FB996000 - 0x0000000001364000
InstallProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA FF6F4858
EFI stub: Booting Linux Kernel...
ConvertPages: failed to find range 200000 - 1563FFF
EFI stub: Generating empty DTB
EFI stub: Exiting boot services...
TimerDriverSetTimerPeriod(0x0)
SetUefiImageMemoryAttributes - 0x00000000FF695000 - 0x000000000000B000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF68B000 - 0x000000000000A000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF682000 - 0x0000000000009000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE5D5000 - 0x000000000001B000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF679000 - 0x0000000000009000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FF670000 - 0x0000000000009000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE5BC000 - 0x0000000000008000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE57B000 - 0x0000000000007000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x00000000FE573000 - 0x0000000000008000 (0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
InvalidateInstructionCacheRange:RISC-V unsupported function.
[    0.000000] Linux version 5.19.0-rc5-00089-g7a64f759184c (user@zdd) (riscv64-unknown-elf-gcc (GCC) 10.1.0, GNU ld (GNU Binutils) 2.35) #1 SMP Wed Jul 20 10:35:36 CST 2022
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10001
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] earlycon: uart8250 at MMIO 0x0000000010000000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: EFI v2.70 by EDK II
[    0.000000] efi: SMBIOS 3.0=0xff6a4000 ACPI 2.0=0xff6cf018 MEMRESERVE=0xfe284f18
[    0.000000] OF: fdt: Ignoring memory block 0x81000000 - 0x81020000
[    0.000000] OF: fdt: Ignoring memory range 0x81020000 - 0x81200000
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000FF6CF018 000024 (v02 BOCHS )
[    0.000000] ACPI: XSDT 0x00000000FF6CFF18 000044 (v01 BOCHS  BXPC     00000001      01000013)
[    0.000000] ACPI: FACP 0x00000000FF6CFB18 00010C (v05 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: DSDT 0x00000000FF6CE018 000EBC (v02 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: APIC 0x00000000FF6CFC98 000108 (v03 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: RHCT 0x00000000FF6CF098 0002E8 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: MCFG 0x00000000FF6CFE18 00003C (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000081200000-0x00000000ffffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000081200000-0x00000000fe17afff]
[    0.000000]   node   0: [mem 0x00000000fe17b000-0x00000000fe1ecfff]
[    0.000000]   node   0: [mem 0x00000000fe1ed000-0x00000000fe272fff]
[    0.000000]   node   0: [mem 0x00000000fe273000-0x00000000fe277fff]
[    0.000000]   node   0: [mem 0x00000000fe278000-0x00000000fe572fff]
[    0.000000]   node   0: [mem 0x00000000fe573000-0x00000000fe581fff]
[    0.000000]   node   0: [mem 0x00000000fe582000-0x00000000fe5bbfff]
[    0.000000]   node   0: [mem 0x00000000fe5bc000-0x00000000fe5effff]
[    0.000000]   node   0: [mem 0x00000000fe5f0000-0x00000000ff66ffff]
[    0.000000]   node   0: [mem 0x00000000ff670000-0x00000000ff6c3fff]
[    0.000000]   node   0: [mem 0x00000000ff6c4000-0x00000000ff6cffff]
[    0.000000]   node   0: [mem 0x00000000ff6d0000-0x00000000ff6d3fff]
[    0.000000]   node   0: [mem 0x00000000ff6d4000-0x00000000ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000081200000-0x00000000ffffffff]
[    0.000000] SBI HSM extension detected
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Couldn't find cpu id for hartid [0]
[    0.000000] Unable to handle kernel NULL pointer dereference at virtual address<PHONE_NUMBER>000011
[    0.000000] Oops [#1]
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.19.0-rc5-00089-g7a64f759184c #1
[    0.000000] epc : acpi_get_riscv_isa+0x1a/0x1f6
[    0.000000]  ra : acpi_get_riscv_isa+0x1a/0x1f6
[    0.000000] epc : ffffffff80428ed4 ra : ffffffff80428ed4 sp : ffffffff81203d50
[    0.000000]  gp : ffffffff812ef7c8 tp : ffffffff8120da80 t0 :<PHONE_NUMBER>000001
[    0.000000]  t1 :<PHONE_NUMBER>000000 t2 : ffffffff812f0b60 s0 : ffffffff81203d80
[    0.000000]  s1 : ffffffff81203d98 a0 :<PHONE_NUMBER>000000 a1 : ffffffff81286780
[    0.000000]  a2 :<PHONE_NUMBER>000000 a3 : fffffffffffffffe a4 :<PHONE_NUMBER>000000
[    0.000000]  a5 :<PHONE_NUMBER>000000 a6 : fffffffffff7d378 a7 : ffffffff81286780
[    0.000000]  s2 : ffffffff80a0ffb8 s3 : ff6000007ea01900 s4 :<PHONE_NUMBER>000500
[    0.000000]  s5 : ffffffff80a10d68 s6 : ffffffff812fd000 s7 :<PHONE_NUMBER>000200
[    0.000000]  s8 :<PHONE_NUMBER>000fff s9 :<PHONE_NUMBER>000009 s10: ffffffff80c524b8
[    0.000000]  s11:<PHONE_NUMBER>000000 t3 : ffffffff81306f48 t4 :<PHONE_NUMBER>000030
[    0.000000]  t5 :<PHONE_NUMBER>000000 t6 :<PHONE_NUMBER>000010
[    0.000000] status:<PHONE_NUMBER>000100 badaddr:<PHONE_NUMBER>000011 cause:<PHONE_NUMBER>00000d
[    0.000000] [<ffffffff80003436>] riscv_acpi_fill_hwcap+0xd4/0x59e
[    0.000000] [<ffffffff808038c8>] setup_arch+0x71e/0x74c
[    0.000000] [<ffffffff80800728>] start_kernel+0x90/0x7ac
[    0.000000] ---[ end trace<PHONE_NUMBER>000000 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

Thanks for the logs. Could you please rebase to latest branches in both qemu and linux?

another question. How can i contribute to the wiki,  i found some command are not correct when i build the kernel follow your wiki   : )

Okay, I will update QEMU and Linux and compile it again. happy weekend

another question. How can i contribute to the wiki, i found some command are not correct when i build the kernel follow your wiki : )

Thank you very much for offering help to improve the documentation. I am unable to find how we can do PR for wiki pages though we can do git clone (https://docs.github.com/en/communities/documenting-your-project-with-wikis/adding-or-editing-wiki-pages). Moving these pages to actual repo instead of wiki is another option in which case things work normally. But when I created it was more like step by step instructions, not any spec. Hence, I kept it in wiki.
Since wiki pages also have revisions, I think you can update the page directly. Let us see in future whether we should move to the repo.

I can't edit the Wiki page directly, so I'll tell you about it in this Issue page. First is the compile opensbi section in the Building step：
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- make PLATFORM=generic

This command probably needs to be changed to
make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu-  PLATFORM=generic

The second is in the compiling Rootfs section,
make rootfs-cpio

should be
make rootfs-ext2

Thanks.

When I use the -buildtarget parameter, there will be compilation errors. Need to be changed to -b。
➜  build -a RISCV64 -buildtarget RELEASE -D FW_BASE_ADDRESS=0x80200000 -D EDK2_PAYLOAD_OFFSET -p Platform/Qemu/RiscvVirt/RiscvVirt.dsc -t GCC5

Build environment: Linux-5.4.0-122-generic-x86_64-with-Ubuntu-18.04-bionic
Build start time: 10:13:04, Jul.25 2022

build.py...
 : error 1005: Not supported target [release].
  Please select one of: all genc genmake modules libraries fds clean cleanall cleanlib run

- Failed -
Build end time: 10:13:04, Jul.25 2022
Build total time: 00:00:00

➜  build -a RISCV64 -b RELEASE -D FW_BASE_ADDRESS=0x80200000 -D EDK2_PAYLOAD_OFFSET -p Platform/Qemu/RiscvVirt/RiscvVirt.dsc -t GCC5

With virtio-scsi disks
ssofpmf  ---> sscofpmf
-machine virt,aclint=on,aia=aplic-imsic,acpi=on -cpu rv64,ssofpmf=true -smp 8  -m 2G \

-machine virt,aclint=on,aia=aplic-imsic,acpi=on -cpu rv64,sscofpmf=true -smp 8  -m 2G \

Thank you very much. Updated those instructions. Let me know once you can boot with latest branches.

Thank you very much!
I have successfully booted Linux and need to update Linux, the Commit Id I used is db2ff4959c7730cd670257e2e7c025cb1dadcae8. The rest of the steps follow the WIKI prompts to configure it.
.
.
.
[    1.333204] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[    1.342319] NET: Registered PF_INET6 protocol family
[    1.356396] Segment Routing with IPv6
[    1.356986] In-situ OAM (IOAM) with IPv6
[    1.357617] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.361333] NET: Registered PF_PACKET protocol family
[    1.362978] 9pnet: Installing 9P2000 support
[    1.363571] Key type dns_resolver registered
[    1.368691] debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
[    1.417355] EXT4-fs (vdb): mounting ext2 file system using the ext4 subsystem
[    1.442499] EXT4-fs (vdb): mounted filesystem without journal. Quota mode: disabled.
[    1.443063] VFS: Mounted root (ext2 filesystem) readonly on device 254:16.
[    1.448876] devtmpfs: mounted
[    1.485479] Freeing unused kernel image (initmem) memory: 2200K
[    1.487189] Run /sbin/init as init process
[    1.806369] EXT4-fs (vdb): re-mounted. Quota mode: disabled.
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Saving random seed: [    7.336372] random: crng init done
OK
Starting network: udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: broadcasting select for <IP_ADDRESS>, server <IP_ADDRESS>
udhcpc: lease of <IP_ADDRESS> obtained from <IP_ADDRESS>, lease time 86400
deleting routers
adding dns <IP_ADDRESS>
OK

Welcome to Buildroot
buildroot login: root


Support rangeUntil operator for UnusedImport rule

Resolves https://github.com/detekt/detekt/issues/7103.
I have also added a test for the rangeTo operator, since there was not one.

Marking blocked until #7119 is merged. Once done this branch can be updated & merged.

@hudson155 please rebase or merge main branch. That should fix the test failure and we can merge, thanks!


Automatically run all partitions

I'm interested in this add-on because my current project has a couple hundred tests and if we just call
ember test phantomjs will crash.
I would like to use this plugin and just type:
ember exam --split=3 and have it run through all three partitions, not just the first one.
Right now it looks like i have to call:
ember exam --split=3 --partition=1
ember exam --split=3 --partition=2
ember exam --split=3 --partition=3

Is this correct? If I have to call it three times will ember build three times?

Use the --parallel option: ember exam --split=3 --parallel. That will run all three partitions in parallel with 3 browser instances.

Thanks for the quick reply. I tried that but I'm guessing something is wrong with my testem setup because that isn't working for me. I did add the parallel param to the testem.js file, but I probably have some bigger issues on my end.
Thanks again!


Is there a way to draw label on top of image?

I tried to use item.label together with image, but it seems that the image will be on top of item.label. Is there any way to draw label on top of image? or maybe some sort like set z-index of the label to be above image?

Currently I am using a workaround by creating 2 spin-wheel element on top of each other. One with background image and one with text, then make both spin together at the same time. But it would be better if can directly draw label on top of image, so dont need redundant code.

Hi @y3wk1m,
I couldn't reproduce this in the latest release.
 What version you are using?

tqvm for your reply. I am currently using v4.3.2, you can try in examples/playground, upload an image

then it will cover up the items label.

below is the json exported from playground
spin-wheel-settings(1).json


NEP-6 wallet support

Implement support for the NEP-6 wallet spec: https://github.com/neo-project/neo-gui/pull/106

@metachris I started experimenting and working on this issue.
This is what I have at the moment:  https://github.com/dethos/neo-python/pull/3 .
Any feedback or help is appreciated.


Added diverse_social_bias task

TLDR: We design a benchmark suite to test for the presence of representational social biases in pretrained language models. Our metrics capture bias at the word and sentence level:

Local biases represent predictions generated at a particular time step that reflect undesirable associations with the context. For example, an LM that assigns a higher likelihood to the final token in he worked as a [doctor] than she worked as a [doctor].

High-level global biases result from representational differences across entire generated sentences spanning multiple phrases. For example, an LM that generates the gay person was known for [his love of dancing, but he also did drugs] (example from Sheng et al., EMNLP 2019).

We also obtain a large set of real-world diverse contexts to test for bias in text generation as compared to simple templates used in current work. Diverse contexts found in naturally occurring text corpora can accurately benchmark generation of realistic text, while also ensuring that social biases are tested in rich real-world contexts.

Thank you for submitting your task! We are in the process of pairing submissions with task reviewers and will be in touch soon.

@ibab You are the second reviewer on this PR. Please provide feedback before Friday, March 26th.

Hi @pliang279 - As a reminder you have until Friday, March 26th to revise your task to be accepted in the workshop. Please tag your reviewers when you have addressed their suggestions.
Reviewers:
@ibab and @aletheap if the submitter has made revisions please be sure to notify me with a formal "accept" or "does not meet criteria" by Friday, March 26th (if you haven't already done so).

Hi, I'm the other reviewer for this PR.
I agree with @aletheap that this is an important and well-justified task.
Thanks for writing a very detailed readme file!
I can see issues with the current submissions in three categories:
Specificity: I agree with @aletheap that a substantial number of examples have issues, for example well-known personalities are assigned a gender that conflicts with what we know about them, which means a model that makes factually correct predictions will score lower.
Novelty: There are a few PRs with a similar goal that have been submitted earlier, for example #94, which avoids the issue with specificity.
Size: As mentioned by @aletheap the dataset is somewhat small and it would be good to see a larger number of examples.

@chiafullo: does not meet requirements as of now
This is a really important benchmark, so I hope the authors submit an improved version for the second deadline.

@cdfreeman-google for meta review and merge (if acceptable)

Hello, I'm the metareviewer for this task.  @pliang279 , are you planning on incorporating the reviewer feedback into this task?

Hello! Metareviewer here again.
Because the revisions were not made by 4/9 your task will not be included in the workshop. If you would like to make revisions on your task so that it is eligible to be included in the paper, please re-open the pull request and be sure to revise your task by June 11th.

note -- the due date for the final round will be June 1, not June 11

Thank you for all your helpful comments! @aletheap, @ibab, @cdfreeman-google, @chiafullo
We are aware that we missed the workshop inclusion deadline but we will fix these errors, expand the datasets, and update the PR before June 1st.
Thanks again for the feedback!

Awesome! Really excited to see the updated version of this task! :-)


Updated readme

A few typos in the readme uri_parsing_class instead of uri_parser_class in options example.
Fixes # .
The uri_parser_class example showed the options attribute as 'uri_parsing_class'. Connexion was spelled connextion just below there.
Changes proposed in this pull request:

Thanks!

:+1:


golangci-lint: Add config file

This PR adds a config file that configures make lint to use the linters needed for this project

Second commit message:

now that linter was added with gofmt check - it is redundant.Removing
from all makefile target

It was removed from the check target.

fixed


fsdoc.sh ignores ulib/prims.fst

Add this back in the .ci/fsdocs.sh script. Will need a bit of bash hackery to capitalize prims.fst to Prims.md.

Closing all fsdoc related issues.


[kubernetes] k8s cluster starts working after nodes are restarted

I created a sp through az ad sp create-for-rbac --role contributor --scopes /subscriptions/xxx-yyy-zzz, then I deployed a k8s cluster through the portal UI. After the boxes were up, I ssh'ed into master node and:
Unable to connect to the server: dial tcp <IP_ADDRESS>:443: i/o timeout

but az login was working fine with my sp account! Confused, I tried restarting the k8s api server using docker restart foo, and suddenly the k8s api server was responding. Albeit all nodes were not ready!
NAME                    STATUS                     AGE
k8s-agent-a21727d1-0    NotReady                   27s
k8s-agent-a21727d1-1    NotReady                   30s
k8s-agent-a21727d1-2    NotReady                   31s
k8s-master-a21727d1-0   Ready,SchedulingDisabled   27s

I rebooted agent-1 from the web portal UI .. a minute later
NAME                    STATUS                     AGE
k8s-agent-a21727d1-0    NotReady                   6m
k8s-agent-a21727d1-1    Ready                      6m
k8s-agent-a21727d1-2    NotReady                   7m
k8s-master-a21727d1-0   Ready,SchedulingDisabled   6m

I didn't yet reboot the rest of nodes in case anyone wants to take a look. If I were to guess, It seems k8s cluster was up before AAD had fully replicated the sp account? and surprisingly, k8s does not auto-retry, but somehow gets stuck!

How much time elapsed between the SP creation and the reboot?
Also, I know it's a weird question, but what timezone did you execute the SP creation command in?

@colemickens .. Let me answer the second question first. I executed sp creation commands, on my laptop in UTC+2 TZ!
For the first question, it's not entirely clear to me. I created the SP using the new python az cli. Then, I submitted the k8s deployment through the azure portal. I guess it took like 5 mins to deploy. After that, I ssh'ed into master. It and all agents were not working kubectl get nodes not returning. Restart api server docker container, made it responsive. Rebooting agent-1 made it ready! I still did not reboot agents-{2&3}, and they are still in the "Not-ready" state, if you want to ssh to them, I'm Ok. Otherwise, if I'm free to reboot them, let me know as well. Thanks!

Rebooted remaining nodes, and they came up in ready state

@kim0 How you get api server restarted? I've ssh-ed to master, tried to do same as you, but:
root@k8s-master-F02F8C45-0:~# docker ps
CONTAINER ID        IMAGE                                             COMMAND                  CREATED             STATUS              PORTS               NAMES
9fb65bdb36c6        gcr.io/google_containers/hyperkube-amd64:v1.4.6   "/hyperkube kubelet -"   19 minutes ago      Up 19 minutes                           angry_thompson
root@k8s-master-F02F8C45-0:~# kubectl get pods
^C
root@k8s-master-F02F8C45-0:~# docker restart foo
Error response from daemon: No such container: foo
root@k8s-master-F02F8C45-0:~# docker restart 9fb65bdb36c6
9fb65bdb36c6
root@k8s-master-F02F8C45-0:~# docker ps
CONTAINER ID        IMAGE                                             COMMAND                  CREATED             STATUS              PORTS               NAMES
9fb65bdb36c6        gcr.io/google_containers/hyperkube-amd64:v1.4.6   "/hyperkube kubelet -"   20 minutes ago      Up 5 seconds                            angry_thompson
root@k8s-master-F02F8C45-0:~# kubectl get pods
Unable to connect to the server: dial tcp <IP_ADDRESS>:443: i/o timeout

@olostan Your SP is very likely misconfigured. Please check the troubleshooting steps here: https://github.com/Azure/acs-engine/blob/master/docs/kubernetes.md#troubleshooting

@colemickens wow... thnx. That helps - seems I really have
Unable to construct api.Node object for kubelet: failed to get external ID from cloud provider: compute.VirtualMachinesClient#Get: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '<guid>' with object id '<guid>' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/<guid>/resourceGroups/edicircle/providers/Microsoft.Compute/virtualMachines/k8s-master-f02f8c45-0'."```

Sorry if it is not correct place (however could be useful for others if they have same problem, but is there any clue how to add those permissions?

Actually I have created cluster exactly one-to-one as on this video: https://www.youtube.com/watch?v=nhY9XdzNbbY with `az acs create ... ` that should should create SP as I understand....

@olostan If you used az acs create, you are correct, you shouldn't be experiencing this issue.
Can you please detail the exact command you ran (possibly looking through your shell history) and also paste the full output from az --version? Thanks!
(We might end up moving this over to https://github.com/Azure/azure-cli ...)

Created https://github.com/Azure/azure-cli/issues/1620
@colemickens if you have any ideas how I can manually add authorisation rights please share! thnx

auth rights to resource groups should be able to be added through the Azure Portal.

Please re-open if you encounter this issue again, since the latest az should fix this.


Upload new version to hackage

Current scion on hackage is ridiculously outdated. http://hackage.haskell.org/package/scion

Seems the repo is not maintained for a long time!!!


Group Publishing

First off, thanks for this module! It's been working for us for a good long while.
We recently moved our extension from individual publishing to group publishing. Now we're getting this back from the Google API:
(node:4205) UnhandledPromiseRejectionWarning: HTTPError: Response code 400 (Bad Request)
    at stream.catch.then.data (/home/travis/build/toolkit-for-ynab/toolkit-for-ynab/node_modules/got/index.js:123:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

I went through the steps again to get a new refresh token and set that up but I'm still having the same error. Does anyone happen to know how to set this module up to work with group publishing?

Does anyone happen to know how to set this module up to work with group publishing?

I personally have no idea how. I haven't looked at the API in quite a bit of time (@bfred-it has been doing an amazing job managing contributions). If you happen to figure it out, though, we'd certainly appreciate the contribution, whether it's code or docs.

I work with @blargity on the project we were seeing this issue from. It looks like whatever was wrong has been fixed on Google's side since we've not changed our implementation and group publishing is now working...
We can probably close this issue now! But either way, thanks for the response @DrewML


 Second, a quick question(s?). I am interested in tracking and visualizing changes made to HOTS over time. Do you all by any chance have JSON data for each patch? If not, do you know where I might download older HOTS data files? Finally, will the heroesjson project work on older data files? Thank you in advance.

Semblance did the work, not me. I'm basically Alfred after Bruce Wayne as left.

Do you all by any chance have JSON data for each patch?

Unfortunately Semblance did not save all the old versions. Since I've tracked the project, all the files are located in the gh-pages branch of the repository.  Here's all the changes to the heroes.json file since I've started the project.

If not, do you know where I might download older HOTS data files?

Load a replay from a specific version, then exit the game, your Heroes of the Storm directory should be from that protocol version.

Finally, will the heroesjson project work on older data files?

Excellent follow-up question.  It will be a TON of work.  Because of the format and files have changed over time, the heroesjson HEAD changes with the protocol.  You would have to figure out which version of the replay it is, and git checkout the right version of heroesjson.  It's probably more work than it's worth. Sorry.


Accidentally merged https://github.com/dineshkummarc/Codeigniter-User-Panel-Management into this repo

Accidentally merged https://github.com/dineshkummarc/Codeigniter-User-Panel-Management into this repo

reverted the code to v<IP_ADDRESS> of the repo


fix: dispatching undo & redo states for collaboration; fixing up Point.getNode not a function

Addressing issue: https://github.com/facebook/lexical/issues/4828
Addressing issue: https://github.com/facebook/lexical/issues/4832
Dispatches CAN_UNDO_COMMAND & CAN_REDO_COMMAND in collaboration mode, mimicking the behaviour from the HistoryPlugin
Fixes up selection checking

Thanks - can you run the linter locally? There's some issue the integrity check is failing on.

Thanks - can you run the linter locally? There's some issue the integrity check is failing on.

@acywatson There seems to be no issue for me when linting locally

Did you try to repro using the commands below? It looks like a prettier error in packages/lexical-react/src/shared/useYjsCollaboration.tsx
Run npm run ci-check

<EMAIL_ADDRESS>ci-check
npm-run-all --parallel tsc flow prettier lint

<EMAIL_ADDRESS>flow
node ./scripts/check-flow-types.js

<EMAIL_ADDRESS>prettier
prettier --list-different .

<EMAIL_ADDRESS>tsc
tsc

Running Flow...

<EMAIL_ADDRESS>lint
eslint ./

Launching Flow server for /home/runner/work/lexical/lexical
Spawned flow server (pid=1[9](https://github.com/facebook/lexical/actions/runs/6093118795/job/16551288220?pr=4956#step:7:10)[11](https://github.com/facebook/lexical/actions/runs/6093118795/job/16551288220?pr=4956#step:7:12))
Logs will go to /tmp/flow/zShomezSrunnerzSworkzSlexicalzSlexical.log
Monitor logs will go to /tmp/flow/zShomezSrunnerzSworkzSlexicalzSlexical.monitor_log
Started a new flow server: -Please wait. Server is starting up
Please wait. Server is initializing (parsed files 0)
Please wait. Server is initializing (parsed files 560)
Please wait. Server is initializing (parsed files 560)
Please wait. Server is initializing (parsed files 560)
Please wait. Server is initializing (parsed files 560)
Please wait. Server is initializing (resolving dependencies)
Please wait. Server is initializing (indexing files 0/59 (0.0%))
Please wait. Server is initializing (parsed files 0/0 (0.0%))
Please wait. Server is initializing (calculating dependencies)
Please wait. Server is initializing (merged module interfaces 0/59 (0.0%))
Please wait. Server is initializing (checked files [15](https://github.com/facebook/lexical/actions/runs/6093118795/job/16551288220?pr=4956#step:7:16)/59 ([25](https://github.com/facebook/lexical/actions/runs/6093118795/job/16551288220?pr=4956#step:7:26).4%))
Please wait. Server is handling a request (collating errors)
No errors!
packages/lexical-react/src/shared/useYjsCollaboration.tsx
ERROR: "prettier" exited with 1.
Error: Process completed with exit code 1.

@acywatson should be fixed - my bad I had only ran npm run lint


rafthttp: move test-only functions to '_test.go'

Not used in actual code base, only used in tests

lgtm


ignore vscode and rider folders

For those who use Visual Studio Code or JetBrain's Rider😅

You can also add the .feet folder.


Add YCSB benchmark suite

This is for issue #95. Needs some more testing but should be a good start.

Here is the output of my local unit tests:
homans@ubuntu-test:/opt/go/src/github.com/xridge/kubestone$ make test
go get<EMAIL_ADDRESS>go: finding sigs.k8s.io v0.2.0
go: finding sigs.k8s.io/controller-tools/cmd/controller-gen v0.2.0
go: finding sigs.k8s.io/controller-tools/cmd v0.2.0
/opt/go/bin/controller-gen object:headerFile=./hack/boilerplate.go.txt paths=./api/...
go fmt ./...
go get<EMAIL_ADDRESS>go: finding github.com/golangci/golangci-lint/cmd/golangci-lint v1.21.0
go: finding github.com v1.21.0
go: finding github.com/golangci/golangci-lint/cmd v1.21.0
go: finding github.com/golangci v1.21.0
GOGC=10 /opt/go/bin/golangci-lint run -v --timeout 10m
INFO [config_reader] Config search paths: [./ /opt/go/src/github.com/xridge/kubestone /opt/go/src/github.com/xridge /opt/go/src/github.com /opt/go/src /opt/go /opt /]
INFO [lintersdb] Active 10 linters: [deadcode errcheck gosimple govet ineffassign staticcheck structcheck typecheck unused varcheck]
INFO [loader] Go packages loading at mode 575 (deps|exports_file|files|compiled_files|name|types_sizes|imports) took 6.127891419s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 16.181448ms
INFO [runner/unused/goanalysis] analyzers took 20.030819262s with top 10 stages: buildssa: 19.897285994s, U1000: 133.533268ms
INFO [runner/goanalysis_metalinter/goanalysis] analyzers took 21.639493542s with top 10 stages: buildssa: 16.207559332s, ineffassign: 162.388146ms, ctrlflow: 138.71984ms, SA4014: 138.59501ms, printf: 136.124116ms, SA4004: 127.263788ms, unusedresult: 122.74323ms, vrp: 120.595909ms, composites: 117.206779ms, SA9002: 107.154749ms
INFO [runner] processing took 4.741µs with stages: max_same_issues: 1.549µs, skip_dirs: 571ns, nolint: 523ns, max_from_linter: 401ns, autogenerated_exclude: 200ns, source_code: 159ns, cgo: 159ns, exclude: 139ns, skip_files: 136ns, max_per_file_from_linter: 135ns, path_prettifier: 133ns, filename_unadjuster: 132ns, diff: 132ns, identifier_marker: 122ns, path_shortener: 109ns, uniq_by_line: 83ns, exclude-rules: 58ns
INFO [runner] linters took 14.683914898s with stages: unused: 7.714083776s, goanalysis_metalinter: 6.969698345s
INFO File cache stats: 0 entries of total size 0B
INFO Memory: 199 samples, avg is 290.4MB, max is 541.9MB
INFO Execution took 20.844290859s
/opt/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
go test -v ./api/... ./controllers/... ./pkg/... -coverprofile cover.out
?   	github.com/xridge/kubestone/api/v1alpha1	[no test files]
=== RUN   TestAPIs
Running Suite: Controller Suite
===============================
Random Seed:<PHONE_NUMBER>
Will run 0 of 0 specs

Ran 0 of 0 Specs in 6.500 seconds
SUCCESS! -- 0 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestAPIs (6.50s)
PASS
coverage: [no statements]
ok  	github.com/xridge/kubestone/controllers	6.539s	coverage: [no statements]
=== RUN   TestDrillController
Running Suite: Drill Controller Suite
=====================================
Random Seed:<PHONE_NUMBER>
Will run 4 of 4 specs

••••
Ran 4 of 4 Specs in 0.000 seconds
SUCCESS! -- 4 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestDrillController (0.00s)
PASS
coverage: 33.3% of statements
ok  	github.com/xridge/kubestone/controllers/drill	0.012s	coverage: 33.3% of statements
=== RUN   TestFioController
Running Suite: Fio Controller Suite
===================================
Random Seed:<PHONE_NUMBER>
Will run 7 of 7 specs

•••••••
Ran 7 of 7 Specs in 0.000 seconds
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestFioController (0.00s)
PASS
coverage: 34.9% of statements
ok  	github.com/xridge/kubestone/controllers/fio	0.015s	coverage: 34.9% of statements
=== RUN   TestIopingController
Running Suite: Ioping Controller Suite
======================================
Random Seed:<PHONE_NUMBER>
Will run 7 of 7 specs

•••••••
Ran 7 of 7 Specs in 0.000 seconds
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestIopingController (0.00s)
PASS
coverage: 22.2% of statements
ok  	github.com/xridge/kubestone/controllers/ioping	0.034s	coverage: 22.2% of statements
=== RUN   TestIperf3Controller
Running Suite: Iperf3 Controller Suite
======================================
Random Seed:<PHONE_NUMBER>
Will run 32 of 32 specs

••••••••••••••••••••••••••••••••
Ran 32 of 32 Specs in 0.003 seconds
SUCCESS! -- 32 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestIperf3Controller (0.00s)
PASS
coverage: 47.9% of statements
ok  	github.com/xridge/kubestone/controllers/iperf3	0.043s	coverage: 47.9% of statements
=== RUN   TestPgbenchController
Running Suite: Pgbench Controller Suite
=======================================
Random Seed:<PHONE_NUMBER>
Will run 13 of 13 specs

•••••••••••••
Ran 13 of 13 Specs in 0.004 seconds
SUCCESS! -- 13 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestPgbenchController (0.00s)
PASS
coverage: 24.2% of statements
ok  	github.com/xridge/kubestone/controllers/pgbench	0.033s	coverage: 24.2% of statements
=== RUN   TestQperfController
Running Suite: Qperf Controller Suite
=====================================
Random Seed:<PHONE_NUMBER>
Will run 24 of 24 specs

••••••••••••••••••••••••
Ran 24 of 24 Specs in 0.005 seconds
SUCCESS! -- 24 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestQperfController (0.00s)
PASS
coverage: 38.3% of statements
ok  	github.com/xridge/kubestone/controllers/qperf	0.040s	coverage: 38.3% of statements
=== RUN   TestSysbenchController
Running Suite: Sysbench Controller Suite
========================================
Random Seed:<PHONE_NUMBER>
Will run 3 of 3 specs

•••
Ran 3 of 3 Specs in 0.001 seconds
SUCCESS! -- 3 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestSysbenchController (0.00s)
PASS
coverage: 21.9% of statements
ok  	github.com/xridge/kubestone/controllers/sysbench	0.032s	coverage: 21.9% of statements
=== RUN   TestYcsbBenchController
Running Suite: YcsbBench Controller Suite
=========================================
Random Seed:<PHONE_NUMBER>
Will run 18 of 18 specs

••••••••••••••••••
Ran 18 of 18 Specs in 0.001 seconds
SUCCESS! -- 18 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestYcsbBenchController (0.00s)
PASS
coverage: 39.5% of statements
ok  	github.com/xridge/kubestone/controllers/ycsbbench	0.016s	coverage: 39.5% of statements
=== RUN   TestK8sController
Running Suite: K8s Controller Suite
===================================
Random Seed:<PHONE_NUMBER>
Will run 16 of 16 specs

••••••••••••••••
Ran 16 of 16 Specs in 4.134 seconds
SUCCESS! -- 16 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestK8sController (4.13s)
PASS
coverage: 39.2% of statements
ok  	github.com/xridge/kubestone/pkg/k8s	4.146s	coverage: 39.2% of statements

You can see the exit code here:
homans@ubuntu-test:/opt/go/src/github.com/xridge/kubestone$ echo $?
0

I do see in the circleci output the following:
/usr/local/go/pkg/tool/linux_amd64/link: signal: killed

Sorry for the delay here, I will try to take a look this week.

Sorry for the delay here, I will try to take a look this week.

No worries, i just have not been able to figure out the build fail. thanks!


🚀 Feature: add GET songs endpoint

Endpoint to be used to retrieve all the songs in the songs collection. Return the song name and a list of the names of the artists
Use Case

Set this as the GET endpoint at the route /song
Proposed Solution
Make a new route /song and make it in a new file @aurgy/server/www/song.ts
Use the Song.all() function to get all the songs and then filter the result to only return the data we want

[ ] :wave: I may be able to implement this feature request

This is a :rocket: Feature Request

I'll take this one!


What do we do about songs scrobled with incorrect info?

For example, https://www.youtube.com/watch?v=UoK8DaJRDaM
This is scrobled in my library as きゃりーぱみゅぱみゅ – "CANDY CANDY , Kyary Pamyu Pamyu - CANDY CANDY"
When it should simply be きゃりーぱみゅぱみゅ – "CANDY CANDY"
or Kyary Pamyu Pamyu - "CANDY CANDY"
In the current system, there's no way to fix titles showing up incorrectly.

I referenced this issue on another issue but I might as well reference that issue here.


[BUG] SSL Error

Describe the bug
Google no longer works on my computer. No issues yesterday. Today it brings up a SSL error and I click "Yes" to accept it. It locks up at that time and I have to End Process on MSFS2020. Yesterday I got the same SSL error, clicked "Yes" and it worked fine. Anything I need to do to correct my problem? Thanks for the great app.
To Reproduce
Start the run.bat "As Administrator"
Start MSFS2020
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows 10
MOD Version [Most recent downloaded from flightsim.to]
MSFS Version, MS Store

Additional context
It gave me the error yesterday and selecting Yes allowed the program to run.

If you can run it fine, just accept the SSL error.


Add Spanish language Jenkins configuration

@dotnet-bot build this please

Guess I have to commit it to dev for the changes in pipeline.groovy to be picked up. I'll revert in case it doesn't work.


How can I get test result exported into excel from robot result files...Any idea?

This issue tracker is for bug reports and enhancement requests. Questions are better sent to dedicated support forums.


Secretless has run MSSQL performance tests with the latest master build (1.5.2-434b05c at this time)

AC:

[ ] Juxtaposer 1 hour, single thread, recreateConnections=false (aka persistent connection) performance tests have been run for MSSQL in a realistic environment (eg the XA env)
[ ] The tabular results of the performance tests have been attached to this issue

OC Results:
Name                          |          Min|          Max|          Avg| 90% Lower %| 90% Upper %|             Total|   Rounds|   Errors|   Succ %| Thresh %|
mssql_direct                  |   1.393397ms| 683.636878ms|   2.156427ms|      100.00|      100.00|  59m53.837613835s|  1666570|        0|   100.00|     0.00|
mssql_secretless_tcp          |   1.429804ms| 684.769386ms|   2.195853ms|      116.73|      117.75|  59m53.924939692s|  1636687|        0|   100.00|     6.77|


Keyboard activation instantly closes the popup after opening

Also, Dropdown doesn't close if I opened menu by click on dropdown control. Pressing Enter or Space buttons don't close popup.


Check ShardGroup Duration when recreating database

Required for all non-trivial PRs

[x] Rebased/mergable
[ ] Tests pass
[x] CHANGELOG.md updated
[x] Sign CLA (if not already signed)

Fixes #6153

:+1: