text:
issue: Battery percentage setting doesn't persist; systemctl does not indicate that bat@.service is running.

Subject of the issue
Hi, I've downloaded and used the bat file from the Release page, version 0.13, following your instruction to the letter but the setting doesn't persist after restarting.
After running the bat, this is the services I see in systemctl:

When I run the following command in the Terminal after restarting:
systemctl --state=active --type=service

I do not see bat@.service running.

However, when I check for all services:
systemctl --type=service

I see that there's the service bat@multi-user.service, but not activated

The service file is identical to that in your source code.
Your system
OS: Ubuntu 22.04.3 LTS x86_64
Host: ZenBook UX425EA_UX425EA 1.0
Kernel: 6.2.0-32-generic
Shell: bash 5.1.16
Resolution: 1920x1080
DE: Unity 7.6.0
WM: Compiz
Terminal: gnome-terminal
Version
0.13 (Latest)
Steps to reproduce
Download and run the bat file as per instructions, then restart/shutdown the laptop.
Expected behaviour
After restart/turn on, the service should automatically be activated by the systemd and the systemctl.
Running bat threshold should return the pre-determined value.
Actual behaviour
The service isn't run, not after restarting. Running bat threshold  returns the default value (100).

On your system, what is the output of cat /etc/systemd/system/bat-*

On your system, what is the output of cat /etc/systemd/system/bat*

It is identical to the source file.
[Unit]
Description=Persist the battery charging threshold after %i
After=%i.target
StartLimitBurst=0

[Service]
Type=oneshot
Restart=on-failure
ExecStart=%s -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'

[Install]
WantedBy=%i.target

There really is no difference.
I also notice that the battery limiter also works after shutting down, however when I turn it on, the threshold immediately resets to 100

What is %s?
And what is cat /sys/class/power_supply/BAT?/charge_control_end_threshold??

What is %s?
I don't really know how to print that out, however I believe that it should be the location of the /bin/bash.

And what is cat /sys/class/power_supply/BAT?/charge_control_end_threshold??

After I run the bat file. After restarting, it is definitely 100.

The unit file should not have %i and %s, but the substituted values. If you do cat /etc/systemd/system/bat* it should print /bin/bash and not %s.

How very interesting. However, the %s and %i must be substituted correctly, otherwise it wouldn't have run in the first place.
A picture of the cat /etc/systemd/system/bat* tho:

That is not going to run like that. When I do systemctl list-unit-files I see my bat with enabled enabled both in green. I am guessing that is not the case with you. I bet if you replace %s with /bin/bash and %i with multi-user it will work on reboot.

Alright, I'll try that.

@pepa65 you are correct.
After I turned the laptop on, the battery indicator turned red again, but when the ubuntu shell appeared, the battery indicator turned white again. This is a most peculiar turn of event.
The bat@.service is still indirect enabled, tho. What is happening and how do I fix it? The glob should work, right?
Should I close the issue when it is not fully solved?

If you did bat persist I would expect for it to work correctly. Let's wait for @tshakalekholoane to chime in, and see if there is something wrong with it.
(My fork is a bit different, and then this repo got changed as well...)

after I commanded sudo bat persist, the contents of the bat@.service reverted back to the previous version. When I try to enable the service with systemctl, this is what it said:
Failed to get properties: Unit name bat@.service is neither a valid invocation ID nor unit name.

That confirms there is something wrong that @tshakalekholoane needs to fix.

@tshakalekholoane It is also good to include RemainAfterExit=true in the unit files under [Service], because then the service shows as Active when doing systemctl status.

I suspect it may have something to do with the unit file not being in the correct format i.e., the target cannot be specified using a template (I think).
The latest version uses systemd templates (see man systemd.unit) instead of writing all the units manually. The thinking being this would allow services to be created for events that are only supported by the distribution and the %s specifier would also help with finding the shell on distributions like NixOS that do use standard paths.
The fix may well be going back to the previous implementation.

I just pushed a fix, @cloudmadeofcandy. Please let me know if it works.
It also includes @pepa65's suggestion to set RemainAfterExit=true so the service status can now be queried.
bat.zip

When I checked out the repo and built, I got bat 0.13-3-g7f0908d and it was as before. When I downloaded the bat.zip I got bat 0.13-4-g32b7edc and it worked for the unit file path expansion, but the %s was still there instead of /bin/bash.

I haven’t merged the changes yet. They’re in this PR if you want to checkout the code.
Yes I left the %s in there so that the application doesn’t have to contain logic to find the shell. systemd can take care of that. Does it not work for you?

Oh, I didn't know, does systemd do that, replace %s with a valid shell? In my fork, I just use /bin/sh as I assume that to be universally available on Linux.

After uninstalling the old bat files in /etc/systemd/system and reloaded the daemon with systemctl, I reinstalled the new bat binary, set and persisted the threshold and restarted the laptop. It didn't work.

When I ran
systemctl --type=service

the system reported that bat@multi-user.service's status is failed failed

The result after running cat /etc/systemd/system/bat* :
[Unit]
Description=Persist the battery charging threshold after hibernate
After=hibernate.target
StartLimitBurst=0

[Service]
Type=oneshot
ExecStart=%s -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'
Restart=on-failure
RemainAfterExit=true

[Install]
WantedBy=hibernate.target
[Unit]
Description=Persist the battery charging threshold after hybrid-sleep
After=hybrid-sleep.target
StartLimitBurst=0

[Service]
Type=oneshot
ExecStart=%s -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'
Restart=on-failure
RemainAfterExit=true

[Install]
WantedBy=hybrid-sleep.target
[Unit]
Description=Persist the battery charging threshold after multi-user
After=multi-user.target
StartLimitBurst=0

[Service]
Type=oneshot
ExecStart=%s -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'
Restart=on-failure
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
[Unit]
Description=Persist the battery charging threshold after suspend
After=suspend.target
StartLimitBurst=0

[Service]
Type=oneshot
ExecStart=%s -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'
Restart=on-failure
RemainAfterExit=true

[Install]
WantedBy=suspend.target
[Unit]
Description=Persist the battery charging threshold after suspend-then-hibernate
After=suspend-then-hibernate.target
StartLimitBurst=0

[Service]
Type=oneshot
ExecStart=%s -c 'echo 60 > /sys/class/power_supply/BAT?/charge_control_end_threshold'
Restart=on-failure
RemainAfterExit=true

[Install]
WantedBy=suspend-then-hibernate.target

My service folder now have multiple bat@.service files, and they aren't sorted into folders like the previous version:

I just use /bin/sh as I assume that to be universally available on Linux.

I’m not sure that’s the case on NixOS but that could be a good default.
@cloudmadeofcandy are you sure you’re running the correct version? bat@multi-user shouldn’t be there anymore. There should be 5 different services for each event after the change.

What’s their status after restart?

@cloudmadeofcandy are you sure you’re running the correct version?

The version of the software said "18 September 2023"

Best disable & delete those old bat@* unit files, the new files start with bat-.

Before the reboot, after setting and persisting:

After the reboot, querying the threshold:

There is only a service called bat-multi-user.service, in activating auto-restart

Best disable & delete those old bat@* unit files, the new files start with bat-.

I did, but to no avail...

So you still have %s in your unit file(s)? Check if replacing that with /bin/sh helps make it work. I am suspecting that systemd doesn't (always?) replace %s with a default shell.

replacing %s with  /bin/sh doesn't work. I've just tried it

replacing %s with /bin/bash does though.

I guess the syntax in that line doesn't work for dash... I remember I adapted it on my fork.

Which version of systemd are you using?

Mine is systemd 249 (249.11-0ubuntu3.10)

But either way, maybe resolving it manually could be the solution here too.

True, but whenever I want to change the threshold, I'd have to edit the file again.
I'll close the issue in the mean time.

@tshakalekholoane You could adjust the line as I suggested, and it would work in either bash or dash or whatever POSIX shell. I am testing a NixOS installation, but the NixOS live CD had /bin/sh linked to one of their binaries.

But according to https://github.com/tshakalekholoane/bat/issues/65#issuecomment-1725016431 /bin/sh also doesn't work so I'd rather mark Bash as a hard requirement instead of trying to enumerate all the possibilities.
@cloudmadeofcandy, please let me know if the following works.
bat.zip

I am pretty sure NixOS also has /bin/sh. But it would require a change in your line to make it work in dash.

Yes, but being immutable and all, does it allow changing the threshold manually or otherwise?

@cloudmadeofcandy, please let me know if the following works.

This works perfectly. Thank you so much :100:

Yes, but being immutable and all, does it allow changing the threshold manually or otherwise?

I would hope so! I think it's more the software that's immutable than the system variables. Otherwise there would be no point to use bat, and no use for bat to support NixOS.

I can now report that NixOS does have /bin/sh (it is the only entry they have in /bin, a link to their store for the bash shell). That said, POSIX does not require that, but they do require sh to be present in PATH, so if you want to be supersafe, you could use your approach to find bash, but instead use it to find sh (as bash is not guaranteed to be present).

Maybe. But I’m still reluctant to use bin/sh given for whatever reason that doesn’t seem to work on Ubuntu (per comment above).
Were you able to determine if NixOS also allows the charging threshold to be set?

That line doesn't work because sh doesn't expand the question mark in echo 60 >/sys/class/power_supply/BAT?/charge_control_end_threshold. You have to do: b=$(echo /sys/class/power_supply/BAT?/charge_control_end_threshold); echo 80 >"$b" (or you have to substitute the actual value into the unit files).

Ah. I see. Then it might better to do in the unit file template since the setup logic already resolves the actual value.

repo: tshakalekholoane/bat

license: MIT


text:
changes to mutation panel

partial fix for issue #66
fixes issue #65

added an index column to mutations df so we can display mutation ID on hover (not sure if this is the right way to do this)
added test case for above
coloured mutations by number of inheritors
changed tooltip information on hover to display mutation ID, number of parents, inheritors and descendants.

https://github.com/tskit-dev/tsinfer-qc/assets/25925005/f72fa2e3-10ee-429b-9c54-444a6f1b48c0

Needs a rebase @savitakartik

Needs a rebase @savitakartik

Done (I think!)

@mergifyio rebase

source: gharchive/pull-request

authors: jeromekelleher savitakartik

repo: tskit-dev/tsinfer-qc

license_type: permissive

license_source: github-api


