Display selected structure

The structure that the player has selected should be displayed as a ghost on their cursor.
Follow-up to #240.

you won't be able to use post-processing, once the opaque colours get rendered you can't get back what was "underneath" them again. you've got a few ways depending how much effort you want to put in...

you could just toggle visibility every frame (or every 0.1s or whatever). very easy to do on just the parent entity, will probably look rubbish but ok for prototyping.
you can make a copy of each material (copy so that you don't affect other entities that share the original material), then set the base_color to rgba(1.0, 1.0, 1.0, x) for 0<x<1 and the alpha_mode to Blend/Add/Premultiply (according to taste). then the textures will get multiplied with the base color and you'll get a transparent result with full lighting etc.
you can make a custom material if you want more control. if you do so i would make the struct the same as the StandardMaterial so that you can impl From for it and generate them easily for all your gltf's materials. then you can write your own shader that does whatever you like and it can call to the standard pbr function to get consistent lighting etc as well if you want to. if you do use the same struct fields you can also use the engine's pbr.wgsl as a base.
at the very deep end you can make your own pipeline that adds custom passes etc, but i don't see why you'd need to do that here.

From robftm

Closely related to #242.


add env var to disable git key

I use some pretty large git repos and the shelling out to git in this script makes my prompt extremely slow so I added an ENV var to disable it. I named it with the TOUCHBAR_ because GIT_ENABLED and YARN_ENABLED might have some unintended conflicts. I'd be happy to open a PR to rename the other variables as well.
I find using zsh's built in vcs-info a lot faster than shelling out but I'm not sure exactly how to hook into it with a script like this.

Ahahaha, yes you are right :)
I'm open to receive any PRs! Thanks for the contribution <3


Parquet and S3 support

The project README mentions that Parquet and S3 are supported, but I couldn't find any reference in the repo. Can someone provide more information on this?

@sunchao The README is slightly ahead of time :). S3 and Parquet support should land soon. See https://github.com/facebookincubator/velox/issues/211 for S3 support updates.

@majetideepak thanks! looking forward to these features!

@sunchao, S3, and Parquet support are now available.


RESTful API refactor

