text:
Update highlight js in the templates to use the latest version

In order to get some bugfixes and new features of highlight js

Nice, could you give it a try and make a pull request?

Hi Guille.
I was trying to make a pull.  But a get permission denied error. How can I proceed to put the upate on the repo ?

Hi Asbath,  Are you trying to put the update into Guille's repo?
or to your fork of ecstatic in your own repo?
Perhaps you need to do something like this..??
https://stackoverflow.com/questions/18200248/cloning-a-repo-from-someone-elses-github-and-pushing-it-to-a-repo-on-my-github
and then issue a PR from your repo to guille's
cheers -ben
On Sat, Oct 14, 2017 at 11:16 AM, Asbath notifications@github.com wrote:

Hi Guille.
I was trying to make a pull. But a get permission denied error. How can I
proceed to put the upate on the repo ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/guillep/ecstatic/issues/17#issuecomment-336605928,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABolJ-4WW7ON0Zf4ka1L2RTNzv0q52eJks5ssCecgaJpZM4PxjNU
.

Ok. Thanks Ben.
Then it means that I have to fork guille's repo to make it meine. Make the changes on the forked repo before making a pull request. It is more clear now.
Asbath

authors: bencoman guillep samakhov

repo: guillep/ecstatic


text:
Update nimbus-jose-jwt to 9.41

About this PR
📦 Updates com.nimbusds:nimbus-jose-jwt from 9.40 to 9.41
📜 Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Version Diff - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.nimbusds", artifactId = "nimbus-jose-jwt" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.nimbusds", artifactId = "nimbus-jose-jwt" }
}]

labels: library-update, commit-count:1

Superseded by #391.

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
semver .js:281 throw new TypeError('Invalid Version: ' + version)

I keep getting this typeerror when running gulp play or creating a new project with pluralsight tutorial
Z:\coding\pluralsight-gulp>gulp hello-world
AppData\Roaming\npm\node_modules\gulp\node_modules\semver\semver
.js:281 throw new TypeError('Invalid Version: ' + version);
^
TypeError: Invalid Version: undefined
at new SemVer AppData\Roaming\npm\node_modules\gulp\node_mo
dules\semver\semver.js:281:11)
at SemVer.compare AppData\Roaming\npm\node_modules\gulp\nod
e_modules\semver\semver.js:348:13)
at compare AppData\Roaming\npm\node_modules\gulp\node_modul
es\semver\semver.js:571:31)
at Function.gt AppData\Roaming\npm\node_modules\gulp\node_m
odules\semver\semver.js:600:10)
at Liftoff.handleArguments AppData\Roaming\npm\node_modules
\gulp\bin\gulp.js:99:14)
at Liftoff. AppData\Roaming\npm\node_modules\gul
p\node_modules\liftoff\index.js:192:16)
at module.exports AppData\Roaming\npm\node_modules\gulp\nod
e_modules\liftoff\node_modules\flagged-respawn\index.js:17:3)
at Liftoff. AppData\Roaming\npm\node_modules\gul
p\node_modules\liftoff\index.js:185:9)
at AppData\Roaming\npm\node_modules\gulp\node_modules\liftof
f\index.js:159:9
at AppData\Roaming\npm\node_modules\gulp\node_modules\v8flag
s\index.js:99:14
Z:\coding\pluralsight-gulp>npm install
|

Pluralsight-Gulp@0.1.0 install Z:\coding\pluralsight-gulp
bower install

'bower' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! Pluralsight-Gulp@0.1.0 install: bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Pluralsight-Gulp@0.1.0 install script 'bower install'.
npm ERR! This is most likely a problem with the Pluralsight-Gulp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls Pluralsight-Gulp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     Z:\coding\pluralsight-gulp\npm-debug.log
Z:\coding\pluralsight-gulp>
npm ERR! Please include the following file with any support request:
npm ERR!     Z:\coding\pluralsight-gulp\npm-debug.log
Z:\coding\pluralsight-gulp>
Please let me know what I am doing wrong. I even installed gulp locally with
npm install gulp --dev-save
i also rand gulp -v before gulp hello-world

You don't have bower installed so your install is failing.  Also, the command to install gulp locally is npm install --save-dev gulp (not dev-save).  These are all problems with the tutorial, please report it to pluralsight or the pluralsight-gulp project.

That did not work:
Z:\coding\ng2do>bower install
bower ENOENT        No bower.json present
Z:\coding\ng2do>npm install
npm WARN package.json ng2do@0.0.1 license should be a valid SPDX license express
ion
Z:\coding\ng2do>npm install --save-dev gulp
npm WARN package.json ng2do@0.0.1 license should be a valid SPDX license express
ion
gulp@3.9.0 node_modules\gulp
├── pretty-hrtime@1.0.0
├── interpret@0.6.5
├── deprecated@0.0.1
├── archy@1.0.0
├── minimist@1.2.0
├── tildify@1.1.0 (os-homedir@1.0.1)
├── v8flags@2.0.10 (user-home@1.1.1)
├── chalk@1.1.1 (supports-color@2.0.0, escape-string-regexp@1.0.3, ansi-styles@2
.1.0, strip-ansi@3.0.0, has-ansi@2.0.0)
├── semver@4.3.6
├── orchestrator@0.3.7 (sequencify@0.0.7, stream-consume@0.1.0, end-of-stream@0.
1.5)
├── liftoff@2.1.0 (extend@2.0.1, rechoir@0.6.2, flagged-respawn@0.3.1, resolve@1
.1.6, findup-sync@0.2.1)
├── gulp-util@3.0.6 (array-differ@1.0.0, array-uniq@1.0.2, lodash._reescape@3.0.
0, lodash._reevaluate@3.0.0, object-assign@3.0.0, beeper@1.1.0, lodash._reinterp
olate@3.0.0, replace-ext@0.0.1, vinyl@0.5.3, lodash.template@3.6.2, through2@2.0
.0, multipipe@0.1.2, dateformat@1.0.11)
└── vinyl-fs@0.3.13 (graceful-fs@3.0.8, strip-bom@1.0.0, defaults@1.0.2, vinyl@0
.4.6, mkdirp@0.5.1, through2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)
Z:\coding\ng2do>gulp play
C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modules\semver\semver
.js:281
throw new TypeError('Invalid Version: ' + version);
^
TypeError: Invalid Version: undefined
at new SemVer (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_mo
dules\semver\semver.js:281:11)
at SemVer.compare (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\nod
e_modules\semver\semver.js:348:13)
at compare (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modul
es\semver\semver.js:571:31)
at Function.gt (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_m
odules\semver\semver.js:600:10)
at Liftoff.handleArguments (C:\Users\137124\AppData\Roaming\npm\node_modules
\gulp\bin\gulp.js:99:14)
at Liftoff. (C:\Users\137124\AppData\Roaming\npm\node_modules\gul
p\node_modules\liftoff\index.js:192:16)
at module.exports (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\nod
e_modules\liftoff\node_modules\flagged-respawn\index.js:17:3)
at Liftoff. (C:\Users\137124\AppData\Roaming\npm\node_modules\gul
p\node_modules\liftoff\index.js:185:9)
at C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modules\liftof
f\index.js:159:9
at C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modules\v8flag
s\index.js:99:14
Z:\coding\ng2do>gulp
C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modules\semver\semver
.js:281
throw new TypeError('Invalid Version: ' + version);
^
TypeError: Invalid Version: undefined
at new SemVer (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_mo
dules\semver\semver.js:281:11)
at SemVer.compare (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\nod
e_modules\semver\semver.js:348:13)
at compare (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modul
es\semver\semver.js:571:31)
at Function.gt (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_m
odules\semver\semver.js:600:10)
at Liftoff.handleArguments (C:\Users\137124\AppData\Roaming\npm\node_modules
\gulp\bin\gulp.js:99:14)
at Liftoff. (C:\Users\137124\AppData\Roaming\npm\node_modules\gul
p\node_modules\liftoff\index.js:192:16)
at module.exports (C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\nod
e_modules\liftoff\node_modules\flagged-respawn\index.js:17:3)
at Liftoff. (C:\Users\137124\AppData\Roaming\npm\node_modules\gul
p\node_modules\liftoff\index.js:185:9)
at C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modules\liftof
f\index.js:159:9
at C:\Users\137124\AppData\Roaming\npm\node_modules\gulp\node_modules\v8flag
s\index.js:99:14
Z:\coding\ng2do>

source: gharchive/issue

authors: fuonge phated

repo: gulpjs/gulp


text:
Callback argument in gulp.watch() does not work as expected

Hey, I was trying out gulp 4, it was all nice and wonderful, until I came across this issue which I don't know if it's an issue with the documentation or just with gulp.
What were you expecting to happen?
I need the callback function passed as a third argument to gulp.watch() to be called when there is a change, add or unlink event. Like the docs say.
What actually happened?
The callback function never gets called.
Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)
function watch() {
  const socket = io.listen(WEBSOCKET_PORT)
  const triggerFileChange = () => {
    console.log('Callback called')
    socket.emit('file changed')
  }

  gulp.watch('src/**/*.js', scripts, triggerFileChange)
  gulp.watch('src/**/*.scss', styles, triggerFileChange)
  gulp.watch(paths.manifest, manifest, triggerFileChange)
  gulp.watch(paths.images, images, triggerFileChange)
  gulp.watch(paths.markup, markup, triggerFileChange)
}

