text:
Restore per-device options being reachable through HyprCtl.

Description
It seems we lost access to per-device config options since the new curly braces format was adopted.
So this does not work anymore:
hyprctl getoption device:my-device:sensitivity
hyprctl keyword device:my-device:sensitivity 1

Getting/setting these values on-demand is important for accessibility, at least mouse sensitivity.
As far as I can tell, the issue lies in HyprCtl.cpp:
const auto VAR = g_pConfigManager->getHyprlangConfigValuePtr(curitem);

It only checks for "ConfigValue", but per-device options are stored as "SpecialConfigValue" in ConfigManager.cpp:
m_pConfig->addSpecialConfigValue("device", "sensitivity", {0.F});

Any chance this lost functionality will be restored?

hyprctl keyword device:my-device:sensitivity 1

the syntax has been changed a while back and is documented on the wiki:
hyprctl keyword 'device[my-device]:sensitivity 1'

for getoption, there's #5724

It's your project, I respect 100% if you just don't feel like solving this issue, but I have some more information.
The current state of affairs seems to be that the functionality was lost due to refactoring, an attempt has been made to reimplement half of it, i.e. the keyword part, but it currently doesn't work, at least not for everyone, and is not documented in a very obvious place.
Setting per-device values with hyprctl:
The new syntax is not mentioned in the wiki on the hyprctl page, nor on the keywords page under device-specific configs. I still haven't been able to find it. But at least it's mentioned in this issue, so people can find it.
However, the command you mentioned doesn't work. I can set this in the .conf:
device {
    name = kensington-eagle-trackball
    sensitivity = -0.5
    accel_profile = flat
}

But none of these commands do anything. I just get an ok and the sensitivity remains the same:
hyprctl keyword 'device[kensington-eagle-trackball]:sensitivity' -1
hyprctl keyword 'device[kensington-eagle-trackball]:sensitivity' 0
hyprctl keyword 'device[kensington-eagle-trackball]:sensitivity' 1
hyprctl keyword 'device[kensington-eagle-trackball]:sensitivity' 999

I can even put any garbage in there as the device name, and it just says ok:
hyprctl keyword 'device[otter-nose-pointer]:sensitivity' 1

Getting per-device values with hyprctl:
The solution for getoption you linked to is a thread of people talking about how they also are missing this functionality, and suggesting just programmatically changing the .conf file, which is circumventing hyprctl.
In conclusion:
We could just change the .conf file in script for getting/setting these values and not bother with hyprctl altogether, I suppose that's an actual solution. Again, I respect if you're just not interested in making this work with hyprctl, but if that's the case, I'd highly recommend making it clear in the wiki that it's no longer supported, on purpose.
Version info, if it matters:
Hyprland, built from branch  at commit 918d8340afd652b011b937d29d5eea0be08467f5  (flake.lock: update).
Date: Tue Jun 25 12:06:02 2024
Tag: v0.41.2, commits: 4886

it doesnt work cuz I forgot you need the -r flag to hyprctl

True, this works:
hyprctl -r keyword 'device[kensington-eagle-trackball]:sensitivity' -1

That's definitely better than using sed to write changes to the .conf file. So all we need is the documentation available somewhere it can easily be found, as well as a reimplementation of getoption.

This doesn't work, though:
hyprctl -r keyword 'device[kensington-eagle-trackball]:sensitivity' -0.5

It seems it doesn't accept decimals.

So all we need is the documentation available somewhere it can easily be found

MRs welcome

It seems it doesn't accept decimals. If all this is mentioned in the wiki, I'm sorry, but I just can't find it anywhere.

- is parsed as an option marker, typical shell behavior:
hyprctl -r -- keyword 'device[kensington-eagle-trackball]:sensitivity' -0.5

Brilliant, thanks!
PR here: https://github.com/hyprwm/hyprland-wiki/pull/728

authors: Artifechs vaxerski


text:
Skype виснет когда работает Amarok

Приветствую i-rinat!
Настраивал apulse как описано тут http://habrahabr.ru/post/241045/
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:0,0"
}
}
Если работает Amarok, то вываливается эти сообщения.
[apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято
[apulse] [error] do_connect_pcm, snd_pcm_open, Устройство или ресурс занято

А Amarok через какое устройство проигрывает?

Удалил файл с настройками
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:0,0"
}
}
теперь не зависает)
Спасибо за apulse!

Я хотел сказать, что если Amarok настроен на воспроизведение через hw:0,0, то он монопольно захватит устройство, и открыть его будет уже нельзя. В apulse ожидается, что все потоки текут через dmix/dsnoop, благодаря чему множество клиентов могут использовать одно устройство одновременно.

Спасибо, внесли ясность!

source: gharchive/issue

authors: Feduch i-rinat

repo: i-rinat/apulse

license: mit

license_type: permissive

license_source: bigquery


text:
Remove from path

Here is another implementation for your consideration :)
Much cleaner I think

can you extract https://github.com/i18next/i18next-express-middleware/pull/6/files#diff-1fdf421c05c1140f6d71444ea2b27638R22 to a own function in utils if(detector === 'path' && options.removeLngFromUrl) utils.removeLngFromUrl(req, i18next.services.languageDetector.options.lookupFromPathIndex);

instead of returning array [lng, detector] could you just return lng from languageDetector.detect and append detector to req.i18nextLookupName = 'path'

like this one a lot more....thanks

This is slightly more functional. I think returning multiple variables from languageDetector.detect is also slightly more functional

You're right...more functional...but returning just lng is more in line with the API of other language detectors. Will merge and publish updated version.

v0.1.0

Thanks man!

thank you for your contribution...help is very welcome

dude you have the best i18n framework out there. It's true that it feels awesome to help other people but the truth is everyone is busy. Open source projects like this rely on selfish people like me to grow, and that's why your framework is the best out there :D

but yeah this solution is much better than the one I made at first, so it's great you rejected my previous pull request, only with a great maintainer can this be as good as it is

source: gharchive/pull-request


text:
ci: fix debug runner step

Fix debug runner step and output examples/simple output.
Why needed ?

test-e2e works on ci, not on my local machine. without lock file (choice made before), I'd like to exclude resolutions problems (reproducibility).

In the future I feel we would benefit to commit lock files (or at least for the base package).
See output in https://github.com/i18next/next-i18next/actions/runs/3410769134/jobs/5674130702

Can be merged :)

@adrai as I have write access, do I have your permission to merge ? I'll try to be as cautious as possible and ask reviews whenever I have doubts

go for it ;-)

authors: adrai belgattitude

license: MIT

license_source: github-api


text:
关于侧边栏何内容的设置

如何改成侧边栏可以调整宽度，内容的宽度也可以调整，大纲里面的每一项都可以选中，选中后导航到相应的内容，再次点击折叠，再次点击又展开....

还有就是侧边栏里面的不能上下滑动，一键点击调到最上面和最底部


text:
chore: promote react-spring to version 0.0.11

this commit will trigger a pipeline to generate the actual kubernetes resources to perform the promotion which will create a second commit on this Pull Request before it can merge

react-spring
Changes in version 0.0.11
Chores

release 0.0.11 (jenkins-x-bot)
add variables (jenkins-x-bot)

Other Changes
These commits did not use Conventional Commits formatted messages:

update dockerfile 2 (iMckify)
update dockerfile (iMckify)

[jx-info] Hi, we've detected that the pipelines in this repository are using a syntax that will soon be deprecated.
We'll continue to update you through PRs as we progress. Please check #8589 for further information.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign
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.

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

@iMckify: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

verify
fad38d1dec3425a1fbe771c2a72d5c149d298b11
link
/test verify

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

repo: iMckify/pipeline-cluster


text:
Edit Channels Backend

Screens have been create for creating and joining channels.
These screens do not have full code behind them. They will need to implement their intended functionality.

Implemented the create and join code.
Suggestion for further work would be a channel manage screen which shows all your channels, and the ability to add more and delete them.

repo: iOS-Connect/Connect


text:
Open new BrowserWindow on button click

✨  Describe the feature
Load an html file in a new BrowserWindow on a button click. One example would be to open the documentation that is provided in the repo in a new window.
I haven't been able to figure out how to do it yet, but I can create a new branch outlining what I've tried.

I can take a look into this. In case you're in a rush, have you tried the following?
In main.js
  // required first: npm install open
  const open = require('open');

  ipcMain.on('open-external-link', (_event, link) => {
    open(link)
  });

In React
  ipcRenderer.send('open-external-link', 'https://www.example.com');

Well, as expected, I figured it out shortly after opening this request and before reading your reply. It looks like I'm doing nearly same thing as you suggested. Thanks for the quick reply!
Here's what I did:
In services.js, I added the following line to app:
docs: () => ipcRenderer.send("app-docs")
In main.js, I added the following:
const openDocs = () => {
  const docsWindow = new BrowserWindow({
    // parent: browserWindows.mainWindow,
    height: 300,
    width: 500
  });
  docsWindow.loadFile("docs/index.html");
  docsWindow.show();
};

With the other ipcRender events:
ipcMain.on("app-docs", (_event, _arg) => openDocs());

That's usually how it goes lol, glad you got it figured out!

repo: iPzard/electron-react-python-template


text:
Missing base file in models folder

Hi,
thank you for your excellent work.
I noticed that the models folder in this repository is missing the base file. This file seems to be essential for the proper functioning of the code. Could you please add the missing base file or provide guidance on how to proceed without it?
There is the logs:
File "/Revisting_FSCIL-main/models/my_vit/fscil_trainer.py", line 3, in
from models.base.fscil_trainer import FSCILTrainer as Trainer
ModuleNotFoundError: No module named 'models.base'

Hello, Thank you for your interest in our work!
Sorry for the inconvenience. I have uploaded the necessary files in commit 34546cc and checked it is now runnable.
I am going to close this issue now. If you have any further questions, please do not hesitate to reopen this or raise another issue.
Thank you for your attention and interest again.

authors: TOM-tym linlany


text:
On web (react-native-web) styles are ignored

Some of our content has headings.
I just noticed this now, but headings font size is not changed for headings when using React-native-web
This only happens in react-native-web, in react-native this seems to work.
In react native web, I see a warning generated.

Warning: Failed prop type: Invalid props.style key `fontSize` supplied to `View`.
Bad object: {
  "flexDirection": "row",
  "fontSize": 32
}

in View (at renderRules.js:88)

I am trying to follow that code, but
The comment in renderRules.js says:
// applying styles.heading and styles.headingX to the view is fine here because of style rollup we do in the AstRenderer.js file for text display items
I am only guessing, but AstRender looks for styles in a <View>, and it seems like in react-native, the View component allows (at least for now),  to pass through unknown style directives, but in RNW -- this way of passing custom style directives does not work.  Which is, perhaps, why styling is not work on the web now (it used to work before the fork).
The flexDirection and fontSize seem to be 'defaults' for Heading1 type.

I see where the problem is coming from, give me a little while to sort a fix :)

Is there any chance you can give me a zip of a working project with react-native-markdown-display in?
I don't know enough about webpack to make a create react app project work properly.

Sure. let me work on a sample app. It will take a bit of an effort, but will try to make it with minimal dependencies/etc.

Thanks @vladp , it does not need to be anything fancy, i just need a project that runs with both react-native-web and react-native-markdown-display in it and i can test it all out :)
thanks for taking the time!

Yep, no problem.
Thank you.
The sample I created is showing the problem on the web.
https://github.com/vladp/excedone.opnsrc/tree/master/soft/domain.tech/boiler/web-and-mobile/lang.js/react-rnw/richContentApp.1a
I also fixed the problem I had over the weekend, where the android build was crashing (even though you just, probably, needed web, I wanted to give you environment where you can see, with hot reloading, both Web and android views (if you like) ).
Instructions to start the web app, are the same as above:
git clone https://github.com/vladp/excedone.opnsrc.git
cd excedone.opnsrc/soft/domain.tech/boiler/web-and-mobile/lang.js/react-rnw/richContentApp.1a/
yarn install
yarn web

wow this is properly broken ;-)
I have your repo running and ill get to fixing it over the weekend! thanks!