fixes #17 (idiomatic REST refactor). squash me please
Replaced specific annotation update and delete endpoints with PUT and DELETE verbs on the same /annotations/{annotation_id} endpoint.
most significant change (still simple) is that we were mixing two kinds of ID in the same namespace (GET /annotations/{image_id} vs DELETE and PUT /annotations/{annotation_id}), that's a lurking namespace collision bug for the future. Fixed that by changing to GET /images/{image_id}/annotations to fetch a list of annotations for the given image, keeping the /annotations namespace clear for annotation ids.
(we don't actually have a GET /annotations/{annotation_id} but I suppose that's just because we haven't needed one yet)
Typed as int the GET /images/{image_id} given the new /images/{image_id}/annotations path, just slightly tighter. and renamed '/img/' to '/images/` because words.

please note 3149db9 should probably have been in it's own PR.

Sorry, I missed that this had been posted. Looks great, thanks for refactoring.


Skin

How to change npc skin/character ?

This is not possible with the current virion for a dialogue NPC (EntityIds::NPC) due to missing implementation. For a human entity, you can pass your entity to the 2nd parameter of NpcDialogue::sendTo().


Ubuntu package does not install all required dependencies

When I install Crystal via apt-get on Ubuntu, it does not install everything it needs.
Dockerfile that reproduces the issue
Expected

test.cr is built into a binary
Running test outputs "WORKING!"

Actual
I get the following error:
Error: execution of command failed with code: 127: `cc -o "/test" "${@}"  -rdynamic  -lpcre -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
The command '/bin/sh -c crystal build -o test /tmp/test.cr' returned a non-zero code: 127

Do I still need to follow the "All required libraries" instructions? If so, wouldn't it be better for the package to specify them as deps? If that's not the issue, what's broken?

https://github.com/crystal-lang/crystal/wiki/All-required-libraries

@samueleaton thanks for the (very!) prompt reply :) I'm about to try that now. If that's what's required, it'd be much better for the package to specify its dependencies, as that was a nasty surprise.

@anicholson did everything work out for you? 🙂

You need the packages in "All required libraries" for compiling Crystal itself, but Crystal won't compile a single program without having clang, ld and binutils installed - so I agree the crystal package must depend on those ones.
I've tested this on a Bash on Ubuntu on Windows installation - experimental, but you need those packages on any Ubuntu anyways.

@samueleaton my experience is pretty much exactly as @matiasgarciaisaia describes - the crystal package really needs to depend on those.

This seems to be a crystal-lang/omnibus-crystal issue, though, rather than a Crystal one.

You need the packages in "All required libraries" for compiling Crystal itself, but Crystal won't compile a single program without having clang, ld and binutils installed - so I agree the crystal package must depend on those ones.

Crystal, as other compiled languages based on LLVM will require you have some dependencies to allow linking the generated object files and produce executables.
Making crystal package to depend on build-essential seems a little bit too much, specially since we it doesn't care what is cc (could be clang, could be gcc).
I'm wondering how that is solved in Rust or Nim (if I´m not mistaken they don't provide a apt compatible package).

@luislavena well could we at least mark them as recommended/suggested packages? The crystal package is broken without them, and makes for a really bad experience for new developers.

A Debian package can express alternative dependencies. Something like
"Depends: one-package; this-one|another-one;" tells apt that you need
one-package and either this-one or another-one. We could check which
packages provide a compatible cc and list them.
I don't know about rpm or other package managers, though.
Source: https://www.debian.org/doc/debian-policy/ch-relationships.html

The install instructions could at least list the dependencies "expected" as it is, you install the crystal package then you get
# crystal use_it_ssl.cr
--: 1: --: cc: not found
Error: execution of command failed with code: 127: `cc -o "/root/.cache/crystal/root-use_it_ssl.cr/macro-run-_opt_crystal_src_ecr_process.cr" "${@}"  -rdynamic  -lpcre -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
$ apt install gcc
# crystal use_it_ssl.cr
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "/root/.cache/crystal/crystal-run-use_it_ssl.tmp" "${@}"  -rdynamic  -lz `command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'` -lpcre -lm -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

That's just to compile a crystal file, not compile crystal itself, FWIW...

We've got a (sort of) umbrella issue here: https://github.com/crystal-lang/omnibus-crystal/issues/14

Ahh... I miss homebrew sometimes... The same problem here. Solved it with this.

The "all required libraries" wiki page is only for hacking on Crystal itself. These libraries aren't required to use the Crystal compiler; the libraries required by the runtime are already shipped with the deb package (libgc, libevent, libpcre) along with libyaml.
In addition, there are a limited list of optional libraries that aren't required per-se; they could be listed as Recommended maybe: libxml2, libssl, and libcrypto; maybe libgmp too.
I.e. compiling a hello world program, or a program that doesn't need big numbers, SSL or XML should compile and run, right after installing the deb package. Otherwise there is an issue that should be tracked.
A potential issue, for example, is missing a C compiler, which Crystal requires to link the program. Maybe this could be solved by depending on the virtual c-compiler deb package.

@ysbaddaden IIRC the C compiler is only required for linking. Couldn't Crystal just depend on binutils (for ld), libgcc-4.8-dev, and libc6-dev, and just link it all together manually?

It probably could, yes. I'm not sure how ld works, and if calls would be portable or across platforms?

@ysbaddaden It is, though the exact command line is architecture-dependent (it should be reasonably simple to devise this from the actual arch, but I'm too lazy to look it up ATM). AFAIK it should look like:
ld -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o -lc -lgcc -lgcc_s <object-files-go-here> /usr/lib/x86_64-linux-gnu/crtn.o

@rdp Hello ! I had some problemes with missing librairies too (-lz, -lssl, etc...) on Windows 10 with the server package. Today, for testing the shardes command I install git on the bash (the same I installed crystal). The librairies I install before I install git solves all my problemes. It's Magic !!!
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \   libz-dev libssl-dev
P.S. : Sorry, my english as bad as my programming skills :)

To who is experiencing those errors:
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
/usr/bin/ld: cannot find -lcrypto

Simply install libssl-dev:
sudo apt-get install libssl-dev

This solves the issue (at least on Ubuntu).

Solution taken from this answer.

Package dependencies should be fine nowadays.


minor redesign - add project_with_study

Please update version and changelog so that GitHub Actions can be triggered to create a new release to PyPI.

Hi @iamamutt, reviewed with Kabi and Chris, we decided to make things simpler and make use of the project_with_study as the only project (remove the old one, incorporate it into the new project_with_study).
Please review again


Report if an encountered non-deterministic function could be made deterministic through use of special pytorch function

Some encountered non-deterministic functions could be deterministic if use_deterministic_algorithms(True) is used, so it would be nice to add a new boolean column that indicated whether a given function could benefit from that.

Works:
> python ./torchdetscan.py --csv ../../tests/pytorch_put_.py | column -s, -t
path                         function  line  column  toggleable  argument                                                              notes
../../tests/pytorch_put_.py  put_      11    0       True        accumulate=True will be non-deterministic if used with a CUDA tensor
../../tests/pytorch_put_.py  put_      15    0       True        accumulate=False
../../tests/pytorch_put_.py  put_      19    0       True        accumulate will be False by default and therefore non-deterministic


"received fast shutdown request" error message

Hi guys,
I'd like to deploy a PostgreSQL server as part of a larger set of Docker containers and selected version 9.4.5 for this.
Using a vanilla container yields the following error log:
$ docker run --name mypostgres --detach postgres:9.4.5
$ docker logs mypostgres
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in /var/lib/postgresql/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    postgres -D /var/lib/postgresql/data
or
    pg_ctl -D /var/lib/postgresql/data -l logfile start

****************************************************
WARNING: No password has been set for the database.
         This will allow anyone with access to the
         Postgres port to access your database. In
         Docker's default configuration, this is
         effectively any other container on the same
         system.

         Use "-e POSTGRES_PASSWORD=password" to set
         it in "docker run".
****************************************************
waiting for server to start....LOG:  database system was shut down at 2015-10-21 20:50:09 UTC
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
 done
server started
ALTER ROLE

/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

LOG:  received fast shutdown request
LOG:  aborting any active transactions
LOG:  autovacuum launcher shutting down
LOG:  shutting down
waiting for server to shut down....LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

LOG:  database system was shut down at 2015-10-21 20:50:10 UTC
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started

Any idea why the database server shuts itself down? For information I'm on a Mac (OSX 10.10.5) with Docker version 1.8.2. Here are more details:
$ docker version
Client:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Thu Sep 10 19:10:10 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   f4bf5c7
 Built:        Mon Oct 12 18:01:15 UTC 2015
 OS/Arch:      linux/amd64

Note that providing a password (using -e POSTGRES_PASSWORD=xxx) doesn't change the outcome.
Best,
Aurelien

Out of curiosity I tried the very same commands but with the postgres:9.5 container. I get a very similar outcome:
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
creating template1 database in /var/lib/postgresql/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

****************************************************
WARNING: No password has been set for the database.
         This will allow anyone with access to the
         Postgres port to access your database. In
         Docker's default configuration, this is
         effectively any other container on the same
         system.

         Use "-e POSTGRES_PASSWORD=password" to set
         it in "docker run".
****************************************************
waiting for server to start....LOG:  database system was shut down at 2015-10-21 20:57:35 UTC
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started
 done
server started
ALTER ROLE

/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

LOG:  received fast shutdown request
LOG:  aborting any active transactions
LOG:  autovacuum launcher shutting down
LOG:  shutting down
waiting for server to shut down....LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

LOG:  database system was shut down at 2015-10-21 20:57:36 UTC
LOG:  MultiXact member wraparound protections are now enabled
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started

Best,
Aurélien

The starting and stopping of the server is normal.  This allows the entrypoint script to: start the sql server listening only on the unix socket; create initial users, databases, and passwords; and run shell scripts and import sql files from /docker-entrypoint-initdb.d/.  After those are finished, it stops the backgrounded sql server, and then replaces itself with a new sql server process listening on the tcp socket.

@yosifkit, thanks for the answer. Obviously I haven't really understood how the dockerized version of PostgreSQL works. Is there something that need to be done to launch the server within the container? Even after mapping the 5432 port to the host I can't access it with (host-installed) psql.

On a Mac, you have to connect to the VM ip address rather than localhost.  I think docker-machine ip default should get you the address.  You'll still need to map the port as that will map it from the container to the linux host so that you can access it from the Mac.

Thanks! I didn't realize that I had to deal with this extra layer.

On Oct 22, 2015, at 11:30 AM, yosifkit<EMAIL_ADDRESS>wrote:
On a Mac, you have to connect to the VM ip address rather than localhost. I think docker-machine ip default should get you the address. You'll still need to map the port as that will map it from the container to the linux host so that you can access it from the Mac.
—
Reply to this email directly or view it on GitHub https://github.com/docker-library/postgres/issues/101#issuecomment-150298251.

@ajmazurie did you manage to get this working? :smile:

2018-05-11 10:26:53.073 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432,
2018-05-11 10:26:53.073 UTC [1] LOG:  listening on IPv6 address "::", port 5432,
2018-05-11 10:26:53.077 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432",
2018-05-11 10:26:53.092 UTC [20] LOG:  database system was shut down at 2018-05-11 10:26:20 UTC,
2018-05-11 10:26:53.100 UTC [1] LOG:  database system is ready to accept connections,
The files belonging to this database system will be owned by user "postgres".,
This user must also own the server process.,
,
The database cluster will be initialized with locale "en_US.utf8".,
The default database encoding has accordingly been set to "UTF8".,
The default text search configuration will be set to "english".,
,
Data page checksums are disabled.,
,
fixing permissions on existing directory /var/lib/postgresql/data ... ok,
creating subdirectories ... ok,
selecting default max_connections ... 100,
selecting default shared_buffers ... 128MB,
selecting dynamic shared memory implementation ... posix,
creating configuration files ... ok,
running bootstrap script ... ok,
performing post-bootstrap initialization ... ok,
,
WARNING: enabling "trust" authentication for local connections,
You can change this by editing pg_hba.conf or using the option -A, or,
--auth-local and --auth-host, the next time you run initdb.,
syncing data to disk ... ok,
,
Success. You can now start the database server using:,
,
    pg_ctl -D /var/lib/postgresql/data -l logfile start,
,
waiting for server to start....2018-05-11 09:39:21.129 UTC [37] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432,
2018-05-11 09:39:21.130 UTC [37] LOG:  could not bind IPv6 address "::1": Cannot assign requested address,
2018-05-11 09:39:21.130 UTC [37] HINT:  Is another postmaster already running on port 5432?
Is this log also normal?


AssertionError: Output folder already exists

Error when import dataset again when same dataset during import it is partially closed previously on half run
Error raised as below,
Type: AssertionError
Text: Output folder already exists
Full: Traceback (most recent call last): File "flask\app.py", line 1950, in full_dispatch_request File "flask\app.py", line 1936, in dispatch_request File "application\views.py", line 492, in upload_dataset AssertionError: Output folder already exists

@samueldinesh This means you already have a dataset with the same name you're trying to create the new one with.
Please give your new dataset a different name

Closing as question has been answered


Copy examples for Elixir community client

Add Elixir to the community supported client list
Resolves #429

bors r+


Fix ban check

[Fixes #1034]

I tried setting the accept type header to application json but it was still a string so I just parsed it


Feature Request: Recording rule that supports dropping source metrics.

I work on the istio.io project.
We export a highly dimensioned metrics called istio_requests_total
This metrics is scraped directly from proxies. In a dynamic k8s environment tons of new instance labels are created. Most of the time these labels are not very useful.
groups:
  - name: requests_total
    rules:
    - record: istio_requests_total_sum
      expr: sum(istio_requests_total) by (source_workload, destination_workload, ...)
      drop: istio_requests_total

There are a few labels that we care about in the aggregate that are exposed on the grafana dashboard. It would be great if istio_requests_total metrics was never commited to disk and dropped after evaluating the recording rule.
relabel_config:  drop happens too early in the lifecycle to be useful.

@codesome we spoke about this issue at kubecon.

This doesn't work out, we need the data in the tsdb to be usable in rules at which point the cost is already paid. Recording rules are also independent of scrapes.

See #394 for the scrape-based recording rules.

I am not sure if #394 helps here, isn't that focused on aggregating multiple series from one instance at scrape time?
https://github.com/prometheus/prometheus/issues/1381 would likely help as you can delete all the base istio metrics more quickly after recording rules are evaluated.

Neither helps.
On Fri 22 Nov 2019, 16:38 Chris Marchbanks<EMAIL_ADDRESS>wrote:

I am not sure if #394
https://github.com/prometheus/prometheus/issues/394 helps here, isn't
that focused on aggregating multiple series from one instance at scrape
time?
#1381 https://github.com/prometheus/prometheus/issues/1381 would likely
help as you can delete all the base istio metrics more quickly after
recording rules are evaluated.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/6352?email_source=notifications&email_token=ABWJG5TG2MFGABCU6CWWPP3QU74ITA5CNFSM4JP34QWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE6AGBI#issuecomment-557581061,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABWJG5S76MSZRKDUJGBDVVLQU74ITANCNFSM4JP34QWA
.

So is there a way to handle this problem, or you just pay the cost ?
If there is an adequate and safe delete API, then an external job could periodically clean things up. Is this the recommendation?

You have to pay this cost.
On Sat 23 Nov 2019, 17:11 mandarjog<EMAIL_ADDRESS>wrote:

So is there a way to handle this problem, or you just pay the cost ?
If there is an adequate and safe delete API, then an external job could
periodically clean things up. Is this the recommendation?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/6352?email_source=notifications&email_token=ABWJG5XD5KSCTP6IXBTO74DQVFI4HA5CNFSM4JP34QWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE7YH6I#issuecomment-557810681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABWJG5XTVUKJDOB4N67YPMDQVFI4HANCNFSM4JP34QWA
.

typically you could use a prometheus server to scrape those metrics and just federate the output to another server.

This is not something we can sanely implement, so closing.


Racial Resistances (Enhancement)

Some races gain resistance to a damage type from the get go.  Could you add a section to the builder to add that flag as part of it?  IE similar to your Senses, Movement, and Proficiencies sections.  Add a Resistance section where players could select from a drop down, the resistance(s) their character would get.  This would save a step of the player/dm having to edit that section manually after the character is made.
Thank you!
-Sage

I am not yet sure what will be provided as part of the Race item type on dnd5e, but if it's not provided (and I can map it directly), I will add the option!


增加加密工具类支持多记录加密，以及密钥长度的自定义

为了提供给实施人员使用，对多条明文使用同一个私钥加密。
指令如下：
java -cp druid-1.1.10-spec.jar com.alibaba.druid.filter.config.ConfigTools keySize your_pwd1 your_pwd2 your_pwd3  your_pwd4  your_pwd5

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

是的,最初我只是增加待加密的明文数量,这样是可以兼容原来的命令格式;
后来觉得密钥长度可能有不同的要求,所以增加了一个参数.
如果您觉得这个长度参数没有必要的话,那我可以去掉.
btw,这个改动好像有点聊胜于无...是因为工作室同事需要所以加了改动~没想到您会特地回复.

为什么配置多数据源后，druid的密码加密没有反应


Add support for the Block I/O protocol

Adds support to the Block I/O protocol, which allows getting the Block Media to list all devices.

Thanks for adding this protocol! There are a few lint warnings remaining, about some variables and a struct, could you remove them also?

Ok, @GabrielMajeri, it seems like I fixed everything. Do I need to squash the commits or any other proceedings before the merge?

No, it's alright. Thanks again for contributing!


fix: runnable node bundle without setup command

This removes direct import abc from "remix" and delegates to the underlying package that owns the import. So instead of let { json } = require("remix") in the server bundle, it would be let { json } = require("@remix-run/server-runtime").

Fixes https://github.com/remix-run/remix/issues/1056

👻 #1026

superseded by #1026


Create missionaries.js and related files

The slash command should be mod and above

This would require either syncing with ghost's email or creating a new email for icarus. The latter would be a much better way to do things, since ghost probably doesn't want his email password floating around.

The Google spreadsheet format for this is
Name: Missionaries
| Discord ID | Emails | Privacy |


fix root.App.main.context.dispatcher.stores decryption

Seems to fix #1291 (tested both pycryptodome and cryptography).
Thanks to @alexa-infra for the code (I took care to set the correct author for the commit).
Note that I removed encryption autodetection (if "_cs" in data and "_cr" in data) since I have no good ideas for implementing it in the current situation.
Please do tell me if I need to backport this to any other branch as well.

I see @alexa-infra already made a pull request - will close this one.


Publish 8.2-20230617231140+0000

Publish 8.2-20230617231140+0000

@bot-gradle test and merge

I've triggered a build for you. Click here to see all failures if there's any.


Glitch on Migrate From GitHub  screen (mirroring the repo)

Description

My browser is 110.0.1 Firefox (64 bit)
Gitea version is Version: 1.20.0+dev-165-gc492e8631
Official try instance. Path https://try.gitea.io/repo/migrate?service_type=2&org=&mirror=
Access token is provided (entered into the Access Token field via copypasting)
Actual Result: Checkboxes for Labels, Issues, PRs, Releases, Miltesones are still disabled.
Expected Result: After changing Access Token field Gitea should enable these checkboxes, thus they're should be enabled.

Gitea Version
Version: 1.20.0+dev-165-gc492e8631
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
n/d
Operating System
n/d
How are you running Gitea?
I don't. I use Gitea Demo site
Database
None

This is on purpose as you have "mirror" selected. Issue/etc.. mirroring are not (yet) possible.


chore: use Apple Silicon Runner

Closes #1341

Thanks @judahrand . We've enabled apple runner in #1577 as well.


FQDN requirement to resolve internal hostnames

JIRA: DOCS-5349

The only change here is this part:
(make sure to specify FQDNs, otherwise the VPC default resolver will take place).
This is not quite right. It should read:
(make sure your applications call the backend resources by FQDN).

Thanks @sjsheridan, just fixed it, let me know if any other changes are needed.


Restore getting started section

This was an accidental deletion in #708

Codecov Report

Merging #712 (7466090) into main (0d3d3af) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #712   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          323       323
  Lines        19890     19890
=========================================
  Hits         19890     19890

Continue to review full report at Codecov.

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


Whether the latest version has been tried

[X] I have updated TrChat to the latest version, and the issue is also reproduced.

Have you checked the Wiki

[x] I have checked the Wiki for this problem and determined that the problem exists.

Server environment
/version结果：
This server is running Paper version git-Paper-550 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 483368e on ver/1.19.4)
/plugins结果：
AngelChest, AuthMe, BetterGUI, BlockLocker, ChestSort, Chunky, Citizens, CMILib, ColoredAnvils, CoreProtect
[11:12:49 INFO]:  CoreProtectTNT, CrackShot, DieMessage, Elevator, Geyser-Spigot, GSit, Images, KeepChunks, LiteSignIn, LuckPerms
[11:12:49 INFO]:  NekoMaid, PerWorldBlock, PlaceholderAPI, PlayerTitle, PlugManX, ProtocolLib, Quests, QuickShop, Residence, *ServerListPlus
[11:12:49 INFO]:  ServerMonitor, Shopkeepers, *SuperBan, TabTPS, Uniporter, Vault, ViaBackwards, ViaVersion, WorldEdit, XConomy

只会下载一次

我每次启动服务器此插件都会下载一次,无论之前是否下载过

我每次启动服务器此插件都会下载一次,无论之前是否下载过

请检查libs文件夹内文件是否会缺失，一般来说Downloading ...只会在第一次启动时出现(下载)
而且这些大部分是插件运行所需依赖，全部打包进插件会太大才用的动态下载

2.0.12已经解决


contact section is not responsive and navigation is not proper

Contact Section Not Responsive:
The contact section does not adjust properly on mobile devices, causing layout issues and making it difficult for users to access or fill out the contact form.
Navigation Problems:
The navigation menu is not functioning as expected. Links may be unresponsive or misaligned, leading to a confusing user experience. Users may struggle to find important sections of the site.
I can solve this issue please assign to me
Record

[x] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Sir please reply me so  that I will start working on it.

Please  reply me.


Implementing alerts and doing some refactoring.

Detailed description:
Moving everything related for monitoring to folder monitoring. And changing the participation rate to start at value 100.
Which issue(s) this PR fixes:
Fixes #363
Special notes for your reviewer:
Checklist

[x] Documentation added
[ ] Tests updated

done :)