Here is the full gulpfile
What version of gulp are you using?
4.0.0-alpha.2
What versions of npm and node are you using?
node v8.9.1
npm v5.5.1
EDIT:
This is the relative line in the gulp source code, the line gets executed correctly.
Also if I use only one argument, like this
gulp.watch('src/**/*.js', gulp.parallel(scripts, triggerFileChange))

it works fine
EDIT2:
Actually something else is happening, the task in the gulp.watch gets called only the first time a file changes, each gulp.watch acts like this. I have no idea why.

The docs are out of date.  You should follow the docs at https://github.com/gulpjs/glob-watcher which fully describe how to use the watch functionality (and why your task isn't being executed a 2nd time. hint: you aren't signaling completion)

Ok! I read the glob-watcher documentation and it's all clear now, I know about async completion.
I think the original problem is with me believing from the docs that you could use the third parameter as a callback being called after the task in the second argument is done, like this
gulp.watch('filename.js', task, callback)
so it wouldn't need async completition.
I guess I'll do it like this:
const triggerFileChange = (done) => {
  socket.emit('file changed')
  done()
}

gulp.watch('src/**/*.js', gulp.series(scripts, triggerFileChange))

Do you know how can I use in any way async-done in this situation?

@marcofugaro your usage of gulp.series to compose your 2 functions is correct.  I'm not sure why you thought watch would take 3 arguments, none of the gulp4 APIs behave that way and all rely on function composition with series and parallel

authors: marcofugaro phated


text:
更新quiet_outline新版本后无法正常生效

obsidian更新到最新版本1.0.3
quiet_outline最新版本0.3.11
更新过后quiet_outline完全无法工作，重启插件重启obsidian重装插件都没有作用

详细描述一下“无法工作”的具体情况？

详细描述一下“无法工作”的具体情况？

老版本我是正常运行的，今天更新就出这问题了，具体老版本号不记得了。
奥对了，之前使用老版本有个小问题顺便说一下吧，就是如果两个连着的标题都是不止一行，这两个标题会有重叠和错位的情况。

第一个问题，插件本身是不会自动开启的，需要用命令打开。之前每次启动ob能打开是因为ob记录了上次关闭时的状态。

第二个问题我这边没有复现出来：

第一个问题，插件的面板本身是不会自动开启的，需要用命令打开。之前每次启动ob能打开是因为ob记录了上次关闭时的状态。
第二个问题我这边没有复现出来：

好的感谢，确实是忘记要先执行这么个命令了，不过我觉得把这个功能做到第三方插件里面作为一个开关存在会不会更好呢？
第二个问题确实新版本修复了，是老版本有这个问题，抱歉。
不得不说这个插件确实是解决了obsidian一个虽然比较细节但是用户体验影响很大的问题，感谢您的插件的完善！

authors: Ordi-P guopenghui

repo: guopenghui/obsidian-quiet-outline


text:
Connection issue to websocket server behind nginx reverse proxy

Hello
I have a websocket server, written on php Ratchet, behind nginx reverse proxy (configured as shown here http://nginx.org/en/docs/http/websocket.html ). When I connect straight to websocket server bypassing nginx, it works. But when I connect through nginx, it fails with message "tech.gusavila92.apache.http.NoHttpResponseException: The target server failed to respond".
Reverse proxy configured well, because other websocket clients like autobahn work. What can go wrong?
Thank you

Hi. I was unable to reproduce the error locally. Can you give more details like if you're using SSL, if a redirect is being made with Nginx, did you manage to connect to the server or the error is being triggered after a while?,  how many simultaneous connections are you doing?, what's the value of your keepalive attribute?
This can help me to identify the problem, because I've used this library with a Nginx proxy before without any problems so far.

license_source: bigquery


text:
TypeError: value.getTime is not a function. (In 'value.getTime()', 'value.getTime' is undefined)

Giving TypeError in both android and ios after upgrading to 1.4.1.

Thank for using the library! It looks like you're sending an incorrect Date object. Can you share the code of your implementation?

const [month, setMonth] = useState(moment(new Date()).format('MM YYYY'))
const onValueChange = (event, newDate) => {
setShowPicker(false);
const selectedMonth = newDate || month;
setMonth(selectedMonth);
}
<MonthPicker
onChange={onValueChange}
value={month}
minimumDate={new Date(2019, 12)}
maximumDate={new Date(2025)}
enableAutoDarkMode={true}
outputFormat='MM YYYY'
okButton="Select"
/>

Ohh, I see. You are sending a moment object with outputFormat. I have deprecated that prop to decouple the component. Just send a Date object, and handle the logic on your side, when calling onChange using the line you have in the useState.

Working Perfectly, Thank you very much

repo: gusparis/react-native-month-year-picker


text:
Teste - slide aula 04

testando como se abre uma nova issue.

Teste ok

authors: LorenaFranco fequesada

repo: gustavoguanabara/git-github


text:
Use collection-repeat instead of ng-repeat

Hi
Great plugin.
In large data sets the performance isn't good enough.
i recommend using collection-repeat instead of ng-repeat for the data presentation.
Thank.
Ziv

Hi,
sorry for my delay but I was on a longer trip and now I am working partially.
Well there were several issues (#94 #64 #136 and more) with the collection-repeat and therefore we now use the ng-repeat.
If you want to use the collection-repeat you can always add your own custom template to do so. See https://github.com/guylabs/ion-autocomplete#template-url. Therefore I will close this issue as the solution is to create your own template.
Thanks and regards,
Guy

authors: guylabs ziv-moonsite

repo: guylabs/ion-autocomplete

license: mit


text:
WebSocket Support

Does Guzzle support webSockets?

Unfortunately not, Guzzle is an HTTP Client.

hmm you guys are very bad. :(

repo: guzzle/guzzle


text:
How to send base64 encoded image data using POST request?

Hi Guys, How can any one let me know how to send base64 encode image data using post request?
I am using this I am not sure this is the correct way to use it or not.
$response = $this->client->post('URL',[
            'multipart' => [
                'name'     => 'image',
                'contents' => ['image'=>$base64]
            ]
      ]);

This throws exception of Type error: Argument 2 passed to GuzzleHttp\Psr7\MultipartStream::addElement() must be of the type array, string given
Or Do I need to use form_params?
$response = $this->client->post('URL',[
            'form_params'=>['image' => $base64]
      ]);

@SebTM  That is throwing an error of  Invalid resource type: array

Can you give us some more information what you are trying to do? What software/url are you calling? Can you link to documentation?

@SebTM  Any idea how I can achieve this?

Hey @Dhavalptel,
sorry didn't had time before to check it again. Here is a working example:
`
post($uriBase,[
    'headers'=>['Authorization' => 'Bearer '.$token],
    'multipart' => [
        [
            'content-type' => 'test/plain',
            'contents' => $base64,
            'name' => 'file',
        ],
    ],
]);
echo $response->getBody()->getContents();
`

> Result: {"Accepted":false,"Error":"NoFaceFound"}

@SebTM  Thanks Man, That is working I was wondering, I have already converted the image to base64 then why do I need to multipart it again?

Seems wired for me, too - also that file as name is just random picked and working. The documentation is really not that good here.

Yes that sucks, Anyway thanks man, I am closing this

You are welcome! :)

authors: Dhavalptel SebTM


text:
dependencies are out of date

Hi, can you afford maintaining this library?
The dependencies on tokio and futures are on the older versions.
tokio-io = { version = "0.1", optional = true }
futures = { version = "0.1", optional = true }

tokio's recently released 0.3 and futures is now 0.3. These versions are way too old.

Hi - I am not very familiar with the async ecosystem yet - I barely wrote the current tokio_io implementation of AsyncWrite, but at a glance the current tokio::io::AsyncWrite requires more effort.
If you are more familiar with it and are willing to send a PR, I would be glad to review it.

async-compression seems to have nice re-usable async wrappers around a bunch of compression libs, including zstd-rs. I am tempted to simply remove all tokio/futures support code from here, and instead point to that crate for people needing an async version.
They only use zstd::stream::raw, basically re-implementing an async version of the zstd::stream::zio module generically for a bunch of compression libraries.

No more tokio code in-tree.

authors: akiradeveloper gyscos

repo: gyscos/zstd-rs


text:
🛑 Undertale社区档案馆 - UTCARC is down

In 5e3afc8, Undertale社区档案馆 - UTCARC (https://arc.utcwiki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Undertale社区档案馆 - UTCARC is back up in 43b4940 after 17 minutes.

repo: gzombiejun/upptime


text:
🛑 Undertale社区档案馆 - UTCARC is down

In 9be8d32, Undertale社区档案馆 - UTCARC (https://arc.utcwiki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Undertale社区档案馆 - UTCARC is back up in b3db057 after 22 minutes.


text:
Make sure that an ack-eliciting packet is sent when PTO timer fires

Currently, when the amplification limit allowance is below 64 bytes (the value of MIN_SEND_WINDOW), the following happens:

PTO timeout is armed. This is because  calc_amplification_limit_allowance invoked by quicly_get_first_timeout does not take MIN_SEND_WINDOW into account.
When PTO timer fires, an ACK-eliciting packet is not sent. This is because calc_send_window determines that the size of the send window is less than 64 bytes and therefore only emits ACKs.

Commit 38a15a3 of this PR addresses the problem, by adding the same rounding logic to calc_amplification_limit_allowance. The other commits are refactors / editorial improvements.

One way of reproducing the issue:

Set the expand_by parameter of the server-generated TP so that the first flight will be less than 64 bytes below the amplification limit (see below, which sets expand_by to 2020 bytes.
Connect to that server using udpfw that is set to drop all the packets going to the client.

diff --git a/lib/quicly.c b/lib/quicly.c
index e313d48..d8f043a 100644
--- a/lib/quicly.c
+++ b/lib/quicly.c
@@ -2235,7 +2235,7 @@ static int server_collected_extensions(ptls_t *tls, ptls_handshake_properties_t
              needs_cid_auth(conn) || is_retry(conn) ? &conn->super.original_dcid : NULL,
              needs_cid_auth(conn) ? &conn->super.local.cid_set.cids[0].cid : NULL,
              needs_cid_auth(conn) && is_retry(conn) ? &conn->retry_scid : NULL,
-             conn->super.ctx->cid_encryptor != NULL ? conn->super.local.cid_set.cids[0].stateless_reset_token : NULL, 0)) != 0)
+             conn->super.ctx->cid_encryptor != NULL ? conn->super.local.cid_set.cids[0].stateless_reset_token : NULL, 2020)) != 0)
         goto Exit;
     properties->additional_extensions = conn->crypto.transport_params.ext;
     conn->crypto.transport_params.ext[0] =