OK so i know what the problem is and can fix it, but i need to have a think how best to handle.
The problem is that we manipulate the stylesheet that is exported from src/lib/styles.js as if it were an object, which is fine in react-native, but in react-native-web it seems the StyleSheet class converts to integers, which i assume are then at some point converted to classes so they can be re-used on different components.
I will need to do a bit more reading but it might just be the case that we don't use the StyleSheet class for the styles but instead convert them to stylesheets on the components themselves.
Do you have experience with this or know what should happen?

Not familiar with that area. I will also give it a think.
I checked RNW issues and there is one comment referencing this difference in behaviour
https://github.com/necolas/react-native-web/pull/1466
But not much else.
Of course, there can be a Platform OS switch (if 'web' do something different).
But I am not sure what actually to do.
When I was seeing this integer values in the debugger, I assume markdown-display is doing it,
and then I got lost how the ast render was trying to actually merge those... Now from your note,
I understand that this is RNW doing this...
In the issue I found above, one person is suggesting to use
StyleSheet.flatten(style) if object is expected
But  I am looking at a function
https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/flattenStyle.js
and it is not clear how this can help (or may be I am looking at the wrong function)....

may be in AstRenderer
convert the extra styles to the numeric form using that StyleSheet.flatten ?

@vladp can you try 5.1.0-rc1?

Hello. Tried on Web and it works. Thank you very much.
I am running into an error 'Unable to resolve module ./data/PlatformEnum  from lib/renderRules.js'  when trying the new release on Android.

That's wierd, i removed the whole PlatformEnum and all references in 5.0.0 - can't test Android right now but will do tomorrow!

Hmm.. You are right
I cannot find PlatformEnum anywhere in you updated module distro
~/node_modules/react-native-markdown-display$ find . -name "*" -exec grep -Hi PlatformEnum {} \;
returns nothing.
This means it has to be some stale cache that my
rm -rf $TMPDIR/react-native-packager-cache-* &&  rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean --force &&  npm install && npm start -- --reset-cache
is not clearing...
I will work on that, so ignore my Android note above, it is likely issue with my environment..

Super, I am going to do a bit more on device testing to check that 5.1.0 is all good then ill do a release

Woo, closed: https://github.com/iamacup/react-native-markdown-display/releases/tag/5.1.0
Thanks for the help @vladp !

oh sorry @vladp one other thing i noticed when working with your example code - you use a custom markdownit instance.
This library exports markdownit if you dont want to include it directly in your deps:
import MarkdownIt from 'react-native-markdown-display/src/MarkdownIt';

ah, thank you for the tip  on MarkdownIt, and the fixes

authors: iamacup vladp

repo: iamacup/react-native-markdown-display


text:
Bug: Other language(s) behaving wierdly

Example:

This may be due to the cache IDs being the same in script.js, the issue happens with this config:
var languages = {
	//key   : ['LABEL', cache-id],
	'en'    : ['English', 1],
	'pt-BR' : ['Português', 2],
	'ru-RU' : ['Русский', 1],
	'zh-CN' : ['中文', 2],
        'nl' : ['Nederlands', 1],
};

Not sure if this is the problem, but it seems likely.
What also sometimes happens, is that it offers enchantments as an option which aren't available for that item, for example, Swift Sneak for chestplates and Infinity for helmets.

Turns out this was a human error on my part! Sorry for making a false issue. :|

No worries! The cache ID is just used for forcing the browser to fetch a newer version of any individual language file - they can all safely be the same value :)

repo: iamcal/enchant-order


text:
refactor!: replace @effect/* dependencies with the effect dependency

Implements #8

@iamchanii I've just pushed a commit that updates both README and the examples 🙂

repo: iamchanii/pothos-plugin-effect


text:
dev

UPDATE
UPDATE: --repository url to workflow
UPDATE: new way of workflow
UPDATE: setup file, change version
CU-1j8aj09 - [OPS-SUB] add a long description to project release

Task linked: CU-1j8aj09 [OPS-SUB] add a long description to project release

repo: iammix/OpenSeesPy-Substepping-Methods


text:
针对项目AppService的测试项目应该完善下，必竟项目不可能不经过测试就上线。

针对项目AppService的测试项目应该完善下，必竟项目不可能不经过测试就上线。

项目AppService是什么？单元测试吗？

对项目的单元测试应该完善下

authors: gicexxopode iamoldli

repo: iamoldli/NetModular


text:
[QUESTION] Have 'context' key outside of 'nestedKey' object

[X] I've read the docs of nestjs-pino
[X] I've read the docs of pino and pino-http
[X] I couldn't find the same question about nestjs-pino
[X] This is not a question about how to use this library with pino-transport-name-goes-here

How to make 'context' key be outside of 'nestedKey' object
Hi,
In my pino-http configuration I set the 'nestedKey' option in order to separate actual logged data from default pino data (reqId, msg, pid, etc.). The problem is that the 'context' key appears in my 'nestedKey', and I'd like it to be in the root object, so that I will never accidentally overwrite it.
I do not have found a solution to this, can anyone help?

I didn't get the question, Could you provide actual/desired log formats and current configuration with only fields related to this question?

Example (I'm excluding all nest bootstrap and stuff):
import { LoggerModule } from 'nestjs-pino';
import { Logger } from '@nestjs/common';

const module = LoggerModule.forRoot({
  pinoHttp: {
    nestedKey: 'data',
    quietReqLogger: true,
  },
});

const log = new Logger('my-context');
log.log({ my: 'data'});

Output log:
{
  "reqId": 1,
  "data": {
    "context": "my-context",
    "my": "data"
  }
}

Desired output:
{
  "reqId": 1,
  "context": "my-context",
  "data": {
    "my": "data"
  }
}

In the end, pino logger is called like so: pino[level]({ context: 'value', ...restOptions }). I don't know if it's possible to move context field to the root of the log object. Is it possible to log some fields in the root with plain https://github.com/pinojs/pino-http ?

No response, closing. If you're still interested in this please check pino-http first, and then if that's possible with pino-http we could reopen this issue.

repo: iamolegga/nestjs-pino


text:
📃: QR Code Scanner

🔴 Title : QR Scanner
🔴 Tech stack : ReactJS, HTML, CSS,
🔴 Objective : To Scan a QR Code
🔴 Summary :
📸 Screenshots

✅ Details to Include When Taking the Issue:
Name : AkshithSaai
Participant Role (Specify the Open Source Program name, e.g., GSSOC, Hacktoberfest, etc.):
GSSOC, Hacktoberfest

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

@iamrahulmahato I would like to contribute this to the repo. Please Assign this to me.

already added

@iamrahulmahato QR code generator is added but I wanted to add QR Code scanner .

authors: Akshithsaai iamrahulmahato

repo: iamrahulmahato/master-web-development


text:
hs-opentelemetry-propagator-datadog upload rights

Hi @kakkun61 , could you please add the same set of people as uploaders for hs-opentelemetry-propagator-datadog as for the other packages? I can't upload a new version of it, so I can't release the hs-opentelemetry-api version that depends on it.

In fact, it's worse than that, I thought I could upload it, so I've already uploaded a now-broken version of hs-opentelemetry-sdk...

@michaelpj Tentatively I added michaelpj.

Thanks, I was able to release it. Possibly other people should be able to as well, though.


text:
GCP - resourcemanager permissions not mapped

Hello,
I can't find the Resource Manager permissions.
If I use the search I can find resourcemanager.projects.get but nothings loads.
I'm not sure what the problem is.

Hey @Techbrunch,
Thanks for raising!
This is the first time I'm seeing a difference between the API and IAM namespaces within GCP, which was the cause here. I've added a service mapping file for this, and will review the existing services for other similar mismatches shortly.
In the meantime, the linked resource on permissions.cloud should be fixed.


text:
Parameterize the background color

Hi. Thanks for making this theme.
I'd like to change the background color of this theme. Have you parameterized this? Or should I edit the source code manually?
Thanks for sharing.

Hey, nice to know you liked it!
I don't have parameters for changing the background color, if you want, you can open a PR and I'll be glad in merging it.

authors: ianrodrigues wpcarro

repo: ianrodrigues/hugo-tailwind-journal


text:
Book 4 should be Hermione Jean Granger and the Phoenix's call

The cover of book 4 should say Hermione Jean Granger and the Phoenix's Call, not Harry Potter and the Phoenix's Call.  The Cover should match the title page.

A second change possibly should be that book 2 should be: "Harry James Potter-Evans-Verres and the Professors' Games" instead of "Harry James Potter-Evans-Verres and the Professor's Games"
There are more than one professor playing games in book 2.

Hey @jrincayc, I'm sorry I only just saw the notice about book four actually being named "Hermione Granger ...". I've just updated it! Thank you!
(I chose to leave book two the way it was, since it seems that's how the original source was named. I also chose to continue leaving out the middle names on the cover design for aesthetics, although I hadn't even realized that I omitted that originally.)

Thanks for fixing book 4.

authors: ianstormtaylor jrincayc

repo: ianstormtaylor/hpmor


text:
Horizontal/vertical split

Hi is there a way to open the fzf window in a horizontal/vertical split rather than a popup?

Currently no, I thought about it but it's too big of a refactor right now, at least before I finish all the providers and add the builtin preview with treesitter, for which I might have to include a rather large code change, might be easier to add support for it then, might not.

Just added the change, was simpler than I thought, you can either set winopts.split option during setup to set this globally or individually for each call as per the below:
-- "new"           : split below
-- "aboveleft new" : split above
-- "vnew"          : split right
-- "aboveleft vnew : split left
:lua require('fzf-lua').files({ winopts = { split = "new" } })

authors: dfangx ibhagwan

repo: ibhagwan/fzf-lua


text:
Is it possible to create a file or folder if it doesn't exist when searching for it?

Example behaviour could be pressing "enter" after searching for a file that doesn't exist will create the file at the path specified and open it for editing in a buffer

You can use a custom action (use the default action for enter) and call vim.fn.system to perform a system operation (I.e. mkdir/touch), if you need the last typed text from the Fzf prompt it’s saved in require'fzf-lua'config.__resume_data.last_query.

Thank you, so this is what I have at the moment:
require('fzf-lua').setup({
  actions = {
    files = {
      ['default'] = actions.file_edit_or_qf,
      ['ctrl-s'] = actions.file_split,
      ['ctrl-v'] = actions.file_vsplit,
      ['ctrl-t'] = actions.file_tabedit,
      ['alt-q'] = actions.file_sel_to_qf,
      ['ctrl-c'] = function()
        local last_query = require('fzf-lua').config.__resume_data.last_query
        vim.fn.system('touch ' .. last_query)
      end,
      ['ctrl-d'] = function()
        local last_query = require('fzf-lua').config.__resume_data.last_query
        vim.fn.system('mkdir ' .. last_query)
      end,
    },
  },
})

I have a couple more questions:

Is there a way to have a ctrl-shift-e bind? Initially I wanted touch to be ctrl-e and mkdir to be ctrl-shift-e, but it didn't seem to let me
Do you know how to make it so it opens the file to edit/folder to view in the buffer afterwards?

That's great, thank you! Both for the great plugin and for your really quick (and useful) help!

authors: ibhagwan sseneca


text:
使用 YYTextLayout 异步排版时如何设置文本垂直居中？

我按照文档里面的方式在后台线程生成YYTextLayout对象，然后在主线程里面把这个对象直接赋值给YYLabel。由于调大了lineHeightMultiple参数，可以很明显地看见文字在垂直方向上是靠底部排列的，即时设置了YYLabel的textVerticalAligment属性为center也无效。YYTextContainer里面也找不到可以调整垂直对齐的参数。

可以试试调整下 container insets。

我可以用lineSpacing达到类似的效果，只是没有直接一点的做法吗？

这是 lineheightmultiple，注意，第一行上面是额外多出来了一些空白。这些空白会被 layout 计算在内的。

这是 linespacing，第一行上面没有空白。
正常情况下，vertical aligment 属性已经提供了一个足够精确的对齐点，如果还要再微调，那可以调节 container insets。

拜读了一下源码，发现YYLabel控制垂直居中是通过调整YYTextLayout的[drawLayout drawInContext:context size:size point:point view:nil layer:nil debug:debug cancel:isCancelled]; 里面point的位置来实现的，怪不得没有生效，因为我的YYLabel的大小是紧贴它的YYTextLayout的textBoundingSize的。我的问题是，当调大了lineHeightMultiple之后，发现行高虽然变高了，但是文本绘制的位置还是紧贴在绘制区域的下方，导致文字的上方出现了大量空白。似乎YYTextLinePositionModifier也没法实现我想要的效果。

lineHeightMultiple 本身会调整每行文本的行高属性，而行高是会在文本排版时计算进去的，效果见上面那张图。默认情况下，行高 属性是把文字包含起来的最小高度，而 lineHeightMultiple 会额外增加这个高度。这是调用者本身的意图，如果我把上面这个空白除去来计算，那会破坏调用者的意图。
如果你非要在 top、mid、bottom 这三种对齐方式上进行微调，那你可以用 container insets 为文本额外增加你指定的边缘留白。

lineSpacing 是调整的行间距，这个空白本身是无关文本内容的，这不会影响视觉效果。

多谢解答。在生成YYTextLayout时调整YYTextContainer的contentInsets应该可以就可以达到我的目的了。

authors: PrideChung ibireme

repo: ibireme/YYText


text:
fix: dispatch underlying op for aliases

ops.Alias was added in Ibis recently and the dispatcher was defaulting
to ops.ValueOp when it received one -- instead this added in a
specific Alias dispatch rule to pull out the underlying op.
xref ibis-project/ibis#3276

@cpcloud -- are the "expected checks" here not getting picked up because I changed the build matrix?  Not sure what they are waiting on

Will adjust the required checks after merging this.

authors: cpcloud gforsyth

repo: ibis-project/ibis-substrait


text:
Game not opening at all.

[x] I have read the whole README especially the I'm having issue with your mod, what should I do? segment and have tried the solution given there.
[x] I am using the latest Steam version of the game.

Place an "x" without quotation mark inside the bracket to check the checkbox, so it'll look like this: [x] (no space between x and brackets).

        Please note that your issue will be immediately closed if there's unchecked checkbox.

Describe The Issue
I followed your installation instructions and now when I try to open my game nothing happens at all, no "Steam is launching your game" or anything, just refuses to open.
Screenshots
If there's an error message, attach the screenshots below.
There's no error message or anything really, it'd look the same if you did nothing while looking at the launch button instead of pressing it.
Desktop (please complete the following information):

OS: Windows 10
Mod Version: 0.9b

Additional context
I have no other mods installed, this was the first one.
The game worked fine again when I deleted the file I had put in the Yakuza folder.

does it really not work with ASI Loader?
the mod won't mess with DirectX API function in the .asi version thus issue like this should not happen with the .asi version.

Unless I somehow messed up the process along the way, it didn't work

strange.. I'm using Windows 10 with the Steam version of the game and have never had any issue for months.
have you tried the DLL injection method?
if you have and it's still not working can you tell me what asi loader you're using?

Yeah, I tried the one in your read me the first time and it didn't work, just tried again and still nothing.

you're using this version, right?

Yeah, I was but I decided to redownload everything and now I'm getting an error message.

The game launches afterwards but without the mod.

show me a screenshot of your root Y0 directory.

Looks the same as the one above as far as I can tell unless I'm being dumb.

no you're not, this is such a weird issue.

here my .asi is automatically loaded upon game start, I'm sorry but I can't reproduce your error on my end.

Maybe it's something not in the folder screwing it up.
I have no knowledge of stuff like this at all but I thought I might as well list some stuff I'm thinking about.
Different region/country.
I bought the game in a steam bundle (off of steam) with Kiwami 1 & 2.
No idea if they would change anything but I can't think of anything else that could be different.

I don't think they're distributing different executable for a game bought off of a bundle nor for different region, some region might have a different asset used but the game code should still be the same (at least that is the case for Yakuza 0, I've tried the Japanese depot version of the game).
also all of the "game address" needed for this mod to work is obtained dynamically, nothing's hardcoded, if my code failed to obtain the "game address" there should be a popup message like this one.

Then I got no clue, just seems odd for it to not work for seemingly no reason.
Also what happens now? I literally created an account on here to post this so I'm new to everything here.
Do I just leave this up or do I close it? Since You've got no idea what's going on there's not much else to add, right?

it's up to you, I don't see any harm leaving your account as is, you can also delete it if you want.
I'm closing this issue.


text:
Updated Read me

Pull request done

Merge


text:
🛑 Git is down

In f951097, Git (https://git.icarephone.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Git is back up in d9c7c15.

repo: icarephone/upptime


text:
🛑 Git is down

In 49f2695, Git (https://git.icarephone.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Git is back up in 63bb075.


text:
🛑 Bot is down

In f2f1bbe, Bot (https://bot.icarephone.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bot is back up in 67e33e8.


text:
🛑 Icarephone is down

In fcf3084, Icarephone (https://www.icarephone.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Icarephone is back up in dcd0ac5.


text:
Update to Yaapii.Atoms 2.0.2

Please check if the PR fulfills these requirements

[x] I made sure that my code builds (VisualStudio & cake script: build.ps1)
[x] I merged the master into this branch before pushing
[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Other... Please describe: update to Yaapii.Atoms 2.0.2

What is the current behavior? (You can also link to an open issue here)

What is the new behavior?
closes #60
Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications
Other information

The Yaapii.Json reference still needs to be updated, when Yaapii.Json has been updated to the new Atoms version


text:
Add a configuration to scrollable to always show the scrollbar. Adds a disabled style for scrollbar.

Disabled styles are used when a scrollbar is shown, but no content is overflowing.

CI Issues are unrelated to the PR.

repo: iced-rs/iced


text:
Asynchronous Search with API  [FEATURE]

This is the best plugin I could find for searchable dropdowns in Flutter but I would like to suggest a feature in where the user search in the input, then the data on the items list changes as well base on the data from a backend / API. That would be great.
If this is available or there is a way to implement this I might need an example, I'm new to Flutter.
Thank you.

Hi @cavinpabua ,
Thanks!
Indeed, I don't think there is an easy way to achieve what you are proposing and it would be great to have it.
If I had to do it still, I would start by trying to adapt the items list from the searchFn argument function but that doesn't seem easy to me and I'm not sure it would work.
I also wonder whether issue #19 was a similar request?

Any news about this issue?

Since version 2.0.4 and later, the SearchChoices plugin supports pagination and Future/network/API/webservice calls.
The example is meant to work with PHP-CRUD-API based webservice using a non-web Flutter client. However, the example can be adapted for many other situations.
https://github.com/lcuis/search_choices#single-dialog-paged-future

authors: Katekko cavinpabua lcuis


text:
empty datatable table tbody tr table 1 row added

  <DataTable
            minHeight={150}
              columns={[
                {
                    accessor: "id",
                },
                {
                    accessor: "code",

                },
                {
                    accessor: "name",

                },
                {
                    accessor: "name_my",

                },
                {
                    accessor: "group_class",

                },]}
                records={[]}

            />

  <DataTable
            minHeight={150}
              columns={[
                {
                    accessor: "id",
                },
                {
                    accessor: "code",

                },
                {
                    accessor: "name",

                },
                {
                    accessor: "name_my",

                },
                {
                    accessor: "group_class",

                },]}
                records={[]}

            />

The tbody does indeed have an empty row when noe records are provided, but this behaviour is intentional (to keep the layout consistent, as far as I remember) and the empty row is styled to be invisible, as you can see in the documentation website here: https://icflorescu.github.io/mantine-datatable/examples/empty-state
Did you override the styles?
Can you please share a reproduction on codesandbox or something similar?

I'm going to close this, since it doesn't appear on the docs website nor in other usage scenarios.
Please feel free to reopen if you can come up with a valid reporoduction.
Thanks!

Hello @icflorescu! I was able to reproduce this issue with the following DataTable:
        <DataTable
          height={360}
          striped
          border={1}
          borderColor={'var(--mantine-color-dark-4)'}
          withColumnBorders
          highlightOnHover
          fetching={isLoading}
          onScrollToBottom={handleOnScrollToBottom}
          scrollViewportRef={viewport}
          records={data?.pages.flat() || []}
          columns={
            [
              /*omitted*/
            ]
          }
          onRowClick={handleRowClick}
          defaultColumnProps={{
            titleStyle: () => ({ color: 'var(--mantine-color-indigo-text)' })
          }}
          highlightOnHoverColor={'var(--mantine-color-indigo-light)'}
          emptyState={
            <Box p={4} mb={4}>
              <NoRecordsIcon size={36} />
            </Box>
          }
        />