Update Cadence (statsd client) to version 0.11.0

Update to the latest version of Cadence (0.11.0). This upgrade involves a breaking change (the generic parameter was removed from StatsdClient) hence this PR. Thanks!

Hey @56quarters ,
Thanks for catching this and upgrading it! I'll go ahead, and merge this in, bumping the major version.

Awesome, thanks!

@56quarters this is now available on crates.io as v1.0.0


公式编译报错 Use of \reserved@a doesn't match its definition.

每一个公式都会出现这个 报错
Use of \reserved@a doesn't match its definition.
如图，

这行就出现上面的错误，请问是什么原因呢？

You may need to download the full package, there are some fonts in the font folder used in the template.

我是直接clone整个项目使用的

实测TeX Live 2023，Windows 10 无任何问题。

It was closed for a long time with no response.


Add RAND_UNIMPLEMENTED error code

See old GitHub PR #38.
Trivial change, completely re-implemented by me.

make update to update the list of errors in .c and .h files?

Forgot to push those files, thanks.  updated commit pushed.

thanks.


(AzureCXP) fixes MicrosoftDocs/azure-docs#94939

Reverted a change that was done based on the feedback from https://github.com/MicrosoftDocs/azure-docs/issues/94939
Managed image is still not supported

@PriyankaRudramaina : Thanks for your contribution! The author(s) have been notified to review your proposed change.

IMPORTANT: When this content is ready to merge, the reviewer must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Applicative ping and/or keepalive

I would like to propose adding a new concept: applicative ping (that can also be used as keepalive).
This can be implemented as a specific REQUEST_RESPONSE / RESPONSE or as a new message type (I don't have any strong opinion yet).
This can allow us to do quick and efficient failure detection (e.g. phi accrual detector)

I had a chat on this with @tmontgomery and the opinion at that point was that it can be an optional (but a prescribed best practice) application concern and not a part of the protocol.
For the request type, I think it should be a REQUEST_SUBSCRIPTION request so that it can be subject to flow control semantics as opposed to every heartbeat being a new request. Also, the keepalive should be acknowledged by the peer to handle half-close TCP connections. So, it will be a ping-pong as opposed to a ping :)

This falls into the area of handling the unexpected. Liveness for a duplex channel should be dual, but it should be 1 ends responsibility to initiate. If the protocol needs to provide this to the applications, then it should be baked in and should handle half-open sockets as well as any lack of response.
SUBSCRIPTION semantics aren't quite right. It does inform one side, but not the other. REQUEST_RESPONSE is closer, but still not quite right for all cases.
Application keepalive covers a lot of ground.

loss of continuity of physical network
loss of continuity of transport
loss of continuity of ReactiveSocket layer on 1 side
loss of continuity of application layer on 1 side

If this should be a protocol concern, we can add a PING frame much like WebSockets has. Optionally used.

KEEPALIVE frame is being added that this can utilize.

Closing this issue:
KEEPALIVE has been added, and applicative ping should be a normal request/response (in order to properly measure application queuing time).


ToSignalOptions - match 18.1 syntax

Angular 18.1 adds a generic type to ToSignalOptions - this PR reflects this change in toLazySignal()

Well, test fails because package.json's dep is 18.0.3, not 18.1.


Update cloning target

Update cloning target from tensorflow/tensorflow to tensorflow/tflite-micro.

Sorry! Closing as duplicate to PR #58753 .


Do Not Actually Merge This is a example for showing how git works

this is an example you would put your description here

Closing as this is just an example of how git works and will not be merged


Added C++ files

Issue no #48

@astha2412 link the cpp course on home page in your next PR

And add content in 4 topics in one PR

Ok
On Fri, 31 Dec, 2021, 2:51 pm Arpit Jain, @.***> wrote:

And add content in 4 topics in one PR
—
Reply to this email directly, view it on GitHub
https://github.com/arpit456jain/CodingEasy/pull/66#issuecomment-1003319986,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUX5EYLTX6BAJ6F63DKUG3DUTVYZ3ANCNFSM5LA2UJ3Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>


NSString stringByRemovingPercentEncoding missing method

NSString is missing stringByRemovingPercentEncoding

Hi @mlfarrell, this should be implemented in the latest SDKs.


Fix LSTM for omitted upstream gradients

Same fix as https://github.com/chainer/chainer/pull/7891 but for LSTM, instead of SLSTM.
The double backward implementation can probably be further optimized by the way, but that should probably be done in a different PR and my understanding is that this omitted gradient is a rather rare case in practice.

Jenkins, test this please

Jenkins CI test (for commit 1e128aa0ee1bf41b7b8970ea0177b627585a72a8, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit 1e128aa0ee1bf41b7b8970ea0177b627585a72a8, target branch master) succeeded!


Can't download Twitch Videos

How can you be able to set up an account on github, screenshot the message and create a new issue but in the same time not just read the message shown on your screenshot?
The video is for subscribers only and Twitch removed the ability for 3rd party software - such as TwitchLeecher - to download such videos.
So: It's a known limitation and there's nothing to do about it.

Sometimes I wonder.....


Update @grpc/grpc-js

Security vulnerability scan found an issue with grpc-js:
https://github.com/hyperledger/fabric-chaincode-node/actions/runs/9475979432
I was going to update fabric-shim package.json to 1.8.22, but then realized I don't understand all the dependency files such as common/config/rush/pnpm-lock.yaml. Is this file managed by pnpm or rush? What command should be used to update the dependencies?
Is looks like CONTRIBUTING.md has information about rush, but I wanted to confirm that information is up to date and perhaps update it with the proper rush guidance for updating a dependency.
Also, is it typically safe and advisable to jump to new minor versions of grpc-js, e.g. 1.9.x or 1.10.x?
@bestbeforetoday @mbwhite Can you advise?