text:
How to get logs (where i should find them) ?

Despite additional option like LOG_LEVEL=debug applied from compose there is no logs in:

compose up cmd
docker logs wg-portal
some file in running container (at least i couldn't find it)

But code already has logging (i saw inside the code).
So the issue is that documentation does not cover debugging a lots.

The logs are written to stdout. So they are visible in docker-compose logs (or docker logs).
If they are not visible, you might have changed the logging settings of your docker setup.

Already done. But unfortunately debug logs is absent.


text:
Spread Calculator

I would like one

In what fashion? You can do spread calculations using linear sheafs or box sheafs, not sure what you're specifically looking for.

That's what I thought but supposedly yhe other day I was requested to do a
spread which is different as it's when you almost make an X pattern from
what I was told.
On Wed, Feb 28, 2024, 12:08 PM habitualdev @.***> wrote:

In what fashion? You can do spread calculations using linear sheafs or box
sheafs, not sure what you're specifically looking for.
—
Reply to this email directly, view it on GitHub
https://github.com/habitualdev/ArtyCalc/issues/9#issuecomment-1969557609,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXQTE7JQAUWRNZ5YH57V7Z3YV5XCBAVCNFSM6AAAAABD5NLQKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZGU2TONRQHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Eh. I can make a "spread" adjustments option, to make a plus sign

That would be awesome.
On Wed, Feb 28, 2024, 1:46 PM habitualdev @.***> wrote:

Eh. I can make a "spread" adjustments option, to make a plus sign
—
Reply to this email directly, view it on GitHub
https://github.com/habitualdev/ArtyCalc/issues/9#issuecomment-1969727760,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXQTE7PPT6MVSCZM6EB5EU3YV6CTBAVCNFSM6AAAAABD5NLQKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZG4ZDONZWGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

authors: habitualdev normotoryjazz

repo: habitualdev/ArtyCalc


text:
Spark version matrix

Review how to publish doric according to the spark version.
Check dependencies for all versions.

[x] Sbt change to allow multiple versions (#184)
[x] Github actions matrix (#187)
[x] ~Dependabot for multiple versions?~ (should not affect)

Sadly spark 2.4 won't be built against due to problems with dependencies in scala 2.11

Hi @alfonsorr, I'm working in a project where we're tied to Scala 2.11 and Spark 2.4.7 (Cloudera 😵💫).
Doric could be a great match for a use-case and I might get some time to invest in backporting.
Do you still remember what the dependency problems you mentioned were and where you got stuck?
I have some experience with Spark plugin building and packaging (I'm one of the maintainers of https://github.com/crealytics/spark-excel/) so I might be able to pick this up.

Hi @nightscape . You are one of the first postings in our repo. We are so happy 😄 Any help is welcome.
Yeah, we wanted to do a fast cross spark version of doric and didn't want to change first a lot of code, we wanted to migrate also to 2.4 but required a little more work than expected.
There are 3 dependencies that give some problems, and I suggest that what we should do with them are:

Newtype doesn't have a version for 2.11, but we can get rid of it and change it to a case class where it is used.
spark daria we can check if the versions published for 2.11 have all the logic we need, if not we should replace with something custom-made.
cats was the main reason that I didn't make in this first iteration of the porting to spark 2.4, I've changed the dependency to 2.0.0 (last 2.11 published) and started to pop a lot of import errors and didn't want to change it so much. But I think that for what we are using it should be achievable.

We are currently trying to release the 0.0.3 this week that will be the one with cross-version from 3.0 to 3.2, but then we can check it with more time to try to port it to 2.4 at least. For the moment the changes are only in the CI files.
Feel free to create an issue if you start to do any code and we will get into also when we finish the release.

authors: alfonsorr nightscape

repo: hablapps/doric


text:
Dependency Bump Needed

Seems like there are a lot of dependencies that have had minor updates since this project started, we should bump the deps.

I respectfully disagree that each dependency update needs its own pull request, it will just save time for both of us and reduce clutter

There are actually a few good arguments for doing dependency bumps as separate PRs rather than feature PRs. Here are 3 reasons why:
1. Reduces Bugs
If we create separate PRs for features and dependency bumps, its easier to debug before the site reaches production. Lets say we have a PR of a new feature that also goes and updates a bunch of dependencies. We notice that this PR introduces a new bug into our site. Since the PR is both a new feature and a dependency update, we aren't sure if its the new feature that's breaking things or possibly a dependency. If it is a dependency, well then we have to go one by one to find a fix. Doing dependency bumps in separate PRs allows us to isolate possible causes for bugs and do more testing, reducing the number of bugs that go into production.
2. Improves Compatibility
In our case, all of our dependency bumps are minor updates, and in theory, should have no breaking changes. But we don't know that for sure. Doing separate PRs for dependency bumps and features means that if for some reason a dependency introduces a new breaking change, its easier to catch, and revert if needed.
3. Improves Security
Take the recent discovery of the backdoor that was introduced in the 5.6.0 version of xz, a dependency in OpenSSH. Let's say that something like that happens to one of our dependencies. Well of course we should roll back our change to ensure the best security for our users. However, if our update to this dependency is part of a feature PR, we then have to roll back the entire feature instead of just the dependency bump, which isn't always desirable.
Now of course these arguments are more relevant on bigger projects that more people rely on, but we should try to follow best practices when it comes to dependency bumps. Especially considering how important dependency management is for a project like this one (our project wouldn't be possible without these dependencies).
If you are looking for examples of this in production code, look no further than Submitty. Where you can see a variety of PRs just for dependency bumps.
I am really glad you brought this question up, being able to have discussions like these make all open source projects better, and allows us to learn from each other's experience. In the future however, I would refrain from closing an issue because you disagree or feel its unnecessary, instead comment your thoughts, leave the issue open, and let others discuss too. Open source thrives on open communication and feedback. We can close issues when we deploy fixes or when we as a community come to the consensus that an issue can be closed or won't be fixed.


text:
Data download error

I'm trying to run this code from notebooks/01-vectorizers-quickstart.ipynb
ds = Dataset.load('20_newsgroups_pruned')
print(ds.DESCR)

Here's what I get:
2021-09-30 11:28:56,230 - _twenty_newsgroups - INFO - Downloading 20news dataset. This may take a few minutes.
2021-09-30 11:28:56,230 - _twenty_newsgroups - INFO - Downloading dataset from https://ndownloader.figshare.com/files/5975967 (14 MB)
2021-09-30 11:29:10,454 - datasets - INFO - Generated output datasets: ['20_newsgroups'] via edge:'_20_newsgroups'
2021-09-30 11:29:10,557 - datasets - WARNING - Hash Validation Failed. Dataset:'20_newsgroups' hashes:{'data': 'sha1:01e8537d7484b013d035bd170888166efb178ebb', 'target': 'sha1:5de7194d26d9f956834624fa18a54d8892efa606'} do not match catalog hashes:{'data': 'sha1:01e8537d7484b013d035bd170888166efb178ebb', 'target': 'sha1:07d6abde28d41f179d2a6eea6a80b221b74188fc'}
2021-09-30 11:29:10,564 - datasets - ERROR - Generation from DatasetGraph failed.

Do you have any advice for working around this?

OK, I think I understand now that I need to run the previous 00 notebook, and then the error seems to go away in the 01 notebook.
Sorry for the bother!

I tried again on a new machine, and now I get the same error again when I try to run the 00 notebook... I'm not sure what is wrong.
2021-09-30 11:57:20,553 - _twenty_newsgroups - INFO - Downloading 20news dataset. This may take a few minutes.
2021-09-30 11:57:20,554 - _twenty_newsgroups - INFO - Downloading dataset from https://ndownloader.figshare.com/files/5975967 (14 MB)
2021-09-30 11:57:41,092 - datasets - INFO - Generated output datasets: ['20_newsgroups'] via edge:'_20_newsgroups'
2021-09-30 11:57:41,196 - datasets - WARNING - Hash Validation Failed. Dataset:'20_newsgroups' hashes:{'data': 'sha1:01e8537d7484b013d035bd170888166efb178ebb', 'target': 'sha1:5de7194d26d9f956834624fa18a54d8892efa606'} do not match catalog hashes:{'data': 'sha1:01e8537d7484b013d035bd170888166efb178ebb', 'target': 'sha1:07d6abde28d41f179d2a6eea6a80b221b74188fc'}
2021-09-30 11:57:41,200 - datasets - ERROR - Generation from DatasetGraph failed.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-bbbf956caa81> in <module>
      1 ds_in = Dataset.load('20_newsgroups')
----> 2 print(ds_in.DESCR)

AttributeError: 'NoneType' object has no attribute 'DESCR'

Could I please ask if you might have tried launching the notebooks on a fresh machine?

Workaround
Manually change this file to have the correct hashes:
https://github.com/hackalog/vectorizers_playground/blob/84cd7fdd2048d7663ba65897c92a6709317b8017/catalog/datasets/20_newsgroups.json#L1-L9
Specifically, change target to sha1:5de7194d26d9f956834624fa18a54d8892efa606
Then re-run ds = Dataset.load('20_newsgroups_pruned') and it should work without errors.


text:
hello dear

unfortunately, not work on ios 15 rootless jailbreak.

hello. I updated it :)

thanks i tried it many times but got this error every time
Okay. It's ready to decrypt "bundle id"'s binary
Launching the app...
Something went wrong. retry

It seems that the tweak didn't get injected into the target process properly
If it works fine, you should see these logs on Console.app
[hackcatml] mldecryptor start
[hackcatml] binary dump started
[hackcatml] binary dump done at /var/mobile/Documents/xxx.decrypted

Other tweaks are working well on your device?
I should mention that the rootless version was only tested on iPhone X iOS 15.6.1 palera1n jb. Therefore, It might not work on dopamine jb...

it's may be dopamine related issue nvm thanks a a lot for your tries
and i would thank you again about your amazing blog but in ios section some articles need password to read can i read this articles

Unfortunatly, It isn't working..
It is stuck when I was trying to attemp for decrypt.
`mldecrypt -b com.frograms.WATCHAPLAY
Okay. It's ready to decrypt "com.frograms.WATCHAPLAY"'s binary
Launching the app...
Something went wrong while decrypting binary. retry`

This is my dependancies problem. It seems to similar the bfdecrypt.
I have installed several modules, including ldid, altlist and they work fine. It would be nice to specify the required dependency modules in the readme.

This is my dependancies problem. It seems to similar the bfdecrypt.
I have installed several modules, including ldid, altlist and they work fine. It would be nice to specify the required dependency modules in the readme.

This is my dependancies problem. It seems to similar the bfdecrypt. I have installed several modules, including ldid, altlist and they work fine. It would be nice to specify the required dependency modules in the readme.

I updated the readme, thanks

authors: HK78-HAHA Mabdelwanis hackcatml hyunjong-prestolabs

repo: hackcatml/mldecrypt


text:
devilSpider - Eric Hou

My artwork is a spider with devil horns resting on a web.  I have coded in the past but have not used js graphics libraries like turtle so this was a learning experience for me. The eyes body and shadow are made simple jump/arc functions. The legs are made using a function called drawAngledLine which takes in several parameters to draw a 2 angled lines that converge. Then a for loop calls each one a few times, changing parameters slightly to curve around the spider, define number of legs, etc. The horns are created using nurbs and the web is created using concentric circles and spokes within a function drawWeb.

This should be approved but you seem to have messed up the PR. I took care of it for you and added it myself.

authors: hyweric leomcelroy

repo: hackclub/blot


text:
RandomTreeGen-Aradhya

This artwork is a tree upside down with leaf (represented as circles!) and it is randomly generated by a randSeedGen. I spent around 6 hours coding this and going through the docs and I am happy with the results. Overall, I liked this project a lot and I would love to get a Blot to try this out irl! Thanks, aradhya

Thanks for the submission. I think this may be too simple to earn a Blot. Could you add some thickness to the branches and make it look more natural?

authors: Aradhya-Shaswat leomcelroy


text:
THE FUN OBJ - Blot project by Anubhav

Write a short description about your art piece, such as what your artwork represents and your experience drawing it!
Next, make sure you go through each item in the following checklist. Delete this line after!

[x] I have read the steps to getting a blot
[x] I am submitting art that...

[x] is algorithmically generated (will meaningfully change each time the program is run)
[x] is your own work that is not copied from somewhere else
[x] is drawable through the editor(does not use outside tools)
[x] doesn't call Math.random() (See the documentation on randomness)
[x] is drawable on Blot itself (doesn't have lines overlap more than 5 times)

[x] Doesn't overlap lines more than 5 times
[ ] Fits in the working area of 125x125mm
[x] Doesn't rely on colour to look good

If you used based your art on something else, used a tutorial, or remixed it from something else, please link it here:
Lastly, link a picture of your art piece here:

Hey! This project is a good start, but is too simple. I would love to see you keep working at it!
PS, DocDimensions have to be 125x125! You have yours set to 433x433

Just an update, I will be closing this PR! Please create a new PR once you have updated your art! We are doing this due to new management of the PR system.

authors: AnubhavSC Dongathan-Jong


text:
Rename winpad to winpad-67

#22 and #67 (mine) are both named "winpad" but capitalized differently. This just renames mine to winpad-67 to avoid confusion

lgtm, thanks for making this!

authors: grimsteel qcoral

repo: hackclub/hackpad


text:
Block Stacker

Your checklist for this pull request
Author name
Author: vracto

About your game
What is your game about?
Stack blocks on top of each other! Can you get to the top?!

How do you play your game?
It's simple! Just press s to place a block.

Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Image (If an image is used)

[x] The image is in the /games/img directory.
[x] The name of the image matches the name of your file.

Thanks for your PR!

Your game is superb, and is really entertaining! What about adding more levels to make it a challenge? Also, what about adding a key to restart the game?

Your game is superb, and is really entertaining! What about adding more levels to make it a challenge? Also, what about adding a key to restart the game?

That's a great idea! I'm not really sure about adding more levels, but I could definitely add a restart button.

authors: savinajabbo vracton

repo: hackclub/sprig


text:
Add issue175&176&177

Pull Request Template
Description
Hatsコントラクト、FractionTokenコントラクト、SplitsCreatorコントラクト用のReact Hooksを追加しました。
そのほか、READMEへの環境変数のメモ書き追加
frontend の .env.example ファイルの更新
pilmco用のReact Hooksへのコメントを追記しています。
確認お願いします！
Fixes
#175
#176
#177
Type of change

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

Screenshots

あと、フロントエンド ビルド用の GitHub Actionsファイルの追加してみました！

以下は、GitHub Copilotで出力された このプルリクエストの要約です。
This pull request includes several updates and new features across multiple files, primarily focused on integrating new smart contract addresses, adding new React hooks, and importing additional dependencies. Below is a summary of the most important changes:
Environment Variable Updates:

Added new environment variables for VITE_HATS_ADDRESS, VITE_FRACTION_TOKEN_ADDRESS, and VITE_SPLITS_CREATOR_ADDRESS in README.md and .env.example files. [1] [2]

React Hooks:

Added new hooks for useFractionToken, useHats, and useSplitsCreator to handle various functionalities related to Fraction Tokens, Hats, and Splits creation. [1] [2] [3]
Updated useBigBang and useSmartWallet hooks to include additional imports and comments for better readability and functionality. [1] [2] [3]

Contract Configurations:

Added new configurations for HATS_ADDRESS, FRACTION_TOKEN_ADDRESS, and SPLITS_CREATOR_ADDRESS in useContracts.ts.

Dependencies:

Added @hatsprotocol/sdk-v1-subgraph to package.json for subgraph functionalities.

Type Definitions:

Added a new type SplitsInfo in types.ts to define the structure for splits information.

repo: hackdays-io/toban


text:
jupyter notebook

The more we know about your system and use case, the more easily and likely we can help.
Environment info

OS: win10
App Version (Command/Ctrl + ,):v1.10.0

Description of the problem / feature request / question:
I have made a ipynb file, and sort to #jupyter lab. But compared to the  picture of Lepton
it seems don't have the run answer. How can I get the cell run answer ?
If possible, provide a sample gist or screenshot:

🤔 Lepton can only render the 'ipynb' files, not run the code inside them.

authors: hackjutsu wangxiatian

repo: hackjutsu/Lepton


text:
 +  causing page breaks + black pages

An article that I'm trying to convert to ePub using your tool is adding a significant amount of page breaks and black pages, increasing the size of the document from 11 pages (as per the PDF converter utility that I'm using) to over 129 pages using this utility.
The URL for reference is this: https://ethereum.org/en/developers/docs/smart-contracts/formal-verification/
Here are the screen prints:

Initially, I'm not sure page count is the right way to view it, as font size etc plays into it. That being said, 11 -> 129 says something bad is happening.
I have noticed this happening occasionally, but I didn't know what was causing it, and it was never annoying enough to try and fix.
Glancing at the specific part you referenced, it seems like after the link there's an icon. The summarizer isn't stripping this, so it gets read as an image. It's an svg image, so has no size, and therefore I render it the size of a page. Since it's inside the link attribute it's getting rendered inline, causing both the large page breaks and the odd full width justification.
One thing I wanted to do was just check if an image is all black or white, and if so, strip it. That might be enough to get this to work as necessary.

authors: brianblank erikbrinkman

repo: hafaio/repub


text:
Sound is chopped on background tabs

Oto uses time.Sleep, which is implemented by setTimeout. Such functions are throttled on background tabs on some browsers and audio are uglily chopped.

Probably this was already fixed.

repo: hajimehoshi/oto


text:
视频下方按钮被遮挡

视频下方控制条的 网页全屏按钮被遮挡
macos-chrome

有對應的bv號可以給出嗎

BV1ye411m72Q

我這裡沒有hi-res無損標識啊

有没有使用其它插件或者脚本？

authors: MengNianxiaoyao begierde hakadao

repo: hakadao/BewlyBewly


text:
[BUG]视频播放页面点击消息按钮后希望新打开标签页而不是在本页打开

环境
浏览器: Microsoft Edge
浏览器版本: 123.0.2420.97 (正式版本) (64 位)
BewlyBewly 版本: 0.16.4
问题描述
希望在播放视频的页面，点击消息按钮是新打开标签页而不是在本页打开，这样会中断视频的播放，新打开标签页似乎也是官方的使用逻辑，更符合使用习惯即边看视频边看消息通知。

预期结果
视频播放页面点击消息按钮打开新打开标签页，能够边看视频边看消息通知。

可以嘗試按ctrl或中鍵打開新頁面，暫時不打算修改

authors: Asakushen hakadao


text:
Tip is not working properly on resize

Hello!
I am using this awesome library within an Angular 10 app.
The issue I have with it is that on resize it is broken. Please note that this happens only when using the backdrop.
Without the backdrop, the tooltip follows its element flawlessly like on the demo page, but when you enable the backdrop, the backdrop itself is not updating accordingly, which results in it covering the highlighted element.
Thanks!

Will be fixed in next minor release.

@directcuteo
I have published v5.1. Test it out and let me know if it fixes your issue.

Thank you for your update!
Now it seems that when I resize, the first element (of the steps) gets focused instead of the currently active element.
The good thing is that the overlay doesn't overlap the element on resizing, but the problem is that it is always the first element that gets highlighted on the smallest window resize.

Ok, I think I see why this is happening.

I have released v5.1.1 Can you test it?

Now it's working great. Do you think there is a way to focus the element even if it goes out of the view because of resizing? Think of a layout with 2 columns where on resize, the second column goes under the first one and it is not longer visible. If the second column is highlighted by Ui Tour it won't scroll to remain in view (and I can't scroll either because of the backdrop). But if the resizing is done before focusing on that second column (for example when focusing on the first column), the library scrolls to it when it is the second column's turn to be focused, so this case works and actually it's visible on the demo page.

@directcuteo I understand what you mean, but, I think, it's not directly related to this bug report. Can you open a new bug report for automatic page scroll on page resize? I'll take a look when I have time.

sure, thanks again for solving this!

authors: directcuteo hakimio

repo: hakimio/ngx-ui-tour


text:
Place "Run Action" a the top of the right-click menu with a separator if possible.

Not high pty, but once we figure out re-ordering menu items, let's put Run Action at the top and possibly a separator and then the member actions.

Implementation in .13 looks good but move Run Action to top.

in 0.0.14

@richardschoen What other actions can you run?

We renamed Compile to Actions. So pretty much any CL command can be executed along with source member info or without source member info. Actions can be global or tied to a source type.

repo: halcyon-tech/code-for-ibmi


text:
I lost the ability to see my connections after upgrading to 1.5.6

The VS Code extension reporting features don't work unless you are connected.
Describe the bug
Upgraded to 1.5.6 from 1.5.5 and I no longer see my connection in the list
Before:

After:

Looking in the settings.json document all my connections and filters are still there.
I have reverted back to 1.5.5 and they appear again.

Weird. No issue here on 1.5.6:

Any way to turn on a start-up logger?  Maybe see a message if there is another extension interfering?  By the way, I am at VSC 1.70.2.

Okay, new stuff.  I tried to recreate my connection to see what happens.

Oh, that is weird. Have you tried uninstalling the extension and reinstalling the extension at all?

It works when I downgrade to 1.5.5 but I have not tried to completely remove the extension.
Extension not installed.

Extension installed via IBM i Development Pack v0.0.8

Whoo! Hoo!  Back to working!
Is there an easier way to uninstall using the Development pack?

@m-tyler weird. It's entirely possible that something went wrong with the installation. 1.5.6 didn't really touch anything to do with connections.

Well at least I know a way to attempt to resolve this issue if it appears again.

authors: m-tyler worksofliam

repo: halcyon-tech/vscode-ibmi


text:
State save update

saves spaceship variables

idk why it says most of the files are in conflict they weren't changed at all... recognizes copy/paste of files possibly..


text:
⚠ ClamAV has degraded performance

In 27fe764, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 204 ms

Resolved: ClamAV performance has improved in 518a847.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

In c09e2dd, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 88 ms

Resolved: ClamAV performance has improved in 0d59503 after 5 minutes.


text:
⚠ ClamAV has degraded performance

In b04bd08, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 228 ms

Resolved: ClamAV performance has improved in c67bd30 after 11 minutes.


text:
⚠ ClamAV has degraded performance

In 1a4f0b7, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 211 ms

Resolved: ClamAV performance has improved in bc1bd6e.


text:
⚠ ClamAV has degraded performance

In 5732539, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 205 ms

Resolved: ClamAV performance has improved in 01d2d22.


text:
Add support for selectors

If element isn't HTMElement, try to use querySelector method.
Issue: #1220

@jtangelder ping

So I will rework this PR.


text:
overlap assembly and coverage trimming to create VariantSequence candidates

The primary change in this branch is that I added a variant_cdna_sequence_assembly option to the call chain which determines the cDNA sequence from reads (and a corresponding --variant-sequence-assembly option to the CLI). I also added coverage statistics and trimming by coverage to VariantSequence.
Less important changes:

Reorganized ReferenceContext by moving the namedtuples from which it inherits fields into separate modules and renaming them to ReferenceSequenceKey and ReferenceCodingSequenceKey.
Turned simple functions for constructing objects (e.g. allele read from locus read) into class methods.
Caching PyEnsembl on Travis

TODO for a future branch:

If we can't establish a ReferenceContext for a variant sequence with only 1 reading supporting the very beginning of its sequence, try trimming to the next highest coverage level(s) until a reference context can be established. (https://github.com/hammerlab/isovar/issues/58)

merge overlapping paired reads into single LocusRead objects (extends the length of sequences we can construct). (https://github.com/hammerlab/isovar/issues/59)

This change is

Coverage decreased (-0.5%) to 86.411% when pulling dcfd2ed6a0d21209b125851d5e68b03cad972e18 on use-assembly-and-trimming into f60e65458272406cc97dd8b1f15277bee3b5dbf9 on master.

authors: coveralls iskandr

repo: hammerlab/isovar


text:
Update netty-codec, ... to 4.1.104.Final

About this PR
📦 Updates

io.netty:netty-codec
io.netty:netty-transport-native-epoll
io.netty:netty-transport-native-kqueue

from 4.1.101.Final to 4.1.104.Final
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.netty" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.netty" }
}]

labels: library-update, commit-count:1

Superseded by #180.

repo: hanabix/akka-stream-netty


text:
希望能出一个代理功能

希望能出一个 代理功能 就是能让扫描任务/资产收集任务 都能挂上扫描 要不然worker被封完了就玩完了

也考虑过相类的功能，不过考虑到Nemo只是做信息收集为主，大部份主动请求都属于非攻击行为，在可控的范围内封IP的可能性较低；如果主动扫描频率较多，可考虑使用-m模式，不同的收集行为部署到多个VPS上，对主动扫描较多的功能多分配VPS资源。
-m string
worker run task mode; 0: all, 1:active, 2:finger, 3:passive, 4:pocscan, 5:custom; run multiple mode separated by "," (default "0")
1：主动扫描（主要是指nmap和masscan扫描）
2：指纹收集
3、被动收集，包括域名收集及fofa等
4、漏洞验证：goby、nuclei、xray及dirsearch

主要是有考虑到有时候国内的vps扫不了国外某些站 但是买多个vps开销有点大 。而且如果有代理功能的话，可以代理到内网扫描 这样就可以充分发挥nemo的效果了
---原始邮件---
发件人: @.>
发送时间: 2023年9月6日(周三) 上午8:32
收件人: @.>;
抄送: @.@.>;
主题: Re: [hanc00l/nemo_go] 希望能出一个代理功能 (Issue #119)
也考虑过相类的功能，不过考虑到Nemo只是做信息收集为主，大部份主动请求都属于非攻击行为，在可控的范围内封IP的可能性较低；如果主动扫描频率较多，可考虑使用-m模式，不同的收集行为部署到多个VPS上，对主动扫描较多的功能多分配VPS资源。
-m string
worker run task mode; 0: all, 1:active, 2:finger, 3:passive, 4:pocscan, 5:custom; run multiple mode separated by "," (default "0")
1：主动扫描（主要是指nmap和masscan扫描）
2：指纹收集
3、被动收集，包括域名收集及fofa等
4、漏洞验证：goby、nuclei、xray及dirsearch
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

有代理能增加使用的灵活性，这个毋庸置疑，后续考虑看如何能方便地实现。
目前这个需求也可以通过其它方式解决，比如通过类似proxifier这种全局的透明代理来实现，linux下可以用tun2socks来实现。

了解

由于Nemo的特点是大量使用第三方组件，每个组件对代理的支持的方式和能力都不尽相同，因此建议通过第三方工具和技术，通过全局代理的方式来达到代理Worker的网络流量的目的。
目前从实战中总结来说，经过比较和测试，比较推荐的方式为：
Windows/MacOS：proxifier+socks5代理
Linux：iptables+redsocks+socks5代理
proxifier在实战对抗中通过反向代理进行内网渗透的利器，具有GUI界面的易用性、规则配置的灵活性，具体使用方法可参照网上的教程。
iptables+redsocks的使用，请参见安装文档


text:
16k训练参数

您好，请问如果选择16k的数据来进行训练的话，需要修改参数吗 ^-^

修改一下
kernel_size:32 # 2ms
stride: 16 # 1ms
https://github.com/hangtingchen/Beam-Guided-TasNet/blob/39c7002d4b2c62ccb6a431dc5724f01fa2792f6f/local/net2_noncausal.yml#L5

感谢！！

authors: hangtingchen quancs

repo: hangtingchen/Beam-Guided-TasNet


text:
Unexpected behavior with a bullet point character •

Say, I have a string
    char8_t text[] = u8"• test\n - two\n ••    three\n-• four\n";

I would like to substitute any number of consecutive blank characters, -, or • with just a single space. I tried the following:
    char8_t* b = text + std::size(text)-1;
    for (char8_t* r = text;;) {
      auto m = ctre::search<u8R"([\s\-•]+)">(r,b);
      if (!m) break;
      char8_t* w = m.begin();
      r = m.end();
      if (r==b) {
        b = w;
        break;
      }
      *w++ = ' ';
      if (w!=r) {
        memmove(w,r,b-r);
        b -= r-w;
        r = w;
      }
    }
    *b = '\0';

    cout << ((char*)text) << endl;

But this results in
    • test two •• three • four

I'm including <ctre-unicode.hpp>.
Is this a bug or the intended behavior?
At first, I thought that maybe the problem is with putting a • inside [], because maybe [] only accepts single-byte characters and escape sequences, but I get the same output with (?:[\s\-]|•)+ as with the original [\s\-•]+. And \P{L}+ results in, what I'm assuming is, removal of only some of the bytes comprising the • characters:
    � test two � � three � four

Here's a godbolt link.

Currently with two iterators you can't trigger special utf8 iterators.
This is a workaround: https://godbolt.org/z/Kz5arc1qE
Not sure how to do it nicely, your other options are in wrapper.hpp lines 156-184
Keeping this open, if I found a better solution.

It's actually based on type of argument's iterator. You can always take std::string_view and mark it ctre::utf8_range.
The name of "function" just names the algorithm, type of arguments marks the semantics of code-unit/code-points. Making _u8 function would lead into making _u16 and _u32 functions which is not something I want to do.

authors: hanickadot ivankp


text:
Faulty Regex matching

I have the following regex that matches emails taken from emailregex.com's Perl/Ruby section and escaped to be interpreted correctly in a string:
(?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()<>@,;:\\\\\".\\[\\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\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*))*)*:(?:(?:\\r\\n)?[ \\t])*)?(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*))*@(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*))*\\>(?:(?:\\r\\n)?[ \\t])*))*)?;\\s*)

AFAIK this is escaped correctly.
I use the following sample program with the single header version of CTRE:
#include "ctre.h"
#include <iostream>
#include <string>

int main(){
	auto matcher = ctre::match<"<insert regex pattern here>">;
	while(true){
		std::string str;
		std::cin >> str;

		if(matcher(str)){
			std::cout << "true" << std::endl;
		}else{
			std::cout << "false" << std::endl;
		}
	}
}

When compiled on Windows with Clang 14 + MinGW, the following behaviour was observed:
asdfg2222@gmail.com
true
asdfgg2222@gmail.com
true
asdfgg1111@gmail.com
false
asdfgg3333@gmail.com
false
asdfgg4444@gmail.com
true
asdfgg44@gmail.com
true
asdfgg33@gmail.com
false
asdfgg22@gmail.com
true
asdfgg11@gmail.com
false
asdfgg33@gmail.com
false

I cross-checked the result with regex101.com on PCRE2 mode with the original regex from emailregex.com and all of these should be outputting true
Note that only Clang seems to compile this sample program with 16 GiB of RAM, GCC will use at least 90 GiB of RAM if you try to compile that with it.

Holy hell, that is one enormous testcase.
I believe it can be reduced to
#include <ctre.hpp>
#include <iostream>
#include <string>

int main(){
	auto matcher = ctre::match<"[\\000-\\031]+">;
	if(true){
		std::string str = "111";

		if(matcher(str)){
			std::cout << "true" << std::endl;
		}else{
			std::cout << "false" << std::endl;
		}
		str = "222";

		if(matcher(str)){
			std::cout << "true" << std::endl;
		}else{
			std::cout << "false" << std::endl;
		}
	}
}

https://godbolt.org/z/946r8xWPc

Thanks a lot, I didn't realize \0xx wasn't supported. The following regex works now:
(?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()<>@,;:\\\\\".\\[\\] \\x00-\\x19]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\x00-\\x19]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?: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?[ \\t])*)?(?:[^()<>@,;:\\\\\".\\[\\] \\x00-\\x19]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\x00-\\x19]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*))*@(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\x00-\\x19]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\x00-\\x19]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*))*\\>(?:(?:\\r\\n)?[ \\t])*))*)?;\\s*)

authors: Alcaro the-sageman


text:
adds course resource, adds punctuation consistency

Hi! I created an item for britco and also updated a few other items so that there's a consistent style for the Summary section (some items had periods at the end of the description, and some didn't. most did, so i added for the few that didn't!)

Thank you!

authors: desirottman hankchizljaw


text:
open_base.py训练有bug , mat1 and mat2 shapes cannot be multiplied

Describe the bug
open_base.py训练有bug
mat1 and mat2 shapes cannot be multiplied (800x256 and 768x1536)
Code to reproduce the issue
# -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-12-03 14:24

import os
from hanlp.common.dataset import SortingSamplerBuilder
from hanlp.common.transform import NormalizeCharacter
from hanlp.components.mtl.multi_task_learning import MultiTaskLearning
from hanlp.components.mtl.tasks.constituency import CRFConstituencyParsing
from hanlp.components.mtl.tasks.dep import BiaffineDependencyParsing
from hanlp.components.mtl.tasks.ner.tag_ner import TaggingNamedEntityRecognition
from hanlp.components.mtl.tasks.pos import TransformerTagging
from hanlp.components.mtl.tasks.sdp import BiaffineSemanticDependencyParsing
from hanlp.components.mtl.tasks.srl.bio_srl import SpanBIOSemanticRoleLabeling
from hanlp.components.mtl.tasks.tok.tag_tok import TaggingTokenization
from hanlp.datasets.ner.msra import MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_TRAIN, MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_DEV, \
    MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_TEST
from hanlp.datasets.parsing.ctb8 import CTB8_POS_TRAIN, CTB8_POS_DEV, CTB8_POS_TEST, CTB8_SD330_TEST, CTB8_SD330_DEV, \
    CTB8_SD330_TRAIN, CTB8_CWS_TRAIN, CTB8_CWS_DEV, CTB8_CWS_TEST, CTB8_BRACKET_LINE_NOEC_TRAIN, \
    CTB8_BRACKET_LINE_NOEC_DEV, CTB8_BRACKET_LINE_NOEC_TEST
from hanlp.datasets.parsing.semeval16 import SEMEVAL2016_TEXT_TRAIN_CONLLU, SEMEVAL2016_TEXT_TEST_CONLLU, \
    SEMEVAL2016_TEXT_DEV_CONLLU
# from hanlp.datasets.srl.ontonotes5.chinese import ONTONOTES5_CONLL12_CHINESE_TEST, ONTONOTES5_CONLL12_CHINESE_DEV, \
#     ONTONOTES5_CONLL12_CHINESE_TRAIN
from hanlp.layers.embeddings.contextual_word_embedding import ContextualWordEmbedding
from hanlp.layers.transformers.relative_transformer import RelativeTransformerEncoder
from hanlp.utils.lang.zh.char_table import HANLP_CHAR_TABLE_JSON
from hanlp.utils.log_util import cprint

root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))

def cdroot():
    """
    cd to project root, so models are saved in the root folder
    """
    os.chdir(root)

n_batch_size = 8

tasks = {
    'tok': TaggingTokenization(  # 分词
        CTB8_CWS_TRAIN,
        CTB8_CWS_DEV,
        CTB8_CWS_TEST,
        SortingSamplerBuilder(batch_size=n_batch_size),
        max_seq_len=510,
        hard_constraint=True,
        char_level=True,
        tagging_scheme='BMES',
        lr=1e-3,
        transform=NormalizeCharacter(HANLP_CHAR_TABLE_JSON, 'token'),
    ),
    # 'pos': TransformerTagging(  # 词性
    #     CTB8_POS_TRAIN,
    #     CTB8_POS_DEV,
    #     CTB8_POS_TEST,
    #     SortingSamplerBuilder(batch_size=n_batch_size),
    #     hard_constraint=True,
    #     max_seq_len=510,
    #     char_level=True,
    #     dependencies='tok',
    #     lr=1e-3,
    # ),
    'ner': TaggingNamedEntityRecognition(  # 实体  mat multi mat erro
        MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_TRAIN,
        MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_DEV,
        MSRA_NER_TOKEN_LEVEL_SHORT_IOBES_TEST,
        SortingSamplerBuilder(batch_size=n_batch_size),
        lr=1e-3,
        secondary_encoder=RelativeTransformerEncoder(768, k_as_x=True),
        dependencies='tok',
    ),
    # 'srl': SpanBIOSemanticRoleLabeling(  # 依存句法  download error
    #     ONTONOTES5_CONLL12_CHINESE_TRAIN,
    #     ONTONOTES5_CONLL12_CHINESE_DEV,
    #     ONTONOTES5_CONLL12_CHINESE_TEST,
    #     SortingSamplerBuilder(batch_size=n_batch_size, batch_max_tokens=2048),
    #     lr=1e-3,
    #     crf=True,
    #     dependencies='tok',
    # ),
    # 'dep': BiaffineDependencyParsing(  # 成分句法
    #     CTB8_SD330_TRAIN,
    #     CTB8_SD330_DEV,
    #     CTB8_SD330_TEST,
    #     SortingSamplerBuilder(batch_size=n_batch_size),
    #     lr=1e-3,
    #     tree=True,
    #     punct=True,
    #     dependencies='tok',
    # ),
    # 'sdp': BiaffineSemanticDependencyParsing(  # 语义依存
    #     SEMEVAL2016_TEXT_TRAIN_CONLLU,
    #     SEMEVAL2016_TEXT_DEV_CONLLU,
    #     SEMEVAL2016_TEXT_TEST_CONLLU,
    #     SortingSamplerBuilder(batch_size=n_batch_size),
    #     lr=1e-3,
    #     apply_constraint=True,
    #     punct=True,
    #     dependencies='tok',
    # ),
    # 'con': CRFConstituencyParsing(  # 语义角色 memory out
    #     CTB8_BRACKET_LINE_NOEC_TRAIN,
    #     CTB8_BRACKET_LINE_NOEC_DEV,
    #     CTB8_BRACKET_LINE_NOEC_TEST,
    #     SortingSamplerBuilder(batch_size=n_batch_size),
    #     lr=1e-3,
    #     dependencies='tok',
    # )
}

mtl = MultiTaskLearning()
save_dir = 'data/model/mtl/open_tok_pos_ner_srl_dep_sdp_con_electra_small'
# save_dir = 'data/model/mtl/open_tok_pos_ner_srl_dep_sdp_con_electra_base'
# save_dir = 'data/model/mtl/open_tok_pos_ner_bert_base'
mtl.fit(
    ContextualWordEmbedding('token',
                            # "bert-base-chinese",
                            "hfl/chinese-electra-180g-small-discriminator",
                            # "hfl/chinese-electra-180g-base-discriminator",
                            average_subwords=True,
                            max_sequence_length=510,
                            word_dropout=.1),
    tasks,
    save_dir,
    1,  # 30
    lr=1e-3,
    encoder_lr=5e-5,
    grad_norm=1,
    gradient_accumulation=2,
    eval_trn=False,
)
cprint(f'Model saved in [cyan]{save_dir}[/cyan]')
mtl.load(save_dir)
for k, v in tasks.items():
    v.trn = tasks[k].trn
    v.dev = tasks[k].dev
    v.tst = tasks[k].tst
metric, *_ = mtl.evaluate(save_dir)
for k, v in tasks.items():
    print(metric[k], end=' ')
print()
print(mtl('华纳音乐旗下的新垣结衣在12月21日于日本武道馆举办歌手出道活动'))

Describe the current behavior
python open_base.py 运行报错
RuntimeError: mat1 and mat2 shapes cannot be multiplied (800x256 and 768x1536)
Expected behavior
程序正常训练
System information

centos-release-7-9.2009.1.el7.centos.x86_64
python=3.6.4
hanlp=2.1.0a65

Other info / logs
Using GPUs: [0]
Epoch 1 / 1:
1/24919 loss: 0.7001 ETA: 43 m 14 sTraceback (most recent call last):
File "hanlp_train.py", line 135, in
eval_trn=False,
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/components/mtl/multi_task_learning.py", line 644, in fit
**tasks)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/common/torch_component.py", line 295, in fit
overwrite=True))
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/components/mtl/multi_task_learning.py", line 287, in execute_training_loop
**self.config)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/components/mtl/multi_task_learning.py", line 346, in fit_dataloader
output_dict, _ = self.feed_batch(batch, task_name)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/components/mtl/multi_task_learning.py", line 687, in feed_batch
decoder=self.model.decoders[task_name]),
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/components/mtl/tasks/init.py", line 182, in feed_batch
return decoder(h, batch=batch, mask=mask)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/components/mtl/tasks/ner/tag_ner.py", line 35, in forward
contextualized_embeddings = self.secondary_encoder(contextualized_embeddings, mask=mask)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/layers/transformers/relative_transformer.py", line 309, in forward
x = layer(x, mask)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/layers/transformers/relative_transformer.py", line 263, in forward
x = self.self_attn(x, mask)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/hanlp/layers/transformers/relative_transformer.py", line 135, in forward
qv = self.qv_linear(x)  # batch_size x max_len x d_model2
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 103, in forward
return F.linear(input, self.weight, self.bias)
File "/home/xy/miniconda3/envs/py364_xy/lib/python3.6/site-packages/torch/nn/functional.py", line 1848, in linear
return torch._C._nn.linear(input, weight, bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (800x256 and 768x1536)

[x] I've completed this form and searched the web for solutions.

不是bug，你既然将Electra从base改成了small，就应当将secondary_encoder的维度改成small的256，即：
secondary_encoder=RelativeTransformerEncoder(768, k_as_x=True),
--->
secondary_encoder=RelativeTransformerEncoder(256, k_as_x=True),

感谢何老师的指正！

authors: Kalafinaian hankcs

repo: hankcs/HanLP


text:
CRF model bin文件可以怎么生成对应的txt文件吗

想在C++环境里用hanlp里的CRF分词模型，但不知道怎么解析。
如果能转换为对应的txt文件，就可以使用CRF++来转换读取了
如果不能生成为txt文件的话， @hankcs 可以分享一份吗，谢谢！

无此功能
CRFSegmentModel.txt是CRF++训练出来的文本模型，转成bin之后就删掉了。

@hankcs 了解了，谢谢~

@hankcs 请问是如何将训练出来的.txt文件转换为.bin 的呢？我的目的是希望使用自己用CRF++训练出来的模型代替HanLP提供的模型。希望有时间能回答一下，谢谢！

@Jactor-Sue 请参考：https://github.com/hankcs/HanLP/wiki/FAQ#为什么加载我自己训练的crf模型失败了

authors: Jactor-Sue hankcs jkneng


text:
Is there a way to create entity mapping automatically?

Is there a way to automatically capture the new ID of an entity spawned from the snapshot? Or I need a mechanism to match a new entity ID to the old one manually, like in the pipeline example, where they're matched by the position
upd
What I need to achieve:
I have a tilemap, a tile storage stores IDs of tile entities that belong to it. After I load tiles and the storage from the save file all tiles have new IDs so tile storage now contains invalid entity IDs. I wasn't able to figure out how to do that yet. The only idea is, like in the pipeline example, to manually map entity IDs based on some tile props. Is that the only way?

Just in case someone bumps into this question: it is actually created automatically. If you need to map entities referenced inside a component, you need to implement MapEntities trait for it and the rest will be done for you.
Simple example
use bevy::ecs::entity::MapEntities;
// this thing is needed for #[reflect(Component, MapEntities)]
use bevy::ecs::reflect::ReflectMapEntities;
use bevy::prelude::*;

#[derive(Component, Reflect)]
#[reflect(Component, MapEntities)]
pub(crate) struct Inventory {
    entities: Vec<Entity>,
}

impl MapEntities for Inventory {
    fn map_entities<M: EntityMapper>(&mut self, entity_mapper: &mut M) {
        self.entities = self.entities
            .iter()
            .map(|entity| entity_mapper.map_entity(*entity))
            .collect();
    }
}


text:
What is the reason to store a list of values, instead of a running-sum/count pair?

The list monoid has the annoying property of being inefficient (caching concerns aside) when left-mappended in a long chain. This is particularly annoying since that's the way the Writer monad combines values.
The following definition should be equivalent to the current one as far as the intended use is concerned, and has no such problem:
data Average a = Average { weight :: Int
                         , averageAcc :: a
                         }

instance Num a -- or better: VectorSpace a
               => Monoid (Average a) where
  mempty = Average 0 0
  mappend (Average w₀ a₀) (Average w₁ a₁) = Average (w₀+w₁) (a₀+a₁)

average :: Fractional a => Average a -> a
average (Average w a) = a / fromIntegral w

Note that this does not interfere with the functor instance: the extra constraint is really only needed – and rightly so! – for Monoid. About Applicative I'm not sure, but I think this should also work somehow.
Is it really sensible to copy list's Applicative instance anyway, for that matter?

The Applicative instance should probably be
instance Hask.Applicative Average where
  pure = Average 1
  Average w₀ a₀ <*> Average w₁ a₁ = Average (w₀*w₁) (a₀ a₁)

The problem with pure = Average 1 is that it causes extremely confusing results when utilizing this instance. I do not think Applicative is an appropriate instance for this monoid.

@eborden you may be right, I also don't subscribe to making every type an instance of every class just because it's possible. Although pure = Average 1 by itself seems perfectly intuitive to me; do you have any particular example of confusing results that would arise from the instance I proposed?

I'm going to move the conversation about the Applicative instance to #4

authors: eborden leftaroundabout

repo: hanshoglund/average


text:
Is it normal when launching a model worker?

It failed at last....
last few lines:
2023-04-25 14:30:18 | ERROR | stderr |     self._send_request(method, url, body, headers, encode_chunked)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\http\client.py", line 1328, in _send_request
2023-04-25 14:30:18 | ERROR | stderr |     self.endheaders(body, encode_chunked=encode_chunked)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\http\client.py", line 1277, in endheaders
2023-04-25 14:30:18 | ERROR | stderr |     self._send_output(message_body, encode_chunked=encode_chunked)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\http\client.py", line 1037, in _send_output
2023-04-25 14:30:18 | ERROR | stderr |     self.send(msg)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\http\client.py", line 975, in send
2023-04-25 14:30:18 | ERROR | stderr |     self.connect()
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\urllib3\connection.py", line 205, in connect
2023-04-25 14:30:18 | ERROR | stderr |     conn = self._new_conn()
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\urllib3\connection.py", line 186, in _new_conn
2023-04-25 14:30:18 | ERROR | stderr |     raise NewConnectionError(
2023-04-25 14:30:18 | ERROR | stderr | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000002A68ECEECE0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
2023-04-25 14:30:18 | ERROR | stderr |
2023-04-25 14:30:18 | ERROR | stderr | During handling of the above exception, another exception occurred:
2023-04-25 14:30:18 | ERROR | stderr |
2023-04-25 14:30:18 | ERROR | stderr | Traceback (most recent call last):
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\requests\adapters.py", line 489, in send
2023-04-25 14:30:18 | ERROR | stderr |     resp = conn.urlopen(
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
2023-04-25 14:30:18 | ERROR | stderr |     retries = retries.increment(
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\urllib3\util\retry.py", line 592, in increment
2023-04-25 14:30:18 | ERROR | stderr |     raise MaxRetryError(_pool, url, error or ResponseError(cause))
2023-04-25 14:30:18 | ERROR | stderr | urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=10000): Max retries exceeded with url: /register_worker (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002A68ECEECE0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。'))
2023-04-25 14:30:18 | ERROR | stderr |
2023-04-25 14:30:18 | ERROR | stderr | During handling of the above exception, another exception occurred:
2023-04-25 14:30:18 | ERROR | stderr |
2023-04-25 14:30:18 | ERROR | stderr | Traceback (most recent call last):
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\runpy.py", line 196, in _run_module_as_main
2023-04-25 14:30:18 | ERROR | stderr |     return _run_code(code, main_globals, None,
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\runpy.py", line 86, in _run_code
2023-04-25 14:30:18 | ERROR | stderr |     exec(code, run_globals)
2023-04-25 14:30:18 | ERROR | stderr |   File "A:\LLaVA\llava\serve\model_worker.py", line 361, in
2023-04-25 14:30:18 | ERROR | stderr |     worker = ModelWorker(args.controller_address,
2023-04-25 14:30:18 | ERROR | stderr |   File "A:\LLaVA\llava\serve\model_worker.py", line 122, in init
2023-04-25 14:30:18 | ERROR | stderr |     self.register_to_controller()
2023-04-25 14:30:18 | ERROR | stderr |   File "A:\LLaVA\llava\serve\model_worker.py", line 136, in register_to_controller
2023-04-25 14:30:18 | ERROR | stderr |     r = requests.post(url, json=data)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\requests\api.py", line 115, in post
2023-04-25 14:30:18 | ERROR | stderr |     return request("post", url, data=data, json=json, **kwargs)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\requests\api.py", line 59, in request
2023-04-25 14:30:18 | ERROR | stderr |     return session.request(method=method, url=url, **kwargs)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\requests\sessions.py", line 587, in request
2023-04-25 14:30:18 | ERROR | stderr |     resp = self.send(prep, **send_kwargs)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\requests\sessions.py", line 701, in send
2023-04-25 14:30:18 | ERROR | stderr |     r = adapter.send(request, **kwargs)
2023-04-25 14:30:18 | ERROR | stderr |   File "C:\ProgramData\anaconda3\envs\llava\lib\site-packages\requests\adapters.py", line 565, in send
2023-04-25 14:30:18 | ERROR | stderr |     raise ConnectionError(e, request=request)
2023-04-25 14:30:18 | ERROR | stderr | requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=10000): Max retries exceeded with url: /register_worker (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002A68ECEECE0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。'))

Hi, it seems a similar issue to this one: https://github.com/lm-sys/FastChat/issues/186
Have you launched the controller first before running the model worker?

You must follow the three steps:
launch a controller
launch a worker and connect to the controller
launch Gradio webserver and connect to the controller.
You cannot launch a server alone.

Closing the issue due to inactivity, please feel free to re-open if you meet any other issues, thanks.

repo: haotian-liu/LLaVA


text:
SearchNarrowInterceptor ignored during $lastn operation

NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug
SearchNarrowInterceptor ignored during $lastn operation.
To Reproduce
Steps to reproduce the behavior:

Implement SearchNarrowInterceptor
Add SearchNarrowInterceptor to interceptors
Enable lastn operation
Enable hibernate search elasticsearch

Expected behavior
Observation/$lastn operation should narrow result based on SearchNarrowInterceptor implementation
Screenshots
Environment (please complete the following information):

HAPI FHIR Version 6.4.4

Additional context
During the $lastn operation the OperationType is extended-operation-type which results in a true outcome of the below statement.
public class SearchNarrowingInterceptor {
    ...
    private boolean shouldSkipNarrowing(RequestDetails theRequestDetails) {
        return theRequestDetails.getRestOperationType() != RestOperationTypeEnum.SEARCH_TYPE
                   && !"$everything".equalsIgnoreCase(theRequestDetails.getOperation());
    }

Should the above code include the following statement:
&& !"$lastn".equalsIgnoreCase(theRequestDetails.getOperation());

See #4669

repo: hapifhir/hapi-fhir


text:
Can't connect, no matter what.

Here is a log of where I try to do a -d.
It just will not connect.
https://pastebin.com/KiLFqjXa
Running on rPi Raspbian Stretch on a ZeroW. Followed all the directions to a T. Tested ADB with another PC and it's working tip top.

Link is no longer valid. Please paste here directly.

Since there's no info about this issue, I'm going to close it. If it hasn't been resolved, feel free to reopen it or create a new one.

authors: Aareon JeffLIrion abuttino

repo: happyleavesaoc/python-firetv


text:
Add support for Prometheus metricRelabelings

Add an option to the ServiceMonitor to support metricRelabelings. This
allows post-scrape metric filtering and munging.
Signed-off-by: SuperQ superq@gmail.com

Hi thanks for the contribution! Can you confirm that this is a dupe of #43 and if it implements what you need?

Oh, yea, #43 mostly does what I need, if they fix the bugs.

authors: SuperQ jcmoraisjr

repo: haproxy-ingress/charts


text:
Enabled and fixed errors for SA1009

#1396

Waiting on this one. I think it will get conflicted with #1560

Waiting on this one. I think it will get conflicted with #1560

Ok. I also will wait for the mentioned PR is merged to fix conflicts if needed.

Conflicted here @kongory

Thanks!

repo: hardkoded/puppeteer-sharp


text:
Fix NPE in getTitle; Remove deprecated API

This change aims to fix a NPE when clicking side/bottom panel titles (which prevents click-expand operations of side panels), also removed a use of deprecated API

@haringsrob Hi, would you kindly have a look over this PR to see if it can be merged? Appreciated!

I will check to make a new release later this week

@bulbfreeman finally released this today, looks great as well thanks a lot!

authors: bulbfreeman haringsrob

repo: haringsrob/jetbrains-hide-title-bar


text:
Key Error while using limiting reagent function.

While using the limiting reagent function,
terminal cites line 337 :  data = [a[-1][mode.capitalize()] for a in eq_amounts]
and shows : KeyError: 'Grams'
This is code where it is used:
if eventlr == 'Apply':
x=int(float(valueslr['R1']))
y=int(float(valueslr['R2']))
lr = rxn.limiting_reagent(x, y, mode = type)
winlr('lr').Update(value=lr.formula)
It is a program made using pysimplegui and chemlib
type is a string variable (grams,moles or molecules)
and x and y are integers
Please Help

Thanks for pointing this out! The error was in the .capitalize() part - I removed that and it works.

Thanks for pointing this out! The error was in the .capitalize() part - I removed that and it works.

Thank you so much!
it works now!

authors: KevinDenzil harirakul

repo: harirakul/chemlib


text:
update rds-instance-reboot

Fix broke link typo
Signed-off-by: Smriti S smriti.satyanarayana@harness.io

Preview environment: https://ci.pr.harness.io/pr-181

authors: SmritiSatya bot-gitexp-user

repo: harness/developer-hub


text:
Update view-account-info-and-subscribe-to-alerts.md

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

authors: bot-gitexp-user brian-f-harness


text:
[PL-42522] PL tutorial - Configure OIDC with GCP WIF for Harness CI Cloud builds (beta feature)

PL tutorial - Configure OIDC with GCP WIF for CI hosted builds (beta feature)
For reviewers, a preview is available.
Configure OIDC with GCP WIF for CI hosted builds (beta feature)
What Type of PR is This?

[ ] Issue
[x] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


text:
Release notes

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: __________________________________
Jira/GitHub Issue numbers (if any): ______________________________
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

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

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6661b9d0b6fb070afa73612c--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6661bb60f9ae080081046f4c--harness-developer.netlify.app

authors: CLAassistant bot-gitexp-user joeyouss


text:
[PL-56171]: DEL 24.07.83608 RN

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: DEL 24.07.83608 RN
Jira/GitHub Issue numbers (if any): PL-56171
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66bcb67620e3ad9fb41ea085--harness-developer.netlify.app