text:
Load level from console

Is there any way to load a new map without restarting the game, perhaps from the console?

Resolved by #1121

source: gharchive/issue

authors: TheKnarf rexim

repo: tsoding/nothing


text:
🛑 contentdesk.io is down

In 90891a6, contentdesk.io (https://contentdesk.io) was down:

HTTP code: 502
Response time: 882 ms

Resolved: contentdesk.io is back up in 416a2c0 after 25 minutes.

repo: tsolenthaler/upptime


text:
Add a rake build

The gem should have a rake build for building the gem, running tests (once we have them), and packaging and publishing the gem.
Please refer to the following project as an example:
https://github.com/asciidoctor/jekyll-asciidoc

Also add a license file. Again, use the repository listed in the description as a reference.

:+1:

repo: tstumm/asciidoctor-mathematical

license: mit

license_source: bigquery


text:
how to make it work on ios

I am new to ios and xcode.
When I build the project to xcode, it always give me error, how to add the ZipArchive to xcode project, add the whole folder? and waht about the references?
Thanks

To-do's for UniZip for Unity & XCode:
add "PluginsCode>iOS>ZipArchive" files & folder to Unity project "Assets\Plugins\iOS"
After that copy from package UnityZip: ">Asset>Plugins" (folders, files) & add to your project : "Assets/Plugins/IOS"
Alterations for UniZip for iOS successful build:
If package is newly imported after above setup:
(1) Open "ZipArchive.mm" file and REMOVE:
-line 270[dc release]
-line 271[gregorian release]
-line 327[comp release]
-line 328[gregorian release]
-line 40[super delloc]
(2) Open "UnityZipFile.mm" file and REMOVE:
-line 32[zip release]
-line 35[list release]
-line 59[zip release]
-Before Build in XCode select "unity framework" from "unity iPhone" and go to "build settings>other>flags" add "-lz" symbol.

authors: Ad-mob-dev tim-hub

repo: tsubaki/UnityZip


text:
wip

Core

todo

Website

Add Initial Values form example

Codecov Report

Merging #1 into master will decrease coverage by 0.19%.
The diff coverage is 92.3%.

@@            Coverage Diff            @@
##           master       #1     +/-   ##
=========================================
- Coverage   96.63%   96.44%   -0.2%
=========================================
  Files          19       19
  Lines         446      450      +4
  Branches       95       97      +2
=========================================
+ Hits          431      434      +3
- Misses         11       12      +1
  Partials        4        4

Impacted Files
Coverage Δ

src/types.js
100% <ø> (ø)
:arrow_up:

src/dripFormField.js
93.06% <100%> (ø)
:arrow_up:

src/dripFormGroup.js
100% <100%> (ø)
:arrow_up:

src/dripForm.js
95.71% <87.5%> (-0.41%)
:arrow_down:

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 bbfbc47...dba37d5. Read the comment docs.

authors: codecov-io tsuyoshiwada

repo: tsuyoshiwada/react-drip-form


text:
Task 341/criar componentes session bruttal rayza

Screenshots
Footer

Navbar

Task linked: TASK-341 Criar Componentes Session [Bruttal]

authors: RayzaOliveira arantespp

repo: ttoss/ttoss


text:
Training trend seems weird on COCO Datasets

This is my configuration file rewritten as the yaml format for my own convenience.
dataset:
  dataset_root_path: /datasets/
  dataset_directory_name: coco_dataset
  train_images: train2017
  train_annotation: annotations_trainval2017/person_keypoints_train2017.json
  valid_images: val2017
  valid_annotation: annotations_trainval2017/person_keypoints_val2017.json

model:
  model_name: cpm
  model_subname:
  batch_size: 3
  input_width: 192
  input_height: 192
  output_width: 24
  output_height: 24

preprocessing:
  is_scale: True
  is_rotate: True
  is_flipping: True
  is_resize_shortest_edge: True
  is_crop: True
  rotate_min_degree: -15.0
  rotate_max_degree: 15.0
  heatmap_std: 5.0

training:
  batch_size: 32
  learning_rate: 0.001
  epsilon: +1.e-8
  number_of_epoch: 200
  period_echo: 100
  period_save_model: 5000
  period_tensorboard: 10
  period_valid_image: 5000
  valid_pckh: True
  pckh_distance_ratio: 0.5
  multiprocessing_num: `4`

I've trained CPM model for days using this configuration and when I looked at the tensorboard the loss score and PCKh value showed no improvements over the course of training.

Of course the heatmap result somehow showed the same results.

When I changed my dataset from coco to ai_challenger dataset, the model seemed to be training fine.

I'm thinking that the error is caused from the data preparation steps however did not find specific codes to fix. Do you have an idea for this?

I just figured out that the data loading modules are only compatible for ai challenger dataset yet.


text:
markdown语法的>支持不好

在结合主题后，发现markdown中  > 支持不是特别好，请问什么时候可以支持

#16 #234


text:
Rewrite bindings

### Implement binding API
- [x] Bind individual widgets
- [x] Bind widget classes
- [ ] Bind entire application (global bind)
- [x] Get information about bindings
- [x] Generate virtual events
- [x] Create event aliases
- [ ] `bindtags`

### Event classes
- [x] Mouse events (with keyboard modifiers)
- [x] Scroll event
- [x] Keyboard event
- [x] State events (hover, focus)
- [x] Window manager events (maximize, minimize, context help)
- [x] Virtual events

### Helpers
- [ ] Hotkey creator
- [ ] Event sequence generator

### Tests
- [ ] For everything from above

Why not?

Why not?

What?

Why can't you do keyboard modifiers on non-keyboard events?

Because there is a bug in the event type matching mechanism, and I haven't had time to fix it yet.

Ahh, these tasklists are cool.

Make sure to add .bind_class() in this, it can be incredibly useful.

It's already added! :))

You can call .bind() on a class instead of an instance.

Rdbende, you sir, are epic.

authors: Moosems rdbende

repo: tukaan/tukaan


text:
Add timestamp parameter to fetchTopicOffsets

Add support for fetching offsets that correspond to a particular timestamp (implements #329).

Not sure what was wrong with the tests before, but they passed after I re-ran them by merging the latest master.

Can we get this merged haha? Need this functionality really bad

Thanks for the contribution, but we're going to try to merge #604 instead, which adds a new public method rather than extending fetchTopicOffsets with another parameter.

authors: Nevon ShanonJackson rvighne

repo: tulios/kafkajs


text:
Lyric

Add lyric proto & model support
Add util functions, BarBeat, advanceTickByBars

Approved, congrats on your first PR! 🍾

authors: andantei gaodechen

repo: tuneflow/tuneflow-py


text:
Check if vector is malformed

We should test if vectors meet the standards of the specification. This should prevent the library to throw unexpected errors. For this to work we need a function that tests the following:

Are all required metrics included in the vector?
Are there any metrics that are not in the specification?
Do all metrics have only possible values?

For refrence which metrics are required and so on you can take a look here.
It might be an idea to make this function available to the end user to quickly test if a vector is valid.

I'm really enjoying the project, as I'm already finishing the other issue, can I keep this one too?

Yes, sure @jackson541. Please have a look at https://github.com/turingpointde/cvss.js/issues/9#issuecomment-702807593 before though regarding your fork.

@jackson541 FYI: There is already a JS implementation for this where you could have a look:
https://www.first.org/cvss/calculator/cvsscalc30.js
https://www.first.org/cvss/v3.0/use-design#techdesign
The checks to determine if the vector is malformed are really bloated though, so just consider writing your own implementation. I think it would be way shorter with regular expressions (even though regular expressions are generally quite slow, but I think that does not matter in this case).

Nice, so i'm going to create with regex

@Fubinator is it necessary that the arguments of the vector are always in the same order (AV:N/AC:H/PR:L/UI:R...) or can they be in another order (AC:H/PR:L/AV:N/UI:R...)?

@jackson541
From the spec: "Metrics may be specified in any order in a vector string, though Table 15 . shows the preferred order."
So the order does not really matter.
One thing that I just discovered and have not included in the issue: A vector string must not include the same metric more than once."
So we have to make sure every vector exists only once.

@Fubinator Well observed, I will work on it. Thank you!


text:
Improve documentation for configuring tusd

TODO:

[ ] Mention S3-compatible storages and the mandatory schema
[ ] Mention Azurite?

Superseeded by #1085.

repo: tus/tusd


text:
Update style.css

Taking "About Us" text to the center.


text:
🛑 Speedtest Plotter is down

In 167c9d4, Speedtest Plotter (https://speed.eighty-three.me) was down:

HTTP code: 523
Response time: 3062 ms

Resolved: Speedtest Plotter is back up in f20e314.

repo: tuxpeople/monitoring


text:
feat: lock dete-picker-view component add

Description
Please provide a brief summary of the changes. If it is related to an issue, please bring the issue number, like fixes #${number}.
Package

[ ] tuya-panel-animation-sdk
[ ] tuya-panel-api
[ ] tuya-panel-electrician-sdk
[ ] tuya-panel-ipc-sdk
[ ] tuya-panel-lamp-sdk
[ ] tuya-panel-lock-sdk
[ ] tuya-panel-robot-sdk

Type of change
Please select the relevant option.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Codecov Report

Merging #50 (5f845be) into main (24decb8) will increase coverage by 2.25%.
The diff coverage is 83.49%.

@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   56.29%   58.55%   +2.25%
==========================================
  Files         117      119       +2
  Lines        4622     5040     +418
  Branches     1073     1174     +101
==========================================
+ Hits         2602     2951     +349
- Misses       2018     2087      +69
  Partials        2        2

Impacted Files
Coverage Δ

...panel-lock-sdk/src/date-picker-view/datePicker.tsx
83.48% <83.48%> (ø)

...tuya-panel-lock-sdk/src/date-picker-view/index.tsx
83.50% <83.50%> (ø)

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 24decb8...5f845be. Read the comment docs.

authors: codecov-commenter zegezs

repo: tuya/tuya-panel-sdk


text:
feat: add PusherAnimate and RollerAnimate component

Owner

[x] Nickname(Tuya): 庄子

Description
Please provide a brief summary of the changes. If it is related to an issue, please bring the issue number, like fixes #${number}.
Package

[ ] tuya-panel-animation-sdk
[ ] tuya-panel-api
[ ] tuya-panel-electrician-sdk
[ ] tuya-panel-ipc-sdk
[ ] tuya-panel-lamp-sdk
[ ] tuya-panel-lock-sdk
[ ] tuya-panel-robot-sdk
[ ] tuya-panel-outdoor-sdk
[x] tuya-panel-remote-sdk

Type of change
Please select the relevant option.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Review CheckList
Don't edit this section.

[ ] Intra-group review
[ ] ESLint lint
[ ] Example Run
[ ] Jest Run
[ ] No Grammer Error
[ ] No Spell Error

Codecov Report

Merging #98 (4a3aeb2) into main (f4054e9) will increase coverage by 0.41%.
The diff coverage is 76.04%.

@@            Coverage Diff             @@
##             main      #98      +/-   ##
==========================================
+ Coverage   61.58%   61.99%   +0.41%
==========================================
  Files         169      171       +2
  Lines        6416     6609     +193
  Branches     1492     1533      +41
==========================================
+ Hits         3951     4097     +146
- Misses       2451     2498      +47
  Partials       14       14

Impacted Files
Coverage Δ

...remote-sdk/src/components/roller-animate/index.tsx
67.20% <67.20%> (ø)

...remote-sdk/src/components/pusher-animate/index.tsx
92.53% <92.53%> (ø)

...-remote-sdk/src/components/circle-handle/index.tsx
46.53% <0.00%> (-0.47%)
:arrow_down:

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 583aa09...4a3aeb2. Read the comment docs.

authors: codecov-commenter xiaozuanf


text:
🛑 Recruit Connect - API is down

In bbdaf03, Recruit Connect - API (https://api.recruitconnect.vn) was down:

HTTP code: 502
Response time: 1001 ms

Resolved: Recruit Connect - API is back up in bb450ce.

repo: tuyencaovn/recruituptime


text:
jx-spring-boot-sample to 0.0.2

Promote jx-spring-boot-sample to version 0.0.2

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
Web API datafeed

How can I use data feed except websocket
For example how can use a simple web api url without port number?

which api do you want to use ? is it a public api

I get data from binance exchange in one minute timeframe and make custom timeframe in server side
now I can show this candles with tradingvue but it is not live and should to refresh page

@hossein2408 i dont know anything about vue but i think your problem can solved with state machines. Here is a good documentation for you : https://www.phillipparker.io/articles/finite-state-machines-in-vue

repo: tvjsx/trading-vue-js


text:
【BUG】前端传null值时DTO解析失败，程序报错

dto
<?php

namespace App\Dto\Admin\Carousel;

use App\Dto\BaseDto;
use Hyperf\ApiDocs\Annotation\ApiModelProperty;
use Hyperf\DTO\Annotation\Validation\Validation;

class CarouselUpdateDto extends BaseDto {

    #[ApiModelProperty('分类')]
    public $category_id;

    #[ApiModelProperty('图片')]
    #[Validation('array')]
    public $imgs;

    #[ApiModelProperty('链接类型')]
    public $type;

    #[ApiModelProperty('链接')]
    public $link;

    #[ApiModelProperty('启用状态')]
    public $enable;

    #[ApiModelProperty('排序值')]
    public $sort;
}

数据
{"carousel_id":1,"category_id":8,"imgs":[{"filename":"uploadlib-.png","type":"image","url":"http://127.0.0.1:9601/res-lib/upload/uploadlib-1653622489404.20221123143058.png","preview_url":"http://127.0.0.1:9601/res-lib/upload/uploadlib-1653622489404.20221123143058.png"}],"type":"none","link":null,"enable":1,"sort":1,"created_at":"2023-01-13 16:39:51","updated_at":"2023-01-13 17:55:31","deleted_at":null}

错误日志
Fatal error: Uncaught JsonMapper_Exception: JSON property "link" in class "App\Dto\Admin\Carousel\CarouselUpdateDto" must not be NULL in /data/www/hyperf-admin/vendor/netresearch/jsonmapper/src/JsonMapper.php:216
Stack trace:
#0 /data/www/hyperf-admin/vendor/tangwei/dto/src/Mapper.php(17): JsonMapper->map(Array, Object(App\Dto\Admin\Carousel\CarouselUpdateDto))
#1 /data/www/hyperf-admin/vendor/tangwei/dto/src/Middleware/CoreMiddleware.php(119): Hyperf\DTO\Mapper::map(Array, Object(App\Dto\Admin\Carousel\CarouselUpdateDto))
#2 /data/www/hyperf-admin/vendor/tangwei/dto/src/Middleware/CoreMiddleware.php(72): Hyperf\DTO\Middleware\CoreMiddleware->validateAndMap('App\\Controller\\...', 'dto', 'App\\Dto\\Admin\\C...', Object(App\Dto\Admin\Carousel\CarouselUpdateDto))
#3 /data/www/hyperf-admin/vendor/tangwei/dto/src/Middleware/CoreMiddleware.php(25): Hyperf\DTO\Middleware\CoreMiddleware->getInjections(Array, 'App\\Controller\\...', Array)
#4 /data/www/hyperf-admin/vendor/hyperf/http-server/src/CoreMiddleware.php(160): Hyperf\DTO\Middleware\CoreMiddleware->parseMethodParameters('App\\Controller\\...', 'update', Array)
#5 /data/www/hyperf-admin/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatched), Object(Hyperf\HttpMessage\Server\Request))
#6 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#7 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#8 /data/www/hyperf-admin/runtime/container/proxy/App_Core_RBAC_Middleware_RBACMiddleware.proxy.php(49): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#9 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Core\RBAC\Middleware\RBACMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#10 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#11 /data/www/hyperf-admin/app/Core/Auth/Aspect/AuthMiddlewareAspect.php(45): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#12 /data/www/hyperf-admin/vendor/hyperf/di/src/Aop/Pipeline.php(30): App\Core\Auth\Aspect\AuthMiddlewareAspect->process(Object(Hyperf\Di\Aop\ProceedingJoinPoint))
#13 /data/www/hyperf-admin/vendor/hyperf/utils/src/Pipeline.php(95): Hyperf\Di\Aop\Pipeline->Hyperf\Di\Aop\{closure}(Object(Hyperf\Di\Aop\ProceedingJoinPoint))
#14 /data/www/hyperf-admin/vendor/hyperf/di/src/Aop/ProxyTrait.php(86): Hyperf\Utils\Pipeline->then(Object(Closure))
#15 /data/www/hyperf-admin/vendor/hyperf/di/src/Aop/ProxyTrait.php(29): Qbhy\HyperfAuth\AuthMiddleware::handleAround(Object(Hyperf\Di\Aop\ProceedingJoinPoint))
#16 /data/www/hyperf-admin/runtime/container/proxy/Qbhy_HyperfAuth_AuthMiddleware.proxy.php(49): Qbhy\HyperfAuth\AuthMiddleware::__proxyCall('Qbhy\\HyperfAuth...', 'process', Array, Object(Closure))
#17 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Qbhy\HyperfAuth\AuthMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#18 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#19 /data/www/hyperf-admin/vendor/hyperf/validation/src/Middleware/ValidationMiddleware.php(83): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#20 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\Validation\Middleware\ValidationMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#21 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#22 /data/www/hyperf-admin/runtime/container/proxy/App_Core_RespFmt_Middleware_RespFmtMiddleware.proxy.php(35): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#23 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Core\RespFmt\Middleware\RespFmtMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#24 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#25 /data/www/hyperf-admin/runtime/container/proxy/App_Core_Utils_Middleware_LanguageMiddleware.proxy.php(30): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#26 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Core\Utils\Middleware\LanguageMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#27 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#28 /data/www/hyperf-admin/app/Core/Utils/Middleware/CorsMiddleware.php(32): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#29 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Core\Utils\Middleware\CorsMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#30 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#31 /data/www/hyperf-admin/vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#32 /data/www/hyperf-admin/vendor/hyperf/http-server/src/Server.php(117): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array, Object(Hyperf\DTO\Middleware\CoreMiddleware))
#33 {main}
  thrown in /data/www/hyperf-admin/vendor/netresearch/jsonmapper/src/JsonMapper.php on line 216
[2023-01-13 18:06:29 *1265.0]   WARNING Channel::~Channel() (ERRNO 10003): channel is destroyed, 2 consumers will be discarded
PHP Fatal error:  Uncaught Swoole\Error: API must be called in the coroutine in /data/www/hyperf-admin

https://github.com/tw2066/dto/commit/d154741a01637f5e5509122f34cbe7c2d55eea4e

composer update 更新 验证

可以了，👍


text:
[Bug] 某些链接被识别为了下载文件，无法跳转

Search before asking

[X] 我在 issues 列表中搜索，没有找到类似的内容。
I searched in the issues and found nothing similar.

Pake version
2.0.4
System version
Mac OS
Node.js version
v19.8.1
Minimal reproduce step
打包Conflunce Wiki系统，此Wiki中的很多链接都是以 https://xxxxxx.action 结尾的，被识别为了下载文件，导致链接无法跳转
What did you expect to see?
正常跳转链接
What did you see instead?
下载了一个文件
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

最近版本我们修复一下，Conflunce Wiki系统 这个系统有办法截图给我看看所有的跳转地址吗？

是要看链接的形式吗？还是要看什么？
老版本是可以的，应该是1.xx具体忘了哪个版本了
以下截图里的3个链接都被识别为了下载文件：

你直接给对应的地址形式，url 即可

这个几个地址分别是：
People: https://wiki.xxx.com/browsepeople.action
Manage Space Blueprints: https://wiki.xxx.com/blueprintcreator/space-blueprints/space-blueprints-management.action
Create: https://wiki.xxx.com/pages/createpage.action?spaceKey=MP&fromPageId=64815211&src=quick-create

https://github.com/?spaceKey=MP&fromPageId=64815211&src=quick-create

pake-cli@2.0.6


text:
.navbar-nav missing .navbar-toggleable-xx

Upgraded from alpha.6 to beta.
...
**alpha6:**
@media (min-width: 992px)
.navbar-toggleable-md .navbar-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}
**beta:**
the whole query is missing resulting in vertical centered menu instead of inline. All sizes are affected.

Class has been renamed. Please consult the latest docs at https://getbootstrap.com.

authors: mdo paulincai

repo: twbs/bootstrap


text:
iframe responsiveoption

Hi ,
The iframe responsive option just works in Chrome but does not work in Mozilla or IE.
EXAMPLE : The following code will work in chrome, but not in IE or Mozilla.
NOTE : It works fine in IE and Mozilla if I take out the responsive option from the iframe.

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.
This is an automated reply

authors: Johann-S flathtml


text:
download a version 3

hello
i need to download a version 3 to ushaihidi
thanks

https://getbootstrap.com/docs/3.4/getting-started/#download

thanks for all
Le vendredi 4 septembre 2020 à 17:37:42 UTC+2, Patrick H. Lauke <notifications@github.com> a écrit :

https://getbootstrap.com/docs/3.4/getting-started/#download
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


text:
[5.0-beta2] Where is text-center?

Guys, where is text-center utility? I couldn't find found it in https://github.com/twbs/bootstrap/blob/main/scss/_utilities.scss#L466 , minified files also have it. But when I import _utilities.scss alongside with its _api.scss and all functions and mixins, I still don't get it in my code.
My main scss file: _bootstrap.scss
@import "bootstrap-minimal";

// Optional
@import "~bootstrap/scss/root";
@import "~bootstrap/scss/reboot";
@import "~bootstrap/scss/type";
//@import "~bootstrap/scss/images";
@import "~bootstrap/scss/containers";
@import "~bootstrap/scss/grid";
@import "~bootstrap/scss/utilities";
$utilities: map-get-multiple(
  $utilities,
  (
    "display",
    "order",
    "flex",
    "flex-direction",
    "flex-grow",
    "flex-shrink",
    "flex-wrap",
    "justify-content",
    "align-items",
    "align-content",
    "align-self",
    "margin",
    "margin-x",
    "margin-y",
    "margin-top",
    "margin-end",
    "margin-bottom",
    "margin-start",
    "negative-margin",
    "negative-margin-x",
    "negative-margin-y",
    "negative-margin-top",
    "negative-margin-end",
    "negative-margin-bottom",
    "negative-margin-start",
    "padding",
    "padding-x",
    "padding-y",
    "padding-top",
    "padding-end",
    "padding-bottom",
    "padding-start",
  )
);
@import "~bootstrap/scss/helpers";
@import "~bootstrap/scss/utilities/api";

and bootstrap-minimal.scss:
// Required
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
@import '~font-face-mixin/fontface';

@import "../global/bootstrap-override";
@import "../global/variables";

Aren't you overriding the $utilities map, dropping text utilities on the way?
Add text back to your utilities and it should be ok.

I will be honest, I didn't check what map-get-multiple() does, but I presumed since it has existing $utilities as its first argument, it just merges. Am I wrong?
  $utilities,
  (
    "display",
    "order",
    "flex",
    "flex-direction",
    "flex-grow",
    "flex-shrink",
    "flex-wrap",
    "justify-content",
    "align-items",
    "align-content",
    "align-self",
    "margin",
    "margin-x",
    "margin-y",
    "margin-top",
    "margin-end",
    "margin-bottom",
    "margin-start",
    "negative-margin",
    "negative-margin-x",
    "negative-margin-y",
    "negative-margin-top",
    "negative-margin-end",
    "negative-margin-bottom",
    "negative-margin-start",
    "padding",
    "padding-x",
    "padding-y",
    "padding-top",
    "padding-end",
    "padding-bottom",
    "padding-start",
  )
);

Actually map-get-multiple() shouldn't be about overriding, it just creates new values for those $utilities. I am a bit confused. Where am I dropping existing $utilities?

Ok, adding "text-align" to that list worked :D Thanks!

authors: ffoodd shehi


text:
Make x-ua-compatible lowercase

This is really minor, I know, but HTML5 Boilerplate changed this tag to all lowercase. With Gzip compression on it can save 3 bytes. :-)
REF: https://github.com/h5bp/html5-boilerplate/issues/1656

For consistency, this would need to be updated everywhere in the code, not just in this one example.
Personally, I don't think it's worth the effort or the resulting inconsistency with other third-party docs.

@twbs/team Anyone have an opinion here? I'm -1 on account of inconsistency with Microsoft's docs and HTTP header capitalization conventions, and how tiny the size benefit is.

I have a purely personal/aesthetic preference for lowercase, for no actual hard reason though.

I'm against this because I find it easier to read. The same applies to
doctype too.
On Jul 5, 2015 11:54 AM, "Chris Rebert" notifications@github.com wrote:

@twbs/team https://github.com/orgs/twbs/teams/team Anyone have an
opinion here? I'm -1 on account of inconsistency with Microsoft's docs and
HTTP header capitalization conventions, and how tiny the size benefit is.
—
Reply to this email directly or view it on GitHub
https://github.com/twbs/bootstrap/pull/16723#issuecomment-118596637.

:-1:

Not worthwhile for v3 given it's a trivial change.

authors: XhmikosR coliff cvrebert hnrch02 mdo patrickhlauke


text:
Stylelint: Disable custom-property-empty-line-before

Cleans up a ton of CSS comments where we've disabled the rule.

Confirmed, this change breaks upstream CI https://github.com/twbs/stylelint-config-twbs-bootstrap/runs/6567960032?check_suite_focus=true
I'll make an upstream patch and release a new version.

authors: XhmikosR mdo


text:
GCE: add 20.09 to url_map

This is taken from gsutil ls -l gs://nixos-images, which I found here.
Not entirely sure if these images are trustworthy, seeing as they belong to a different bucket.

nice. I think this could be automated as well if you want to give it a shot.

authors: asymmetric zimbatm

repo: tweag/terraform-nixos


text:
Fixes #27: Make app ID/path argument optional in record-traffic

https://github.com/tweaselORG/cli/assets/4048809/9196d3de-0620-4e8a-9a99-1f37fb3fb034

@baltpeter Do you want to take a look at this before I merge?

Yes.

Okay, then. Approved apart from the period.

repo: tweaselORG/cli


text:
how to get Full text using tweepy

i'm using This script to get tweets. But the problem is that it is not giving full Text. what changes i need to make in this script to get full text ?

After this Twitter API update, if you want to get full-text on Twitter response, you need to add a keyword tweet_mode='extended' when calling API like this:
api.search(q='<something to search keyword🔍>', tweet_mode='extended')

By adding this keyword, you can get full_text field in the response from the API, instead of text field. See the example response below:
{
...
 'favorited': False,
 'full_text': 'long tweet text *****************************************************************************************************************************************************************************************************',
 'geo': None,
 'id': 943553795270643712,
 'id_str': '943553795270643712',
...
}

Great! I'll see the question you referred to.

how can I have full_text at the Listener ?
    def on_data(self, data):
        data = json.loads(data)
        print(data['extended_tweet']['full_text'])

this raises KeyError exception

I think it's just data['full_text']. Try that out

@EmmanuelObo thanks mate, unfortunately it didn't work out.
I see on the json output that it's at
['extended_tweet']['full_text']

but I don't know why, I'm not able to catch it.

@converge Maybe you'd better define on_status() method instead of on_data(). It enables us to handle status as ordinary Status object same as using REST API and not need to parse JSON string by hand.
I could access full_text value by following code:
class StreamListener(tweepy.StreamListener):
    def on_status(self, status):
        print('full_text:', status.extended_tweet['full_text'])

stream = tweepy.Stream(auth=api.auth, listener=StreamListener())
stream.filter(track='python -RT')

@numan619 Thanks! This worked like a charm! 👍

Hi Guys,
Thank you for putting up this post and helping us beginners.
Can someone also tell me how to put multiple keywords for search. I tried something like this:-
api.search(q=['texas', 'austin'],tweet_mode = 'extended', lang='en', count=200)
but its giving me 0 results. I think it is concatenating everything i put in "q".

I am using this script where shall I add the full text, please help
for tweet in tweepy.Cursor(api.search,q="#موبايلي_ترفع_سعر_شرائح_البيانات",count=10000,
lang="ar",
since="2017-04-03").items():

try this out. I guess you have to consider the retweeted_status attribute for retweets.
You have to use the try and except block for both the cases because status object has no attribute extended_tweet for tweets less than 140 characters long.
class Stream2Screen(tweepy.StreamListener):
	def on_status(self, status):
		if hasattr(status, 'retweeted_status'):
			try:
				tweet = status.retweeted_status.extended_tweet["full_text"]
			except:
				tweet = status.retweeted_status.text
		else:
			try:
				tweet = status.extended_tweet["full_text"]
			except AttributeError:
				tweet = status.text

try this out. I guess you have to consider the retweeted_status attribute for retweets.
You have to use the try and except block for both the cases because status object has no attribute extended_tweet for tweets less than 140 characters long.
class Stream2Screen(tweepy.StreamListener):
	def on_status(self, status):
		if hasattr(status, 'retweeted_status'):
			try:
				tweet = status.retweeted_status.extended_tweet["full_text"]
			except:
				tweet = status.retweeted_status.text
		else:
			try:
				tweet = status.extended_tweet["full_text"]
			except AttributeError:
				tweet = status.text

Thank you very much! You are the only one who has solved my problem about the full text using the Streaming API! You are amazing! THANK YOU!

I've added a section in the documentation that covers extended Tweets to supplement Twitter’s Tweet updates documentation.
@converge @Flyer4109 @noufmbrk90
@converge

this raises KeyError exception

That is because extended_tweet is not a field in the case that the Tweet is not an extended Tweet.

I see on the json output that it's at
['extended_tweet']['full_text']

but I don't know why, I'm not able to catch it.

You should be able to use the extended_tweet field for extended Tweets.
I'm not sure what you mean by "catch it."
@emmanuelobo

I think it's just data['full_text']. Try that out

That is not the case for streams.
@lovekesh13 That's not relevant to this issue.
However, I'm unable to reproduce your issue. I'm getting results with that exact line of code.

https://github.com/tweepy/tweepy/issues/974#issuecomment-383846209 works sometimes, but if status.retweeted_status.truncated == True there is no way of getting the original text besides looking up the original tweet separately

You can simply use the extended_tweet attribute of the original Tweet, as the comment you linked does.
See https://tweepy.readthedocs.io/en/latest/extended_tweets.html#handling-retweets.

i am trying to get twitter sentiment using python and i keep getting this error, anyone know why??

Please don't necrobump old closed issues.
That's also unrelated to this issue. You're most likely using invalid credentials.

repo: tweepy/tweepy


text:
Dynamically created template

If i try to load template from remote source and add it into element tempo do not consider it:
  $(pages).each(function (i, page) {
  $.get('/layouts/' + page.layout + '/markup.html',
    function (data) {
      var p = document.createElement('div');
      p.innerHTML = data;
      // START ERROR
      // p.innerHTML = '<div>{{text}}</div>'
      var layout = Tempo.prepare(p);
      // p.innerHTML = ''
      // END ERROR!
      layout.starting();
      layout.render(data.layouts);
    });
});

is not possible generate tempalte without add it into page?

+1 for me on this feature. Thanks for the great JSON templating engine! I'm looking forward to playing with it.

Hey guys, this feature is supported in 2.0 dev branch. You can see examples of it (external templates) in the solr example. Let me know how you get on!!

Thanks.. looking forward to trying it out

authors: iatek mavimo mrolafsson

repo: twigkit/tempo


text:
Add success callback to biometrics put

Description

Add callback when there is a success authentication

          2 Warnings

:warning:
The Pull Request summary does not contain the commit message convention

:warning:
The Pull Request title does not follow the convention [ACCSEC-0000] PR Title text

  Generated by :no_entry_sign: Danger

authors: AuthyApps SergioFierro

repo: twilio/twilio-verify-android


text:
go vet: assignment copies lock value and too small shift

Not sure if this is an issue but you might want to have a look.
$ go vet github.com/twinj/uuid
github.com/twinj/uuid/rfc4122.go:46: (int64(timestamp()) ^ int64(gregorianToUNIXOffset)) * 0x6ba7b814 too small for shift of 1806153746
github.com/twinj/uuid/rfc4122.go:47: assignment copies lock value to state: uuid.State

Thx

Removed seed library and used crypto rand for better quality randoms in clock

authors: magiconair twinj

repo: twinj/uuid


text:
Buttons flicker when toggling their color

If you use toggleClass("info"), so that a button changes color when clicked, it causes the button to flicker because of the 0.1s css transition on the class.

You can overwrite the transition to remove it. They are there so inner shadows can be animated.

Yup, a bit of a side effect, but not a huge one. @pokonski has the lowdown on how to deal if you like.

authors: cberner markdotto pokonski

repo: twitter/bootstrap


text:
Using the exception mapping filter

The documentation says it is required to use ExceptionMappingFilter in the filter chain. Also, CommonFilters has that filter included already.
Looking at the example in the documentation, it has CommonFilters and ExceptionMappingFilter in the same chain. Surely this is a conflict unless I'm missing something.
Perhaps, the docs should be updated with ExceptionMappingFilter removed from the chain but a note made that it isn't added  because CommonFilters already includes it. Happy to send a PR for this.

@fayimora thanks! The examples in the docs are meant to be illustrative and while it isn't expected that you can just copy this we can definitely fix this line.

@fayimora this has been addressed. See: http://twitter.github.io/finatra/user-guide/build-new-http-server/exceptions.html
Thanks!

That was quick. Thanks @cacoco !

authors: cacoco fayimora

repo: twitter/finatra


text:
Chrome and Firefox won't send form data to HTTP URL from HTTPS site

Hello,
I've been spending the past couple of days trying to figure out why Chrome and Firefox are not allowing non-secure URLs through, but have come up empty so far. I was hoping perhaps someone here has come across this and knows whether I'm doing something wrong or if this is a bug in Chrome and/or Firefox.
We are working with partners who have a test server configuration where Site A uses HTTPS, but then after a form submission, redirects to Site B, which uses HTTP. Here is our secure headers config:
SecureHeaders::Configuration.default do |config|
  config.hsts = "max-age=#{1.day.to_i}; includeSubDomains"
  config.x_frame_options = 'SAMEORIGIN'
  config.x_content_type_options = 'nosniff'
  config.x_xss_protection = '1; mode=block'
  config.x_download_options = 'noopen'
  config.x_permitted_cross_domain_policies = 'none'
  config.csp = {
    default_src: %w('self'),
    report_only: false,
    frame_src: %w('self'), # deprecated in CSP 2.0
    child_src: %w('self'), # CSP 2.0 only; replaces frame_src
    # frame_ancestors: %w('self'), # CSP 2.0 only; overriden by x_frame_options in some browsers
    form_action: %w('self' *.foo.example.com:*), # CSP 2.0 only
    block_all_mixed_content: true, # CSP 2.0 only
    connect_src: %w('self'),
    font_src: %w('self' data:),
    img_src: %w('self' data:),
    media_src: %w('self'),
    object_src: %w('none'),
    script_src: %w('self' *.newrelic.com *.nr-data.net 'unsafe-inline'),
    style_src: %w('self'),
    base_uri: %w('self'),
  }
  config.hpkp = {
    report_only: false,
    max_age: 60.days.to_i,
    include_subdomains: true,
    pins: [
      { sha256: 'abc' },
      { sha256: '123' }
    ]
  }
end

We have tried all of the following in our form-action, including hardcoding the full URL itself, and none of them worked.
*://*.foo.example.com:*/*
*.foo.example.com:*
http://*.foo.example.com:*
http://*.foo.example.com:*/*
http://*.foo.example.com:8080/*

Chrome keeps saying:
Refused to send form data to 'http://baz.foo.example.com:8080/bar/baz/' because it violates the following Content Security Policy directive: "form-action 'self' *://*.foo.example.com:*/*".

We tried disabling HSTS (setting max-age=0) and block_all_mixed_content, but it still fails. We thought it might have been the 8080 port number, but it also fails with non-secure URLs that don't include a port number. If we redirect to an HTTPS URL, it works fine.
We know that we shouldn't be using mixed content, but we'd like to understand whether or not it's possible to whitelist a non-secure URL in this scenario.
Any ideas?

This is because what you're trying to accomplish introduces mixed content, or a "broken lock" scenario. Generally this should be avoided at all costs. secure_headers will strip the scheme from all sources by default to discourage introducing mixed content.
However, you can set the :preserve_schemes => true flag. This was introduced in https://github.com/twitter/secureheaders/pull/212 and is (lightly) documented in the README. I strongly suggest moving whatever your foo.example.com refers to to use HTTPS rather than use this flag, but I understand that is just not an option sometimes.
HSTS has nothign to do with this and yes, block-all-mixed-content will also prevent the mixed content scenario you are attempting.

frame_ancestors: %w('self'), # CSP 2.0 only; overriden by x_frame_options in some browsers

Frame ancestors actually overrides x-frame-options but is only supported by Chrome (and Opera) and Firefox, so I can see why you would say that.

Aha! Thanks for the fast response. preserve_schemes: true did the trick. We had upgraded to secure_headers 3.0 a while back, and this option wasn't there, so I missed it.
As for the frame ancestors issue, I forget where I read this, but someone was saying that Chrome and/or Firefox don't follow the spec. They should be using frame ancestors when x-frame-options is present, but they don't. Maybe this has been resolved since that was written?

Here is where I read that: https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet#Limitations

Section 7.7.1 of the CSP Spec says X-Frame-Options should be ignored if frame-ancestors is specified, but Chrome 40 & Firefox 35 ignore the frame-ancestors directive and follow the X-Frame-Options header instead.

Looks like this was the case with older versions of Firefox and Chrome. I haven't tested the latest versions.

Looks like this was the case with older versions of Firefox and Chrome. I haven't tested the latest versions.

TBH neither have I. But those are ancient versions and I would hope the person who wrote that comment has filed bugs :)

