Block fullness targeting with fee multiplier

Detailed research here
Motivation

We want to target block saturation level of s* = 0.25 (adjustable). The allows the system to handle 4x transaction spikes, with room for crucial transactions, e.g. misbehavior reports.
We introduce v a fee variability (multiplier) factor, which controls how quickly the transaction fees adjust. Where: v≤ p / (k * (1−s∗)).

Fast vs Slow fee mechanisms
There are two options to consider when it comes to the fee adjustment rate

Slow adjusting with tipping (recommended): Adjusts slowly, at the pace of long term tendencies, and uses tipping to deal with long queues at peak hours. V is small.

Fast adjusting: Adjusts the price very quickly, at the same pace as the peaks and valleys of activity.

from: @gavofyork

So one fundamental, non-changing part of this task is to communicate some sense of weight from each transaction to a centralized store: probably executive module or write system module directly.
Ideally, I think this weight should be some enum like
pub enum Weight {
    /// Simple tx, irrelavent of the inputs
    Constant,
    /// Weighted
    Weighted(u32),
    /// Red flag.
    Maximum,
     /// Transaction is actually helpful and should be rewarded (indices module etc.)
     ShouldReward(u32)
    ....
}

But for now, we can assume we just need to communicate one u32 value back.
I see a few options to do that:

Return it via the default Ok(). I don't know where it goes exactly atm but I expect it to be easily capturable.
pass a secondary, optional argument into each transaction (after origin) which has the type Fn(w: Weight) -> (). Essentially pas a setter for weight into each tx.  If not used, then Default implementation of Weight will be used.
Similar to the above but with a global function which will be reserved keyword like set_weight(w).

If it is possible, I returning Ok(something) seems quite simple and gets the job done.
Any initial feedback? @bkchr @gavofyork @shawntabrizi

@Kianenigma we had a primitive implementation of this centralized transaction fee/weight store. I wonder if you guys can take a look to see if it helps in this case? The ultimate goal is same that use transaction fee to control the target block fullness. As the first step we developed a fees registry (based on the srml-fees module I developed which got removed from substrate).
You can take a code at https://github.com/cennznet/plug-blockchain (our fork of Substrate).
A few more traits
https://github.com/cennznet/plug-blockchain/blob/67ed189597ecbd50cf080fdf3584059fcbdc98fc/srml/support/src/additional_traits.rs
Fees module and decl_fee to declare a fee enum
https://github.com/cennznet/plug-blockchain/blob/67ed189597ecbd50cf080fdf3584059fcbdc98fc/prml/fees/src/lib.rs#L46-L53
Another usage of decl_fee
https://github.com/cennznet/plug-blockchain/blob/67ed189597ecbd50cf080fdf3584059fcbdc98fc/prml/generic-asset/src/lib.rs#L213-L218
Implementation of the traits, which needs refactor so the calculation part are in each individual module instead of a single file.
https://github.com/cennznet/plug-blockchain/blob/67ed189597ecbd50cf080fdf3584059fcbdc98fc/srml/support/src/additional_traits.rs
Our implementation definitely needs a lot of improvements, but I believe it is a good start.

I'm reading the doc:

A transaction fee includes a base fee and a variable fee that is proportional to the number of bytes to be put on chain. That is,
f(tx):=fbase+size(tx)⋅fbyte,
for some parameters fbaseand fbyte and where size(tx) is the number of bytes of transaction. The base fee will depend on the type of transaction, while the per-byte fee may be the same for all types.

what is a type here ? should contract_put_code_extrinsic be its own type for instance ?
considering this statement it seems, maybe we should allow modules to defines there own types (like we do for origin) and they must specify for each call a type. (with an attribute maybe or somewhere else)

The derived formula for v seems to be valid, but it is a very loose bound. From here, we have
\frac{f_{final byte} - f_{initial byte}}{f_{initial byte}} ~= vk(s_avg - s*) \leq vk(1-s*) \leq p

This makes sense because s_avg \leq 1, but we use it to derive the bound v \leq \frac{p}{k(1-s*)} and while that is correct, it is not as strict a bound as if we replace 1 with s_avg => our new, more strict bound is v \leq \frac{p}{k(s_avg - s*)}.
My only concern is that now v can be negative; specifically v is negative if the average saturation is below the target saturation. This still doesn't mean the fee multiplier itself is ever negative. For clarification, the actual fee multiplier is NOT v, it is
1 + v(s-s*) + v^{2}(s-s*)^{2}/2

where s* is the target saturation and s is the current block's saturation

closed via #2854


Can MPS be used to infer scores on a single picture? Can you provide relevant codes?

示例代码是对两张图片求更好的一张，能用MPS对单张图片推理得分吗？能否提供相关代码。

Certainly, you can use infer_one_sample function, which can be found in eval_overall_mps_on_hpdv2.py or eval_overall_mps_on_imagereward.py.

I see,thanks!


ninja: build stopped: subcommand failed.

Hi,
Thanks so much for releasing your work!
I encountered the bug "ninja: build stopped: subcommand failed." as following the instruction https://github.com/thu-ml/prolificdreamer?tab=readme-ov-file#training , with all dependancies and packages https://github.com/thu-ml/prolificdreamer/blob/main/requirements.txt installed.
Much appreciated if having your solutions.

I will further check my environment, thx!

hi
did you find the solution to that error ?


Add automatic Docker build

If either #27 or #66 are merged, please setup an automatic "Docker build" on hub.docker.com. BTW: #66 assumes, that your account on hub.docker.com is "radhifadlillah" - lower case is required by docker.

Hi @maxmeyer thanks for the PR.
I've never use Docker before, that's why I've put off merging those PRs while I learning at least the basic of Docker. It should be merged soon though.

@RadhiFadlillah Thanks for the feedback. Feel free to ask if something is unclear or you get stuck.

Done by PR #66.


Create and update user profile

Updated Devise forms to include information from our schema. Still trying to figure out why the frontend looks different with seeded data and data submitted through the form. I've also updated the edit form so that we can change profiles if we need to - tested it on my end and it worked.

Looks good!


Docs: invalid sample with outdated parameters

https://testng.org/doc/documentation-main.html#running-testng
There is a note in the end of section 4

Important: The command line flags that specify what tests should be run will be ignored if you also specify a testng.xml file, with the exception of -includedgroups and -excludedgroups, which will override all the group inclusions/exclusions found in testng.xml.

-includedgroups is supposed to be -groups
It looks like there is an extra 'd' in -excludedgroups. The valid name is -excludegroups. Renamed by accident? diff

I will like to work on this


[BEAM-13874][Playground] Tag multifile examples

[BEAM-13874]
Tag multifile examples:

WindowedWordCount.java
TfIdf.java
TopWikipediaSessions.java
TrafficMaxLaneFlow.java
TrafficRoutes.java
python kata ReadFromText
user_score.py

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @KhaninArtur @ilya-kozyrev

R: @pabloem

LGTM


Ensure license information present in built jar

White working on this issue I noticed that the values in the Testify manifest all refer to Apache/Yoko. I've updated the build.gradle to add what I believe are better values, but it seems more difficult to remove the references to Apache added in the base build.gradle. Below is the current and new manifest contents.
New:


Roll back datapipes to before major changes

Pull Request
Description
Model has been behaving strangely since most recent build. Roll back ocf_datapipes to before major changes in that repo. At least this will rule-out whether the decreased model performance comes from that.

Realised that the previous build was using ocf_datapipes v1.2.44 anyway due to requirements stemming from the pvnet repo


Generate dart classes based on schema definitions

I am wondering if Artemis is capable of generating types based on schema definitions? I cannot seem to find any documentation or related questions on this.
for example:
Given the following piece of scheme:
type Person {
    age: Int
    name: String!
}

Can it be converted to sound null safe dart class like this:
class Person{
  int? age;
  String name;

  Person({this.age, required this.name});

  Person.fromJson(Map<String, dynamic> json){
    age = json['age'];
    name = json['name'];
  }

  Map toJson(){
    Map _data = {};
    _data['age'] = age;
    _data['name'] = name;
    return _data;
  }
}

What is the reason to do that conversion?
You could query different subset of fields so Artemis generates types based on what you are actually query and not basing on the fields that schema allows you to query.
artemis supports only generation based on queries/mutations

@1awaleed any feedback?

I am wondering if Artemis is capable of generating types based on schema definitions? I cannot seem to find any documentation or related questions on this.
for example:
Given the following piece of scheme:
type Person {
    age: Int
    name: String!
}

Can it be converted to sound null safe dart class like this:
class Person{
  int? age;
  String name;

  Person({this.age, required this.name});

  Person.fromJson(Map<String, dynamic> json){
    age = json['age'];
    name = json['name'];
  }

  Map toJson(){
    Map _data = {};
    _data['age'] = age;
    _data['name'] = name;
    return _data;
  }
}