Updating to the latest minor release version of @grpc/grpc-js is generally fine. If you're updating dependencies then I would look to do that. If there are any other out-of-date dependencies that can be safely updated, this might be a good opportunity to do that too since we'll want to publish a new release with the vulnerability addressed.
I notice that fabric-shim depends on an old version of @hyperledger/fabric-protos. It also depends on @grpc/proto-loader but I don't spot any code that imports that so it can probably be removed.
There is Rush documentation for modifying dependencies. The repository also contains a script in common/scripts to run Rush without it being installed globally. For example, in the libraries/fabric-shim directory, you could run:
node ../../common/scripts/install-run-rush.js add --package @grpc/grpc-js@latest

Always go via rush to update dependencies - this will then delegate to pnpm for the actual work (it was more efficient at the time to use pnpm rather than npm or yarn)
Those scripts @bestbeforetoday are the recommended way of running the tool when in a CI environment. Without needing to install the tool itself.

Guidance provided in this issue has been added to CONTRIBUTING.md in https://github.com/hyperledger/fabric-chaincode-node/pull/432.


version 3.14.1 is vulnerable to stored xss or ssrf via file upload.

Describe your problem
I found a cross-site scripting attack on the new content creating page http://localhost:800/admin/new-content
it will execute the script in user context allowing the attacker to access any cookies or sessions tokens retained
by the browser.
Stored XSS, also known as persistent XSS, is the more damaging than non-persistent XSS. It occurs when a malicious script is injected directly into a vulnerable web application.
Steps to reproduce the problem

login into the account

click on the new content like in that image

click on the images button

select the payload svg file which is injected with xss payload or ssrf payload

insert and save the page
copy the image link and open in the new tab

You need to have access to the admin panel to change configurations and store XSS. Feel free to provide a solution via PR. Thank you for reporting the issue.

You can reproduce it in even author unprivilaged user


Authentication

What's the state of authentication in sixpack server?  How can I limit the access to both sixpack server and sixpack web?
IP based whitelisting won't work for heroku or any cloud-based, auto-provisioned servers/containers, because the IPs assigned to them are dynamic.

We basically don't need to protect sixpack-server, and in this would break the JS client.
Sixpack web can be put behind any sort of auth you like, we use Github oAuth at SeatGeek.

thanks


Configuration Environment