On Firefox 44, it still ignores frame-ancestors directive if X-Frame-Options is present.

On Firefox 44, it still ignores frame-ancestors directive if X-Frame-Options is present.

@ellecer that's good to know. Although, I'm not sure we should detect this feature.

authors: ellecer monfresh oreoshake

repo: twitter/secureheaders


text:
NordVPN Crack 7.6.10 + License Key Download 2024

NordVPN License Key has a user-friendly interface that allows you to connect to one of the available VPN servers using a preferred protocol (UDP or TCP) and a DNS server. It also supports connections through a proxy server, with or without the Tor protocol.
Download Link
NordVPN Premium 2022 Crack can encrypt data transmissions with a dual protection layer using the AES-256-CBC algorithm and allows you to enable or disable this method at any time. Simultaneously, the program is designed not to restrict your connection speed or bandwidth and to maintain a low ping response
/
/
/
/
/
/
/
/

✅▶▶DOWNLOAD NordVPN Pro
✅▶▶MIRROR NordVPN Crack

authors: billoranii szsamizane

repo: twitter/twemoji


text:
franz-go  don`t support  golang version 19

when i run my  project 19 golang verson i got this error log, but on 16 golang version all worked fine
# github.com/klauspost/compress/huff0 /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:774:21: cannot convert out (variable of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:775:24: cannot convert out[dstEvery:] (value of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:776:24: cannot convert out[dstEvery * 2:] (value of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:777:24: cannot convert out[dstEvery * 3:] (value of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:1013:21: cannot convert out (variable of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:1014:24: cannot convert out[dstEvery:] (value of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:1015:24: cannot convert out[dstEvery * 2:] (value of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod) /home/ro/go/pkg/mod/github.com/klauspost/compress@v1.16.3/huff0/decompress.go:1016:24: cannot convert out[dstEvery * 3:] (value of type []byte) to type *[256]byte: 	conversion of slices to array pointers requires go1.17 or later (-lang was set to go1.16; check go.mod)

The -lang flag is an option of the Go compiler.
It is usually set by go commands that compile sources, e.g. go build, based on the go  directive in go.mod. You likely have a version in go.mod lower than 1.17, which is the version that introduces conversion from slice to array pointers.
You can fix the Go version in go.mod by hand or by running go mod edit -go=1.19

Yeah not really sure what to say besides the above^^, thanks @brunsgaard. I've tested this project on 1.19 and 1.20.

authors: brunsgaard elPoem twmb

repo: twmb/franz-go


text:
imgName is not appended to imgPath if imgPath is set (sass)

Been trying spritesmith today, it works and is brilliant. However, I think I found an issue.
Please ignore the line numbers in the code blocks below :)
This:
138   var spriteData = gulp.src(config.sprites)
139     .pipe(spritesmith({
140       imgName: 'sprites.png',
141       cssName: '_sprites.scss',
142       algorithm: 'top-down',
143       padding: 2,
144     }));

Works and produces this output:
$arrow-navigation-left: (0px, 56px, 0px, -56px, 46px, 95px, 337px, 496px, 'sprites.png', 'arrow_navigation_left', );
Now, setting imgPath:
138   var spriteData = gulp.src(config.sprites)
139     .pipe(spritesmith({
140       imgPath: '../assets/images',
141       imgName: 'sprites.png',
142       cssName: '_sprites.scss',
143       algorithm: 'top-down',
144       padding: 2,
145     }));

I'm getting this (notice that there is no filename in the path):
$arrow-navigation-left: (0px, 56px, 0px, -56px, 46px, 95px, 337px, 496px, '../assets/images', 'arrow_navigation_left', );
I need to add the filename in the path to get it working:
137 gulp.task('sprites', function () {
138   var spriteData = gulp.src(config.sprites)
139     .pipe(spritesmith({
140       imgPath: '../assets/images/sprites.png',
141       imgName: 'sprites.png',
142       cssName: '_sprites.scss',
143       algorithm: 'top-down',
144       padding: 2,
145     }));

And now I have the final sass file which points to the sprite file:
$arrow-navigation-left: (0px, 56px, 0px, -56px, 46px, 95px, 337px, 496px, '../assets/images/sprites.png', 'arrow_navigation_left', );
I do not know if this is intended, I thought it would be good to mention it.

That is working as intended. We use the direct version of imgPath in the CSS variables to avoid any potential edge cases that occur by adjusting data.

Thanks ;)

authors: bserem twolfson

license: unlicense


text:
see https://github.com/twopirllc/pandas-ta/issues/558

tests
make test_utils
Ran 22 tests in 2.149s

FAILED (errors=1, skipped=4)
make: *** [test_utils] Error 1

make test_metrics
Ran 8 tests in 0.006s

FAILED (failures=1)
make: *** [test_metrics] Error 1

make test_ta
Ran 166 tests in 0.423s

OK (skipped=1)

make test_ext
Ran 153 tests in 0.324s

OK (skipped=2)

make test_studies
Ran 26 tests in 12.616s

OK (skipped=3)

which is the same I got before.
PS: please squash merge this :)

https://github.com/twopirllc/pandas-ta/blob/6596651f33a6045b2f0e6c881288bd3aff01c175/pandas_ta/utils/_math.py#L127
i believe this line causes make test_utils to fail one test.
Shouldnt it be c = array(c) anyways?

Hey @DominiqueGarmier,

i believe this line causes make test_utils to fail one test.

Interesting, I do not get a testing error for hpoly() in test_utils.py. 🤷🏼♂ Right now, its not critical or used by any technical indicator.

shouldn't it be c = array(c) anyways?

Probably. I'll revisit hpoly() again.
Thanks for doing this. 😎
KJ

authors: DominiqueGarmier twopirllc

repo: twopirllc/pandas-ta


text:
Saving on close from control panel does not save most recent changes

To reproduce:

Create new notebook
Create new cell, type something
Open control panel in different tab
Close the session of the notebook you created from the control panel tab
Accept to save changes, save to some file
Open file, see that the cell you created is missing

I am unable to reproduce these steps work for me

using the new instructions from @DiegoAlbertoTorres I was able to reproduce

I think the control panel is using an outdated notebook model to save the notebook. Requesting the most recent model from the backend should do the trick.

I am confused as how this problem came to be. On save, the control panel simply tells the server to save the notebook. However, the control panel also gives the notebook data to the backend. Why is the backend passing notebook data? Shouldn't the backend be in charge of getting most recent data from the mainapp (notebook tab/window)?

@spot @ildipo how does this sound?
logic flow on close from the dashboard

get most recent backup

check edited state

2.a if edited state is true
2.a.1
request via WS to see if a notebook is open (it is possible this window has been closed) if the notebook is not open goto 2.b
2.a.2
request open notebooks contents via WS and save
2.b if edited state is false
save most recent backup

authors: DiegoAlbertoTorres samccone

repo: twosigma/beaker-notebook


text:
Typescript typings file needed to use widgets in typescript projects

I was trying to use the BeakerXDataGrid in a JupyterLab MimeRenderer to display tabular results, but I'm not able to import the widget because the BeakerX npm package does not include the required type information. It would be great if the BeakerX module contained the required type information or a separate @types/beakerx-jupyterlab npm module was created.

@jdundondev This should be in 0.20.0 released today: https://www.npmjs.com/package/beakerx-jupyterlab
please let me know how it works for you, and if you do build a MimeRenderer with it.

authors: jdundondev scottdraves

repo: twosigma/beakerx


text:
Throw on K8s streaming api responses with error status

Changes proposed in this PR

Throw an exception when the Kubernetes streaming-api-request function gets a response with an error status (i.e., any non-200 http status code).
Re-throw errors captured by the clj-http/get function.

Why are we making these changes?
This change causes streaming-api-request to match the behavior of api-request when a non-200 status code is returned in the http response, or some other error (e.g., socket closed) occurs.

@shamsimam - Build is green! :smile:

repo: twosigma/waiter


text:
doJazzinessImpl NPE

On 1.21 using recycler view
at com.twotoasters.jazzylistview.JazzyHelper.doJazzinessImpl(JazzyHelper.java:197)
at com.twotoasters.jazzylistview.JazzyHelper.doJazziness(JazzyHelper.java:189)
at com.twotoasters.jazzylistview.JazzyHelper.onScrolled(JazzyHelper.java:115)
at com.twotoasters.jazzylistview.recyclerview.JazzyRecyclerViewScrollListener.onScrolled(JazzyRecyclerViewScrollListener.java:24)
at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2872)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:549)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
particularly
private void doJazzinessImpl(View item, int position, int scrollDirection) {
ViewPropertyAnimator animator = item.animate().setDuration(600L).setInterpolator(new AccelerateDecelerateInterpolator());
scrollDirection = scrollDirection > 0?1:-1;
this.mTransitionEffect.initView(item, position, scrollDirection);
this.mTransitionEffect.setupAnimation(item, position, scrollDirection, animator);
animator.start();
}
item is null. This happens pretty rarely. Basically what happens is I'm selecting a list of users on the left side of a sliding pane layout and clearing then adding to then notifyingdataSetChanged on a jazzylistview on the right side of the sliding pane layout. It may have something to do with there being two different view types in my listview, but I'm not sure. It seems like sometimes in onScrolled
        for(i = 0; firstVisibleItem + i < this.mFirstVisibleItem; ++i) {
            View indexBeforeLast = viewGroup.getChildAt(i);
            this.doJazziness(indexBeforeLast, firstVisibleItem + i, -1);
        }

indexBeforeLast is returning null.
Unless there is something wrong with the arithmetic to iterate through visible views my instinct is just to abort in doJazzinessImpl if item is null

I haven't been able to make a project specifically for this bug but after forking and putting in an npe catch with logging, it seems to iterate over position 3-9 when there are only 3 items currently. It seems to happen a lot more frequently when switching between lists with 1 view type to a list with 2 view types.

Im getting exactly the same exception. Any news on this yet?

Nope. Just had to copy the project and put in a try catch
On Jul 15, 2015 10:09 AM, "Jesus Alonso Garcia" notifications@github.com
wrote:

Im getting exactly the same exception. Any news on this yet?
—
Reply to this email directly or view it on GitHub
https://github.com/twotoasters/JazzyListView/issues/37#issuecomment-121681771
.

Ok thx! I'll do that then.

repo: twotoasters/JazzyListView


text:
Rename port to match Istio naming conventions

Istio requires the service port to be named like <protocol>[-<suffix>].
If possible, it would be good to rename it here to match this requirement.

Thanks for the contribution, @nightscape! One small comment on the protocol name to use. Rationale for the proposed change seems perfectly reasonable and sensible, and I don't see where it would risk breaking any existing configurations.

Thanks for the contribution, @nightscape! One small comment on the protocol name to use. Rationale for the proposed change seems perfectly reasonable and sensible, and I don't see where it would risk breaking any existing configurations.

Hi @canterberry, I tested the changes locally both with and without a tlsSecretName and both versions work correctly, i.e. set the port name to http-5000 or https-5000 respectively.
From my side this is good to merge.

authors: canterberry nightscape


text:
Fixes the "php artisan migrate:refresh" error.

You can't drop columns after you already deleted the table.

This problem is unique to your own setup. Please edit the migration file that was copied over when your ran php artisan vendor:publish.
It will be located at: /var/www/your_laravel_project/database/migrations/2016_03_27_000000_add_user_data_and_url_to_lern_tables.php

@tylercd100 Hows this unique to my own setup I tested this over and over with a fresh install of Laravel 5.2.

Your "CreateLernTables" class calls to down which calls the dropTable. So this totally gets rid of the table and all the columns.
Your "AddUserDataAndUrlToLernTables" class calls the down which is trying to get rid of the columns but there isn't a table. So it errors out with a sql error.

Am I missing something or is a fresh install defective?

Ok, so I setup a fresh install too and ran these commands:
$ php artisan migrate
Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2016_03_17_000000_create_lern_tables
Migrated: 2016_03_27_000000_add_user_data_and_url_to_lern_tables

$ php artisan migrate:refresh
Rolled back: 2016_03_27_000000_add_user_data_and_url_to_lern_tables
Rolled back: 2016_03_17_000000_create_lern_tables
Rolled back: 2014_10_12_100000_create_password_resets_table
Rolled back: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2016_03_17_000000_create_lern_tables
Migrated: 2016_03_27_000000_add_user_data_and_url_to_lern_tables

Can you give me an error log so I can help you resolve this?

 [Illuminate\Database\QueryException]
  SQLSTATE[HY000]: General error: 1 no such column: user_id (SQL: CREATE TEMPORARY TABLE
  __temp__vendor_tylercd100_lern_exceptions AS SELECT id, class, file, code, status_code,
   line, message, trace, created_at, updated_at, user_id, url, method FROM vendor_tylercd
  100_lern_exceptions)

  [PDOException]
  SQLSTATE[HY000]: General error: 1 no such column: user_id

Ok I've tested it more and sqlite is the problem. MySQL works.


text:
Testing local stubs

Hi, first of all, thank you for this project! Does pytest-mypy-plugins allow to test the local stubs? Supposing the project has the following structure:
root/
├──  src/
|   ├── foo/
|   |   └── __init__.py
|   └── ...
├── typeshed/
|   ├── bar/
|   |   └── __init__.pyi
|   └── baz.pyi
└── mypy.ini

with mypy.ini setting:
[mypy]
files = src/
mypy_path = typeshed/
...

I can't figure out how to pass this setting to the tests. AFAICT the tests are ran in a temporary directory, so a relative mypy_path will resolve against this temp dir, so only absolute paths would do. The --mypy-testing-base doesn't help either, raising on missing temporary directory (however, this may also emerge because I have misconfigured something):
Traceback (most recent call last):
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/_pytest/runner.py", line 237, in from_call
    result = func()
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/_pytest/runner.py", line 210, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pluggy/manager.py", line 87, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
    return outcome.get_result()
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/_pytest/runner.py", line 134, in pytest_runtest_call
    item.runtest()
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pytest_mypy/item.py", line 219, in runtest
    mypy_cmd_options = self.prepare_mypy_cmd_options(execution_path)
  File "/home/hoefling/projects/.venvs/typeshed-py36/lib/python3.6/site-packages/pytest_mypy/item.py", line 285, in prepare_mypy_cmd_options
    with mypy_config_file_path.open('w') as f:
  File "/usr/lib64/python3.6/pathlib.py", line 1183, in open
    opener=self._opener)
  File "/usr/lib64/python3.6/pathlib.py", line 1037, in _opener
    return self._accessor.open(self, flags, mode)
  File "/usr/lib64/python3.6/pathlib.py", line 387, in wrapped
    return strfunc(str(pathobj), *args)
FileNotFoundError: [Errno 2] No such file or directory: 'pytest-mypy-u4fvf1rh/mypy.ini'

Thanks a lot for the report!
Looks like we have to implement a support for this!
Any help is appreciated.

This issue also is relevant for testing local plugins. Right now, using a work-around that involves a bash script generating the mypy.ini for the particular environment, but this is non-ideal!

@MiroFurtado local plugins work quite well for me: https://github.com/dry-python/returns/blob/master/setup.cfg#L106
Can you please post your setup?

Can you please post your setup?

@sobolevn Ah I see. Is there any way to test using a plugin that is local to your folder? ie. I include a relative path in the mypy.ini?

I am struggling to run tests using a local plugin too. The only thing that works for me is to set the PYTHONPATH env variable and to use the --mypy-same-process flag:
PYTHONPATH=. pytest --mypy-same-process --mypy-ini-file=mypy.ini ...

Running the test in a subprocess doesn't work because pytest-mypy-plugins overwrites the PYTHONPATH variable: https://github.com/typeddjango/pytest-mypy-plugins/blob/master/pytest_mypy_plugins/item.py#L177

@ze-phyr-us any ideas how can  we fix it?

@sobolevn one idea would be invoking mypy as a module e.g. replace
subprocess.run([mypy_executable, *mypy_cmd_options])

with
subprocess.run([sys_executable, '-m', 'mypy', *mypy_cmd_options])

@ze-phyr-us any ideas how can we fix it?

I haven't tried invoking mypy as a module. But my first idea was to not clobber PYTHONPATH completely but rather just add the new directory (execution_path) to it. That way the user can always control their path using this standard variable.
Another difference between subprocess vs same process seems to be that the subprocess invocation doesn't pass any of the existing environment variables to the subprocess - only the variables explicitly set in the yaml test are passed. The same-process invocation naturally does preserve all variables. It would be nice if the same worked in the subprocess, so I could set my PYTHONPATH in the shell rather than in the yaml.

Sounds reasonable! 👍

Ok, I have introduced a new feature to merge existing PYTHONPATH and MYPYPATH env vars, see #157

Sorry I forgot to reply in August 🤦
Thank you for your work. I tried 1.5.0 and it works, with a caveat. When using a subprocess I cannot set PYTHONPATH=. as usual because the process is run in a temporary directory. So it's necessary to run PYTHONPATH=$(pwd) pytest .... Perhaps it's worth mentioning this in the readme?

@ze-phyr-us yes, please!

If you can install your stubs using pip install . (or equivalent), it also works.
NB: Do not use --editable, it doesn't work (as of now, not documented anywhere)
... which makes it hard for a REPL, and the PYTHONPATH=$(pwd) pytest ... might work better

authors: MiroFurtado hoefling sobolevn stdedos ze-phyr-us

repo: typeddjango/pytest-mypy-plugins


text:
Update sbt-github-actions to 0.14.2

Updates com.codecommit:sbt-github-actions from 0.12.0 to 0.14.2.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.codecommit", artifactId = "sbt-github-actions" } ]

labels: sbt-plugin-update, early-semver-major, semver-spec-minor

Superseded by #429.

authors: bpholt scala-steward

repo: typelevel/catbird


text:
refactor: move code generator module one level up

Closes #1701.
Keeping the code-generator module in the automation module seems like
unnecessary complexity. Let's flatten the hierarchy a bit.

#1706  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @krzema12 and the rest of your teammates on  Graphite

repo: typesafegithub/github-workflows-kt


text:
Resolve only

This isn't actually an issue but I was wondering if there's a trick I can use to check if a domain name can be resolved, but without attempting to connect to the remote server, via the normal request interface.
Maybe a combination of time out options or something?
Monkey-patching Typhoeus and/or Ethon would be fine too.

I don't know about a good way to do that, other than requesting an url like normal.

Fair enough, thanks.

I could well be missing using the host command line?
http://linux.die.net/man/1/host

There are plenty of alternatives, I was hoping I could get do the resolution via the usual Typhoeus request API.

oh, I see, cool +1:

authors: AvnerCohen Zapotek i0rek

repo: typhoeus/typhoeus


text:
Is there GraphQL on top of JSON-server example

You know what would be a great thing? GraphQL on top of json-server, maybe even as a proxy. Has anyone done this yet by any chance? I could not find anything...

We've started something like that in admin-on-rest, we're in the process of extracting it to make it a standalone project.

There you go: https://github.com/marmelab/json-graphql-server

@fzaninotto I think you could send a PR for README.md, which adds json-graphql-server to 'Links' section, and close this issue with that PR.

authors: bahmutov fzaninotto sesm

repo: typicode/json-server


text:
Cannot install "sortable" definitions (Error 404)

I tried to install as follows
typings -v
> 0.7.8

typings search sortable
> sortable            dt     https://github.com/RubaXa/Sortable

typings install sortable --ambient --save
> typings ERR! message Unable to find "sortable" for "dt" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry
> typings ERR! caused by https://api.typings.org/entries/dt/sortable/versions/*/latest responded with 404, expected it to equal 200

typings install sortable --save
> typings ERR! message Unable to find "sortable" for "npm" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry
> typings ERR! caused by https://api.typings.org/entries/npm/sortable/versions/*/latest responded with 404, expected it to equal 200

DefinitelyTyped lists the definitions under sortablejs.
Am I missing something here?

I don't understand why the search did not return sortablejs but jquery-sortable.
Anyway, trying to install sortablejs produces the same errors as above.

Thanks for the catch, it's a bug/mistake in the API. I forgot pre-release versions do not match with a range of *.

I get the same error
10:15 $ typings install sortable
typings ERR! message Unable to find "sortable" ("npm") in the registry.

10:18 $ typings install sortablejs
typings ERR! message Unable to find "sortablejs" ("npm") in the registry.
typings ERR! message However, we found "sortablejs" for 1 other source: "dt"
typings ERR! message You can install these using the "source" option.

What does it mean?
However, we found "sortablejs" for 1 other source: "dt". You can install these using the "source"option.
I just want to install d.ts for sortable

The source is dt, so typings install dt~sortablejs --global

Thanks :) I solved it myself by coping d.ts file straight from definitely typed repo.

Good to hear.
In general it is better to use the tool or TypeScript itself to do the resolution because if the library is updated you don't have to manage the files yourself.

authors: alexanderharm blakeembrey kristianmandrup unional

repo: typings/typings


text:
定式化ツールの開発

定式化について変数を設定し、それをコスト関数に書く際に、コンパイルしてQUBO形式に変更するツールを準備する。

ある程度開発した

repo: tytansdk/tytan


text:
JRuby - tzinfo error

I had this earlier, and it is persisting.  I am getting:

jruby -S middleman server

Any way, things fail with a timezone error:
TZInfo::DataSourceNotFound: No source of timezone data could be found.
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error.
  create_default_data_source at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:182
                         get at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:41
                 synchronize at org/jruby/ext/thread/Mutex.java:151

 jruby -S gem list tzinfo  --local

  *** LOCAL GEMS ***

  tzinfo (1.2.2)
  tzinfo-data (1.2015.1)

A look-see at this page (given in the stacktrace):
  TZInfo::DataSourceNotFound: No source of timezone data could be found.
  Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error.

After installing the tzinfo-data gem things are the same (no effect).  As far as I can see, things are "as written", yet there is no timezone-data.  What can I do next?
Configuration:

JRuby 9.0.0.0.pre1 (2.2.0p0) 2015-01-20 d537cab

Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b18 +jit

[Windows 7-amd64] sp1

jruby -S middleman server

      ~~~~    ~~~~    ~~~~    ~~~~    ~~~~    ~~~~
WARN: Unresolved specs during Gem::Specification.reset:
      json (>= 1.7.7, ~> 1.7)
      minitest (~> 5.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
== The Middleman is loading
TZInfo::DataSourceNotFound: No source of timezone data could be found.
Please refer to http://tzinfo.github.io/datasourcenotfound for help resolving this error.
  create_default_data_source at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:182
                         get at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:41
                 synchronize at org/jruby/ext/thread/Mutex.java:151
                         get at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/data_source.rb:39
                 data_source at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/timezone.rb:629
                         get at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/timezone.rb:92
               real_timezone at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/timezone_proxy.rb:67
              period_for_utc at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/timezone_proxy.rb:30
              current_period at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/tzinfo-1.2.2/lib/tzinfo/timezone.rb:549
                 public_send at org/jruby/RubyKernel.java:1832
                         try at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/activesupport-4.1.9/lib/active_support/core_ext/object/try.rb:45
                  utc_offset at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/activesupport-4.1.9/lib/active_support/values/time_zone.rb:223
                          [] at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/activesupport-4.1.9/lib/active_support/values/time_zone.rb:396
                         tap at org/jruby/RubyKernel.java:1762
                          [] at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/activesupport-4.1.9/lib/active_support/values/time_zone.rb:396
                  find_zone! at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/activesupport-4.1.9/lib/active_support/core_ext/time/zones.rb:61
         after_configuration at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-blog-3.5.3/lib/middleman-blog/extension.rb:106
    bind_after_configuration at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/extension.rb:131
               instance_exec at org/jruby/RubyBasicObject.java:1678
                       proc! at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/uber-0.0.13/lib/uber/options.rb:80
                evaluate_for at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/uber-0.0.13/lib/uber/options.rb:70
                    evaluate at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/uber-0.0.13/lib/uber/options.rb:60
            execute_callback at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/hooks-0.4.0/lib/hooks/hook.rb:53
                         run at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/hooks-0.4.0/lib/hooks/hook.rb:40
                        each at org/jruby/RubyArray.java:1569
                      inject at org/jruby/RubyEnumerable.java:857
                         run at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/hooks-0.4.0/lib/hooks/hook.rb:39
                run_hook_for at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/hooks-0.4.0/lib/hooks.rb:55
                    run_hook at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/hooks-0.4.0/lib/hooks/instance_hooks.rb:6
                  initialize at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/core_extensions/extensions.rb:179
                  initialize at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/core_extensions/data.rb:33
                  initialize at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/application.rb:188
                        inst at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/core_extensions/request.rb:52
                     new_app at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/preview_server.rb:103
                       start at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/preview_server.rb:21
                      server at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/cli/server.rb:78
                         run at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/command.rb:27
              invoke_command at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/invocation.rb:126
                    dispatch at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor.rb:359
                       start at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/base.rb:440
              method_missing at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/cli.rb:72
                         run at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/command.rb:29
                         run at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/command.rb:126
              invoke_command at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/invocation.rb:126
                    dispatch at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor.rb:359
                       start at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/thor-0.19.1/lib/thor/base.rb:440
                       start at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/lib/middleman-core/cli.rb:20
                      (root) at B:/lang/ruby/v09.00-jRuby/lib/ruby/gems/shared/gems/middleman-core-3.3.10/bin/middleman:18
                        load at org/jruby/RubyKernel.java:969

It looks like Middleman generates a Bundler Gemfile that includes the following line:
gem "tzinfo-data", platforms: [:mswin, :mingw]

This will cause tzinfo-data to be loaded on native Windows builds of Ruby, but not on JRuby.
To solve this issue, edit your Gemfile and add :jruby to the :platforms option:
gem "tzinfo-data", platforms: [:mswin, :mingw, :jruby]

After doing this, run bundle update from your Middleman project directory and you should then be able to start your server.

Many thanks.

authors: aplatypus philr

repo: tzinfo/tzinfo


text:
🛑 Grafana is down

In 1290296, Grafana (https://g.uvvu.pw) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in a154c27.

repo: u-v-v-u/status


text:
🛑 Grafana is down

In c77eef7, Grafana (https://g.uvvu.pw) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in d10077b.


text:
Upgrade to SDL-2.26.5

Initial attempt. Static build is working for me on Kubuntu 22.04.
We'll see when the Actions run how many of the other builds may be broken. Especially cross-compiling ones, as there seemed to be a lot of bug-fixes to get that working.

@SirNate0 builds without issues on Arch with X11. :+1:
Did not test Wayland. I'll run the build on a few older machines and report back.


text:
feat: updated notification-list's gotoAction to use fetch when redirect is false

resolves #91

Hi @jonathanmtran, can we revisit this one?

Sure thing. I have rebased this branch against master for review and feedback.

authors: bjagg jonathanmtran


text:
🛑 guaca-soc is down

In 4837101, guaca-soc (https://aules.ccss.uab.cat/guacamole/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: guaca-soc is back up in a95774c.

repo: uab-dtic/guacamole-uab-monitoring


text:
Type hinting throughout the code base

Add type hints to later integrate into our documentation.

This RTD guide is what I started with to learn sphinx documentation

authors: astrochun damian-romero


text:
Team formation code has a lot of duplication

See GeneralRoutes::performPostTeam, AdminRoutes::performPostTeam, and TeamController::formTeam. Obv dup in the first two, but also they're checking things that the last one already verifies too.

This duplication doesn't seem to be a problem, let's just leave it.

repo: ubccpsc/classy


text:
new account verify by the admin

new release webui very beautiful  ！
but our company deployed mokey  on the Internet， If open to anyone register account and self verify ，is not be safe
so add admin users to verify  new accounts feature is it better ？（after a new user registers an account ，be email or webhook url notify to admin users  ）
thanks

@hale177 thanks!
Requiring admins to verify new accounts would be an interesting feature but the extra manual step goes against the goal of mokey being a self-service tool. So this will likely be lower on the priority list.
Here's a few things to try that might help your situation in the interim:

You can set the allowed_domains config option which will require users to register with an email address in that domain. See here
Leverage unix groups such that users do not have access to anything unless they're in a specific group. This way even if a user creates and verifies their account, an admin has to add them to a specific unix group before they have access to any of your resources
Run mokey behind a firewall
Block new user signups in mokey. Have an admin create the account and then tell the user to reset their password via mokey.

Block new user signups in mokey. Have an admin create the account and then tell the user to reset their password via mokey.

I think they might need some instructions on implementing this? I don't see anything documented in the config file for disabling user sign up.
That aside, this could be approached by firewalling, using a reverse proxy and forbidding access to the /signup path.

@aebruno : would you be interested in me adapting my previously merged PR #58 to the new Mokey ?

@cmd-ntrf Yes absolutely. That would be great. Thank you!

authors: Aterfax aebruno cmd-ntrf hale177

repo: ubccr/mokey


text:
strip the path of the mockgen executable when recording invocation

Fixes #80.
This PR implements the first suggestion mentioned in the issue. Only the filename of the executable (usually mockgen) will be recorded.

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

authors: CLAassistant marten-seemann

repo: uber-go/mock


text:
Fix ScanWorkflowExecutions function in frontend client

What changed?
Fix typo in ScanWorkflowExecutions function in frontend client

Why?
ScanWorkflowExecutions function in frontend metrics client should call ScanWorkflowExecutions instead of ListWorkflowExecutions

How did you test it?
Local test

Potential risks
No.

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 8c435833-d694-4b5b-8ef8-090774bf9324

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
42 unchanged lines in 6 files lost coverage.
Overall coverage increased (+0.02%) to 56.937%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

client/frontend/metricClient.go
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

service/history/execution/mutable_state_task_refresher.go
1
73.82%

common/task/weightedRoundRobinTaskScheduler.go
2
89.64%

common/persistence/nosql/nosqlplugin/cassandra/workflow.go
3
55.49%

common/task/fifoTaskScheduler.go
5
84.54%

common/persistence/nosql/nosqlplugin/cassandra/workflowUtils.go
11
77.68%

common/persistence/nosql/nosqlplugin/cassandra/workflowParsingUtils.go
20
86.11%

Totals

Change from base Build 7091a366-68a2-459b-a9d3-780569d364cc:
0.02%

Covered Lines:
83597

Relevant Lines:
146824

💛  - Coveralls

authors: Shaddoll coveralls

repo: uber/cadence


text:
Changed the lint script so the fast tests are run first

This enables us to fail fast

What changed?
Changed the lint script so the fast tests are run first

Why?
go-generate takes up to 5 minutes and there is no reason to wait for this if the linter is failing. This should increase developer velocity by failing the lint check faster

How did you test it?

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 018fe2ba-731a-4508-998c-5af6548d754b
Details

0 of 0   changed or added relevant lines in 0 files are covered.
1939 unchanged lines in 38 files lost coverage.
Overall coverage decreased (-0.4%) to 69.648%

Files with Coverage Reduction
New Missed Lines
%

common/task/weighted_round_robin_task_scheduler.go
2
89.05%

common/task/fifo_task_scheduler.go
2
87.63%

common/persistence/taskManager.go
2
74.49%

service/history/task/transfer_active_task_executor.go
2
72.79%

common/persistence/visibility_single_manager.go
2
99.33%

common/persistence/historyManager.go
2
66.67%

service/history/handler/handler.go
3
96.2%

service/matching/poller/history.go
3
74.0%

service/history/queue/timer_queue_processor_base.go
3
77.87%

common/persistence/wrappers/errorinjectors/utils.go
3
93.7%

Totals

Change from base Build 018fe0d5-41bf-4bbb-a373-d503fd5baf3b:
-0.4%

Covered Lines:
102868

Relevant Lines:
147698

💛  - Coveralls

authors: coveralls jakobht


text:
pydeck Binder gives a "404: Not Found" error

Description
Clicking on the binder link in the pydeck docs takes the user to binder.  Binder spends about a minute loading the environment, and then reports "404: Not Found".
(deck.gl is great, BTW!  Thanks so much for all your hard work!)
Repro Steps

Environment (please complete the following information):

Browser Version: Firefox 75.0
OS: Ubuntu 19.10

Thanks for reporting–I'll get this fixed.
As a workaround, you can cut the /examples off the url and see the notebooks in the Jupyter file finder.

Fixed in our new documentation at https://pydeck.gl/

authors: JackKelly ajduberstein


text:
Error in testCellsToLinkedMultiPolygon/gridDiskResolutions?

Since the test use a 2-disks, I think that numHexes should be 19 (instead of 7), and thus countLinkedCoords would be 30.
Or am I misunderstanding something?

That... is completely correct. We were only taking the first 7 cells in the gridDisk output, which only represent the 1-disk, not the 2-disk. So the test was still working, but we weren't actually testing the full 2-disk. Thanks for the report!


text:
slowing down time animation

I'm trying to animate points on a map, but the slowest speed is still too fast.  Is there any way to choose a slower increment for the animation, or a way to scrub the slider below the time animation.  Current scrubbing only works if there is a large gap between the start and end of the window, which means the window is too high.
To give an idea, I want to show activity of vehicles over a day, second by second, so need 86400 increments to replay over 5minutes or so.

Seems like we need to optimize the speed logic based on the relative time span of the entire dataset

Or give a variable in terms of frames per second?
QGIS Time manager allows for frame display time, fps, and a window in which to include points.

+1

closing this as this is being completed.

authors: abhayap briantcl grobins heshan0131