This is a bit of an anti-pattern in GraphQL, as one of the core assumptions/tenets of GraphQL is to allow nested join/fetch and (sub)selections of data types to reduce overfetch or multiple trips. If you have a query that queries Person with a selection set that is all the fields, you'll essentially get "Person" as a class, but that's a bit of a hack, the actual ethos of GraphQL and adopting it into your design/use is probably the "right" solution.

Closing this issue as far as Artemis generates types only basing on queries/mutations/subscriptions.


Input not receiving styles

I have made the setup as said in the docs, unfortunately something went wrong and some components are not receiving the styles.

Hey @Visnicio
Try adding the Bladewind path to your tailwind config js file for compilation
// your-project/tailwind.config.js
module.exports = {
...
  content: [
      ...
      "./vendor/mkocansey/bladewind/resources/views/**/*.blade.php",
  ],

If this does not work, you may just need to move the tailwind import before the Bladewind import since that works in your case.

Hey @mkocansey, thanks for the help
Yeah, I already looked at the docs at thought that putting the bladewind files on my tailwind config would work... but it doesn't :(
Also. Moving my tailwind import before bladewind import breaks my responsiveness, but I'm not quite sure why
Here's a video to show that, hope this helps to identify the problem
https://github.com/user-attachments/assets/9bad248d-5113-4dd6-b034-8a0b162514da
Could be cause i'm using vite for tailwind and asset loading for baldewind?

@Visnicio Using Vite is not the problem. I use BladewindUI in projects that use Vite for compiling assets. Let me try replicating how your assets are arranged and see if I get any issues.

it seems a tailwind problem, I'm trying to tweak it with tailwind preflight, but no success until now
https://stackoverflow.com/questions/71783177/remove-specific-style-from-tailwind-base

@Visnicio I am glad you managed to nail this down. Did turning off preflight work for you?

Unfortunately no and I dont know why :(

Is it only the input component that is not receiving styles? Do the other bladewindUI components' styles work as expected?
Also.. thanks for the other alert.

Do you have a temporal place you can host this for us to possibly debug?

Also.. thanks for the other alert.
Don't mention it, its not much for now but hope this helps :)

Do you have a temporal place you can host this for us to possibly debug?
yeah, I have an staging server for the app, I will update it

you can find it in hml.gametrampo.com.br

@Visnicio I played around with the page on the url you shared and noticed tailwind is overwriting the input styles in its base.
Can you comment out this line from your app.scss and let's see if everything works as expected?
/*@tailwind base;*/ /* this line is now commented out */

@tailwind components;

@tailwind utilities;

Hey @mkocansey, thanks for the support!
It worked as intended, I will keep it commented for now since it looks like I use more of the utilities than the base :)
I will close the issue, thanks again and keep the awesome work!

Awesome. Glad I could help.


Setting custom MLLP ack using HL7 ack example

The "HL7 Acknowledgement expression" example can make it look like this negative ack  will be used for MLLP to send back.
I had a difficult finding a way to set a custom ack without going low-level into HL7 itself. This example demonstrates you can reuse what Camel already provides but have to set it explicitly.

Thanks.


Keep version upgrade test working past v2

Description
This change locks the version update to a known good 2.1.0-snapshot so no matter the future version numbers being used, this test scenario will still function.
When the version update is applied, it expects the build system for the future version to exist, otherwise gradle properties will fail to load.  This was causing issues when v3 updates were expecting v4 versions of opensearch build tools.
Issues Resolved

Related https://github.com/opensearch-project/security/pull/2051

Testing
Tested locally, and CI will verify
Check List

[ ] ~New functionality includes testing~
[ ] ~New functionality has been documented~
[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2106 (d4350cd) into main (1fc02ad) will decrease coverage by 0.02%.
The diff coverage is n/a.

:exclamation: Current head d4350cd differs from pull request most recent head 838a350. Consider uploading reports for the commit 838a350 to get more accurate results

@@             Coverage Diff              @@
##               main    #2106      +/-   ##
============================================
- Coverage     60.97%   60.95%   -0.03%
  Complexity     3226     3226
============================================
  Files           256      256
  Lines         18073    18072       -1
  Branches       3224     3224
============================================
- Hits          11020    11015       -5
- Misses         5475     5480       +5
+ Partials       1578     1577       -1

Impacted Files
Coverage Δ

...org/opensearch/security/rest/TenantInfoAction.java
77.94% <0.00%> (-10.30%)
:arrow_down:

...ensearch/security/compliance/ComplianceConfig.java
82.63% <0.00%> (-0.70%)
:arrow_down:

...ecurity/ssl/rest/SecuritySSLReloadCertsAction.java
84.78% <0.00%> (-0.33%)
:arrow_down:

...a/org/opensearch/security/tools/SecurityAdmin.java
35.75% <0.00%> (-0.25%)
:arrow_down:

...earch/security/ssl/util/SSLConnectionTestUtil.java
95.45% <0.00%> (+2.27%)
:arrow_up:

...urity/ssl/transport/SecuritySSLNettyTransport.java
66.66% <0.00%> (+4.30%)
:arrow_up:

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


one train question

here , SSR-NET use MAE to be loss function, I try to write code using tensorflow ,
and the error is like that:
ValueError: No gradients provided for any variable, check your graph for ops that do not support gradients,
and the loss code like that:
logits_loss_age = tf.reduce_mean(tf.losses.absolute_difference(tf.cast(self.classifier_logits,tf.int32),age_labels))
optimizer = tf.train.AdamOptimizer(learning_rate,epsilon=1e-4)
train_op = optimizer.minimize(all_loss)
how can I resolve this quesiton?

Hello @alexliyang,
https://github.com/tensorflow/tensorflow/issues/1511#issuecomment-247719542
Please check on this link. It seems like tf.cast does not provide gradient.

@shamangary
thanks a lot , train is starting  :)

@shamangary  can I use this net to train age and gender at the same time? and if gender has 3 classes ,ie (0: other, 1: female, 2: male) ,  in merge_age function V should be set V=1 or V=3?


ARROW-2102: [C++] Implement take kernel functions - primitive value type

Currently the take kernel supports:

Primitive value types (NA, Boolean and numeric types)
Single numeric index
Multiple flat indices in an array

The kernel does not yet handle special indices including negative integers or out-of-bound indices. ARROW-2105 is created for such feature. Parent ticket is at Arrow-772.

@wesm @xuepanchen

@alphalfalfa thank you for starting on these kernels; I'm sorry it's taken me a little while to get down to review but I intend to do so this week

As this PR is over a year old I think it probably needs a fresh start


Migrate from travis to Prow

To align with the k8s community and also run e2e test efficiently , let's migrate from travis to Prow
pending works:

[x] Add lint & unit test into upstream prow
[ ] mount coveralls token & dockerhub/quay token into upstream prow
[x] do coverage analysis on prow
[ ] do release on prow via post-submit jobs
[ ] Add e2e test cases into upstream prow

What is Prow?

What is Prow?

Is an centralized CI/CD tool for kubernetes projects(https://github.com/kubernetes/test-infra/tree/master/prow). (drop-in replacement of travis/jinkens)
With it, we can added integration tests for ALB ingress controller for each PR or run periodically.


drivers: nrf: Fix UARTE interrupt driven operation.

Bad order of interrupt calls made it unable to transmitt data
using interrupt driven API.
Signed-off-by: Mieszko Mierunski<EMAIL_ADDRESS>

This can be closed now I think since it's merged upstream?


Feature Request: Show line number on error of model validation

Currently I tried to use threagile and created a model form the stub. When I try to execute threagile on that model I get the following error:
Parsing model: /app/work/threagile-model.yaml 2020/11/13 09:59:42 Unknown 'machine' of technical asset:  Unknown 'machine' of technical asset:
I have a few technical assets in my model, so it would be handy to get the line number of the model file in the error message.

Yep, absolutely!
Taking more detailed model validation/error handling into account is very important. Delivering more detailed error handling in terms of line numbers and/or asset names is in the queue. With this ticket we now have a nice way to track it.
Keep posting more feature requests, as this seeds the most pressing issues that should be addressed! ;)

Now the response returns more detailed content of where inside the model the problem was detected.


:gift: add parent_model and child_model to iiif_print_pending_relationships

related to

https://github.com/scientist-softserv/adventist-dl/pull/656

TODO: Add file set id to pending table


Seasonal Averaging and xarray

The current seasonal average supports a wiede variety of data in the pandas format, and all of it gets aligned as needed. With the basics of xarray in the xarray-init branch, support for this data format needs to be added to seasonal averaging.

Linking to #159.  Panel deprecation warning suggests switching to xarray.  Perhaps there is a unified way of handling this?

That is a possibility, hence the push to get xarray as a data format.
I’m still not familiar enough with using xarray to have a good feel if things will work out.
So far, xarray isn’t as easy to use.
On Feb 22, 2019, at 11:40 PM, Jeff Klenzing <notifications<EMAIL_ADDRESS>wrote:
Linking to #159https://github.com/rstoneback/pysat/issues/159. Panel deprecation warning suggests switching to xarray. Perhaps there is a unified way of handling this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rstoneback/pysat/issues/47#issuecomment-466619397, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADbdeR2Ysgb6ttfRO8MdE5Pn7vhHXgJXks5vQNRngaJpZM4VGLJs.

Migrating to pysat/pysatSeasons#3 and closing here.


Gitea does not work after docker restart

Gitea version (or commit ref): 1.7
Git version: 2.18.1
Operating system:
host: Linux u-svr 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
docker: Linux 9766fbc2b907 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 Linux
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

docker logs gitea:
s6-supervise openssh: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise syslogd: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise gitea: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise openssh: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise syslogd: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise gitea: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise syslogd: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise openssh: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise gitea: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory
s6-supervise syslogd: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise openssh: warning: unable to spawn ./run - waiting 10 seconds
s6-supervise (child): fatal: unable to exec run: No such file or directory

Description
Everytime after my computer reboot, the docker can restart, but the website is not visitable. I try to input docker top gitea, the output is this:
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                3607                3589                0                   09:36               ?                   00:00:00            /bin/s6-svscan /etc/s6
root                3646                3607                0                   09:36               ?                   00:00:00            s6-supervise openssh
root                3647                3607                0                   09:36               ?                   00:00:00            s6-supervise syslogd
root                3648                3607                0                   09:36               ?                   00:00:00            s6-supervise gitea

So the Gitea process is not running.
The container was created by this comman:
docker run -d --name=gitea -p 10022:22 -p 10080:3000 -v /var/lib/gitea:/data gitea/gitea:1.7
docker update --restart=alwary gitea

I don't know what caused this problem, any help is appreciated.

I'd suggest attaching to container using sh/bash and manually starting gitea command, maybe you can see the error there.

I have the same error.
Just find a tutorial, complete all steps, get gitea runnig. Then stop doker and later cound't get gitea online. Please, help.

Logs during setup
gitea-setup.log
docker-stdout-setup.log
Then restarted the Gitea container and then not possible to access http://myhost:3333/
gitea-after-restart.log
docker-stdout-after-restart.log
Configuration file:
app.ini.txt

I'd suggest attaching to container using sh/bash and manually starting gitea command, maybe you can see the error there.

I attached to the container and started gitea manually, gitea worked fine. I didn't see any error there.

It is started and if I try to kill the process it starts again
bash-5.0$ ps -A
PID   USER     TIME  COMMAND
    1 root      0:00 /bin/s6-svscan /etc/s6
   12 root      0:00 s6-supervise gitea
   13 root      0:00 s6-supervise openssh
   14 root      0:00 /usr/sbin/sshd -D -e
   54 root      0:00 bash
   61 root      0:00 bash
  144 root      0:00 bash
  164 git       0:00 bash
  262 git       0:00 /app/gitea/gitea web
  298 git       0:00 ps -A
bash-5.0$ kill -9 262
bash-5.0$ ps -A
PID   USER     TIME  COMMAND
    1 root      0:00 /bin/s6-svscan /etc/s6
   12 root      0:00 s6-supervise gitea
   13 root      0:00 s6-supervise openssh
   14 root      0:00 /usr/sbin/sshd -D -e
   54 root      0:00 bash
   61 root      0:00 bash
  144 root      0:00 bash
  164 git       0:00 bash
  300 git       0:00 /app/gitea/gitea web
  335 git       0:00 ps -A

Found the issue for me at least.
During the setup I filled in HTTP port as the one exposed by Docker but Gitea uses that internally the the correct config is in my case:
# Internal Gitea Web port
HTTP_PORT        = 3000
# Exposed URL/Port
ROOT_URL         = http://thor:3333/

I'd suggest attaching to container using sh/bash and manually starting gitea command, maybe you can see the error there.

I attached to the container and started gitea manually, gitea worked fine. I didn't see any error there.
Please, add more details.. I don't understand what is "I attached to the container"..

I'd suggest attaching to container using sh/bash and manually starting gitea command, maybe you can see the error there.

I attached to the container and started gitea manually, gitea worked fine. I didn't see any error there.
Please, add more details.. I don't understand what is "I attached to the container"..

Run command like docker run -it gitea:gitea --entrypoint /bin/bash to start container without starting gitea and log into the console. Then navigate to gitea executable path and try to execute it. Then check your results.

Another easy alternative is to run a Portainer container which can administrer containers and provides a  web based shell to containers

just endited entrypoint:
/usr/sbin/sshd -D -e &
su git -c gitea web
works fine for me, but probably not the best way :sweat:

Same problem here.
Followed tutorial on Gitea. When my container shutdown and was restarted, Gitea was not starting up. Upon closer inspection I noticed an error message as others have seen.
Gitea version 1.11.0+dev-218-g4b3fc7493
Docker version 19.03.4, build 9013bf583a
Linux 3.10.0-514.el7.x86_64
Docker compose
version: "2"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:latest
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"

Error
server_1  | s6-supervise (child): fatal: unable to exec run: No such file or directory
server_1  | s6-supervise openssh: warning: unable to spawn ./run - waiting 10 seconds
server_1  | s6-supervise (child): fatal: unable to exec run: No such file or directory
server_1  | s6-supervise gitea: warning: unable to spawn ./run - waiting 10 seconds
server_1  | s6-supervise (child): fatal: unable to exec run: No such file or directory
server_1  | s6-supervise openssh: warning: unable to spawn ./run - waiting 10 seconds
server_1  | s6-supervise (child): fatal: unable to exec run: No such file or directory

I encountered this problem and figured it out.
The  port of Gitea I used is 8081:3000,
there is a Initial Configuration setting when first login

If set Gitea HTTP Listen Port to 8081, it will not be able to connect to http:// gitea-server:8081 after docker restarts.
The solution is to set Gitea HTTP Listen Port as the internal port of the container, usually it would be 3000.

Closing as configuration issue


adding date of parsing to cleaner module

A simple method that adds the date of parsing at the time of the cleaner step running as a string with this format: 2021-01-01.

This addresses ticket #92


Unable to connect properly

I've adapted the example server to the following code; But i'm unable to connect to it;
Kristall browser gives; 'The server timed out while answering your response.' and the console doesn't print out the request log, so it doesn't reach that code.
Now i'm running this under WSL1, which exposes all ports natively to <IP_ADDRESS>, so it should be accessable (other services are).
I've found netstat to mark the port as listening tho;
/mnt/c/Users/Martijn# /mnt/c/Windows/System32/netstat.exe -an | grep -i "listen" | grep -v "[::]" | grep 1965
TCP    <IP_ADDRESS>:1965           <IP_ADDRESS>:0              LISTENING
Do you see anything that jumps out?
'use strict'

const createCert = require( 'create-cert' );
const gemini = require( '@derhuerst/gemini' );

const onRequest = ( req, res ) => {
	console.log( 'request', req.url );

	if ( req.clientFingerprint ) {
		console.log( ' -> client fingerprint: ', req.clientFingerprint );
	}

	res.write( 'Hello world' );
	res.end( '!' );
}

const onError = ( fehler ) => {
	console.error( fehler );
	process.exit( 1 );
}

createCert( 'farmstead.test' ).then( ( keys ) => {

	const gServer = gemini.createServer( {
		tlsOpt: keys
	}, onRequest );

	gServer.on( 'error', onError );
	gServer.listen( 1965, ( fehler ) => {
		if ( fehler ) {
			return onError( fehler );
		}

		console.info( 'Started Farmsteading' );
	});
} );

Just to make sure, this is not due to the self-signed certificate that TLS clients usually don't trust by default? As you can see in examples/client.js, in Node.js one has to pass rejectUnauthorized: false.

I've now tried the client.js with that option, and av98 inside Windows and the same WSL host, neither of them seem to be able to connect. av98 immediately closes the connection with "ERROR: Errno[0] Error"

Huh, that's not a very helpful error message either.
I can imagine that the TLS handshake because this package uses gemini as ALPN ID, whereas other clients & servers might use a different one or none at all. Can you try without this line?
https://github.com/derhuerst/gemini/blob/5a23ee66f3f0018187a898b3ae4bd609ff9d4e3e/connect.js#L29

That seems to connect to my Hello World! I can work with that for now, but will that break other things?

FYI I have asked on the mailing list if we should adopt ALPN or drop it.

I don't know how to reply to the ALPN thread from a mailman digest email, so I'll just comment here:

It seems like a hack that just exists so that HTTP2 can work efficiently while still keeping the old http:// scheme.

Agreed. The client already knows that it has accessed a gemini:// URI. The server knows what the client is asking for.

This is only true if you assume that there's only one version of one protocol exposed per port.

From what I understand, ALPN was invented (by Google) pretty much just for clients and servers to decide early whether to user HTTP2 or not.

Although it was invented for that reason, it seems to provide more value than just telling apart HTTP1 & HTTP2: To solve the problem of protocol negotiation properly, at TLS level (which acts as the transport layer in this case). Not sure if they are being used, but there are other ALPN IDs registered than for HTTP (FTP, MQTT, IMAP, POP3, STUN, TURN).

@sexybiggetje PR welcome that comments out the gemini ALPN ID and adds a comment referring to this Issue.

Published as<EMAIL_ADDRESS>🎉


Py3 cool checksum

the cool_checksum feature was not python 3 compatible.
It is not in the critical path, so I added an isinstance check for handling the py3 case.

Looks good to me, and seems to fix the tests for python 3.5.
Let's  merge this, all other PRs need this to become green again.


Standardize namespaces, file paths, and their correspondences

Right now the namespace vs. file path relationships for drivers and HAL modules are not totally consistent/logical. We should move all driver modules into drivers, and we should establish a 1-to-1 correspondence between namespace paths and file paths everywhere. For example, the STM32 HAL modules are currently in files like Pufferfish/HAL/STM32/HALPWM.h and classes like Pufferfish::HAL::HALPWM; they should instead be in files like Pufferfish/HAL/STM32/PWM.h and classes like Pufferfish::HAL::STM32::PWM.

#308 is a subset of this issue; for this issue we should also make sure that namespaces and file paths are logical for all drivers, not just for the HAL.

An exception to this is that it may be acceptable to define inner namespaces inside files to help organize variables, e.g. as in https://github.com/pez-globo/pufferfish-software/blob/27d44e4bc473fc011b55cfa1061bdc272f19139c/firmware/ventilator-controller-stm32/Core/Inc/Pufferfish/Driver/Serial/FDO2/Commands.h


[Feature request] Expand any Region in Codenav Panel on Single\Double Click

It's rather boaring to aim and click on [+] icon every time I want to expand a region on the Code Nav panel.
It would be great If I can just double click on the region header to Expand it.
Or it can be implemented as the Option - what to do on Single/Double Click on the region: "Go To Definition" or "Expand the region".

Thanks for the suggestion! Grab the new release 🚀


the lack of adapter_model.bin and adapter_config.json after fine-tuning

System Info
peft                      0.13.3.dev0
Who can help?
No response
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder
[X] My own task or dataset (give details below)

Reproduction
after using model.save_pretrained(script_args.output_dir), i didnt get adapter_model.bin and adapter_config.json

then i check this /peft/mixed_model.py,save_pretrained() is as below without implementation.

Expected behavior
i want the final adapter_model.bin and adapter_config.json after ft.

@TracyGuo2001 what is the peft method you are using? I think not all methods will give an adapter file

I use LoRA. Here  is the code. Thank you very much.
peft_config = LoraConfig(
task_type=TaskType.CAUSAL_LM,
target_modules=script_args.target_modules.split(','),
inference_mode=False,
r=script_args.lora_rank,
lora_alpha=script_args.lora_alpha,
lora_dropout=script_args.lora_dropout,
init_lora_weights=script_args.init_lora_weights,
)
model = get_peft_model(model, peft_config)
......(train)
model.save_pretrained(script_args.output_dir)

can you try this ? @TracyGuo2001
peft_config = LoraConfig(
task_type=TaskType.CAUSAL_LM,
target_modules=script_args.target_modules.split(','),
inference_mode=False,
r=script_args.lora_rank,
lora_alpha=script_args.lora_alpha,
lora_dropout=script_args.lora_dropout,
init_lora_weights=script_args.init_lora_weights,
)
model = AutoModelForCausalLM.from_pretrained(model_id)
model.add_adapter(peft_config)
[train].........

@TracyGuo2001 are you sure that model is not overwritten between the call to get_peft_model and model.save_pretrained? It would be helpful to have the output of print(model)  and possibly the code so that we can take a look.

can you try this ? @TracyGuo2001
peft_config = LoraConfig(
task_type=TaskType.CAUSAL_LM,
target_modules=script_args.target_modules.split(','),
inference_mode=False,
r=script_args.lora_rank,
lora_alpha=script_args.lora_alpha,
lora_dropout=script_args.lora_dropout,
init_lora_weights=script_args.init_lora_weights,
)
model = AutoModelForCausalLM.from_pretrained(model_id)
model.add_adapter(peft_config)
[train].........

I can get the model from pretrained, but got an ERROR when 'model.add_adapter(peft_config)'.AttributeError: can't set attribute.How could this happen? It's so strange.
but after model = get_peft_model(model, peft_config), i can get a model with LoRA,this is the the output of print(model).
'''
PeftModelForCausalLM(
(base_model): LoraModel(
(model): LlamaForCausalLM(
(model): LlamaModel(
(embed_tokens): Embedding(32000, 4096, padding_idx=0)
(layers): ModuleList(
(0-31): 32 x LlamaDecoderLayer(
(self_attn): LlamaAttention(
(q_proj): lora.Linear(
(base_layer): Linear(in_features=4096, out_features=4096, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=4096, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=4096, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(k_proj): lora.Linear(
(base_layer): Linear(in_features=4096, out_features=4096, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=4096, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=4096, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(v_proj): lora.Linear(
(base_layer): Linear(in_features=4096, out_features=4096, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=4096, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=4096, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(o_proj): lora.Linear(
(base_layer): Linear(in_features=4096, out_features=4096, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=4096, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=4096, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(rotary_emb): LlamaRotaryEmbedding()
)
(mlp): LlamaMLP(
(gate_proj): lora.Linear(
(base_layer): Linear(in_features=4096, out_features=11008, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=4096, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=11008, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(up_proj): lora.Linear(
(base_layer): Linear(in_features=4096, out_features=11008, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=4096, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=11008, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(down_proj): lora.Linear(
(base_layer): Linear(in_features=11008, out_features=4096, bias=False)
(lora_dropout): ModuleDict(
(default): Identity()
)
(lora_A): ModuleDict(
(default): Linear(in_features=11008, out_features=128, bias=False)
)
(lora_B): ModuleDict(
(default): Linear(in_features=128, out_features=4096, bias=False)
)
(lora_embedding_A): ParameterDict()
(lora_embedding_B): ParameterDict()
(lora_magnitude_vector): ModuleDict()
)
(act_fn): SiLUActivation()
)
(input_layernorm): LlamaRMSNorm()
(post_attention_layernorm): LlamaRMSNorm()
)
)
(norm): LlamaRMSNorm()
)
(lm_head): Linear(in_features=4096, out_features=32000, bias=False)
)
)
)
'''

Hi @TracyGuo2001 sorry my bad i forgot to mention that you first need to change into a  peft model, so try this
peft_config = LoraConfig(
task_type=TaskType.CAUSAL_LM,
target_modules=script_args.target_modules.split(','),
inference_mode=False,
r=script_args.lora_rank,
lora_alpha=script_args.lora_alpha,
lora_dropout=script_args.lora_dropout,
init_lora_weights=script_args.init_lora_weights,
)
model = AutoModelForCausalLM.from_pretrained(model_id)
model = get_peft_model(model, peft_config)
model.add_adapter(peft_config = peft_config, adapter_name="xxx")
[train].........

lmk if this works

Hi @TracyGuo2001 sorry my bad i forgot to mention that you first need to change into a peft model, so try this
peft_config = LoraConfig(
task_type=TaskType.CAUSAL_LM,
target_modules=script_args.target_modules.split(','),
inference_mode=False,
r=script_args.lora_rank,
lora_alpha=script_args.lora_alpha,
lora_dropout=script_args.lora_dropout,
init_lora_weights=script_args.init_lora_weights,
)
model = AutoModelForCausalLM.from_pretrained(model_id)
model = get_peft_model(model, peft_config)
model.add_adapter(peft_config = peft_config, adapter_name="xxx")
[train].........

lmk if this works
I tried as below.

model = transformers.AutoModelForCausalLM.from_pretrained(
        script_args.model_name_or_path,
        ………………
    )
peft_config = LoraConfig(
                task_type=TaskType.CAUSAL_LM,
                target_modules=script_args.target_modules.split(','),
                inference_mode=False,
                r=script_args.lora_rank,
                lora_alpha=script_args.lora_alpha,
                lora_dropout=script_args.lora_dropout,
                init_lora_weights=script_args.init_lora_weights,
            )
model = get_peft_model(model, peft_config)
model.add_adapter(peft_config = peft_config, adapter_name="default")
print(model)

The code ran without any issues, but the generated file still does not contain the adapter_config.json and  adapter_model.bin. these two only exists in checkpoints folders.

if you want to save them you can use this
model.save_pretrained(save_dir)

and then load back using
model = AutoModelForCausalLM.from_pretrained(save_dir)

if you want to save them you can use this
model.save_pretrained(save_dir)

and then load back using
model = AutoModelForCausalLM.from_pretrained(save_dir)

I apologize if I wasn't clear enough. I tried the suggested method, but after fine-tuning, those two files are still missing. As shown in the previous image, the output/TEST directory does not contain those files. Below is my save code, and theifcondition evaluates to True, so it does enter that block
   trainer.train(resume_from_checkpoint=resume_from_checkpoint_dir)     trainer.save_state()     if script_args.use_lora and script_args.merge:         model = model.merge_and_unload()         model.save_pretrained(script_args.output_dir)         tokenizer.save_pretrained(script_args.output_dir)

model = get_peft_model(model, peft_config)
model.add_adapter(peft_config = peft_config, adapter_name="default")

Note that the second line is unnecessary, get_peft_model already creates a default adapter for you, add_adapter is only needed if you want more than 1 adapter.

Below is my save code, and theifcondition evaluates to True, so it does enter that block
trainer.train(resume_from_checkpoint=resume_from_checkpoint_dir)
trainer.save_state()
if script_args.use_lora and script_args.merge:
    model = model.merge_and_unload()
    model.save_pretrained(script_args.output_dir)
    tokenizer.save_pretrained(script_args.output_dir)

The issue is the model = model.merge_and_unload() line. When you call this, you're asking PEFT to merge the adapter weights into the base weights and then return the merged model (not the PEFT model!). Therefore, this new model variable is a normal transformers model and when you call save_pretrained on that, it will save the full weights. If you want to save just the adapter weights and the adapter config, you need to call save_pretrained before calling merge_and_unload.
In fact, you most likely don't need to call merge_and_unload at all in this context. The main use case for this is during inference, when you want to avoid the overhead of the adapter when it comes to inference time.

i think this is expected right? you are training the adapter for N steps, so you will have them in the checkpoints folders.
What are you trying to do next?

model = get_peft_model(model, peft_config)
model.add_adapter(peft_config = peft_config, adapter_name="default")

Note that the second line is unnecessary, get_peft_model already creates a default adapter for you, add_adapter is only needed if you want more than 1 adapter.

Below is my save code, and theifcondition evaluates to True, so it does enter that block
trainer.train(resume_from_checkpoint=resume_from_checkpoint_dir)
trainer.save_state()
if script_args.use_lora and script_args.merge:
    model = model.merge_and_unload()
    model.save_pretrained(script_args.output_dir)
    tokenizer.save_pretrained(script_args.output_dir)

The issue is the model = model.merge_and_unload() line. When you call this, you're asking PEFT to merge the adapter weights into the base weights and then return the merged model (not the PEFT model!). Therefore, this new model variable is a normal transformers model and when you call save_pretrained on that, it will save the full weights. If you want to save just the adapter weights and the adapter config, you need to call save_pretrained before calling merge_and_unload.
In fact, you most likely don't need to call merge_and_unload at all in this context. The main use case for this is during inference, when you want to avoid the overhead of the adapter when it comes to inference time.

I figured it out and fixed it! Thanks! Thank you very much!

Great that you could solve the issue. I assume it was indeed caused by the merge_and_unload call? I'll close the issue then, feel free to re-open if you have more questions.

Great that you could solve the issue. I assume it was indeed caused by the merge_and_unload call? I'll close the issue then, feel free to re-open if you have more questions.

YES thanks a lot!


Merkle Blocks Not Downloading

This issue was original filed in the openbazaar-go repo. Moving here, as @cpacia felt it was more appropriate.

I'm using the latest version of the master branch of the go server, using a BCH wallet, and I'm still seeing this issue. What's interesting is that the Merkle block error appears to have fixed itself, but the transactions in the UI still appear to be 'stuck'.
This issue appears to be preventing my store from conducting sales. From experience, I've learned that I can reboot my server to fix this problem. But that's not a very good solution to permanently connected servers.
Here is the tail end of the bitcoin.log:
trout@p2pvps:~/.p2pvps/openbazaar/logs$ tail --lines=100 bitcoin.log
15:53:49.985 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:50.249 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:50.279 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:50.442 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:50.597 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:50.719 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:52.525 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
15:53:52.771 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000009379c9007b9e886e8fa544edc2553b1d690915e1e9517b does not extend any known headers
16:03:06.470 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:06.492 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:06.542 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:06.704 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:06.968 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:07.240 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:07.475 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:08.351 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:08.813 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:09.855 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:12.263 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:03:13.403 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003000fe28e01dd19ef627b54e81ca2b3347ff3fef583523b does not extend any known headers
16:13:27.392 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:27.393 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:27.504 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:27.661 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:27.820 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:28.083 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:28.341 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:28.356 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:28.380 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:28.642 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:29.166 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:13:30.559 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>000000020350d8678953b63f40c65796ec310584194f00b3f8d1f5 does not extend any known headers
16:16:12.565 [onTx] [DEBUG] Tx 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a from Peer12 had no hits, filter false positive.
16:16:13.782 [onTx] [DEBUG] Tx 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a from Peer9 had no hits, filter false positive.
16:16:13.792 [onTx] [DEBUG] Tx 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a from Peer8 had no hits, filter false positive.
16:16:15.923 [onTx] [DEBUG] Tx 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a from Peer6 had no hits, filter false positive.
16:16:16.502 [onTx] [DEBUG] Tx 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a from Peer7 had no hits, filter false positive.
16:16:20.096 [onTx] [DEBUG] Tx 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a from Peer13 had no hits, filter false positive.
16:16:20.120 [updateFilterAndSend] [DEBUG] Sent filter to Peer13
16:16:20.120 [fPositiveHandler] [DEBUG] Reset 8 false positives for Peer13
16:22:49.121 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:49.131 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:49.156 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:49.157 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:49.164 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:49.202 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:49.411 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:49.767 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:49.818 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:49.827 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:49.924 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:49.940 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:49.993 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:50.024 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:50.221 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:50.221 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:50.357 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:50.533 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:50.845 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:50.854 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:51.366 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:51.371 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:22:52.377 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>00000003be0beecc4a72273c1a97e1d1b7fdd2fe5c831843b33296 does not extend any known headers
16:22:52.936 [onTx] [WARNING] Received unqued tx id: 591b3aae6afc2dfa4d22d1d197a3cb05702fd15ef9b89ab3bad817000318b73a
16:31:44.929 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:44.969 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.049 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.288 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.436 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.625 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.802 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.882 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:45.889 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:46.106 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:46.240 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:31:47.964 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000258cb1812769dc26514516c9eba4a7cf0b94466b3031c2f does not extend any known headers
16:39:43.289 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:43.342 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:43.358 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:43.592 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:43.892 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:44.085 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:44.242 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:44.302 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:44.307 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:44.785 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:44.837 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:39:46.099 [onMerkleBlock] [WARNING] Header<PHONE_NUMBER>0000000240812f55fc6b92377b078cf9796eaa365a96632a3ebea0 does not extend any known headers
16:43:18.696 [updateFilterAndSend] [DEBUG] Sent filter to Peer12
16:43:18.696 [onTx] [INFO] Tx 09f34b9afbc4f093ee7273bfc649b712bc2916f227c16c3f3cdf4f448a620071 from Peer12 ingested at height 0
16:43:20.068 [updateFilterAndSend] [DEBUG] Sent filter to Peer8
16:43:20.068 [onTx] [INFO] Tx 09f34b9afbc4f093ee7273bfc649b712bc2916f227c16c3f3cdf4f448a620071 from Peer8 ingested at height 0
16:43:20.859 [updateFilterAndSend] [DEBUG] Sent filter to Peer7
16:43:20.859 [onTx] [INFO] Tx 09f34b9afbc4f093ee7273bfc649b712bc2916f227c16c3f3cdf4f448a620071 from Peer7 ingested at height 0
16:43:23.867 [updateFilterAndSend] [DEBUG] Sent filter to Peer6
16:43:23.867 [onTx] [INFO] Tx 09f34b9afbc4f093ee7273bfc649b712bc2916f227c16c3f3cdf4f448a620071 from Peer6 ingested at height 0
16:43:28.313 [updateFilterAndSend] [DEBUG] Sent filter to Peer9
16:43:28.313 [onTx] [INFO] Tx 09f34b9afbc4f093ee7273bfc649b712bc2916f227c16c3f3cdf4f448a620071 from Peer9 ingested at height 0
16:43:31.570 [updateFilterAndSend] [DEBUG] Sent filter to Peer13
16:43:31.570 [onTx] [INFO] Tx 09f34b9afbc4f093ee7273bfc649b712bc2916f227c16c3f3cdf4f448a620071 from Peer13 ingested at height 0

I take back what I said. This issue is not necessarily stopping transactions, but unconfirmed transactions stack up and eventually stop sales. I'm not sure about the code that governs this, but that's been my experience.


Thumbnail does not provided to embed

Describe the bug
There is no thumbnail photo on the embed please fix it

Which embed, there are countless in the source, what are you talking about, what did you expect and what you got? Please be specific.

This is not a bug this is a feature request

Hmm, but still they framed it as a bug with the 'fix it' (even labeled it as such), anyway their question is too vague. Is this about Welcome embed, if so, they should state that.

Sorry I doesn't more information
If I use /embed bot command there
Is a problem where I can't insert thumbnail photo


Add the option to wedge two bonds at chiral centers

Some style guides suggest including wedges at chiral centers. This adds a modification to WedgeMolBonds() to allow two neighboring bonds to be wedged:
Here's an example of what this does:

There's also some refactoring of the bond wedging code, including pulling it out into a separate source file.
At the moment the functionality here is limited to tetrahedral stereo. The refactoring and cleanup is intended to make it easier to get this working with non-tetrahedral stereo.

Hey, it worked!

@bp-kelley: if you have a chance to look at this again, I think it's ready for review


Don't use parallel

The easiest way to get this test to work on macOS is to not use parallel since parallel isn't in the PATH that bazel uses.

That script has largely (but not entirely) been subsumed by https://github.com/google/kythe/tree/master/kythe/go/extractors/config/runextractor/cmakecmd anyway.


Details about pre-trained model name

Thank your for your great work share!
Could you explained the model's name in train_log/ ?In the paper, you mentioned that you just fine-tuned new subject's regression alignment , and you trained other subjects together. For example, I wanna to know whether 'final_subj01_pretrained_40sess_24bs' denotes multi-subject's model with subject1's regression models, or just single model trained for subject 1. And I actually concerned which is the model fine-tuned for held-out subject. Is that 'final_subj01_pretrained_1sess_24bs' ? If there is, which sessions you used for 1 Hour data? Thanks again.

Thanks I should update the README about this...
"final_subj01_pretrained_1sess_24bs" refers to the model that was pretrained on subjects 2-8 and then fine-tuned on the first session of data from subject 1

Thanks for your timely reply, my problem has been solved.


fix: remove last margin of elements in Alert

Extraneous margin:

After:

Coverage remained the same at 90.616% when pulling 7dbfe5fcacbea953e16b80de467a445ba6553fb8 on abutterworth/alert-margin-fix into a7b60c6a3339e7cbaa193b2e756b5348b751728e on master.

:tada: This PR is included in version 16.0.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Moving away from baseURL (deprecated) for mounting on path other than /

I'd like to flag this as a problem and start a discussion about what could be done to fix it.
We deploy our app at /sim rather than / because / is where our Rails app lives (they coexist).
Currently we're able to do this using the to option of mount_ember_app, and setting a baseURL in ember-cli's environment.
Unfortunately this breaks SVGs, and it turns out is now deprecated in EmberCLI.
http://emberjs.com/blog/2016/04/28/baseURL.html
It seems the way forward is to use rootURL in EmberCLI, and prefix the asset links instead of using a base tag.
Can include_ember_script_tags and include_ember_stylesheet_tags be modified to support this? Could they take a path prefix argument, or even figure it out from the mount_ember_app to option?

Or will render_ember_app handle this, so long as the ember-cli app is correctly configured?

@nruth I'm sorry that this issue has sat for so long.
I'm embarrassed to admit that I'm a bit out of touch with more recent EmberCLI developments, particularly the removal of Ember's dependency on <base> tags.
My understanding is that configuring rootURL affect's Ember's runtime behavior, but doesn't affect the compiled output.
If that assumption is true, I don't think that include_ember_script_tags and include_ember_stylesheet_tags helpers could be affected by a rootURL declaration, since they serve the compiled asset files without Rails-side intervention.

Could they take a path prefix argument,

They already do!
Does that help resolve your issue?

Or will render_ember_app handle this, so long as the ember-cli app is correctly configured?

The include helpers and render_ember_app helpers are completely unrelated and independent of one another, since the render_ember_app helper serves the EmberCLI-generated index.html output, and the include helpers serve the EmberCLI-generated asset files only.
To answer your question, though, assuming that ember-cli is properly configured, everything should Just Work :tm:, as render_ember_app defers almost all responsibility to EmberCLI.

Hi Sean
Thanks for the detailed reply!
We don't have any problems right now with this so I'm going to close the issue. Sorry I forgot about it.
Our current install (on a subpath, with working SVGs) is using an ember-cli-replace hack to rewrite the asset paths (in ember-cli) until we can upgrade to an ember-cli version with official rootURL support.
I'll come back to your post when we upgrade as there's probably some code we can delete from our app.


ADD search/find text in cell editor (Shift+Enter)

use case
I have a large text cell to edit.
I open the large cell editor by hitting Shift+Enter when the cell is selected, a large editor opens up
I then need to find a string inside the text of that cell to edit sth so I hit Ctrl+F
expected result
a search dialog opens
actual result
nothing. I have to copypaste the cell contents into a proper text editor to find text inside it

Agreed, this would be helpful

In 3.0 I'll add find/replace thru context menu.
Shortcut support will be added later.

A button to print cell content would be nice as well.


Fixed wrong solr path

api server fails on startup. Use the default Solr working directory instead

Thanks for the PR, looks like @ncrum already fixed this in ee44f7aa7bd0e6187a29920ff16f1c7876d212d1 around the same time as you!


Generic type 'ModuleWithProviders' requires 1 type argument(s).

I am trying to update angular from version 7.2 to v10, i get below error. Is there any solution for this.
ERROR: node_modules/ngx-device-detector/index.d.ts:3:23 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type
argument(s).
3     static forRoot(): ModuleWithProviders;

Hi @narasing494599 . The provided information isn't enough to debug it.
Are you trying to import the DeviceDetectorModule in your AppModule with the .forRoot() syntax?
Which version of the library are you using?

Hi @narasing494599 . The provided information isn't enough to debug it.
Are you trying to import the DeviceDetectorModule in your AppModule with the .forRoot() syntax?
Which version of the library are you using?

Closing it due to no activity on the issue.


Bug: typesense:create

Describe the bug
Hello, I encounter a problem when upgrading the bundle 0.4 ->0.6 I have this error:
php bin/console typesense:create
[critical] Error thrown while running command "'typesense:create'". Message: "Notice: Undefined index: scheme"

Add scheme on TYPESENCE_URL variable in your env file.
TYPESENSE_URL=localhost:8108
to
TYPESENSE_URL=http://localhost:8108

Hello,
after apply recommendation of @remysa, I have same problem.
acseo_typesense:
    # Typesense host settings
    typesense:
        url: '%env(resolve:SEARCH_URL)%'
        key: '%env(resolve:SEARCH_API_KEY)%'
    # Collection settings
    collections:
        articles:                                     # Typesense collection name
            entity: 'App\Entity\Article'              # Doctrine Entity class
            fields:
                id:                                # Entity attribute name
                    name: id                       # Typesense attribute name
                    type: primary                  # Attribute type
                title:
                    name: title
                    type: string
                content:
                    name: content
                    type: string
                dateCreated:
                    name: date_created
                    type: datetime
                    facet: true
                imageName:
                    name: image_name
                    type: string
            default_sorting_field: date_created     # Default sorting field. Must be int32 or float


Add method array_remove.

Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes saved changes [SNOW-1529718)

Fill out the following pre-review checklist:

[ ] I am adding a new automated test(s) to verify correctness of my new code

[ ] If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing

[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am adding new credentials
[X] I am adding a new dependency
[ ] If this is a new feature/behavior, I'm adding the Local Testing parity changes.

Please describe how your code solves the related issue.

Morgan Stanley: array_remove is available in SQL but there is no corresponding API

I have read the CLA Document and I hereby sign the CLA


No "phantom" data in input/ dir

Hi Gia
I try to run your main.py, but found no phantom data there. Could you update it?
Thanks

Thanks for bringing this to my attention! I'll upload an example phantom, probably a water cylinder on an air background.
I didn't originally upload a phantom because I was using an XCAT phantom, which you can request from CVIT at Duke: link
If you're interested, it's pretty straightforward to generate computational phantoms constructed from just cylinders, like an image quality phantom. The inputs needed are listed in the Phantom class in system.py. Once I upload an example you can see the formatting style.

Just added a phantom. Does it work for you now?

Just added a phantom. Does it work for you now?

Thanks, it works.


Opcode Suite fails for Scala 2.13.8+

The Opcode tests in OpcodeSuite.scala fail when using scala.version 2.13.8+ with the following exception
- IFNONNULL opcode *** FAILED ***
  [,z,] did not equal [,z,z] (OpcodeSuite.scala:62)

We need to add support for it in the udf-compiler.

@abellina can you triage this issue to understand the potential fix needed?

I've finally gotten to this. I see different bytecode between scala 2.13 and scala 2.12, and that may be part of the issue, but I am not sure yet.
source:
  val myudf: (String, String) => String = (a: String, b: String) => {
    if (null == a) {
      a
    } else {
      b
    }
  }

For the scala 2.13 case, I see:
  public static final java.lang.String $anonfun$myudf$1(java.lang.String, java.lang.String);
    Code:
       0: aload_0
       1: ifnonnull     6
       4: aload_0
       5: areturn
       6: aload_1
       7: areturn

For the scala 2.12 one I see:
  public static final java.lang.String $anonfun$myudf$1(java.lang.String, java.lang.String);
    Code:
       0: aload_0
       1: ifnonnull     8
       4: aload_0
       5: goto          9
       8: aload_1
       9: areturn


[ keyvault] Use f-string and dynamic value for error logging not using a static value

Description
The main purpose of this PR is to use f-string and dynamic string values,
not  using static value
Using of this simple code can generate current function name values
import sys
def func_name():
    return sys._getframe(1).f_code.co_name

So it could help to avoid static value
Because most common error comes from static value
before
            raise ValueError("API version {} is not available".format(api_version))

after
            raise ValueError(f"API version {api_version} does not have operation '{func_name()}'")

close: #30
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

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

Testing Guidelines

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

Test Screenshot

Looks great!

Thank you! Let's discuss how it reflects to original repo later


What to do after installation?

Sorry for such a noob question, but I am trying to get PiWeatherRock displays on the LCD screen of my Rasp Pi 1 Model B (Buster Lite). I have done the config and ran the installation, but nothing happens on my CLI screen on the LCD (HDMI port is not used).
I checked the status of PiWeatherRock in systemctl, and here it gets confusing to me:

I checked the status from the terminal screen on the LCD, it said .../weather.py (code=exited, status=1/FAILURE) . Yet when I check from my computer through SSH, the service active (running), and the failure line is not there.
A few moments later, the reversal happened between the terminal and SSH

What obvious thing that I am missing here?

You will want to use at least "Raspbian Buster with desktop" for things to just work. It is possible to get things going with the Lite version but it takes a fair bit of manual work. Are you game to try the desktop version @son-dh?

I was thinking that might be the reason. I will install a desktop environment on the pi then!

Any better @son-dh?

@genebean thanks for reaching out! Yes I managed to get it working finally last weekend, and I have read the news about Dark Sky acquisition today... how irony...
Thanks for the great piece of work, though! With the social distancing, I can look at the weather without going outside :D

Glad to hear it! The Dark Sky stuff is a bummer but we will adapt.


(MODULES-6542) - Adding SLES 11 & 12 to metadata

Currently we are already testing on these platforms and they are compatible, therefore adding as supported OS following product decision. @davinhanlon

@pmcmaw : Why SLES 11 SP1 only? I would use "11" so we cover all releases: SP1 to 4.


Circle Formatting

After reviewing, there seem to be some issues displaying icons and hover effects in the charts. This happened pretty recently and I'm digging into this.

This is now a work item: https://github.com/uonai/Fortunae/issues/12


How to process incomming commands in case of Controller.

To send a command I can assign corresponding cluster to the target device and then send the desire command, but how I can receive and process incoming commands like IASZone#ZoneEnrollRequest?

@raju-apple Can you help here?

IASZone is not part of Matter 1.0, precisely because it's not clear how to map it onto the Matter interaction model.


Unable to extract html5 player

MacBook-Pro-2:~ nick$ youtube-dl --verbose http://www.youtube.com/watch?v=8nZxWo1nEEM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.youtube.com/watch?v=8nZxWo1nEEM']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.02
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 8nZxWo1nEEM: Downloading webpage
[youtube] 8nZxWo1nEEM: Downloading video info webpage
[youtube] 8nZxWo1nEEM: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {43} signature length 40.44, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
video_id, player_url, s
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
video_id, player_url, s
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 661, in extract_info
ie_result = ie.extract(url)
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 290, in extract
return self._real_extract(url)
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 1345, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 827, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
video_id, player_url, s
File "/Users/nick/anaconda/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

I confirm this issue with
[debug] youtube-dl version 2015.11.02
[debug] Python version 2.7.6 - Linux-3.16.0-52-generic-x86_64-with-Ubuntu-14.04-trusty

Duplicate of #7413. @pi4630 The next time please paste at least the URL.

@yan12125 Yes, will do. This is more complete:
[debug] Command-line args: [u'-x', u'https://www.youtube.com/watch?v=P3mZkAs8BeU', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.02
[debug] Python version 2.7.6 - Linux-3.16.0-52-generic-x86_64-with-Ubuntu-14.04-trusty


[RemoteMirror] Mark swift_reflection_classIsSwiftMask as a weak import.

Also have swift-reflection-test check if the symbol exists. This allows swift-reflection-test to work with older Remote Mirror dylibs that don't have it.
rdar://problem/50030805

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 8b0ab1cc497d203568d86a5e00ac50d339ec7f8f

@swift-ci please test OS X platform

@mikeash - you broke the windows build!

@compnerd Not again! 😢

Afraid so, #24251 should take care of it.

That would be good! In the meantime, thanks for keeping a watchful eye.


Adapt VulnerableCode implementation to changes in the bulk API

The bulk API to query vulnerability information for multiple packages has now been finalized. (Refer to this ticket for further information; documentation about the requests and responses supported by the API can be found here.) So the implementation of VulnerableCode in ORT can be updated to use the information returned by this API rather than to query further information about vulnerabilities in separate requests.
In order to make full use of the information provided, it may be necessary to enhance the data model of the Advisor. So far, there is a float field to represent the severity of a vulnerability. For a better interpretation of the severity, the scoring system needs to be available, and the value can be a string such as "HIGH" or "LOW".

For a better interpretation of the severity, the scoring system needs to be available, and the value can be a string such as "HIGH" or "LOW".

While VulnerableCode has something like
"scores": [{"value": "LOW", "scoring_system": "cvssv3.1_qr"}],

I'd actually prefer to have the original score plus the rating / scoring system, so the API user can perform the mapping to a human-readable rating. However, that might not be feasible if we do not get the original (raw) score from VulnerableCode.

@sschuberth

we do not get the original (raw) score from VulnerableCode.

The "LOW" thing is actually a raw score. Refer to https://github.com/nexB/vulnerablecode/blob/bfa005ece230ada9032c3c0b4a7bab7b59673e0b/vulnerabilities/severity_systems.py#L78 for additional scoring systems.
For eg you could end up with scores like
"scores": [
               {"value": "LOW", "scoring_system": "cvssv3.1_qr"},
               {"value": "3.7", "scoring_system": "cvssv3.1_qr"},
               {"value": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L", "scoring_system": "cvssv3.1_vector"}

],

The "LOW" thing is actually a raw score.

Ah, it's indeed a raw score in the "_qr" scoring / rating system. I missed that suffix. Thanks for pointing this out.


Reva based simple ocis

This PR uses reva and the simple build flag to configure a system that shows how the oidc auth works and how extensions talk to phoenix.

[ ] ocis-konnectd is not yet ready, so I am using revas oidc provider

[x] ~requires https://github.com/owncloud/ocis-phoenix/pull/25 to fix config setting for hello.js~ has been merged

[x] ran into problems with configuring extensions from ocis, tracked in https://github.com/owncloud/ocis/issues/81 setting env vars as a workaround, they will be picked up when micro starts the sub processes

[x] only set them if they are not set, so they can be overridden ... or find out how to properly fix the bug

[ ] I am still seeing an error when pressing submit in hello: Saving your name failed Missing required parameter: body ... maybe @LukasHirt can give me a hint ... tracked in https://github.com/owncloud/ocis-hello/issues/41

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- pkg/command/reva_simple.go  1
- pkg/command/reva_ocis.go  1

Clones added
============
- pkg/command/reva_simple.go  8
- pkg/command/reva_ocis.go  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- pkg/command/phoenix_simple.go  2
- pkg/command/reva_ocis.go  1
- pkg/command/reva_simple.go  1

Clones added
============
- pkg/command/reva_ocis.go  1
- pkg/command/reva_simple.go  8

See the complete overview on Codacy

I am still seeing an error when pressing submit in hello: Saving your name failed Missing required parameter: body ... maybe @LukasHirt can give me a hint ... tracked in

I'll take care.

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- pkg/command/phoenix_simple.go  2
- pkg/command/reva_simple.go  1
- pkg/command/reva_ocis.go  1

Clones added
============
- pkg/command/reva_simple.go  8
- pkg/command/reva_ocis.go  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- pkg/command/reva_simple.go  1
- pkg/command/phoenix_simple.go  2
- pkg/command/phoenix_ocis.go  3
- pkg/command/reva_ocis.go  1

Clones added
============
- pkg/command/reva_simple.go  19
- pkg/command/reva_ocis.go  71

See the complete overview on Codacy

works on my machine ®

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- pkg/command/reva_simple.go  1
- pkg/command/reva_ocis.go  1
- pkg/command/phoenix_ocis.go  3
- pkg/command/phoenix_simple.go  2

Clones added
============
- pkg/command/reva_simple.go  19
- pkg/command/reva_ocis.go  71

See the complete overview on Codacy

Why does such poorly formatted code get merged at all?
Beside that, using setenv is so much wrong...


Fix typo

Thanks for the PR. Back-ported to 10.0.x. (9.0.x and earlier does not have the affected code.)


[FLINK-24385] Introduce TRY_CAST

What is the purpose of the change
The goal of this PR is to

Let CAST fail
Introduce TRY_CAST to handle cast failures
When legacy cast behavior is enabled, restore CAST behavior to not fail

Brief change log

Improved the canCast method in the CastRule stack to do proper nested checking of canFail.
CAST now fails if legacy cast is disabled, and canFail returns true. When legacy cast is enabled, the cast logic is wrapped in the codegen with a try-catch block
Implemented TRY_CAST in SQL. This includes:

changes to the parser (no new custom sql node, as it's not needed)
new SqlTryCastFunction mimicking the behavior of SqlCastFunction from calcite
add a custom SqlConvertletTable to plug in the conversion of the TRY_CAST operator (this is necessary as in the parser we cannot access FlinkSqlOperatorTable.TRY_CAST)

Implemented TRY_CAST in Table API. This includes:

Add TRY_CAST to BuiltInFunctionDefinition
Converter back and forth the Expression stack

Use the legacy cast behavior flag in to enable/disable

Verifying this change
This PR adds test cases in CastFunctionMiscITCase for testing the new TRY_CAST. Relies on previous existing tests for checking the behavior of CAST in legacy mode.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): yes, no breaking change when legacy mode is enabled

Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented? docs

Some implementation notes
Below some implementation details worth to be mentioned
Why SqlTryCastFunction is SqlKind.OTHER_FUNCTION
Initially I tried to use SqlKind.CAST for SqlTryCastFunction, as it effectively unlocks a couple of nice features from calcite, notably several optimizations and cast removals. This unfortunately also comes with some implicit assumptions done by calcite, after checking that the call is of SqlKind.CAST.
In particular, I hit a wall with RexSimplify, which was trying to optimize TRY_CAST('non-numeric' AS BIGINT) in a test. Because the value to cast is a literal, calcite tried to cast it at planning time, failing rather than converting the whole expression to NULL. Fixing this issue requires me to hardcode some custom logic in RexSimplify, which is not extensible.
Implicit casting doesn't fail
IMHO this is a bigger issue than this PR, as the planner shouldn't try at all to perform implicit casting among types which casting can fail. To avoid substantial differences, I kept the situation as it is, but I suggest we go back on this issue later in future as we should disallow such implicit castings.
How the old legacy behavior is still supported
Initially my idea to support the legacy behavior was to implement a planner rule converting every CAST to TRY_CAST, in case legacy behavior is enabled.
The problem with this approach is that converting to TRY_CAST during planning entails modifying the result type of the expression, eventually generating a breaking change anyway. For example, given a column defined as f0 STRING NOT NULL and the query SELECT CAST(f0 AS TIME) FROM T, the plan generated from master would be:
LogicalProject(EXPR$0=[CAST($0):TIME(0) NOT NULL])

But now, because STRING to TIME can fail, the plan should rather be:
LogicalProject(EXPR$0=[TRY_CAST($0):TIME(0)])

Such change effectively break the plans, as now a different nullability constraints can change the outcome of the query planning. Hence the user should handle this null as it would be with TRY_CAST. e.g. think about a function that accepts NOT NULL parameters and its argument is the above cast, that would not compile anymore with this change without user intervention to check the nullability, for example wrapping the cast in a COALESCE.
On top of that, Calcite doesn't allow to modify the output type of a RelNode inside rules (check HepRuleCall#transformTo), so modifying the type requires to perform this call rewrite at the SqlNode/Expression -> RexNode level, rather than in a planner rule.
Then there's also the issue with implicit castings, placed here and there not just by our rules, but also by calcite various components'.
Because of the aforementioned problems, It's quite complicated to write a clean rule that does the job, which made me fallback to the quick and dirty fix directly in the codegen.
It must be noted that, while on one hand having a rule nicely converting CAST to TRY_CAST changes the plan and constitutes a breaking change, it effectively makes the upgrade path for future Flink versions easier, as such rule effectively adapt the CAST semantics as if the user just used TRY_CAST.

@matriv removed the last commit and added the coalesce example as well

Thx @slinkydeveloper! LGTM!


space-rocks broken on Ubuntu 22.04.1

Hi,
I wanted to set up rocks on a server of mine running Ubuntu 22.04.1 (arm64 version, if it matters!) but I ran into unexpected trouble that I have not seen on my laptop using Arch Linux. Python in this case is 3.10.6 and space-rocks is 1.6.5.
I installed rocks with pip install -U space-rocks as normal, which completed without issue.
However, any usage of rocks fails with the following error:
$ rocks spins Ceres
The asteroid name-number index is malformed. Run '$ rocks status' to update it.

Running the suggested rocks status fails with the following:
$ rocks status
Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/rocks", line 8, in <module>
    sys.exit(cli_rocks())
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/ubuntu/.local/lib/python3.10/site-packages/rocks/cli.py", line 161, in status
    date_index = index.get_modification_date()
  File "/home/ubuntu/.local/lib/python3.10/site-packages/rocks/index.py", line 369, in get_modification_date
    date_index = (config.PATH_INDEX / "1.pkl").stat().st_mtime
  File "/usr/lib/python3.10/pathlib.py", line 1097, in stat
    return self._accessor.stat(self, follow_symlinks=follow_symlinks)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/.cache/rocks/index/1.pkl'

It looks like rocks is failing to initialize the cache for some reason (the ~/. cache/rocks folder does not exist at all?)
It's probably a trivial thing somewhere - can you give any suggestions for a fix?
Sorry if it's a dumb question and I'm missing something obvious!

I confirm that manually creating an empty file in the path /home/ubuntu/.cache/rocks/index/1.pkl was enough to allow rocks status to work and to build the name-number index. Another bug came up in the process, which I was able to actually fix (and will submit a separate PR for)

Hi Lauri, thanks for the issues and the PR. This issue and #13 are due to bugs I introduced in version 1.6.5, where I refactored the entire code base to make maintenance a bit easier and to speed up the command line interface by avoiding unnecessary imports.
For #13, the pandas imported in the PR are the correct way, great that you figured it out and could get it running on your side again.
Concerning this issue, rocks checks on every startup that the cache and index directory exist, and creates them if it's not the case. I simply forgot to reactivate this check during the refactoring. The fix you submitted in the PR works on the wrong level: instead of catching all the cases where the index might not exist with try-except clauses, I ensure the existence on startup. There is little you can do with rocks without the name-number index, so this makes more sense IMHO.
Now I appreciate the PR but because you mixed the two issues there and I cannot merge your solution to this issue, I will reject it. Please continue to submit PRs, and please make one PR per issue from now on :-)
This issue and #13 are fixed in version 1.6.6.I'm looking into #12 now and will push the version once I figured it out.


WIP: In MatchFilenamesOnceTest.test, call get_temp_dir() only once

Also make sure files opened for writing are closed properly.

Win cmake py test running at: http://ci.tensorflow.org/job/experimental-cais-win-cmake-py/DEVICE=cpu/6/console

This is a nice to have change, but closing it for now.


[CI] Build and push deepflow server builder images

This PR is for:

CLI

Provide the server builder image on public registry
Add a new Dockerfile with 2 steps for building server image easily:
$ cat <<EOF > ./server/Dockerfile.ci
FROM deepflowce/deepflow-server-builder:latest AS builder

COPY . /go/deepflow

WORKDIR /go/deepflow/server

RUN make libs/geo/ip_info.go
RUN CGO_ENABLED=0 make server

FROM alpine:latest

RUN apk update && \
    apk upgrade && \
    apk add tzdata

COPY ./server/server.yaml /etc/
RUN mkdir /etc/mysql
COPY ./server/controller/db/mysql/migration/rawsql /etc/mysql
COPY ./server/controller/cloud/filereader/manual_data_samples.yaml /etc/
COPY ./server/querier/db_descriptions /etc/db_descriptions/

COPY --from=builder /go/deepflow/server/bin/deepflow-server /bin/deepflow-server

CMD /bin/deepflow-server
EOF
$ docker build -t deepflowce/deepflow-server:dev -f ./server/Dockerfile.ci .

@crazytaxii This image should not need to be built every time.You can set it to be built only when files change
这个镜像应该不需要每次都build，可以设置为在文件有改动的时候再build这个镜像