400 Request made from incorrect origin on login after upgrading to v2.2.1.

Issue Summary
Can't login to the ghost instance after upgrading to v2.2.1 from v2.2.0 using CLI. It can be reproduced in latest version of Chrome and Safari browsers with clearing cache with hard reload, too.
To Reproduce

Head to https://jakubturek.com/admin.
Enter valid credentials.

I receive 400 Request made from incorrect origin. error page. Stacktrace:
[2018-10-09 15:54:18] ERROR "GET /ghost/api/v2/admin/users/me/?include=roles" 400 7ms

NAME: BadRequestError
MESSAGE: Request made from incorrect origin.

level: normal

empty
empty
ERROR DETAILS:
    empty

BadRequestError: Request made from incorrect origin.
    at new BadRequestError (/var/www/ghost/versions/2.2.1/node_modules/ghost-ignition/lib/errors/index.js:94:23)
    at cookieCsrfProtection (/var/www/ghost/versions/2.2.1/core/server/services/auth/session/middleware.js:108:21)
    at Layer.handle [as handle_request] (/var/www/ghost/versions/2.2.1/node_modules/express/lib/router/layer.js:95:5)
    at next (/var/www/ghost/versions/2.2.1/node_modules/express/lib/router/route.js:137:13)
    at /var/www/ghost/versions/2.2.1/node_modules/express-session/index.js:489:7
    at SessionModel.findOne.then (/var/www/ghost/versions/2.2.1/core/server/services/auth/session/store.js:26:17)
    at tryCatcher (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)

[2018-10-09 15:54:18] ERROR "GET /ghost/api/v2/admin/settings/?type=blog%2Ctheme%2Cprivate" 400 10ms

NAME: BadRequestError
MESSAGE: Request made from incorrect origin.

level: normal

empty
empty
ERROR DETAILS:
    empty

BadRequestError: Request made from incorrect origin.
    at new BadRequestError (/var/www/ghost/versions/2.2.1/node_modules/ghost-ignition/lib/errors/index.js:94:23)
    at cookieCsrfProtection (/var/www/ghost/versions/2.2.1/core/server/services/auth/session/middleware.js:108:21)
    at Layer.handle [as handle_request] (/var/www/ghost/versions/2.2.1/node_modules/express/lib/router/layer.js:95:5)
    at next (/var/www/ghost/versions/2.2.1/node_modules/express/lib/router/route.js:137:13)
    at /var/www/ghost/versions/2.2.1/node_modules/express-session/index.js:489:7
    at SessionModel.findOne.then (/var/www/ghost/versions/2.2.1/core/server/services/auth/session/store.js:26:17)
    at tryCatcher (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/var/www/ghost/versions/2.2.1/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)

Technical details:

Ghost Version: 2.2.1
Node Version: v6.11.1
Browser/OS: OS X Mojave, latest Chrome / latest Safari
Database: MySQL

@turekj what URL are you trying to log in on and what is the configured url/adminUrl in your config file?

From the config file:
{
  "url": "https://jakubturek.com",
}

I have no adminUrl specified in the config file. I am trying to log in via https://jakubturek.com/admin (redirected to https://jakubturek.com/ghost/#/signin)

@kevinansfield I can confirm that rolling back to 2.2.0 by using ghost update --rollback solved the issue.

I'm experiencing the same issue on a fresh v2.2.1 install here (behind a Nginx reverse). Trying v2.2.0 now.

… and I confirm it works perfectly in v2.2.0!

@turekj The new authentication for ghost checks that a request is made from the same origin as the session was initiated from. We determine the origin via the Origin header or the Referrer if that is missing. It's possible that cloudflare is messing with that. What's strange is that upon login, an error should occur if neither of those headers are present. So it seems that the value of the header is changing between the login request and the subsequent ones.
@olivierlambert I cannot replicate this when behind an nginx proxy - would you share your config with me?

@turekj @olivierlambert It would be really useful if you can provide the Origin and Referrer headers from your browsers network console for both the 200 request to /session/ and the 400's afterwards.

@turekj @olivierlambert I was able to replicate this locally when using an nginx configuration that supported both https: and http: logging in on one protocol and accessing the admin on the other caused the issue. Does this match how either of your blogs are configured?

I have a very similar configuration and same results than @turekj

@turekj @olivierlambert Thanks so much for your input - I believe the bug is caused by a misspelling of the "Referer" header in ghost - which I only noticed after reading through your comment! I've raised a PR for it now :relaxed:

You guys rock! 12 hours passed since the report and there’s already a PR to fix the issue :heart:
Will be happy to test the new release and see whether the issue is gone, but it sounds very reasonable. Once again, thank you, you’re doing an amazing job with Ghost!

Thanks for the love! <3
I haven't merged that PR yet, because looking at the express source code, they handle misspellings of the Referer/Referrer header - which means it's unlikely to be the cause. I am still trying to replicate this locally though.
Would you be okay to help us debug this some more by adding some logs on your end?
Specifically in <ghost-install>/current/core/server/services/auth/session/middleware.js
On line 107
if (req.session.origin !== getOrigin(req)) {
+   const msg = `Expected ${req.session.origin}, got ${getOrigin(req)}`;
    return next(new common.errors.BadRequestError({
-       message: common.i18n.t('errors.middleware.auth.mismatchedOrigin')
+       message: common.i18n.t('errors.middleware.auth.mismatchedOrigin') + msg
    }));
}

Thanks so much for bearing with us :relaxed:

@allouis The output is:
Expected https://jakubturek.com, got null.
I think that it's not terribly useful to you, so I've copy pasted bunch of getOrigin(req) method, too:
    if (req.session.origin !== getOrigin(req)) {
        const origin = req.get('origin');
        const referrer = req.get('referrer');
        const msg = `Expected ${req.session.origin}, got ${getOrigin(req)}`;
        return next(new common.errors.BadRequestError({
            message: common.i18n.t('errors.middleware.auth.mismatchedOrigin') + msg + ' origin: ' + origin + ' referrer: ' + referrer
        }));
    }

And it printed out: origin: null referrer: https://jakubturek.com/ghost/. Still not terribly useful

But I think this might be the interesting part for you:
    if (req.session.origin !== getOrigin(req)) {
        const origin = req.get('origin');
        const referrer = req.get('referrer');
        const referrerOrg = new URL(req.get('referrer')).origin;
        const msg = `Expected ${req.session.origin}, got ${getOrigin(req)}`;
        return next(new common.errors.BadRequestError({
            message: common.i18n.t('errors.middleware.auth.mismatchedOrigin') + msg + ' origin: ' + origin + ' referrer: ' + referrer + ' origin x2: ' + referrerOrg
        }));
    }

The referrerOrg part I took from getOrigin method. Now I get server error 500 with: URL is not a constructor stack trace, which might explain why it's impossible to extract origin from the referrer only!

This would mean that node v6 is the issue in here.

FYI I'm running v6.14.3

@turekj Wow that's really useful! Thanks - i'll write a breaking test and get a patch out for this a$ap :+1:

@turekj Thank very much for the bug report and the debugging - couldn't have solved this without that!
@olivierlambert Thanks for helping out :+1:
A fix for this has landed on master, I will release tomorrow morning as v2.2.2
:ghost:

Thanks!

Expirienced same issue on 2.2.2, which was related to nginx configuration, so had to change it with additional headers. Not sure, if that is optimal solution, but at least working one:
...
    location / {
+       add_header 'Access-Control-Allow-Origin' 'https://www.hostname.com';
+       add_header 'Access-Control-Allow_Credentials' 'true';
+       add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
+       add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
+       add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
+
+       if ($request_method = 'OPTIONS') {
+           add_header 'Access-Control-Max-Age' 1728000;
+           add_header 'Content-Type' 'text/plain charset=UTF-8';
+           add_header 'Content-Length' 0;
+           return 204;
+       }

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $http_host;
        proxy_pass http://<IP_ADDRESS>:3000;
    }
...

@migolovanov What issue were you seeing? Was nginx not forwarding the Origin or Referer headers?

I saw 400 response code on login attempt with same message in logs: BadRequestError: Request made from incorrect origin. Expected 'https://www.hostname.com' received ''.
There was missing Origin header in requests sent from browser, so upstream hasn't received them either.

@migolovanov Yeah the authentication needs either an Origin or Referer header to work. I'm interested as to why these CORS headers make it work for you though?
What browser are you using?


typo fix prepare_enviroment --> prepare_environment to match typo fix…

… in A1111 repo
see https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/59c2dfe1e6a29dcf231fa9d894ac238887e40c39

You beat me to it.


Fix commands in honeypot guide

Changes introduced with this PR
Fixed some commands. detailed reasons commented on code

By contributing to this repository, I agree to the contribution guidelines.

Hello @paseaf thank you very much for your contribution! Please feel free to add yourself to the contributors list on the website by editing this file.


Issue with compiling example code

Hello all.
using the Adafruit Feather 2040 RP2040 DVI, Arduino IDE 2.3.2, current version of PicoDVI and associated libraries, and I am getting the following error:
\Documents\Arduino\libraries\PicoDVI_-Adafruit_Fork\src\libdvi\dvi.c: In function 'dvi_dma_irq_handler':
\Documents\Arduino\libraries\PicoDVI-_Adafruit_Fork\src\libdvi\dvi.c:194:68: error: 'dma_debug_channel_hw_t' has no member named 'tcr'
194 |                 while (dma_debug_hw->ch[inst->dma_cfg[i].chan_data].tcr != inst->timing->h_active_pixels / DVI_SYMBOLS_PER_WORD)
|                                                                    ^
exit status 1
Compilation error: exit status 1
Other RP2040 examples work but anything related to PicoDVI does not compile, all examples flagging the same error. Gone hunting about both the code and various forums but no one seems to have something similar. Happy to be at fault with this but I can't find the issue.

Facing same issue, did you find a solution?

Open 'dvi.c' in the ' \Arduino\libraries\PicoDVI_-_Adafruit_Fork\src\libdvi\ ' folder with an editor.
In line 194 of 'dvi.c', change 'tcr' to 'dbg_tcr' in 'dma_cfg[i].chan_data].tcr'.
- while (dma_debug_hw->ch[inst->dma_cfg[i].chan_data].tcr != inst->timing->h_active_pixels / DVI_SYMBOLS_PER_WORD)
+ while (dma_debug_hw->ch[inst->dma_cfg[i].chan_data].dbg_tcr != inst->timing->h_active_pixels / DVI_SYMBOLS_PER_WORD)
Save the file.
(This text was translated into English using a translation site)

Brilliant - that was the change needed. Works well. tested a couple of the examples and is working. Thanks HisashiKato


npx ignite-cli remove-demo-markup unable to run prettier if no deps installed

