text:
API - Configuration

Stub.
Feel free to comment here if you have ideas on what this guide should cover. Link to potential resources too.
This is to stub and rewrite the existing page

Can I take a stab at this one? I already started playing around with this when I was doing the documentation mockup. Might need a some advice on certain sections but at this point I'm familiar with and have used most of the configuration options...

Sure, that would be great.

Ok great, I'll start this week.

@bebraw while working on this section, I noticed that our markdown parser doesn't accept:
... [link][1] ...

[1]: http://example.com

Is this intentional? I find this feature super helpful when adding long external links... it doesn't bother me as much to inline the in-site links.

Yeah. Footnotes aren't a good idea on the web. Hard to lay out, bad UX. It's better to use T> and W> for secondary information.

I don't mean actually having the links at the bottom of the page, I just mean separating out long links to make the markdown more readable. What the user sees is unchanged by this, i.e. [link][1] and [link](http://example.com/path/to/my/page) yield the same result when used in markdown but the first makes paragraphs containing multiple links much easier to read and edit.

Ah, like that. If marked doesn't support that syntax by default, then you'll probably need a syntax extension for that purpose.

Ok I'll try to look into that.

Looks like a bug which isn't fully addressed yet (although that issue says it was in 0.3.2).

Time to close this one given there's an entire section on configuration now.

authors: bebraw gregvenech


text:
Fix typo in migration guide

I think it currently says the opposite of what it means because of a one letter typo - figured it would quicker to just submit a PR than an issue 🚀

Oh yeah, that's important

Cool, CLA signed!

Thanks

source: gharchive/pull-request

authors: JamesHenry sokra

license_type: permissive

license_source: github-api


text:
Dead code eliminator for constant expression doesn't handle "return early" if statements

Bug report
What is the current behavior?
Dead code eliminator for constant expression doesn't handle "return early" if statements.
If the current behavior is a bug, please provide the steps to reproduce.

git clone git@gist.github.com:38b17bb4757ddab9f65efc3bd4e3c083.git
npm install
npm run build:dev

After run you can see that a new chunk was created and the expression (await import('./module')).getSomething(); is parsed by webpack.
async function main() {
	if (true) { // it might be a result of expression with `DefinePlugin`
		return;
	} else {
		// this expression is NOT parsed and the new chunk is NOT created
		// (await import('./module')).getSomething();
	}

	// this expression is parsed and the new chunk is created
	(await import('./module')).getSomething();
}

But if you comment this line and uncomment this one a chunk will not be created.

From https://github.com/webpack/webpack/issues/16672
However, this case is just a simple example of what can pre dead code elimination can achieve.
There are still a lot of scenarios not covered.

Per File level optimization, like if-return.

export const treeShakingTestAsync = async () => {
    console.log('treeShakingTestAsync');

    const { foo } = await import(/* webpackChunkName: "bundle_pc" */ './pc');
    console.log(foo);
    // Code wont't be reached after if_return, but still get to be bundled, and Baz get to be bundled as well, due to splitchunk.
    if (false) {
        return;
    }
    const { Baz } = await import(/* webpackChunkName: "bundle_mobile" */'./mobile');
    console.log(Baz);
};

unused exports

export const treeShakingTestAsync = async () => {
    console.log('treeShakingTestAsync');

    const { foo } = await import(/* webpackChunkName: "bundle_pc" */ './pc');
    console.log(foo);
};

export const unusedExport = async () => {
    console.log('unusedExport');
    // this never be refered from entry.
    const { Baz } = await import(/* webpackChunkName: "bundle_mobile" */ './mobile');
    console.log(Baz);
};

What is the expected behavior?
No chunk created in both cases since they both are "inaccessible".
I'd say that this pattern (return early) is quite common so it was surprised that it is not handled so far.
Of course it might be easily "fixed" with a workaround by placing the code to else statement, but I think it would be better to have handling of this in webpack.
Other relevant information:
webpack version:  5.54.0
Node.js version: v14.16.0
Operating System: win10 x64
Additional tools: none

bump

Bump. Fixing this issue can save a lot of build time and memory due to large dead chunks being eliminated.

Shouldn't the issue be reopened?

bump

Bump?

Bump pls

I'd love to keep this issue tracked, as this would be perfect to tackle optional dependencies dynamic import and the tree-shakability of related chunks.
Is it possible to achieve this with other configuration that we're unaware of?

Is there a fix in progress? Meet the same issue. And chunk will not be created if you remove the await operator before the async chunk. It looks to me that compilation of async/await syntax hoists dependency collection or breaks something else.

@chestnutchen you can try https://github.com/webpack/webpack/pull/14357 and put feedback here

source: gharchive/issue

authors: Jeronimotio alexander-akait chestnutchen rnarcos timocov

repo: webpack/webpack

license: MIT


text:
Can't set export var variable use webpack2 ?

I'm submitting a bug report
Webpack version:
2.x
Please tell us about your environment:
OSX 10.x
Current behavior:
it is different that  webpack2 module  resolving with babel. for example
foo.js
export let uid = 0

bar.js
import { uid } from 'a.js'

uid++

when use babel it is ok. but webpack2 tell me Cannot set property a of # which has only a getter(…)
Expected/desired behavior:
it should be the same behavior with babel

If it works with babel, it's a bug in babel. ES6 exports are immutable from outside.

yes. i mistake

authors: Kovensky agileago


text:
Webpack 2 - eval can cause bug with process.env

Do you want to request a feature or report a bug?
bug

What is the current behavior?
webpack transform process.env to a real object like
{
  "NODE_ENV": "development"
}

but when a module which use process.env in this way

process.env.DEBUG = false

it will cause a syntax error: unexpected token : , ie: visionmedia/debug
function save(namespaces) {
  if (null == namespaces) {
    // If you set a process.env field to null or undefined, it gets cast to the
    // string 'null' or 'undefined'. Just delete instead.
    delete process.env.DEBUG;
  } else {
    process.env.DEBUG = namespaces;
  }
}

because webpack use eval to load this module, and the code above will be transformed to
eval("{\"NODE_ENV\": \"development\"}.DEBUG = namespace")