authors: icflorescu maungyehtunzaw nkelton

repo: icflorescu/mantine-datatable


text:
Test split and evaluation code missing?

Hi, thanks for your transparent and impressive work！
I find that the test data split seems missing in data/index_list compared to the original implementation. In addition, it seems that the model evaluation code is not provided.
If I made any mistake, please correct me. @icoz69  @Nan-S

The test splits have been pre-processed into other files in the uploaded dataset, and the evaluation code is provided during model training.
Thanks again for your transparent work!


text:
🛑 Icrop Website is down

In aa09969, Icrop Website (https://icrop.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Icrop Website is back up in 80142fc.

repo: icroptec/uptime-monitor


text:
Ported RedundantBaseContructorCall

Green tests
Logic seems a tiny bit better with the argumentList and arguments check

@mkrueger

can be merge @mkrueger

This analyzer grays out the whole constructor althrough removing the base() part only.

Another issue: If the opening brace is on separate line, this code fix destroys formatting.

authors: Kavignon Rpinski

repo: icsharpcode/RefactoringEssentials


text:
Add Wavelet to TSA

Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
#1443
What are the significant changes in functionality due to this change request?

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Mingw Test on 2c5352f : invalidated by @dylanjm

Job Mingw Test on 57d5ce0 : invalidated by @joshua-cogliati-inl
testing civet.

Job Test qsubs on ed7f21b : invalidated by @dylanjm
Not quite sure what happened with building the docs. Invalidating to test again

@PaulTalbot-INL Working on adding the integration test. Should I create a TSA integration tests folder or put it in the ROM test folder?

@PaulTalbot-INL Working on adding the integration test. Should I create a TSA integration tests folder or put it in the ROM test folder?

I think it's more of a SyntheticHistory integration test, right? So it would be in tests/framework/ROM/TimeSeries/SyntheticHistory ideally, I think.

@PaulTalbot-INL I've been doing some thinking and I think this aligns less with a SyntheticHistory ROM and more or a post-processor similar to how FFT is implemented. There is not really any stochastic nature to performing the transform and the inverse transformation used in the generate method  doesn't have random noise. So I'm conflicted on the best place to put an integration test.

Recall that stochasticity is not necessary for SyntheticHistory, rather the requirement is the ability to characterize and reproduce a signal. Note that neither the Fourier nor Polynomial have stochasticity either.

@PaulTalbot-INL All tests passing with integration and documentation added. If you wanna give a once over.

Tests passed, and the only change since tests passed was within a non-code element (docstring). This can be merged.

authors: PaulTalbot-INL dylanjm moosebuild

repo: idaholab/raven


text:
Mandd/gawithcustomsampler

Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Closes #2060
What are the significant changes in functionality due to this change request?

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

@aalfonsi this PR addesses your issue #2060

Thanks a lot!

Job Test Fedora 31 on 36d81f6 : invalidated by @mandd

Job Test Ubuntu 18-2 Python 3 on 36d81f6 : invalidated by @mandd

Job Test Ubuntu 18-2 Python 3 on 36d81f6 : invalidated by @mandd

Job Test mac on 0473401 : invalidated by @mandd

Job Test CentOS 7 on 0473401 : invalidated by @mandd

Once tests are green, this PR can be merged.

Job Mingw Test on 7a31828 : invalidated by @wangcj05
fetch failed

Job Mingw Test on 7a31828 : invalidated by @mandd

Job Mingw Test on 7a31828 : invalidated by @joshua-cogliati-inl
failed in fetch

Job Mingw Test on 7a31828 : invalidated by @wangcj05
failed InterpolatedMaxCycles

@mandd I guess there is a consistent failure in Windows, which is caused by test InterpolatedMaxCycles. This test has been recently revived in PR#2035. The purpose of the test is test the validity of input structure for ARMA, it is not made for consistent check.

I recommend to increase the rel_err for this test or we do not check the consistency in the csv file, just checkout it produces csv files.

@mandd I guess there is a consistent failure in Windows, which is caused by test InterpolatedMaxCycles. This test has been recently revived in PR#2035. The purpose of the test is test the validity of input structure for ARMA, it is not made for consistent check.

I recommend to increase the rel_err for this test or we do not check the consistency in the csv file, just checkout it produces csv files.

I agree, change "csv =" to "output =" in this test.

PR looks good and checklist is satisfied.

authors: aalfonsi joshua-cogliati-inl mandd moosebuild wangcj05


text:
Adding new nekRS CFD model for MSRE LP

This PR is related to issue #325.

Job VTB Documentation on 3e72044 wanted to post the following:
View the site here
This comment will be updated on new commits.

Thanks for the contribution!

authors: GiudGiud hapfang moosebuild


text:
ssdb 可以作为redis的slave进行数据同步吗

ssdb 可以作为redis的slave进行数据同步吗
his script will only copy entries with types in (STRING, HASH, ZSET, LIST)
ZSET scores are converted to intergers from floating numbers.
Do you want to continue? [y/n](y) y

Copying data from Redis(172.16.9.38:6379[1]) to SSDB(127.0.0.1, 36379)...
Using SCAN.
==============
2015-11-08 11:42:04 1/70546170 entries: 1
2015-11-08 11:42:08 10001/70546170 entries: 11065
2015-11-08 11:42:11 20001/70546170 entries: 22151
2015-11-08 11:42:15 30001/70546170 entries: 33091
2015-11-08 11:42:19 40001/70546170 entries: 44293
2015-11-08 11:42:23 50001/70546170 entries: 55410
2015-11-08 11:42:26 60001/70546170 entries: 66599
2015-11-08 11:42:30 70001/70546170 entries: 77492
2015-11-08 11:42:34 80001/70546170 entries: 88604
2015-11-08 11:42:37 90001/70546170 entries: 99662
2015-11-08 11:42:41 100001/70546170 entries: 110594
2015-11-08 11:42:45 110001/70546170 entries: 121766
2015-11-08 11:42:49 120001/70546170 entries: 132974
2015-11-08 11:42:53 130001/70546170 entries: 144091
2015-11-08 11:42:57 140001/70546170 entries: 155124
2015-11-08 11:43:01 150001/70546170 entries: 166115
2015-11-08 11:43:05 160001/70546170 entries: 177160

这边线上的数据有7000W左右，
但是用php redis-import.php 导数据一分钟才导了17W数据
导完都要好久了
这边希望通过slave同步的方式
将redis数据导到ssdb上
等数据同步完了再切过去
有办法么？

Hi, ssdb 无法作为 redis 的从库.

repo: ideawu/ssdb


text:
Is there a way to test this function?

I haven't posted the app on the Google Store yet.
But I want to know the result through the emulator of Android Studio to see if in-app payment is normal. How do I set 'productid'?

@StudyTae kindly go through the README on the Code page or check example folder

authors: StudyTae lekeCoder

repo: idehub/react-native-billing


text:
bug

why this bug occurred ?

i coded this little code and it worked but i think something missing
`const express = require('express');
const bodyParser = require('body-parser');
const {
createProxyMiddleware
} = require('http-proxy-middleware');
const app = express();
app.use(bodyParser.json());
const PORT = 4000;
const HOST = "0.0.0.0";
const API_SERVICE_URL = 'http://localhost:9009'
const methods = [
'dna_identity',
'dna_ceremonyIntervals',
'dna_epoch',
'dna_isValidationReady',
'dna_wordsSeed',
'dna_getBalance',
'flip_getRaw',
'flip_getKeys',
'flip_shortHashes',
'flip_longHashes',
'flip_privateEncryptionKeyCandidates',
'flip_sendPrivateEncryptionKeysPackage',
'flip_sendPublicEncryptionKey',
'bcn_syncing',
'bcn_getRawTx',
'bcn_sendRawTx',
]
app.get('', (req, res, next) => {
res.send('Hello , please donate > 0xe151841d51527e5e8261a32ea78074e93224e882');
});
app.use('', createProxyMiddleware({
target: API_SERVICE_URL,
changeOrigin: true,
secure : true,
onProxyReq(proxyReq, req, res) {
if (methods.indexOf(req.body.method) === -1) {
proxyReq.destroy()
res.status(403).send('Method fobidden')
return
}
}

}));
app.listen(PORT, HOST, () => {
console.log(Starting Proxy at ${HOST}:${PORT});
});`
however i also tried using using 0.0.0.0 as rpcaddr and it exposed the port to the internet and it also didn't work on the app but worked on the normal client

https:// is required for the shared node connection

i have fixed the https thing and now i got this

authors: RealMahmoud midenaio

repo: idena-network/idena-web


text:
license for metadata?

What is the license for identifiers.org? We consume a minimal portion of it (prefixes and their identifiers.org URLs) to generate JSON-LD contexts. We would like to distribute these JSON-LD context files under a maximally open license or waiver (ideally CC-0).
See: https://github.com/prefixcommons/biocontext/issues/15

We are licensed under CC-BY and our terms of use is detailed at http://identifiers.org/about. Please let me know if you have any further issues.

Updated link: https://docs.identifiers.org/pages/terms_of_use.html.

authors: cmungall sarala zmughal

repo: identifiers-org/registry


text:
Best way to create a table

If I were to create a table using idraw, would it be better to use html component or create a set of text components? Thank you for suggestions.

@Viktor-Lepekha Of course! At present, it is the easiest way to draw the table by using the iDraw element of html type.
Currently, iDraw doesn't provide the element         for drawing tables directly. But you can use iDraw's html element type to draw tables indirectly.

authors: Viktor-Lepekha chenshenhai

repo: idrawjs/studio


text:
[Actu] Find the way back to blog list after lire plus

As user i want to go back to list of topics !!
A Button inside detail- blog  can be good proposition

I will use the routerLink attribute to redirect back to the postlist page
-----Message d'origine-----
De : "Ghislain" notifications@github.com
Envoyé : 21/12/2020 15:21
À : "idrice24/mns" mns@noreply.github.com
Cc : "idrice24" idrice.tsafouet@yahoo.com; "Assign" assign@noreply.github.com
Objet : [idrice24/mns] [Actu] Find the way back to blog list after lire plus (#409)
As user i want to go back to list of topics !!
A Button inside detail- blog can be good proposition
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.

NOT Correct:
Why?: if you have many topic and paging that topic until page 50:  your go back button  its going to jump to 1 page !! not to page  50.  ANgular provides builtin service for that (CALLED History).  Even me i have to read it many times to understand. tip: Location
https://angular.io/api/common/Location#back


text:
Add reporater badge to this and all other repos

[![RepoRater](https://repo-rater.eddiehub.io/api/badge?owner=idrinth-api-bench&name=issues)](https://repo-rater.eddiehub.io/rate?owner=idrinth-api-bench&name=issues)

This would be the one for this repo for example:

@ manojaba this could be something nice for you to try out github :)

repo: idrinth-api-bench/issues


text:
Ethshop created by Team Code Weavers

It is a shopping app with crypto currency payments.

✔

repo: ieeebitmesra/IEEE-Megaproject


text:
feat: check Units for Loadflow variables

** Problem**

The exponents of variable units (like kW or MW) are set in the project settings by default. The exporter assume, that default exponents are set, but the user could have adjusted them.
For LV or MV loads the unit exponent is set as element variable setting (not influenced by global setting) and therefore has to be checked seperatly.

** Solution**

save project settings
set default unit exponents
export
restore project settings

I think its better to just use the units, the user provided. Shouldn't be that hard to implement

further suggestion:
make consistent rounding of physical variables like voltage, power and impedances across whole exporter

authors: SebastianDD sasanjac

repo: ieeh-tu-dresden/powerfactory-utils


text:
add iterget function/generator

this is useful if you want to retrieve a very large number of notes/references/invitations/groups but don't want to make all the network calls upfront or store them in memory.
(it's been useful to me as I've been working with the DBLP data)
This should make the _get_all() function sort of useless. If you like this change we can remove that function.

So, let's remove _get_all

@melisabok @mohituniyal I added a test, but I'm not sure if I'm setting it up correctly. Maybe we can discuss at our meeting?

@melisabok @mohituniyal is this ok to merge?

authors: melisabok mspector

repo: iesl/openreview-py


text:
doc url parser accepts revision for rfcs

/doc/rfc8989/99/ works by unintended consequence (redirecting to /doc/rfc8989.
/doc/rfc8989/99/bibtex works (producing bibtex for rfc8989.
Both should 404 instead.

For info: /idnits2-state too, I suppose.

Clarifications:

/idnits2-state should stay unchanged
/doc/rfc8989/<rev> should return 404 no matter what revision number is as revisions are for drafts

authors: maybe-hello-world rjsparks

repo: ietf-tools/datatracker


text:
feat: Show bluesheets using Attended tables

Fixes #6898

Closing this PR - requirements have shifted, and it's better to start out on a clean branch.


text:
反向传播不带梯度

你好，当使用反向传播到cross_modal_image_layers和cross_modal_text_layers的时候 为什么会没有梯度。在BERT的modelling_bert 设置梯度的时候显示是没有，请问怎么拿到每一层的梯度，例如cross_modal_image_layers倒数第一层的特征图和梯度。谢谢

可以具体说下"在BERT的modelling_bert 设置梯度"是指做了什么操作吗？

梯度问题已经解决。另外请问怎么获取图片特征输入的长度，假如图片是384384，patch大小是1616，那么patch个数应该是576. 请问怎么获取图片输入特征的长度。谢谢

假设图片经过vision model (ViT) 编码后的维度是[batch_size, vision_length, hidden_size]，其中第二维vision_length表示图片特征的长度，其由图片整体特征拼上每个patch的特征组成。因此length = 1 + patch数，以图片尺寸384*384、patch大小16*16为例，patch数量为(384 / 16) ^ 2 = 576，vision_length = 1 + 576 = 577

好滴，请问怎么获取到image cross attention 和 text cross attention的qk值？因为底层调用都是huggingface的BERT的modelling_bert代码，没有重构VLE代码融合部分。谢谢。

我们没有对cross attention内部做修改，如果要获取其中的query和key，可以考虑在models/VLE/modeling_vle.py中重写huggingface的BertAttention等相关代码

谢谢，还有一个问题，请问怎么拿到视觉的最后一层的特征，也就是hidden_states

VLEModel的输出中包含了最后的视觉特征，可以参照下面的代码
model = VLEModel.from_pretrained(model_name)
model_outputs = model(inputs)

# 最后的图像表示
model_outputs.image_embeds

# 最后的文本表示
model_outputs.text_embeds

好的，谢谢。还有一个问题，请问VLE模型可以在huggingface的框架上可以使用两个2080ti把模型分配在2个GPU上去吗？或者共享内存设置，例如device_map或者共享CPU内存，目前我们还没有成功，但是在一个3060可以运行或者一个4080可以运行也是勉强。谢谢

没有这样做过，可以试试在device_map中手动指定模型的各模块分配到哪张卡上。使用device_map可能会和分布式训练冲突
device_map={
 "vision_model": 0,
 "text_model": 0,
 "text_projection_layer": 1,
 "image_projection_layer": 1,
 "token_type_embeddings": 1,
 "cross_modal_image_layers": 1,
 "cross_modal_text_layers": 1,
 "cross_modal_image_pooler": 1,
 "cross_modal_text_pooler": 1
}

您好，这是我们的代码，只能注释model.to(device，无法加载到2个2080ti上。只是在CPU上可以运行。我们只是推理不训练。请问要怎么解决好呢？谢谢
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0, 1"
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
if name == "main":
from VLE import VLEForVQA, VLEProcessor, VLEForVQAPipeline
device_map = {
    "vision_model": 0,
    "text_model": 0,
    "text_projection_layer": 1,
    "image_projection_layer": 1,
    "token_type_embeddings": 1,
    "cross_modal_image_layers": 1,
    "cross_modal_text_layers": 1,
    "cross_modal_image_pooler": 1,
    "cross_modal_text_pooler": 1
}

model = VLEForVQA.from_pretrained("./pretrained/vle-base-for-vqa")

vle_processor = VLEProcessor.from_pretrained(
    "./pretrained/vle-base-for-vqa",
    num_labels=len(config.id2label),
    id2label=config.id2label,
    label2id=config.label2id,
    output_hidden_states=True
)
vqa_pipeline = VLEForVQAPipeline(model=model, device_map=device_map, vle_processor=vle_processor)
# vqa_pipeline = VLEForVQAPipeline(model=model, device=device, vle_processor=vle_processor)
# model.to(device)
model.eval()

dataset = VQADataset(questions=questions[:5000], annotations=annotations[:5000],)
test_dataloader = DataLoader(dataset, batch_size=1, shuffle=False)

# 计数器
correct = 0.0
total = 0

for image, text, labels in test_dataloader:
    image = image.squeeze(0)
    # image = image.to(device)
    image = tensor_to_pil(image)
    inputs = {"image": image, "question": text[0]}
    vqa_answers = vqa_pipeline(**inputs, top_k=5)

    _, _, logits, answer_list = vqa_answers
    top_answer = answer_list[0]['answer']
    print("prediction answer:", top_answer)

    true_label_index = torch.argmax(labels)
    true_label = config_idandlabel["answer_candidates"][true_label_index]
    if top_answer == true_label:
        correct = correct + 1
    total = total + 1
    print("total==================", total)
    if total % 100 == 0:
        print("total:{}".format(total))

acc = correct / total
print("acc:{:.4f}".format(acc))

使用VLEForVQA模型的话，device_map里的模块名要调整下
device_map = {
    "vle.vision_model": 0,
    "vle.text_model": 0,
    "vle.text_projection_layer": 1,
    "vle.image_projection_layer": 1,
    "vle.token_type_embeddings": 1,
    "vle.cross_modal_image_layers": 1,
    "vle.cross_modal_text_layers": 1,
    "vle.cross_modal_image_pooler": 1,
    "vle.cross_modal_text_pooler": 1,
    "vqa_classifier": 1,
}

在加载model时传入device_map参数
model = VLEForVQA.from_pretrained("./pretrained/vle-base-for-vqa",device_map=device_map)

这时模型已经分配到两张卡上了。
关于Pipeline，似乎不支持多卡（device_map），只支持传入device。比如下面这行代码，传入device=0
vqa_pipeline = VLEForVQAPipeline(model=model, device=0, vle_processor=vle_processor)

这边又会把0,1卡上的模型全放到0卡上。多卡建议不使用Pipeline，可以参照VLEForVQAPipeline中的处理逻辑在你的代码里重写一下流程。

您好，使用model = VLEForVQA.from_pretrained("./pretrained/vle-base-for-vqa",device_map=device_map)确实用到了2个2080ti，在batch_size=1时，只跑了4个数据，显存就爆满，报出out of memory的错误，请问是不是当前的设备的原因，导致无法继续运行？如果不是的话，请问还有其他的解决方案吗？谢谢

可以试试下面几个方法，能否降低显存使用

调整device_map的分配，让显存更均匀
使用torch.no_grad
减小model和processor的image size。具体修改模型config.json的image_size和preprocessor_config.json的crop_size和size

你好，1方案昨天已经尝试了，但是没有成功，请问可否再给个device_map字典。2 我们是需要梯度的，所以Torch.no_grad应该不会采用，已经修改了bert底层，打开记录梯度，3 已经尝试了 但是模型输入图片必须得是576576，改成384384报错，请问您那边可以尝试一下resize吗？谢谢

device_map可以根据在两张卡上的实际显存占用，调整放0号卡和1号卡的模块，比如把vle.vision_model也设为1（可能需要相应修改图像输入的device）。我们没有2080ti，没法给出更具体的设置了。
需要梯度的话显存占用确实会增加很多。是需要全部梯度吗？不需要梯度的部分模块有设置require_grad=False吗
在模型目录下的config.json和preprocessor_config.json中修改size后是可以运行的，具体是报什么错?

Traceback (most recent call last):
File "/home/user/wei/VLE/vle_image_text.py", line 211, in
model = VLEForVQA.from_pretrained("./pretrained/vle-base-for-vqa")
File "/home/user/anaconda3/envs/wayne/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3480, in from_pretrained
) = cls._load_pretrained_model(
File "/home/user/anaconda3/envs/wayne/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3931, in _load_pretrained_model
raise RuntimeError(f"Error(s) in loading state_dict for {model.class.name}:\n\t{error_msg}")
RuntimeError: Error(s) in loading state_dict for VLEForVQA:
size mismatch for vle.vision_model.vision_model.embeddings.position_embedding.weight: copying a param with shape torch.Size([197, 768]) from checkpoint, the shape in current model is torch.Size([1297, 768]).
You may consider adding ignore_mismatched_sizes=True in the model from_pretrained method.

如果图片改成384*384大小，造成维度不匹配了
Traceback (most recent call last):
File "D:\WorkSpace\workspace\multimodal_robustness\vle_vqav2_image.py", line 171, in
model = VLEForVQA.from_pretrained("./pretrained/vle-base-for-vqa")
File "C:\Users\Admin.conda\envs\Base\lib\site-packages\transformers\modeling_utils.py", line 3307, in from_pretrained
) = cls._load_pretrained_model(
File "C:\Users\Admin.conda\envs\Base\lib\site-packages\transformers\modeling_utils.py", line 3756, in _load_pretrained_model
raise RuntimeError(f"Error(s) in loading state_dict for {model.class.name}:\n\t{error_msg}")
RuntimeError: Error(s) in loading state_dict for VLEForVQA:
size mismatch for vle.vision_model.vision_model.embeddings.position_embedding.weight: copying a param with shape torch.Size([1297, 768]) from checkpoint, the shape in current model is torch.Size([577, 768]).
You may consider adding ignore_mismatched_sizes=True in the model from_pretrained method.

试下在加载model后调整position_embedding的权重，使用models.VLE.modeling_vle.py中的extend_position_embedding方法。具体方式参考下面的代码或者examples/VQA/vqav2_train_module.py中的line: 68~76
patch_size = model.config.vision_config.patch_size
position_length_after = (model.config.vision_config.image_size//model.config.vision_config.patch_size)**2 + 1
position_embed_dim = model.vle.vision_model.vision_model.embeddings.position_embedding.embedding_dim

new_state_dict = extend_position_embedding(model.state_dict(), patch_size, model.config.vision_config.image_size)
model.vle.vision_model.vision_model.embeddings.position_embedding = nn.Embedding(position_length_after, position_embed_dim, device=model.vle.vision_model.vision_model.embeddings.position_embedding.weight.device)
model.vle.vision_model.vision_model.embeddings.register_buffer("position_ids", torch.arange(position_length_after, device=model.vle.vision_model.vision_model.embeddings.position_ids.device).expand((1, -1)))
model.load_state_dict(new_state_dict)

还有2个问题 1源代码用的是DeBERTa-v2 in huggingface. 2请问在A100上可以做多显卡推理吗？谢谢

没看懂你的问题
多卡推理可以在A100上进行

authors: GoGoJoestar guanhdrmq

repo: iflytek/VLE


text:
option show legend has no effect on  plotly pie widget (javascript)

for javascript plotly pie widget
The option show legend in graphical properties has no effect

It's done.
See integration branch.

repo: ifpen/chalk-it


text:
Can you rename max(min)?

The function "friend vector(2/3/4) max/min" in vector(2/3/4).hpp will cause a compile failure. Can you rename it?
packages\libr4.1.0.37\build\native\include\r4\vector2.hpp(218): error C2475: “r4::vector2<T>::vector2”: Redefinition: "constexpr" descriptor mismatch

I have added #undef's to libr4 version 1.0.38, please update your package and try. Let me know if it helped to solve the problem.

Thank you for your reply.
I updated the package to 1.0.38, but I am having other problems again.
Because my project also handles min and max via macros.
I think there should be a lot of projects that have this handling as well, and there are conflicts when using libr4.
As a powerful and versatile library, I think your changing the names of min and max is a good solution. Thanks.

It is a bad practice to use min and max macros defined in windows header files.
Please use std::min and std::max functions instead.

Also, according to https://en.cppreference.com/w/cpp/language/adl it is preferred to use using to import the function to the scope and then just call it like this:
using std::min;
auto m = min(a, b);

This allows ADL to use min function from same namespace where class of a and b is defined. See Notes section from the link above.

thanks.

authors: igagis ztxcyk


text:
Made a small change to the collision detection between the ball and the paddle

I changed the if statement on line 187 so that if the bottom of the
ball hit the paddle, the ball would change direction.
I could do the same type of thing to the walls, but I wanted to make
sure that I’m not fixing something that ain’t broken first.

@cynthiajbuck  Could you resolve the conflicts

I just made a new fork and did a new PR. thank you!

Thank you @cynthiajbuck  I have merged. Hopefully, you will contribute more to this repo and we can grow together.

authors: VRamazing cynthiajbuck

repo: igameproject/Breakout


text:
4 ➡ 5

➡ Forward port
Port ign-gazebo4 to main
Branch comparison: https://github.com/ignitionrobotics/ign-gazebo/compare/main...ign-gazebo4
Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Homebrew CI is expected to fail because of Qt5 right now and Windows is just supposed to compile, we can ignore test failures and warnings.
So I think this is good to go.

repo: ignitionrobotics/ign-gazebo


text:
[Request] restore force duplication function

Please, reinsert the feature for an intentional opening of a duplicate tab that you’ve removed in 3b01929 or provide some similar functionality.
This is for me an essential, almost daily used feature (e.g. I clone the tab and then change something in the web address), so I had to downgrade for now. I guess you thought the addon could be disabled by clicking on the button, but this is very uncomfortable the way I use your addon, because then I had to disable and re-enable it countless times a day or to remember hours later that the addon is still disabled. Also, addon buttons are now by default hidden inside a menu. I would rather surrender and remove the addon itself.
If it is for the default “Clone tab” menu entry: I have blended out this with userchromeCSS (#tabContextMenu #context_duplicateTab {display: none}). You could provide an optional switch doing this or, if possible, change its behaviour to the desired one, so that cloned tabs won’t be killed anymore, but I actually would much more prefer the way it worked until addon version 1.8.12. How about making the now removed feature optional and disabled by default?

Damn, i was kind of hoping to remove this very hacky feature.
But i if your workflow depends on it, maybe we can compromise to at least remove the trigger from the tab context menu, since i'd like to prevent more people from depending on it.
So, would it be ok for you, if the force duplication would instead be trigger'able by middle clicking on the toolbar icon?

Try it out and let me know if that works for you.

Just use your Middle Button to click on the toolbar icon.

Just in case this method doenst work for you, i would also be fine with adding a initally unset custom shortcut instead.

I'll see if i can find a way to also make the context entry toggable.

So there are now three different methods for opening a duplicate tab.

yeah, life is strange ... i guess you dont always get what you want. oh well.

authors: Speravir igorlogius

repo: igorlogius/dont-open-duplicate-tabs


text:
Add tax observer for W2 forms

Title: Add tax observer for W2 forms

Description

Category: observers
JIRA issue: MIC-3762
Research reference: https://vivarium-research.readthedocs.io/en/latest/models/concept_models/vivarium_census_synthdata/concept_model.html#w2-and-1099-forms

Changes and notes

changed output from .hdf to .csv.bz2 after finding this is substantially smaller and better supports some of the columns in the W2 output
Verification and Testing

tests pass, model_spec.yaml runs with simulate run

I better add a column for tax year before I call this done...


text:
Change timeslice tests to expected behaviour

Required: write a single sentence here describing the changes made by this PR.

How to review
Required: describe specific things that reviewer(s) need to do to, in order
to ensure that the PR does what it intends.

PR checklist

[ ] Tests added.

[ ] Documentation added.

[ ] Release notes updated.
<!-- To update `RELEASE_NOTES.rst`, add a single line under the section
“Next release” similar to:
<ul>
#999 <https://github.com/iiasa/ixmp/pull/999>_: Title or single-sentence
description from above.
-->

Closing in favor of #277

repo: iiasa/ixmp


text:
添加shareSDK社交分享功能

添加shareSDK的理由：简约大方
http://sharesdk.mob.com/#/sharesdk
http://wiki.mob.com/sharesdk-for-web快速集成/
看上面的wiki取得appkey

这就是自己的appkey

分享

新浪微博

腾讯微博

QQ空间

QQ好友

人人网

开心网

豆瓣

Facebook

Twitter

取消

主题下layout/_partials/share新建文件sharesdk.swig，写入以上代码
打开layout/post.swig，24行后添加
{% elseif theme.sharesdk %}
        {% include '_partials/share/sharesdk.swig' %}

主题配置文件增加以下
#Share
sharesdk: true
shareSDKappkey: appkey

appkey为你自己的key
配上效果图
点击会弹开，扁平化风格，适合小清新

图挂了

图传不上。。不好意思

repo: iissnan/hexo-theme-next


text:
文章预览中代码行号排成一行超出页面.

Expected behavior (预期行为)
在首页每个文章的预览的那几行中,代码预览的行号不应该超出页宽
Actual behavior (实际行为)
在首页每个文章的预览的那几行中,代码预览的行号超出页宽,例子如
巴拉拉巴拉巴拉巴拉巴拉 最近使用天气预报接口很不如意啊，稳定的要收费，免费的又不稳定, 记录下自己的做法…… 1. 根据网络请求获得当前城市的ID,方法,额,百度吧.或者直接搜天气咯. 2. 根据百度搜索天气预报第一条获得的数据，进去http://www.weather.com.cn/weather1d/101020100.shtml进行网页抓取 3. 根据今天的白天和夜晚得到的数据进行组合,具体要显示哪些信息,由自己根据需求拼在一起. 4. 代码如下： 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253package前面的数字排成一行超出页宽 name.zhoufei.weather;im
Steps to reproduce the behavior (重现步骤)
插入代码,代码前面的文章内容要小,预览的文章能够预览到代码块
NexT Informations
Add the  ✔  sign before an item which is affected by this behavior.
NexT Version:

Master
Latest Release
Old version -

NexT Scheme:

All schemes
Muse
Mist
Pisces

Other Informations (Like Browser, System, Screenshots)

http://helloworld.zhoufei.name/
可以看首页预览下

文章代码我用代码块改了,用
    ```java
          a(){}
    ```

的方法不对, 图如下:
http://source.zhoufei.name/Screenshot from 2016-07-16 18-45-34.png

disqus 首页0评论不显示 ,,,,
http://source.zhoufei.name/Screenshot from 2016-07-16 19-43-27.png

@zhou-fei dont understand u, write in English if not solved. If solved, close it please. Thank's!

authors: Zhou-Fei ivan-nginx zhou-fei


text:
Serves multiple conflicting versions of @types/react with react and react-dom

Failing module

npm: react + react-dom

// @ts-check

import "https://esm.sh/react";
import "https://esm.sh/react-dom";

Error message
After running deno run I got this:
Check file://[redacted]/demo.mjs
error: TS2300 [ERROR]: Duplicate identifier 'LibraryManagedAttributes'.
        type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
             ~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.esm.sh/v78/@types/react@18.0.8/index.d.ts:3125:14

    'LibraryManagedAttributes' was also declared here.
            type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
                 ~~~~~~~~~~~~~~~~~~~~~~~~
        at https://cdn.esm.sh/v78/@types/react@18.0.6/index.d.ts:3121:14

TS2300 [ERROR]: Duplicate identifier 'LibraryManagedAttributes'.
        type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
             ~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.esm.sh/v78/@types/react@18.0.6/index.d.ts:3121:14

    'LibraryManagedAttributes' was also declared here.
            type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
                 ~~~~~~~~~~~~~~~~~~~~~~~~
        at https://cdn.esm.sh/v78/@types/react@18.0.8/index.d.ts:3125:14

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'link' must be of type 'DetailedHTMLProps<LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>', but here has type 'DetailedHTMLProps<LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>'.
            link: React.DetailedHTMLProps<React.LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
            ~~~~
    at https://cdn.esm.sh/v78/@types/react@18.0.6/index.d.ts:3192:13

    'link' was also declared here.
                link: React.DetailedHTMLProps<React.LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
                ~~~~
        at https://cdn.esm.sh/v78/@types/react@18.0.8/index.d.ts:3196:13

Found 3 errors.

The root of the error can be seen using deno info demo.mjs:
local: /Users/jaydenseric/Projects/ruck-website/demo.mjs
type: Mjs
dependencies: 13 unique (total 1.29MB)

file://[redacted]/demo.mjs (80B)
├─┬ https://esm.sh/react (172B)
│ ├─┬ https://cdn.esm.sh/v78/@types/react@18.0.8/index.d.ts (150.28KB)
│ │ ├── https://cdn.esm.sh/v78/@types/react@18.0.8/global.d.ts (7.21KB)
│ │ ├── https://cdn.esm.sh/v78/@types/prop-types@15.7.5/index.d.ts (3.58KB)
│ │ ├── https://cdn.esm.sh/v78/@types/scheduler@0.16.2/tracing.d.ts (4.03KB)
│ │ └── https://cdn.esm.sh/v78/csstype@3.0.11/index.d.ts (850.38KB)
│ ├── https://cdn.esm.sh/v78/react@18.1.0/deno/react.js (8.42KB)
└─┬ https://esm.sh/react-dom (192B)
  ├─┬ https://cdn.esm.sh/v78/@types/react-dom@18.0.2/index.d.ts (3.82KB)
  │ └─┬ https://cdn.esm.sh/v78/@types/react@18.0.6/index.d.ts (150.09KB)
  │   ├── https://cdn.esm.sh/v78/@types/react@18.0.6/global.d.ts (7.21KB)
  │   ├── https://cdn.esm.sh/v78/@types/prop-types@15.7.5/index.d.ts *
  │   ├── https://cdn.esm.sh/v78/@types/scheduler@0.16.2/tracing.d.ts *
  │   └── https://cdn.esm.sh/v78/csstype@3.0.11/index.d.ts *
  ├─┬ https://cdn.esm.sh/v78/react-dom@18.1.0/deno/react-dom.js (128.75KB)
  │ ├── https://cdn.esm.sh/v78/react@18.1.0/deno/react.js *
  │ └── https://cdn.esm.sh/v78/scheduler@0.22.0/deno/scheduler.js (5.76KB)

As you can see, esm.sh is incorrectly serving multiple conflicting versions of @types/react.
Additional info

esm.sh version: Latest online
Deno version: 1.21.2

Just FYI I have been discussing this exact issue here https://github.com/esm-dev/esm.sh/issues/326, though I might have been conflating issues.

now the server responses x-typescript-types with semver versioning, for example, react@18 will use https://esm.sh/v80/@types/react@^18/index.d.ts, then https://esm.sh/v80/@types/react@^18/index.d.ts will redirect to https://esm.sh/v80/react@18.0.9/index.d.ts

@ije there are still very strange things going on preventing React v18 being used with types.
If you have demo.mjs:
// @ts-check

import "https://esm.sh/react-dom@18.2.0/client";

And run deno info demo.mjs:
local: [redacted]/demo.mjs
type: Mjs
dependencies: 6 unique (total 145.89KB)

file://[redacted]/demo.mjs (63B)
└─┬ https://esm.sh/react-dom@18.2.0/client (185B)
  ├─┬ https://esm.sh/v90/@types/react-dom@18.0.6/client~.d.ts (1.42KB)
  │ └── Relative import path "react" not prefixed with / or ./ or ../ (resolve error)
  ├─┬ https://esm.sh/v90/react-dom@18.2.0/deno/client.js (1.16KB)
  │ └─┬ https://esm.sh/v90/react-dom@18.2.0/deno/react-dom.js (128.91KB)
  │   ├── https://esm.sh/v90/react@18.2.0/deno/react.js (8.41KB)
  │   └── https://esm.sh/v90/scheduler@0.23.0/deno/scheduler.js (5.75KB)

Note the bare react import specifier in https://esm.sh/v90/@types/react-dom@18.0.6/client~.d.ts causing a resolve error.
I'm unable to get esm.sh work for React v18 and types in Ruck; the problem like my original issue is esm.sh is providing different conflicting versions of @types/react in the module graph.
With Deno config pointing to this import map:
{
  "imports": {
    "free_port/": "https://deno.land/x/free_port@v1.2.0/",
    "graphql-react/": "https://unpkg.com/graphql-react@19.0.0/",
    "puppeteer": "https://deno.land/x/puppeteer@14.1.1/mod.ts",
    "react": "https://esm.sh/react@18.2.0?dev",
    "react-dom/client": "https://esm.sh/react-dom@18.2.0/client?dev",
    "react-dom/server": "https://esm.sh/react-dom@18.2.0/server?dev",
    "react-test-renderer": "https://esm.sh/react-test-renderer@18.2.0?dev",
    "react-waterfall-render/": "https://unpkg.com/react-waterfall-render@4.0.1/",
    "ruck/": "./",
    "std/": "https://deno.land/std@0.151.0/"
  }
}

Running deno info hydrate.mjs (this module, but locally updated the imports etc. for React v18 and not yet pushed up to GitHub):
local: /Users/jaydenseric/Projects/ruck/hydrate.mjs
type: Mjs
dependencies: 73 unique (total 2.95MB)

file:///Users/jaydenseric/Projects/ruck/hydrate.mjs (2.37KB)
├─┬ file:///Users/jaydenseric/Projects/ruck/ClientProvider.mjs (8.31KB)
│ ├─┬ file:///Users/jaydenseric/Projects/ruck/Effect.mjs (498B)
│ │ ├─┬ https://esm.sh/react@18.2.0?dev (188B)
│ │ │ ├─┬ https://esm.sh/v90/@types/react@18.0.17/index.d.ts (150.57KB)
│ │ │ │ ├── https://esm.sh/v90/@types/react@18.0.17/global.d.ts (7.21KB)
│ │ │ │ ├── https://esm.sh/v90/@types/prop-types@15.7.5/index.d.ts (3.58KB)
│ │ │ │ ├── https://esm.sh/v90/@types/scheduler@0.16.2/tracing.d.ts (4.03KB)
│ │ │ │ └── https://esm.sh/v90/csstype@3.1.0/index.d.ts (851.41KB)
│ │ │ ├── https://esm.sh/v90/react@18.2.0/deno/react.development.js (74.02KB)
│ │ └── https://esm.sh/react@18.2.0?dev *
│ ├─┬ file:///Users/jaydenseric/Projects/ruck/HeadManager.mjs (3.1KB)
│ │ ├── https://esm.sh/react@18.2.0?dev *
│ │ └── https://esm.sh/react@18.2.0?dev *
│ ├─┬ file:///Users/jaydenseric/Projects/ruck/HeadManagerContext.mjs (272B)
│ │ ├── file:///Users/jaydenseric/Projects/ruck/HeadManager.mjs *
│ │ └── https://esm.sh/react@18.2.0?dev *
│ ├─┬ file:///Users/jaydenseric/Projects/ruck/NavigateContext.mjs (303B)
│ │ ├── file:///Users/jaydenseric/Projects/ruck/ClientProvider.mjs *
│ │ └── https://esm.sh/react@18.2.0?dev *
│ ├─┬ file:///Users/jaydenseric/Projects/ruck/RouteContext.mjs (256B)
│ │ ├─┬ file:///Users/jaydenseric/Projects/ruck/serve.mjs (11.8KB)
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/HeadManager.mjs *
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/HeadManager.mjs *
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/HeadManagerContext.mjs *
│ │ │ ├─┬ file:///Users/jaydenseric/Projects/ruck/Html.mjs (555B)
│ │ │ │ ├── file:///Users/jaydenseric/Projects/ruck/serve.mjs *
│ │ │ │ └── https://esm.sh/react@18.2.0?dev *
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/RouteContext.mjs *
│ │ │ ├─┬ file:///Users/jaydenseric/Projects/ruck/TransferContext.mjs (342B)
│ │ │ │ ├── file:///Users/jaydenseric/Projects/ruck/serve.mjs *
│ │ │ │ └── https://esm.sh/react@18.2.0?dev *
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/assertImportMap.mjs (3.14KB)
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/assertImportMap.mjs *
│ │ │ ├── file:///Users/jaydenseric/Projects/ruck/jsonToRawHtmlScriptValue.mjs (791B)
│ │ │ ├─┬ file:///Users/jaydenseric/Projects/ruck/publicFileResponse.mjs (2.46KB)
│ │ │ │ ├── file:///Users/jaydenseric/Projects/ruck/serve.mjs *
│ │ │ │ ├── https://deno.land/std@0.151.0/http/http_status.ts (9.97KB)
│ │ │ │ ├─┬ https://deno.land/std@0.151.0/media_types/mod.ts (11.85KB)
│ │ │ │ │ ├── https://deno.land/std@0.151.0/media_types/_util.ts (3.05KB)
│ │ │ │ │ └── https://deno.land/std@0.151.0/media_types/vendor/mime-db.v1.52.0.ts (182.13KB)
│ │ │ │ ├─┬ https://deno.land/std@0.151.0/path/mod.ts (877B)
│ │ │ │ │ ├── https://deno.land/std@0.151.0/_util/os.ts (632B)
│ │ │ │ │ ├── https://deno.land/std@0.151.0/path/_interface.ts (728B)
│ │ │ │ │ ├─┬ https://deno.land/std@0.151.0/path/common.ts (1.16KB)
│ │ │ │ │ │ └─┬ https://deno.land/std@0.151.0/path/separator.ts (259B)
│ │ │ │ │ │   └── https://deno.land/std@0.151.0/_util/os.ts *
│ │ │ │ │ ├─┬ https://deno.land/std@0.151.0/path/glob.ts (12.37KB)
│ │ │ │ │ │ ├── https://deno.land/std@0.151.0/_util/os.ts *
│ │ │ │ │ │ ├── https://deno.land/std@0.151.0/_util/os.ts *
│ │ │ │ │ │ ├─┬ https://deno.land/std@0.151.0/path/posix.ts (14.65KB)
│ │ │ │ │ │ │ ├── https://deno.land/std@0.151.0/path/_constants.ts (1.97KB)
│ │ │ │ │ │ │ ├── https://deno.land/std@0.151.0/path/_interface.ts *
│ │ │ │ │ │ │ └─┬ https://deno.land/std@0.151.0/path/_util.ts (3.69KB)
│ │ │ │ │ │ │   ├── https://deno.land/std@0.151.0/path/_constants.ts *
│ │ │ │ │ │ │   └── https://deno.land/std@0.151.0/path/_interface.ts *
│ │ │ │ │ │ ├── https://deno.land/std@0.151.0/path/separator.ts *
│ │ │ │ │ │ └─┬ https://deno.land/std@0.151.0/path/win32.ts (29.19KB)
│ │ │ │ │ │   ├── https://deno.land/std@0.151.0/_util/assert.ts (443B)
│ │ │ │ │ │   ├── https://deno.land/std@0.151.0/path/_constants.ts *
│ │ │ │ │ │   ├── https://deno.land/std@0.151.0/path/_interface.ts *
│ │ │ │ │ │   └── https://deno.land/std@0.151.0/path/_util.ts *
│ │ │ │ │ ├── https://deno.land/std@0.151.0/path/posix.ts *
│ │ │ │ │ ├── https://deno.land/std@0.151.0/path/separator.ts *
│ │ │ │ │ └── https://deno.land/std@0.151.0/path/win32.ts *
│ │ │ │ └─┬ https://deno.land/std@0.151.0/streams/conversion.ts (17.03KB)
│ │ │ │   └─┬ https://deno.land/std@0.151.0/io/buffer.ts (30.87KB)
│ │ │ │     ├── https://deno.land/std@0.151.0/_util/assert.ts *
│ │ │ │     ├── https://deno.land/std@0.151.0/bytes/bytes_list.ts (4KB)
│ │ │ │     ├─┬ https://deno.land/std@0.151.0/bytes/mod.ts (7.37KB)
│ │ │ │     │ └── https://deno.land/std@0.151.0/bytes/equals.ts (1.47KB)
│ │ │ │     └── https://deno.land/std@0.151.0/io/types.d.ts (3.3KB)
│ │ │ ├─┬ file:///Users/jaydenseric/Projects/ruck/readImportMapFile.mjs (1.24KB)
│ │ │ │ ├── file:///Users/jaydenseric/Projects/ruck/assertImportMap.mjs *
│ │ │ │ └── file:///Users/jaydenseric/Projects/ruck/assertImportMap.mjs *
│ │ │ ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs (2.52KB)
│ │ │ ├─┬ https://unpkg.com/graphql-react@19.0.0/CacheContext.mjs (410B)
│ │ │ │ ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ │ │ │ └── https://esm.sh/react@18.2.0?dev *
│ │ │ ├─┬ https://unpkg.com/graphql-react@19.0.0/Loading.mjs (1.7KB)
│ │ │ │ ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ │ │ │ └─┬ https://unpkg.com/graphql-react@19.0.0/LoadingCacheValue.mjs (4.38KB)
│ │ │ │   ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ │ │ │   ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ │ │ │   ├── https://unpkg.com/graphql-react@19.0.0/Loading.mjs *
│ │ │ │   ├── https://unpkg.com/graphql-react@19.0.0/Loading.mjs *
│ │ │ │   └─┬ https://unpkg.com/graphql-react@19.0.0/cacheEntrySet.mjs (868B)
│ │ │ │     ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ │ │ │     └── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ │ │ ├─┬ https://unpkg.com/graphql-react@19.0.0/LoadingContext.mjs (428B)
│ │ │ │ ├── https://unpkg.com/graphql-react@19.0.0/Loading.mjs *
│ │ │ │ └── https://esm.sh/react@18.2.0?dev *
│ │ │ ├── https://esm.sh/react@18.2.0?dev *
│ │ │ ├── https://esm.sh/react@18.2.0?dev *
│ │ │ ├─┬ https://esm.sh/react-dom@18.2.0/server?dev (209B)
│ │ │ │ ├─┬ https://esm.sh/v90/@types/react-dom@18.0.6/server~.d.ts (4.1KB)
│ │ │ │ │ └─┬ https://esm.sh/v90/@types/react@18.0.15/index.d.ts (150.57KB)
│ │ │ │ │   ├── https://esm.sh/v90/@types/react@18.0.15/global.d.ts (7.21KB)
│ │ │ │ │   ├── https://esm.sh/v90/@types/prop-types@15.7.5/index.d.ts *
│ │ │ │ │   ├── https://esm.sh/v90/@types/scheduler@0.16.2/tracing.d.ts *
│ │ │ │ │   └── https://esm.sh/v90/csstype@3.1.0/index.d.ts *
│ │ │ │ ├─┬ https://esm.sh/v90/react-dom@18.2.0/deno/server.development.js (440.78KB)
│ │ │ │ │ └── https://esm.sh/v90/react@18.2.0/deno/react.development.js *
│ │ │ ├─┬ https://unpkg.com/react-waterfall-render@4.0.1/waterfallRender.mjs (4.7KB)
│ │ │ │ ├─┬ https://unpkg.com/react-waterfall-render@4.0.1/WaterfallRenderContext.mjs (1.01KB)
│ │ │ │ │ ├── https://unpkg.com/react-waterfall-render@4.0.1/waterfallRender.mjs *
│ │ │ │ │ └── https://esm.sh/react@18.2.0?dev *
│ │ │ │ └── https://esm.sh/react@18.2.0?dev *
│ │ │ ├── https://deno.land/std@0.151.0/http/http_status.ts *
│ │ │ ├─┬ https://deno.land/std@0.151.0/http/server.ts (22.94KB)
│ │ │ │ └─┬ https://deno.land/std@0.151.0/async/mod.ts (460B)
│ │ │ │   ├─┬ https://deno.land/std@0.151.0/async/abortable.ts (2KB)
│ │ │ │   │ └── https://deno.land/std@0.151.0/async/deferred.ts (1.49KB)
│ │ │ │   ├─┬ https://deno.land/std@0.151.0/async/deadline.ts (618B)
│ │ │ │   │ └── https://deno.land/std@0.151.0/async/deferred.ts *
│ │ │ │   ├── https://deno.land/std@0.151.0/async/debounce.ts (2.08KB)
│ │ │ │   ├── https://deno.land/std@0.151.0/async/deferred.ts *
│ │ │ │   ├── https://deno.land/std@0.151.0/async/delay.ts (827B)
│ │ │ │   ├─┬ https://deno.land/std@0.151.0/async/mux_async_iterator.ts (1.96KB)
│ │ │ │   │ └── https://deno.land/std@0.151.0/async/deferred.ts *
│ │ │ │   ├── https://deno.land/std@0.151.0/async/pool.ts (2.83KB)
│ │ │ │   └── https://deno.land/std@0.151.0/async/tee.ts (2.13KB)
│ │ │ └── https://deno.land/std@0.151.0/path/mod.ts *
│ │ └── https://esm.sh/react@18.2.0?dev *
│ ├── file:///Users/jaydenseric/Projects/ruck/scrollToHash.mjs (482B)
│ ├── file:///Users/jaydenseric/Projects/ruck/serve.mjs *
│ ├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
│ ├── https://unpkg.com/graphql-react@19.0.0/CacheContext.mjs *
│ ├─┬ https://unpkg.com/graphql-react@19.0.0/HydrationTimeStampContext.mjs (471B)
│ │ └── https://esm.sh/react@18.2.0?dev *
│ ├── https://unpkg.com/graphql-react@19.0.0/Loading.mjs *
│ ├── https://unpkg.com/graphql-react@19.0.0/LoadingContext.mjs *
│ ├── https://esm.sh/react@18.2.0?dev *
│ └── https://esm.sh/react@18.2.0?dev *
├─┬ file:///Users/jaydenseric/Projects/ruck/HeadContent.mjs (1.11KB)
│ ├── file:///Users/jaydenseric/Projects/ruck/HeadManager.mjs *
│ └── https://esm.sh/react@18.2.0?dev *
├── file:///Users/jaydenseric/Projects/ruck/HeadManager.mjs *
├── file:///Users/jaydenseric/Projects/ruck/createPseudoNode.mjs (3.05KB)
├── file:///Users/jaydenseric/Projects/ruck/serve.mjs *
├── https://unpkg.com/graphql-react@19.0.0/Cache.mjs *
├── https://unpkg.com/graphql-react@19.0.0/Loading.mjs *
├── https://esm.sh/react@18.2.0?dev *
└─┬ https://esm.sh/react-dom@18.2.0/client?dev (209B)
  ├─┬ https://esm.sh/v90/@types/react-dom@18.0.6/client~.d.ts (1.42KB)
  │ └── https://esm.sh/react@18.2.0?dev *
  ├─┬ https://esm.sh/v90/react-dom@18.2.0/deno/client.development.js (2.74KB)
  │ └─┬ https://esm.sh/v90/react-dom@18.2.0/deno/react-dom.development.js (869.51KB)
  │   ├── https://esm.sh/v90/react@18.2.0/deno/react.development.js *
  │   └── https://esm.sh/v90/scheduler@0.23.0/deno/scheduler.development.js (19.66KB)

Note these incorrectly both appear in the graph:

https://esm.sh/v90/@types/react@18.0.15/index.d.ts
https://esm.sh/v90/@types/react@18.0.17/index.d.ts

With demo.mjs:
// @ts-check

import "https://esm.sh/react@18.2.0?dev";
import "https://esm.sh/react-dom@18.2.0/server?dev";

Run:
deno check --remote demo.mjs

And note the errors:
Check file://[redacted]/demo.mjs
error: TS2300 [ERROR]: Duplicate identifier 'LibraryManagedAttributes'.
        type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
             ~~~~~~~~~~~~~~~~~~~~~~~~
    at https://esm.sh/v92/@types/react@18.0.18/index.d.ts:3131:14

    'LibraryManagedAttributes' was also declared here.
            type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
                 ~~~~~~~~~~~~~~~~~~~~~~~~
        at https://esm.sh/v92/@types/react@18.0.17/index.d.ts:3131:14

TS2300 [ERROR]: Duplicate identifier 'LibraryManagedAttributes'.
        type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
             ~~~~~~~~~~~~~~~~~~~~~~~~
    at https://esm.sh/v92/@types/react@18.0.17/index.d.ts:3131:14

    'LibraryManagedAttributes' was also declared here.
            type LibraryManagedAttributes<C, P> = C extends React.MemoExoticComponent<infer T> | React.LazyExoticComponent<infer T>
                 ~~~~~~~~~~~~~~~~~~~~~~~~
        at https://esm.sh/v92/@types/react@18.0.18/index.d.ts:3131:14

Found 2 errors.

If you run:
deno info demo.mjs

You can see that esm.sh is incorrectly loading multiple versions of @types/react, causing broken types:
local: [redacted]/demo.mjs
type: Mjs
dependencies: 12 unique (total 1.65MB)

file://[redacted]/demo.mjs (109B)
├─┬ https://esm.sh/react-dom@18.2.0/server?dev (209B)
│ ├─┬ https://esm.sh/v92/@types/react-dom@18.0.6/server~.d.ts (4.1KB)
│ │ └─┬ https://esm.sh/v92/@types/react@18.0.17/index.d.ts (150.57KB)
│ │   ├── https://esm.sh/v92/@types/react@18.0.17/global.d.ts (7.21KB)
│ │   ├── https://esm.sh/v92/@types/prop-types@15.7.5/index.d.ts (3.58KB)
│ │   ├── https://esm.sh/v92/@types/scheduler@0.16.2/tracing.d.ts (4.03KB)
│ │   └── https://esm.sh/v92/csstype@3.1.0/index.d.ts (851.41KB)
│ ├─┬ https://esm.sh/v92/react-dom@18.2.0/deno/server.development.js (440.8KB)
│ │ └── https://esm.sh/stable/react@18.2.0/deno/react.development.js (74.04KB)
└─┬ https://esm.sh/react@18.2.0?dev (194B)
  ├─┬ https://esm.sh/v92/@types/react@18.0.18/index.d.ts (150.57KB)
  │ ├── https://esm.sh/v92/@types/react@18.0.18/global.d.ts (7.21KB)
  │ ├── https://esm.sh/v92/@types/prop-types@15.7.5/index.d.ts *
  │ ├── https://esm.sh/v92/@types/scheduler@0.16.2/tracing.d.ts *
  │ └── https://esm.sh/v92/csstype@3.1.0/index.d.ts *
  ├── https://esm.sh/stable/react@18.2.0/deno/react.development.js *

I'm flabbergasted this is still problematic, am I the only human being trying to use React v18 with Deno and type safety for the past 4 months? Maybe I am 😢

try to clean the deno cache, v90 responses unexpected types that has been fixed in v91

The cache is clean; please just try the minimal reproduction yourself. You can also see this CI failure: https://github.com/jaydenseric/ruck/runs/8150593351?check_suite_focus=true

authors: ije jaydenseric jimisaacs


text:
Add tests for supported functionality

Because otherwise how would we now that we don't regress? 🤷♂

Closed in #8


text:
Pipe issues in v13

Example pipe:
import { DatePipe } from '@angular/common';
import { Inject, Injectable, LOCALE_ID, Pipe, PipeTransform } from '@angular/core';

@Injectable()
@Pipe({
  name: 'tijdstip'
})
export class TijdstipPipe extends DatePipe implements PipeTransform {

  constructor(@Inject(LOCALE_ID) locale: string) {
    super(locale);
  }

  transform(value: null | undefined): null;
  transform(value: null | undefined, inclusiefSeconden: boolean): null;
  transform(value: Date | string | number | undefined): string | null;
  transform(value: Date | string | number | undefined, inclusiefSeconden: boolean): string | null;
  transform(value: Date | string | number | null | undefined): string | null
  transform(value: Date | string | number | null | undefined, inclusiefSeconden?: boolean): string | null {
    return super.transform(
      value,
      inclusiefSeconden ? 'dd/MM/yyyy HH:mm:ss' :'dd/MM/yyyy HH:mm',
      undefined,
      'nl-BE'
    );
  }

}

Example module:
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { TijdstipPipe } from './tijdstip.pipe';
import { TimeagoCustomFormatter, TimeagoFormatter, TimeagoIntl, TimeagoModule } from 'ngx-timeago';

@NgModule({
  declarations: [
      TijdstipPipe,
      ....
      ],
     imports: [
       CommonModule,
       TimeagoModule.forChild({
       intl: {provide: TimeagoIntl, useClass: TimeAgoTranslation},
       formatter: { provide: TimeagoFormatter, useClass: TimeagoCustomFormatter }
     })],
     exports: [
         TijdstipPipe,
         ....,
         TimeagoModule
     ]
})
export class CorePipesModule {}

Testcase:
Fails with
Error: NG0302: The pipe 'tijdstip' could not be found in the 'AuditInfoComponent' component!. Find more at https://angular.io/errors/NG0302
when running a part in the test where it should trigger the Pipe.
The html for the component contains this: <span>{{info.date | tijdstip:true}}</span>
import { createComponentFactory, Spectator } from '@ngneat/spectator/jest';
import { CorePipesModule } from '@nx-workspace/pipes';
import 'html-validate/jest';
...
import { MockComponent, MockModule } from 'ng-mocks';

describe('AuditInfoComponent', () => {
  let component: AuditInfoComponent;
  let spectator: Spectator<AuditInfoComponent>

  const createComponent = createComponentFactory({
    component: AuditInfoComponent,
    imports: [
      MockModule(CorePipesModule)
    ]
  });

  beforeEach(() => {
    spectator = createComponent();
    component = spectator.component;
  });

   it('should create', () => {
    expect(component).toBeTruthy();
  });

  it('should contain valid html without user', () => {
      expect(spectator.element).toHTMLValidate();
    });
   ....

Originally posted by @SnakeSVx in https://github.com/ike18t/ng-mocks/issues/1427#issuecomment-1009893456

v13.0.0-alpha.5 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

v13.0.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.


text:
🛑 Uptime VF Bot is down

In 15c2233, Uptime VF Bot (https://uptime-discord-bot.nexter32.repl.co) was down:

HTTP code: 502
Response time: 10242 ms

Resolved: Uptime VF Bot is back up in fb7401e.


text:
Initial draft of the documentation

Describe the tool and the backup process, together with the configuration parameters.

Thank you!

authors: alexeyklyukin ikitiki


text:
AttributeError: 'NoneType' object has no attribute 'data'

when I ran your code, it spitted out the following:
..
[2017-03-17 20:15:21,067] Making new env: PongDeterministic-v3
[2017-03-17 20:15:21,075] Making new env: PongDeterministic-v3
Process Process-3:
Traceback (most recent call last):
File "/home/john/anaconda3/envs/th/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/home/john/anaconda3/envs/th/lib/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/home/john/dev/pytorch-a3c/train.py", line 24, in train
shared_param.grad.data = param.grad.data
AttributeError: 'NoneType' object has no attribute 'data'
Process Process-8:
...
...
File "/home/john/dev/pytorch-a3c/train.py", line 24, in train
shared_param.grad.data = param.grad.data
AttributeError: 'NoneType' object has no attribute 'data'
Time 00h 00m 01s, episode reward -21.0, episode length 764
...

In the end it looks like it's running.  Am I right?

Then, what is the cause the error messages ?
Many thanks !
(I am running this in conda env with python 3.5)

We have already fixed this problem. Pull recent code from the repo.

authors: dylanthomas ikostrikov


text:
CI & Deployment

[x] Переехать но актуальный .NET
[x] Запуск билда + тестов в CI на все PR/коммиты
[x] Сборка докер-образа на коммиты в master и загрузка его в Container Registry (на гх или в Я.Облако?)
[x] Написать docker-compose, который переварит Я.Облако
[x] Обновление ревизии контейнера в Я.Облаке после аппрува из гх
[ ] Прикрутить FluentBit, чтобы логи прорастали в Cloud Logging

Полный stateless с несколькими инстансами не планируется в обозримом будущем — надо будет переделывать блокировку пользователей.

Замечение: текущий workflow в гх не обновляет саму виртуалку, только загружает в Registry новый образ

repo: iliakonnov/AdventureBot


text:
Don't submit work to async worker if DAG is empty

Previously, when flushing the DAG, it was only checked inside the async worker whether the DAG size is actually zero. This can lead to a substantial amount of no-op tasks being queued in the worker, which can slow things down.
This PR changes this so that work is only enqueued if we are sure that there is work.

@hipSYCL-ci-bot test

repo: illuhad/hipSYCL


text:
Utilizing the GITHUB_ACTION env variable to differentiate between steps

Summary of PR changes
PR Requirements

[ ] For major, minor, or breaking changes, at least one of the commit messages contains the appropriate +semver: keywords.

See the Incrementing the Version section of the repository's README.md for more details.

[ ] The action code does not contain sensitive information.

NOTE: If the repo's workflow could not automatically update the README.md, it should be updated manually with the next version.  For javascript actions, if the repo's workflow could not automatically recompile the action it should also be updated manually as part of the PR.

I was able to confirm that these changes work in this build:

repo: im-open/process-cypress-test-results


text:
Convert screen offset to chart coordinates

Discussed in https://github.com/imaNNeoFighT/fl_chart/discussions/1135

Originally posted by KapitanPL September  3, 2022
This should be simple, yet I struggle with it.
How do I convert an offset in pixels to chart coordinates? (or the other way...)

Unfortunately, we do not support it at the moment.
We need to implement a way to do that.

Duplicate of #801

authors: KapitanPL imaNNeo


text:
Support unquoted attributes

if you have svgs with unquoted attributes such as:
xmlns="http://www.w3.org/2000/svg" width=20px height=20px
The error: Error in parsing SVG: Unquoted attribute value is emitted.
i created a plugin to temporary fix this:
https://www.npmjs.com/package/xml-fix-loader
{
  test: /\.svg$/,
  use: [
    { loader: 'file-loader' },
    { loader: 'xml-fix-loader' }
  ]
}

bug was also opened on svgo:
https://github.com/svg/svgo/issues/678

spam

https://github.com/imagemin/imagemin/issues/233
https://github.com/rpominov/svgo-loader/issues/9
https://github.com/Klathmon/imagemin-webpack-plugin/issues/25

not a spam, i just got deeper and deeper to dependencies of dependencies to solve it :P

authors: shinnn vzaidman

repo: imagemin/imagemin


text:
Remove unused insert_useparam and add_useparam from oslcomp

For a very long time now, we have not used the 'useparam' stuff on the oslc compiler side at all, instead doing it all as part of the runtime compilation and JIT. So remove the remaining clutter from liboslcomp.

LGTM

authors: fpsunflower lgritz

repo: imageworks/OpenShadingLanguage


text:
Remove useless nullptr check

Description
As #908 mentioned, I removed unnecessary nullptr check.
Tests

No
Checklist:

[x] I have read the contribution guidelines.
[x] I have previously submitted a Contributor License Agreement.
[x] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[x] My code follows the prevailing code style of this project.

LGTM, thanks! Merging.

authors: lgritz pjessesco


text:
limit SearchIndexer MatchCount

As a user of SearchIndexer I am concerned about memory usage if MatchCount is allowed to grow without bounds.  Provide a parameter to the user that enables them to select an upper limit on MatchCount for their application.

https://github.com/imagibee/Gigantor/pull/24

repo: imagibee/Gigantor


text:
CVE-2007-4559 Patch

Patching CVE-2007-4559
Hi, we are security researchers from the Advanced Research Center at Trellix. We have began a campaign to patch a widespread bug named CVE-2007-4559. CVE-2007-4559 is a 15 year old bug in the Python tarfile package. By using extract() or extractall() on a tarfile object without sanitizing input, a maliciously crafted .tar file could perform a directory path traversal attack. We found at least one unsantized extractall() in your codebase and are providing a patch for you via pull request. The patch essentially checks to see if all tarfile members will be extracted safely and throws an exception otherwise. We encourage you to use this patch or your own solution to secure against CVE-2007-4559. Further technical information about the vulnerability can be found in this blog.
If you have further questions you may contact us through this projects lead researcher Kasimir Schulz.

Thankyou

authors: TrellixVulnTeam taufiksu

repo: imboost/ETTER-Creator