Work around "a pure expression does nothing" warning, take 2

Fixes https://github.com/sbt/sbt/issues/6126
In #5981 I tried to work around the spruious post-macro "a pure expression does nothing" warning (scala/bug#12112) by trying to remove some pure-looking expressions out of the tree.
This quickly backfired when it was reported that sbt 1.4.3 was not evaluating some code. This backs out the macro-level manipulation, and instead try to silence the warning at the reporter level. This feels safer, and it seems to work just as well.

Nice workaround! Hopefully they don't change the warning in future scala versions.

It's back. Looks like the scripted test was not enough - https://github.com/sbt/sbt/issues/6161

Hopefully they don't change the warning text in future scala versions.

I'm not super concerned about this since we're in control of the Scala version used for the metabuild normally and this filtering will be applied only for the metabuild.

good point


add GitLab CI to the CI docs

Cargo supports GitLab CI natively for CI badges so include a basic
example of how to use it in the CI section of the documentation.

@bors: r+
👍

:pushpin: Commit f84ec4f has been approved by alexcrichton

:hourglass: Testing commit f84ec4fc5523472806669c9ae2afa763ee3837ce with merge c3b09c9680fce8ab70a49c8531fd8f84c2ccdff2...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing c3b09c9680fce8ab70a49c8531fd8f84c2ccdff2 to master...


🐛 [firebase_messaging 8.0.0-dev.5]  firebase_messaging 8.0.0-dev.5 not receiving notifications in ios simulator

Bug report
Describe the bug
firebase_messaging 8.0.0-dev.5  not receiving  notifications in ios simulator and token not come in android emulator
Steps to reproduce

Set up notifications as explained  in docs

run application in ios simulator IPhone 11 pro max & IPhone 12

Get token => success

liten onMessage stream

Send notification from firebase console

Not receiving any thing

Sets app in background

No headup notification

tested the same code in android emulator

token take to long time to come and after while throw an error that cannot conver hashmap to string

-tested the same code in android device
-every thing works fine

Same here

Notifications don't work on a simulator on iOS, you need a real device. One of the restrictions Apple (randomly) puts in place. I'll make this more obvious in docs.

@Ehesp Yes, it doesn't work.
But in the previous version of this pluging it appeared in the logs.

Ok so that worked via direct channels to FCM (think of it as a websocket) while the app is open, which allowed messages to be received while the app is open. In the latest Firebase SDKs they have removed this, and now everything goes via APNs, hence why you don't see messages in the foreground on a simulator anymore.

Going to close as working as expected - for the crashes, can you please make a new issue following the template with example code/payload etc, Cheers


False Alert. See #1 #2  Search for Pyinstaller false Virus alert.


Add some information about the docker build return code

Signed-off-by: Sven Dowideit<EMAIL_ADDRESS>

LGTM - @fredlf @jamtur01 @spf13 @moxiegirl

LGTM

LGTM


Limit results with with http response size range

Is there a simple way to filter out responses with N <= size <= M ?

There currently isn't. However it could be handled in a similar way than the delay ranges defined with -d are used. I'll label this issue as feature request.

With the #47 merged, you should now be able to say -fs 1024-1337 to filter out everything between 1024 and 1337 bytes @securitum !


Inactive Server - Back Online

Hi there, my server was marked as Inactive but is now reopen and back online.
Server IP: xenon.club
How can I go about getting this marked back as Active :)

Make a PR and remove it from the inactive.json file


Update file.md

fixing coverage map table formatting for autoruns and sysmon line breaks

Finished reviewing the rest of the page, everything else looks good


[CMS] We need to know how many testcases are there for each problem, even if no submission has been submitted yet.

As shown below, current we can only know how many testcases are there when there is a submission. We need to draw the barchart even when no submission.

get problem by id api


Can someone explain the instalation process for me?

As the name says, Im having trouble following the instructions, could anyone more experienced help a newbie?

Alright, any password requirements?

the username must use alphanumerical characters only aswell

Seems I can't find the folder you're talking about. You think that's even possible?

尝试清洁HKEY_CURRENT_USER \耐克森\ cso2 \ \软件设置

能加下你的QQ吗。 我有事情想找你 - -

Okay, I did find the folder, cleaned it, but any password I gave still chrashes the game.

Im using Windows 10 (Enterprise lol), my language is Polish

Also @GEEKiDoS have you had this issue before? I can't recreate this problem

Yes, but after clean that registry folder and using one character like "0" this issue fixed for me

Im using Windows 10 (Enterprise lol), my language is Polish

Enterprise 2019 LTSC here

@Ochii I guess that's the problem, I have it downloaded but I don't really know how to launch it

Since OP didn't reply, I'll assume that the issue is fixed


Warning issued if pgbackrest.conf contains repo1-retention-archive-type=diff

Hello,
We have configured pgbackrest with the repo1-retention-archive-type=diff option.
But when check_pgbackrest is used to check -s archives ... it will print a warning after the first differential backup is done as pbgackrest then removes the archives between the full backup and the latest diff backup, as instructed by the retention-archive-type option in pgbackrest.conf.
How can this warning be avoided as this is the expected behaviour with our configuration of pgbackrest?

Hi,
This isn't currently supported in check_pgbackrest. The archives service tends to check all of them. With your configuration, you lose the possibility to achieve PITR between your full and diff backups.
This behaviour is also not recommended by pgBackRest itself:
It is recommended that this setting not be changed from the default which will only expire WAL in conjunction with expiring full backups.

That's basically why you get a WARNING and not a CRITICAL alert.
I would have to take a look at the new time-based retention in pgBackRest and see if we have to add more options here to know how difficult it would be to support your specific feature request.

Hi!
Disclosure: I am affiliated with np422, we are working together.
Firstly, thanks for answering so fast!
I have been thinking a bit; Even if that setting is not recommended, it is still a valid configuration of pgBackRest. And there are some compelling situations where this might be a more than valid configuration. For example, if we ensure that we have all the WAL files in a different location, or perhaps just don't care about PITR between the last full backup and the last incremental.
Is there any way we can help in extending the check script?

Well, I'm not questioning your configuration. Just pointing out that it breaks the PITR possibility. That's why the archives check service is made for. And raising a WARNING in this case seems reasonable from this point of view.
The retention parameters haven't been implemented for that service. It would be a big code change and I'm not sure it would worth it. I will have a look soon at the new time-based retention (https://github.com/pgbackrest/pgbackrest/commit/cdebfb09e01e64d6acfe650345a56d2b1805374e) and see if it has an impact for check_pgbackrest or not. If I have to rework the retention settings, I might consider to touch the archives service too.
But it's more a "philosophy" issue. It's against the design goal of this service : PITR capability.

Not to be a stick in your behind, but PITR capability from a certain point in time (i.e last full backup or last incremental) is probably more what I have in mind when I design a backup strategy.
But I do get your point.

Well, with all my respect, you design your strategy the way you want. That's not the point here. Your feature request would be a big code change and against the original philosophy of this service. There are missing WAL archives in the repo (for any "good" reason or not), so a warning is raised.
Except if the support of the pgbackrest commit mentioned above requires a big change, and allows to support your request too, this feature won't be included.
Regards


Fix --exclude

If options[:pattern] has a leading slash, each file path in the glob
would have a double slash, causing the suffix to have a leading slash.
This leading slash is unexpected, as users want to pass options like
--exclude foo, not --exclude /foo.
This works because File.join("foo/", "/bar") == "foo/bar".

Thanks for the fix!


python dump.py 今日头条 执行一半进度条卡住

python dump.py 今日头条
WARNING: Executing a script that is loading libcrypto in an unsafe way. This will fail in a future version of macOS. Set the LIBRESSL_REDIRECT_STUB_ABORT=1 in the environment to force this into an error.
/Library/Python/2.7/site-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
m.add_string(self.Q_C.public_numbers().encode_point())
/Library/Python/2.7/site-packages/paramiko/kex_ecdh_nist.py:96: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.curve, Q_S_bytes
/Library/Python/2.7/site-packages/paramiko/kex_ecdh_nist.py:111: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
hm.add_string(self.Q_C.public_numbers().encode_point())
Start the target app 今日头条
Dumping 今日头条 to /var/folders/fq/xtctlqwd08q4c27cvbl_p5wm0000gp/T
[frida-ios-dump]: Load Flutter.framework success.
[frida-ios-dump]: Load skialite.framework success.
[frida-ios-dump]: Load App.framework success.
[frida-ios-dump]: Load AATTLaunchTimeTracker.framework success.
start dump /private/var/containers/Bundle/Application/BAC7A1DB-CDDA-4161-86A6-F8E455ED7C33/News.app/News
News.fid: 100%|██████████| 131M/131M [00:50<00:00, 2.72MB/s]
start dump /private/var/containers/Bundle/Application/BAC7A1DB-CDDA-4161-86A6-F8E455ED7C33/News.app/Frameworks/AATTLaunchTimeTracker.framework/AATTLaunchTimeTracker
AATTLaunchTimeTracker.fid: 100%|██████████| 91.8k/91.8k [00:00<00:00, 414kB/s]
start dump /private/var/containers/Bundle/Application/BAC7A1DB-CDDA-4161-86A6-F8E455ED7C33/News.app/Frameworks/App.framework/App
App.fid:  11%|█         | 816k/7.21M [00:00<00:28, 236kB/s]
ssh 报错
Requesting connecion to device handle == 451 (serial: 1ef2763118117ecbc1951af1a7b7688cb5f342b5), port 22
run_ctos_loop: fd = 4
run_stoc_loop: fd = 4
recv failed: Resource temporarily unavailable
recv failed: Operation not permitted

用爱思助手重新把设备越狱一次，重新安装frida opensssh openssl,恢复了


When trying to add related publications to a dataset, or vice versa, only publications that the user has made appear, not all publications, even in Librarian view

Description of problem
When trying to add related publications, only publications that the user has made appear, not all publications, even in Librarian view
Desired behaviour
When in Librarian view and attempting to link to a publication, allow the librarian to search ALL publications in Biblio

Same issue also on publication? Related datasets?

Correct @netsensei


Zowe Conformance V2 - OPS/REXX Language Support Extension for VS Code - Zowe V2 App Framework

Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you including a repo_url? You need to pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Does the project meet the guidelines for new entries section?
[ ] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[ ] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[ ] Does your project name match the text on the logo?
[ ] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~5 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

All fixed now @yarille :-)