The way npx ignite-cli remove-demo-markup works is removing some comment blocks related to marking demo code and then runs prettier over the codebase to correct any formatting that is needed.
However, if the user decided not to install dependencies yet and decides to run this command, the prettier formatting will fail.
We'll need to improve the regex to get the spacing right during string replacement, consider running npx prettier or come up with another solution (possibly just warning the user it can't be run as the dependency wasn't found).

:tada: This issue has been resolved in version 8.2.6 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MockitoSugar is not longer part of ScalaTest

Examples still contains references to MockitoSugar, as it can be seen here.
MockitoSugar is no longer part of Scalatest, in version 3.1.1 (which is curretly used),  as used in this project, as you can see here.
Therefore there are broken links in the docs, for example here(click on MockitoSugar in this section), and examples that cannot compile, such as here and here.

Right, it moved from scalatest itself to scalatestplus-mockito, https://github.com/scalatest/scalatestplus-mockito
The examples definitely build: they are compiled as part of our CI (see https://travis-ci.com/github/playframework/scalatestplus-play/jobs/446711309#L3245 for an example of a manually-introduced failure)
In any case, the documentation definitely needs updating to point to the right places.
Would you be interested in contributing?

Great! I don't think I have any particular extra guidelines.

I can't compile the project in intellij. This is the error I am getting:
/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home/bin/java -Djline.terminal=jline.UnsupportedTerminal -Dsbt.log.noformat=true -Dfile.encoding=UTF-8 -Didea.managed=true -Dfile.encoding=UTF-8 -jar /Users/tshetah/Library/Application Support/JetBrains/IntelliJIdea2020.2/plugins/Scala/launcher/sbt-launch.jar
[info] welcome to sbt 1.3.13 (Oracle Corporation Java 1.8.0_212)
[info] loading global plugins from /Users/tshetah/.sbt/1.0/plugins/project/project
[info] loading global plugins from /Users/tshetah/.sbt/1.0/plugins/project
[info] loading settings for project global-plugins from plugins.sbt ...
[info] loading global plugins from /Users/tshetah/.sbt/1.0/plugins
[info] loading settings for project scalatestplus-play-build from plugins.sbt ...
[info] loading project definition from /Users/tshetah/work/workspace/games/scalatestplus-play/project
[info] loading settings for project scalatestplus-play-root from build.sbt ...
[info] set current project to scalatestplus-play-root (in build file:/Users/tshetah/work/workspace/games/scalatestplus-play/)
[error] Failed to derive version from git tags. Maybe run git fetch --unshallow? Version: HEAD+20201126-0124
I am using java 8. @raboof , do you know what can it be?

[error] Failed to derive version from git tags. Maybe run git fetch --unshallow? Version: HEAD+20201126-0124

Have you tried running git fetch --unshallow?

Yes. I get:
TomerShetahMac:scalatestplus-play tshetah$ git fetch --unshallow
fatal: --unshallow on a complete repository does not make sense

Hmm, that's weird. Apparently dynverGitDescribeOutput.value.hasNoTags returns 'true' for you, which is weird when you have the whole repo.
You could try git fetch origin --tags, if that still doesn't work then just comment out lines 42-49 from build.sbt (but remember not to commit that)

Updated in #296


Aprendizagem de Máquina

Uma vez selecionadas as ferramentas e preparados os dados, agora é o momento de aplicar diferentes abordagens de aprendizado de máquina.
Devemos realizar diferentes experimentos com mais de um algoritmo dessas abordagens para obter diferentes resultados e compará-los a fim de identificar o mais performático para o problema, que traga maior conhecimento. Esses experimentos devem ser apresentados e discutidos na documentação do projeto.

 In this lab, you'll run queries against the shakespeare table, which contains an entry for every word in every play.
To examine the schema of the Shakespeare table in the samples dataset, run:
bq show bigquery-public-data:samples.shakespeare
In this command you're doing the following:

bq to invoke the BigQuery command line tool
show is the action
Then you're listing the name of the project:public dataset.table in BigQuery that you want to see.

Criando um novo dataset:

Use the bq ls command to list any existing datasets in your project:

bq ls
You will be brought back to the command line since there aren't any datasets in your project yet.

Run bq ls and the bigquery-public-data Project ID to list the datasets in that specific project, followed by a colon (:):

bq ls bigquery-public-data:
Output:
           datasetId
 -----------------------------
  austin_311
  austin_bikeshare
  austin_crime
  austin_incidents
  austin_waste
  baseball
  bitcoin_blockchain
  bls
  census_bureau_construction
  census_bureau_international
  census_bureau_usa
  census_utility
  chicago_crime
  ...

Now create a dataset. A dataset name can be up to 1,024 characters long, and consist of A-Z, a-z, 0-9, and the underscore, but it cannot start with a number or underscore, or have spaces.

Use the bq mk command to create a new dataset named babynames in your project:

bq mk babynames
Sample output:
Dataset 'qwiklabs-gcp-ba3466847fe3cec0:babynames' successfully created.

Run bq ls to confirm that the dataset now appears as part of your project:

bq ls

Classification Model:
#standardSQL
WITH visitors AS(
SELECT
COUNT(DISTINCT fullVisitorId) AS total_visitors
FROM `data-to-insights.ecommerce.web_analytics`
),
purchasers AS(
SELECT
COUNT(DISTINCT fullVisitorId) AS total_purchasers
FROM `data-to-insights.ecommerce.web_analytics`
WHERE totals.transactions IS NOT NULL
)
SELECT
  total_visitors,
  total_purchasers,
  total_purchasers / total_visitors AS conversion_rate
FROM visitors, purchasers

logistic_reg
CREATE OR REPLACE MODEL `ecommerce.classification_model`
OPTIONS
(
model_type='logistic_reg',
labels = ['will_buy_on_return_visit']
)
AS
#standardSQL
SELECT
  * EXCEPT(fullVisitorId)
FROM
  # features
  (SELECT
    fullVisitorId,
    IFNULL(totals.bounces, 0) AS bounces,
    IFNULL(totals.timeOnSite, 0) AS time_on_site
  FROM
    `data-to-insights.ecommerce.web_analytics`
  WHERE
    totals.newVisits = 1
    AND date BETWEEN '20160801' AND '20170430') # train on first 9 months
  JOIN
  (SELECT
    fullvisitorid,
    IF(COUNTIF(totals.transactions > 0 AND totals.newVisits IS NULL) > 0, 1, 0) AS will_buy_on_return_visit
  FROM
      `data-to-insights.ecommerce.web_analytics`
  GROUP BY fullvisitorid)
  USING (fullVisitorId)
;

EVALUATE MODEL
SELECT
  roc_auc,
  CASE
    WHEN roc_auc > .9 THEN 'good'
    WHEN roc_auc > .8 THEN 'fair'
    WHEN roc_auc > .7 THEN 'decent'
    WHEN roc_auc > .6 THEN 'not great'
  ELSE 'poor' END AS model_quality
FROM
  ML.EVALUATE(MODEL ecommerce.classification_model,  (
SELECT
  * EXCEPT(fullVisitorId)
FROM
  # features
  (SELECT
    fullVisitorId,
    IFNULL(totals.bounces, 0) AS bounces,
    IFNULL(totals.timeOnSite, 0) AS time_on_site
  FROM
    `data-to-insights.ecommerce.web_analytics`
  WHERE
    totals.newVisits = 1
    AND date BETWEEN '20170501' AND '20170630') # eval on 2 months
  JOIN
  (SELECT
    fullvisitorid,
    IF(COUNTIF(totals.transactions > 0 AND totals.newVisits IS NULL) > 0, 1, 0) AS will_buy_on_return_visit
  FROM
      `data-to-insights.ecommerce.web_analytics`
  GROUP BY fullvisitorid)
  USING (fullVisitorId)
));


esp32c3 on super mini i2c error

I am trying to get version 2 working on a super mini but am getting i2cread error 263, no output signal on pins 6 and 7 for the gyro. everything is working fine with version 1.4.

It is fixed in the dev branch


cmd: Allow more complicated patterns in map string type.

The previous PR #18478 wraps existing viper GetStringMapString function
to get around upstream bugs, however, it's unintentionally restricted a
few formats, which supported before in cilium, such as:

--aws-instance-limit-mapping=c6a.2xlarge=4,15,15,m4.xlarge=1,5,10
--api-rate-limit=endpoint-create=rate-limit:10/s,rate-burst:10,parallel-requests:10,auto-adjust:true

For complicated attribute, we are allowing comma character in value part
of key value pair. As golang didn't support look-ahead functionalities in
built-in regex library, this commit is to replace string.Split function
by custom implementation to handle such scenario.
Relates: #18478
Fixes: #18973
Signed-off-by: Tam Mach<EMAIL_ADDRESS>

/test

/test-runtime


Terminal offset after echoing certain Unicode strings.

In the terminal, type echo '<胡雨軒 Петр>' after which, the terminal display is misaligned as demonstrated below.  It will remain so until the line containing <胡雨軒 Петр> scrolls off screen.
Marty @ C:\Users\Marty
> echo '<胡雨軒 Петр>'
<胡雨軒 Петр>
                                                                                Mar
ty @ C:\Users\Marty                                                                                >

This affects other shells like bash:
> bash
[Marty@Bolt:Marty]<265>$ echo '<胡雨軒 Петр>'
<胡雨
軒 Петр>                                                                                [Mart
y
@Bolt:Marty]<266>$

Details

Browser and browser version:  Visual Studio code
OS version: windows 10 creators
xterm.js version<EMAIL_ADDRESS>

This is related to the Windows 10 Creators Update. See https://github.com/Microsoft/vscode/issues/19665


feat: pass in react

Fix RM-XYZ

🧰 Changes
Allows importing React within mdx.
Aaron pointed out that we couldn't use react features such as useState. The more conventional way to import react would be from a url, but this seemed simpler.
🧬 QA & Testing

Broken on production.
Working in this PR app.

Sadly the more conventional way of just letting import work, requires the rest of our stack to be using import for react so we get the same one :( more hacks around legacy code.
I do think this is something they should be supporting out of the box though. It doesn't need to be this opinionated.

This PR was released!
🚀 Changes included in v6.75.0-beta.25


Improve HTTPState computation

Also, we are switching the reusable workflow used by extension allowing us to update it more easily. If you apply this fix https://github.com/duckdb/duckdb_aws/pull/32/commits/c25b5686c73e9c7160e93018b2f2bf1f7d85e649. Note that the repo changed there from duckdb to extension-ci-tools

thanks again :)


ci: Use misspell in golangci-lint

Signed-off-by: Kemal Akkoyun<EMAIL_ADDRESS>
[x] Change is not relevant to the end user.

Changes

Enable misspell in golangci-lint
Use US spelling for consistency
Make changes accordingly

Verification

make go-lint

looks good :) just needs a rebase since godot merged