@NathanWalker have a question for you! I see that you and me was working at the same problem/feature. The Environment Configuration one.
I see your commit (https://github.com/NathanWalker/angular2-seed-advanced/commit/6796bdfce173a91fed1658605b93f5fbe555a3bf) and i have made another (https://github.com/jvitor83/angular2-seed-advanced-1/commit/58ea36ecc651dfe07725f9c4e999a8c33d5555ab) that solve the same problem, but with a different approach. Was about to make a PR to the seed-advanced, but you make it first.
I want you to take a look and see if its worth to merge using this aproach.
What i need is to build/test against multiples configurations/environments (like the parent seed allows to do with the npm start -- --conf-env dev). I have been thinking about how to achieve this.
What i have come in mind was to "Create a hook at nativescript cli on before-prepare that":
1 - Use the existing build task gulp build.dev --config-env dev to transpile the env.config.ts (using the templateLocals of gulp)
2 - And replacing the env.config.js generated by the nativescript transpilation by the one generated by gulp (which has the config)
I have created this and it works.
The final scripts at package.json to run the ns will be something like npm run clean.dist && cd nativescript && tns emulate android and the command to run with the specific environment will be SET APP_CONFIG_ENV=prod && npm run start.livesync.android which is equivalent to npm start -- --conf-env dev from the parent seed. But it works without executing with the Environment Variable too like npm run start.livesync.android as usual (it defaults to the dev).
Just to clarify: The reason i don't create with the same parameter (like npm run start.android -- --conf-env dev) is because the tns cli don't have any 'extended argument' that can be passed through the hook, the only way was using an custom environment variable APP_CONFIG_ENV.

My goal was to be able to change the config at build time by passing some parameter and with this:
SET APP_CONFIG_ENV=prod && npm run start.livesync.android
I could achieve that like the parent seed:
npm start -- --conf-env prod

Can you try and see if its valid or need any change?
Source => https://github.com/jvitor83/angular2-seed-advanced-1
Commit => https://github.com/jvitor83/angular2-seed-advanced-1/commit/58ea36ecc651dfe07725f9c4e999a8c33d5555ab

@jvitor83 I really really like this. The only negative is having to exclude the before-prepare hook and keep that on git. I wonder if we should make this a little npm plugin that could be installed into any {N} app? And maybe the environment config path could be configured by some setting in package that the hook would pick up?
Really appreciate this.

Well... I thought about that (create a npm plugin) but don't know exactly how.... It is too specific to this seed.
My aproach was to use the existing gulp build to reuse the conf-env already implemented.
To create a plugin to every {N} app, we would need to separate the command to build (which generate the env-conf.js from the one that copy the file... This will end up making the task to start.android/ios in this seed to do the build before (which i think is not a good thing since will make everyone to use the task and not to directly use tns emulate android...).
What you have thinking is to give the {N} hook some kind of path that will be "inserted" at the generated files right?
But what i don't know is how to make the app runtime to load this file?

Wich allow to get those configs from a global variable
Or maybe we don't need to? Leaving this to the dev to import?

Or we create something that get the config from a SO Environment Variable? Like set APP_CONFIG_ENV={ key:"value", key2:"value" } && tns emulate android ?
It is a little blurry to me yet what approach to follow or even if worth it.
What do you think?

Feel free to continue discussion here, just closing to cleanup outstanding issues. I believe we will leave the config how it has at moment. Can definitely revisit.


Make C++ extensions compile with correct compiler

Some extension files are C++ but have .c extensions. GCC will compile these
as C++, but clang will not.

Accepted the suggestion. Might be worth extending the formatting from llvmlite to numba.


Package not working on windows

Tried to test using the code defined in 'usage'
var keygen = require('ssh-keygen');
var fs = require('fs');

var location = __dirname + '/foo_rsa';
var comment =<EMAIL_ADDRESS>var password = 'keypassword'; // false and undefined will convert to an empty pw

keygen({
  location: location,
  comment: comment,
    password: password,
  read: true
}, function(err, out){
    if(err) return console.log('Something went wrong: '+err);
    console.log('Keys created!');
    console.log('private key: '+out.key);
    console.log('public key: '+out.pubKey);
});

CMD OUTPUT
Keys created!
private key: undefined
public key: undefined

There was no file created

SOLVED !!!
After a bit of debugging. There is an exe file in the bin directory of this library. When you try to open any of them manually you get an error saying that there are missing dll files related to MSYS. It took me all day to install MSYS properly. so here are the links to solve this problem as there are a lot of sources out there that didn't solve the problem.

https://www.youtube.com/watch?v=ySE4HN4jcVw  (follow the instructions in this tutorial)
if you have a missing dll still ... download this dll helper and it will fix it for you https://www.az-partners.net/apps/dll-helper/download?ap=25


aten::_fft_c2c

The operator was implemented by CPU fallback. MKL implementation will be tracked by following operator development task. Close the issue.


fix(cmake): fix external library mode

Summary
According to

cmake_parse_arguments(<prefix> <options> <one_value_keywords> <multi_value_keywords> <args>...)

It seems like MODE should be in  position of one_value_keywords.
Impact
Testing
Tested with nuttx_add_external_library(lvgl MODE KERNEL) and message print it does go to correct branch.

@XuNeo please rebase your change, ci break was fixed.


Removing accidental binary inclusion

didn't mean to include the build the first time around.

ah thanks. didnt even see that


NPM is installing a previous version 3.4.1 => 3.4.0

Hello,
I'm trying to install the version 3.4.1. npm i<EMAIL_ADDRESS>But the version actually installed is 3.4.0.
You can just click here https://registry.npmjs.org/emojionearea/-/emojionearea-3.4.1.tgz
The version installed from this link is 3.4.0.
Does anyone know why? or How could I fix it?
Thanks in advance.

hmm, very strange.
Fixed by publishing a new 3.4.2 version to npm

hmm, very strange.
Fixed by publishing a new 3.4.2 version to npm

Thank you!!!


Adds a check in order to prevent terminating on first step for functions with initial condition yielding 0 in function evaluation. Corresponding tests.

Corresponding to issue #47 which states function whose initial value is zero are considered terminated as a result of their initial function difference value being zero.
As for the commit itself, I'm not sure if using jnp.where is the way since I'm relatively new to jax.

This looks great, thank you! Indeed I believe jnp.where is the appropriate thing here.
Merged :)


External links showing as "Broken URLs"

Hi!
I've just started using SeoToolkit and I've got error messages consistently for broken links. They're all external links and I think there's different reasons behind each, but I figured I'd mention them:

1. Broken url<EMAIL_ADDRESS>(302)
2. Broken url: https://www.linkedin.com/company/nightingale-hq/ (999)
3. Broken url: https://twitter.com/nightingalehqai (403)

is an outlook link to a calendar bookings form - unsure if anything can be done for that to not be an error?
is LinkedIn! All links to LinkedIn pages get 999s, so any advice on that would be ideal
is Twitter/X, which I'm guessing will always error as you need to be logged in to Twitter/X to access the content there.

Anyway, let me know if there's anything I can do at my end for any of these issues!
Cheers,
Rich

Hi @jacksorjacksor
Thank you for the report. Those are indeed annoying to see, especially if they don't represent an issue. I'll see if I can add some logic in the codebase to ignore those URLs

Hi @patrickdemooij9 - ah thank you!
I, of course, trust your judgement on the best way to handle these sorts of errors. I was considering that having an "exceptions" list which can be manually defined by an administrator to control what URLs should be ignored might be appropriate. I was just checking whether I'd done something wrong at my end!
Thanks again for your prompt response.

Yeah, I was thinking about something like that as well. And no, you didn't do anything wrong. Some websites just try to block crawlers from checking their pages and unfortunately we'll then see broken links


Question: Source for json?

From the README:

In order do (de)serialize provider's configuration, import the generated module in your application.

It seems like the schema of these structs don't exactly match the output of terraform show json <plan file> or  terraform-config-inspect --json- could you please point me at where / how you are extracting JSON from Terraform modules that does match this schema? Sorry if I'm missing something obvious.

Hi Robert,
The output of those commands is a state JSON file, which is an internal representation of the current infrastructure state used by Terraform to derive which changes have to be made upon applying configuration changes. For more information please refer to : https://www.terraform.io/docs/language/state/index.html
Conversely, tfschema-bindgen deals with strongly typed serialization/deserialization of terraform configuration files for a given set of previously mapped provider schemas.

Thank you for the reply. I have been using it to generate files in this format (.tf.json). I haven't found any way to get that format out of Terraform though, I was hoping you had a method for converting .tf files from HCL to JSON. It seems that the provider schema, which you parse here, is all that would be needed to build an hcldec spec to do that.

Unfortunately AFAIK there is no Serde support for HCL yet. Therefore, cannot parse HCL configuration files as there is no deserializer. Conversely, once deserialized, it would be possible to serialize the in-memory representation back to JSON.
As a workaround, you may want to convert the HCL formatted TF file to JSON before digesting it with tfschema-bindgen. There's a command line tool named json2hcl (https://github.com/kvz/json2hcl) that does just that. Here's an example invocation :
json2hcl -reverse < infra_hcl.tf > infra.tf.json

Thank you for sharing that. Unfortunately that tool can't parse documents which contain more modern features of Terraform such as for loops like this:
 usernames = [
    for i in range(5) : format("user%02d", i)
 ]

(which is a big syntactical change). I'm not 100% sure `hcldec' could do it either, it just seems like the only current prospect.


chapter 2-2: bot doesn't react to new tradeoffers

I followed your guide (thank you a lot btw) and everything went smooth so far, now I'm stuck though as the bot won't react to sent tradeoffers. From what I understand the even newOffer is never registered (I could be wrong I'm pretty new to coding). The bot definitely does get the offers, I can even log into the account and accept them manually. I downloaded your code and tried with that still no luck. Any help would be appreciated!

The event which is triggered when you receive an event is located here. Also - make sure your bot is actually successfully logging in and that the bot is on when it receives an offer.

Bot is logged in, I get the message from the cmd and I can see him online. I tried a console log in front of the if statement under the manager.on but got no results either. The webSession listen seems to work as I can print the sessionid and cookies. What's the best way to make sure the manager instance is running?

Hmm, interesting. I would recommend adding the following code to your app and tell me what it outputs:
manager.on('pollFailure', () => {
    console.log('poll failure');
});

manager.on('debug', (msg) => {
    console.log(`debug: ${msg}`);
});

@andrewda This isn't part of the issue, but I can't find a way to thank you for making this great tutorial and to tell you to keep going with it! I'm looking forwards to being able to fetch and show a users inventory on the site!

@DopplaCSGO sure no problem! Hope it helps and proves useful!

@andrewda Thanks! Just be sure to bless us with it soon and not let it die! <3

thank you for your efforts; it was an issue with the account. I tried on a different one and it worked just fine. Sorry for stealing your time.

@andrewda So this will only work on steam account that are not limited? You have to spend 5$ first to be able to accept donations? Thanks for guide tho man.


ucentral schema update: added afc support

ucentral schema update: added afc support
https://telecominfraproject.atlassian.net/browse/WIFI-12748
Description
Update to internal schema in the gateway code is required to ensure code is in-sync with schema version on Github.
Summary of changes

Added section to enabled AFC configuration
Additional updates listed below.

The following updates to schema are also included in this PR:
fix bss color handling
https://github.com/Telecominfraproject/wlan-ucentral-schema/commit/da090931f0f12206bb86e60fc73640a2f1ee2826
drop ports.duplex support
https://github.com/Telecominfraproject/wlan-ucentral-schema/commit/35da0a1cd0cc9185dfdbdb112610487c19e106aa
add support for device fingerprinting
https://github.com/Telecominfraproject/wlan-ucentral-schema/commit/cb1c18db707dc86c7eeb3e8828c8f37a689fe644

Looks good.


could not determine kind of name for C.ERROR_INSUFICIENT_MEMORY

It appears that there is a typo in error.go...
C.ERROR_INSUFICIENT_MEMORY:           "insufficient memory",
should be
C.ERROR_INSUFFICIENT_MEMORY:           "insufficient memory",
This does not make it work for me yet, but at least now I am getting errors that make some sense...

The typo was in previous versions of YARA -- and by not keeping the misspelled version of the constant around, the YARA public API was broken. See YARA issue #623

@jdrissel YARA PR #623 has been merged. Since it appears that you were using a git snapshot of YARA anyhow, would you mind updating that and giving it another try? Thanks

Changes to the yara project fixed this.


Handler should be a struct type

Instead of a func type.
type Handler struct {
    h func([][]byte) ([]byte, error)
    argmode string
    args
    help string
}
AddHandler(name string, h *Handler)

This enables #16

Changing my mind again. Only the args and help part of this should be deferred.

Closing for the same reason as #16


error

Unknown error when logging: Cannot connect to host www.kucoin.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')]

Install SSL certificates


Query on using EBL model for EBL correction

I want to evaluate the level of EBL absorption in a LAT spectrum. I came across this girhub repository which provided a hint that some package is available for using different model (e.g. Franceschini 2008, Stecker et al 2006) for EBL correction. I cannot figure out a way to use these models in the ExpCutoff fitting. I also came across issue number #57  which hinted at a possible way to measure the level of absorption for different models.
How can I include different EBL models for cutoff correction?
Please suggest

The XML format for including the EBL in the ExpCutoff fitting is as follows. You can see the differences in the "spectrum type" line and the EBL lines that follow the ExpCutoff definition. There you have to adjust redshift, tau_norm to your source and value in ebl_model refers to the models described in https://github.com/fermi-lat/celestialSources/blob/master/eblAtten/data/README_EBLmodels.txt
Finally, make sure that RA and Dec in skydirfunction are correct for your source position

Right click to download XML file
https://fermi.gsfc.nasa.gov/ssc/data/analysis/scitools/expebl.xml

That's the optical depth for the EBL model. You can read more about that in the following link for instance
https://arxiv.org/pdf/1705.10256v1.pdf


is boost::beast::tcp_stream's expires_after also work for boost::asio::read(boost::beast::tcp_stream)

beast::tcp_stream has async_read_some function buy But has no async_read function.
so I use boost::asio::read for beast::tcp_stream。
I don't know if the timeout and rate limit also work .

It works if you use asio::async_read. The sync versions don't support timeouts.


chore: release 2.15.0

:robot: I have created a release *beep* *boop*
2.15.0 (2024-09-16)
Features

upgrade to bee-js 8 (#531) (e8b1842)

Bug Fixes

handle missing chequebook in addresses command (#534) (05cb0ed)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ethersphere/swarm-cli/releases/tag/v2.15.0 :sunflower:


update Makefile for supporting nv to update.

this pr:

Add sm_90 support for nvcc >= 11.8
Remove sm_35 suport for nvcc >= 12.0

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


hbase10 test： performance problem

use ycsb load workloada, reach nearly 1,600 qps, i expects it can easily reach 10,000+(single client with threads=1). Becase using baidu's database tera , in sequence write mode, its write qps can be 100,000 ~ 200,000 qps. Is thera anything wrong in default configuration?

Test env: 10 datanodes, 10 regionservers, 10 GigE network

Did you test baidu's tera on your servers?

Closing due to no update.


Fix iOS image loading process outputting alpha-premultiplied colours

Almost (closes) https://github.com/ppy/osu/issues/9922
Closes https://github.com/ppy/osu/issues/19957

Marking as draft pending performance profiling and figuring out why there are still noticeable artifacts in intro even with this PR...;
By the nature of iOS, no image can be provided as raw pixel data without the colour components already being alpha-premultiplied, so we have to unapply that to have things working.
Since the processing logic was directly converting the image to raw pixel data in RGBA8 format, premultiplication becomes a very lossy process as the alpha component approaches zero. In other words, a pixel of (79, 79, 79, 4) when premultiplied becomes ~(1, 1, 1, 4), unapplying on the result yields (64, 64, 64, 4), which is off from the original by 15 degrees.
Therefore, I've rewritten the logic to render in floating-point format, giving enough precision to handle the case above. I'm not 100% sure about the performance implications of this but I would like to hope it's far less than loading the image through ImageSharp.

After benchmarking this, it turns out it's completely slow. Using CGBitmapContext with a for-loop that processes each pixel and "un-premultiplies" it was also comparatively slower than master. However, thanks to vImage which performs on par (and if not) faster than master, https://github.com/ppy/osu-framework/pull/6470 supersedes this.


Add documentation for immutability

need some explaination regarding the behavior of common collection functions (e.g., add, remove) when called on non-primitive data types within signals, specifically addressing how they relate to immutability
final list = [].toSignal();

// is this going to mutate the original list or not?
list.add('something');
// this has no effect on the signal hence the ui will never update
list.value.add('something'); ```

Hi @sanba-anass
You can find the main documentation here
https://dartsignals.dev/value/list/
You can also check list signal using mixin
https://github.com/rodydavis/signals.dart/blob/2aae336a0604d7801603bf0a7e36acc05988a0d9/packages/signals_flutter/lib/src/mixins/signals.dart#L115

Signals just wrap normal dart core object behaviors, so if you create a signal from an immutable list then it would not mutate because it would throw an error.
If you add with .value it still updates the original list but no event is fired.


Add to_numeric implementation

Signed-off-by: Yaroslav Igoshev<EMAIL_ADDRESS>
What do these changes do?

 CI is red because of codecov.


Timestamp parsing error

Reccieved the following error message:
Unexpected time format in "5. november 2016 kl. 02:39 UTC+01". This program is optimized to accept English locale time formatting, but will try its best to parse other language time formatting at heavy efficiency costs. Apparently, the time stamp formatting your archive uses has somehow eluded even that.
If you downloaded your Facebook data in a different language, you can try temporarily switching your Facebook language settings to English (US), re-download, and try again. If that doesn't help, then please report this as a bug on the associated GitHub page.
The facebook profile uses Norwegian(Bokmål).
EDIT: I forgot to mention that your tool looks really awesome and i'm looking forward to testing it!

Hi there, thanks for posting this issue! I tried hard-coding support for Norwegian Bokmål based on the sample you provided (... and will eventually try to cover all other supported Facebook languages as well).
Please try with the new version 0.8.post3 and let me know if it fixes things for you :)

I'll assume this is working now. Please open another issue if not.

Yes it worked.  However the test machine crashed as it was running Ubuntu
in VM.  The timestamp parsing worked perfectly though! Thanks alot :)
Den søn. 4. des. 2016, 19.18 skrev Dillon Dixon<EMAIL_ADDRESS>
I'll assume this is working now. Please open another issue if not.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ownaginatious/fbchat-archive-parser/issues/16#issuecomment-264720459,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP5MM78Si3RG8a6_mXUhzsuJBpyK0hh8ks5rEwQLgaJpZM4K-_kY
.

That can happen If you have a large conversation history. To get around it, you can extract specific conversations instead using the -t switch. I'm trying to think of a better solution for the future.

Yeah, I'll try on a native install of Ubuntu now and see if it still crashes. Guessing it is a memory choke and a bit more work to fix than hardcoding a timestamp :)


Extend Resolve support for AncillaryVariable and CellMeasure

⚙ Feature Request

To extend the capability of iris.common.resolve.Resolve to be able to handle and resolve iris.coords.AncillaryVariable and iris.coords.CellMeasure metadata.
Motivation

This will enhance cube arithmetic to include this metadata in its resultant iris.cube.Cube result. Also it will provide a more complete and richer, generic way to combine common metadata through the direct use of iris.common.resolve.Resolve.

@bouweandela @zklaus Is this something you would be interested in for improving AncillaryVariable handling in cube arithmetic?

Sounds good! The docu gives some more details. Let's talk about it at the workshop?

Another extension that could be useful would be the extension to more than two cubes. I am thinking, for example, multi-model analysis with shared time and space axis thanks to prior regridding, or multi-variable analysis for one member.

@zklaus I think this might be possible... I can certainly see the benefit, as in, resolve this list/bunch of cubes to discover the common shape and metadata (if there is one, lenient or strict), then use the resolver as a factory to manufacture "like" cubes from several disparate models.
That's what you're suggesting here, right?

Exactly, @bjlittle!

@SciTools/peloton not a priority.
Please re-open if you disagree


Fails to find plasma-workspace .so files

yabi fails to find certain .so files of the installed package plasma-workspace
 🗸  Done
 ✗  Failed to find libraries:
 ✗     libkdeinit5_kcminit.so
 ✗     libkdeinit5_klipper.so
 ✗     libkfontinstui.so.5

https://dev.getsol.us/source/plasma-workspace/browse/master/pspec_x86_64.xml$62
we do have a special pattern for it inside the package.yml
https://dev.getsol.us/source/plasma-workspace/browse/master/package.yml$16

After a sec run only Klipper is left oO

It looks like libkdeinit5_kcminit.so and libkdeinit5_klipper.so are plugins, so it's only natural that they wouldn't have any matches for symbols. If libkfontinstui.so.5 is matching now, I don't think there's anything to broken here.


cgroup2: monitor OOMKill instead of OOM to prevent missing container events

When running on cgroup2, currently in a 1-container-pod-with-memory-limit configuration, no /tasks/oom events are generated. This is because the pod cgroup and container cgroups both get the same memory.max setting, and the oom events gets counted to the pod cgroup, while containerd monitors container cgroups for oom events. Fix that by monitoring oom_kill instead and reporting that.
oom_kill events are counted both to the pod and container cgroups.
My test case was the following kubernetes manifest:
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: stress
  name: stress
spec:
  replicas: 1
  selector:
    matchLabels:
      app: stress
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: stress
    spec:
      containers:
      - image: progrium/stress
        resources:
          limits:
            memory: "256Mi"
        name: stress
        args:
        - "--vm-bytes"
        - "128m"
        - "--vm"
        - "10"
status: {}

Related issue: https://github.com/k3s-io/k3s/issues/4572

Windows flaked.
/retest

Hi, is any one willing to review this?

Shouldn't this be emitted with another event type?

https://github.com/containerd/containerd/blob/main/pkg/cri/server/events.go#L333-L349
This code sets status.Reason = oomExitReason and oomExitReason = "OOMKilled" so I believe looking at the oom_kill will maintain the desired semantics of the event.

@AkihiroSuda, do you find my reasoning convincing?

What is the state of this PR? This is making Vertical Pod Autoscaler (kubernetes) not to react on OOMs correctly so has a potentially big impact of kubernetes users.

Will take a look tomorrow~

@jepio @AkihiroSuda This change looks good to me. This Linux patch updates cgroupv2 oom description<EMAIL_ADDRESS>I think oom_kill could be more compatible with cgroupv1.

Cherry-picking to v1.6.3

#6734


api: Remove call to fetchPod().

StatusPod() was calling StatusContainer(), but both were calling
fetchPod() for the same pod.
Introduce statusContainer() that accepts a Pod to avoid the double call.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

Coverage increased (+0.4%) to 67.661% when pulling 162411c4cec210686cd05f6da7bf8b7b3fdefffc on jodh-intel:remove-fetchpod-call into 028d87fb2c91768a53c6ece66b7baa94ca7deab0 on containers:master.

lgtm

@devimc - yep. Test added ;)

Coverage increased (+0.02%) to 67.312% when pulling 07ff99a2f7e27d422e70833c022377c91df23b90 on jodh-intel:remove-fetchpod-call into 028d87fb2c91768a53c6ece66b7baa94ca7deab0 on containers:master.

LGTM

LGTM

@jodh-intel thanks
lgtm


Simple and Fast border artefact reduction method

i'm not so strong in python, but there is very simple method for border artefact reduction, you just need to copy one border pixel outside picture.
Example: you have picture 10x10 pixels.

add one empty pixel on every side you will get 12x12 pixels image
copy every x=1 pixel to x=0 pixel
copy every x=10 pixel to x=11 pixel
copy every y=1 pixel to y=0 pixel
copy every y=10 pixel to y=11 pixel
you can use for PIL functions for this
draw image in atlas but reduce size back to original

I use this method in all my projects it give good image quality

thx 4 your issue
the method you proposed is for rectangle images without transparency
a similar approach is used in this project, which is called "Alpha bleeding"
"Transparent pixels get color of nearest solid pixel. These color values can reduce artifacts around sprites and remove dark halos at transparent borders."
i got an example  here
Original image:

Original image after alpha-remove

Original image after alpha-bleeding and alpha-remove


Have to change case when putting Bridge result on linux server.

Expected
Work fine.
Actual
Have to change case
Steps To Reproduce
Compiling Bridge program and uploading result to linux server and requesting www/demo,html. I have to change the case of the script tag.
See Also

#2757

Yes, this is an annoying problem with not being able to modify the .pp Template Parameters.
https://github.com/bridgedotnet/Bridge/blob/master/.build/files/demo.html.pp#L8
Maybe there is a way to pull a custom value that is created somehow in Bridge.targets.
@LeonidVeriga  might have some ideas.

This issue has been solved with the automatic generation of the index.html file. Please see Issue #2757 for more information. Also related to Issue #2755.


react-native-fs is not more deprecated, pls remove the statement :)

Hi there!
Just want to kindly ask if you could remove the statement, that react-native-fs is not maintained any more as it is active back again :) I am the new maintainer since some days.
thx and regards!

@itinance Amazing news! Good luck!


Update Db.php

In a case I have NULL in data value it is converted to string 'NULL' which is not acceptable, so I've fixed it to accept NULL.

@adamoki Please add a unit test which covers the behavior.

Closing due to lack of updates.


Clicking on an already filled cell incorrectly considered valid move

If a player clicks on an already filled cell that would send the next player to an already-won board if it wasn't filled, no mark is placed but the turn is considered played and valid. The next player can then choose anywhere to play.

Confirmed, still happening.

Still happens on a different scenario, when clicking on an empty cell from an already-won board. See attached history (replay using elm debugger).
history-23.txt


Add linux foundation footer

One of the requirements for the CNCF TOC (https://github.com/cncf/toc/issues/557) is to add a LF footer:

[ ]  Website: ensure LF footer is there and website guidelines followed

In this PR, I add a footer on the landing page. I also changed the license headers that said "the Jetstack cert-manager authors" to "the cert-manager authors" in one single place (the README) instead of in every single file as proposed by the CNCF guideline.

Looks like my PR is a duplicate of https://github.com/cert-manager/website/pull/407. It was created 3 months ago by @meyskens, and for some reason is still not merged 🤨
I will close my PR and move the work to #407 instead if that's OK 👍

/close


Fix Build.cmd to include examples binaries in release zip file

The release zip file includes source files under "examples" folder. the fix is to include examples binaries in release zip file.
Refer to #289

Current coverage is 82.13%

Merging #400 into master will not affect coverage as of afae39b

@@            master    #400   diff @@
======================================
  Files           45      45
  Stmts         4645    4645
  Branches       416     416
  Methods
======================================
  Hit           3815    3815
  Partial        190     190
  Missed         640     640

Review entire Coverage Diff as of afae39b

Powered by Codecov. Updated on successful CI builds.

LGTM


Object.seal/isSealed documentation

Stole liberally from MDN

Modifies the object but does not return unit. The code examples are very weird. With typical Rescript Object syntax everything is immutable.

Consolidated into https://github.com/rescript-association/rescript-core/pull/117


Plugin is responding to headphones buttons but when i press the volume up and volume down button. It would only increase the device volume but doesn't fire an event

I am trying to develop an app where when i press the input volume up button on headphone it handles the event and do something in the app but the headset buttons are not firing any event.
Any idea why is this happening ?

Check the readme, some buttons only fire events on certain operating systems.  iOS doesn’t fire volume events and will only change device volume.  This is an iOS limitation.
Android should fire volume change events.

Updated. Managed to solve the issue but now when press the volume buttons then it would not fire event rather than that it would increase the device volume.

Hi! I know it's been a while but how did you managed to make it work in Ionic3. I can't get the events from headphones. I only need the main button.

What do you mean by main button ?

Sorry if I explained myself wrong. Headphones usually have 3 buttons: vol+, vol- and the one you use to play/pause. I don't know its name. My app recognize when I plug/unplug the headphones, but none of the buttons.

As far as i remember i was actually not able to get the middle button working but was able to get vol+ and vol- button by listening for cordova events
please refer to this https://cordova.apache.org/docs/en/latest/cordova/events/events.html#volumedownbutton


Having trouble creating the app

Having trouble creating the app：
Aborting installation.
Unexpected error. Please report it as a bug:
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:700:9)
at spawn (C:\Users\ASUS\AppData\Roaming\npm\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24)
at C:\Users\ASUS\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:383:19
at new Promise ()
at install (C:\Users\ASUS\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:334:10)
at C:\Users\ASUS\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:461:16
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
still don't know how to solve

Looks like you are on a wrong repo. the issue is with Create-React-App you should file an issue there. https://github.com/facebook/create-react-app/issues .
try running npm cache clean --force and re-run npx create-react-app my-app

option 1 : First create a new empty folder, within the folder add "npm install" or "npm install -g npm"
option 2 : In the current working folder "npm cache clean --force" than add "npm install" -----> "npm start"

thanks,I will try it.
---Original---
From: @.>
Date: Tue, Jul 26, 2022 16:42 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [reactjs/reactjs.org] Having trouble creating the app (Issue#4838)
option 1 : First create a new empty folder, within the folder add "npm install" or "npm install -g npm"
option 2 : In the current working folder "npm cache clean --force" than add "npm install" -----> "npm start"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Support requests filed as GitHub issues often go unanswered. We want you to find the answer you're looking for, so we suggest the following alternatives:
Coding Questions
If you have a coding question related to React and React DOM, it might be better suited for Stack Overflow. It's a great place to browse through frequent questions about using React, as well as ask for help with specific questions.
https://stackoverflow.com/questions/tagged/react
Talk to other React developers
There are many online forums which are a great place for discussion about best practices and application architecture as well as the future of React.
https://reactjs.org/community/support.html


JBDS-3828 Virtualbox fails to install

Codecov Report

Merging #592 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #592      +/-   ##
=========================================
+ Coverage   85.38%   85.4%   +0.01%
=========================================
  Files          25      25
  Lines        2361    2500     +139
  Branches      203     203
=========================================
+ Hits         2016    2135     +119
- Misses        345     365      +20

Impacted Files
Coverage Δ

browser/model/virtualbox.js
67.59% <100%> (-0.41%)
:x:

browser/services/platform.js
86.71% <0%> (-1.75%)
:x:

browser/directives/breadcrumb.js
10% <0%> (-1.12%)
:x:

browser/services/request.js
20% <0%> (-0.84%)
:x:

browser/directives/pathValidator.js
82.97% <0%> (-0.36%)
:x:

browser/pages/start/controller.js
44.79% <0%> (-0.04%)
:x:

browser/model/devstudio-autoinstall.js
100% <0%> (ø)
:white_check_mark:

browser/model/cdk.js
100% <0%> (ø)
:white_check_mark:

browser/pages/location/controller.js
100% <0%> (ø)
:white_check_mark:

... and 14 more

Continue to review full report at Codecov.

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

common.cab and *.msi files should be removed after installation.


Error: parseAndCheckLogin got status code: 408 - When trying to upload gif

Trying to replicate Slack's random Giphy integration for my personal chatbot. I am grabbing a gif from their api, downloading that locally, and then trying to send that using your api.
Here is the code I am using to do this:
var file = fs.createWriteStream("meme.gif");
var targetUrl = ...;
var gifRequest = http.get(targetUrl, function(gifResponse) {
  gifResponse.pipe(file);

  var message = {
    body: "Here's that fresh meme ya ordered!",
    attachment: fs.createReadStream(__dirname + '/meme.gif')
  }

  api.sendMessage(message, threadID);
});

This results in the following error: (Note I have added the console.log(data.body); to the utils.js as mentioned in #152
WARN parseAndCheckLogin: Got status code 500 retrying...
for (;;); {"t":"heartbeat"}

info Got answer in  50416
<!DOCTYPE html>

    <title>Facebook | Error</title>
    <meta charset="utf-8">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="cache-control" content="no-store">
    <meta http-equiv="cache-control" content="max-age=0">
    <meta http-equiv="expires" content="-1">
    <meta http-equiv="pragma" content="no-cache">
    <meta name="robots" content="noindex,nofollow">

Sorry, something went wrong.

        We're working on it and we'll get it fixed as soon as we can.

        Go Back

        Facebook

          © 2016

          ·
          Help Center

ERR! Error in uploadAttachment Error: parseAndCheckLogin got status code: 408. Bailing out of trying to parse response.
ERR! Error in uploadAttachment     at /Users/marcel/Development/facebook-chat-bot/node_modules/facebook-chat-api/utils.js:539:42
ERR! Error in uploadAttachment     at tryCatcher (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/util.js:26:23)
ERR! Error in uploadAttachment     at Function.Promise.attempt.Promise.try (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/method.js:31:24)
ERR! Error in uploadAttachment     at /Users/marcel/Development/facebook-chat-bot/node_modules/facebook-chat-api/utils.js:523:24
ERR! Error in uploadAttachment     at tryCatcher (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/util.js:26:23)
ERR! Error in uploadAttachment     at Promise._settlePromiseFromHandler (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/promise.js:510:31)
ERR! Error in uploadAttachment     at Promise._settlePromiseAt (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/promise.js:584:18)
ERR! Error in uploadAttachment     at Promise._settlePromises (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/promise.js:700:14)
ERR! Error in uploadAttachment     at Async._drainQueue (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/async.js:123:16)
ERR! Error in uploadAttachment     at Async._drainQueues (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/async.js:133:10)
ERR! Error in uploadAttachment     at Immediate.Async.drainQueues (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/async.js:15:14)
ERR! Error in uploadAttachment     at runCallback (timers.js:574:20)
ERR! Error in uploadAttachment     at tryOnImmediate (timers.js:554:5)
ERR! Error in uploadAttachment     at processImmediate [as _immediateCallback] (timers.js:533:5)
ERR! Error in uploadAttachment  Error: parseAndCheckLogin got status code: 408. Bailing out of trying to parse response.
ERR! Error in uploadAttachment     at /Users/marcel/Development/facebook-chat-bot/node_modules/facebook-chat-api/utils.js:539:42
ERR! Error in uploadAttachment     at tryCatcher (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/util.js:26:23)
ERR! Error in uploadAttachment     at Function.Promise.attempt.Promise.try (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/method.js:31:24)
ERR! Error in uploadAttachment     at /Users/marcel/Development/facebook-chat-bot/node_modules/facebook-chat-api/utils.js:523:24
ERR! Error in uploadAttachment     at tryCatcher (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/util.js:26:23)
ERR! Error in uploadAttachment     at Promise._settlePromiseFromHandler (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/promise.js:510:31)
ERR! Error in uploadAttachment     at Promise._settlePromiseAt (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/promise.js:584:18)
ERR! Error in uploadAttachment     at Promise._settlePromises (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/promise.js:700:14)
ERR! Error in uploadAttachment     at Async._drainQueue (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/async.js:123:16)
ERR! Error in uploadAttachment     at Async._drainQueues (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/async.js:133:10)
ERR! Error in uploadAttachment     at Immediate.Async.drainQueues (/Users/marcel/Development/facebook-chat-bot/node_modules/bluebird/js/main/async.js:15:14)
ERR! Error in uploadAttachment     at runCallback (timers.js:574:20)
ERR! Error in uploadAttachment     at tryOnImmediate (timers.js:554:5)
ERR! Error in uploadAttachment     at processImmediate [as _immediateCallback] (timers.js:533:5)
for (;;); {"t":"heartbeat"}

I can upload the gif fine using messenger.com.
Also, if I change attachment: fs.createReadStream(__dirname + '/meme.gif') to instead send '/meme.jpg' with a valid meme.jpg in that same directory it works perfectly.
Is this an issue with the way the api handles gifs, or perhaps am I creating the read stream incorrectly?
Any insight would be greatly appreciated.

Hmm, as you can see with #152, we've had some unresolved issues with gifs in the past.  Unfortunately the error facebook returns doesn't give us much indication as to the nature of the problem.
In your other situation, you're putting a hardcoded meme.jpg in the __dirname folder and running attachment: fs.createReadStream(__dirname + '/meme.gif') and it's working?
It strikes me that your read stream and your write stream don't have their locations specified the same way ("meme.gif") vs (__dirname + '/meme.gif').  Not sure why (though I'd hope that wouldn't be a problem)?
I suggested a workaround in #347 that you might find interesting.  @ivkos seems to be trying to solve a fairly similar problem, maybe we can pool resources.

Any luck with this issue?

Hey I just got that to work using the code below. I think the issue was using a writeStream instead of simply the response from the get request which is a readstream.
var targetUrl = "http://media.giphy.com/media/JhncGNdBoyeKk/giphy.gif";
  var gifRequest = require('http').get(targetUrl, function(gifResponse) {
    var message = {
      body: "Here's that fresh meme ya ordered!",
      attachment: gifResponse
    }

    api.sendMessage(message, threadID);
  });

Since this works I'm closing this issue. Feel free to re-open if you have any other issue.


Ellipsoid

The calculation part is not showing up. I would like to work on this issue please assign this to me.

Go ahead
Deadline 10 May,2021


Please merge features added by Alvaro Molina Alvarez

Hi,
I'm currently using your packages from pip (thanks!), but I've had to write a bunch of code to work around missing functionality - mainly related to json . Alvaro Molina Alvarez (@amolinaalvarez) has added a number of features including json support that I'm hoping you will be willing to merge. The diff is substantial but easy to follow and includes support for API calls currently not provided in your tree.
https://github.com/bennylope/pydiscourse/compare/master...amolinaalvarez:master
thanks,
kk

It looks like there are some great additions and I'd be happy to get them in here. Two big requirements though:

No breaking changes (without very good reasons, plus documentation)
A pull request

We're a little past this, but there are some guidelines in the contributing guide, and as long as the PR documents the discrete features, we can probably work with that.
Okay, so, breaking changes! I did a very quick review and noticed at least one breaking change that, if left in place, is a deal breaker. It's in pydiscourse/sso.py
Adding required arguments, like so, is a breaking change:
-def sso_redirect_url(nonce, secret, email, external_id, username, **kwargs):
+def sso_redirect_url(nonce, secret, email, external_id, username, name, avatar_url, bio, **kwargs):

I understand the value of having that data, but not everyone needs that data, and other people are using this without including those data. Which means if we include this, i.e. add new required arguments, then we've broken integrations for anyone using SSO who wants to use other features.

I've pushed three branches made from cherry picking changes by @amolinaalvarez , two of which I've turned in to pull requests (#9 and #10).

Update:
https://github.com/bennylope/pydiscourse/pull/10/commits/9fbfa3906004016080d296b15a1de657933c92c0

site_settings had changed signature and has been removed from the branch in
006b7d4

Thanks for merging those branches!
I'm closing this now, but if @amolinaalvarez updates his branch I may try and merge in some other bits - He still has my corrected suspend() which isn't currently in this version (and is currently broken in this version - https://github.com/amolinaalvarez/pydiscourse/pull/1 ).
kk


HSTS headers not set from behind a load balancer doing SSL termination

Strict-Transport-Security headers are not sent even though it's asked for in the configuration (config.hsts = "max-age=#{20.years.to_i}; includeSubdomains").
My best guess is that secure_headers ignores this setting when the website is accessed over HTTP. The problem is that I have a load balancer doing SSL termination, so even though the connection to the application server doesn't happen over HTTPS, I think the header should be set.
Or, at the very least, I think secure_headers should inspect the X-Forwarded-Proto sent by the load balancer, which indicates whether the connection to the LB itself is secure or not, and then determine whether or not to set Strict-Transport-Security based on that.
In case those things already happen, could someone help me troubleshoot this issue?
Expected outcome

I configure HSTS (config.hsts = "max-age=#{20.years.to_i}; includeSubdomains").
I do SSL termination on a load balancer that properly sets the X-Forwarded-Proto request header.
When I inspect the response headers, Strict-Transport-Security should be present.

Actual outcome

Strict-Transport-Security is not present.

Config
  SecureHeaders::Configuration.default do |config|
    config.cookies = {
      secure: true,
      httponly: true,
      samesite: {
        lax: true
      }
    }
    # Add "; preload" and submit the site to hstspreload.org for best protection.
    config.hsts = "max-age=#{20.years.to_i}; includeSubdomains"
    config.x_frame_options = "DENY"
    config.x_content_type_options = "nosniff"
    config.x_xss_protection = "1; mode=block"
    config.x_download_options = "noopen"
    config.x_permitted_cross_domain_policies = "none"
    config.referrer_policy = "no-referrer"
    config.clear_site_data = [
      "cache",
      "cookies",
      "storage",
      "executionContexts"
    ]
    config.csp = {
      # "meta" values. these will shaped the header, but the values are not included in the header.
      # report_only: true,      # default: false [DEPRECATED from 3.5.0: instead, configure csp_report_only]
      preserve_schemes: true, # default: false. Schemes are removed from host sources to save bytes and discourage mixed content.

      # directive values: these values will directly translate into source directives
      default_src: %w('self'),
      base_uri: %w('self'),
      #block_all_mixed_content: true, # see http://www.w3.org/TR/mixed-content/
      child_src: %w('self'), # if child-src isn't supported, the value for frame-src will be set.
      connect_src: %w(),
      font_src: %w('self'),
      form_action: %w('self'),
      frame_ancestors: %w('none'),
      img_src: %w('self' *),
      manifest_src: %w('self'),
      media_src: %w('self'),
      object_src: %w('self'),
      plugin_types: %w(),
      script_src: %w('self' 'unsafe-inline' maps.googleapis.com),
      style_src: %w('self' 'unsafe-inline'),
      #upgrade_insecure_requests: true, # see https://www.w3.org/TR/upgrade-insecure-requests/
    }
  end

Generated headers
cache-control:max-age=0, private, must-revalidate
clear-site-data:"cache", "cookies", "storage", "executionContexts"
content-encoding:gzip
content-security-policy:default-src 'self'; base-uri 'self'; child-src 'self'; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src *; manifest-src 'self'; media-src 'self'; object-src 'self'; script-src 'self' 'unsafe-inline' maps.googleapis.com; style-src 'self' 'unsafe-inline'
content-type:text/html; charset=utf-8
date:Fri, 28 Jul 2017 03:49:01 GMT
etag:W/"8b61adcbc96d2db706db920d21ff491a"
referrer-policy:no-referrer
server:nginx
set-cookie:_dialog_session=[REDACTED]; domain=[REDACTED]; path=/; HttpOnly; SameSite=Lax
status:200
vary:Accept-Encoding
x-content-type-options:nosniff
x-download-options:noopen
x-frame-options:DENY
x-permitted-cross-domain-policies:none
x-request-id:4ae3cea5-67ab-4062-8aeb-1f2de139ae28
x-runtime:0.506983
x-xss-protection:1; mode=block

Strange. We definitely [check for the value(https://github.com/twitter/secureheaders/blob/master/lib/secure_headers/middleware.rb#L53) of that header] and loadbalancer termination is definitely a common pattern (that I use).

@n2liquid what version are you using?

The code from which this logic was hoisted has changed to fall back to @request.scheme.
I suspect the version of rack itself is important here.

Also, adding a middleware that prints out env would be helpful in debugging this one.

Hi, @oreoshake. Yes, I was hesitant to suggest you might not be doing that already, as I think it's a pretty common pattern.
I'm using Rack 1.6 and secure_headers 3.6.7.
Could you suggest a middleware that prints env? I'm not sure how to do that since Ruby isn't really my thing; I'm implementing secure_headers on an existing application :)
TIA!

Thanks for the info, I'll try to reproduce this!
I'm commenting from my phone so the only hacky ways I can think of would be to

modify the (unpacked) secureheaders files - not an option if you don't vendor gems
write a custom middleware and insert it last

It's probably just easier to setup a proxy to inject the request header and throw a debug statement in locally source secureheaders code.

Good idea, I did curl -v -H'X-Forwarded-Proto: https' localhost:3000 and got the header back: Strict-Transport-Security: max-age=631152000; includeSubdomains.
I just realized it's probably another nginx proxy between the LB and Rails that's probably eating up the header. I'll let you know.

Ah great, a simple solution worked out better. I was assuming something else in the (app) stack was mucking with things. I'm closing this out but please do re-open if there's further issues.

Just confirmed the middle proxy was destroying the headers, as with this guy: https://serverfault.com/questions/515957/how-to-have-nginx-forward-the-http-x-forwarded-proto-header
Thanks ;)


PFS-29: Add manual credit

Codecov Report
Attention: Patch coverage is 61.57205% with 88 lines in your changes are missing coverage. Please review.

Project coverage is 61.71%. Comparing base (a457a89) to head (55718d3).
Report is 26 commits behind head on main.

Files
Patch %
Lines

finance-hub/internal/api/adjust_invoice.go
0.00%
43 Missing :warning:

finance-api/internal/service/ledger_entries.go
77.27%
7 Missing and 3 partials :warning:

finance-hub/internal/server/server.go
9.09%
10 Missing :warning:

finance-api/cmd/api/server.go
0.00%
9 Missing :warning:

finance-api/cmd/api/ledger_entries.go
89.18%
3 Missing and 1 partial :warning:

finance-api/internal/validation/validation.go
80.00%
2 Missing and 1 partial :warning:

shared/adjustment_type.go
0.00%
3 Missing :warning:

finance-hub/internal/server/route.go
0.00%
2 Missing :warning:

shared/error.go
0.00%
2 Missing :warning:

finance-api/main.go
0.00%
1 Missing :warning:

... and 1 more

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
+ Coverage   58.50%   61.71%   +3.20%
==========================================
  Files          30       61      +31
  Lines         870     2045    +1175
==========================================
+ Hits          509     1262     +753
- Misses        324      683     +359
- Partials       37      100      +63

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add order subscription support

Description
This Task will update README with order subscription support

:tada: This issue has been resolved in version 4.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Release Google.Cloud.Parallelstore.V1Beta version 1.0.0-beta04

Changes in this release:
New features

Add iam.googleapis.com/ServiceAccount resource definition (commit 30a556d)
Adding Import/Export BYOSA to the export Data request (commit 30a556d)
Adding Import/Export BYOSA to the import Data request (commit 30a556d)

Created release for Google.Cloud.Parallelstore.V1Beta-1.0.0-beta04


Unable to capture request/response into HAR with react-based web pages

Our website is react based, together with node.js.
When I try to capture traffic, the HAR file is pretty much empty. Here is an example:
{
  "log": {
    "version": "1.2",
    "creator": {
      "name": "BrowserMob Proxy",
      "version": "2.1.2",
      "comment": ""
    },
    "pages": [
      {
        "id": "Page 0",
        "startedDateTime": "2017-01-06T13:09:28.551-08:00",
        "title": "Page 0",
        "pageTimings": {
          "onLoad": 1,
          "comment": ""
        },
        "comment": ""
      },
      {
        "id": "Page 1",
        "startedDateTime": "2017-01-06T13:09:28.552-08:00",
        "title": "Page 1",
        "pageTimings": {
          "onLoad": 2022,
          "comment": ""
        },
        "comment": ""
      }
    ],
    "entries": [],
    "comment": ""
  }
}

Any suggestion of dealing with this situation?
proxy.enableHarCaptureTypes(CaptureType.getAllContentCaptureTypes());
proxy.newHar();
// do some page loading
proxy.endHar().writeTo(file);

It looks like the proxy isn't handling any requests. Are you configuring your browser to use the proxy?

Same with latest selenium 3.4.0 on Chrome 58