Awesome, thank you so much, @jmertic !


Endpoint healthz reported via command & in endpoint get

Summary of changes:
Added healthz to endpoint get and introduced endpoint healthz. It pretty prints and returns json
@tgraf I guessed on some of this logic, let me know if it is incorrect.
Sample output:
$ cilium endpoint healthz 175 --json
{
  "bpf": "OK",
  "connected": true,
  "health": "OK",
  "policy": "OK"
}

$ cilium endpoint healthz 175
Health:      OK
BPF:         OK
Policy:      OK
Connected:   yes

Fixes: #1277
Added cilium endpoint healthz command that returns a summary of the endpoint's health

How to test (optional):
Tests pass.
make clean && make generate-api && make reload
Note: There might be new/old files left in the api directory. In that case:
rm -rf ./api/ && git checkout -f

When an endpoint will be showed as Connected:   no?

@aanm I forgot to set the connected flag to anything but true. That is now fixed and the function is much smaller.

Soo, for all the folks in bpf, ci, docs, vendor and vagrant: I had a git/github booboo and it added you all to review. I think only api and janitors must review this. cli probably should review.

I put this into wip since I didn't commit the cli files and I deleted them :/ I will rebuilt them

Ok. Added the missing command back in, and renamed things so there are less zzz. I did not add the new states tgraf suggested.
cc @joestringer in case you wanted to see how the command was added.


Degrade performance for licensing reasons

This is a knock-on effect of the effort to open-source science-parse.

LGTM. @hsuhanooi we should keep this in mind if we ever need to rebuild pdffigures2 for figure extraction.

I suspect I have to find the figure extraction job and add in these extra dependencies there.

Turns out FE in the pipeline doesn't use this project. So it's all good.


feat!: Use MONGO_URI

Use mongo uri to support rs

Codecov Report

Merging #70 (3177cb5) into develop (5225fa4) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop      #70   +/-   ##
========================================
  Coverage    98.34%   98.34%
========================================
  Files           34       34
  Lines         6811     6811
========================================
  Hits          6698     6698
  Misses         113      113

Impacted Files
Coverage Δ

tests/test_mongo.py
30.00% <ø> (ø)

tests/test_translator.py
91.57% <ø> (ø)

splunk_connect_for_snmp_mib_server/mongo.py
87.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5225fa4...3177cb5. Read the comment docs.

:tada: This PR is included in version 1.8.0-develop.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Docker image cypress/factory does not support Yarn 3

Current Behavior
Cypress factory fails to install Yarn 3.
+ curl -fsSLO --compressed https://yarnpkg.com/downloads/3.5.0/yarn-v3.5.0.tar.gz
curl: (22) The requested URL returned error: 404
child process exited with code 22
The command '/bin/sh -c node /opt/installScripts/yarn/install-yarn-version.js ${YARN_VERSION}' returned a non-zero code: 22

Desired Behavior
We should be able to specify Yarn berry in the build args.
Test code to reproduce
Create a dockerfile like so
ARG CHROME_VERSION='107.0.5304.121-1'
ARG CYPRESS_VERSION='12.5.1'
ARG YARN_VERSION='3.5.0'

FROM cypress/factory

WORKDIR /app

COPY package.json ./
COPY .yarn/cache ./.yarn/cache
COPY .yarn/plugins ./.yarn/plugins
COPY .yarn/releases ./.yarn/releases
COPY .yarnrc.yml ./
COPY yarn.lock ./

RUN yarn install

Workaround
Current workaround is to specify Yarn 1 in the build arg, but then add a run step to set the version to Yarn 3 like so:
ARG CHROME_VERSION='107.0.5304.121-1'
ARG CYPRESS_VERSION='12.5.1'
ARG YARN_VERSION='1.22.19'

FROM cypress/factory

WORKDIR /app

COPY package.json ./
COPY .yarn/cache ./.yarn/cache
COPY .yarn/plugins ./.yarn/plugins
COPY .yarn/releases ./.yarn/releases
COPY .yarnrc.yml ./
COPY yarn.lock ./

# Upgrade to yarn 3 here:
RUN yarn set version berry
RUN yarn install

We currently only support yarn v1 in the docker factory. I think we could update the install script to support higher versions of yarn.

We currently only support yarn v1 in the docker factory. I think we could update the install script to support higher versions of yarn.

This would be awesome! And since we are talking about Yarn 3 support, figured I'd mention this other relevant issue here, since it most likely has to do with Cypress not finding Typescript in the cypress/factory image while using Yarn 3.

We currently only support yarn v1 in the docker factory. I think we could update the install script to support higher versions of yarn.

Hey seems like the curl install script of Yarn might not support Yarn 2.x and 3.x.
I found this thread regarding the same. I would like to discuss futher on handling Yarn installation on these version and hopefully to contribute on them

@mjhenkes can I work on this?

@anishpb97, Sure! (sorry for the delay)

@Joelasaur
Yarn Modern recommends installing using corepack, however this technology is still experimental and not suitable for production use, according to the Node.js documentation for corepack.
The workaround you described to install Yarn Modern using Yarn v1 Classic is for the moment the way that Cypress Docker images can support with good conscience. This can change, if/when Yarn and Node.js are able to recommended corepack for production use.
References

https://yarnpkg.com/getting-started/install
https://yarnpkg.com/corepack
https://nodejs.org/docs/latest/api/corepack.html
https://nodejs.org/docs/latest/api/documentation.html#stability-index
https://github.com/nodejs/corepack


Sync with https://github.com/practicalswift/swift-compiler-crashes

Add 5 compiler crashes.
Verified with utils/build-script -RT.

Verified tests passing on Ubuntu 14.04.


CSRF when using REST

I've read a lot of documentation on how CSRF is working with Yii 2 - this is really great because everything is working automatically. Now I'm using Yii 2 as a REST backend without using Yii2 views. So I am loosing Yii comfort, because I have to handle CSRF myself. My frontend consists of an Angular.js application. I really do not want to disable CSRF altogether, because I'm using cookies to authenticate users. Can we extend the docu on how to use Yii2 CSRF when creating an AJAX application? I've set the response format to FORMAT_JSON and because of this I have no meta tags, and so not a csrf meta tag, at all.
Do I have to extend the Yii2 response handler, so that every response contains the token? Or can I use cookies for that? I also have CORS enabled, so maybe I do not need CSRF at all? Can we extend Yii so that it outputs the CSRF token using another way (like cookies) when using FORMAT_JSON?

to be honest implementing a CSRF on a REST API i think is pointless

@fernandezekiel I really do not know exactly. I have CORS enabled, so the only domain that is allowed to make requests is the frontend. So XSS from other domains are prohibited because of CORS right? So I just have to make sure that I have no XSS flaws in my frontend and I am got to go right?

@grin1 when starting your angular application you have to pass the CSRF token to it in some way.
when doing ajax request, you have to pass the CSRF token as a header, e.g.:
        $http({
            url: "/myurl",
            method: "POST",
            headers: {
                'X-CSRF-Token': $scope.getCsrfToken()
            }
        })...

@cebe Yes, but how do I get this token? Yii normally adds it as meta tag or form tag (when using Yii views). But Yii offers no possibility to send the token via cookie or ajax response. Is this not a wanted core-feature?

@grin1 you should pass it in the initial HTML page that contains the angular application.
e.g.
<div
    ng-app="..."
    ng-controller="..."
    ng-init='csrfToken=<?= Json::htmlEncode(Yii::$app->request->csrfToken) ?>;'>

then application become yii + angular. I think what @grin1  want is a pure single page application.

@yasinn the process is basically the same but implementation will always depend from a client to another.
@grin1 First store the token somewhere after receiving it from server. Here is a login action example that returns the csrf_token as response:
public function actionLogin()
{
    $model = new LoginForm();

    if ($model->load(Yii::$app->request->bodyParams, '') && $model->login())
    {
        $client = Yii::$app->params['client'];
        $access_token = Yii::$app->security->generateRandomString();

        $cache = Yii::$app->cache;
        if ($cache->add($access_token, ['id' => Yii::$app->user->identity->id], $client->accessExpiry) === false)
            throw new ServerErrorHttpException('Failed for unknown reason.');

        return [
            'user' => [
                'name' => Yii::$app->user->identity->username,
                'email' => Yii::$app->user->identity->email,
            ],
            'grant' => [
                'refresh_token' => Yii::$app->user->identity->authKey,
                'access_token' => $access_token,
                'expires_at' => time() + $client->accessExpiry,
                'csrf_token' => Yii::$app->request->getCsrfToken(),
            ]
        ];
    }

    return $model;
}

Then when received by angular store it somewhere. I put it in session or local storage depending on that remember me checkbox being checked or not. Then create an interceptor for it in angular to be auto linked to all requests different from HEAD, GET or OPTTIONS:
(function() {
  'use strict';

  angular
    .module('Auth')
    .factory('AuthInterceptor', AuthInterceptor);

  AuthInterceptor.$inject = ['$injector', 'Session'];
  function AuthInterceptor($injector, Session) {
    return {
        request: function(config){

            if (['GET','HEAD','OPTIONS'].indexOf(config.method) === -1)
              config.headers['X-CSRF-Token'] = Session.getCsrfToken(); // this method returns the token as received from server

            return config;
        }
    }
  };

})();