but in this situation, {\"NODE_ENV\": \"development\"} will be a block, but not a Object, the correct way is
eval("({\"NODE_ENV\": \"development\"}).DEBUG = namespace")

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

webpack: 2.1.0-beta.28
Node.js:  v7.2.1
OS:  macOS Sierra 10.12.2 (16C67)
Chrome Canary: 57.0.2972.0

maybe it can be solved by this way
function stringifyObj(obj) {
  return "({" + Object.keys(obj).map((key) => {
    let code = obj[key];
    return JSON.stringify(key) + ":" + toCode(code);
  }).join(",") + "})";
}

code can be found in DefinePlugin.js

As workaround use:
new DefinePlugin({
  "process.env.NODE_ENV": JSON.stringify("development")
});

or
new DefinePlugin({
  "process.env": {
    "NODE_ENV": JSON.stringify("development"),
    "DEBUG": "window.envDEBUG"
  }
});

Do you want to send a PR?

It's my pleasure

authors: kagawagao sokra


text:
Electron 5.0 beta, electron-renderer breaks on require

Bug report
What is the current behavior?
Using with electron 5.0.0-beta.4 you get this error, "Uncaught ReferenceError: require is not defined":
.
"external" links to:

which comes from:

which ultimately comes from webpack-dev-server somewhere:

If the current behavior is a bug, please provide the steps to reproduce.
Just loading electron 5 with a simple webpack app likely does it. Is there some easy place to do this online or do I need to create a repo?
Other relevant information:
webpack version:  4.29.3
Node.js version: 10
Operating System: Mojave

@natew Please create minimum reproducible test repo

Turns out its due to this: https://github.com/electron/electron/issues/17208#event-2176872582

authors: evilebottnawi natew


text:
Move CLI to webpack-cli repository

Moves the CLI content to webpack/webpack-cli. Awaiting for publish of webpack-cli to install the cli

removing bin/convert-argv.js breaks the webpack-dev-server CLI. Is this handled by webpack-cli too?

Yepps

How will this be handled?

I checked the devServer internals earlier today/yesterday and we aren't making changes that break dev-Server. If we decide to move config-yargs we'll send PR's to dev-server accordingly

As for the failing test cases, we'll have to move them to the CLI repo.
TODO:

[ ] Move tests

[ ] Update Dependency

[ ] Remove Shebang at webpack-cli

Can we create a PR to webpack-dev-server instead of reverting this?

Nothing to revert, there's another file path that needs change; 'config-yags'. Can submit a PR later

Picking this up at friday.

@sokra This is ready. Test failing due:
https://github.com/facebook/jscodeshift/issues/197#event-1099223035
https://github.com/facebook/jscodeshift/pull/198
We're planning to revamp the binTestCases to something like:
https://github.com/yarnpkg/yarn/tree/master/end_to_end_tests
Anything that needs to be changed?

@sokra

authors: ev1stensberg okonet sokra


text:
docs: update entry/project defaults with production mode

Defaults that appear in docs are not exactly the defaults used.
project defaults in docs do not include the final ! . Hence readers may understand all files are not production files by default.
Updates defaults found in docs to reflect the actual defaults used by the implementation.

Also sorts index,cli,main to match implementation to be nitty :P

Btw, didn't find any place in docs saying that all project files are considered production files by default. Should that be added somewhere? Or it's this new defaults update enough maybe?

Thanks, David! Fully on board with the changes.

Btw, didn't find any place in docs saying that all project files are considered production files by default. Should that be added somewhere? Or it's this new defaults update enough maybe?

Good point, I'll add it to the production mode page shortly.

:rocket: This pull request is included in v5.38.4. See Release 5.38.4 for release notes.
Using Knip in a commercial project? Please consider becoming a sponsor.

repo: webpro-nl/knip

license: ISC


text:
Unused exports are never detected with Next.js plugin in app router projects

https://github.com/webpro/knip/blob/838175cca9b6182cb8500ebf79a134167fd23b4e/src/plugins/next/index.ts#L16
When using the app router (where source code is in app), the only entrypoints possible are

instrumentation.{js,ts}
middleware.{js,ts}
app/{manifest,sitemap,robots}.{js,ts}
app/**/{opengraph,twitter}-image.{js,ts,tsx}, except for when any directory in the path starts with a _
app/**/{icon,apple-icon}-image.{js,ts,tsx}, except for when any directory in the path starts with a _
app/**/{page,layout,error,not-found,template,loading}.{jsx,tsx}, except for when any directory in the path starts with a _
app/**/route.{js,ts}, except for when any directory in the path starts with a _
All of those paths, but prefixed with src/

Right now the entrypoints in the Next.js plugin are effectively adding every single file in app/** as an entrypoint, which prevents Knip from catching any unused exports

Thanks @jonahsnider. Yeah that isn't great. Didn't use that app dir myself, I had no idea tbh.

Can you come up with globs that also take the _ exclusions into account?
Can you open a pull request?

Just saying, you can override the next config locally. Obviously would love to welcome improvements into Knip for everyone to enjoy.

Can you come up with globs that also take the _ exclusions into account?

Maybe? I feel like a glob that matches that would be very inefficient to match against. It's also a semi niche use case, so I think it'd be fine to just not account for that.

Can you open a pull request?

Yes

Just saying, you can override the next config locally.

That's what I have done in my project for now :)

authors: jonahsnider webpro

repo: webpro/knip


text:
undo card swipe need help

is there any way to undo card swipe

Check this:
https://github.com/webraptor/react-native-deck-swiper#swipe-back-to-previous-card-props

I'm assuming @Lorakus's answer is what you were looking for @xXCHINNAXx. If not, please reopen the issue.

authors: Lorakus webraptor xXCHINNAXx

repo: webraptor/react-native-deck-swiper


text:
Blocking 3rd-party cookies breaks webrecorder.io two-domain system

Currently, webrecorder.io serves content from separate domain (wbrc.io) for security and robustness reasons.
If browsers block 3rd-party cookies, this prevents content pages from loading.
A few workarounds:

Allow anonymous, public replay w/o any cookies
For logged in browsing, or recording, warn if 3rd party cookies are disabled (eg. suggest using remote browsers?).

Using a subdomain now to avoid this issue!

repo: webrecorder/webrecorder

license_source: bigquery


text:
api期权交易

啥时候能支持api期权交易，这都大半年没更新

OK 我们在排期中；尽快支持；谢谢您的使用

repo: webull-inc/openapi-java-sdk


text:
🛑 The Good Cyclist is down

In 17f4fc4, The Good Cyclist (https://thegoodcyclist.iwview.com) was down:

HTTP code: 521
Response time: 107 ms

Resolved: The Good Cyclist is back up in 912ef85 after 423 days, 22 hours, 52 minutes.

repo: webworldview/uptime


text:
🛑 The Good Cyclist is down

In 7cd6e4b, The Good Cyclist (https://thegoodcyclist.iwview.com) was down:

HTTP code: 521
Response time: 143 ms

Resolved: The Good Cyclist is back up in ed43c17 after 1 hour, 5 minutes.


text:
🛑 Jeff with Susan is down

In b1833f5, Jeff with Susan (https://www.jeffwithsusan.com) was down:

HTTP code: 521
Response time: 158 ms

Resolved: Jeff with Susan is back up in bf5ce9e after 8 minutes.


text:
🛑 Johnsondata is down

In 02d4068, Johnsondata (https://www.johnsondata.com.au) was down:

HTTP code: 500
Response time: 1499 ms

Resolved: Johnsondata is back up in bbd831a after 9 minutes.


text:
请教如何解决 TextEncoder is not defined 的问题

我的 unity 小游戏使用 BestHttp 作为网络接口请求库，这个库里面请求 http 接口会使用到 TextEncoder，这个东西在微信开发者工具上面是运行正常的，但是手机上面的微信小游戏好像不支持这个 TextEncoder 会报错。请教一下有没有什么办法可以解决这个问题？
BestHttp_WebRequest.jslib 里面相关的代码如下
        SendTextToCSharpSide: function(request, onbuffer, text)
        {
            const encoder = new TextEncoder();
            const byteArray = encoder.encode(text);

            const array = Module['dynCall_iii'](_best_http_request_bridge_global.onallocbuffer, request, byteArray.length);

            HEAPU8.set(byteArray, array);

            Module['dynCall_viii'](onbuffer, request, array, byteArray.length);
        },

报错的提示如下

chatgpt告诉我加这段代码就行了
if (typeof TextEncoder === "undefined") {
    TextEncoder=function(){};
    TextEncoder.prototype.encode = function encode(str) {
        var result;
        if ('undefined' === typeof Uint8Array) {
            result = str.split('').map(function (char) {
                return char.charCodeAt(0);
            });
        } else {
            result = new Uint8Array(str.length);
            str.split('').forEach(function (char, index) {
                result[index] = char.charCodeAt(0);
            });
        }
        return result;
    };
}

问题已解决，关闭了


text:
trouble with create project

Makes sure these boxes are checked befor submitting your issue - thank you!
node 10
npm 6

weex -v
   v1.3.8
 - weexpack : v1.2.5
 - weex-builder : v0.4.0
 - weex-previewer : v1.5.1

win.10
no error
but weex create myProj canceled after write proj name.
He did not ask description, just canceled process after writing the project name and pressing the Enter button.

@cybermerlin I need more detail log., please run weex create myProj --verbose.

nothing more
btw
I try with set DEBUG=* n nothing -__-

weexpack create myproj give me same result

@cybermerlin The package name was no longer support contain capital letters, you need to use weex create myproj or weex create my-proj to create your project.

I did but the trouble is not resolved;

@cybermerlin try to use an admin shell or reinstall weexpcak using weex remove weexpack && weex create my-proj, I test the command on my windows pc, it works fine.

nothing changed
r:\>weex remove weexpack
21:15:03 : Remove package `weexpack` successful...

r:\>weex create my-proj
This command need to install weexpack. Installing...
? Project name my-proj
? Project description (A weex project)
r:\>

I think I'll use RN instead. to be better decision

@cybermerlin ok, and I think this is a windows permission issue, I will try to solve this problem in the subsequent version.

@erha19
I did run with admin rights n nothing changed.
I wanna help ya to make better this project, just say what I to do.

@cybermerlin try to downgrade your node version to version below 8.0, I find the node v8.0 can work fine, but the node v10.0 can't work, there should be some breaking changed on node or other npm packages, I'm trying to solve it.

wow, ya so cool man
thx

super mario
bonus level

repo: weexteam/weex-toolkit

license: mit


text:
你好，请问下配置lemonsqueezy的webhooks以后，每次付款完毕都收不到这个webook，从lemonsqueezy平台看，报了一个401

我现在使用的是github的codespace进行开发，测试环境中，不知道是什么原因？难道要把项目部署到vercel上面才能收到这个webhook吗？我配置的webhook地址就像这样 https://super-duper-carnival-jw75vrppxf59xrb-3001.app.github.dev/api/payment/webhook

401是你环境变量置错了吧

我觉该配置的都配置了呢 是哪个环境变量呢

https://super-duper-carnival-jw75vrppxf59xrb-3001.app.github.dev 浏览器直接输入这个地址能打开页面么？或者用postman请求往https://super-duper-carnival-jw75vrppxf59xrb-3001.app.github.dev/api/payment/webhook 发一个请求看看能不能收到消息，如果也收不到，那就是webhook地址问题。建议本地直接用vscode自带的穿透工具，看这篇最末尾：https://weijunext.com/article/port-forwarding

那个地址我改了一些字符所以直接点是打不开的，刚刚用postman请求还是401

用vscode的透传地址，console.log("webhook")是不是放在route.ts api的最顶部？先确认有没有进入再排查问题。
postman分别往透传地址的api端口和 http://localhost:xxxx/api/payment/webhook 发请求，不用考虑真实的参数，也不用关心返回，就看api入口最顶部的console.log("webhook")打印了没。

repo: weijunext/smart-excel-ai


text:
关于是否使用关键帧生成gt

非常感谢你们的开源工作，我在使用你们提供的生成自己gt（不适用语义标签）的代码时，发现物体拖得比较长（有运动拖影）

我使用了扫描频率为20hz的点云数据，前后两帧之间间隔为0.1s（只有关键帧），将10帧数据拼接在一起。请问，这个问题是否是因为我只使用了关键帧（两帧间隔过长）导致的（有关注到论文提及也使用了非关键帧数据）。期待您的解答，谢谢！

物体坐标在lidar坐标系下的顺序为xyzlwh；很抱歉犯了低级错误。
再次感谢作者的开源工作！

repo: weiyithu/SurroundOcc


text:
improve logging for (premis) export in misconfigured project

Currently the export fails in case SDB and OBJECTS filegroups are configured. This is logged to a logfile/cloudwatch.
Additionally this should be sent to the process log to be easily visible for users.

:+1:

repo: wellcometrust/workflow


text:
Create ".editorconfig" inside "public_html" folder for HTML5 projects

Click on your HTML5 project root and select "File" - "New File" - "Other" - "EditorConfig File". If you do that, a new .editorconfig file will be created inside your project directory. Unfortunately you won't see it in your project tree because for HTML5 projects only files within "public_html" will be listed so we should create the file there.

Won't be fixed. The .editorconfig files can be seen when setting the following regex in Options - Miscellaneous  - Files - Files Ignored by IDE - Ignored Files Pattern:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess|editorconfig|jshintrc|DS_Store|gitattributes|gitignore$|.*\.yml$).*$

repo: welovecoding/editorconfig-netbeans


text:
Support for relative paths and line ranges in remote_text shortcode

Feature Request
Summary
The remote_text shortcode is insanely useful, because I prefer having a source file with code and not copy it into the markdown. However, I did not find a way to use the shortcode with a relative path, I have to use it like

```python
{{ remote_text(src="/content/blog/article_name/code_file.py") }}
```

Instead, I would like to be able to write

```python
{{ remote_text(src="code_file.py") }}
```

Ideally I could do something like:

```python
{{ remote_text(src="../../some_location/code_file.py" start=10 end=20) }}
```

as is supported (with some pretty weird syntax) by e.g. pymdown.extensions for mkdocs.
Motivation
The relative path feature would make renaming the article/its directory much easier and less error-prone. I tend to colocate the source files with more complex articles, and I tend to rename the article multiple times before its done (I follow a YYYY-MM-DD-article-name-slug directory naming scheme to have a chronological order, and I often need to e.g. fix up the date).
The line range feature would be super useful both for reusing text sections on different pages, or to have different parts of the source file added in an article with paragraphs of text in between with explanations etc.

Unrelated to the issue, just wanted to say thanks for creating this awesome template! In the recent updates tabi and zola got all the features that I had to hack in before with a bunch of workarounds and copy-pasted snippets, but recently I updated to the most recent version and was happy to see that I do not need any custom hacks anymore, everything is configurable to my needs without much effort :)

Hey @apirogov!
I've added support for relative paths in #398 and support for line ranges in #399. Let me know if you encounter any issues!

Thanks for the kind words. I'm happy to hear tabi works for you~
In the future, feel free to share your hacks as PRs or feature requests! Even if incomplete; I'm sure we could make use of them.

Perfect, thanks a lot! :)

authors: apirogov welpo

repo: welpo/tabi


text:
Add support for reading .pyc files

Fixes
Fixes #563 by @dhruvkb
Description
This PR adds support for reading settings from .pyc files. It does so by using marshal.load instead of compile when the file extension is .pyc.
To verify that this works, it intentionally compiles an existing .py file into its .pyc before running the tests, checks that the contents of the file are still read into settings as expected, and then restores the .py file back.

I've started working on the PR but I would need some help increasing the test coverage. Even with the added tests, it's currently at 96.34% (with a perplexing reverse line number range in the missing column).
---------- coverage: platform darwin, python 3.12.7-final-0 ----------
Name                      Stmts   Miss Branch BrPart  Cover   Missing
---------------------------------------------------------------------
split_settings/tools.py      58      1     24      2    96%   127, 131->115
---------------------------------------------------------------------
TOTAL                        58      1     24      2    96%

The coverage is also a 100% now as some unnecessary (and unreachable) code paths were removed!
It's still in draft because point 1 of my issue remains to be addressed in a clean idiomatic way. I am thinking of defining a new wrapper (over tuple) similar to how _Optional and _Compiled wrap str to define a "chain" where each successive member is looked for till one is found and an error is raised if no member in the chain was found.

@sobolevn I have been thinking more about the compiled() pattern that you suggested in this review comment and how that would work with wildcards.
Building on the example in the README.md, How would a wildcard like include('components/my_app/*.py*') (that can match both .py and .pyc) be supported?

I don't think that it is safe to include both source and compiled in wildcards. I would suggest to only support explicit compiled files.

So would a wildcard like this explicitly exclude matching .pyc files? Would we filter the output of the glob() function?

Yes, we should raise an error when .pyc file matches a glob

Okay, so there are a few issues with the docs that I will look into in a bit. I have to write some new docs about the additions here anyway.
But does the code approach taken here look good to you @sobolevn? I also added a bunch of test cases for all supported nesting of compiled, optional and one_of.

I am going to have to bail on this PR.

I stopped compiling the application so the original motivation for supporting .pyc files is my app is no longer applicable. Also I feel like this was a pretty niche request which makes it harder to justify such drastic changes to the code.
OneOf would have been essential to support a .py file with a fallback to the compiled .pyc of the same file without having to make both entries optional (and lose the the guarantee that exactly one of .py or .pyc would be included).

I'm really sorry that I could not complete this, but deepest thanks for your time and your continuous advice on improving the code. It has been incredibly helpful.
Additionally, please feel free to close #563 if you too feel like it is adds complexity with little utility.

THANK YOU FOR YOUR WORK 👏
I had a huge fun reviewing this PR. Sad, that this won't be merged.

authors: dhruvkb sobolevn

repo: wemake-services/django-split-settings


text:
关于报错信息

我在使用拦截器的时候，发现报错信息只有一个status 是可用的   我在测试中遇到过 只返回过status 0 的问题，想询问下 ，这一块的处理如何自定义呢？我想能够得到服务器返回的整个body的内容？

请先查看文档中“错误处理”部分内容，0代表超时
若是服务器发生错误时，err对象会有一个message属性，对应的是xhr.statusText, 如404，大多数服务器会将statusText 设为“Not find”, 但这并非标准，有些服务器并不会设置statusText，此时err.message就为空
不建议API在http返回错误码的时候（如404、500）时再返回内容
如果非要在http 犯回错误码时获取body的内容。你可以使用如下代码：

     var request=fly.get("xxx")
     request.then(d=>{}).catch(e=>{
       //打印出body内容
       console.log(request.engine.responseText)
     })

注意：fly在发起请求后返回的promise对象中会扩展一个 engine 属性，代表当前的xmlHttpRequest对象，但此属性不具有传递性，所以你不能在调用 catch 或 then 后再获取 engine.

authors: hainuo wendux

repo: wendux/fly


text:
一个问题咨询

你好，我最近在写一些新的规则，举例一个修改：
file: WeTextProcessing/tn/chinese/rules/fraction.py
"""
def build_verbalizer(self):
denominator = delete('denominator: "') + self.SIGMA + delete('" ')
numerator = delete('numerator: "') + self.SIGMA + delete('"')
verbalizer = denominator + insert('分之') + numerator    ===修改成===>   verbalizer = numerator + insert('分之') + denominator
self.verbalizer = self.delete_tokens(verbalizer)
"""
这类顺序变换会引起报错，请问下原因，万分感谢！

你好，我最近在写一些新的规则，举例一个修改： file: WeTextProcessing/tn/chinese/rules/fraction.py
""" def build_verbalizer(self): denominator = delete('denominator: "') + self.SIGMA + delete('" ') numerator = delete('numerator: "') + self.SIGMA + delete('"') verbalizer = denominator + insert('分之') + numerator ===修改成===> verbalizer = numerator + insert('分之') + denominator self.verbalizer = self.delete_tokens(verbalizer) """ 这类顺序变换会引起报错，请问下原因，万分感谢！

token_parser.py 是需要按照原来的规则解析的。

你好，我最近在写一些新的规则，举例一个修改： file: WeTextProcessing/tn/chinese/rules/fraction.py
""" def build_verbalizer(self): denominator = delete('denominator: "') + self.SIGMA + delete('" ') numerator = delete('numerator: "') + self.SIGMA + delete('"') verbalizer = denominator + insert('分之') + numerator ===修改成===> verbalizer = numerator + insert('分之') + denominator self.verbalizer = self.delete_tokens(verbalizer) """ 这类顺序变换会引起报错，请问下原因，万分感谢！

token_parser.py 是需要按照原来的规则解析的。需要给出具体的错误才好分析

ERROR: StringFstToOutputLabels: Invalid start state
Traceback (most recent call last):
File "run.py", line 6, in
normalizer.normalize("1/3")
File "./src/WeTextProcessing/tn/processor.py", line 130, in normalize
return self.verbalize(self.tag(input))
File "./src/WeTextProcessing/tn/processor.py", line 127, in verbalize
return shortestpath(lattice, nshortest=1, unique=True).string()
File "extensions/_pynini.pyx", line 462, in _pynini.Fst.string
File "extensions/_pynini.pyx", line 507, in _pynini.Fst.string
_pywrapfst.FstOpError: Operation failed
具体报错错误信息如上。谢谢

错误表示 verbalizer 无法解析你给的输入（即 tagger 的输出）

大佬，如果我现在需要修改verbalizer的规则：在./tn/chinese/rules/fraction.py， verbalizer = denominator + insert('分之') + numerator 需要把 “denominator” 和 "numerator" 对调位置，其他代码中我应该修改什么位置才能保证链路跑通

改这行代码中分子和分母的顺序：https://github.com/wenet-e2e/WeTextProcessing/blob/790132c5f708fedc10c6929c22e389e7f371e4c4/tn/token_parser.py#L20

大佬，如果我现在需要修改verbalizer的规则：在./tn/chinese/rules/fraction.py， verbalizer = denominator + insert('分之') + numerator 需要把 “denominator” 和 "numerator" 对调位置，其他代码中我应该修改什么位置才能保证链路跑通

改这行代码中分子和分母的顺序：
https://github.com/wenet-e2e/WeTextProcessing/blob/790132c5f708fedc10c6929c22e389e7f371e4c4/tn/token_parser.py#L20

这个点我之前就修改过，一样的报错...

你先打印 tagger 的输出和 reorder 的输出

你先打印 tagger 的输出和 reorder 的输出

tagger:     'fraction { numerator: "三" denominator: "一" } char { value: "的" } char { value: "人" }'
reorder:    'fraction { numerator: "三" denominator: "一" } char { value: "的" } char { value: "人" }'
ps 代码的改动点就 WeTextProcessing/tn/chinese/rules/fraction.py 和 WeTextProcessing/tn/token_parser.py 的两处

你 reorder 的输出是 numerator 在前，但是你 verbalizer 先解析 denominator，所以就报错了。

你 reorder 的输出是 numerator 在前，但是你 verbalizer 先解析 denominator，所以就报错了。

verbalizer的解析顺序应该是在tn/chinese/rules/fraction.py定义的吧，目前顺序就是verbalizer = numerator + insert('XX') + denominator  ；莫非还有其他地方影响这个顺序

注意空格的处理：
denominator = delete('denominator: "') + self.SIGMA + delete('" ')
numerator = delete('numerator: "') + self.SIGMA + delete('"')

改成：
denominator = delete('denominator: "') + self.SIGMA + delete('"')
numerator = delete('numerator: "') + self.SIGMA + delete('" ')

感谢^_^  ...

authors: pengzhendong skywuxuan


text:
DNSimple API v2

This branch is for development of the API client against the DNSimple API v2.

This is not yet ready for merging, just putting it up here so others may follow along with V2 API work.

Closing this PR as the branch will be merged soon.

authors: aeden weppos

repo: weppos/go-dnsimple


text:
Duplicate date 27th October 2024

There is a duplicate of October 27. 2025.
I've verified it at https://werner-scholtz.github.io/kalender/ in Month and Multi Week view.
What i have seen so far:

double; once with 00:00 and once with 23:00

days after 27. have time 23:00 instead of 00:00
events added to a day with 23:00 will cause an exception in my project
on this day daylight saving time changes from CEST/MESZ to CET/MEZ
haven't seen any other day duplicates so far
the exception comes from here: https://github.com/werner-scholtz/kalender/blob/50043322a49ade38194ae9c477c5691bcb697294/lib/src/components/layout_delegates/multi_day_event_group_layout.dart#L62

flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (5 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

pubspec.yaml
name: name
description: "description"
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
  sdk: ^3.5.1

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.8
  provider: ^6.1.2
  path_provider: ^2.1.4
  uuid: ^4.5.1
  datetime_picker_formfield_new: ^2.1.0

  intl: any
  sqflite: ^2.4.0
  path: ^1.9.0
  share_plus: ^10.0.2
  flutter_archive: ^6.0.3
  file_picker: ^8.1.2
  open_file: ^3.5.8
  awesome_notifications: ^0.9.3+1
  flutter_localizations:
    sdk: flutter
  #flutter_carousel_widget: ^3.0.1
  url_launcher: ^6.3.1
  mime: ^1.0.6
  io: ^1.0.4
  image_picker: ^1.1.2
  flutter_colorpicker: ^1.1.0
  flutter_oss_licenses: ^3.0.2
  photo_view: ^0.15.0
  package_info: ^2.0.2
  kalender: ^0.4.1

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^5.0.0

flutter:
  generate: true
  uses-material-design: true

The cause seems to be in
https://github.com/werner-scholtz/kalender/blob/50043322a49ade38194ae9c477c5691bcb697294/lib/src/extensions.dart#L23-L51
I assume there is a problem with DateTime.add over daylight saving time.
Example:

I think i found the cause and a possible solution.
The cause seems to be that DateTime.add(Duration(days: i)) adds i*secondsPerDay seconds instead just a day.
Using DateTime(year, month, day+i)  incremets the day directly. It also works across months and years.
For example DateTime(2024,12,31+1) will result in 2025.01.01.
https://dartpad.dev/?id=2aa8b0fa0e3dda67af02fca9000f2344
void main() {
  DateTime start = DateTime(2024,10,27);
  DateTime end = DateTime(2024,11,2);
  List<DateTime> dates = [];
  int diff = start.difference(end).inDays.abs();
  for(int i=0;i<diff;i++){
    dates.add(DateTime(start.year,start.month,start.day+i));
  }

  print(dates.join('\n'));
}

created a pull request to solve this.
https://github.com/werner-scholtz/kalender/pull/94

repo: werner-scholtz/kalender


text:
Lostfilm Can't login: Unknown

А больше нечего в логах и нету.

такая же проблема, запущен в докере

repo: werwolfby/monitorrent

license: WTFPL


text:
Request: Support MongoDB Server 5.x/6.x

Informations
Is your feature request related to a problem? Please describe.

MongoDB 4.4 will reach its EOL on February 2024. (1 year left)
Some providers already dropped support for 4.x (e.g. https://github.com/bitnami/containers/commit/92e06b062e934e8cb9d00b993af06f96e0299188)

Describe the solution you'd like
It's better to add support for MongoDB 5.x/6.x to GROWI.

@shield-9 Now GROWI v6.1 support 5.x/6.x

repo: weseek/growi


text:
Allow multiple filters?

This is exactly what I need, but would love to have multiple filters.
I'm basically trying to get different ideas from Todoist into Obsidian as text.

Thanks for filing! I'm planning to implement it today!
I'm thinking of doing this by allowing users to have multiple keywords configured. E.g., you could have a keyword called @@TODOIST_WORK_FILTER@@ and another called @@TODOIST_PERSONAL_FILTER@@, each with its own query definition.
Does this sound like what you'd want?

Perfect!

Done! Once you update your plugin, it should be working. Let me know if there's any problems!

repo: wesmoncrief/obsidian-todoist-text


text:
Add CD to deploy the project to a cloud server

The goal is to use CD to automatically deploy the project to the server.
Task

Build and Push Docker Image to Server
Connect to the Cloud Server
Run the newly pulled image using scripts

deadline 10.27


text:
the problem of the OS_CORE.C file

in the os_core.c, the line 1919, usage  = 100 - (INT8S)(OSIdleCtrRun / OSIdleCtrMax);
OSCPUUsage = 100 *(1- OSIdleCtr / OSIdleCtrMax)   Isn't that the formula you provided?

The reason for this discrepancy is that OSIdleCtrMax is divided by 100 earlier in the function. If you account for this, the expressions are equivalent.


text:
Bug : picture edited on iOS localy not seen edited in the picker !

Hello again !
We found a bug while using the app :
on iOS, when you edit a picture in the iOS image editor, the picture is seen croped etc. in the iOS gallery, but not in the image_picker gallery.
Tell me f you need more info for the troubleshooting.
Thanks again for the lib and your time !

Perhaps a bit more explanation of what you are seeing and what expect too se would help.
The advance_image_picker will not update images you edit in the image picker to the device media photo/gallery. It creates temp edited cropped images from photos taken or selected from gallery. The edits are applied to temp copies that are returned. If you would then like to save these edited/cropped/stickered  image back to the gallery, your app would have to do so or whatever else you want to do with the returned images.
If on the other hand (I think you mean this case) you are using an iOS device and its native image editor, to edit images in the device gallery, and those edits are not seen in the advance_image_picker gallery's media library, then there might indeed be a caching or similar issue.

@rydmike You're right with the second case. The first case is not expected nor an issue whatsoever for us, but the second one is a bit annoying (though it just have been spotted in the team).

Thanks for confirming the issue details. I have seen references to a similar issue for other usage than this particular picker. I think it might be related to that and that it is indeed a caching issue on iOS with the media library usage. I will see what more info I can dig up on it, then we can look into what we can do here to address it.

@VuillaumeGautier
Thank you.
We confirmed this issue, and try to analyze root cause but no easy.
The advance image picker use photo_manager package to get assets from ios library, but that seem can not get edited photo path.
We'll investigate more about this.

We might need to open an issue with the photo_manager package, the solution to this issue is perhaps best addressed there, although I did not have time to look at the dentist yet. That was just my initial reaction when I looked at it briefly.

We have applied multiple fixes around edited resources, especially on iOS, including:

https://github.com/fluttercandies/flutter_photo_manager/pull/662
https://github.com/fluttercandies/flutter_photo_manager/pull/663
https://github.com/fluttercandies/flutter_photo_manager/pull/683

So I'm assuming the issue has been fixed, and they will be published in the 2.0.0 version of photo_manager.
Feel free to leave feedback in our repo tho.

authors: AlexV525 VuillaumeGautier rydmike weta-vn


text:
WV-790 - Candidate listing page: Implement performance_dict/performance_list

Updated candidate_list_view performance snapshot formatting for passing lists of performance_snapshots

👍 Thank you @eaw-pid!

authors: DaleMcGrew eaw-pid

repo: wevote/WeVoteServer


text:
Goes offline intermittently and strange brightness behaviour.

Light Model # H618C2D1UK
When changing the brightness of my RGBIC strip, it only works if I tap on the slider. If i try and actually slide it, it just bugs around and returns to where it was. This does not happen with any other light sliders so it must be related to this project.
Anyone else had this issue?

A couple of updates later, this issue seems to have been fixed.


text:
Add post - Halite III Bot Development Kit in Rust

Hi, please add this post:
Post URL: https://sgolem.com/halite-iii-bot-development-kit-in-rust
Author Name: Stjepan Golemac
Categories: Crates
Blog RSS/Atom/JSON Feed: http://sgolem.com/api/feed.rss
Tweet URL: https://twitter.com/SGolemac/status/1301158184984301568

Thanks! Posted.

authors: stjepangolemac wezm

repo: wezm/read-rust


text:
🛑 Bug Monitor (Third-Party) is down

In ab102a7, Bug Monitor (Third-Party) (https://bugreport.indexyz.me) was down:

HTTP code: 530
Response time: 95 ms

Resolved: Bug Monitor (Third-Party) is back up in a7a3711 after 4 hours, 52 minutes.

repo: wfjsw/status-winterco-org


text:
Error: missing entry point definition

I managed to collect 2 days worth of crashes, and wrote a script to convert all the .ron files to wgsl and then to hlsl, however, when i tried to run them via ./dxc-3.7 <crashes>.hlsl -T ps_6_6 i am encountering the error missing entry point definition. In the wgsl files they were also missing the main function as well:
Example dump:
				struct S1493518634_ {
				    m0_: f32,
				    m1_: f32,
				    m2_: f32,
				}

				fn f2042714845_() {
				    loop {
				        let _e6 = degrees(mat2x2<f32>()[0]);
				        loop {
				            loop {
				                break;
				            }
				            let _e9 = vec2(_e6.y);
				            let _e16 = i32(select(f32(f32(f32())), mat2x2<f32>(_e9, _e9)[1].x, true));
				            continue;
				            continuing {
				                let _e20 = round(exp(mat2x2<f32>()[0])).xyyx;
				                let _e23 = select(_e20, _e20, true);
				                loop {
				                    continue;
				                    continuing {
				                        break if true;
				                    }
				                }
				                let _e28 = i32(_e23.w);
				                switch _e28 {
				                    case 268435456: {
				                    }
				                    case 268435457: {
				                    }
				                    case 268435458: {
				                    }
				                    case 268435459: {
				                    }
				                    default: {
				                    }
				                }
				                loop {
				                    let _e29 = select(false, false, false);
				                    if _e29 {
				                        break;
				                    } else {
				                        continue;
				                    }
				                    continuing {
				                        break if _e29;
				                    }
				                }
				                break if true;
				            }
				        }
				        continuing {
				            let _e5_ = inverseSqrt(1.1009969e18);
				            break if false;
				        }
				    }
				}

Is this an issue related to the dxcompiler as my compilation was successful but did not produce the libdxcompiler.so library

Apologies, I realised I did not set the correct path for LD_LIBRARY_PATH=/.../darthshader/harnesses/dxcompiler/DirectXShaderCompiler/out/build/lib, and it is not that my compilation did not produce the  libdxcompiler.so library.
As far as my testing goes, I am getting a bunch of crashes but they all have a recurring pattern of either of the following messages when I analyse them via dxc3.7:
error: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'

warning: code is unreachable

Missing entrypoint definition; you need to specify -E in your dxc command.  See issue 1 for a little triage script I hacked together.
I dont think that those crashes are 'interesting' per say.  Or at least I am finding crashes like that within a few moments in my run.  In my runs I am getting heap buffer overflows and invalid writes in some of the triages.  Some of these can be replicated reliably; however the test cases are enormous and I can see no obvious path to minimizing them (eg HLSL files in the 200+MB range).  As things stand needle+haystack issue exists for me.

Thank you, that being said the crashes im getting are mainly just warning messages, is that an expected behaviour?

I asked the same question in issue 1, no definitive answer just yet.  I cant tell you the answer either but I observe similar behavior - most of the crashes appear to be caught errors.

authors: agoodm88 poopypootypants qwacsawd

repo: wgslfuzz/darthshader


text:
AttributeError: 'Namespace' object has no attribute 'resume'

An error appears when trying to test the model:
(pan) home@home-lnx:~/programs/pan_pp.pytorch$ python test.py config/pan/pan_r18_ic15.py checkpoints/pan_r18_ic15/checkpoint.pth.tar
{
    "model": {
        "type": "PAN",
        "backbone": {
            "type": "resnet18",
            "pretrained": true
        },
        "neck": {
            "type": "FPEM_v1",
            "in_channels": [
                64,
                128,
                256,
                512
            ],
            "out_channels": 128
        },
        "detection_head": {
            "type": "PA_Head",
            "in_channels": 512,
            "hidden_dim": 128,
            "num_classes": 6,
            "loss_text": {
                "type": "DiceLoss",
                "loss_weight": 1.0
            },
            "loss_kernel": {
                "type": "DiceLoss",
                "loss_weight": 0.5
            },
            "loss_emb": {
                "type": "EmbLoss_v1",
                "feature_dim": 4,
                "loss_weight": 0.25
            }
        }
    },
    "data": {
        "batch_size": 16,
        "train": {
            "type": "PAN_IC15",
            "split": "train",
            "is_transform": true,
            "img_size": 736,
            "short_size": 736,
            "kernel_scale": 0.5,
            "read_type": "cv2"
        },
        "test": {
            "type": "PAN_IC15",
            "split": "test",
            "short_size": 736,
            "read_type": "cv2",
            "report_speed": false
        }
    },
    "train_cfg": {
        "lr": 0.001,
        "schedule": "polylr",
        "epoch": 600,
        "optimizer": "Adam"
    },
    "test_cfg": {
        "min_score": 0.85,
        "min_area": 16,
        "bbox_type": "rect",
        "result_path": "outputs/submit_ic15.zip"
    },
    "report_speed": false
}
Downloading: "http://sceneparsing.csail.mit.edu/model/pretrained_resnet/resnet18-imagenet.pth" to ./pretrained/resnet18-imagenet.pth
Traceback (most recent call last):
  File "test.py", line 117, in <module>
    main(args)
  File "test.py", line 100, in main
    print("No checkpoint found at '{}'".format(args.resume))
AttributeError: 'Namespace' object has no attribute 'resume'

这个怎么解决的啊

How can I fix this problem


text:
Create lamigo service unit

Fixes https://github.com/whamcloud/integrated-manager-for-lustre/issues/1379
There are two additional parameters I have added to the original task, since Nate @utopiabound asked to check mount (and do mount if not mounted):

LNet device on the client side, like 192.168.0.100@tcp0:/spfs to be able to execute mount command like $ mount -t lustre 192.168.0.100@tcp0:/spfs /mnt/lustre
And force flag to ignore mounts and checks and just create the unit.

This change is

I have some questions:

I don't understand why mounting ("a run-time dependency") is considered when creating a systemd unit ("build time"). What is expected when the unit is created and FS is unmounted after then?
If there is a run-time dependency on a mount point, does it make sense to use systemd mechanism for such dependency?
What is lamigo's user? Does it make sense to start lamigo service as user via systemd (and not as root)?

@utopiabound has the following requirement for this:

A start action should be to mount the filesystem if it is not mounted already.

So this requirement has really complicated stuff and pulls here the "run-time dependency".
There is an alternative solution to separate this module into the 3 ones: CheckMount, DoMount and CreateLamigoServiceUnit, however I really don't like this, since it creates implicit dependencies between them (i.e. they are not independent anymore).
I'm open to other proposals how to implement this requirement.

There is systemd mount dependency, I've made a research on it is good or not to convert this "run-time" into "build-time", however there are gotchas with systemd on this part: https://github.com/systemd/systemd/issues/4468
So I think doing this in Rust is easier at least.

It is the special user, a so called "changelog user", that has an access to MDT records and is able to manipulate them (from the lamigo source code, user on which behalf lamigo consumes changelogs from the MDT device). It is the different one from the user, under which the lamigo process runs, as I understand.

It seems my comments weren't answered or addressed

iml-agent/src/action_plugins/lamigo.rs, line 105 at r4 (raw file):
Previously, mkpankov (Michael Pankov) wrote…
.clone isn't necessary:
        .arg(&c.lustre_device)
        .arg(&c.mount_point)

Thanks, Michael

iml-agent/systemd-units/rust-iml-agent.service, line 17 at r6 (raw file):
Previously, mkpankov (Michael Pankov) wrote…
Hardcoding local path doesn't seem right

Yes, I noticed it already, but thank you anyways!

Looks like the latest push has merge conflicts.

authors: jgrund mkpankov nlinker

repo: whamcloud/integrated-manager-for-lustre


text:
add a remote profiling server for eventlet

This pull request adds a remote profiling server for people using eventlet.  It is similar to the gevent one.

Thanks to send the pull request.
This change spends many lines for re-implementation of parts of gevent. Would you find a more eventlet-ish way?
By the way, we already have SelectProfilingServer. Wasn't it enough for you? I think this can be together with eventlet if it has been monkey-patched.

authors: kaniini sublee

repo: what-studio/profiling


text:
Problem with overwriteRoutes and migration from v5 to v6

In v5 it was OK to add same route more than one time with {times: 1} setting.
In v6 when overwriteRoutes:true is set route is always overridden, which means I can no longer add a number of same routes which will be picked up one by one.
Please show an example how same matcher can be added more than once. Doc mentions this but there's no example.

Try overwriteRoutes: false - it's supposed to support exactly the case you're describing.
Could the docs be improved to make it clearer?

It works. But the confusing factor is that by default it errors...
https://github.com/wheresrhys/fetch-mock/blob/master/docs/v5-v6-upgrade.md#routing
Here there is clearly lack of explanation. It should be like:

set to true to override
set to false to use old "buffer-like" behavior

Also in https://github.com/wheresrhys/fetch-mock/blob/master/docs/api.md there is no mentions of this option...

authors: kirill-konshin wheresrhys

repo: wheresrhys/fetch-mock


text:
how can I authenticate with MifareUltralight ?

Hi , is there an authentication function to authenticate with MifareUltralight C? or is the transceive function the authentication function for MifareUltralight, if so can you kindly help me out with an example?

Hi @bluetiger30 , as far as I know, Android doesn't expose such API.
Android API for MifareUltralight is listed here: https://developer.android.com/reference/android/nfc/tech/MifareUltralight, and no authentication related ones are included.

I can use NFC tools app like 'NFC Tools Pro' to authenticate my MifareUltralight C, how they do that?

@JamesZhange sorry for the late response.
It's possible to use the low-level transceive API to approach this feature, but it requires a deep understanding for MifareUltralight C tag command set.
Since I'm not an expert for this tag, I will label this issue as help wanted and see if someone can help us!
Thanks!

close inactive issue


text:
Required fields sometimes skipped/empty

In some of the submissions, we sometimes have fields that are empty even though they are required.
Should look into form submission validation to fix this

This has been finished.


text:
request for LDIF file related to the example

Hi, Can you please attach LDIF as well? I am not able to create exact directory structure described in above example. I am using Apache Directory Studio for LDAP server. It will be a great help if you can post the LDIF, I can import it in my server and will try running this python script. Thanks in advance for your help.

There are no examples so I'm unsure what you're asking for.  When I tested this, I tested with AD and OpenDirectory.

users_groups.txt
Hi, I am requesting LDIF corresponding to example mentioned in Code section. In "The Implementation" section, it explains the directory structure including 'Release Managers', 'Developers' and 'Administrators'.
I am running python script against attached LDIF but getting below output in svn_auth.txt which I do not think is the correct one. So I was requesting LDIF of your example.
[groups]
### Start generated content: LDAP Groups to Subversion Authz Groups Bridge (2017/08/24 07:39:19) ###
cn_sssd_qns =
cn_sssd_pb =
Admin = @cn_sssd_pb, @cn_sssd_qns

################################################################################
###########   LDAP Groups to Subversion Authz Groups Bridge (Legend)  ##########
################################################################################
### cn_sssd_qns = uid=sssd_qns,cn=Admin,ou=groups,dc=sprint,dc=com
### cn_sssd_pb = uid=sssd_pb,cn=Admin,ou=groups,dc=sprint,dc=com
### Admin = cn=Admin,ou=groups,dc=sprint,dc=com
################################################################################

### End generated content: LDAP Groups to Subversion Authz Groups Bridge ###

Hi @whitlockjc , Could you please guide me in fixing python script for attached users_groups.txt (in earlier comment)?
I am expecting below contents in generated file
[groups]
Admin = @cn_sssd_pb, @cn_sssd_qns
but getting below one
[groups]
cn_sssd_qns =
cn_sssd_pb =
Admin = @cn_sssd_pb, @cn_sssd_qns
I also tried changing LDAP scope from SUBTREE to ONELEVEL/BASE but none of these options got rid of 'cn_sssd_qns =' and 'cn_sssd_pb=' entries
It will be great help if you can suggest.


text:
Using Qualisys mocap

Hi,
I am trying to change the vicon mocap to the qualisys mocap and run the hover demo. I am using the Qualisys ROS driver provided by https://github.com/KumarRobotics/motion_capture_system.  I get the following errors when running the demo code inside RViz

Fixed Frame [world] does not exist
No transform from [crazyflie/base_link] to [world]

which is because I am not having a world frame output. When performing rosrun tf tf_monitor the output I get is (one of the continuous prints)
Frames:
Frame: /crazyflie/base_link published by unknown_publisher Average Delay: -0.0997525 Max Delay: 0
Frame: crazyflie published by unknown_publisher Average Delay: 0.00022675 Max Delay: 0.00036054
The output of "rosrun tf view_frames" gives me two "states", one with "mocap" and the other with "crazyflie" as follows:
frames.pdf
I have very new to both the mocap and ROS and I am not able to understand what is meant by the world frame and how I get to output that. I read the issue #17 but I could not make sense of this part.
Also, what would the input to "frame" be in my case when running  "roslaunch crazyflie_demo hover_qualisys.launch uri:=radio://0/80/2M frame:=crazyflie x:=0 y:=0 z:=1"
Running ROS Jade on Ubuntu 14.04
Thanks for the help again!

I think I have solved this but now that I was going to try it the battery died, so I have to confirm after the battery is charged.
I just had to rename "mocap" by "world" as "" in the file qualisys.launch and now no error is shown in rviz.
I am also running "roslaunch crazyflie_demo hover_qualisys.launch uri:=radio://0/80/2M frame:=crazyflie x:=0 y:=0 z:=1"

Great that you got it working! Currently, the package assumes that the global frame is named "world". If that is not the case, you'll need to add a static transformation between "mocap" and "world".

authors: araujokth whoenig


text:
Proofs that don't start with "Proof." are not recognized

Compare how cbn is highlighted in this example:
Lemma a : False.
Proof.
cbn.
Abort.

Lemma a : False.
cbn.

The problem is tactics are currently only highlighted when they're in a coqProofBody region, which looks for a starting delimiter like Proof or Next Obligation. Without that it's tricky to tell when a proof starts. Some options I can think of are:

Drop the proof body requirement and highlight tactics everywhere, even in places where they may not be valid.
Try to expand proof body to check if the previous vernacular is Lemma, or Theorem, etc. It should probably also check that it's not defined in that same command (Example a : True := I.), but this also has some corner cases (Instance x : Reflexive R := _.).
Keep it as is and don't try to highlight/indent proofs without an explicit start keyword.

1 or 3 are the easiest options but I'm open to 2 if you think this is a common enough/idiomatic use case.

Somewhat related: #43.

I'm fine with not fixing it if it's not easy. I just wanted to mention it because it seems somewhat common, but I'm not at all fond of that style.

When I next get some time I'll experiment with how hard it is to make a best-effort attempt at something like option 2.

As if living with the rooster was not hard enough already,
some proofs in the standard library start with both
Next Obligation and Proof and thus manifest this issue.
The following excerpt is from theories/Classes/EquivDec.v.
#[global]
Program Instance unit_eqdec : EqDec unit eq := fun x y => in_left.

  Next Obligation.
  Proof.
    do 2 match goal with [ x : () |- _ ] => destruct x end.
    reflexivity.
  Qed.

authors: Lysxia Tuplanolla whonore

repo: whonore/Coqtail