text:
Server Error (500) on Docker install

I have just tried this and the Postgres database has the below error

2021-10-01 12:51:13.657 UTC [539] ERROR:  relation "wol_websocket" does not exist at character 62,
2021-10-01 12:51:13.657 UTC [539] STATEMENT:  SELECT "wol_websocket"."id", "wol_websocket"."visitors" FROM "wol_websocket" ORDER BY "wol_websocket"."id" ASC LIMIT 1,
2021-10-01 12:51:12.655 UTC [538] STATEMENT:  SELECT "wol_websocket"."id", "wol_websocket"."visitors" FROM "wol_websocket" ORDER BY "wol_websocket"."id" ASC LIMIT 1,
2021-10-01 12:51:12.655 UTC [538] ERROR:  relation "wol_websocket" does not exist at character 62

The django container is erroring with the below:

[2021-10-01 13:52:36,727: ERROR/ForkPoolWorker-2] Task wol.tasks.scheduled_wakes[939342b1-1eb9-4f19-9cdb-9a0efe01fff2] raised unexpected: ProgrammingError('relation "wol_websocket" does not exist\nLINE 1: ..._websocket"."id", "wol_websocket"."visitors" FROM "wol_webso...\n                                                             ^\n'),
Traceback (most recent call last):,
return self.cursor.execute(sql, params),
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute,
psycopg2.errors.UndefinedTable: relation "wol_websocket" does not exist,
LINE 1: ..._websocket"."id", "wol_websocket"."visitors" FROM "wol_webso...,
,
^,
The above exception was the direct cause of the following exception:,
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 450, in trace_task,
R = retval = fun(*args, **kwargs),
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 731, in protected_call,
return self.run(*args, **kwargs),
File "/app/wol/tasks.py", line 74, in scheduled_wakes,
if Websocket.objects.first().visitors == 0:,
File "/usr/local/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method,
return getattr(self.get_queryset(), name)(*args, **kwargs),
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 674, in first,
for obj in (self if self.ordered else self.order_by('pk'))[:1]:,
self._fetch_all(),
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 280, in iter,
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1324, in _fetch_all,
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 51, in iter,
self._result_cache = list(self._iterable_class(self)),
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size),
cursor.execute(sql, params),
File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql,
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute,
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute),
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers,
return executor(sql, params, many, context),
File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in exit,
raise dj_exc_value.with_traceback(traceback) from exc_value,
django.db.utils.ProgrammingError: relation "wol_websocket" does not exist

File "/app/wol/tasks.py", line 74, in scheduled_wakes,
if Websocket.objects.first().visitors == 0:,

Here it's trying to get the current visitors from the database, but it seems there is no entry.
I can't seem to reproduce this on my side. Are there any changes you did to the compose file? What system are you running on?

Got it to work for some reason the bind mount I did for the database seemed to fail the first time. I deleted the folder then had the container restart, and it now works. Thanks

Happy to hear ;)


text:
add rocketMq message gray plugin

What type of PR is this?
Feature.
What this PR does / why we need it?
During gray deployment, gray instances need to consume or produce gray messages.
Which issue(s) this PR fixes？
Fixes https://github.com/sermant-io/Sermant/issues/1539
Does this PR introduce a user-facing change?
No

Describe your core logic of this feature as list

Core logic:
If the current instance service_meta matched serviceMeta config or current thread traffic tag matched trafficTag config, current instance mark as gray instance, or is base instance.
1、produce message
If current instance is gray, during produce message, set trafficTags in the message property.
2、consume message
gray instance
Only consume contains current consumerGroupTag corresponding traffic tags message.
base instance
auto model:
First, exclude consumerGroupTag corresponding traffic tags message that set in excludeGroupTags, dynamically querying whether there are new gray consumer group consume message, if have, exclude corresponding traffic tags message.
base mode:
Exclude consumerGroupTag corresponding traffic tags message that set in excludeGroupTags, if excludeGroupTags not set, then consume all message.

source: gharchive/pull-request

repo: sermant-io/Sermant

license_type: permissive

license_source: github-api


text:
Refactor routes

I'm not sure if it's useful to document the "proxy" routes. It feels like just a helper to debug this project, and not part of the project itself.

And agreed, we don't need to document the proxy routes.

authors: drairi zdrve

repo: sermoa/hue-dashboard

license: MIT


text:
User scopes on UserInfo aren't respected.

Describe the bug
Say I want to assign scopes to a user when the account is created (using Google Auth module). The only way I see to do it (without a future call) is set them in the onUserCreated callback.
They do get added to the serverpod_user_info. But then, it seems serverpod gets the current scopes from serverpod_auth_key instead. (Is there a reason for this?)
Adding them in onUserCreated using updateUserScopes executes the SQL query to insert them into serverpod_auth_key, but apparently that either gets rolled back, or the serverpod_auth_key doesn't exist yet.
Anyway, how do we get serverpod to accept the scopes set in the serverpod_user_info table when using requiredScopes in an Endpoint?
To Reproduce
Steps to reproduce the behavior:

Set up serverpod with Google Auth module. Configure like this:

class Scopes {
  static const Scope admin = Scope.admin;
  static const Scope editor = Scope('editor');
  static const Scope viewer = Scope('viewer');
}
...
  auth.AuthConfig.set(
    auth.AuthConfig(
      /// By default, every new user will have a `viewer` scope.
      onUserCreated: (session, userInfo) async {
        await auth.Users.updateUserScopes(
          session,
          userInfo.id!,
          {Scopes.viewer},
        );
      },
    ),
  );

Sign in with a Google account. This works fine for me.
Go to psql console.
Run select * from serverpod_user_info; and note the entry for "viewer" is in scopeNames.
Run select * from serverpod_auth_key and note the scopeNames field is blank.
6 Try to call an endpoint that has:

  @override
  Set<Scope> get requiredScopes => {Scopes.viewer};

and note that it returns a ServerpodClientException with status 403.
Expected behavior
I expect one or both of the following:

The endpoint works and does not reject the user, because the "viewer" scope is already populated in the scopeNames field of the serverpod_user_info table, and/or
The scopeNames field for the user in the serverpod_auth_key has the "viewer" scope that I set in onUserCreated.
It would be nice to have more documentation on how scopes are to be used, and why they are pulled from the serverpod_auth_key table instead of the serverpod_user_info table.

Serverpod versions

CLI Version: 1.1.1
Library version: 1.1.1

Platform information
macOS
Might be important: Building to web / Chrome

I'm so confused about this as well... why does SessionManager.signedInUser.scopeNames not correspond to the users active scopes? Also, where is the documentation on handling scopes when using google sign in? I saw in another post that you need to set the scopes on sign in... but if it's handled in the background by Serverpod where am I supposed to set those scopes.

Hey @tgrushka!
We had an issue where scopes where not correctly propagated to authentication keys when signing in through all providers.
This PR fixed this issue: https://github.com/serverpod/serverpod/pull/2283
Is this still an issue after that change?
The authentication model for the current authentication module is that UserInfo holds the source of truth for what scopes are assigned to a user. These scopes are then copied from the user to the authentication key when it is created.
When a new user is created you can now correctly modify what scopes are assigned to the user by defining the onUserCreated callback.

Closing this issue as complete.

source: gharchive/issue

authors: SandPod jblankenship5 tgrushka

repo: serverpod/serverpod


text:
Error on deployment to aws

@
Hi,
I'm trying to deploy my infra to AWS I have done all the necessary prerequisites in config.auto.fvars file and had run
terraform init
terraform apply
after some time I got the above error please help me with the same.
@vlidholt @II11II @yahu1031 @fischerscode

Check if you are using root user or Im user in aws account.

No you need to use root user

No you need to use root user. Is it your first time running terraform?

Yes.
Are there any changes other than config.auto.fvars ??
@yahu1031

@sandeepdevacc From the error it looks like, you are not the root user...

@sandeepdevacc Check if anything happened in the aws console. And can you please make sure that you have logged into the AWS console as ROOT USER and not IAM USER.

@yahu1031
I have created one IAM User and try to deploy the same hope all things go well.

No, It should be ROOT USER only. IAM USER doesn't have access to do it.

I tried to ask Chat GPT about the issue. I got this answer(May not be super accurate, but the info is almost near to the issue).

@yahu1031
Good news got success to terraform apply command
Now, I'm trying to Deploy through Github but In Action >Deploy to aws is not visible

reload it and check if the yml file exists.

@yahu1031
No there is no yml file

Then push it.

@yahu1031
I have pushed the code on the main branch still the .github folder is not generated.
Please help me with the same.

@yahu1031 fyr

Ha, you are missing that file

yes, how can I generate it?

Try serverpod create . in the same folder.

Try serverpod create . in the same folder. If it doesn't work, write things manually. But there must be a way.

Yes, it's not working.
If you have any reference code??

@yahu1031
Hi,
I was trying to run the working and the below error occurred please help me with the same.

check the action logs.

@yahu1031
but I have main.dart file.

can you share github repo?

Its private repo

screenshot the repo please

Can you share the work flow please.

Update
Got the success on deployment

But when I run the app then the below error occurred

https

And why did you deploy it to examplepod.com?

No, I did it on my domain only

Check the domains correctly, Cause it redirects me here  http://app.examplepod.com/
On Thu, 2 Mar 2023 at 14:16, sandeepdevacc @.***> wrote:

And why did you deploy it to examplepod.com?
No, I did it on my domain only
[image: image]
https://user-images.githubusercontent.com/118791435/222377412-243fdb15-69d0-4f13-986f-0178f2f471ab.png
—
Reply to this email directly, view it on GitHub
https://github.com/serverpod/serverpod/issues/700#issuecomment-1451501966,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIPAWHLYFASGAUWBY7DAJTLW2BM6XANCNFSM6AAAAAAVLSOSE4
.
You are receiving this because you were mentioned.Message ID:
@.***>

@yahu1031

Generate tables in production db.


text:
🛑 ukray.serverip.my.id is down