Also note that the way how (XSRF) Protection is expected to be handled by angular is different from how Yii is doing it. Angular expects the cookie to be readable and holding the same token received in header. while Yii::$app->request->getCsrfToken() will generate 2 different CSRF tokens. the 2nd is sent within the cookie and Yii has its magical way to compare them later. So I'd recommend protecting that cookie by enabling its httpOnly flag so JavaScript can't access it. I do it in Yii's config file:
'components' => [
    'request' => [
        'class' => '\yii\web\Request',
        'csrfCookie' => ['httpOnly' => true],
        ...

And that will already solve most of browser's local/session storage vulnerabilities to cross-site scripting as far as your related actions for generating or revoking tokens accepts POST, DELETE and PUT verbs only.


Add tutorial on the PlatformIO and geopm_pio interfaces

It would be great to expand on the example here:
https://github.com/geopm/geopm/blob/dev/examples/simple_pio_example.c
with a complete tutorial on how to use PlatformIO as a systems programmer.

Some work started here: https://review.gerrithub.io/c/geopm/geopm/+/472297


Should we keep empty parameter in the url?

example with a blank query: https://www.dropbox.com/s/8yxhl2wz26kc405/Screenshot 2016-06-11 12.02.09.png?dl=0

Have you seen other empty parameters examples besides query?

Those are going away in react-instantsearch


Duplicate line deleted

Learn Build status updates of commit e18abc8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/active-directory/saas-apps/atlassian-cloud-tutorial.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@jeevansd
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@Court72 Creating another PR to merge these changes in our private repo. So, closing this PR now
#please-close


Terrain and GPS accuracy questions

hi,
The  farm terrain are normally very rough, muddy and difficult to drive thru.  If it is only 1 meter wrong, it will step on the crop. I see some vehicle use line tracking, I donot know if this a good option?
Thanks.

Hello!
The best place to ask questions like this is on our community forum at community.twistedfields.com
Our vehicle does well in mud because it is lightweight. But you might want to experiment with wider tires. Our GPS uses RTK GPS which probably works in other countries. It should provide 15cm accuracy.
I will close this issue but do post on the community forum if you have additional questions. Thank you!


Install CLI on ARM64 with pip

*Moved ARM64 line into its own Note box for easier scanability
*Added a recommendation for installing CLI on ARM64 based on conversations in https://github.com/Azure/azure-cli/issues/7368 and https://github.com/MicrosoftDocs/azure-docs/issues/80763

Docs Build status updates of commit 8d68675:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/includes/cli-install-linux-apt.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@jiasli @dbradish-microsoft

@jiasli , @taoyama as this PR has not had communication since September, 2021, I am closing this discussion.  If you wish to resume this conversation please do so on Azure/azure-cli and open a new Issue.  If a docs update is needed, the engineering team will create a work order.

We are currently tracking the pip installation document issue in https://github.com/Azure/azure-cli/issues/20476.


Return vad to allow easy voice activation detection

Thanks for creating this library @jneem!
It makes compilation on windows so much better.
The rnnoise library/wrapper returns the vad value, which allows easy voice activation detection. It would be nice to be able to use this with nnnoiseless too.
Also, a process_frame_in_place function would be nice, but that’s something else.

Thanks for the patch! I think this breaks semver, so I'll release 0.2.0.
By process_frame_in_place, you mean that it overwrites the input with the output?

Thanks!

By process_frame_in_place, you mean that it overwrites the input with the output?

Yes, I use this for a voip client and when I receive audio from SDL, I pipe it through rnnoise once and then I look at the vad value to decide if a packet should be sent or not.
So I never need the original audio data and just overwriting the old data would save me one copy.


Custom Filter Not Working

Summary of problem or feature request

I have followed you implementation of the custom filter but the problem seems to be the ajax
Code snippet of problem
Controller
public function anyData(Request $request)
{
      $stone = DB::table('stones')->select(['id', 'color', 'clarity','price','carat' , 'created_at', 'updated_at']);
    return Datatables::of($stone)  ->filter(function ($query) use ($request) {
          if ($request->has('price')) {
              $query->where('price', 'like', "%{$request->get('price')}%");
          }

          if ($request->has('color')) {
              $query->where('color', 'like', "%{$request->get('color')}%");
          }
      })
    ->addColumn('options', function ($user) {
            return (string) view('stone.options', ['id' => $user->id]);
        })

    ->make(true);
}

MY SCRIPT
  <script>
    var oTable = $('#users-table').DataTable({
      dom: "<'row'<'col-xs-12'<'col-xs-6'l><'col-xs-6'p>>r>"+
          "<'row'<'col-xs-12't>>"+
          "<'row'<'col-xs-12'<'col-xs-6'i><'col-xs-6'p>>>",
      processing: true,
      serverSide: true,
      ajax: {
          url: '{{ route("datatables") }}',
          data: function (d) {
              d.price = $('input[name=price]').val();
              d.color = $('input[name=color]').val();
          }
      },
      columns: [
          { data: 'id', name: 'id' },
          { data: 'options', name: 'options', sortable: false, className: 'text-center', searchable: false },
          { data: 'color', name: 'color' },
          { data: 'clarity', name: 'clarity'},
          { data: 'price', name: 'price'},
          { data: 'carat', name: 'carat'}

      ]
  });

  $('#search-form').on('submit', function(e) {
      oTable.draw();
      e.preventDefault();
  });
    </script>

ROUTE
Route::controller('datatables', 'DatatablesController', [
'anyData'  => 'datatables.data',
'getIndex' => 'datatables',
'as' => 'datatables'
]);
If applicable, please include a copy of your code
which triggers the suspected bug.
You may use the markdown php code tags to format your paste:
$params = ['foo'];

-->
System details

Operating System : Windows
PHP Version 5.6
Laravel Version 5.2
Laravel-Datatables Version

try to die and dump the params of the table, if they aren't there.
If they are there try to check up on your query.
Last step is to check on your javascript side of the code.
If not, we can arrange some sort of screen split to try and figure out the issue.

The error seems to be on my ajax url , (url: '{{ route("datatables") }}') , am I am not sure how to post it , I have used the url for the git demo and it seems to work so how best can I pass on the url

run in to this problem myself, seems that post is not the good way to go about, use a
Route::get('/ your datatables route /');

has this issue been resolved? I am facing the same problem, but nothing here has helped me so far.

Does the dataTables loads the data properly? If yes, is there any error logs on your console when performing search?


Fixed deserialization of variable-length data types

Made fix according https://github.com/percona/percona-server/blob/5.7/sql/json_binary.cc#L247
Fixes #100

CI failed

Btw, what is wrong with current implementation ?

Some strings were rising error at isDataShort https://github.com/siddontang/go-mysql/blob/master/replication/json_binary.go#L339 when n>1
I checked C source and find issues with that fixes in https://github.com/shyiko/mysql-binlog-connector-java/commit/1612ebe3c21a248586500ae4f545bf33fff1d080#diff-1b0d47a97940724d9e6df0cfa9f04405R940
after that fix all my strings pass deserialisation

Thanks @b13f
Can you add a test for this?

@siddontang done!


Error path format incoherent

The error path format does not use one format, sometimes it will start with # sometimes with /root.
Because of that, we had to find an alternative to get the correct error path from the application_runner repository as we can see on the following link:
https://github.com/lenra-io/application-runner/pull/12/files#diff-678ebfc68a870921dc59538a65ff327f1f26e1d002d2e4d67f63c26c77c860d3R168
PR link https://github.com/lenra-io/application-runner/pull/12

We decided IRL with @Nesqwik that it was not a problem

The error path should now always start with # referencing the "base" node in the UI tree.


python310Packages.yaspin: 2.1.0 -> 2.2.0

Description of changes
https://github.com/pavdmyt/yaspin/releases/tag/v2.2.0

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 195252 run on x86_64-linux 1

2 packages built:

python310Packages.yaspin
python39Packages.yaspin


Class Structure with EditorConfig

Is it possible with editorconfig to mantain a custom hierarchy where variables and fields in a class should appear?
e.g. I want the private fields first, then Properties, then constructor etc.  like so:
public class Structure {
//first private fields
private int test;
//then Properties
public string Test {get;set;}
//Constructor
public Structure(){}
//Methods
private int addTwoCents();
}

@bluekuen I don't think that's currently possible. @kendrahavens for comment.

@gewarren is correct. That option is not offered. You can open a request to add that formatting option to editorconfig in our open source repository: https://github.com/dotnet/roslyn/issues


Support running a native command with alternate output encoding

Summary of the new feature / enhancement
Powershell currently defaults to the console output encoding when running a native command. (NativeCommandProcessor.cs:1330). This is the right default for most programs, but some software chooses to output a different encoding instead (Most commonly UTF-8). e.g. Rust programs, or programs that use activeCodePage in their manifest.
The problem is that there is no way to specify an alternate encoding using Powershell syntax. This leads to either having to temporarily change [Console]::OutputEncoding, or to run the process using the .NET Process class directly: starship/src/init/starship.ps1:26-65.
It would help if there was a builtin way to do this concisely.
Proposed technical implementation details (optional)
Either a parameter to some cmdlet (Start-Process? Not sure if that one allows reading output, not to a file, though... ) that allows setting the StandardOutputEncoding). Or some new syntax for it, such as a special cast.

Proposed technical implementation details (optional)
My addition:
1 Never use $OutputEncoding
2 Add a new command:
xxx | convertfrom-encoding 936
3 Preferably a third-party module command so that powershellv5 can also be used.
4 It must enter a -command_output_encoding parameter, specifying the encoding of the output. It converts the encoding to ps default. For psv5 it is the default encoding, for powershell v7 it is utf8

Proposed technical implementation details (optional)
My addition:
1 Never use $OutputEncoding
2 Add a new command:
xxx | convertfrom-encoding 936
3 Preferably a third-party module command so that powershellv5 can also be used.
4 It must enter a -command_output_encoding parameter, specifying the encoding of the output. It converts the encoding to ps default. For psv5 it is the default encoding, for powershell v7 it is utf8

Trying to convert output that has been misinterpreted as a different encoding is likely not to produce correct results unless the wrong encoding uses a specialized error strategy meant to preserve bytes it cannot understand, e.g. It can be reversed.


Calling gdnative function with no arguments when the C++ signature has arguments causes crash/backtrace.

Godot version:
3.1 master
OS/device including version:
Fedora 28, 64-bit
Issue description:
If I call a gdnative plugin from gdscript and the C++ signature has arguments, but none are specified in the calling gdscript then the scene crashes and the editor dumps a backtrace:
handle_crash: Program crashed with signal 11
Dumping the backtrace.
-- END OF BACKTRACE --

Im thinking the expected behavior is to show an error about the minimum required arguments.
Also as a side note there is no upper limit check either. So in C++ (int arg1, int arg2) and gdscript its a valid call to do myunc(1,2,3,4,5,6,7,8,9) and so on.
Although it is my first time trying gdnative and my C++ is not very good, so there might be something obvious I missed.
Steps to reproduce:
C++ signature for your gdtype subclass:
void test(int arg1);

Try to call it from gdscript:
var MyPlugin = load("res://bin/myplugin.gdns")
var my_plugin = MyPlugin.new()
my_plugin.test(1, 2, 3, 4, 5) # shouldn't work
my_plugin.test() # would like an error, but crashes instead

CC @karroffel

In theory you can issue an error, it's not exposed to NativeScript yet AFAIK.
The problem here is in the C++ bindings, which don't do any validation of arguments yet. Other bindings such as the Rust bindings already do it, so this is not a GDNative/NativeScript problem but a library side validation problem.
There already is an issue about that and it shouldn't be too hard to actually implement it, but nobody got around to doing it yet. (Zylann did at one point, but the bindings moved on from then)

@karroffel
Should we mark this as a duplicate with the issue you are referring to and close this one?


[BUG]: Type Safe Element tray flag PHP8

Which module?
legacy
Description of the bug
There are some notices due to strict requirements
Example, the $fag usage in templates, fix :
-    <{if $flag}>
+   <{if isset($flag)}>

Elementtray
<{foreach from=$tray->getElements() item=element}>
    <{if isset($flag)}>
        <{$tray->getDelimeter()}>
    <{/if}>
...

Steps To Reproduce

login to admin
altsys or any core module using $flag
PHP8 notices

Additional Information
No response

-    <{if $flag}>
+   <{if isset($flag)}>

I think this is confuse.
When $flag = 0; that how work it.
Probabably you want like this.
-    <{if $flag}>
+   <{if !empty($flag)}>

Umm, Not smart.

Thanks @nbuy ^_^/


Firmware fails to download firmware on Asus C300M

My chromebook is going to turn into a brick if it shut's down made even worse by the fact that it has a non-functioning battery when I tried to update the firmware. The error i got was: Error running cmd: /tmp/flashrom -p internal:boardmismatch=force --use-first-chip --ifd -i bios -N -w coreboot_edk2'quawks-mrchromebox_20240914.rom >/dev/null 2>&1 -o /tmp/flashrom.log
Is there any way to roll back the update or any last remaining chrome os firmware for the quawks board in the wild?

Actually, the entire script isn't working for reversing using a recovery image too so I'm screwed

flashromlog.txt

My chromebook is going to turn into a brick if it shut's down made even worse by the fact that it has a non-functioning battery when I tried to update the firmware.

I don't know what any of this means.
why are you trying to go back to stock on an EOL device?

I didn't intend to go back to stock. the update to the latest firmware failed so I tried to restore the stock firmware because I saw that as one of the proceedures on your site if i ever encounter an error.

you misunderstood what you read - you're supposed to flash back the firmware that was on the device at boot, which is stored by the script at launch. perhaps I should make that automatic


Born Standing Up, Steve Martin

Just finished reading this and thought of your app. Steve Martin's early act involved a lot of magic and he talks a lot about the process of finding/inventing material and forming an act from it.
http://www.amazon.com/Born-Standing-Up-Comics-Life/dp/1416553657
You might not get actual requirements out of reading it, but it will be interesting.

I read BSU. I can comment on it during our meeting.

That reminds me of a 2002 movie, Comedian, a documentary following Jerry Seinfeld while he is rebuilding his act from scratch over a year.
There's also a contemporary movie called The Magic Life about three unknown magicians trying to refactor their act in the hopes of making a living as full-time professional magicians.
From the feedback we are getting, there is definitely a demand for this sort of thing.


[WIP] Prototype .NET Client

PROTOTYPE. For initial review only.
Only supports Long Polling (why not WebSockets? I don't know, I just picked a transport that seemed easy to bash out in an hour, I may have chosen poorly :P). Updated ClientSample to use it.
API is way early. I think there will be some major clean-up. This is also only a Sockets client, not a SignalR RPC/Hubs client. It just bridges the transports back over to a Pipeline and lets you read/write.
/cc @DamianEdwards @davidfowl @BrennanConroy @mikaelm12 @moozzyk

I propose I merge my tests first and you use the same server for tests here.

@moozzyk Well, this is a long way from merging anyway, as I said in the initial comment :).

I got RPC working now.  I had to rework IInvocationAdapter, and I'm not 100% happy with how it went. I think we need to think about the formatting API and what it's going to look like from both sides (client and server) since we're going to need both parties to be able to receive all message types.

This is probably separate but we need some lifecycle hooks - especially OnError/OnClosed. RpcConnection/HubConnection needs to complete all pending tcs'es if the connection is closed.

We should also reject Send requests if the connection is not connected. Probably also kill the connection if Send throws.

I've squashed and rebased on dev for @mikaelm12 to take over.

Closing this PR now, but the branch remains open for work.


"Entity portalcubed:portal_placeholder has no attributes" what to do

so this is probably causing the game to crash when you start a world
HOW DO YOU FIX IT???

Newer versions of Portal Cubed may not always be compatible with worlds created on older versions.  If the issue is only affecting your existing worlds, that is likely the cause.


HV-1405 Review assertCorrectPropertyPathStringRepresentations usage

https://hibernate.atlassian.net/browse/HV-1405

I found only that "container array thing" and set examples were missing, based on other usages of assertCorrectPropertyPathStringRepresentations. Also I changed the way this method works, because it was not giving expected result in case of Set.
That Set example also got me thinking that maybe the string representation for it should be different ? Maybe for example something like this:
"addresses[hashcode_goes_here].street",

@marko-bekhta thanks, looks good! Will merge as soon as we released 6.0.0.Final as we want to limit the changes between CR3 and Final to the minimum as it's the version currently being voted for the spec.
As for your question on Set, the first thing is that we're kinda stuck with the representation we have now for backward compatibility reason. Moreover, the hashcode is not that useful as you can extract the value from the Node by casting it to the HV specific PropertyNode or ContainerElementNode which have a getValue() method.

Rebased and merged, thanks!
(master is now 6.0.1-SNAPSHOT, I created a 6.0.0-build-branch for 6.0.0.Final)


[Counter Strike Source Dedicated Server] Start problem

failed to dlopen /home/jtaylerj/vspace/css_server/bin/vphysics_srv.so error=bin/libstdc++.so.6: version CXXABI_1.3.9' not found (required by /home/jtaylerj/vspace/css_server/bin/vphysics_srv.so)  failed to dlopen vphysics_srv.so error=bin/libstdc++.so.6: version CXXABI_1.3.9' not found (required by bin/vphysics_srv.so)
AppFramework : Unable to load module vphysics_srv.so!
Unable to load interface VPhysics031 from vphysics_srv.so

Tried latest Linux release from Actions, for SSDK2013. I get the two last errors as well on server startup, followed by a crash:
AppFramework : Unable to load module vphysics_srv.so!
Unable to load interface VPhysics031 from vphysics_srv.so

Since VPhysics Jolt is to be compiled with modern g++, it creates incompatibilities with default SRCDS. If you strongly wish to use Jolt on Linux, to workaround this, you'll have to open a Shell, navigate to the server's root bin directory (not the one inside mod's folder, like cstrike/bin) and type the following:
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s /usr/lib32/libstdc++.so.6 libstdc++.so.6

(I don't recommend doing this if you don't know what this is about)


Added 'ljoonal.html' to '/Friends/'

Please make sure your github url is clearly visible somewhere on the page

Should be good now?

Perfect, Thanks!


Passing string to project_names results in broken experience

Hey there! I was tinkering with this today, and found a slightly rougher edge than expected.
I made a mistake in not wrapping a project_names param in a list, and ended up with a broken object.
Totally my fault, but would have expected a slightly better rejection on this mistake.
>>> import pypitoken
>>> token = pypitoken.Token.load("pypi-<a valid token>")
>>> assert token.restrictions

>>> token.restrict(project_names='example')
<pypitoken.token.Token object at 0x100e402d0>
>>> assert token.restrictions
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../python3.11/site-packages/pypitoken/token.py", line 378, in restrictions
    return [
           ^
  File ".../python3.11/site-packages/pypitoken/token.py", line 379, in <listcomp>
    restrictions.Restriction.load_json(caveat=caveat.caveat_id)
  File ".../python3.11/site-packages/pypitoken/restrictions.py", line 174, in load_json
    return cls.load(caveat=caveat_obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../python3.11/site-packages/pypitoken/restrictions.py", line 155, in load
    raise exceptions.LoaderError(
pypitoken.exceptions.LoaderError: Could not find matching Restriction for [1, 'example']

I'd rather expect that the input to project_names raise (probably TypeError?) if I didn't pass something that could be valid.

Hello there !
Hm, an interesting usecase...
I always wonder what we should do in Python lib to account for incorrect types being received (including receiving None when you expect a value). Now that types are explicit, I tend to avoid programming defensively because there's an infinite number of type errors people may do, and it might be complex to test all of them. I'd tend to say that using the code is a way that would have Mypy complain and having unexpected results (instead of a clean failure at the first occasion) is not unexpected. That said, I can understand your frustration.
All that being said, I'm slightly surprised because at the end of the day, 'example' is an iterable of strings (iterating on individual characters) so I'd expect your code to "work", but add a restriction on project name being one of  ["e", "x", "a", "m", "p", "l", "e"]. I'll try to see why it doesn't act that way, and I'll come back (hopefully later today)

Ok, so the reason this bug looks like that is because while a string is an iterable of chars, JsonSchema maps python strings to json strings and not to a json list of strings (which is very obvious and what we want, but at least we can see where the fork in the road happened).
Also, project_names is not typed as an Iterable[str] but as a list[str].
What I could totally see myself doing is to loosen types, accept iterables, and cast them as strings. This means that in your case, you'll have a different result:

It's still incorrect but it looks more like what Python would do on such cases. The added benefit is that if people mutate the list after creating the Token, the Token will be unaffected (if they did pass a list of strings and not a list of list of strings :D )
Do you think it would be acceptable ? Do you think we should still add defensive code in place ? What would be the extend of the defensive code you'd think is required ? (not saying I'll do it, but I'd love to get more feedback)

@miketheman I've made a PR, let's discuss it :)

https://pypi.org/project/pypitoken/7.0.1/


[SUPPORT] nested group access to parent model and validity using expressionProperties

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[X] support request

Current behavior
NA
Expected behavior
Based on a form description like this:
[
    {
      key: 'reference',
      type: 'input',
      templateOptions: {
        label: 'Reference',
        required: true
      }
    },
    {
      key: 'persons',
      type: 'person-search-field',
      // TODO: here the model is an array, how can I access to the reference value
      expressionProperties: {
        'templateOptions.reference': 'model.reference',
        'templateOptions.referenceIsValid': 'form.reference.valid'
      },
      fieldArray: {
        templateOptions: {
          label: 'Search Person'
        }
      }
    }
  ]

I would like to:

provide the value of the reference field to the type person-search-field (this value is needed to search a person)
disable the type person-search-field if the field reference  is not valid (really like formControl.valid)

I based my implementation of person-search-field on the repeat-field type but I am using a separate form to search for a person and then, I add it to the formArray. Is it a good way of doing that ?
Minimal reproduction of the problem with instructions
You can find the example on StackBlitz
Thx in advance, this lib is very useful.
By the way, I am beginner using formly and I think it is very useful to have a lot of examples. Are you open for PR that add example in your doc ? For example "Nested Searching Type"...

Are you open for PR that add example in your doc ?

PR welcomed :smile:

Good ;), I'll try to add more specifics example when I solve a scenario.
But first, I need to solve this one ;)
For the moment, I did an ugly thing in my custom type like:
this.form
      .get(this.to.referenceKey)
      .statusChanges.pipe(distinctUntilChanged())
      .subscribe(status => {
        if (status === 'VALID') {
          this.enable();
        } else {
          this.disable();
        }
        this.cdRef.detectChanges();
      });

But this create a string link between this type and my form structure which I don't like...

Do you know about formState ?

anyway here is an easy way to solve you issue:
     expressionProperties: {
        'templateOptions.reference': () => this.model.reference,
        'templateOptions.disabled': () => {
          return this.form.get('reference').valid;
        },
     },

you can also use formState which is kind of a context you can use among fields:
  model: any = {reference:null};
  options: FormlyFormOptions = {
    formState: {
       formModel: this.model
    }
  };
  ...
  expressionProperties: {
    'templateOptions.reference': (model, formState) => formState.formModel.reference,
    'templateOptions.disabled': (model, formState) => formState.formModel.isRefValid,
  },

I was playing a bit with it too but without success. I love this library because I feel that it can cover
a lot of cases/scenario but the main difficulties is HOW to do it and WHAT is the best way...it is why I think you have to support a lot.
I think your approach of the documentation, by providing a list of examples, is really the best way to learn !
Thx again, I will test your solution !

see https://stackblitz.com/edit/angular-formly-template-rc-32-k1nda6

managing repeating fields has been simplified see https://formly-js.github.io/ngx-formly/examples/advanced/repeating-section all you have to do is extend FieldArrayType.

one more thing, if you want the seach field to not be part of your form, you can define it without key and set formControl property:
{
  type: 'input',
  formControl: new FormControl(),
  templateOptions: {
    label: 'Person Name',
    required: true
  },
},

@aitboudad Hello, I'm trying to use repeat section and i have this error...
/node_modules/@ngx-formly/core/core"' has no exported member 'FieldArrayType'.

As usual, your proposition works very well. I updated the StackBlitz
However, I have an issue in my app....it almost the same as the stackblitz example but I don't know why, the 'templateOptions.disabled': () => this.to.disabled (on my input on my separate form contained by my custom type) is not re-evaluate (but I could see that the value of this.to.disabled is changing).
At the beginning I thought it was because formly only re-evaluate expression within a form. It means that if I modified reference of the main form, the expressionProperties of the separate form containing the field person name is not called......but it works on stackblitz.....:s
Any ideas about that before I close this issue ?

Ican cl

@aitboudad sorry I missed your comment, I hope your issue is solved :)


Add pyproject.toml for Custom Node Registry

We are building a global registry for custom nodes (similar to PyPI). The registry makes using custom nodes more reliable by reserving globally unique names for each custom node, and supporting semantic versioning.
Here’s some more information on the registry.
Action Required:

[ ] Go to the registry. Login and create a publisher id. Comment it here and we will update the PR (or just merge it and change it yourself).
[ ] Write a short the description.
[ ] Merge the separate Github Actions PR and run the workflow.

If you want to publish the node manually, install the cli and run comfy node publish
Please message me on Discord if you have any questions!

hey @JayLyu, wanted to send a small nudge and ask if you had any questions!


Should I expect the single task label model has the same answer with multiple task label model with single task input?

Hi,
I tried to use the same data I use for single task label model to multiple task label model with the same setting. Should I expect the same/similar result from these two settings?
Here is an example:
import pickle

with open("data/multitask_tutorial.pkl", 'rb') as f:
    Xs, Ys, Ls, Ds = pickle.load(f)

from metal.multitask import TaskHierarchy
task_graph = TaskHierarchy(cardinalities=[2], edges=[])

from metal.multitask import MTLabelModel
mt_label_model = MTLabelModel(task_graph=task_graph)

mt_label_model.train([Ls[0][0]], n_epochs=200, print_every=20, seed=123)
prob1 = mt_label_model.predict_proba([Ls[0][0]])

from metal.label_model import LabelModel
st_label_model = LabelModel(k=2, seed=123)
st_label_model.train(Ls[0][0], n_epochs=200, print_every=20)

prob2 = st_label_model.predict_proba(Ls[0][0])

prob1 is not the same as prob2.

Hi @SenWu ,
Thanks for pointing this out!  I'll check it out soon

Hi @SenWu ,
Sorry for the delay here!  The issue is just a small one having to do with passing trivial single-task "hierarchies" into the TaskHierarchy class.  I fixed the issue (#34 ), once tests pass will merge it in!


subscribe API with state as an argument

Why
store.subscribe(() => console.log(store.getState()));

and not
store.subscribe(state => console.log(state));

?

Yeah I should probably do that.
I wanted to bike shed a little — maybe worth also adding previousState as a second parameter so consumer can compare reference without keeping the local state copy?

e.g.
store.subscribe((state, previousState) => {
  if (selectStuffIWant(state) !== selectStuffIWant(previousState)) {
    doSomething(state);
  }
});

previousState as a second parameter so consumer can compare reference without keeping the local state copy?

Just a reminder how this is where Rx shines:
store.subscribe(state => console.log(state));

or
store.pairwise().subscribe((previousState, state) => {
  console.log(previousState);
  console.log(state);
});

Haha, I know. :-)
This is why I didn't bother to pass it into the callback initially. People who want to work directly with subscribe API will probably want to wrap it into an observable anyway..

In fact Redux createStore API can probably be implemented with two or three lines in Rx.
My intention was to extract a subset that can be used by people who don't want Rx dependency and want some opinionated wiring defaults (one root reducer, actions as plain objects) to get some benefits (logging, record/replay, time travel) “by default”.

Best to keep this a low level API. Passing current state to subscriber seems reasonable, though. For anything more complicated, it takes two lines to convert to observable https://github.com/acdlite/redux-rx/blob/master/src/observableFromStore.js

OK I'll accept a PR passing the parameter. One tiny requirement is to make sure it works correctly when Redux store is instrumented by Redux DevTools. I have a bad feeling that every store extension that “lifts” getState will also have to take special care of this parameter. Which is not fun and feels like the price you pay for making low-level APIs more consumer friendly.

Ah yes that's an excellent point. In that case, I'd say leave it as-is.

Please pass both current and previous state to listeners. I really don’t want to have to keep a reference to the previous state outside the listener and cannot afford to include Rx into my project.

I have asked in Slack channel exactly the same question as the one at the beginning of this issue. My confusing is: why a listener is forced to know about store (or anything else with getState() method) at all?

The store API is meant to be extensible. This is why it needs to be as orthogonal as possible. They shouldn't duplicate functionality because otherwise creating extensions to it like Redux DevTools becomes harder. If extensions want to do something to the state before passing it to the consumer, they'll now have to do it in two different places (three if we add two parameters!) which is error prone.
The solution is simple: don't use subscribe directly! It's a low level API. If you want it to behave as an Observable, write a function that turns it into an observable! It isn't hard to do:
function toObservable(store) {
  return {
    subscribe({ onNext }) {
      let dispose = store.subscribe(() => onNext(store.getState()));
      onNext(store.getState());
      return { dispose };
    }
  }
}

If you don't want to use RX and prefer a callback with previous and next value, again, easy to do. You can even do selecting as part of it:
function observeStore(store, select, onChange) {
  let currentState;

  function handleChange() {
    let nextState = select(store.getState());
    if (nextState !== currentState) {
      currentState = nextState;
      onChange(currentState);
    }
  }

  let unsubscribe = store.subscribe(handleChange);
  handleChange();
  return unsubscribe;
}

We can provide either as a utility inside Redux, if we can converge on the API people want.
What we can't do is make Store interface less low-level and duplicating functionality between methods, because then building extensions on top of it becomes way harder.

The solution is simple: don't use subscribe directly! It's a low level API.

:+1: That's enough clarifications to me, I'd be ready to close this issue.

@gaearon , thanks for the elaborate clarification!

I'll keep this open to make sure I don't forget to add this to the docs.

Related:
How about:
store.subscribe(
  state => console.log(state),
  (previousState, state) => previousState.something !== state.something
);

In other words, being able to pass an optional method to store.subscribe that will provide a check against previous state.
That's the usual scenario anyway.
This will probably make things a little less dirty in the long run.

Closing for the reasons described here: https://github.com/gaearon/redux/issues/303#issuecomment-125184409. This is documented:

It is a low-level API. Most likely, instead of using it directly, you’ll use React (or other) bindings. If you feel that the callback needs to be invoked with the current state, you might want to convert the store to an Observable or write a custom observeStore utility instead.

Can anyone help me understand how to implement the code outlined in the comment above
https://github.com/reactjs/redux/issues/303#issuecomment-125184409


Please expose Shape and ShapeLike

They're simple, but it's useful to have them in client code.

Closing as a duplicate of https://github.com/numpy/numpy-stubs/issues/13.


Do we need an merge high key in merge delta node?

Description
Merge delta extends the logical high key of a logical node (i.e. PID). When consolidating either leaf nodes or inner nodes, if merge delta node does not have a merge high key field which denotes the high key of the right merge branch, then it would be hard (but still possible) to know how the high key is extended.
Is it necessary to add a merge high key field in merge delta node, which is initialized when the merge delta is posted (i.e. when we complete a page remove & merge)?

No, we do not need one.
The high key of a logical merged node is naturally and recursively defined by its two branches


Fix: Modal web stacking context

Summary: Updated Modal web implementation to fix stacking context problem.
Removed web related tests, because new solution is using document.body which is not currently available in our test environment.
Before:

After:

Note: New solution is using React Portals.
Next.js example: https://github.com/zeit/next.js/tree/canary/examples/with-portals
Closes #485

Seems to me little bit "hacky", that creating, appending and force updating DOM in componentDidMount. But I guess you know why you did it that way :)