@squat rebased


Create research.md for paper, publications and other resources

I moved it to https://github.com/FormsWizard/formswizard/wiki/research:PG-Schemas


Fix snippet calculation for edits, deletes, attachments

@keybase/react-hackers
We were rendering blank snippets for:

deletes: because we were using the deletion message as the snippet message, instead of ignoring it.

edits: because we weren't pulling the edited text out of the edit message.

attachments: because we used the "attachmentuploaded" message for the snippet rather than "attachment" message.

Deletes and attachments are fixed by limiting the types of message we consider for snippets, and edits are fixed by pulling the post-edit text out of the edit message.

The commits 503bc77ef2db...f6b82171e93f introduce visual changes on linux. :mag_right: 1 changed

Changed: unlock_folders-Success (before) (after)


Protect XR transforms from receiving NaN values from the hardware

Godot version:
3.2.2.stable
OS/device including version:
Oculus Quest (Android)
Issue description:
There are occasional NaN values getting into Godot's ARVR transforms from the hardware API (specifically the Quest) and not being filtered out or detected.  This caused a bug that took me 8 hours to track down.
The XRServer somewhere around here in the godot_oculus_mobile code is updating the positional tracker value for the ARVRCamera that is accessed somewhere around here.  (I can't find the update loop where the API is actually being called and the bogus values are getting through.)
Steps to reproduce:
Take the simplest Oculus Quest demo project that comes with the library, like this one
Then in your ARVROriginWithInitAndMovement.gd (the one derived from ARVROrigin), add the following few lines at the start of the _process() function:
var processTimeStamp = 0
func _process(delta_t):
	processTimeStamp += delta_t
	if is_nan($ARVRCamera.transform.basis.x.x):
		print(" Bad ARVRCamera position:", processTimeStamp, " ", $ARVRCamera.transform)

The result will be:

Bad ARVRCamera position:0.122599 nan, nan, nan, nan, nan, nan, nan, nan, nan - -0, 0, -0

In my application I was reliably getting a run of bad NaN values in the VR camera orientation fields between 0.15seconds and 0.26667seconds of startup -- there were a few valid values at the start, which made this bug so difficult to identify.
I can't rule out that there won't be glitches in the system that spit out these values minutes or hours in.  If motions are being done relative to the camera (eg to keep the player within the walls) then this issue will cause the player to suddenly spin off to infinity, and it will be impossible to find out the bug.
We would hope it's not necessary for any sanity checking to be done for these values in the Godot system (eg to ensure that you don't get numbers well outside the range), because the VR operating system should do this itself because it knows the dimensions of the kit.  (Eg if we coded in a 50 metre range limit from the VROrigin then this would unnecessarily cause a problem when someone builds a 100m range device next yet.)
However at the very least we should be logging errors when the numbers are completely out (NaNs, infinities, values that exceed a light year) to show where there are bugs in the VR operating system like this.  This is definitely an Oculus Quest bug and it should be reported to them.  For now I am having to check for NaNs in all my VR code where the positions are given by the hardware.
Minimal reproduction project:
See above

@goatchurchprime Are you seeing these issues upon starting the app, or upon putting the headset on?
If it's upon starting the app, then it may be an issue in the plugin initialization logic.
If it's upon putting on the headset, then that may be expected as the device may take some time to initially acquire tracking.
Can you open a matching bug in the Quest plugin repo as well. That'll help with tracking and resolving the issue.

@goatchurchprime Any updates on this issue?

I haven't been monitoring it, but I thought I saw it 2 weeks ago.  I just tried starting my app with the adb running just now and I didn't get any messages from the lines in my code
Maybe there's been an update from Oculus that fixes it.  I don't know.  Today it is not reproducing on my Quest2.  I don't know what that means we should do with this ticket, but I'm not taking that if is_nan()-block out of my code.
Meanwhile I do get a lot of **ERROR**: Condition "p_aabb.position.x > 1e15 || p_aabb.position.x < -1e15" is true. messages near startup that probably has nothing to do with this, but which I am having to ignore.

Actually, I'm still getting this issue of NaN's being returned for the VR camera position for the first 0.2 seconds of running an app, even on a new Quest2, so it's definitely not gone away.
 skipping bad headcam position:0.125 orientation (nan, nan, nan)
 skipping bad headcam position:0.138889 orientation (nan, nan, nan)
 skipping bad headcam position:0.152778 orientation (nan, nan, nan)
 skipping bad headcam position:0.166667 orientation (nan, nan, nan)
 skipping bad headcam position:0.180556 orientation (nan, nan, nan)
 skipping bad headcam position:0.194444 orientation (nan, nan, nan)
 skipping bad headcam position:0.208333 orientation (nan, nan, nan)
 skipping bad headcam position:0.222222 orientation (nan, nan, nan)

Fixed by https://github.com/GodotVR/godot_oculus_mobile/pull/128


[WIP] Use iree's generic vectorization pass