In 2e127f8, ukray.serverip.my.id (ukray.serverip.my.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ukray.serverip.my.id is back up in 37bbcec after 4 minutes.

repo: serversshnet/server-status


text:
🛑 idtro.ipservers.xyz is down

In ef6f04f, idtro.ipservers.xyz (idtro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: idtro.ipservers.xyz is back up in 92b7bd4 after 4 days, 6 hours, 50 minutes.

repo: serversshnet/uptime


text:
🛑 sg4tro.ipservers.xyz is down

In 8d56f18, sg4tro.ipservers.xyz (sg4tro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg4tro.ipservers.xyz is back up in d8105a5 after 19 hours, 7 minutes.


text:
🛑 sg5-ray.ipservers.xyz is down

In 7c1b030, sg5-ray.ipservers.xyz (sg5-ray.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sg5-ray.ipservers.xyz is back up in 4a7ab8a after 43 minutes.


text:
🛑 ge1-7.ipservers.xyz is down

In 32f3fd3, ge1-7.ipservers.xyz (ge1-7.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ge1-7.ipservers.xyz is back up in 1b46cf7.


text:
Hotfix/issue 194 2

This change is

[Current coverage][cc-pull] is 57.97% (diff: 100%)

Merging [#240][cc-pull] into [master][cc-base-branch] will decrease coverage by <.01%

@@             master       #240   diff @@
==========================================
  Files          1911       1911
  Lines         97595      97608    +13
  Methods           0          0
  Messages          0          0
  Branches      12119      12121     +2
==========================================
+ Hits          56584      56586     +2
- Misses        38012      38022    +10
- Partials       2999       3000     +1

[][cc-pull]

Powered by Codecov. Last update [78cc249...ea8dda9][cc-compare]
[cc-base-branch]: https://codecov.io/gh/servicecatalog/development/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/servicecatalog/development/compare/78cc2497d5e3dfe05199194a7383eed7142173fe...ea8dda99edefcd80c6c39789fa9bf186e33d03b4?src=pr
[cc-pull]: https://codecov.io/gh/servicecatalog/development/pull/240?src=pr

Reviewed 7 of 7 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

authors: codecov-io grubskim kowalczyka

repo: servicecatalog/development


text:
add 熔断

提交 PR 前请先自查以下内容：
在完成项的 [ ] 内填入 x，如：- [x]

[x] 我认可本书的版权信息：本书著作权归属于 ServiceMesher 社区，我将保留对所修改内容的署名权。
[x] 我已阅读参与贡献说明，并加入了 istio-handbook-wg GitHub team。
[x] 我已修改 PR 的标题格式（新增内容 PR 的标题格式为：add: 文档标题，修改已有内容 PR 的标题格式为 update：文档标题）。
[x] 我已在该 PR 已指明解决的 issue 链接：issue#1。
[x] 我已参考 PR#186 文章内容的格式。
[x] 我已阅读并保证所提交 PR 符合写作规范。

前一个 PR 不小心被 pull 机器人给关闭了，重新提一个

repo: servicemesher/istio-handbook


text:
🛑 Cardiff Repairs is down

In 7398e1f, Cardiff Repairs (https://cardiffrepairs.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cardiff Repairs is back up in e26b5a1 after 20 minutes.

repo: servicesite/upptime


text:
A bunch of little analysis cleanups

Some of these I'd been meaning to do for a while and just never got around to. Others are my own ultra nitpicks that I could never feel OK actually leaving in a review, but still want to make anyways :-P
r? @emilio

@bors-servo r_

:pushpin: Commit 24ece6d has been approved by emilio

:lock: Merge conflict

:umbrella: The latest upstream changes (presumably #827) made this pull request unmergeable. Please resolve the merge conflicts.

Thanks for the speedy review :)
@bors-servo r=emilio

:pushpin: Commit faebc0c has been approved by emilio

:hourglass: Testing commit faebc0c74886ebec7c48ea5058082a7f2781fb51 with merge 680094a8697547c80cbe4b036bd9b77b039c116f...

:sunny: Test successful - status-travis
Approved by: emilio
Pushing 680094a8697547c80cbe4b036bd9b77b039c116f to master...

authors: bors-servo emilio fitzgen

repo: servo/rust-bindgen


text:
Upgrade homu

Tested on server.
I also added a urandom'd web secret (in the pillar file) so that we can start playing with the admin interface. Doesn't work yet, but I may not be using it well.
r? @larsbergstrom

@bors-servo r+

:pushpin: Commit cbe238f has been approved by larsbergstrom

:hourglass: Testing commit cbe238f with merge 2f06418...

:sunny: Test successful - travis

authors: Manishearth bors-servo larsbergstrom

repo: servo/saltfs


text:
Errors don't make it back to client

Errors from, say, bad annotations or submitting already-superceded updates return a generic 502 Bad Gateway instead of describing the cause of the error.

Similarly, posting more than the arbitrary size limit for number of annotations does not pass that information back to the client.

repo: seung-lab/AnnotationEngine


text:
Hexagonal grid

Hi there,
as far as I understood the source code no hexagonal grid option is implemented yet. Is somebody still working on this issue? I read a lot about the advantages of hexagonal grids and wonder why this common option is still missing... Would appreciate any comments.!
David

I checked empirically with matlab  toolbox. To me seemed that it is not that effective considering other important factors and the simplicity of neighborhood structure in rectangular.
But definitely, would be great if somebody implement that. There is only one matrix, called U that should be modified.

@cranzlerdave Did you find a way to draw the hexagonal grid? If yes, could you share source? Thanks

https://stackoverflow.com/questions/2334629/hexagonal-self-organizing-map-in-python
Maybe we can refer to this site.

Hey! I just implemented it and made a pull request! Check it out!

authors: cranzlerdave ivallesp kinkunchan rohitgavval sevamoo

repo: sevamoo/SOMPY

license_source: bigquery


text:
DECT 400 sichtbar in homebridge, nicht konfigurierbar in Apple Home

Hallo,
meine Versionen sind Homebridge Version 1.5.1, FritzPlatform 6.0.19,
alle Geräte bis auf DECT 400 funktionieren in Apple Home, neu installiertes DECT 400 lässt sich nicht in Apple Home konfigurieren.
In Homebridge ist der Tastendruck short und long zu sehen,
auf dem Handy kann ich die Schaltflächen :
einmal drücken und
lange drücken nicht anwählen, diese sind ausgegraut.
Apple Gerät

Device: 12
OS: 16.1

Vielen Dank im voraus
Gruß sapien

Mit einbinden eines HomePod in das Netzwerk funktionierte die Konfiguration des DECT 400

repo: seydx/homebridge-fritz-platform


text:
Clean up front-end code

This could probably be broken up into multiple issues. The code that powers the front end is really monolithic and is primarily sourced from a ~900 line file.
Proposal:
For now? Tests. The code is rather verbose and could be refactored quite a bit. After tests are done, it  could be broken up into multiple files and then later loaded using a module loader like Webpack, Browserify, RequireJS, etc.
I dunno'. Thoughts? Objections?

@howdoicomputer it could definitely use some refactoring :)
Rails asset pipeline allows for some modularization -- we could also take more advantage of UJS via remote: true forms and what-have-you to avoid the need to have JS binding to the forms and doing the AJAX submit.
You are correct that there don't appear to be any tests at that level. If we end up replacing the Javascript with Rails UJS stuff, it may make more sense to do capybara tests than actual JS tests since that code would basically disappear.

authors: howdoicomputer jszwedko

repo: sfbrigade/adopt-a-drain


text:
Ensure dashboard/statistics is being fully tested

Currently we are not checking if the statistics are really showing up.
And since we are not adding the index action to the config block -
which is mandatory - they actually will never appear, therefore the
test will always pass, making the statistics flag useless.

Add an extra test to ensure we have both scenarios of showing or
hiding statistics.

Nice work, thanks!

authors: jonduarte mshibuya

license: mit


text:
Auth adapter does not override record attributes but still prevents illegal creation/modification

This fixes an active bug in which the authorization adapter interacts with permissions gem CanCan in such a way that records are erroneously assigned attributes, which has been reported in countless issues dating back years such as this one: https://github.com/sferik/rails_admin/issues/1880
These issues all get pseudo-resolved with the suggestion to use the work-around to specify CanCan conditional permissions using a block instead of an attribute hash.
This is an unsatisfactory solution for three reasons:

A workaround is still a workaround, this is a bug, it should be fixed.
When someone employs the workaround, they fail to take advantage of the important case that RailsAdmin is trying to protect against (explained below).
When using the block workaround, RailsAdmin can't build list views or complete certain batch-actions with the records, as these rely on CanCan's accessible_by, which is incompatible with ability block conditions.

It's really time for this to get fixed.
Whats happening is this, if you have a permission rule like this one, stipulating that a user can only create edit a comment that they own:
can [:create, :update], Comment, :user_id => user.id

And let's say the user above does have access to the admin dashboard, but is not a full admin (perhaps, a user with an "intern" role).
Rails Admin sees this permissions rule, and so they don't show you or let you edit any comments by other users. BUT they do let you create new comments, and also let you edit comments that you currently own. Which theoretically lets you create or modify a comment that would be owned by another user. Sure, you'd then no longer have access to it. But you could theoretically create a comment for someone else saying something nasty!
So what rails admin was doing was deducing what attributes a comment you create should always have. It sees that rule, and so after it has applied all the attributes you manually assign to your new/modified record, it then creates a hash of attributes prescribed by the permission scheme, and applies them to the record before it is saved, potentially overriding attributes you would have set (but perhaps shouldn't have).
So in the case of the apocryphal comment, this works great:
goofball intern tries to create a comment someone else as the user, with body "im a jerk!"
rails admin applies the user_id and the body specified
rails admin then pulls @authorization_adapter.attributes_for(:create, RailsAdmin::AbstractModel.new(Comment) to get the attributes that should be present given the current users abilities, which in this case, are {:user_id => goofball_user.id}
It then overrides that attribute, so instead of assigning the comment to the innocent other use, goofball users comment is assigned to himself. take that goofball user - ya jerk!
So far so good. BUT, problems arise when we have a legit admin user, and we've assigned rules like this:
can [:create, :update], Comment, :user_id => user.id

if user.admin?
  can :manage, :all
end

This says that all users can update a comment if they own it, but also, if you're an admin, you can just do everything. And this is a common way of assigning rules in can can.
So now, say you're an admin who can do everything and you go to edit a comment made by another user. Say, edit that goofball comment from before because it was flagged. You're allowed to do that, you're an admin. but @authorization_adapter.attributes_for(:create, RailsAdmin::AbstractModel.new(Comment) still pulls that hash {:user_id => admin.id}. Even though that can :manage, :all specification should wipe that out, it doesn't. So when the admin edits the goofball comment, rails admin force applies the admins own ID as the user_id. Re-saving the comment as belonging to the admin user. We don't want this.
So how do we keep the best of both worlds: preventing users with limited abilities from creating/modifying records such that they break permissions, but without introducing this occasionally disastrous case where users with extended permissions accidentally rob other users records (or users themselves) or unwittingly change other attributes?
I'm removing the hard-assignment of @authorization_adapter.attributes_for when records are updated/created, no more overriding. But after the record is instantiated or updated in memory, but before it's persisted to the database, I'm re-checking to see if the current user still has permissions to take the current action for this record, and then refusing to save if they don't. For the admin this means they update someone else's comment, no problem. For the goofball, instead of them creating a comment for someone else, or instead of them creating a comment that gets reassigned to themselves, the comment just refuses to save if they try to attribute it to someone else.
The only place I'm keeping use of @authorization_adapter.attributes_for is in the new action (but not create). This means that when an admin or anyone goes to create a new comment, it will pre-populate the form with them as the comment's owner. That's all!
I see that there are specs in this gem, but couldn't find any documentation for contributors on how they are to be run. Happy to update them if some documentation could be provided. Thanks!

Thanks for the proposal, applied this change as c84d1703.

authors: bartonmcguire mshibuya


text:
Case-insensitive date parsing when delocalising

The recent v2.0.1 release of rails_admin included updating the momentjs library.
A non-obvious side-affect of this is that the newest version of momentjs localises dates differently - for example, Spanish days and months are now (correctly?) formatted as lower-case instead of upper-case.
(E.g. Rails admin 2.0.0 formatted today as "2 de Enero de 2020", but version 2.0.1 formats today as "2 de enero de 2020"). (But I'm using fr locale in this spec for convenience, since the tests already define it.)
However, rails-admin assumed an exact match between the ruby-translations and javascript-translations. Any project which formats those dates differently (i.e. by capitalising them) no longer works with rails-admin.
Ideally, I feel the "right" solution here would be to not send the date as a human-formatted-string to the server (!!!) and instead use some well-defined ISO 8601 format; thus eliminating this whole complication.
But for now - as an immediate fix - I propose just making this substitution case insensitive.

N.B. The code climate "failure" doesn't actually change the existing code structure.

Closing with the same reason as https://github.com/sferik/rails_admin/pull/3294#issuecomment-787383687.

authors: mshibuya tom-lord


text:
Strange behavior on PV data but not sure where the problem occurs

I'm using this integration to read my Victron values into Home Assistant.
I'm using a Node-Red flow to insert the data into the Victron GX device to report the amount of solar of my complete system.
This is sometimes happening:

And the result is this in HA:

Not knowing where to start I'm posting this here but it can that this HACS solution is not doing anything wrong.

And this is haapinging almost every few days:

I will monitor in the next few days with edited code from Node-Red to exclude some settings and values.

I can confirm it is the latency of the response.
Problem is solved here by setting HA to check fewer.

Great to read that the cause has been found.
Unfortunately the gx device sometimes can't query/generate the response for an register read quickly enough.
Thereby, failing the request and causing the data to be poluted by 0 values.
Reducing the polling frequency and improving wifi connection stability/hard wiring the devices where possible reduces the amount of times this issue occurs.
The reason why you are seeing the random spikes in the statistics data of HA is due to a bug with the resetting of statistics data when a request fails and return an 0 value.
This causes the next datapoint for statistics generation to be based on the 0 value and thereby causing an massive spike of sudden solar energy being generated while the actual sequence could be 5000 - 0 - 5001 (resulting in a 5001 spike in the graph)

Makes sense! I will try to increase the interval of the HA towards Victron

authors: bierbuik sfstar sstolk90

repo: sfstar/hass-victron


text:
Extended documentation of driving functions, added new examples

originated from Sascha
please double check in order to merge to master

For reference, this is the continuation of #104.

repo: sfstoolbox/sfs-python


text:
🛑 Civitas Juzgado is down

In f30e079, Civitas Juzgado (http://civitas.catamarcaciudad.gob.ar:8080/JUZ_CATA/forms/login.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Civitas Juzgado is back up in 83a51d5 after 4 minutes.

repo: sfvc/upptime


text:
🛑 Catastro is down

In 3d12bfd, Catastro (https://catastro.catamarcaciudad.gob.ar/sfvccatastro/myLogin.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Catastro is back up in 592e797.


text:
Refactor to improve current scores

It would be nice if we could push the worst case to 50+, average to 60-65+.

The most major problem in the codebase is the currently handling of paths/dirs/files. There is quite a lot of filesystem logic involved with the tool and the cross-OS (nix + windows) compatibility requirement makes this worse. There is also user input in the form of the options. Often, we have string types like relativeDir or fullPath but this is still difficult to work with.

The most major problem in the codebase is the currently handling of paths/dirs/files. There is quite a lot of filesystem logic involved with the tool and the cross-OS (nix + windows) compatibility requirement makes this worse. There is also user input in the form of the options. Often, we have string types like relativeDir or fullPath but this is still difficult to work with.

Closing due to https://github.com/sgb-io/codehawk-cli/issues/122

repo: sgb-io/codehawk-cli


text:
Update 05-modelli.tex

Manca dx nell'integrale

Integrato manualmente in 61fd5b85d49cd222b741c8d86804aca72bc8a24b


text:
Create a stepper component

Add a stepper component which can be used for creating form wizards.
Ref
https://material-ui.com/components/steppers/
https://www.telerik.com/kendo-react-ui/components/layout/stepper/
https://ant.design/components/steps/

Multi-step form React

authors: rahuljh suman-kr

repo: sha-el/sha-el-design


text:
small code cleanup, simplify constructor and nested statements

remove console.logs
explicitly cast to string
define methods outside of constructor, I dont see why this was required other than perhaps calling view instead of this.view
use early returns for deeply nested if statements

Looks good on first sight. 👍 Will do some deeper testing and then merge it, if everything works.

authors: Disservin shaack

repo: shaack/cm-chessboard


text:
Security Hole: DUZ not properly removed for subsequent requests

I discovered a security hole in M Web Server.  It looks like if the DUZ is set, it remains set across subsequent requests.  I did a test for this by creating a non-authenticated endpoint that first raises an exception if the DUZ is set upon entry and if not sets the DUZ to nonzero to see if the value sticks across subsequent requests.  Sure enough, that is exactly what happened.  I¹m addressing this by NEWing the DUZ in my endpoint, but you might want to look at this.

Do you have something like a session ID that could be checked ? I think you won't have any security if the DUZ was passed without authentication with every REST request unless you also passed the ACCESS CODE and VERIFY CODE with each request. This might make for a long URL but it would guarantee that the request is authorized.

Actually, we do pass the access code/verify code for every request,
depending if the web service you invoked requires that. In that case, DUZ
will be defined. The issue is that if the process is recycled for another
request, DUZ stays defined.
On Tue, Apr 7, 2015 at 9:27 AM, David Whitten notifications@github.com
wrote:

Do you have something like a session ID that could be checked ? I think
you won't have any security if the DUZ was passed without authentication
with every REST request unless you also passed the ACCESS CODE and VERIFY
CODE with each request. This might make for a long URL but it would
guarantee that the request is authorized.
—
Reply to this email directly or view it on GitHub
https://github.com/shabiel/M-Web-Server/issues/4#issuecomment-90632791.

--
Sam Habiel, Pharm.D.
VISTA Expertise Network

authors: shabiel whitten

repo: shabiel/M-Web-Server


text:
Add StatusBar component to ReactNative

See https://reactnative.dev/docs/0.60/statusbar

🤔

authors: mcallisto no-identd

repo: shadaj/slinky


text:
[feat]: Drag n Drop

Feature description
I would like to request a new component: Drag and Drop.
Affected component/components
N/A
Additional Context
Add a drag and drop lists which might be helpful in todo lists.
Similar to React DND
Before submitting

[X] I've made research efforts and searched the documentation
[X] I've searched for existing issues and PRs

Hi team, I'd like to take on this issue. Could you please assign it to me? Thanks!

@Kumar06Lav no need to assign, you can send a pull supporting it

This would be awesome!

repo: shadcn-ui/ui


text:
Metal GFX Backend: RWTexture* causes compute tests to fail

Related to #4291
RWTexture* use in Metal compute tests causes a failure. This is likely a cause of the Metal GFX Backend.
Affects the following tests:

tests\bugs\buffer-swizzle-store.slang
tests/compute/texture-subscript.slang

This is fixed.

authors: ArielG-NV csyonghe

repo: shader-slang/slang


text:
Suggestion : Revamped Options & More Color Choices

I love how presets for P1, P2, Glow, and Everything have been added. However, I want to give a suggestion on being able to select the player's Wave Trail as a separate option, and maybe (if possible) even the progress bar during gameplay! With these new options in mind, I also feel like choosing what you want enabled shouldn't be a slider preset, but instead being toggleable boxes.

For the wave trail seperated option, its done for the next update.
I can also make the progress bar, but it will cause problem with some other mod that already modifying the progress bar.
Also I changed the preset select type to only button, slider was not that good

What is the specific mod that modifies the progress bar? I'm quite curious now.

I made one called "progress bar edit"
But geode didnt accept it for the moment so maybe I will ad the rainbow features here

For the update 1.0.4 I added the progress bar so it now can be rainbow too I hope you will like it, also I hope I will not have issues with others mod


text:
turtle-wow: fix error when auto-dismount is not enabled

Following error shows up when the turtle-wow module is enabled but auto-dismount is disabled:

Closed because I didn't realize adding another commit would also add it to the PR 😛

repo: shagu/ShaguTweaks


text:
Ambiguity surrounding pretrained.mat

It's unclear to me from the documentation how pretrained.mat is supposed to be generated. pretraining.py takes in data/mydataset/traindata.mat and data/mydataset/testdata.mat and spits out data/mydataset/results/checkpoint_4.pth.tar such that when extract_feature.py takes in checkpoint_4.pth.tar it spits out a matrix of n_train + n_test. But are we then supposed to run RCC's edgeConstruction module on traindata.mat or testdata.mat or a combination of the two in order to produce pretrained.mat? If we do it on just one of them and then feed the resulting graph into copyGraph.py it'll throw a shape mismatch error...

@scottfleming Sorry for the confusion. The distinction of trainset and testset is only for the pretraining phase. For end-to-end training DCC runs on complete dataset. In completely unsupervised scenario (which is the case here) there is no seperate thing as training and inference phase. Hence this suggests that the graph construction should be done on the complete dataset. Please maintain the same ordering of the data throughout i.e., [trainset, testset].
https://github.com/shahsohil/DCC/blob/63f3851ca970ef656d1a2d58f825454cd3ab7681/pytorch/extract_feature.py#L69

Ah yes that makes more sense. Thank you!

Hi @scottfleming,
edgeConstruction.py is applied on the complete dataset. Let me clarify the steps:

Train SDAE on train split. Validation set is used only as a check for overfitting or early stopping.
In parallel (completely independent of above step) construct topology graph using edgeConstruction.py code. The data for the same is ordered as [trainset, testset]. Testset is same as validation set. This arrangement has no affect on the graph construction. This is done to maintain same ordering across all steps (here).
Use extract_feature.py to extract all the embeddings. Again the embeddings are arranged as [trainset, testset] inside the code.
Next use copy_graph.py code to merge (raw_features, embeddings, graph, cluster_labels) into a single file.

Regarding details of PCA, it is mentioned under Datasets section in the supplementary of RCC work.

authors: scottfleming shahsohil

repo: shahsohil/DCC


text:
Improve readability of karaoke style captions with UITextDisplayer

Have you read the FAQ and checked for duplicate open issues?
Yes
Is your feature request related to a problem? Please describe.
When displaying karaoke style captions with UITextDisplayer shaka-player currently displays each cue separately and because of the flex based layout this means that every time a new cue appears it moves the existing ones around on the page, making it difficult to read them.
Describe the solution you'd like
Instead of rendering each cue separately UITextDisplayer could render the entire line and then use visibility: hidden on the cues that shouldn't be displayed yet and then to visibility: visible when they need to appear. That would avoid layout shifts making the captions easier to read and would likely lead to better performance as the browser wouldn't have to do layout calculations for cues on the same line and shaka-player would only have to create the elements for each line once and could then just toggle the visibility style property.
If the user seeks it should probably force a full re-render to avoid elements staying on the screen longer than they should.
Describe alternatives you've considered
Achieving the same effect by editing the subtitle files and adding the styling in there with extra invisible cues to occupy the space.
I haven't looked into the internals of UITextDisplayer too much yet, so if keeping track of cues already on screen and toggling CSS properties would require too big of a refactoring, the same effect could still be achieved with rerendering everything for each cue but still using visibility: hidden on hidden cues so that they still occupy the space.
Additional context
n/a
Are you planning send a PR to add it?
I would happy to write the code for it but I would need someone else to do the actual PR because of the CLA requirement.

I would happy to write the code for it but I would need someone else to do the actual PR because of the CLA requirement.

I am not a lawyer - but in a non-legal sense, I think that is a weird thing for you to do.  The CLA means, in a nutshell, "I assign copyright of this code to the owner of the project".  If you give it to someone else, and they sign it and claim the code as their own and then tell us we can have it... What's the actual difference to you?  I mean, from a completely non-legalistic point of view, I really don't see the difference.
But, whatever, I'm not going to fight about this, I just genuinely don't get it.  If you don't want to discuss it publicly, that's also fine.  You can DM me on video-dev.org Slack if you want to discuss it privately.  If you don't want to discuss it at all, of course, that's also fine.  Just so confused over here.

Instead of rendering each cue separately UITextDisplayer could render the entire line and then use visibility: hidden on the cues that shouldn't be displayed yet and then to visibility: visible when they need to appear. That would avoid layout shifts making the captions easier to read and would likely lead to better performance as the browser wouldn't have to do layout calculations for cues on the same line and shaka-player would only have to create the elements for each line once and could then just toggle the visibility style property.

I don't know that UITextDisplayer is the right place to solve this.  Its job is just to display what it is given.  If you want it displayed differently, that would generally be handled when/where you author the subtitles.  The major subtitle formats we think about for streaming video (VTT & TTML) have ample ways for these things to be styled to explicitly do what you're asking for.
Besides this, I note that you want a subtitle's position to be influenced by what is coming next.
Since you're talking about karaoke subs specifically, I think we could make a case that the sub parser is the best place to handle this.  For example, I'm assuming you would use something like LRC format for this, so the LRC parser.  If we know at the parser level that it's karaoke/lyrics, the parser could look ahead and style the parsed subs appropriately for any coming overlaps.
What do you think?

I am not a lawyer - but in a non-legal sense, I think that is a weird thing for you to do. The CLA means, in a nutshell, "I assign copyright of this code to the owner of the project". If you give it to someone else, and they sign it and claim the code as their own and then tell us we can have it... What's the actual difference to you? I mean, from a completely non-legalistic point of view, I really don't see the difference.

But, whatever, I'm not going to fight about this, I just genuinely don't get it. If you don't want to discuss it publicly, that's also fine. You can DM me on video-dev.org Slack if you want to discuss it privately. If you don't want to discuss it at all, of course, that's also fine. Just so confused over here.

I am completely fine with other people using my code, the problem is that instead of it being anonymous and implied by the project license, Google makes you sign a legal document with your legal details. To put it bluntly, regardless of the license of the project in this day and age the moment I push my code out into the internet, I already expect that individuals and companies will violate the copyleft or copyright of it. Also signing the CLA is also sort of moot considering that people have opened pull requests in the past, not signed the CLA and then shaka-player maintainers have just copied the code into a separate pull request and committed it under their own name anyway, to bypass the CLA requirement. Not trying to throw people under the bus, just pointing out that it is unfortunate that your employer has placed these bureaucracy hurdles in the way of contributing to the project that you created, making it easier to create a custom build than creating a pull request.

I don't know that UITextDisplayer is the right place to solve this. Its job is just to display what it is given. If you want it displayed differently, that would generally be handled when/where you author the subtitles. The major subtitle formats we think about for streaming video (VTT & TTML) have ample ways for these things to be styled to explicitly do what you're asking for.

Good point. It should be doable to output a much larger subtitle file with each line multiplied and then using styling instead of karaoke text to achieve the effect. Although the bandwidth use is probably negligible considering that it is literally streaming much larger video files at the same time.

For example, I'm assuming you would use something like LRC format for this, so the LRC parser.

We are using WebVTT with the karaoke timestamps for speaker text. FYI shaka-player's LRC parser only handles full lines, not the non-standard LRC extensions for karaoke style text, not that it is relevant to this discussion.
As you advised above it's probably better if we just modify the subtitle files before passing them to shaka-player, that way we get readable text that doesn't shift around on the screen, shaka-player won't require any code changes and I don't have to deal with the hurdles of contributing code to shaka-player. I'll close this feature request.

it is unfortunate that your employer has placed these bureaucracy hurdles in the way of contributing to the project

I completely agree.

authors: absidue joeyparrish

repo: shaka-project/shaka-player


text:
React on Rails test helper should build assets if any before any feature specs are run

We tried to optimize the test helper so that only some types of tests would check.
However, if there are any CSS assets being included on a page, and the the assets are not built, any feature spec will fail.
A workaround right now is to add this to rails_helper.rb:
  # Next line will ensure that assets are built if webpack -w is not running
  ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config, :feature_spec)

  # Because we're using some CSS Webpack files, we need to ensure the webpack files are generated
  # for all feature specs. https://github.com/shakacode/react_on_rails/issues/792
  config.define_derived_metadata(file_path: %r{spec/features}) do |metadata|
    metadata[:feature_spec] = true
  end

The reason is that we're looking by default for specs tagged :js and :server_rendering.
We might want to just check for type: :feature on the specs.
CC: @robwise

We might want to just check for type: :feature on the specs.

I thought this is what we were doing already

https://github.com/shakacode/react_on_rails/blob/master/lib/react_on_rails/test_helper.rb#L3
    # Because you will probably want to run RSpec tests that rely on compiled webpack assets
    # (typically, your integration/feature specs where `js: true`), you will want to ensure you
    # don't accidentally run tests on missing or stale webpack assets. If you did use stale
    # Webpack assets, you will get invalid test results as your tests do not use the very latest
    # JavaScript code.
    #
    # Call this method from inside of the `RSpec.configure` block in your `spec/rails_helper.rb`
    # file, passing the config as an argument. You can customize this to your particular needs by
    # replacing any of the default components.
    #
    # RSpec.configure do |config|
    #   ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
    #
    # You can pass an RSpec metatag as an list of parameter to this helper method
    # if you want this helper to run on examples other than where `js: true` or
    # `server_rendering: true` (default). The helper will compile webpack files at most
    # once per test run.
    #
    # If you do not want to be slowed down by re-compiling webpack assets from scratch every test
    # run, you can call `yarn run build:client` (and `yarn run build:server` if doing server
    # rendering) to have webpack recompile these files in the background, which will be *much*
    # faster. The helper looks for these processes and will abort recompiling if it finds them
    # to be running.
    #
    # See docs/additional-reading/rspec-configuration.md for more info
    #
    # Params:
    # config - config for rspec
    # metatags - metatags to add the ensure_assets_compiled check.
    #            Default is :js, :server_rendering
    def self.configure_rspec_to_compile_assets(config, *metatags)
      metatags = [:js, :server_rendering] if metatags.empty?

      metatags.each do |metatag|
        config.before(:example, metatag) { ReactOnRails::TestHelper.ensure_assets_compiled }
      end
    end

Ooops I got confused with our internal app. Here is the code from our internal app in case it's useful to anyone:
  unless ENV["CI"]
    ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config, :js, { type: :feature }, type: :request)
  end

@robwise what are you doing outside of CI? Manually ensuring you have the watch process?
I updated https://github.com/shakacode/react_on_rails/blob/master/docs/additional-reading/rspec-configuration.md:
  # Next line will ensure that assets are built if webpack -w is not running
  ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config, :requires_webpack_assets)

  # Because we're using some CSS Webpack files, we need to ensure the webpack files are generated
  # for all feature specs. https://github.com/shakacode/react_on_rails/issues/792
  config.define_derived_metadata(file_path: %r{spec/(features|requests)}) do |metadata|
    metadata[:requires_webpack_assets] = true
  end

unless means we run it if we're outside of CI, we don't run it in CI because we manually build the bundles ahead of time and therefore save time by not doing the check since we're sure they're up to date

Does this really save time? We only run the check once for many tests.

@robwise In other words, should not running this in CI be our recommended best practice? I just updated Travis and Codeship on https://github.com/shakacode/react-webpack-rails-tutorial depend on the test helper and thus not manually call the building of the webpack assets.

Me either

Me too!


text:
🛑 Shakedown Social - Uploads is down

In cf3749a, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 321 ms

Resolved: Shakedown Social - Uploads is back up in 40971d6.

repo: shakedown-social/upptime


text:
🛑 Shakedown Social - Uploads is down

In ac766f7, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 429 ms

Resolved: Shakedown Social - Uploads is back up in 2c952e1.


text:
🛑 Shakedown Social - Uploads is down

In f0a4ef2, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 282 ms

Resolved: Shakedown Social - Uploads is back up in 97f6748.


text:
🛑 Shakedown Social - Uploads is down

In e06d237, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 787 ms

Resolved: Shakedown Social - Uploads is back up in 738c514.


text:
🛑 Shakedown Social - Uploads is down

In 93e0628, Shakedown Social - Uploads (https://files.shakedown.social/accounts/avatars/109/357/389/718/265/462/original/dd80d2c95e48cfd2.jpeg) was down:

HTTP code: 403
Response time: 292 ms

Resolved: Shakedown Social - Uploads is back up in bd053e5.


text:
Full width option

Really like this plugin! Great Job!
I would like to have a full width option where the notification is aligned at the top. Is this possible?

it is possible ill add it to my list..

HI Shakee,
It's very easy to use plugin. Now i am looking for the full-width option?
is the full-width feature available? Please let us know.
Thanks,
Ritesh

Sorry i missed this message. it is not available yet. ill update this issue once it is available.
thanks

full width option added shakee93/vue-toasted@cb80fba

authors: nilsi ryanisenia shakee93


text:
Expose original 'done' callback to the custom callback.

This can be done via this.webpackDone in the custom callback. Since original callback needs options and accesses callingDone in the parent context, in my opinion, it is better to be kept as instance method accessible via this.

Thanks for the PR! I don't want to take the user's context over though in the done function. I think it would be better just as a separate method:
webpack({}, null, function (err, stats) {
  webpack.logStats(err, stats)
  // Do other stuff
})

I think that would be super useful. In my case, I'm trying to get compilation errors in the stats object, and I want to throw an error and stop the compilation if that happens. This is the case if a module is not found, compilation still happens, but webpack outputs the error. It would be great to do something like this inside the done function:
this.emit('error', new gutil.PluginError('webpack-stream', stats.compilation.errors.toString()));
Currently I'm not sure how to stop the stream at that point

authors: AlbertoElias mdxinventi shama

repo: shama/gulp-webpack


text:
Уведомления в telegram

Уважаемые разработчики, можно добавить возможностью направления уведомлений о работе бота в телеграмм (например, ошибки и сводную статистику о работе бота за последний чат), а также возможность остановки (паузы) и возобновления работы бота?

Уважаемые разработчики, можно добавить возможностью направления уведомлений о работе бота в телеграмм (например, ошибки и сводную статистику о работе бота за последний чат), а также возможность остановки (паузы) и возобновления работы бота?

Мне кажется это уже борщ😁можно сразу тогда Дурову отправлять свои достижения или в поддержку хомяка

Уважаемые разработчики, можно добавить возможностью направления уведомлений о работе бота в телеграмм (например, ошибки и сводную статистику о работе бота за последний чат), а также возможность остановки (паузы) и возобновления работы бота?

Не знаю, как у остальных, а у меня есть такие планы.

Уважаемые разработчики, можно добавить возможностью направления уведомлений о работе бота в телеграмм (например, ошибки и сводную статистику о работе бота за последний чат), а также возможность остановки (паузы) и возобновления работы бота?

Не знаю, как у остальных, а у меня есть такие планы.

а смысл если скоро листинг?
разве что как шаблон для будущих проектов

Уважаемые разработчики, можно добавить возможностью направления уведомлений о работе бота в телеграмм (например, ошибки и сводную статистику о работе бота за последний чат), а также возможность остановки (паузы) и возобновления работы бота?

Не знаю, как у остальных, а у меня есть такие планы.

а смысл если скоро листинг? разве что как шаблон для будущих проектов

Смысл в том, что разрабы говорят, что майнить монету можно будет и после листинга. Если она что-то будет стоить, то забивать на хомяка не будут

раз уж многие этого хотят, то как можно будет реализовать уведомление. тг бот это должен уведомлять?

раз уж многие этого хотят, то как можно будет реализовать уведомление. тг бот это должен уведомлять? в избранное вряд-ли это можно, уведы тупо не будут приходить

Можно реализовать наиболее простым способом. Регаем бота в BotFather, получаем токен
Отправляем http запрос на урл:
https://api.telegram.org/*bot token*/sendMessage?chat_id=*tg id*&text=Уведомление
Это подойдет для уведомлений. Но чтобы например остановить фарм через бота, нужно скорее всего запускать полноценный инстанс, например через aiogram. Это уже работа посерьезней

repo: shamhi/HamsterKombatBot


text:
Image is in Front When Table Is Dragged Upwards inside Navigation Bar

My image goes in front of my custom table view cells when I drag the table upwards. The table is inside the navigation bar which isn't translucent by the way. Any idea where I'm getting it wrong? Thanks.

@jaytrixz can you provide a screenshot?

Apologies for the late reply. Here's some screenshots:

@jaytrixz Thanks for the screenshot i managed to reproduce this bug, ill need to look for a solution that works

there bugs in updateImageViewFromScrollEvent method i need to limit it so only expand if the touch is on the header

Thanks for the update!

Ive fixed the issue, can you try validate this with the latest version from master.
pod 'SAStickyHeader', :git => 'git@github.com:shams-ahmed/SAStickyHeader.git', :branch => 'master'

Hi. Sorry for the late reply. I pulled the latest 0.5.1 from Cocoapods and it's still generating me the same issue :(

@jaytrixz did you place the above code snippet, it not tagged up yet as i need to confirm bug been resolved

I tried to paste the above code on my Podfile but it says I don't have access and fails. I just left it without mentioning the branch and link and just did a pod update

@jaytrixz ive pushed version 0.6.0 on cocoapods.

Hi. I've installed 0.6.0 but the behavior changed. It's not zooming anymore when I scroll down and when I scroll up, it still stays in front of the table. :(
This is what I do in my project:

In storyboard, I select my UITableView and enable bounce
In storyboard, I change my header section height to be 250
In my swift file, in my viewForHeaderInSection, I just return SAStickyHeaderView(table: tableView, image: [UIImage(named: "loading_banner")])
In my swift file, in my heightForHeaderInSection, I just return 250

That's it. My view controller is embedded from a navigation controller coming from my home view controller.

I changed the behaviour to only scroll if touch event is the header, if it finds a table cell then it wont scroll

Ok. It still has the original issue :(

i cant reproduce this, can you provide a sample project please or alter the example project please?

I'm currently doing that right now...

Here's the link to the sample project.

Ive looked into the sample code, i going to try create a proper fix soon in the mean time you ca napply the header like this:
    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.tableHeaderView = SAStickyHeaderView(frame: CGRect(x: 0, y: 0, width: 320, height: 250), table: tableView, image: [UIImage(named: "loading_banner")])
    }

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()

        // View doesn't get proper frame in viewDidLoad so adjust it here
        guard var frame = tableView.tableHeaderView?.frame else {
            return
        }

        frame.size.width = CGRectGetWidth(tableView.frame)
        tableView.tableHeaderView?.frame = frame
    }

Thanks. Will try that and update you.

Hi. I just resorted to following this tutorial and doing it manually. It works for me even on Swift 2.2

Hi shams, any update for this bug? Cause I can still reproduce this in your sample project. Thank you.

@glennposadas i made some progress on feature/forceTouch branch, but it not 100% solution. ATM am working on another project which is taking alot of my spare time, hopefully i can have a proper look at it soon. however if you come across a solution your welcome to send a pull request.

authors: glennposadas jaytrixz shams-ahmed

repo: shams-ahmed/SAStickyHeader


text:
Cannot upload settings

Visual Studio Code Version : 1.4.0
Code Sync Settings Version : 2.0.2
Operating System : Mac OS X 10.11.5
There is no console message and no error or warning message appearing. The uploading stopped working after the new version came out. It just does nothing and the gist is not updated.

Can you please update and let me know :)

still not working :/ Version 2.0.4

what is in your sync settings. Please post (except token).
Also try with reset settings if it works

{
  "Token": "redacted",
  "Gist": "redacted",
  "lastUpload": null,
  "firstTime": true,
  "autoSync": false,
  "lastDownload": null,
  "ProxyIP": null,
  "ProxyPort": null,
  "Version": 204
}

What happens if I do reset settings? I can't risk losing my settings.

token and gist has "redacted".
It will clear this JSON file only and when you try to update it will ask token and gist again.
No effect to VS Code Settings.

Yep, it had the original token and gist but I redacted them to post them publicly.
On Fri, Aug 26, 2016 at 1:35 PM +0200, "Shan Khan" notifications@github.com wrote:
token and gist has "redacted".
It will clear this JSON file only and when you try to update it will ask token and gist again.
No effect to VS Code Settings.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/shanalikhan/code-settings-sync/issues/75#issuecomment-242709972

i have the same problem after update

I can also confirm that it is not working in version 1.4.0.
I have a fresh install. It asked me to enter access token, which I did and in the footer status bar reported that sync was OK.
When I try Download Settings after that I am getting GIST ID prompt, but GIST ID was never displayed.
When I open settings file it looks like this:
{"Token":"my-token-xxxxxxxxxxxx-xxxx","Gist":null,"lastUpload":null,"firstTime":true,"autoSync":false,"lastDownload":null,"ProxyIP":null,"ProxyPort":null,"Version":204}
GitHUb access token reports that it was not used - I created new access token, although I performed Upload Settings from VS Code.

I can only confirm this. It's updating the extensions.json and cloudSetttings file just fine but the settings.json is just empty.

@lumaxis thanks for the showing the quick problem.
I have updated it, please update and let me know if its working fine now.

It's still not working. Reseting also doesn't help.
Why don't you just revert it to a stable version?

Not working for me as well. Doesn't update extensions.json nor settings.json.
Let me know if i can provide information that might help you.

@peterjuras @DNLHC some users reported working on version 2.0.6
Let me know if its working at your side
Update, reset settings and let me know 😀

Thanks, it works now. I didn't even have to reset my settings, which is great. Keep up the good work.
I'm closing this issue since I opened it, if anybody else is still experiencing issues feel free to reopen.

I'm the only one developing and testing not a team so i dont have sceneries like u users have to test om thats why it works on my computer and i have to sometime rely of users to test those scenarios thats why reverting isnt an option as i have to add new features...

authors: DNLHC lumaxis peterjuras shanalikhan ssljivic

repo: shanalikhan/code-settings-sync


text:
KernelExplainer not thread-safe

from concurrent.futures import ThreadPoolExecutor

import numpy as np
from sklearn.svm import LinearSVC
from shap import KernelExplainer

s = np.random.RandomState(1)
N = 10
x = s.random((200, N))
y = x.sum(axis=1) > (N//2)

svc = LinearSVC()
svc.fit(x, y)

ke = KernelExplainer(svc.decision_function, x[0:5])

print(ke.shap_values(x[0:10]))

with ThreadPoolExecutor(10) as tpe:
    res = list(tpe.map(ke.shap_values, [x[0:10]] * 10))

  File "/Users/X/.pyenv/versions/flow-venv-3.9/lib/python3.9/site-packages/shap/explainers/_kernel.py", line 190, in shap_values
    explanations.append(self.explain(data, **kwargs))
  File "/Users/X/.pyenv/versions/flow-venv-3.9/lib/python3.9/site-packages/shap/explainers/_kernel.py", line 324, in explain
    self.addsample(instance.x, mask, w)
  File "/Users/X/.pyenv/versions/flow-venv-3.9/lib/python3.9/site-packages/shap/explainers/_kernel.py", line 508, in addsample
    self.kernelWeights[self.nsamplesAdded] = w
IndexError: index 1022 is out of bounds for axis 0 with size 1022

@Zahlii Thanks for the report. Do you need to use threads? I have to note that using threads in python will not boost the performance significantly. I suggest you to use ProcessPoolExecutor and see if the error persists.

Well my use case is serving a ML model from a threaded Webserver. Many steps are implement in numpy or C code which don’t block the GIL and hence are nearly 100% parallelizable. As such, kernel explainer would very much benefit from being Thread safe, especially since you could also use multi threading to speed up the explanations themselves

@Zahlii I had this issue too when using shap+flask. My solution was using rabbitmq. That is more of a workaround I agree.
Would you be interested in making PR?
@thatlittleboy Maybe you could have a look at this issue.

authors: Zahlii detrin

repo: shap/shap


text:
Missing translation key

Overview
There is a missing translation key on the terms of service and privacy policy causing a console error in the browser.
References and additional details
Console error
"react_devtools_backend.js:3973 Warning: Missing translation for key: "Dated: January 2022""

Acceptance Criteria

the console error doesn't appear on privacy policy or terms of service page
the translation is added to messages-en.json

Need By Date
n/a
Screenshots/Mockups
n/a
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

Thanks @nejos97 - payment is on it's way!!!

repo: shapeshift/web


text:
chore: cleanup ETH/FOX base LP/staking opportunities

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #3761

PR #3762

PR #3760

PR #3777   👈

This comment was auto-generated by Graphite.


text:
fix: arbitrum bridge confirm precision loss

Description
Does what it says on the box, see screenshots
Issue (if applicable)

N/A, spotted in Arb flag toggle PR i.e https://github.com/shapeshift/web/pull/7637#pullrequestreview-2266232738
Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None - previous branch is still here.
Though I've spotted that convertPrecision loses precision while implementing this, so if we ever hit the very edge case of an asset having different precision in its Ethereum Mainnet and Arbitrum One, with a smol withdraw, then the bug would still be here... but this branch will realistically never be hit.
Testing

Have a smol Arbitrum Bridge withdraw available (or eng. test with the monkey patch below)
Ensure it doesn't show up as 0 in confirm step

Engineering

Test with the monkey patch below

diff --git a/src/components/ClaimRow/ClaimRow.tsx b/src/components/ClaimRow/ClaimRow.tsx
index cf59b43418..b9dd5ae35d 100644
--- a/src/components/ClaimRow/ClaimRow.tsx
+++ b/src/components/ClaimRow/ClaimRow.tsx
@@ -30,10 +30,7 @@ export const ClaimRow = ({
   tooltipText,
   onClaimClick,
 }: ClaimRowProps) => {
-  const isDisabled = useMemo(
-    () => onClaimClick === undefined || status !== ClaimStatus.Available,
-    [onClaimClick, status],
-  )
+  const isDisabled = useMemo(() => false, [])
   const hoverProps = useMemo(
     () => ({ bg: 'gray.700', cursor: isDisabled ? 'default' : undefined }),
     [isDisabled],
diff --git a/src/components/MultiHopTrade/components/TradeInput/components/Claim/ClaimConfirm.tsx b/src/components/MultiHopTrade/components/TradeInput/components/Claim/ClaimConfirm.tsx
index 730bf728ea..307c97b7ff 100644
--- a/src/components/MultiHopTrade/components/TradeInput/components/Claim/ClaimConfirm.tsx
+++ b/src/components/MultiHopTrade/components/TradeInput/components/Claim/ClaimConfirm.tsx
@@ -92,19 +92,18 @@ export const ClaimConfirm: React.FC<ClaimConfirmProps> = ({
   )

   const amountCryptoPrecision = useMemo(() => {
-    const _amountCryptoPrecision = fromBaseUnit(
-      activeClaim.amountCryptoBaseUnit,
-      asset?.precision ?? 0,
-    )
-    if (asset?.precision === destinationAsset?.precision) {
+    if (!asset || !destinationAsset) return '0'
+
+    const _amountCryptoPrecision = fromBaseUnit(activeClaim.amountCryptoBaseUnit, asset.precision)
+    if (asset.precision === destinationAsset.precision) {
       return _amountCryptoPrecision
     }

     // Precision shouldn't be different between an asset and its bridge flavour but...
     return convertPrecision({
-      value: fromBaseUnit(activeClaim.amountCryptoBaseUnit, asset?.precision ?? 0),
-      inputExponent: asset?.precision,
-      outputExponent: destinationAsset?.precision,
+      value: _amountCryptoPrecision,
+      inputExponent: asset.precision,
+      outputExponent: destinationAsset.precision,
     }).toFixed()
   }, [activeClaim.amountCryptoBaseUnit, asset, destinationAsset])

diff --git a/src/pages/RFOX/components/Claim/ClaimSelect.tsx b/src/pages/RFOX/components/Claim/ClaimSelect.tsx
index 411e545435..2e22e16bf5 100644
--- a/src/pages/RFOX/components/Claim/ClaimSelect.tsx
+++ b/src/pages/RFOX/components/Claim/ClaimSelect.tsx
@@ -99,7 +99,7 @@ export const ClaimSelect: FC<ClaimSelectProps & ClaimRouteProps> = ({
       )
       const currentTimestampMs: number = Date.now()
       const unstakingTimestampMs: number = Number(unstakingRequest.cooldownExpiry) * 1000
-      const isAvailable = currentTimestampMs >= unstakingTimestampMs
+      const isAvailable = true
       const cooldownDeltaMs = unstakingTimestampMs - currentTimestampMs
       const cooldownPeriodHuman = dayjs(Date.now() + cooldownDeltaMs).fromNow()
       const status = isAvailable ? ClaimStatus.Available : ClaimStatus.Pending
diff --git a/src/pages/RFOX/components/RewardsAndClaims/Claims.tsx b/src/pages/RFOX/components/RewardsAndClaims/Claims.tsx
index ea4298bb19..fd2998e8ec 100644
--- a/src/pages/RFOX/components/RewardsAndClaims/Claims.tsx
+++ b/src/pages/RFOX/components/RewardsAndClaims/Claims.tsx
@@ -48,7 +48,7 @@ export const Claims = ({ headerComponent }: ClaimsProps) => {

       const currentTimestampMs = Date.now()
       const unstakingTimestampMs = Number(unstakingRequest.cooldownExpiry) * 1000
-      const isAvailable = currentTimestampMs >= unstakingTimestampMs
+      const isAvailable = true
       const cooldownDeltaMs = unstakingTimestampMs - currentTimestampMs
       const cooldownPeriodHuman = dayjs(currentTimestampMs + cooldownDeltaMs).fromNow()
       const status = isAvailable ? ClaimStatus.Available : ClaimStatus.Pending

Operations

[ ] :checkered_flag: My feature is behind a flag and doesn't require operations testing (yet)

^

Screenshots (if applicable)

Develop

This diff

Making the note here that using BigNumber.set({ DecimalPlaces: 36 }) where we are doing convertPrecision will ensure we can handle conversions of up to 18 decimal places without losing precision.

authors: gomesalexandre kaladinlight


text:
Update to v8

v8 changelog
https://github.com/discord/discord-api-docs/pull/2855

Closed with 8c2ac071fa2772748697cc3ba4896564b88e064e

repo: shardlab/discordcr


text:
h3 UI

This PR introduces a UI system that is served by the metrics server.

adds consistent code formatting
refactors out mds_processor into its own task
introduces a client side build system
moves yarn to npm for simplicity
introduces a UI for exploring h3 binned metrics (WIP)

todo

[x] date selection interface
[x] document new commands in readme
[x] OD h3 metric aggregation
[x] OD h3 metric selection UI
[x] document page serving (url location)

Needs some design cycles, but here's a preview of a date/time scrubber that is fully powered by the metrics server backend. I'm going to punt on aesthetics for now until I've hit the rest of my todo list, then we can do a pass for usability, formatting, and colors.

I have merged the backend overhaul into this UI branch. There's a bit more work to do on UI flow. In particular I need to support linear results along with polygonal results in the UI, but the queries are hooked up to the server implementation now. I am now going to merge this to master, and will continue additional features on new smaller PRs.


text:
Slow download speed with high CPU usage while installing JRE.

Opening the launcher, selected version 1.8.9, and tried to launch the game. The launcher started to download the JRE. This download is very slow (so far it's been around 2 hours), and has high CPU usage (around 50%). Actual network usage is low. It seems to be downloading about 1 file per minute.

Well the download is actually about 450 mb if you are doing it for the first time. So it takes a while. But so far no one has ever encountered this issue before. I will try checking the resource consumption today.


text:
Segmentation fault when interaction is not present

The method "interaction" of DSGRN.Network accepts two node indices and returns True if there is an activating edge between the two and False if there is a repressing edge. The method returns a segmentation fault if the interaction is absent. Either an informative error or a third value would be helpful.

Agreed, perhaps in the C++ code base it should throw an exception, and in the python wrappings the exception could be caught (something like https://pybind11.readthedocs.io/en/stable/advanced/exceptions.html) so a python "None" value could be returned.

authors: breecummins shaunharker

repo: shaunharker/DSGRN


text:
"Give" command

To avoid the only form of item trading being via dropping items on the floor for someone else to pick up, we could implement a give command. It would work similarly to put, but the target would be another player or even NPC in the same room.
Potentially, we could make it so that the recipient has to accept the gift but that is more of a nice-to-have.
Syntax: give <item> [to] <target>

I think an important part of this is a behavior for NPCs that would allow them to accept certain items. By default giving an item to an npc should reject the command so the player doesn't accidentally lose items.

Closed in 5ca682649114e2407361924f6277d0b44a1e89ca

authors: seanohue shawncplus

repo: shawncplus/ranviermud


text:
Remove old Homebrew advice

Homebrew's Python always uses Homebrew's openssl now.

\o/ Thanks @tdsmith! :sparkles: :custard:

Want to rebase this onto the current master branch?

Codecov Report

Merging #1109 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1109   +/-   ##
======================================
  Coverage     100%    100%
======================================
  Files          21      21
  Lines        1925    1925
======================================
  Hits         1925    1925

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 5edab33...7459070. Read the comment docs.

Wahoo, thanks for your patience @tdsmith! ✈ 🚀

authors: Lukasa codecov-io tdsmith


text:
Attach last Retry object to response and add Retry history

This PR is trying to solve both Issue #576 and #578.
The last Retry object of the request is added to the response object. Thus allowing the user to check if any errors occurred during the request. In addition to give more information to the user the Retry object now has a history attribute. This attribute contains a list of the errors that were thrown at each connection retry.
example code:
retry = Retry(total=2)
resp = pool.request('GET', '/', retries=retry)
if resp.retries.total != 2:
    print(resp.retries.history)  # will show list of errors

Had a quick look, some initial feels: Looks like a good step in the right direction, but I think we're going to need for history to be a list of an object that encapsulates some request (method and resource at least) and response information (status code, exception, other things?), rather than just a list of exceptions encountered. The use case is we should be able to look up redirect history based on this list.

How about a new object ("RetryHistory" working title) that will contain all the data passed to the Retry.increment: method, url, response, error?

How about a new object ("RetryHistory" working title) that will contain all the data passed to the Retry.increment: method, url, response, error?

RetryHistory makes sense, or RequestHistory (or ResponseHistory, or both?).
I want to avoid memory leaks, so let's be careful storing too much historical request/response data, specifically we want to avoid hanging on to the bodies. That is to say, avoid storing the full response and just store the minimal metadata for it.

I changed the history to a list of RequestHistory objects. Each object contains the following fields:
method, url, error, status, redirect_location.

I added the test for multiple redirects from PR #185. I hope this is ok @cezarsa.

Fixed the CR comment's

Looks like an ephemeral bug. I've restarted the specific test that failed.

Thank you @haikuginger.

Sorry to come driving in with more review @palaviv, but @shazow is taking a break so I'm taking over reviewing this patch. However, you'll be happy to know that I basically only have the notes I've made here to give: so long as no more are introduced when you fix those up, I'll be happy to merge this soon!

Ok, I think I'm happy. Any other contributors got thoughts? If not, I'm happy for us to go ahead and merge this.

I'm only concerned about history being a list and the expensive slice copy we make of it. Is it really important that history be a list and not a tuple?

I changed history from list to tuple @sigmavirus24.

This looks good to me.

Looks good to me. @palaviv, do you want to add a line item to CHANGES.rst?

Added the CHANGES.rst entry @haikuginger.

Hooray, much happiness was had by all. Thanks for reviews @sigmavirus24 and @haikuginger, and thanks so much for doing the work @palaviv! :sparkles: :custard: :cookie:

authors: Lukasa haikuginger palaviv shazow sigmavirus24


text:
Differentiating between selecting via enter vs via click

I would like to be able to run a different method when the user uses keyboard to choose an option versus when she uses mouse (in the former case I want to automatically focus next field). As far as I can see there is no easy way to do it.
Reproduction Link
Here is a super simple example of how it could work
https://jsfiddle.net/zoLtrcp6/3/
My current solution
Currently I just extend the multiselect component and overshadow the addPointerElement() to emit an additional event if enter was pressed. However this solution feels pretty dirty. Is there a better way to do it?
Here's my current code:
import Multiselect from 'vue-multiselect'
export default {
    extends: Multiselect,
    methods: {
        addPointerElement ({ key }) {
            /* istanbul ignore else */
            if (this.filteredOptions.length > 0) {
                this.select(this.filteredOptions[this.pointer], key)
            }
            this.pointerReset()

            if (key === 'Enter') {
                // We have to put it at the end of the event loop.
                setTimeout(() => { this.$emit('enter', this.id) }, 0)
            }
        }
    },
}

``

we had the same problem, thanks for the solution @kovsky0

Could the key code or key name be available as an argument of the @select event @shentao ?

repo: shentao/vue-multiselect


text:
Merge Main to Release 0.3

Merge Main to Release 0.3

Merge Main to Release 0.3

Merge

repo: shesha-io/shesha-framework


text:
修改参数

本科生想问大佬参数怎么修改，比如说我这边一直显示用cpu跑

CUDA_VISIBLE_DEVICES=0 python chatpdf.py --gen_model_type auto --gen_model_model 01-ai/Yi-6B-Chat --corpus_files sample.pdf --rerank_model_name maidalun1020/bce-reranker-base_v1  需要14G以上显存。

谢谢大佬


text:
Ponderation curves

Added some functions that could be helpful to someone.
Also added the possibility of execute module meter.py with the included main directly.

@jajaxdlol Thank you for your PR. Looks a very cool feature! I left some comment in your code. I was wondering if these can be applied to different rates

If you want we can make it as long as I told you, you don't mind to add dependency to another python library which allows to create filters according to frequency.
Sorry for taking so long to answer, I had been very busy studying.

authors: jajaxdlol shichao-an

repo: shichao-an/soundmeter


text:
add attribute condition NOT_CONTAINS

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html
NOT_CONTAINS : Checks for absence of a subsequence, or absence of a value in a set.
AttributeValueList can contain only one AttributeValue element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set ("SS", "NS", or "BS"), then the operator evaluates to true if it does not find an exact match with any member of the set.
NOT_CONTAINS is supported for lists: When evaluating "a NOT CONTAINS b", "a" can be a list; however, "b" cannot be a set, a map, or a list.

:tada: This issue has been resolved in version 5.0.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: michaelwittwer simonmumenthaler

repo: shiftcode/dynamo-easy


text:
fix: add algorithm for nesting tags

This PR adds an algorithm to nest these tags correctly. It (at least locally) passes all the tests and highlight properly with all the default themes from shiki.
Closes #25

I was impressed that this required no test changes - so I've added a test for this specifically.
Before -> After

I knew this was going to be complex code, and I think you did a great job commenting the complex bits - do I entirely understand it? No. Do I think I can understand it if I need to make change, yes 👍🏻  - that's enough for me

Deployed as 1.5.0, nice work

Also, the shiki-twoslash site got updated with the right /n and /r because I fixed my versioning script in the repo - thanks!

authors: frencojobs orta

repo: shikijs/twoslash


text:
webdriver関連のメソッドとプロパティを追加

メソッド

[x] add_cookie()
[ ] create_web_element()
[x] delete_all_cookies()
[x] delete_cookie()
[ ] execute()
[ ] execute_async_script()
[x] execute_script()
[ ] file_detector_context()
[x] get_cookie()
[x] get_cookies()
[ ] get_log()
[ ] get_pinned_scripts()
[x] get_screenshot_as_base64()
[x] get_screenshot_as_file()
[x] get_screenshot_as_png()
[x] get_window_position()
[x] get_window_rect()
[x] get_window_size()
[x] implicitly_wait()
[ ] pin_script()
[ ] print_page()
[ ] save_screenshot()
[x] set_page_load_timeout()
[x] set_script_timeout()
[x] set_window_position()
[x] set_window_rect()
[x] set_window_size()
[ ] start_client()
[x] start_session()
[ ] stop_client()
[ ] unpin()

プロパティ

[ ] application_cache
[ ] capabilities
[x] current_window_handle
[ ] desired_capabilities
[ ] file_detector
[ ] log
[ ] log_types
[ ] mobile
[x] name
[ ] orientation
[x] switch_to
[ ] timeouts
[x] window_handles

主要なメソッドとプロパティの追加完了と判断し、クローズします。

repo: shima-soft/blockly-shimablock


text:
chore: add initial docker compose setup

Closes #145

I've added a separate Makefile target to bootstrap mock and postgres.
We won't be able to launch Argo in docker-compose as it requires k8s API. I don't see much benefit in it, but we can spin up the whole setup in kind if we will really need it.


text:
delete checkbox missing

a normal inline has the Delete? checkbox

Hi, you can add the can_delete = True attribute to your Inline Admin Model, Django for default has this attribute True but for some reason while using this plugin is False by default:
Example:
from django_admin_inline_paginator.admin import TabularInlinePaginated

class ModelWithFKAdminInline(TabularInlinePaginated):
    model = ModelWithFK
    fields = (...)
    can_delete = True

Thanks!


text:
检查公开函数的输入值

例如 insert_order 时 volume 字段填写为 numpy.int 导致无法下单，合约代码没有填写交易所，offset填写为其他值导致开仓等

完成修正， commit id: 4605fe810532f58264a173ab0a9e168cfcb1a353

repo: shinnytech/tqsdk-python


text:
Windows下面没办法直接在vscode的终端中运行

它会先打开matlab的命令行， 所以执行不了文件中的命令

我看网上提供的解决方案需要用python调用命令行的interface
https://www.jianshu.com/p/01d5f4c38ac3
希望能够解决这个问题（不知道是不是只有我自己有这个问题😂）

在windows上测试了一下，才发现matlab在windows和macos还有linux不一样。在后两者中，执行matlab -nodesktop -nosplash是直接在terminal里面打开matlab的命令行的。但是windows中会仍然打开gui。
更新了一下程序，在新版里面新增了一个配置项matlabCMD,你可以将其设置为

应该就可以正常运行代码了，但是无法运行plot之类涉及到gui的函数。
后续有时间了，我再看看windows下到底应该怎么配置吧。

在windows上测试了一下，才发现matlab在windows和macos还有linux不一样。在后两者中，执行matlab -nodesktop -nosplash是直接在terminal里面打开matlab的命令行的，但是windows中会仍然打开gui。
更新了一下程序，在新版里面新增了一个配置项matlabCMD,你可以将其设置为

应该就可以正常运行代码了，但是无法运行plot之类涉及到gui的函数。
后续有时间了，我再看看windows下到底应该怎么配置吧。

好的，非常感谢！

0.2.1 更新中新增了 matlab engine for python 支持，可以在windows下使用GUI方面的函数了。但是需要额外配置python环境。

authors: shinyypig tabris-trees

repo: shinyypig/matlab-in-vscode


text:
Any plans to addsum helper?

I think having this could be useful:
(sum sectionTotal1 sectionTotal2)

Is there any appreciable difference between that and add?

@skeate No, there is none, I just did not see the add helper, sorry :)

@skeate, can you use the add helper for an array? {{add thisItem.arrayOfNumbers}}
A sum helper would be great for this, if add doesn't already do this.

I just tried this with ember-composable-helpers, the following didn't work:
{{add (map-by 'clientPriceCents' order.orderItems)}}

Going to look to see if there is a splat helper of some kind to

If I make a PR, would it be welcomed?

This would be trivial with a spread operator, which is in RFC: https://github.com/emberjs/rfcs/issues/184
though that appears to be more focused on named arguments, and thus (if they don't see a use case for it) might not be implemented to support arrays.
I still don't agree with adding a separate sum helper, especially if it's not just an alias to add. Having to check the docs all the time to remember which was which would be a pain.
This should be doable with ember-composable-helpers, though. Perhaps {{reduce add (map-by 'clientPriceCents' order.orderItems}}? (can't test right now to see if that actually works)
One possibility for this addon would be to just do some typechecking. If we have one param and it's an array, return the sum of that. That does lead to "well why not flatten any arrays passed", and suddenly we're in space where behavior is not completely intuitive.

I was trying to test this out, but couldn't get it to work as you mentioned. Shelfing it for now though as I no longer need it for my use-case.
Thanks for the ideas! Hopefully it'll help people looking to do the same :)

authors: balinterdi brandonjmckay skeate

repo: shipshapecode/ember-math-helpers


text:
Update sqlsrv@8.4

Build sqlsrv@8.4

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-extensions


text:
Update php@8.2

Build php@8.2

:beers: @BrewTestBot has triggered a merge.

repo: shivammathur/homebrew-php


text:
Unable to install oci8 and pdo_oci

Describe the bug
The action fails to install PHP 8.1 with oci8 or pdo_oci due to the failure to install libaio-dev.
Version

[x] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
[x] v2
[ ] v1

Runners

[x] GitHub Hosted
[ ] Self Hosted

Operating systems
Linux
PHP versions
8.1
To Reproduce
Run shivammathur/setup-php@verbose
  with:
    php-version: 8.1
    extensions: oci8
    coverage: pcov
    ini-values: zend.assertions=1
  env:
    fail-fast: true

Expected behavior
PHP installs
Screenshots/Logs
Example run.
2021-11-23T06:42:03.2679839Z ==> Setup oci8-5eead6dfa4a380202e30c36d4ded52a5b10fd00d
2021-11-23T06:42:03.2681355Z ✓ php-config Added php-config 8.1.0-dev
2021-11-23T06:42:07.8855560Z add_libs  libaio-dev
2021-11-23T06:42:07.8858162Z ##[group]add libraries
2021-11-23T06:42:08.3229339Z [apt-fast 06:42:07]
2021-11-23T06:42:08.3230249Z [apt-fast 06:42:07]Working... this may take a while.
2021-11-23T06:42:08.8786834Z E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
2021-11-23T06:42:08.8795844Z [apt-fast 06:42:07]Package manager quit with exit code.
2021-11-23T06:42:09.0028128Z Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
2021-11-23T06:42:09.0031317Z Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
2021-11-23T06:42:09.0050585Z Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
2021-11-23T06:42:09.0126522Z Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
2021-11-23T06:42:09.3104243Z Get:5 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1345 kB]
2021-11-23T06:42:09.3595319Z Get:6 http://azure.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [276 kB]
2021-11-23T06:42:09.3653767Z Get:7 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.5 kB]
2021-11-23T06:42:09.3686576Z Get:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [569 kB]
2021-11-23T06:42:09.3859672Z Get:9 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [876 kB]
2021-11-23T06:42:09.4040507Z Get:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [189 kB]
2021-11-23T06:42:09.4139421Z Get:11 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [19.5 kB]
2021-11-23T06:42:09.4379646Z Get:12 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6588 B]
2021-11-23T06:42:09.5731335Z Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1023 kB]
2021-11-23T06:42:09.6287001Z Get:14 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [191 kB]
2021-11-23T06:42:09.6447218Z Get:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [8964 B]
2021-11-23T06:42:09.6586530Z Get:16 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [664 kB]
2021-11-23T06:42:09.6801919Z Get:17 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [111 kB]
2021-11-23T06:42:09.6948916Z Get:18 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [12.9 kB]
2021-11-23T06:42:15.3119612Z Fetched 5635 kB in 1s (4046 kB/s)
2021-11-23T06:42:16.4248451Z Reading package lists...
2021-11-23T06:42:16.4500521Z
2021-11-23T06:42:16.5404853Z [apt-fast 06:42:16]
2021-11-23T06:42:16.5406354Z [apt-fast 06:42:16]Working... this may take a while.
2021-11-23T06:42:18.0835183Z E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
2021-11-23T06:42:18.0847477Z [apt-fast 06:42:16]Package manager quit with exit code.
2021-11-23T06:42:18.1199721Z ✗ libaio-dev Could not install libaio-dev
2021-11-23T06:42:18.1722749Z ✗ oci8-5eead6dfa4a380202e30c36d4ded52a5b10fd00d Could not install oci8-5eead6dfa4a380202e30c36d4ded52a5b10fd00d on PHP 8.1.0-dev

Additional context
It started failing about two days ago.
Are you willing to submit a PR?
Yes, if I know how to reproduce and fix it. I can install libaio-dev in a docker image, so it doesn't look like an issue with the package itself:
$ docker run -it ubuntu:20.04 bash

root@7fb73b04a88b:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1278 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [682 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [822 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:12 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1097 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1690 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [738 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [7185 B]
Get:18 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Fetched 19.8 MB in 5s (3763 kB/s)
Reading package lists... Done

root@7fb73b04a88b:/# apt-get install -y libaio-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libaio1
The following NEW packages will be installed:
  libaio-dev libaio1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.9 kB of archives.
After this operation, 100 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libaio1 amd64 0.3.112-5 [7184 B]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libaio-dev amd64 0.3.112-5 [13.7 kB]
Fetched 20.9 kB in 1s (21.4 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libaio1:amd64.
(Reading database ... 4127 files and directories currently installed.)
Preparing to unpack .../libaio1_0.3.112-5_amd64.deb ...
Unpacking libaio1:amd64 (0.3.112-5) ...
Selecting previously unselected package libaio-dev:amd64.
Preparing to unpack .../libaio-dev_0.3.112-5_amd64.deb ...
Unpacking libaio-dev:amd64 (0.3.112-5) ...
Setting up libaio1:amd64 (0.3.112-5) ...
Setting up libaio-dev:amd64 (0.3.112-5) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

root@7fb73b04a88b:/#

@morozov I added a fix, can you run the workflow again.

Fixed in https://github.com/shivammathur/php-builder/commit/5e6b979a31783d1ea2863e85125f00aa5842ad98

It seems working now. Thank you, @shivammathur!

authors: morozov shivammathur

repo: shivammathur/setup-php


text:
Implement statvfs64 as statvfs (same for f variant)

When trying to launch dota2 under wine (I am using a too recent amd graphics cards, so I cannot have gpu acceleration on linuxulator), it will simply abort when a game is launch (at the hero selection part).
Apparently just before loading the hero selection screen, dota2 inspect the base directory of the steam games folder by using statvfs64 (I guess it is wine that use it for some windows api).
Having a dummy implementation that return an error is not sufficient since dota2 will just abort, so we need to have some kind of result. I simply use the non extended variant to accomplish this goal. A more elegant way would have been to create the correct structure for statvfs and then copy it for the statvfs64, but I am too lazy and it seems to works.
Note that while it is possible to play dota2 games with wine, it may crash randomly (I get some futex error if I recall). So not really ready for competitive play (I was able to rejoin the game each time, so I guess it is some kind of ok).

A quick search lead to this structure for statvfs64 (which is simply statfs64) on Linux
struct statfs64
  {
    __SWORD_TYPE f_type;
    __SWORD_TYPE f_bsize;
    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsfilcnt64_t f_files;
    __fsfilcnt64_t f_ffree;
    __fsid_t f_fsid;
    __SWORD_TYPE f_namelen;
    __SWORD_TYPE f_frsize;
    __SWORD_TYPE f_flags;
    __SWORD_TYPE f_spare[4];
  };

While on FreeBSD it is
struct statvfs {
        fsblkcnt_t      f_bavail;       /* Number of blocks */
        fsblkcnt_t      f_bfree;
        fsblkcnt_t      f_blocks;
        fsfilcnt_t      f_favail;       /* Number of files (e.g., inodes) */
        fsfilcnt_t      f_ffree;
        fsfilcnt_t      f_files;
        unsigned long   f_bsize;        /* Size of blocks counted above */
        unsigned long   f_flag;
        unsigned long   f_frsize;       /* Size of fragments */
        unsigned long   f_fsid;         /* Not meaningful */
        unsigned long   f_namemax;      /* Same as pathconf(_PC_NAME_MAX) */
};

And an exemple code for a failback with statvfs (I randomly search some repo)
/* Return information about the filesystem on which FILE resides.  */
int
__statvfs64 (const char *file, struct statvfs64 *buf)
{
  struct statfs64 fsbuf;
  int res = __statfs64 (file, &fsbuf);

#ifndef __ASSUME_STATFS64
  if (res < 0 && errno == ENOSYS)
    {
      struct statvfs buf32;

      res = statvfs (file, &buf32);
      if (res == 0)
	{
	  buf->f_bsize = buf32.f_bsize;
	  buf->f_frsize = buf32.f_frsize;
	  buf->f_blocks = buf32.f_blocks;
	  buf->f_bfree = buf32.f_bfree;
	  buf->f_bavail = buf32.f_bavail;
	  buf->f_files = buf32.f_files;
	  buf->f_ffree = buf32.f_ffree;
	  buf->f_favail = buf32.f_favail;
	  buf->f_fsid = buf32.f_fsid;
	  buf->f_flag = buf32.f_flag;
	  buf->f_namemax = buf32.f_namemax;
	  memcpy (buf->__f_spare, buf32.__f_spare, sizeof (buf32.__f_spare));
	}
    }
#endif

  if (res == 0)
    /* Convert the result.  */
    __internal_statvfs64 (file, buf, &fsbuf, -1);

  return res;
}

statvfs64 was implemented in https://github.com/shkhln/libc6-shim/commit/0545d82d17440201c04edef4c4d0f62b2caa9493.

authors: monwarez shkhln


text:
Incorrect metadata parsing when run outside of English-speaking countries

Since there doesn't appear to be any public facing API call to get just metadata, it is all being parsed from the HTML. The only way I have found so far to differentiate between newspaper, magazine, and book is by parsing the English text "Preview this (content type)", but this is failing when run in other countries since the content is being served in different languages regardless of URL.
At present, this may result in newspapers not being downloaded at full resolution (to a point that they are illegible) and all periodicals being saved directly into the target directory rather than into sub-directories as intended depending on where you run the program from geographically.
A new method of determining content type will need to be discovered. I think the types of metadata available can be used to distinguish between periodical and book, but not between magazine and newspaper as far as I can tell. I could potentially just remove the content type flag altogether and always greedily process all data available, but this may result in extra API calls when not processing newspapers (API calls to get an image link for a given page may contain links for adjacent pages as well, and these are used when the content type is not newspaper).

Issue partially resolved in v0.3.2 by adding "&hl=eng" to end of book URLs to force English language, and (hopefully) fully resolved in v0.3.3 by doing the same to URLs used for batch operations.

repo: shloop/google-book-scraper