@jvaclavik It's basically recommended way how to use React Portals in next.js. As seen in example at the end of description. But I totally understand your point, I was also slightly suspicious at the beginning :)


Clipped Powerline icons in MacVim

environment

vim: 8.0.124
macvim: 8.0.106
vim-airline: 04be981
OS: macOS 10.12.1
Have you reproduced with a minimal vimrc: Yes
What is your airline configuration:
let g:airline_powerline_fonts = 1
let g:airline_theme = 'oceanicnext'
if you are using terminal:
terminal: iTerm2 3.0.12
$TERM variable: xterm-256color
color configuration (:set t_Co?): t_Co = 256

actual behavior
Vim properly displays the Powerline icons in Airline properly. However, the icons in MacVim on the right side appear clipped in half. In this particular screenshot, the Python glyph and the Apple glyph are clipped.
[EDIT] I am using SauceCode Powerline through Nerd Fonts (https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/SourceCodePro).
MacVim

Vim

expected behavior
The expected behaviour is that Vim and MacVim appear visually similar, if not identical.

I don't know those symbols. I think this is a MacVim bug.

Don't mean to distract on a now closed issue, but some information:
The symbols are from vim-devicons :blush:
Related: https://github.com/ryanoasis/vim-devicons/issues/133


(Updated on 2021.12.29) Many changes Can't Title Summarize