Alternative to https://github.com/nod-ai/iree-amd-aie/pull/162
Rather than manually convert on an op-by-op basis, use IREE's vectorization pass.
vector.contract appears as expected, but lowering fails in an air pass -- An MLIR assertion failure in air-collapse-herd:
mlir::IRObjectWithUseList<mlir::OpOperand>::~IRObjectWithUseList() [OperandType = mlir::OpOperand]: Assertion `use_empty() && "Cannot destroy a value that still has uses!"' failed.

A similar error is also causing this issue
https://github.com/nod-ai/iree-amd-aie/issues/120
It may be worth figuring out what needs to change, to allow air to lower these kind of IRs

I can "fix" this by preventing linalg::CopyOp from being vectorized. i.e. in  GenericVectorizationPass::runOnOperation() if I add
      if (isa<linalg::CopyOp>(op)){
        // Skip vectorization of copy operations.
        continue;
      }

over here
This prevents CopyOp's from being vectorized here
    (void)linalg::vectorize(rewriter, op, vectorSizes, scalableVecDims,
                            vectorizeGatherAccesses);

Why does this help?
With the padding approach, we have the passes which append IR like
%extracted_slice_0 = tensor.extract_slice %4 ...  to tensor<4x32x3x3xf32>

with IR like
%13 = bufferization.alloc_tensor() : tensor<4x32x3x3xf32>
%alloc_2 = memref.alloc() : memref<4x32x3x3xf32, 1>
%14 = bufferization.to_tensor %alloc_2 ... : memref<4x32x3x3xf32, 1>
%15 = linalg.copy ins(%extracted_slice_0 : tensor<4x32x3x3xf32>)
             outs(%14 : tensor<4x32x3x3xf32>) -> tensor<4x32x3x3xf32>

This is the mechanism used to specify that the tensor should be in memory space 1 (i.e. on the AIE memtile).
The vectorization pass, when run on linalg.copy, is doing some kind of unwanted canonicalization and removing the linalg.copy, thus removing all trace of allocation on memtile.
Next steps:

Figure out why linalg.copy is being removed in vectorization, figure out a clean way of avoiding this.
If the IR isn't something AIR can handle, it should pick this up earlier and provide useful information.

As a reproducer, consider simple_test.mlir:
module {
  func.func @extract_slice_and_copy(%arg0: tensor<8x16xf32>) -> tensor<8x16xf32> {
    %extracted_slice = tensor.extract_slice %arg0[0, 0] [8, 16] [1, 1] : tensor<8x16xf32> to tensor<8x16xf32>
    %alloc = memref.alloc() : memref<8x16xf32, 1 : i32>
    %0 = bufferization.to_tensor %alloc restrict writable : memref<8x16xf32, 1 : i32>
    %1 = linalg.copy ins(%extracted_slice : tensor<8x16xf32>) outs(%0 : tensor<8x16xf32>) -> tensor<8x16xf32>
    return %1 : tensor<8x16xf32>
  }
}

Running iree-opt --canonicalize  simple_test.mlir does not change the IR.
Running iree-opt --iree-codegen-generic-vectorization  simple_test.mlir  transforms to
module {
  func.func @extract_slice_and_copy(%arg0: tensor<8x16xf32>) -> tensor<8x16xf32> {
    return %arg0 : tensor<8x16xf32>
  }
}

And running iree-opt --iree-codegen-generic-vectorization  simple_test.mlir with the patch in IREE to not vectorize linalg.copy leaves the IR unchanged.

What should happen when this gets canonicalized?
module {
func.func @extract_slice_and_copy(%arg0: tensor<8x16xf32>) -> tensor<8x16xf32> {
  %cst = arith.constant 0.000000e+00 : f32
  %c0 = arith.constant 0 : index
  %alloc = memref.alloc() : memref<8x16xf32, 1 : i32>
  %0 = bufferization.to_tensor %alloc restrict writable : memref<8x16xf32, 1 : i32>
  %1 = vector.transfer_read %arg0[%c0, %c0], %cst {in_bounds = [true, true]} : tensor<8x16xf32>, vector<8x16xf32>
  %2 = vector.transfer_write %1, %0[%c0, %c0] {in_bounds = [true, true]} : vector<8x16xf32>, tensor<8x16xf32>
  return %2 : tensor<8x16xf32>
}
}

Currently this is what happens:
module {
  func.func @extract_slice_and_copy(%arg0: tensor<8x16xf32>) -> tensor<8x16xf32> {
    return %arg0 : tensor<8x16xf32>
  }
}

which I guess is valid. I suppose it's a matter of "use bufferization.to_tensor at your own risk" ?

To put another way, the problem is that linalg.copy doesn't fold, but vector.transfer_read and vector.transfer_write do. So the memory space trick we use in iree-amd-aie:
              %alloc_2 = memref.alloc() : memref<16x8xi32, 1>
              %13 = bufferization.to_tensor %alloc_2 restrict writable : memref<16x8xi32, 1>
              %14 = linalg.copy ins(%extracted_slice_0 : tensor<16x8xi32>) outs(%13 : tensor<16x8xi32>) -> tensor<16x8xi32>

works fine, but when we vectorize linalg.copy, the resulting vector.transfer_read/vector.transfer_write get folded away and consumers of %14 just consume %extracted_slice_0.

Update: I can work around the folding issue by modifying the bufferize-to-allocation pass to use options.bufferizeDestinationOnly = false; instead of options.bufferizeDestinationOnly = true.
Why does this work? A copy between memrefs lowers to vector.transfer_read/transfer_write between memref which is not folded. Basically it expands the set of ops in reference semantics by a little bit, thus reducing the folding.
This enables lowering to proceed all to the air ping-pong transformation, where it then fails (region missing a terminator or something).
Digging deeper, I suspect that the problem is now emerging in the CopyToDma pass. It does not convert the vector transfer operations to dma operations.

Closing in favour of https://github.com/nod-ai/iree-amd-aie/pull/172


update the Jenkinsfile to point to branch specific runners

@pjbreaux
This changes was tested against my test jenkins job, here:
http://jenkins.pdbld.f5net.com/job/openstack/job/driver/job/mitaka/job/zancas_test_new_container_11.6.1_undercloud_vxlan/97/console

Can one of the admins verify this patch?

Let's not build on PR until we've merged forward. Waiting for @ssorenso's green light to merge this.

@zancas: we should also merge forward from liberty into master

@pjbreaux I'd like to first merge from mitaka to newton after I test the newton testrunner, then do the merge forward.

:(


nixos/unit: update service configuration and update unit to 1.17

Motivation for this change
Fixed startup service.
Update sandboxing mode - change to "strict" mode and add option to allow writing to custom directories
Running Unit from root - in latest release recommended not set ambient capabilities.
Add simple unit-php test.
Update unit to 1.17
cc @Mic92 @flokli @aanderse
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Added unit-php test.
@aanderse @etu please recheck.

@GrahamcOfBorg test php.unit

@GrahamcOfBorg test php.unit

@GrahamcOfBorg eval

@GrahamcOfBorg test unit-php

Fixed conflicting files

Result of nixpkgs-review pr 85225 1

1 package built:
- unit


already installed dot net still pooping up

Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Not enough information in the initial report.

@garysha06 can you provide the error message you're getting?
Check the output of the where.exe dotnet command and if your system is x64 and the x86 path returns first, please follow the steps at https://github.com/dotnet/core/issues/5962#issuecomment-780084535 to fix the issue.
Let us know how that goes.


Adding custom controls

Hi @sethsandaru,
great project, thanks for creating it. I am using V2.0.1
I am having problems adding custom controls. I tried to follow your instructions from here. I can see my new control in the sidebar, but when i click to add i am getting this error:
Failed to mount component: template or render function not defined.
found in
Anonymous
ControlView
Draggable
NormalSectionView
SectionContainer
FormBuilder
...
Do you have any advice on how to handle this? I can set up a test repository if you can not reproduce the error..
Thanks in advance

never mind, i found a way to include the control/config.
in the registration options i switched from using "require" to an "import" statement. Now it work's.

Hi @Sefux, I'm with the same problem also in my project, using the latest version (2.0.1).
I tried to change the imports statement but doesn't work for me.
In time, Thanks for creating this great project @sethsandaru!

Hi @eliveltonrangell ,
not quit sure what is not working for you, but to be more specific...
in your main.js|ts file you include something like this:
Vue.use(VueFormBuilderPlugin, {
    controls: {
        'switch': {
            name: "Switch Field",
            description: "Single Switch",

            /**
             * Control View Mapping
             */
            fieldComponent: require('./custom-controls/switch/SwitchControl'),
...

The last line is where the require-statement should be changed to an import-statment:
import SwitchControl from './custom-controls/switch/SwitchControl'
Vue.use(VueFormBuilderPlugin, {
    controls: {
        'switch': {
            name: "Switch Field",
            description: "Single Switch",

            /**
             * Control View Mapping
             */
            fieldComponent: SwitchControl ,
...

You have to do the same for the configComponent.
hope it helps you... probalby you write here if that is the case, then documentation should be updated.


feature request: implementation on nwjs

Would be great to have an implementation on nwjs (https://nwjs.io/) to hava a platform independent local application.

I'm not sure how NWJS works but remark is mostly static HTML CSS JS, so I think anyone who takes their remark inside nwjs will have it work.
Can you tell us what you want to do and how we can help?


Fatal error: Class 'ZipArchive' not found in /home/frenzee/public_html/protected/modules_core/admin/libs/OnlineModuleManager.php on line 87

i m going to install modules but i have got this problem anyone help me
Fatal error: Class 'ZipArchive' not found in /home/frenzee/public_html/protected/modules_core/admin/libs/OnlineModuleManager.php on line 87

Please see: https://github.com/humhub/humhub/issues/550


Solve task A exercise 2

That comment would also apply to the first pull-request, but since I did not catch it there, we have to leave it in the history. Should be bearable.

Unfortunately the commit message is a little bit too generic. Please amend and change the message.
From the task:

use appropriate commit messages (not Solve task A)

Should be fixed now with a suitable commit message


Updating ambassador-certs requires restart

Describe the bug
I use Let's Encrypt with Ambassador on Kubernetes. My certificate finally expired and was renewed in the same secret, but that required restarting Ambassador so that Ambassador would load it.
To Reproduce
Steps to reproduce the behavior:

Start ambassador with TLS
Let certificate expire
Renew certificate
Get "Certificate expired" error

Expected behavior
I expected Ambassador to load the new certificate
Versions (please complete the following information):

Ambassador: 0.31.0
Kubernetes environment: GKE
Version [e.g. 1.8.1:] 1.9.6-gke.1

Going to close this as a duplicate of #474


Document .spec.trafficDistribution field in Service

This PR adds documentation for the trafficDistribution field within Service spec.
Previews

https://deploy-preview-45276--kubernetes-io-vnext-staging.netlify.app/docs/concepts/services-networking/service/#trafic-distribution
https://deploy-preview-45276--kubernetes-io-vnext-staging.netlify.app/docs/reference/networking/virtual-ips/#traffic-distribution
https://deploy-preview-45276--kubernetes-io-vnext-staging.netlify.app/docs/reference/command-line-tools-reference/feature-gates/

Relevant links:

KEP Issue: https://github.com/kubernetes/enhancements/issues/4444

/cc @aojea @robscott @thockin

/sig network

Hello @gauravkghildiyal! Thanks for putting this PR up for review.
I notice there aren't any changed files here. Does this feature still need new docs? A friendly reminder that the deadline for PRs to finish review is by Tuesday March 26th, 2024, 18:00 PM PT :clock6: This gives 2 weeks, though there may be many busy with KubeCon EU next week also!
As a user of Kubernetes, I really appreciate your contribution. 🚀
Best,
Drew

Hi @drewhagen! Thanks for following up. I plan on having getting an initial draft ready before todays deadline (Tuesday March 12th 2024 18:00 PST)

@chanieljdan, @drewhagen -- FYI: This is ready for review

/cc @robscott @thockin

We avoid Markdown in commit messages
/retitle Document .spec.trafficDistribution field in Service

/milestone 1.30

/lgtm

Hi @sftim and @drewhagen! I understand people might be busy with kubecon (hope you are having a great time if you're there), but if you can find the time, I'd really appreciate if we can get this in before the docs freeze in 5 days (Tuesday 26th March 2024)

Thanks @gauravkghildiyal for being mindful of the deadline!
We still need to get an approval from SIG Docs. Tim's feedback is amazing and he is reviewing a lot of docs, so let me pull the group of English documentation owners in.
@kubernetes/sig-docs-en-owners is someone available to give this a look and final approval?

@gauravkghildiyal Thanks for being so good about the docs deadline! Super appreciate your collaboration across technical and docs reviews to get this over the line 🚀
/approve

/milestone 1.30


chore: update to build with 1.80.1

update to build with rust 1.80.1

relates to https://github.com/Homebrew/homebrew-core/pull/182116

Summary by CodeRabbit

新特性

将Rust工具链配置更新至稳定版本，提升了编译可靠性和代码兼容性。

close as it can be done without updating to use latest swc, https://github.com/umijs/mako/issues/1326


Grep for "serious configure-time warning" in Haskell generic builder is not precise enough

Issue description
The simple grep in the Haskell generic builder returns a false positive if you pass -v3 as a configure flag. -v3 prints all env vars, one of which obviously mentions the precise term that the grep searches for.
I think it would be sufficient to make the grep only match from the start of a line?
https://github.com/NixOS/nixpkgs/blob/4fbae5c3011e67964c08431424c44c17a4c8115c/pkgs/development/haskell-modules/generic-builder.nix#L344
Steps to reproduce
let
  nixpkgs = import <nixpkgs> {};
  v3 = drv: nixpkgs.haskell.lib.appendConfigureFlag drv "-v3";
in
  v3 nixpkgs.haskellPackages.groups

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

Related to #51971


A nice feature would be using Storage as TimeSeries data stream

While it might not be really optimal, optimal code can be done later.
This is key to many, including the RAMA system.

This sort of closes this.
https://github.com/nmondal/cowj/commit/e798347114d6fe8ce7316c77480aeb5eea418670


How to show specified display language out-of-box?

I have added a non-english language extension pack to vscode portable, and edited file: <VSCODE_HOME>\data\argv.json like this,
"locale": "ja"
then chose Japanese as display language.
But when I copy this vscode portable to another PC, I found the display language is still english. What else do I need to do so that vscode portable can display Jap out-of-box?

The correct way to specify the locale is by running the command Configure Display Language. However I am not sure if this is correctly handled by a portable version.


Empyrean Pyke Ult Animation

Can u please fix  Empyrean Pyke Ult Animation it does show X sign but after that there is no animation it just dissapear

With Vanguard in april 2024 do not expect any fix.

#1


Nodejs bindings

Hi ! I really like this library. It will be cool move even more higher level protocols such as http.. But it isn't a question about higher level . My question is : can you please provide nodejs bindings for library (idk is it possible ? ) ?

The hookffi samples/hookscripts/src/hookffi.cc stuff implements that for Ruby/Python. I don't know if I can get away with using node-ffi/node-ffi since the way I currently do it is via a quick-and-dirty forking daemon that runs in the native code and does some native->managed->native callback stuff. I'll take a look if it can be done the current way without breaking node. Otherwise, it'll probably take something more node/evented-networking specific. I would probably do that with gevent in Python first though.
However, I don't plan on supporting HTTP parsing within libshambles; that's more for things that use it. But there isn't any reason why you can't just use it to redirect traffic to an HTTP server (e.g. a captive portal) that then handles the rest of the connection/parsing for you.


python310Packages.apache-beam: Add missing test dependency

Description of changes
Enable more tests
Things done

Built on platform(s)

[ ] 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

[ ] Fits CONTRIBUTING.md.

@ofborg build python39Packages.apache-beam

Weird, many tests fail for me on Darwin, but it works with ofborg so I guess it is ok.


Add new location is broken

Redirects you to "/", issues notice that user already signed in, and fails to add new location. @jrunningen

I actually don't even see the "Add new location" button anymore.  Has it been removed?

The button to add a housing form was commented out in 5560983c.  Was that intentional?  The ability to upload a PDF and test with it is sort of critical for adding new forms and form fields.

I commented it out, since another add new location button was added to the top navigation bar (the PDF button, though there is likely a better icon for the purpose).

PS, I had edited the location table to be more generic and now only the client pages show the location preview. We might want to add that back to the main location table temporarily.

Oh, I see.  Bug confirmed.

I'm guessing that #342 will fix this, because it modifies the housing form edit/create workflow to go back to the way it was, instead of intermediately redirecting users to update_location.js.  Have a look at that, and merge it in if you have no objection.

This seems to be fixed. At least I was able to create a new housing on my environment.


Triple click on a line of text doesn't select the entire line

Is it possible to make ng select the entire line on triple mouse click?
It would be consistent with how many text editors (and even text area in browsers) operate. It makes it easier to cut/paste stuff around when reorganizing.
I'm using 0.39 now and triple click ends up like a double click followed by a single click. Which first selects the word then deselects it.
Thanks.

It would be particularly useful for new notes in replacing the default name/date with a discriptive name. However, I think this was raised in the past and there was some problem in implementing it.

Hmm, I cannot detect a triple click. But discovered that Lazarus itself does honour a triple click and its written in exactly the same sort of code. I think they must detect a double click, set a timer and if one comes in in, say, 400mS, call it a triple. I'll have a peek through their code....
Davo


How to pass the runtime value  to lark-message-config ?

My project version is dynamic generate when the ci, can i send the different version to  lark-message-config?
Such as
MESSAGE_PATH=./lark-message-config-failed.json VERSION=1.2.3-SNAPSHOT send-lark-message

Thanks for your suggestion, I will support passing in Version field in V1.2.4 to adapt the automatic Version generation.
It will be released today, please pay attention to the issue status 😄

@pumbaamatata Hello, V1.2.4 has been released, it supports the dynamic fields, such as version, title, etc.
Can be used like this:
MESSAGE_PATH=./lark-message-config-failed.json MESSAGE_JSON='{\"version\":\"1.2.3-SNAPSHOT \"}' send-lark-message
See readme for more information: https://github.com/guMcrey/version-rocket#supports-incoming-dynamically-generated-card-copy
Thank you so much

This feature is useful. Thanks.

Sorry for the late reply.
MESSAGE_JSON is very flexible. Thank you
I will try it later.
---- from Jakarta


Feedback for “Obsidian Plugin”

thanks for the plugin. But i couldn't find the note in the obsidian template zotero item details. Is it going to update or it is not the key of this plugin? Because lots of notes are written in the "note" and i really want to import them into obsidian. Or it's just because i miss something? Thanks for reading.

The same question, where were the notes (note annotations) after md file export?

checkout latest beta version: https://zotlit.aidenlx.top/changelog/v1.1.0#v110-beta11---beta13


Add table plugin example

[x] created a CodeSandbox example for the table plugin here
[x] added a new page and the example on the website (under “/docs/demos/plugins/tables”)

Issue https://github.com/facebook/lexical/issues/2886

@thegreatercurve implemented your suggestions, let me know if I need to fix anything.


deleted_at is not a good design for soft delete!!!!

It is not good for table that has unique index.
please change deleted_at from timestamp to int.
soft delete like this:
update table set deleted_at = id where id = 1

query like this:
select * from table where deleted_at=0

unique key:
(uni,deleted_at)

please do not use timestamp !

You could do use that.
Sometime you want to keep multiple versions of deleted data, could create unique index with id, deleted_at


I think we have 3 copies of the  palette sprinkled around. Let's clean up eventually.

If this still exists, please reopen with repro steps.


Extending changelog

Enriching changelog.

Codecov Report

Merging #14 (8279f66) into master (616795e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #14   +/-   ##
=======================================
  Coverage   77.52%   77.52%
=======================================
  Files           4        4
  Lines         178      178
  Branches       23       23
=======================================
  Hits          138      138
  Misses         27       27
  Partials       13       13

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 616795e...8279f66. Read the comment docs.


Automatic Upgrade to 0.25 just uninstalled without installing new version.

ℹ Computer information

PowerToys version:   Don't rem.. 0.23 or something?
PowerToy Utility:  Entire suite
Running PowerToys as Admin:  Yes, I accepted UAC prompt when the upgrade started.
Windows build number: [run "winver"]  win10 1909

📝 Provide detailed reproduction steps (if any)

…  I was notified of the new version via a popup in the bottom right.
…  I accepted the popup and accepted the UAC popup to execute the upgrade.
…  Came back 5 minutes later and powertoys was uninstalled and there was no new version installed.  I downloaded and installed 0.25 manually.

✔ Expected result
What is the expected result of the above steps?  Obviously it should have installed 0.25
❌ Actual result
What is the actual result of the above steps?   0.25 was not installed.
📷 Screenshots
Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

@enricogior thoughts?

@jdestefx
did this happen again with the update to 0.27?

No - It hung up and asked me to close calculator.exe (lol?).  I didn't see
any calculator running but there was a "suspended" calculator process in
the task manager.   I clicked "retry" on the install prompt and it
proceeded to install fine despite me not ending the suspended process.  I
ended the suspended calc process afterwards.
On Tue, Dec 1, 2020 at 5:57 PM Enrico Giordani<EMAIL_ADDRESS>wrote:

@jdestefx https://github.com/jdestefx
did this happen again with the update to 0.27?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/7649#issuecomment-736872770,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACSK4QAW3PNQYN7MUDE5DU3SSVYGPANCNFSM4TEFRD4A
.

@jdestefx

asked me to close calculator.exe

It's a random Windows installer bug, it can be ignored (clicking on the Ignore button).
I'll close the issue.
Thanks.


【Neo3-GUI】Discussion Summary, Design & Implementation

Neo core developers and communities have been discussing about Neo3-GUI for a while. There are few things that got most developers' attention about Neo-GUI. After meaningful discussion on GitHub as well as during Neo 2019 Community assembly event, now we have reached to a point that most of us have agreed on what Neo-GUI should be and how should we improve it. We think next step will be summarize the whole discussion and move forward with Neo-GUI design and implementation.
This issue describes the overall discussions and corresponding summary,  design and possible implementations as well as any other topics should be discussed by core developers and community.
Goals for Neo3-GUI
From all the discussions for Neo-GUI on GitHub as well as Community Assembly event, some goals/targets have been confirmed for Neo3-GUI:

Neo-GUI should be cross-platform
Neo-GUI should be the UI version of a full node and keep up-to-date with neo-cli release
Enhance UI/UX  to provide better user's experience for developers as well as users (blockchain purist)
Back-end need to be updated to Neo3 and full function support

Topics have been discussed

UI framework discussion - Done  (#302 )

Wireframes for Gui (#303)

Add gui fro neocli. neo-cli issue 308

With the release of Neo3 preview1, now we should start development of Neo3-Gui and complete it when Neo3 stable version released.
We have completed design documentation and feature lists for above targets,
with below framework:
Back end: .Net core 3.0
Front end: Electron + React
Communication: WebSocket + RPC
And we are ready to develop the first version if community has no doubt with above frameworks.

Brief system architecture

最近我想了一下，这样使用两个进程的开发确实比一个进程麻烦一些
我建议我们可以再评估一下像CefGlue这样，把Chromium Embedded的方式。
这样前端表现是html，应该可以用c#直接操作DOM

这个框架文档资料太少了，而且代码库很久没有更新了，用C#直接调用JS对我们而言也不是必须的，目前来看Electron更加成熟些，我们这边更倾向于更加成熟可靠的解决方案


Correct the first frame waiting logic

Many Flutter tests currently only wait for the UI thread to generate the layer tree of the first frame. It has caused problems like b/129875208, which causes https://github.com/flutter/flutter/pull/30463. It also makes our first frame benchmark inaccurate.
We should be able to solve this by utilizing Window.onReportTimings. We may need to modify it a little bit to report immediately on the first frame.

Here's an abandoned PR for this issue: https://github.com/flutter/flutter/pull/29367

Closed by https://github.com/flutter/flutter/pull/35297


Unable to grant advancements through commands

You can only grant yourself the hints to crafting recipes.

Try use minecraft:changed/etc

Try use minecraft:changed/etc

Huh, they are under the minecraft root instead. Odd.


AA0073 The name of temporary variable 'TempLastResponseRaw' must be prefixed with Temp.

Describe the bug
I have a global variable in a codeunit:
TempLastResponseRaw: Record TempBlob temporary;
I get a warning AA0073: The name of temporary variable 'TempLastResponseRaw' must be prefixed with Temp.
The variable of Record TempBlob temporary is already prefixed with Temp. When I rename it to TempTempLastResponseRaw everything is fine. When I use another record for example 'item' the message dissapears too.
To Reproduce
Create a codeunit with a global variable of type record TempBlob temporary; and give it the name TempLastResponseRaw.
AL Code to reproduce the issue
var
TempTempLastRequestRaw: Record TempBlob temporary;
TempLastResponseRaw: Record TempBlob temporary;
Expected behavior
I expect no warning.
Screenshots
5. Versions:

AL Language: v6.0.344420

Business Central:
not related to any client version.

And what if we use a temporary table in an extension object wher we are souppsoed to prefix variables with our unique prefix?
Example: LTC_TempWhseRecipient: Record "LTC Whse Shpm. Recipient" temporary;
This variable name is correct as I see it but the rule want's it to start with Temp. That would not go well in the Appsource validation

that should presumably be TempLTCWhseShpmRecipient, or without the LTC once they fix it to not require prefix/suffix in variables.

OK I'll give it a try

Hi @larswestman
What dtkb says is correct and we have fixed this. :)
I am closing this issue because it has been resolved, please check the latest developer preview . Please open a new issue if you believe this has not been resolved and reference the current issue.


bulleted list in docs/projects/other/sydent.html does not show up correctly

interestingly, the GitHub preview for that doc renders the list as a list, but in the HTML, it isn't recognized as a list.  (Thanks to WubTheCaptain for pointing it out in https://matrix.to/#/!XqBunHwQIXUiqCaoxq:matrix.org/$14954592511921492UdAHg:matrix.org)

Could it be related to the JS SE
Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])
    at Function.fa.error (jquery.js:2)
    at fa.tokenize (jquery.js:2)
    at fa.select (jquery.js:2)
    at Function.fa [as find] (jquery.js:2)
    at n.fn.init.find (jquery.js:2)
    at n.fn.init (jquery.js:2)
    at n (jquery.js:2)
    at HTMLDocument.<anonymous> (custom.js:2601)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)

patch by WebTheCaptain at https://paste.debian.net/plainh/f265f6f7

@maxidor discovered this separately; the problem was indeed the missing empty line. (If you thought markdown would be interpreted consistently everywhere, HAHAHA YOU LOSE.)
So I've fixed the proximal problem in https://github.com/matrix-org/matrix-doc/commit/a42d3011b78911975dac8d925825ba25553d52b0, however we now have a separate problem, which is that the CSS is a complete disaster zone. But that's more of a problem with matrix.org, so I'm closing this and opening https://github.com/matrix-org/matrix.org/issues/22.


Joyn loyalty v1

merge https://github.com/rogerthat-platform/rogerthat-backend/pull/456 first
def activated_modules_sln_settings():
  from solutions.common.migrations.migrate_activated_modules import job
  job()

Just a note, some modifications to sln-broadcast.js need to be in sync with #748.
If any of them got merged first, the other one should be updated.


Problem view focus border partially hidden

#69204
Version: 1.32.0-insider (user setup)
Commit: 393b48d
Date: 2019-02-25T01:34:48.785Z
Electron: 3.1.3
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.18841

HC:

Duplicate of #69382

Removing duplicate as this is its own bug and want to make sure it gets verified as well.


Process hangs

Environment details

OS: Mac OSX 12.5.1
Node.js version: v16.17.0
npm version: 8.15.0
@google-cloud/secret-manager version: 4.1.2

Steps to reproduce

Build a sample application based on examples
Run it

Observe that grpc keeps the process open:
> test-secret-manager/node_modules/@grpc/grpc-js/build/src/subchannel.js:407 - const session = http2.connect(addressScheme + targetAuthority, connectionOptions);

Here is a basic sample project to test:
https://github.com/gregorskii/test-secret-manager
Thank you!

Hi @gregorskii, just want to confirm a few details:

If you comment out

setTimeout(() => {
    setInterval(() => {
      log();
    }, 1000);
  }, 1000);

The process still hangs, correct (without any logging)? Do you ever get a response back from secret manager (even if it doesn't exit)?

Can you attempt commenting out the block pasted above, and instead attempting to run why-is-node-running as a cli? (and pasting those logs)

npm i why-is-node-running -g
then
why-is-node-running index.js

Lastly, can you also try removing the code block pasted above, and instead running: GRPC_TRACE=all GRPC_VERBOSITY=debug node index.js (see troubleshooting guide) and pasting those logs here?

FWIW, I was not able to recreate the issue but I think it's worth looking into the logs to see the differences between our environments.

Closing for now but feel free to reopen whenever you have a minute to retry.


What is the point of this interval?

This is the solution to fetching files after uploading/deleting or am I missing something?
Why not call fetchFiles after uploading and deleting?
useEffect(() => {
    const interval = setInterval(() => {
      fetchFiles();
    }, 1000);

    return () => clearInterval(interval);
  }, []);

const fetchFiles = async () => {
    const resp = await fetch("/api/assistants/files", {
      method: "GET",
    });
    const data = await resp.json();
    setFiles(data);
  };

Quickly! Close this issue before someone sees it!
All kidding aside, this is just a quickstart example. I would suggest you use it as a stepping stone to understanding how assistants work internally, but otherwise don't focus too much on the coding practices.

okay fair lol


How to Use This

Hello,
I would Like Give The Feedback But How To Use This?

Please take a look at the documentation
http://dahquan.github.io/rattlesnake/examples.html

Thanks For The Reply i Followed Everything Yeah they spawned once but now its shows error on my command promt screen  "tunneling socket could not be established "

That means the proxy servers you are using aren't as good, try using better ones

can you give me some site where i get good proxies !!! (Would Be Very Thankfull)

Please use issues for questions that relate to the library.


[DEV] Event threw_pokeball does not require parameter pokeball

When bot encounters a pokemon, bot crashes.
[05:35:50] Starting bot...
[05:35:50] Received level up reward: []
[05:35:50] Next egg incubates in 1.54 km
[05:35:52] Something rustles nearby!
[05:35:53] A wild Goldeen appeared! [CP 11] [Potential 0.44] [S/A/D 4/9/7]2016-08-10 05:35:55,983 [       cli] [INFO]
2016-08-10 05:35:55,993 [       cli] [INFO] Ran for 0:00:10
2016-08-10 05:35:55,993 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-10 05:35:55,993 [       cli] [INFO] Travelled 0.00km
2016-08-10 05:35:55,993 [       cli] [INFO] Visited 0 stops
2016-08-10 05:35:55,994 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-10 05:35:55,994 [       cli] [INFO] Threw 0 pokeballs
2016-08-10 05:35:55,994 [       cli] [INFO] Earned 0 Stardust
2016-08-10 05:35:55,994 [       cli] [INFO]
2016-08-10 05:35:55,994 [       cli] [INFO] Highest CP Pokemon:
2016-08-10 05:35:55,994 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
  File "./pokecli.py", line 530, in <module>
    main()
  File "./pokecli.py", line 96, in main
    bot.tick()
  File "/home/mike/pbot4/pokemongo_bot/__init__.py", line 458, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/mike/pbot4/pokemongo_bot/cell_workers/catch_visible_pokemon.py", line 49, in work
    self.catch_pokemon(self.bot.cell['catchable_pokemons'].pop(0))
  File "/home/mike/pbot4/pokemongo_bot/cell_workers/catch_visible_pokemon.py", line 70, in catch_pokemon
    return_value = worker.work()
  File "/home/mike/pbot4/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 301, in work
    'count_left': items_stock[pokeball]
  File "/home/mike/pbot4/pokemongo_bot/base_task.py", line 27, in emit_event
    data=data
  File "/home/mike/pbot4/pokemongo_bot/event_manager.py", line 59, in emit
    raise EventMalformedException("Event %s does not require parameter %s" % (event, k))
pokemongo_bot.event_manager.EventMalformedException: Event threw_pokeball does not require parameter pokeball

Other Information
OS: LINUX
Git Commit: 01bc14de0543196de6688dc6bd560739db59fd14
Python Version: Python 2.7.9

try pulling the latest commit: git pull in your directory, worked for me :)


Fix bug on ProjectDetails component

In the image above, the share menu is not placed in its right place. The red color shows the wrong place, green color shows the right place. So, fix the position from red to green. And make sure you don't change the styling for Share Menu on Project Componen.

I would like to work on this issue

@Aayushpatil77  Go ahead

@Aayushpatil77 any updates?

@Aayushpatil77 ??

Can I work on this issue?

Sure


[BEAM-4003] Futurize runners subpackage

This pull request prepares the runners subpackage for Python 3 support. This PR is part of a series in which all subpackages will be updated using the same approach.
This approach has been documented here and the first pull request in the series (Futurize coders subpackage) demonstrating this approach can be found at #5053.
R: @aaltay @tvalentyn @RobbeSneyders

Run Python Dataflow ValidatesRunner

R: @charlesccychen

Thank you! LGTM.


Added an artifact names document

Trying to sketch out the problem cases with names and images,
and how (I believe) advisories can help solve that issue.

  Generated by :no_entry_sign: Danger

Codecov Report

Merging #389 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #389   +/-   ##
======================================
  Coverage    65.8%   65.8%
======================================
  Files         144     144
  Lines        8113    8113
======================================
  Hits         5339    5339
  Misses       2330    2330
  Partials      444     444

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 53a9186...21c2401. Read the comment docs.

Cool, I think this idea would solve some of the problems with rebuilds and build artifact pinning. The only problem I can see with doing this is knowing if the Docker tag is being built for the first time or not. There will be difficult to avoid race conditions here, which make me think a simpler if imperfect solution may be preferable (e.g. timestamping the images, and adding that timestamp to the manifest). If there's a way to quickly overcome the issue of knowing whether this is the first build or not, I would be happy to pursue this as the results of it would be neat.


[AnimationPlayer] Fix preview for both AnimatedSprite (2D and 3D)

Fix #19566.

If you've more than one animation and you don't put any key to tell which animation you are using, I think it's a good idea (and this will be very useful for my workflow at least) not to show any preview because godot can't guarantee what animation will be played, eg: if you switch from an *animation to other, the last animation played will be the actual image.
*animation means animation clip and animation refers to property.
Example 1, Two animations, no preview:

Example 2, Two animations, only two previews because the first frame the animation is not setted:

And if you've only one animation, this will be the default and can be previewed.

Thanks!


Kata support

Just a draft commit for supporting kata

Can one of the admins verify this patch?

close this pr and resend later.


chore: put vendored sjcl into devDependencies

sjcl is built, vendored (and source controlled) so putting it as a production dependency is redundant

will be closed by #35


[QA] - Transaction with ttl in the past

submit a transaction with ttl in the past

script for 1.14.0

https://github.com/ArturWieczorek/node-test-scripts/blob/master/python_scripts/e2e_scenarios/transaction_past_ttl_test.py


Update Arch pkg name

Hello, I have renamed the Arch package, as per the encouragement in the latest changelog :slightly_smiling_face:
https://archlinux.org/packages/extra/x86_64/kakoune-lsp/

thanks! Arch handles renames very well


Changing project files to support dotnetstandard

I've converted the existing project files to support .NET standard, which would allow this API to be used in .NET Core and Xamarin applications.
I believe this addresses #5

ETA on this PR?

@brandonyoung @hello-consumer I just pushed a new version to Github which targets .NET Standard v2 and I have published an updated NuGet package of the same. Take a look and see if the latest versions work for you.


Define Question interface and generate schema

This solves #19

Current dependencies on/for this PR:

main

PR #27   👈

This comment was auto-generated by Graphite.


Now works in Germany

*.google.de (Bilder)

I just made a few changes to the code so that it also works with images.google.de in Germany. It performs well on my computer - is possible to push these changes in the gallery extension, since I'm not enrolled in Apples Developer Program?

@justfaraway42 I will take a look, but unfortunately it won't be able to go live in the extensions gallery, so it might not be worth the update :(
Take a look here - specifically the section titled Converting Legacy Safari Extensions:

Starting January 1, 2019, new extensions will no longer be accepted to the Safari Extensions Gallery.

There's no way an update would be reviewed and submitted in time for it. I've been waiting for weeks for my other extension Userscripts to be accepted. If/when that happens, things like showing a view image button could be a lot easier to do within the userscript extension, along with any other custom functionality a user will want.

What a bummer - I didn't know that… Shame on you Apple!

@justfaraway42 Yeah it's kind of disheartening, but I am hoping my other extension get's accepted into the gallery so I can buy some time to port it to swift.


Introduce new build system and use it for libdragon itself.

This PR introduces a new libdragon build system "n64.mk". It is designed
to be used to build final ROMs in an easy way, but it can be used
for libdragon itself.
The main features of the build system:

Installed with libdragon, so can be used with "include n64.mk"
Minimal Makefile to be written for ROMs
Support building C files, CPU assembly files, RSP ucodes, DragonFS
Automatic C dependency generation: touch a .h -> recompile automatically affected files
Support optional out-of-tree builds
Support verbose mode (make V=1)
Support generation of debugging symbols (make D=1)
Clean minimal output

In addition of converting libdragon itself to it (which is sort of
a special case, because no ROM is built), the spritemap example is
also converted to it, to show how a typical ROM Makefile would look
like.

An afterthought: we should be able to move exception_halt function's contents into the default handler as it does not need interrupts anymore. If it simply works like that it'd be nice to do in this pr as well. If it's getting complicated, I'm ok as is.

An afterthought: we should be able to move exception_halt function's contents into the default handler as it does not need interrupts anymore. If it simply works like that it'd be nice to do in this pr as well. If it's getting complicated, I'm ok as is.

Done as well. I had to change the "interrupt disabled" check in console_render because I need to also check for the exception status (on MIPS you can technically have interrupts enabled but not triggering because you are in an exception).


运行huge_image_demo.py IndexError: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 9

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched related issues but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
A clear and concise description of what the bug is.
Reproduction

What command or script did you run?

A placeholder for the command.

Did you make any modifications on the code or config? Did you understand what you have modified?
What dataset did you use?

Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment infomation and paste it here.
You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback
If applicable, paste the error trackback here.
A placeholder for trackback.

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

我这边没有遇到相同的问题，是否对代码有所改动？

可能是因为BboxToolkit在之前可视化的API发生变动过，所以造成与OBBDetection的不匹配。
我已经在最新的OBBDeteciton中改过来的，可以尝试更新BboxToolkit与OBBDetection


Implement Horizontal Scrolling for the Conga Line

This should fix a bug where Pokemon go off-screen and can't be viewed without zooming.


artifact resprite

About the PR

Sprites by Flaborized on Goonstation.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

tweak: The artifact division has finally remembered to wash alien artifacts before giving them to scientists. They should now look significantly better.

swag

please pay your respects to the weird green pickle rock

please pay your respects to the weird green pickle rock

never forget

please pay your respects to the weird green pickle rock


issue with saving the data to the knowledge

hi. I tested this feature and it is really great and has many use cases but i was facing an error where when it saved the data to the document it was saving 1 users content to new chunks every time not like how you showed in the video where it saved all the set of questions to the same chunk. i didnt do any customization but i was getting this result. the only thing i changed was the llm. i didnt have  deepsee so i used gpt4o. hope you are able to take a look at this error

First, try changing the Temperature parameter for gpt4o LLM, use a lower or higher value.
If not working, try this:
the update_user_memory or add_user_memory action is determined by prompt "Parameter Extraction"
you can try to adjust the prompt content which was set in Agent prompt node

@kkailaasa Is the problem solved?

Hi! First of all, thanks for the great contribution to the community, secondly, I thought that all the configuration could be done in "Dify Cloud" but apparently I have to have the dify self hosted (I have no programming skills).
Question, is there a way to use it only in the dify cloud?
on the other hand, in case I dare to try to self-host dify on my computer, how could I avoid installing the dependencies (I always had problems with this) I imagine that by now there will be more flexible no-code solutions.
I read you.

@jorgearone
This should work in Dify Cloud, checkout Dify document at https://docs.dify.ai/guides/knowledge-base/maintain-dataset-via-api
You can see that base url of Dify Cloud Knowledge API is https://api.dify.ai , use this as the base_url parameter value. If this works I will add this note in the README.

Yes! someone helped me to identify it, what happens is that in the tutorial it says connect to the internal docket, that led me to think that it had to be self-hosted.
On the other hand.
I am going to try it again, on the other hand I was talking in the dify discord and they commented the following:
<<It seem like it is using Dify Knowledge's document segment as key-value database, I don't think that a good idea, "Knowledge" is made for RAG not KV...
Also, create or edit segment by API only work if:
you are paid user; or you are self host.
And even you passed that part, currently my Dify said the that "The maximum length of keyword is 20", and that causing all those issues.
So that DSL basically won't work >>
what do you think about it.

It seems like it is using Dify Knowledge's document segment as a key-value database, which I don't think is a good idea. "Knowledge" is designed for RAG, not KV...

Let's align on two fundamental concepts:

To clarify what a RAG system does: it retrieves some data and loads them as part of the context for LLM prompting. What ever data from, it finally will be injected as part of a context of a LLM prompt message.
Knowledge is not only static PDF/Word files; it also includes environmental/external information, such as searching results from search engines, query results from databases, etc.

This tool is not merely using Dify Knowledge as a K/V storage.
The idea behind this tool is to use Dify Knowledge document segments as dynamically updated documents for users.
The memory items and values are in K/V form so that they can be easily read/written by LLM and easily extracted by programming via API. You can check out the template content:
<UserInfo>
  <name>${user_name}</name>
  <age>${user_age}</age>
  <hobbies>${user_hobbies}</hobbies>
  <any_user_info>${any_user_info}</any_user_info>
</UserInfo>

and the actual saved content:

I don't believe that storing items/values in natural language form as "my xx is xxx" is the only way to define "Knowledge"

Also, create or edit segment by API only work if:
you are paid user; or you are self host.

I don't use Dify Cloud, I have no idea about this limitation.
If that is the case, this tool is currently only available for self-hosting.
It's quite easy to port to using other service that can saving/retrieving text since the request params of  "Action:retrieve_memory/add_memory/update_memory" nodes are quite simple.
about the "The maximum length of keyword is 20", I think this is a limitation for UI not for API, since the user-id can be saved as keyword successfully.

I understand, thanks for the clarification.
As I told you before, the dependencies installations have me crazy, that's why I use only the dify cloud platform.
However, I am thinking of taking it to an external database through an API, basically for the scalability of the space.
... any recommendations?

install self-hosted Dify using docker-compose is quite easy, all you need is install docker, and there is a well-written guide for it:  https://docs.dify.ai/getting-started/install-self-hosted/docker-compose
about database service,  maybe you can try Firebase, it can handle JSON type data very well, checkout the document: https://firebase.google.com/docs/database/rest/save-data

@jorgearone This should work in Dify Cloud, checkout Dify document at https://docs.dify.ai/guides/knowledge-base/maintain-dataset-via-api You can see that base url of Dify Cloud Knowledge API is https://api.dify.ai , use this as the base_url parameter value. If this works I will add this note in the README.

I just tried, and I get this error. any ideas?

@jorgearone should use https://api.dify.ai, without the "/v1". If still error, you need to run the "LongTermMemory" workflow to check the output of the failed "Action*" node.
You should create a new issue for the Dify cloud issue, since the topic is not relating to the original post. I'm closing this issue.


Some fixes of salmon_communication modules.

Fixed a license
Fixed a MPI data-type name

I accept these modifications and merge this PR.


remove icon add button for better UX

Codecov Report

Merging #1200 (6a44ac3) into main (cc60e11) will decrease coverage by 2.75%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1200      +/-   ##
==========================================
- Coverage   52.44%   49.68%   -2.76%
==========================================
  Files         254      254
  Lines       14426    14430       +4
==========================================
- Hits         7565     7169     -396
- Misses       6861     7261     +400

Impacted Files
Coverage Δ

lnbits/extensions/boltz/mempool.py
32.75% <0.00%> (-50.00%)
:arrow_down:

lnbits/extensions/boltz/crud.py
29.23% <0.00%> (-49.24%)
:arrow_down:

lnbits/extensions/boltz/utils.py
23.52% <0.00%> (-41.18%)
:arrow_down:

lnbits/extensions/boltz/boltz.py
17.91% <0.00%> (-39.31%)
:arrow_down:

lnbits/wallets/cln.py
19.00% <0.00%> (-29.76%)
:arrow_down:

lnbits/wallets/lndrest.py
17.09% <0.00%> (-29.06%)
:arrow_down:

lnbits/wallets/lndgrpc.py
22.72% <0.00%> (-27.93%)
:arrow_down:

lnbits/extensions/boltz/views_api.py
31.40% <0.00%> (-18.19%)
:arrow_down:

...nbits/wallets/lnd_grpc_files/lightning_pb2_grpc.py
38.22% <0.00%> (-12.25%)
:arrow_down:

lnbits/wallets/lnd_grpc_files/router_pb2_grpc.py
40.54% <0.00%> (-11.49%)
:arrow_down:

... and 8 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


fix fix check failed in cloud delta writer

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Fix ReflectionToStringBuilder toString javadoc

as is

     * @param outputStatics
     *            whether to include transient fields

to be

     * @param outputStatics
     *            whether to include static fields

Coverage increased (+0.02%) to 93.477% when pulling 2d61e349dbd3e2e81450c9ac531218220b7e422d on voyageth:patch-1 into c7c85ee39892df3ca007c6596c41654865be7e43 on apache:master.

Coverage increased (+0.02%) to 93.477% when pulling 2d61e349dbd3e2e81450c9ac531218220b7e422d on voyageth:patch-1 into c7c85ee39892df3ca007c6596c41654865be7e43 on apache:master.

Thank you!


(fix) docs, quick-start. Use http, not https for link

Checklist:

[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[ ] I've signed the CLA.
[x] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[ ] My builds are green. Try syncing with master if they are not.
[ ] My organization is added to USERS.md.

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

Without this, I'm not able to load the page on https. Eg,

@alexec thanks for the merge!


No keyserver known issue

Ubuntu 16.04
while trying to follow the installation guide, the first step in the guide:
gpg --recv-key 18AD5014C99EF7E3BA5F6CE950BDD3E0FC8A365E
What did you expect to see?
To receive the gpg keys from the keyserver and a normal installation process.
What did you see instead?
The installation process runs into this error message after running the first step.
gpg: no keyserver known (use option --keyserver)
gpg: keyserver receive failed: bad URI
In the gpg documentation, it states when you use the --recv-key option, you must use the  --keyserver to give the name of the server to pick the keys from.
The --keyserver option is missing from this command.

Hi there, @margach. Usually, this error means that you haven't configured GPG with a keyserver that you trust. However, we at the rkt project can't really make that decision for you.
In the general case, you can do --keyserver pool.sks-keyservers.net

@squeed Thank you, i think a small note should be added to the documentation for the general case.

@taqtiqa-mark I believe the page in question is distributions.md (mirrored here too)


Cache break on future published entries?

Something a client noticed is that when they set an entry to go live at a future date, the index/listing page where that new entry should appear at the top (which is cached by Cache Flag) doesn’t update—they have to clear the cache for it to register. Is there something we can do to get Cache Flag to break a certain section's entries when a future published item goes live? Might we add a tag under craft\elements\Entry Element Types?

Craft doesn't dispatch any event or the like when an entry moves from pending to published status, so I'm not seeing any feasible way to have Cache Flag automatically clear caches for this use case.
The best workaround I can think of is to – before the {% cacheflag %} tag – query for the first pending element (i.e. status: 'pending' and order the query by postDate ASC), and then use that element's timestamp for the {% cacheflag %} tag's until directive.

Interesting idea for a solution - thanks!


Open files

How can i open a selected file in vim ?

Hey @LuisHenriqueFA14 currently opening a file in an editor is not supported. Could be a nice feature to have though

@knipferrc I am taking a look at the code and trying to fix it too, lol.
But i have a question, do you want to keep fm opened when user closes the CLI editor, or fm can be closed after that ?

@LuisHenriqueFA14 my preference would be to keep fm opened when the CLI editor is closed

@LuisHenriqueFA14 i think I have a fix for this. Will try to get a release out for it tomorrow

@LuisHenriqueFA14 i think I have a fix for this. Will try to get a release out for it tomorrow

I'm already looking forward

Alright, 0.12.1 has been released, should be able to spawn vim now

Bro, i was able to open vim, but when i closed this happened:

I'm using terminal kitty so I had to change the TERM var to "xterm-256color" for it to work 👍🏻

Interesting, i'm also using kitty but have not seen that error. Awesome, glad to hear it working for you!


Does it Support iOS Server BLE Protocol Communication

Does 32feet library support the BLE communication for iOS iPhone acting as peripheral device(server)?

Not currently, but it is something that I hope to add

Thanks!


TEMPLATE_DIRS updated

We can't integrate your contribution until you've signed the CLA.

@waprin can you take a look at this simple change?

Looks like TEMPLATE_DIRS was changed from tuple to list in 1.9, but the field has also been deprecated since 1.8 so I think any change should just get rid of it. The whole sample is so dated that it needs other updates to even run. I have it on my plate to revisit all these samples, @kunal95 if you want to fix it in the meantime that's fine, but I think the PR might as well totally fix the sample for 1.8 and 1.9 with no deprecated features used.

Yes, seems like now they have DIRS option within TEMPLATES. I hope I didn't add anything new to your plate.

Closing this in favor of @waprin taking another look.


Refactor metrics

Hi @gpertzov, your last comments were applied.
Few words about the changes
1.Aletheia’s API will be changed to work with MetricFactoryProvder instead of MetricFactory, this way the
implementation of the Provider will be done on Implementation side, it will be easier to refactor metrics next time without changing the core library

Added labels to metrics  interfaces, to align project with Prometheus, added dependency to swinfra metrics lib

Names of the counters  aligned with prometheus naming convention

labels enables us to reduce the need in different sorts of factory metric providers, one interface is enough

Hi @gpertzov I've changed the code.
please merge.


Reimplement empty base class optimization using a detail class.

Instead of deriving from Cloner, keep a compressed pointer as a member. value_ptr now derives from nothing.
In the future, this will allow dropping other functionality into detail::compressed_ptr, such as unambiguous member selection (suppose you have compressed_ptr<int, foo> where foo derives publicly from std::unique_ptr<int> - boom).

nice! This looks useful.
I would even consider to make it more generic using a variadic template.
Maybe something like compressed_tuple(but restricting it to unique types) ?

I'm sure this can be done better, but for now it'll suffice to implement other features. The types don't have to be unique, there's a way to disambiguate them by e.g wrapping them in unique carrier classes, something like template <typename T, int N> struct carrier : T { ... }; with constructors that forward to T's, and then inheriting from the carriers instead of naked types. Then std::unique_ptr<T> & ptr() { return static_cast<carrier<std::unique_ptr<T>,1>(*this); } will disambiguate.

I agree, I just like to float ideas around.
Thanks for your PR!


Correction for raw affiliation UMR Lepse, Inra - SupAgro, 2 Place Viala, 34060 Montpellier, France

Correction needed for raw affiliation UMR Lepse, Inra - SupAgro, 2 Place Viala, 34060 Montpellier, France
raw_affiliation_name: UMR Lepse, Inra - SupAgro, 2 Place Viala, 34060 Montpellier, France
new_rors: 03rnk6m14;03fte3n86
previous_rors: 03rnk6m14
works_examples: W2153264734
contact: 18e40841eee5dfba0beab8be00303946:6a8cd608c1a7a22e291aa77a5b859d18bbce @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-10-09. The new affiliations should be visible within the next 7 days.


2016 update

These changes are required for generating the 2016 release of HMDA data.

👍

@JeffreyMFarley Would you happen to know if our TileMill files work with the new community version of TileMill? Might be worth looking into. https://github.com/tilemill-project/tilemill

@contolini here's what I found out.   Our files work fine with the version of Tilemill you provided, but it doesn't embed the grid file data, so none of the hovers worked
TileOven still supports the embedded grid data


url() not working with webpack plugin

Describe the bug
Can't resolve '/images/some-image.svg' in 'node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.11_@types+node@20.14.13_babel-plugin-macros@3.1.0_less@4.2.0_webpack@5.93.0/node_modules/@vanilla-extract/webpack-plugin'

Reproduction
just try add a css with url, like mask: 'url("/images/some-image.svg") no-repeat center',
System Info
command not working
macos - vanilla-extract webpack plugin 2.3.11

Used Package Manager
pnpm
Logs
No response
Validations

[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] The provided reproduction is a minimal reproducible example of the bug.

we already have url:false BTW
 {
      test: /\.vanilla\.css$/i, // Targets only CSS files generated by vanilla-extract
      use: [
        MiniCssExtractPlugin.loader,
        {
          loader: require.resolve('css-loader'),
          options: {
            url: false, // Required as image imports should be handled via JS/TS import statements
          },
        },
      ],
    },

error looks very similar to https://github.com/vanilla-extract-css/vanilla-extract/issues/462, but on webpack-plugin (not entirely sure what it uses underneath for compiling, I assume its babel by default ?, we use SWC for ts compiling)

hmm i think I know why now, so we want to use raw value in url(), is it possible to disable url resolving within vanilla webpack plugin ?

Vanilla Extract doesn't perform any URL resolution. That's entire up to your bundler configuration. In a test repo, I've set url: false on css-loader, and the following style works as expected:
export const urlTest = style({
  backgroundImage:
    'url(https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg?auto=compress&cs=tinysrgb&w=800)',
  width: '800px',
  height: '800px',
});

If you could provide a minimal reproduction, that would help narrow down the issue.

oh i wonder if its because we are using relative path and it tries to resolve that compared to full absolute path 🤔

@taozhou-glean Is there any update on this? I'm not sure this is relevant to Vanilla Extract because, as mentioned previously, it doesn't handle url resolution, that's delegated to the bundler.

Right, my bad, it's actually a different issue, we can close this one


Added support for MC version 1.18.1

Hello,
I've added support for MC version 1.18.1, it just had to increase the max protocol version for 1.18 packets.

Thanks for the contribution


Fix the bug that the JS implementation of ST7735 class does not have its parent class's (GFX's) methods

This pull request will fix the bug that the JS implementation of ST7735 class does not have its parent class's methods: e.g. GFX::fillScreen(uint16_t color).
Before this fix, when I run this source code:
var st7735 = require('jsupm_st7735');

var lcd = new st7735.ST7735(10, 7, 9, 8);
lcd.fillScreen(st7735.ST7735_RED);

I am seeing the following error message.
TypeError: Object #<ST7735> has no method 'fillScreen'

We need to include the parent class's header in the JS interface. Also I added the JS example code for testing it as well.
Thanks,

Great fix, thank you. Merged in 3d63b80c977f4657dbf73b80f85c26e17fb32549


SinkInputInfo to SinkInputInfoInternal

Hi! I'm a Rust beginner, so I might be missing something obvious. I want to subscribe to the server and get notified when the volume of any sink input changes. I've set up a callback using get_sink_input_info and it's firing as intended, but the parameter of interest is of type SinkInputInfoInternal. How can I convert this to the proper Rust struct type?

Hi, both of these structs are identical, it was only duplicated in the binding crate to attach some documentation. So there's no need to do anything, use it as is (there are no methods to differentiate them), or transmute between them if you like (std::mem::transmute) (which you have to wrap in an unsafe block - Rust will only allow this if the structs are identical sizes, which they are).
I'll get some From methods implemented soon to hide the transmuting :)

Done :)


Pull requests from 2018

So I have about 4 or 5 pull requests I added in December 2018. They have yet to be reviewed. Is there a road map when some of the modifications will be looked at? I have about 3 or 4 more to add but I want to wait until my current list is reviewed.

@sindizzy Better late than never. But I think we're on the way to getting all your pull requests integrated ;)


Add roll-call feature

Pets are currently assigned names from a list, but there is now way to see what pets you have and what their names are (other than the remove list and the friendship announcements)
We need an action for a roll-call where each pet announces themselves using the notifications channel.
This also opens up the testing for custom names

I can work on this.


chore: Group Prometheus Renovate updates in one PR

How to categorize this PR?

/area dev-productivity
/kind enhancement
What this PR does / why we need it:
This PR configures Renovate to group dependency updates for Prometheus into one PR.
The package rule applies when the data source is github-releases or docker and the package name ends in prometheus/prometheus.
The goal of this PR is to group PRs like these:

https://github.com/gardener/gardener/pull/10862
https://github.com/gardener/gardener/pull/10861

Which issue(s) this PR fixes:
n.a.
Special notes for your reviewer:
/cc @oliver-goetz
Release note:

NONE

thanks 🙂
/lgtm
/approve


Stuck in SplashScreen

Hello,
When I was trying to learn about Bloc, I came across your repository. Firstly, it looks fantastic, both in terms of architecture and conceptually, I must say. I have a question: when I cloned the repository for a trial, the project gets stuck at the SplashScreen. What do I need to do to overcome this?
I saw in the previous issue that it might be related to .env files. Do you have the opportunity to share a template of the .env file with dummy records? I added empty .env files buts still doesnt work

Hello, I'm sorry for the late answer and confused Documentation. You should create 3 env it's called .env.
This is the sample contains .env
AGORA_APP_ID = ******
AGORA_APP_CERTIFICATE = ******
ONESIGNAL_URL_PLAYERS = https://onesignal.com/api/v1/players
ONESIGNAL_URL_NOTIFICATIONS = https://onesignal.com/api/v1/notifications
ONESIGNAL_APP_ID = ******
ONESIGNAL_VOIP_APP_ID = ******
ONESIGNAL_REST_API_KEY = ******
ONESIGNAL_VOIP_REST_API_KEY = ******
ONESIGNAL_ANDROID_CHANNEL_ID_SYSTEM_IMPORTANT = ******
ONESIGNAL_ANDROID_CHANNEL_ID_SYSTEM_ACCOUNT = ******

Thank you!
I appreciated for your answer. I downgraded the version of the "go_router" package from "13.0.0" to "7.0.0" and it helped.
With new version of "go_router", I couldn't trigger the Observer class.
Wish you best!
Regards.


add opengauss driver support

add opengauss driver support

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