tl;dr: many changes were made, please review changes and test stuff out before going with a merge.
(Due to a woops I made at one point, it's being pulled from a new sub-branch. The actual full change history log: https://github.com/SoraHjort/webcomic_reader/commits/Fixes-and-Additions/webcomic_reader.user.js )
This is about a year in the making (on and off a lot). It shouldn't have taken that long, but I kept getting side tracked, fixing comics I was reading at the time, forgetting about it, and so on.
This started off as a branch to just add and fix comics before putting in pull requests. It then went into adding several features and other stuff. I am stuck in a "what do I do next" slump, which is why I'm putting it out now. I think I'm mostly done. But I would like feedback on the changes and the like.
If it comes down to it, and the changes I've made are not acceptable, I could separate the additions/fixes for sites.
Highlights:

Styling to prevent sites from screwing things up (like with the settings window)
Fullscreen Button
(Mobile) Disable/Enable this Script button at the end of the page (blame greasemonkey on mobile for the idea)
@includes have been updated to be "http*://" instead of http and https to
a. save space when it comes to duplicates
b. future proof in case a domain goes from http to https
c. more strict capture than simply going "*://" to prevent running on, say, ftp:// or any other protocol.
primarily a mobile issue, but script no longer run when viewing just a image files.

Please give this a good look over and test it out. I'm the kind of person to be paranoid over my own work when it's this big of a change. I worry I might have broken something, despite not running into any issues in the months I've been using my dev branch exclusively). Heck I'm still paranoid if I'm doing pulls correctly.
Thankfully, I kept notes on note worthy changes( IE: not every time I had to edit because I goofed)
The full change summary:
(Note on Site fixes and added sites, if they've changed since I've made those changes, and no longer work, sorry for the inconvenience.)
Sites Fixed:

Homestuck (Hopefully)
Bog and George (Multi Image and commentary having images issue)
Girl Genius (Multi-image should be working just fine now!)
Vicki Fox
Free Fall  (Broken on the first 300-ish pages)
Dominic Deegan (Partially for mobile users)
Dilbert
Lackadaisy Cats
Kevin and Kell (could use some styling fixes on mobile when not minimalistic)
Mangaseeonline (accidentally removed when it just needed a http* fix)
DMFA
LFG
GrrlPower
Keychain of Creation
Three Panel Soul (Double Check later)
TwoKinds
Project Future (back would got ot the start of chapters instead of the previous page)
FreeFall (minor, some pages had two comic images)
Devil's Panties (Multi-image pages)
VGCats (It's back, new site layout, new comic page)
Misfile
Furaffinity now works on both www and non www urls

Sites Added:

Yosh Saga
Artificial Incident
Kemono Cafe
Comic Host Xepher
Skin Horse
Narbonic
Sailor Sun
Jeanie Bottle
Dreamland Chronicles
Snafu Comics (main issues are built into the archive, like pages being out of order, nothing we can do)
Alice and the Nightmare
Not a Villian
Mac Hall
e621.net
Alien Dice
Most if not all the other Shivae comics as well
Xepher comics in general

Site tweaks:

Furaffinity tries to default to comic navigation options. If it fails to find a next/back comic page, it'll default to gallery viewing mode
DHS Comics @includes have been condensed into a singular one.
Various sites had their commentary set to also be nav enabled, reverted this change.

Ahab's White Whale: Apple Geeks, it doesn't deserve to be, but it's doing it's darnest to be it.
Features and Big Changes:

Full screen button. Primarily useful for Mobile users, but who knows what desktop users could use it for!  https://youtu.be/TKl02m4lkJc?t=88

Made it so that it'll detect when fullscreen is exited, regardless of method of doing so.

(Mobile only) A Disable/Enable This Script button at the bottom of the page. Greasemonkey on mobile already does this, as it inserts menu commands as a button. This makes it universal regardless if it's greasemonkey or tampermonkey. As well as not a tiny button for mobile users.

Script's buttons have a default style

First and Last links are now buttons. Lightblue for first, Light red for last

Various Colors (buttons, settings menu) fixed to not be affected by OS's color scheme

Several more color and styling fixes

Script now does not load on image files (png, JPG, gif, etc). This was mainly an issue on mobile from what I've seen.

Non-Dynamically Colored Buttons now get darker when pressed.

The Dimming background now overextends width and height to fix an issue on mobile when it came to scrolling

Pages Dropbox now have a max size of 100% (not all browsers have been updated to allow min()/max() yet, otherwise it would be 500px or 100%)

Settings window has had various updates to give a more uniform size and feel across each page.

By also forcing elements within the settings window, it helps prevent a site from overriding it and making it a mess.
As well as work to help to prevent drifting that occurred on some sites.

wcr_ext_navi_ctrls: a function that can be called in js: for automatically turning the extra section into a navigable part.

ex js:	 wcr_ext_navi_ctrls

All includes have been future proofed by switching from HTTP and HTTPS to HTTP*. Should prevent the script from breaking if a site switches between them.

Sites fixed due to switching to "http*" (checked back in october/november 2019)
biggercheese.com/
bittersweetcandybowl.com/
bringbackroomies.com/
buckocomic.com/
https://www.c.urvy.org/
collectedcurios.com/
doctorcatmd.com/
dynasty-scans.com/
garfieldminusgarfield.net/
giantitp.com/
gpf-comics.com/
little-gamers.com/
meekcomic.com/
mrlovenstein.com/
pebbleversion.com/
pointguardian.com/
project-apollo.net/mos/
satwcomic.com/
scarygoround.com/
sevensmith.net/chirault/ - Front page broken
supercrash.net/
vgcats.com/
webtoons.com/ - Slightly broken, pages don't show up till you scroll down a little (fixed? I didn't do anything, but it hasn't happened in a while)
-Post note-
Ahab's White Whale: Apple Geeks, it doesn't deserve to be, but it's doing it's darnest to be it.
I tried, many, many, many times to get it to work with it to no avail. It's... it's weird. Maybe one day I'll try again, but if someone wants to give it ago, go ahead. It's like it ignores the capture rules and instead wants to grab the banner image as "Back", despite the xpath being completely different.
There are also other ideas I do want to implement at some point, but I need to land on stable ground, script wise, before progressing on those fronts. Sorry it took nearly a year to get this going, but, well... those changes. And procrastination.

One of these days I'll properly learn and deploy pulls the first time. Maybe.
That should fix any of the odd commits/compares.
And it looks like the silliness/woops I mentioned carried over onto the main branch, for some reason. Basically I accidentally created an "environment" and couldn't quite figure out how to remove it. Hence the parts where it says "set theme" and "delete _config.yml"
I'll contemplate if I should just do a "merge" from my fixes and additions branch with pull-requester so it has the full commit history. Since what I was trying to avoid happened anyway.

You can look at how to do "interactive rebase" rebase -i (followed by a push -f) if you want to fix it. But it is also fine to leave it as it is.

Too late, fixed it :P
I do apologize though, I am so not used to these systems. I can manage with personal edits and what not. But pulls are still foreign to me. (Also that environment mixup threw me through a loop trying to undo)

No problems :)

So finally working on this again (in a branch which I'll merge into this pull request)
The problem I'm having right now is that the english translation... made a bit of a mess of things.
 It's gone and created a lot of conflicts that I have to go in manually.
I thought I could just use github's desktop app to rebase and what not... buuuuuuuut! It's not great. It doesn't even use the complete history of changes I made in the branch I'm working in, only up to July of last year, for some reason.
So, what I'm basically going to have to do is manually replace all the translation stuff into my fork.
Plus it'd probably be a lot quicker than having to go through the 100+ changes it wants me to check every, single, time. It wanted to open every single conflict in my editor. A lot of them were going from four spaces to tab spaces. Though some of them are related to functions and new sites.
When I'll get this done, I do not know. I'll basically have a week free from everything, because I just moved, the ISP tech is swamped and can't setup the lines till next week at the earliest. And with the power of not-hotspotting with a smartphone, the only thing I can really do with my internet connection is browse the web, watch videos, and play games I've already downloaded.
So yeah, got free time for that now, minus some more moving related stuff.
But yeah, got a bunch of stuff to add to this pull, fixes, visual cohesion stuff, new sites, and what not in the works. Trying to keep myself from adding more stuff till I get the translation stuff pulled in.
Again, sorry it's taken so long to get around to doing this.

Managed to get the translation in sooner (thanks to GitKraken. Found it earlier, not long after my last comment, it's been nice so far in it's small test). Still had to do some manual stuff. Saved me probably a few days of eye sore work.
Updated first comment to include the changes made. Not too much changed, some sites added, some sites tweaked, unified navigation buttons, some mobile related fixes (such as dimmed mode having issues while scrolling).
Also resolved the github file conflicts that would come up, of course.
Things should be good to go for a merge in if deemed so.
For the most part I've been using my own dev branch for the past year or so, so I can basically say that the major changes have been working just fine. And I haven't made much major additions/changes during that time due being dragged from one corner of the USA, to basically it's opposite, for a year.
It should be a while before I submit anything new to be pulled into the project. Such as more sites, as well as some feature tweaks. So there are things I still want to do, but that can wait for a later pull.

I’ll go ahead and merge this now so more people can get access to all your fixes


command line arguments for task creators

doit already support Task parameters, but they are not convenient to be used with task-groups.
Example of proposed feature:
from doit import task_param

@task_param({'name':'param1', 'short':'p', 'default':'default value'})
def task_py_params(param1):
    for name in ['foo', 'bar']:
        yield {
            'name': name,
            'actions':['echo {}'.format(param1)],
        }

doit would be responsible for injecting parameter values when executing task-creator functions.

I would love to see this working. As of now there does not seem to be a workaround, no ?

Alternative : we could benefit from the fact that generators can return an argument (that is captured in the StopIteration exception):
from doit import task_param

def task_py_params(param1):
    for name in ['foo', 'bar']:
        yield {
            'name': name,
            'actions':['echo {}'.format(param1)],
        }
    return {'params': [{'name':'param1', 'short':'p', 'default':'default value'}]}

The doc would need to explain that in that case only some fields are allowed (I can only think of 'params' for now but I'm sure there will ultimately be other things)
That would be closer to your initial syntaxt choices. Of course creating decorators for all aspects of task metadata information providing are also cool, but it is maybe another feature (not only for task generators). And it resembles very much what has been done in the letsdoit plugin

@smarie See PR #323... I think this is what was intended by the issue. Does this do what you were thinking, too?

There seem to be several features behind this ticket:

first, the fact that a "group task" exists as a task in doit, even if the user is not aware of it today. We could offer the user with the capability to edit that group task. This is the direction proposed by PR #321, and it could go much further (adding actions executed at the end of the group for example).

second, the fact that subtasks in a group do not today have the possibility to inherit from common group behaviour, in particular parameter definition. This is also the direction proposed by PR #321: when the user defines a parameter on the group task, it is copied on all subtasks.

finally, the fact that parameters could be defined in a more intuitive way using a decorator. I insist that this does not seem specific to subtasks at all, except if I misunderstood something (@schettino72 can you confirm ?). If we go down that road of providing decorators, users will of course ask for more and ask that every aspect of tasks could be determined with decorators... Just like in letsdoit. That is why at first I was not fond of using a decorator here: just for API consistency reason. Since current API heavily relies on generator api, it was more consistent to continue to use it.

@rbdixon which part of the above topics does your PR tackle ?

Well, strictly, none of them... though they are all interesting (and valid) usage considerations. My only intent was to provide a way for a task creating function to access command line arguments. In my own doit-based automations I've done weird things to compensate for not having this particular behavior. Other examples where people have gotten stumped without this feature:

https://stackoverflow.com/questions/57045829/dynamic-target-names-in-python-doit
https://groups.google.com/forum/#!topic/python-doit/Xkw7SaAnkdg

I used a decorator because a) that's what @schettino72 proposed, and b) it makes sense because if one wishes to preserve the doit-style of using a normal Python function arguments to deliver command line arguments to the task generator the definition for those command line arguments must be available before the task generating function has executed. Something other than a decorator could be used, of course, but a decorator at least puts the definition right next to the the function that will benefit from it. There could be other ways, though!
What you implemented in PR #321, IMHO, could be useful. I'll leave a comment on that PR.


Fin a way to accept hiragana input when the user has no Japanese keyboard installed

Useful for French to Japanase's exercise

WIP on  https://github.com/LucasLuigi/learnKanas/tree/dev/words


ModuleNotFoundError when debugging files in workspace subdirectory

Code Snippet
src/declare.py
def func():
    return "success"

src/consume.py
from declare import func

print(func())

Repro Steps

Create files as above. Note that they are in the src subdirectory of the workspace.
Open workspace root (parent of src) in https://insiders.vscode.dev/?vscode-coi=
Open consume.py
"Run Python File in WASM"
Note that "success" is printed in the program output (Terminal pane)
"Debug Python File in WASM"
When debugger stops at top of file, press the "Continue" button in the debugging toolbar.

Expected behavior
Code runs successfully again and prints "success" in the program output (Debug Console pane)
Actual behavior
No "success" in program output. "Debug Console" shows the errors below. I think the "Bad file descriptor" may be a known issue, but note the ModuleNotFoundError.
If you move the two files from src to the workpace root, the code works as expected while debugging.
On desktop the code works as expected with the files in either location.
PDB debugger connected.
Traceback (most recent call last):
  File "/$debug/main.py", line 12, in run
    dbg._run(tgt)
  File "/lib/python3.11/pdb.py", line 1646, in _run
    self.run(target.code)
  File "/lib/python3.11/bdb.py", line 597, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "/workspace/src/consume.py", line 1, in <module>
    from declare import func
ModuleNotFoundError: No module named 'declare'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/$debug/main.py", line 31, in <module>
    run(debugger, target)
  File "/$debug/main.py", line 25, in run
    dbg.interaction(None, t)
  File "/lib/python3.11/pdb.py", line 434, in interaction
    self.print_stack_entry(self.stack[self.curindex])
  File "/lib/python3.11/pdb.py", line 1553, in print_stack_entry
    self.message(prefix +
  File "/lib/python3.11/pdb.py", line 535, in message
    print(msg, file=self.stdout)
OSError: [Errno 8] Bad file descriptor

@rchiodo can you please investigate

My suspicion is it's not running the file in the same folder as the file exists in. That would explain the 'ModuleNotFound' error. The bad file descriptor seems like a general problem with exception handling though. I can repro with throwing any exception.
Like maybe stderr cannot be read anymore?


Push branch to remote on release command

Would be nice to not have to run git push after everything has gone smoothly...

Fixed in 4d53a688eabcb1ff7a04651636f6b4a5fda2748e


Vehicle Pickup and Delivery Program for C#

Hi everyone,
First of all thanks for such a great library.
I've been using this library for my research project for quite some time. Though i am still in the learning phase.
My aim is to develop a Vehicle Routing Problem with Pickup and Delivery Constraints also i would like to learn how to add or remove constraints but my c++ is not very sharp though i can understand c# quite well.
I've gone through the CSVRPTW example written in c# but i was not able to modify much in that and also while debugging i was not able to get inside the code in many functions , i assume because of the SWIG wrapper being used.
I'am in dire need for help as summers are about to end i have to complete my project. If anyone could help me in understanding how to add constraints or any example which has datasets or a file so that i can visualize the data and hence modify it.
Thanks in advance!!

There's a Python example of adding capacity and time constraints newly
documented here:
https://developers.google.com/optimization/routing/tsp/vehicle_routing_time_windows
The same approach will work in C#.
Jon
On Mon, Jun 27, 2016 at 11:37 PM, rajatjangir<EMAIL_ADDRESS>wrote:

Hi everyone,
First of all thanks for such a great library.
I've been using this library for my research project for quite some time.
Though i am still in the learning phase.
My aim is develop and Vehicle Routing Problem with Pickup and Delivery
Constraints also i would like to learn how to add or remove constraints but
my c++ is not very sharp though i can understand c# quite well.
I've gone through the CSVRPTW example written in c# but i was not able to
modify much in that and also which debugging i was not able to get inside
the code in many functions , i assume because of the SWIG wrapper being
used.
I'am in dire need for help as summers are about to end i have to complete
my project. If anyone could help me in understanding how to add constraints
or any example which has datasets or a file so that i can visualize the
data and hence modify it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/199, or mute the thread
https://github.com/notifications/unsubscribe/AIoiW2BCZdgsQkgDnsr7hwhz9L49YX89ks5qQJb0gaJpZM4I_tjm
.


Is the stream expected to continue if the buffer is exceeded?

https://github.com/dominictarr/split/blob/master/index.js#L45
There's no return after the error is emitted. Is this by design?

FWIW, for others who might arrive to this issue: switching to split2 by @mcollina addresses my concern (it returns if max buffer is reached).
In addition, @mcollina's has the subtle difference of also applying the maxLength policy to any write, not just buffered writes, which I think is a good decision.

Thanks @rauchg. split2 is based on Streams3, and most of these things come "for free", because of that. I would also want to note that split2 fully respects utf-8 boundaries.
split2 is unfortunately slower than split. However I haven't seen it having a big impact in real-life situations. If you care about speed you can try http://npm.im/syncsplit.

@rauchg you are right, this should return there.

fixed in 1.0.1

Should this issue be closed now?  The other two open issues look resolved to me too.


How to add depth supervision

Hi, @ashawkey
I want to add depth supervision to ngp. The depth comes from the triangulated 3D points, e.g. we can use colmap to do this. However, the depth scale does not match the depth sampling interval of ngp, where the near and far planes are computed by aabb test. Do you have any idea of how to do it?

@AIBluefisher Sorry that the depth backward in cuda ray mode has not been implemented. You may need to modify this function and properly handle the grad_depth.

Thank you~

@AIBluefisher Hi, are you able to add the depth supervision? Could you please share you code 🙏

I tried to implement depth rendering, everything else (e.g. loss) remain the same, and the training (epoch) becomes 20x slower, is this normal?

@AIBluefisher Hi, are you able to add the depth supervision? Could you please share you code 🙏

前辈，您搞懂如何添加depth loss了吗

@AIBluefisher Hi, are you able to add the depth supervision? Could you please share you code pray

我想到了一个方法，您可以把梯度扩充为三维，当成颜色去计算损失函数．前向　反向传播仍然使用作者的代码

@oolongscu You can try this: https://github.com/ashawkey/dreamfields-torch/commit/c8f178be0de4c3313722fecd544b3c196b6c8514


Feature/field boxes

The build is failing. Can you kindly address this?
Can you also address the merge conflicts?

Hi po sir ardee, gi closed ko po yung PR. hinde ko po maayos kasi busy po ako sa business and palaging umuulan dito sa amin walang kurente minsan. salamat po. God Bless you and family.


"Connection refused" when using RedisToGo

Hi
Juggernaut fails to connect when using RedisToGo (thus assigning process.env.REDISTOGO_URL) because process.env is undefined in events.js.
A first connection is made from publish.js line 8, which works fine, but when redis.createClient is called from events.js line 6 it fails because process.env.REDISTOGO_URL is undefined.
I fixed this by assigning process.env.REDISTOGO_URL in events.js but there is surely a better way to do it (maybe a config.js file?).
Also, we need to add a call to auth(address.auth.replace(/.*:/, '')) in createClient to connect to RedisToGo.
Cheers

+1
Failing to connect properly with RedisToGo on Heroku.

Initially, I had the same problem with redis running on a separate server. It occurred that my upstart script was broken. It works fine for me now with Jugerrnaut 2.1.0.
Maybe, it would be better to a add a '--redis' option to juggernaut rather than to rely on env variables?


[Bug]:   Support macOS Sequoia

Version

[ ] I'm using version 1.16

Known issues

[X] I've checked Known issues

Existing issues

[X] I've checked Existing issues

Advanced Preferences

[X] I've checked Advanced Preferences

What operating system are you using?
macOS
Operating System Version
macOS Sequoia 15.0
Reproduction steps
I upgraded stretchly with latest version using:
brew upgrade --cask

Then open it. There's no icon displayed on the task bar of macOS.
This error message is displayed when it's time for the rest:

Reproduces how often: [What percentage of the time does it reproduce?]
Expected Behavior
Stretchly
Actual Behavior
Can open stretchly and see the icon displays in task bar
Relevant log output
No response
Preferences
No response
Additional information
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi, error message suggest there should be some more info in logs, can you check?
If I remember correctly, something like ~/Library/Logs/Stretchly/main.log
I don't have Mac device

main.log
Here it is

Did you close Stretchly before updating it? From logs it seems you did not. Can you try closing it and starting again?

I see. I closed it and started it again and it is working now. Thank you. I'm closing this issue.


Add missing arg value in multi-app-template.md

Thank you for helping make the Dapr documentation better!
Please follow this checklist before submitting:

[x] Commits are signed with Developer Certificate of Origin (DCO - learn more)
[x] Read the contribution guide
[ ] Commands include options for Linux, MacOS, and Windows within codetabs
[ ] New file and folder names are globally unique
[ ] Page references use shortcodes instead of markdown or URL links
[ ] Images use HTML style and have alternative text
[ ] Places where multiple code/command options are given have codetabs

In addition, please fill out the following to help reviewers understand this pull request:
Description

Added a missing arg placeholder for dapr stop -f example
Issue reference

I see that the validate-links check has failed, but I haven't made any links edits in this PR 😄

@stuartleeks hm I'm not sure why the link isn't working - it works for me. try bookending the 'broken' links with these:

< !-- IGNORE_LINKS -- >
< !-- END_IGNORE -- >

@hhunter-ms - it turns out that the broken link has a 301 redirect, so I've updated the links to the new URL


Fix example for lin scored_synonyms

The demo is currently repeating previous example of displaying synonyms without scores.

Thanks @chrisji


when and how 'rewriting_compile' function is called?

i read "rewriter.py"  source code, "builtins.compile" confused me
@functools.wraps(original_compile)
    def rewriting_compile(*args, **kwargs):
        ...
builtins.compile = rewriting_compile

what i understand at first is "compile function has been hooked, when run 'python xxxx.py' and compile the code, builtins.compile will be called first, so rewriting_compile function will be called".
but after i run test code as below, i am confused.
import dis
import functools
import random
import os
import _frozen_importlib_external
import builtins
from sys import version_info
from ast import PyCF_ONLY_AST

original_compile = builtins.compile

@functools.wraps(original_compile)
def rewriting_compile(*args, **kwargs):
    flags = (len(args) >= 4 and args[3]) or kwargs.get("flags") or 0
    print("rewriting_compile")
    return False

builtins.compile = rewriting_compile

print("end")

"rewriting_compile" will not be printed.
so my question is  " when and how 'rewriting_compile' function is called".

I'm not sure why it would be in your case - in python, the compilation step is generally only done when you import a new module (or e.g. use eval to run an arbitrary statement). This is why I mention that install_rewriter() needs to be called very early on in the python process, preferably before any interesting modules are imported.

import functools
import builtins

original_compile = builtins.compile

@functools.wraps(original_compile)
def rewriting_compile(*args, **kwargs):
    flags = (len(args) >= 4 and args[3]) or kwargs.get("flags") or 0
    print("rewriting_compile")
    return False

builtins.compile = rewriting_compile
compile = rewriting_compile

import hashlib

eval("1==1")

# code = compile("", "name", "exec")

if "eval" or "import a new module" will call compile function，why above code does not print "rewriting_compile"?

I'm not sure about the eval case (I've never really dug into the inner workings of eval) but for the import hashlib, this is a case that won't call builtins.compile because the bytecode for that will have already been compiled & written to a .pyc file - instead it will call _frozen_importlib_external._compile_bytecode when it tries to load that off disk. That's why I have to hook both of them.


chore: Update Dockerfile and Gem dependencies to latest

Issue #, if available:
Description of changes:

Update Dockerfile and Gem dependencies to latest
Add favicon and adjust font for easier readability

Running here (for now, will go away soon) http://ex-fargate-555676380.eu-west-1.elb.amazonaws.com/
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

also, not sure how we get this from here to -> https://gallery.ecr.aws/aws-containers/ecsdemo-frontend

cc @maishsk


Fix tied parameters test in big model inference

This PR fixes the test to determine tied parameters in infer_auto_device_map. The problem was discovered while investigating #958. When the module to treat contains both tied parameters (in the case of the issue, the module treated is transformers and the tied parameters are 'transformer.shared.weight' and 'transformer.decoder.embed_tokens.weight') and it can fit on the current device, we get to an index error when the module treated is removed from the list of modules_to_treat.
The fix is to just ignore tied parameters in this case: this is only done to make sure they end up on the same device, but if we treat a module containing the tied parameters together, they will be put on the same device.
Fixes #958

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Private DNS in Spoke vs Hub

Review Private DNS implementation, should it be in Hub vs Spoke as per LZ guidance

As a suggestion as this isn't getting clear to me through the documentation:
How should Application / Workload teams handle the creation for required DNS Entries ?
Suggesting that i have a hub-spoke network topology where the central hub is linked to all the Private DNS Zones and the DNS will be resolved using a Central DNS Server (e.g Firewall, Custom DNS Server). In this scenario an application team / Workload team wants to publish an application only internally for other application teams. The Domain for the DNS Entry looks like "myapp.stage.myorg.internal" part of the DNS Zone "stage.myorg.internal".
Who is Responsible for the Creation of the DNS Entry ?
I would assume in general the platform team but thinking about this this means the application teams have to get in contact for almost each DNS entry ( Excluding the default azure domains like azurewebsites.net and others). This also implies that the platform team has to manage a lot of DNS Requests in larger organizations per day. Expecially with resource types like Azure Kubernetes Service where a deployment of a new Endpoint is very easy this sounds like a lot of effort. Also i wouldn't like to restrict the Application Team in something like there Dev environment to allow them to create new Applications published via DNS for testing purposes.
In case Workload Team is responsible:
Should each Workload Team manage its own DNS Zone ?
As in case the workload Team is responsible there might not be aware of other Teams using the DNS Zone what could lead to a potential conflict between multiple teams trying to provision the same DNS Entry in the same DNS Zone. For that reason it sounds resonable to  create a DNS Zone per Spoke ( Application Team) to prevent those conflicts. But how are they supposed to manage them if they should not be allowed to access the connectivity subscription by themself.
In case Platform Team is responsible:
How is the workflow supposed to be between Platform and Workload team?
As all DNS Entries have to be managed by the platform team. Each Workflow team must send a request to the platform team for any DNS Entry they require. This is time consuming and might results in Failures due to communication in the organization.
Is there a way to automate Provisioning of DNS Entry Requests ?
I was thinking about something similiar to the Firewall Manager where an Approval Process can be used to create new Firewall rules requested by certain Workload Teams.
In case im here at the wrong place please guide me to the appropriate place. Thanks in advance.
Cheers


feat(coral): Add routes for environments views

About this change - What it does
Add routes for the environment views.
Resolves: #1705

@programmiri added FF dbe80cb


Add onCloseStart and return modal element.

This adds the following functionality:
1.
Adds a the ability to set a onCloseStart function. If set the close function will call this with the modal DOM element and a callback, then wait before completing the close. This allows some javascript to run and complete before removing the modal.
Example:
const modal = new Modal();

modal.onCloseStart = (element, callback) => {
  gsap.to(element, {
    opacity: 0,
    onComplete: callback
  })
}

modal.close();

2.
Returns the modal DOM element to the onOpen function. This allows us to easily access the newly create modal element.
Example:
const modal = new Modal();

modal.onOpen = (element) => {
  gsap.from(element, {
    opacity: 0
  })
}

modal.open();

3.
Moved the onOpen call into the delay timeout so that element returned in onOpen is appended and ready.
Note:
Bumped version to 3.4.0. I don't think this introduces a breaking change so we might be ok on 3.3.1 but might be safer to bump the minor.

This all looks awesome @ste-vg 🔥  I tested all your updates and they're working well.

I love having this.modal easily accessible in the onOpen — good quality-of-life update 😄
I think you're right with the minor version bump — specifically moving the onClose call into the inOutDuration timeout could have some adverse effects on any existing stuff.
Is it worth adding some docs at the start of the _completeClose function, or is that self-explanatory do you think?

Thanks for all this

Also — I found a couple bugs in the existing code, so maybe let's wait to do any version bumps until we have a release branch ready


D3D12MeshletCull sample sphere plane intersection test

Hello, I had question about the sphere plane intersection test used in the amplification shader of the D3D12MeshletCull sample. Why is the dot product compared against -radius in the intersection test? If I understand correctly, the dot product gives the signed distance of the sphere center from the plane.
https://github.com/microsoft/DirectX-Graphics-Samples/blob/e5ea2ac7430ce39e6f6d619fd85ae32581931589/Samples/Desktop/D3D12MeshShaders/src/MeshletCull/MeshletAS.hlsl#L27

I didn't write this code, and this is the first I'm seeing it, but my assumption is that for this code to work, the plane normals must be pointing into the frustum.  A distance of -radius means that the sphere is behind the plane far enough to not penetrate.

The signed-ness of the dot product is determinate on the direction of the plane normal. I believe I used this article to extract the plane equations from the debug camera ViewProjection matrix, which is on the C++ side.
Knowing me, I probably just tested both ways and found they faced inward, so negative dot product values are outside the frustum.

Ok, that makes sense. Could the shader be updated with this comment?
Most of the shaders are pretty well documented but there's some math that could be easier to follow with a bit more explanation.