text:
Sign Modal and Redirect Broken after update to 0.2.25

Broken after updating to the latest thirdweb packages as recommended to migrate to WalletConnect v2. The Sign Modal (in Metamask) does not appear, unless multiple calls to login from useLogin are made . Eventually after 3 or 4 attempts the sign modal will appear, allowing me to sign the login request and get a token. At that point the redirect back to the client does not occur.
App details
React Native 0.71.10 - React Native CLI (Non Expo)
Android 13 (Not using iOS)
Metamask Android app 7.1.0
react native third web dependencies
"@thirdweb-dev/react-native": "^0.2.25",
"@thirdweb-dev/react-native-compat": "^0.2.25",

"@thirdweb-dev/auth": "^3.2.6" on our API server
I also observe the same behaviour by while using the react native starter app. I updated the thirdweb dependencies of course.
const {login} = useLogin();

const handleLogin = async () => {
    const token = await login();
    console.log('logged in, token', token);
 };

Here is the output when login is called:
 ERROR  {"context": "core"} {"context": "core/pairing"} {"context": "core/pairing/pairing"} No matching key. pairing: 303b58f2dedf452f7b440c7fb334f449b8538b9e59b9fe71c7737c7195d9a204
 ERROR  {"context": "client"} [Error: No matching key. pairing: 303b58f2dedf452f7b440c7fb334f449b8538b9e59b9fe71c7737c7195d9a204]
 ERROR  {"context": "core"} {"context": "core/pairing"} {"context": "core/pairing/pairing"} No matching key. pairing: 303b58f2dedf452f7b440c7fb334f449b8538b9e59b9fe71c7737c7195d9a204
 WARN  Possible Unhandled Promise Rejection (id: 0):
Error: No matching key. pairing: 303b58f2dedf452f7b440c7fb334f449b8538b9e59b9fe71c7737c7195d9a204
Error: No matching key. pairing: 303b58f2dedf452f7b440c7fb334f449b8538b9e59b9fe71c7737c7195d9a204
    at getData (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:111219:48)
    at ?anon_0_ (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:111144:44)
    at next (native)
    at asyncGeneratorStep (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20751:26)
    at _next (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20770:29)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20775:14)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20767:25)
    at apply (native)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:111148:30)
    at ?anon_0_ (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:111378:65)
    at next (native)
    at asyncGeneratorStep (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20751:26)
    at _next (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20770:29)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20775:14)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20767:25)
    at apply (native)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:111383:30)
    at ?anon_0_ (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:124686:155)
    at next (native)
    at asyncGeneratorStep (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20751:26)
    at _next (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:20770:29)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:26281:26)
    at _callTimer (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:26200:17)
    at _callReactNativeMicrotasksPass (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:26230:17)
    at callReactNativeMicrotasks (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:26393:44)
    at __callReactNativeMicrotasks (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:2517:46)
    at anonymous (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:2329:45)
    at __guard (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:2501:15)
    at flushedQueue (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:2328:21)
    at invokeCallbackAndReturnFlushedQueue (http://192.168.50.101:8081/index.bundle?platform=android&dev=true&minify=false&app=com.reactnativestarter&modulesOnly=false&runModule=true:2322:33)

After multiple attempts of going back to the app, calling login I eventually get the sign modal in metamask and a token, however the redirect to metamask also does not occur.
Also when logging out I get
[Error: missing response (requestBody="[{\"method\":\"eth_getBalance\",\"params\":[\"0xaa230911d57f49a70ec155fcec19b3b2e9716f5b\",\"latest\"],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", serverError={}, url="http://localhost:8545", code=SERVER_ERROR, version=web/5.7.1)]

thanks for the report @brien-crean, we'll look at it ASAP

@brien-crean @T-Damer, I'm not able to 100% reproduce this but please not that there are currently some issues with WC/MM reported on their GitHub about sign dialogs not showing up:
https://github.com/MetaMask/metamask-mobile/issues/6701
https://github.com/MetaMask/metamask-mobile/issues/6655
https://github.com/WalletConnect/walletconnect-monorepo/issues/2789
As you mentioned, if this works with Trust and Rainbow that's a good signal it's on MM and not our SDK.

I just tried this with MetaMask, Rainbow and Trust. (all at latest versions from play store)
MetaMask: can connect to wallet consistently, but inconsistently offers the login signature request and fails to redirect when it is offered (token is retrieved)
Rainbow: can connect to wallet consistently, can log in consistently, fails to redirect on login (token is retrieved)
Trust: can connect to wallet consistently, can log in consistently, redirects work as expected
I don't have experience with Rainbow or Trust before this, but MetaMask feels like it degraded in experience overnight - it used to do connect + login with redirects at both steps just fine. Does anyone know what might have happened?

@rowbot-weisguy , what happened was that since yesterday MM and all these wallets and all our Sdks are using WalletConmect V2 as the new protocol. They used to use WalletConnect V1 but it was shutdown:
https://medium.com/walletconnect/walletconnect-v1-0-sunset-notice-and-migration-schedule-8af9d3720d2e
This is the main reason why so many new issues are popping up with MM.

@rowbot-weisguy same to me, if you'll find any workaround, please share with us :)

@T-Damer No workaround yet, but I'm lucky that the project I'm working on is not yet launched publicly. I'd be very anxious if this was happening and it was in production making it hard (sometimes requiring dozens of attempts) for users to log into our dapp.

Just wanted to report that this is still occurring. We have had to remove our disabled state on the login button so that our MetaMask users can attempt logging in as many times as required while the previous login requests variably hang.

Just wanted to report that this is still occurring. We have had to remove our disabled state on the login button so that our MetaMask users can attempt logging in as many times as required while the previous login requests variably hang.

@rowbot-weisguy what version of the RN SDK are you on?

@iketw just reproduced this with @thirdweb-dev/react-native@0.2.39

@rowbot-weisguy, let's do two things:

We have released a new free API keys system that will make it faster to use thirdweb's services. You can create an API key here: https://thirdweb.com/dashboard/settings/api-keys and get a clientId from it to pass in the ThirdwebProvider (please, make sure to add your app's bundleId in the Allowed Bundle IDs when creating your api key):

<ThirdwebProvider clientId={'your-client-id'} ... />

Test with this clientId as it will use better RPCs to communicate with MM.

If you're still experiencing these issues, could you please maybe share a repo I can take a look at?

And just to confirm, Rainbow and Trust wallets are still working as expected correct? MM has a few issues opened in their repo related to the issue you're facing:
https://github.com/MetaMask/metamask-mobile/issues/6870
https://github.com/MetaMask/metamask-mobile/issues/6866
https://github.com/MetaMask/metamask-mobile/issues/6886

"@iketw I tried your approach, looks like MetaMask doesn't suggest to open connect at all with ConnectButton, but it suggest to connect and sign when using useMetaMask hook

@T-Damer I tested with our react-native template project and I get redirected back to the app with all wallets (I have a video but just noticed I can't attach here :( )
I believe after connecting/disconnecting a few times the session fields WC stores in the device's AsyncStorage get messed up for some reason. I have added an update in version 2.5.1 where I'm clearing the wc fields stored in storage after disconnect is called. Hopefully this will do a clean connection every time you call connect.
Could you please try uninstalling/reinstalling the app and check if this fixes your issue?

authors: T-Damer brien-crean iketw jnsdls rowbot-weisguy

repo: thirdweb-dev/js


text:
HMIP-eTRV wird immer als Favoriten angezeigt.

Ich habe bei einem Heizkörperthermostat den Boost Modus über "HAP" eingebunden.
Genau dieser taucht immer als Favorit auf und lässt sich auch. nur über den Mac aus diesen entfernen.
Doch er taucht trotzdem nach einiger Zeit dann wieder in den Favoriten auf.

Ich kann die Favoriten nicht beeinflussen. Ich liefere nur die HomeKit Geräte. Bei einem HM-TC-IT-WM-W-EU hab ich das getestet da geht das.

Wenn ich den BoostModus ausschalte funktioniert es und er verschwindet aus den Favoriten.

schon klar, ich hab es hier auch mit Boost Schalter probiert.

Wenn ich ihn aus den Favoriten entfernen taucht er nach einem Neustart des HAP, direkt wieder unter diesen auf.
Das passiert wenn ich den Boot Modus nicht mit einbinde nicht.

Das ist bei mir auch so. Das scheint aber ein HomeKit Problem zu sein.
Workaround (klappt bei jedem zweiten bis dritten Versuch):

Geräte Einstellungen öffnen
Favorit abwählen
„Geräte“ wählen (Hier findet sich das Thermostat selbst und der Boost Mode)
Lange auf das Thermostat drücken und einmal durch die Einstellungen scrollen.
„X“
Lange auf den Boost Mode und ebenfalls einmal durch die Einstellungen scrollen
„X“
„Zurück“
„X“
Ggf. wiederholen

source: gharchive/issue

authors: Sheldor81 thkl timwegenerDE

repo: thkl/hap-homematic

license: MIT

license_type: permissive

license_source: github-api


text:
Add LICENSE

I'd like to incorporate this into one of my projects but need to make sure it's licensed to allow this. Would you mind adding a LICENSE (e.g. MIT) to this repo?

Done!

authors: craigpg thomasjpfan

repo: thomasjpfan/redis-cluster-docker-swarm


text:
Make statistics

Some statistics would be interesting, e.g

time of last backup run
total number of successful backups
total number of currently stored snapshots
etc.

Those values could be published as json via mqtt

Handled by the sensor introduced in v4.0

repo: thomasmauerer/hassio-addons


text:
🛑 Netdata-NBG is down

In 85344bc, Netdata-NBG ($URL_NETDATA_DE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Netdata-NBG is back up in 6d95e3c after 5 minutes.

repo: thomasmerz/upptime


text:
(feature) Support for multiple exporters

Requirements
The addition of support for multiple exporters increases the efficiency of the data export function.
Some of the benefits include:

Redundancy and Reliability:

Backup: If one exporter fails (e.g., an HTTP endpoint is down), having another exporter (e.g., a file exporter) ensures that the data is still captured.

Different Use Cases:

Auditing: There may be a need to export data to secure, immutable storage for audit purposes.
Monitoring: Simultaneously, we might want to send data to a monitoring system, such as a logging service, for real-time analysis.
Analytics: Exporting data to an analytics platform can help in understanding user behavior and feature adoption.

Separation of Concerns:

Security: Sensitive data might be exported to a secure location, while less sensitive data can be sent to a more accessible endpoint.
Performance: Exporting to a local file might be faster and less resource-intensive, while exporting to a remote server might be more useful for centralized data collection.

/assign-me

repo: thomaspoignant/go-feature-flag


text:
Modernize all fixtures and many new API changes to stripe

PaymentMethods

[ ] Fixtures
[x] Endpoints
[ ] Update specs

SetupIntents

[x] Fixtures
[x] Endpoints
[x] Update specs

PaymentIntents

[x] Fixtures
[ ] Endpoints
[ ] Update specs

ephemeral_keys
merged upstream from https://github.com/thoughtbot/fake_stripe/pull/86
Connect

[ ] Fixtures
[ ] Endpoints
[ ] Update specs

Closing this because fake_stripe has been deprecated: https://github.com/thoughtbot/fake_stripe/pull/154

source: gharchive/pull-request

authors: rromanchuk stefannibrasil


text:
Use Kernel.exec for long-running processes

In #79, @bernerdschaefer raised the issue that for long-running
processes like log-tailing and consoles that parity was responding to
Control-C and terminating the process rather than letting the remote
session handle the input.
This change updates Environment#run_via_cli to use Kernel.exec
rather than Kernel.system, which replaces the current process with the
desired command. We aren't replacing all uses of Kernel.system, as
some of our commands are multi-step and would not successfully complete
if interrupted by an non-final command being invoked though exec. This
solution should give better results for consoles and other long-running
tasks.
http://ruby-doc.org/core-2.3.1/Kernel.html#method-i-exec
Close #79.

Waiting for #97 to merge before introducing this PR.
cc: @bernerdschaefer.

👍

authors: JoelQ geoffharcourt

repo: thoughtbot/parity

license: mit

license_source: bigquery


text:
rails g scenic:view topics_with_post_count begets topics_with_post_counts

Shouldn't pluralize.

I don't know how we would go about doing this well. The model generator takes in a class name and eventaully calls the view generator. The model name will always be singular and the table name needs to be pluralized. Without adding some sort of detection for cases like this, I don't know that there's a good fix here.

authors: calebthompson derekprior

repo: thoughtbot/scenic


text:
Interpret embedded ERB in sql files

I needed to use some logic for generating a complex view. So using the Rails-ish way of interpreting ERB in these kinds of text files seemed like a reasonable solution.
Thoughts?

What's the specific use case here? I'm concerned because while this might be convenient at the time you're writing the view, drift of the interpolated values may result in different users having different views. Consider this:
class Order
  SHIPPED_STATUS = "complete".freeze
end

SELECT * FROM orders WHERE status = "<%= Order::SHIPPED_STATUS %>"

If that constant changes and one developer re-migrates they now have a different view than you had when you first wrote the view. And that new view has been dumped to structure.sql too.
I'm worried the win here isn't big enough to justify this risk. It seems similar to the reason I'd try to avoid using ActiveRecord models in my migrations, but maybe I'm missing something?

Also, if we do this (and I'm willing to be convinced), do we want to have it be explicit via the .erb file extension? If we process every SQL definition as ERB then any <% in the definition could cause problems. This seems an unlikely character combination to have in a view definition, but there'd be no way to work around it.

My use case is to create a lengthy view from existing knowledge in the app, table names, column names and other metadata, then use some loops to generate the final columns which are pg functions. To avoid transcription errors I wanted to use Ruby. Initially I was going to generate it outside of scenic and dump it in the view, but it was very verbose. But I wondered why it needed to much different from anything I could do in a regular migration which contains Ruby to generate SQL behinds the scenes.
The concern about value drift in the migration SQL is valid in the context of it being able to be affected from distant code in the app. Which is a problem in any app design; a change in one location having unintended consequences in another. Though a general concern about value changes doesn't seem valid. Such changes always occur and a remigration to use the new value may be the exact intention, nevertheless, the code change would/should be source controlled. Your example of fragile information in such a migration such as model data is rather fraught and to be avoided, and again an issue with developer common sense.
In general not seeing the final SQL before migrating is a nothing new to Rails. That is how the migrations already work. Though the difference here is that no formal DSL is present to attempt represent the output SQL.
Adding the .erb is a good idea given your example.

I'm sorry, but we're not convinced this is a good idea. The chance of the SQL being generated changing outweighs the benefits in our opinion. It might be more useful to generate the actual .sql file with ERB once and commit the results but not the source, but that's outside the scope of Scenic.

authors: adzap calebthompson derekprior


text:
Allow parsing of an empty string

An empty string should result in returning the existing relation.

Interestingly, GitHub autocloses a PR if the branch it's being merged into gets merged. And I can't seem to open the PR again.

Okay I had to restore the branch that was auto-deleted when I merged, and now I can re-open it.

Once I re-opened it I could change the base branch back to master.

repo: thoughtbot/yuri-ita


text:
World crashloop, already existing connection

This bug happened a few versions ago but seemed to be fixed, updated to the latest version and getting this again. CM was placed against an ME controller, there is not an other me connections to the CM. Server crashloops with this error until we mcedited out the controller
Full crash log:http://pastebin.com/4YdK7eju
Forge 1448 dedicated server running the Nuts and Bolts Pack (technic)
Happy to provide any additional information.

Currently working on a 1.10.2 version, the 1.7.10 version is not being maintained anymore, sorry.
Closing all issues not relevant for the new version.

authors: Saereth thraaawn

repo: thraaawn/CompactMachines


text:
Producing archives with non-standard extensions

Hello
Would you consider taking a PR that made it possible to specify an alternative file extension? I'd like to use jarchivelib to create "dump" files for Neo4j, but we don't want to advertise the file format in the extension.
Thanks
-Ben

Sure. I would suggest modifying CommonsArchiver#createNewArchiveFile.
The condition could check if there is any file extension instead of the specific one.
The ArchiverCompressorDecorator has a different mechanism for generating file extensions.
Maybe you can come up with a solution.

Although I believe the chance is very small, it may break peoples code.
A cleaner solution would probably be to extend the API with a function with the signature File create(File target, File sources...) (and the adjacent one)
However, this would be significantly more effort, as it would involve restructuring parts of the Archive implementations.

Thank you. I've decided in the end to code against Commons Compress directly as well don't need the generality and flexibility that jarchivelib provides.

authors: benbc thrau

repo: thrau/jarchivelib


text:
3bot deployer requires farms to have ip4 and ip6

this narrows the results to freefarm only, should use ip4

verified, when deploying on https://deploy3bot.grid.tf/threebot_deployer/#/ farms include both not just ipv4

verified, when deploying on https://deploy3bot.grid.tf/threebot_deployer/#/ farms include both not just ipv4

authors: ranatrk xmonader

repo: threefoldtech/js-sdk


text:
Development vdc chatflow

Description
Describe the changes introduced by this PR and what does it affect
Changes
List of changes this PR includes
Related Issues
List of related issues
Checklist

[ ] Pre-commit hook is installed to do formatting checks before committing code...etc
[ ] Tests included
[ ] Build pass
[ ] Documentation
[ ] Code format and docstrings

to be continued in https://github.com/threefoldtech/js-sdk/pull/1769

authors: m-motawea waleedhammam


text:
🐞 [Bug] TFRobot: Config file extension validation

What happened?
File parsing accepts any file extension not mentioned in the documents.

which network/s did you face the problem on?
Dev
Twin ID/s
No response
Node ID/s
No response
Farm ID/s
No response
Contract ID/s
No response
Relevant log output
.

I can't generate this error after trying:
Error: unsupported configuration file format 'conf.txt', should be [yaml, yml, json]
Usage:
  tfrobot cancel [flags]

Flags:
  -c, --config string   path to config file
  -d, --debug           allow debug logs
  -h, --help            help for cancel

1:48PM FTL error="unsupported configuration file format 'conf.txt', should be [yaml, yml, json]"
exit status 1

I was using the latest release, but for most of the new fixes, it's not yet released, and I will start testing on the dev branch instead.

TC2493 - Config File extension Validation

authors: A-Harby rawdaGastan

repo: threefoldtech/tfgrid-sdk-go


text:
Change icons to use drawable reference

This removes the attr definitions for icons as we're using the same ones for dark and light mode and there is no reason to keep this setup in place. The icons are now referenced directly, which will allow easier transition to the new Material 3 icons and consolidating them into it's own icon module.
FoldableLinearLayout was removed as it was only referenced by the attr definition.
This change allowed to remove some unused icons.

I liked having a layer to separate between icon (ic_cog) and function (iconSettings) and hope we'll bring it back in some form at some point.

We discussed this already with design and we are going to use the icon names from the Material icon library.

repo: thunderbird/thunderbird-android


text:
🛑 Avatar is down

In 9bacb54, Avatar (https://avatar.thwiki.cc/thwikicc_wiki_default_l.jpg) was down:

HTTP code: 500
Response time: 163 ms

Resolved: Avatar is back up in 61aa9cf after 23 minutes.

repo: thwiki/status


text:
Bug Report From Playground: 解析html注释异常，并且会导致play崩溃！

version: 1.0.40
playground demo: link
detail desc:

<!--  加载搜索栏        ---->

上面的play地址可以无视，先把语言改成html，然后再输入上面这个注释放在play里面，然后就崩了。。。
在实际解析中。会报错：
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'content' of undefined
at serializeCommentNode (E:\zpWork\Project_self\miniprogram-to-uniapp\node_modules\gogocode\src\html-core\serialize-node.js:22:39)
at serializeNode (E:\zpWork\Project_self\miniprogram-to-uniapp\node_modules\gogocode\src\html-core\serialize-node.js:133:16)
at E:\zpWork\Project_self\miniprogram-to-uniapp\node_modules\gogocode\src\html-core\serialize-node.js:106:20
at Array.map ()
at Object.serializeNode [as generate] (E:\zpWork\Project_self\miniprogram-to-uniapp\node_modules\gogocode\src\html-core\serialize-node.js:105:52)
at AST.generate (E:\zpWork\Project_self\miniprogram-to-uniapp\node_modules\gogocode\src\Ast.js:726:57)
at Page.generateTemplate (E:\zpWork\Project_self\miniprogram-to-uniapp\src\page\index.js:455:51)
……

我也遇到了
transform in progress: [============================================================================------] 597/641    TypeError: Cannot read property 'content' of undefined
at serializeCommentNode (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:22:39)
at serializeNode (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:133:16)
at node.content.children.map.child (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:106:20)
at Array.map ()
at serializeNode (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:105:52)
at node.content.children.map.child (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:106:20)
at Array.map ()
at serializeNode (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:105:52)
at node.content.children.map.child (C:\Users\M004447\AppData\Roaming\nvm\v11.10.0\node_modules\gogocode-cli\node_modules\gogocode\src\html-core\serialize-node.js:106:20)
at Array.map ()

authors: happyi zhangdaren

repo: thx/gogocode


text:
fix: use lazy mode to match commit message block

https://regex101.com/r/2pBTI5/1

/merge

repo: ti-community-infra/configs


text:
➖ Do not require backports in Python >= 3.7

Signed-off-by: Filipe Laíns lains@archlinux.org

This should avoid some extra package installation for some users, as well as act as a reminder to remove the dependency and code when you move to Python 3.7 as the minimum version :blush:

Awesome, thanks @FFY00! :rocket:

repo: tiangolo/fastapi


text:
📝 Add FastAPI monitoring blog post to External Links

https://github.com/tiangolo/fastapi/issues/1828#issuecomment-723541832

Awesome, thanks @louisguitton ! :rocket:

authors: louisguitton tiangolo


text:
Add Python 3.8 to CI for tests

:construction_worker: Add Python 3.8 to CI for tests.

This won't work until there's an official Pydantic for Python 3.8. Or the tests would have to compile Pydantic (with all the Cython requirements/steps). That would increase complexity too much for not much benefit at the moment.


text:
Update applications.py

added correct version number

📝 Docs preview for commit bb9e65a9edeec0b199e7daa33c47cd24b1fd7673 at: https://6485e407f1e5e125fafd979a--fastapi.netlify.app

You should not change this because it is version of application, which use FastAPI, not FastAPI

This is to set the version number of the api application instead of the version number of fastapi

authors: ChoyeonChern hkoster90 magiskboy tiangolo


text:
CenterPoint+PointPainting on nuScenes Val dataset

Hi! Thanks for your paper MVP.
But I have a question about the result of CenterPoint+PointPainting on nuScenes Val dataset.
As you mentioned in the paper, it reaches 66.5 overall mAP. But my result is only 65.4.
I train the model by just throwing away those virtual points since you have already painted those real points on the masks.
All other configurations are the same with https://github.com/tianweiy/CenterPoint/blob/master/configs/mvp/nusc_centerpoint_voxelnet_0075voxel_fix_bn_z_scale_virtual.py
Could you please tell me the reason? Thanks!

Hi, in the table, we also do the same second stage for point painting. For single stage, your number seems right

Thanks for your quick reply!
As for the second stage, I find in https://github.com/tianweiy/CenterPoint/blob/d1e1bd5b08b2b9816ee38bbe2d036db1e5df340a/configs/mvp/nusc_two_stage_base_with_virtual.py#L278 that you have only trained 6 epochs. Does that mean you first only train one stage for 20 epochs and then resume from those parameters and train the second stage for 6 epochs?

Yes, set the weight trained using first stage at https://github.com/tianweiy/CenterPoint/blob/d1e1bd5b08b2b9816ee38bbe2d036db1e5df340a/configs/mvp/nusc_two_stage_base_with_virtual.py#L27

Thanks!
And I found that you haven't removed those raw points which are within those masks and are painted. For MVP, I think you keep those raw points for split voxelization. But just for CenterPoint+PointPainting, why not remove those raw points away?

This also works. I just keep the comparison the same as our approach in table 4.

Thanks!

authors: buaacyw tianweiy

repo: tianweiy/MVP


text:
fix(Banner): Overrides on the close button were not applied correctly if the DOM tree only contains a banner

fix(Banner): Overrides on the close button were not applied correctly if the DOM tree only contains a banner

It fixes an issue with the close button style overrides on the banner. I had to disable temporarily stylelint to make it pass because stylelint is not taking in consideration the final rendering of the react component. If you can find a better way to produce the same result, please let me know and I'll make the change.

stylelint-disable have multiple occurrence in the Aurora to get past the errors
no-descending-specificity , value-no-vendor-prefix , property-no-vendor-prefix and in this case no-duplicate-selectors.
Workarounds for these errors are not really viable options since Aurora have component-based approach. So I believe we can turn off the rule in this particular case.

repo: ticketmaster/aurora


text:
Add Roblox app

Roblox for Tidbyt
Displays an online friends or favorite games view for a specified Roblox username.
A pulsating green dot will appear if the Roblox user is online, otherwise it will show gray for offline. Friend avatars also provide an online vs offline dot indicator.
ONLINE FRIENDS VIEW

FAVORITE GAMES VIEW

Customization
This app provides various UI options. The user can customize their experience by choosing to show their online friends vs. favorite games views, selecting an accent text color or enabling dark vs. light modes.
These customizations can be adjusted using the properties of the app.

I have read the CLA Document and I hereby sign the CLA

repo: tidbyt/community


text:
WebIDL snippets with default values are being dropped

e.g. https://github.com/w3c/wake-lock/commit/5c34f9a299ad4625fe32398152bf85ab8cdf1c24 lead to https://github.com/web-platform-tests/wpt/pull/17904/files#diff-d83394caf586049a88f0c0cdd880c7bbL12
e.g. https://github.com/w3c/push-api/commit/9179964494a5cedcca4a104c555e98019fbb1135 lead to https://github.com/web-platform-tests/wpt/pull/17826/files#diff-173f90f4b0be112b694720eda63bce08L11

Oh, good catch. That suggests that some attempt is being made to parse the IDL before accepting it, but that doesn't jive with my experience of fixing lots of broken IDL in specs that was already in reffy-reports... curious to learn what's behind this :)

@tidoust @dontcallmedom can either of you help out with this?

Argh. The problem is that right now, Reffy needs to use a pinned version of Respec (23.7.1) because newer versions of Respec do not run under JSDOM (notably because of the use of CreateObjectURL to create a worker). That old version of Respec does not seem to like default values when it parses WebIDL fragments and fails to include the interface in the final IDL index.
I don't know how to make the latest version of Respec run with JSDOM. We may have to get back to running a headless browser instead.
In the meantime, I'll have Reffy extract the IDL from the body of the spec instead of relying on the IDL index at the end of the spec.

Reffy will now ignore the final IDL index from now on, and rather extract IDL definitions from the core part of the spec.
Not to have to wait for tomorrow's automatic report, I also pushed a manual update of the IDL files for Performance Timeline, Push API, User Timing, Wake Lock, WebNFC and Web Share, which had missing IDL definitions because of this.
Please reopen the issue if I missed something!

Sweet, thanks for fixing this, @tidoust!

authors: foolip lukebjerring tidoust

repo: tidoust/reffy-reports


text:
EXEC_BAD_INSTRUCTION Error with Carthage

Hi,
first: thanks for the project. I've been looking for a good IonIcons Swift Library for a while now. This one seems to support everything what I want, but unfortunately I can't get it to work with Carthage and I really don't want to use Cocoapods anymore.
The problem:
Everytime I try to generate an image with the library, I get a EXC_BAD_INSTRUCTION in line 20 of ionicons.swift:
let inData = NSData(contentsOfFile: NSBundle(identifier: "org.cocoapods.IoniconsSwift")!.pathForResource("ionicons", ofType: "ttf")!)
Seems like the font file can't be accessed?
Thanks in advance. 👍

I found the issue. Seems like the identifier was just outdated. Fixed it in #4

repo: tidwall/IoniconsSwift


text:
fix: unable to analyze if there is a Subscription callback with the same symbol

Description
unable to analyze if there is a Subscription callback with the same symbol
Related links
https://tier4.atlassian.net/browse/RT2-1061
Notes for reviewers

Pre-review checklist for the PR author

[x] I've confirmed the contribution guidelines.
[x] The PR is ready for review.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR has been properly tested.
[ ] The PR has been reviewed.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] (Optional) The PR has been properly tested with CARET_report verification.
[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@miyakoshi-dev
The current implementation adds construction_order to Publisher, but I think it should be added to Subscription, Service, and Timer as well.

LGTM

authors: miyakoshi-dev ymski


text:
🛑 Minio is down

In 49bdc08, Minio (https://tigefa.site) was down:

HTTP code: 502
Response time: 328 ms

Resolved: Minio is back up in 25e7f53.


text:
Laravel 8.58.0 Shift

This pull request includes updates for the recent minor version release of Laravel as well as updates to your package dependencies. Feel free to commit any additional changes to the shift-ci-v8.58.0 branch.
Before merging, you need to:

Checkout the shift-ci-v8.58.0 branch
Review all pull request comments for additional changes
Run composer update
Test your application (no tests?)

:information_source: The following Laravel packages were updated as they are known to be compatible with Laravel 8.58. Nonetheless, you should review the CHANGELOG to ensure no additional changes are needed.

[ ] stevegrunwell/time-constants

repo: tighten/checkmate


text:
Merging client app to main

This is pull request to merge client code to main branch. No changes since previous pull request from my fork.

Which Makefile rule cleans all build artifacts and binaries? make clean leaves the binary and there is no make fclean rule.

Clarification on Makefile rules.

Which rule cleans all build artifacts and binaires making repo ready for a commit? make clean leaves the binary and there is no make fclean.
Why does make distclean remove the Makefile itself?

Makefile here is a temp file generated by qmake.

Clarification on Makefile rules.

Which rule cleans all build artifacts and binaires making repo ready for a commit? make clean leaves the binary and there is no make fclean.
Why does make distclean remove the Makefile itself?

Makefile here is a temp file generated by qmake. make distclean removes binary for me

Thanks for clarification. Can you specify what is the correct way to build the program?

If the Makefile is a build artifact from qmake I think it should be .gitignored. or at least it would like to delete itself
distclean: clean
	-$(DEL_FILE) $(TARGET)
	-$(DEL_FILE) .qmake.stash
	-$(DEL_FILE) Makefile

Agreed. The client flake.nix defines the buildPhase:
buildPhase = "qmake; make";

where qmake generates the Makefile so we have no reason to store the Makefile under version control. Adding it to .gitignore is also a good idea.

I am going to close this pull request and delete fork. There is no (right and painless) way to sign the prev commits.

authors: dmitry-erin juliuskoskela vilvo

repo: tiiuae/vmd


text:
Too many logs of "get timestamp too slow"

Please use something like zapcore.NewSamplerWithOptions
ref https://github.com/pingcap/tidb/blob/01797cb3ae9253067952494d90b3dc933e7066ba/pkg/util/logutil/log.go#L406

ptal @you06

repo: tikv/client-go


text:
[WIP] Introduce Codec

This PR aims unify CodecPDClient and CodecPDClientV2 by introducing a Codec interface.

There is a bug that might block this pull request: https://github.com/tikv/client-go/blob/bb026bdad8f34604cc01fdafbaf4063729583a44/txnkv/txnsnapshot/scan.go#L217. We should use to check if we need to proceed the scan:
			if len(reqEndKey) == 0 || (len(loc.EndKey) > 0 && bytes.Compare(loc.EndKey, reqEndKey) < 0) {
				reqEndKey = loc.EndKey
			}

authors: AmoebaProtozoa iosmanthus


text:
[DNM]: test pull ci

What problem does this PR solve?
Issue Number: close #issue_number
Problem Description: TBD
What is changed and how does it work?
Code changes

Has exported function/method change
Has exported variable/fields change
Has interface methods change
Has persistent data change
No code

Check List for Tests
This PR has been tested by at least one of the following methods:

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Side effects

Possible performance regression, WHY: TBD
Increased code complexity, WHY: TBD
Breaking backward compatibility, WHY: TBD
No side effects

Related changes

Need to cherry-pick to the release branch
Need to update the documentation
Need to be included in the release note
No related changes

To reviewers

Please follow these principles to check this pull requests:

Concentration. One pull request should only do one thing. No matter how small it is, the change does exactly one thing and gets it right. Don't mix other changes into it.
Tests. A pull request should be test covered, whether the tests are unit tests, integration tests, or end-to-end tests. Tests should be sufficient, correct and don't slow down the CI pipeline largely.
Functionality. The pull request should implement what the author intends to do and fit well in the existing code base, resolve a real problem for TiDB/TiKV users. To get the author's intention and the pull request design, you could follow the discussions in the corresponding GitHub issue or internal.tidb.io topic.
Style. Code in the pull request should follow common programming style. (For Go, we have style checkers in CI). However, sometimes the existing code is inconsistent with the style guide, you should maintain consistency with the existing code or file a new issue to fix the existing code style first.
Documentation. If a pull request changes how users build, test, interact with, or release code, you must check whether it also updates the related documentation such as READMEs and any generated reference docs. Similarly, if a pull request deletes or deprecates code, you must check whether or not the corresponding documentation should also be deleted.
Performance. If you find the pull request may affect performance, you could ask the author to provide a benchmark result.

(The above text mainly refers to TiDB Development Guide. It's also highly recommended to read about Writing code review comments)

/test ?

test pass, i will close this pr.

repo: tikv/migration


text:
*: use joint consensus

This PR updates raft to utilize joint consensus. Several outdated methods from ProgressTracker and benches are removed.
Most codes are ported with the same name and same location. Except switchToConfig is ported as post_conf_change as we mutates progress inline.
Tests are updated to get it passed. But more tests need to be ported later.
@HunDunDM  @nolouch PTAL
@Fullstop000 PTAL if you have time.

@BusyJay Maybe we can add a specialized method, proposing the empty ConfChangeV2, into rawnode for leaving Explict transition or doc this in somewhere else?
Rest LGTM besides the CI error.

I added a comment to propose_conf_change. And now CI passes.

repo: tikv/raft-rs


text:
open_tablet may cause deadlock

open_tablet will acquire the lock of registry. When the tablet is not in registry, it will call open_tablet_raw which may call create_tablet which will acquire the lock of registry again.
So deadlock may happen

/type bug
/severity moderate

repo: tikv/tikv


text:
All TiKV nodes (three) disks are full and cannot restart the TiKV node. Eventually the cluster could not be restarted.

       Hello, I am using the version of TiDB v3.0.2. I wanted to use the sysbench tool to test my cluster. When I used sysbench to generate 32 tables, each with 80 million rows of data, every disk on my TiKV node (three) was written full. As a result, all TiKV nodes in the cluster are down. Now every TiKV cluster can't be started, and it won't start after the entire cluster is shut down.
      I built the cluster tidb*2, PD*3, TiKV*3, and each TiKV data disk size is 512G.

When the TiKV disk is full down, an error is reported:
[2019/09/07 11:36:36.969 +08:00] [ERROR] [transport.rs:318] ["send raft msg err"] [err="Other("[src/server/raft_client.rs :216]: RaftClient send fail")"]
[2019/09/07 11:36:36.969 +08:00] [FATAL] [mod.rs:222] ["logger encounter error, TiKV cannot continue working"] [err="No space left on device (os error 28)"]
When the cluster restarts, the following error is reported:
TASK [wait until the TiKV port is up] **************************************** *************
Fatal: [172.18.2.148]: FAILED! => {"changed": false, "elapsed": 300, "msg": "the TiKV port 20160 is not up"}
Fatal: [172.18.2.147]: FAILED! => {"changed": false, "elapsed": 300, "msg": "the TiKV port 20160 is not up"}
Fatal: [172.18.2.149]: FAILED! => {"changed": false, "elapsed": 300, "msg": "the TiKV port 20160 is not up"}
Please,What should I do?

maybe you can remove some logs to release some spaces then try to start TiKV? If it still can't, then I have no idea.
If you just for a test, maybe you can insert not too much data.

Thank you very much. After clearing the log, the cluster can only start two TiKVs. Since the third TiKV disk space is still not enough, it still cannot be started.
Then try to remove the dropped TiKV from the cluster. Then manually delete the files in the data directory and then add them to the cluster. There are a lot of problems in the process. After the empty TiKV is added to the cluster, the TiKV with the smallest disk space is down again. After the cluster restarts, also only two TiKVs are booted. Then try to delete the data, at this time can not perform a very large delete operation, only one row of data can be deleted every time. If you delete a table or database, the client will be stuck.
Since the cluster is all the data of the stress test, it is finally decided to empty the data of the entire cluster and start over.

Thank you @liuhuanHappyStudy
The progress of remove/add TiKV to cluster is very interesting. We will try to reproduce it and invest it.
And did every thing is ok for you now?

Thank you @zhouqiang-cl
Thanks for your reply, after clearing the cluster data, the cluster returned to its original deployed state, and everything is fine now.
Clear cluster data command:
Ansible-playbook unsafe_cleanup_data.yml

Then try to remove the dropped TiKV from the cluster

Did you remove it with pd-ctl, or just delete disk files and restart it? If you just remove disk files, the store can't join the cluster successful. You need to remove it from the cluster with pd-ctl first.

After the empty TiKV is added to the cluster, the TiKV with the smallest disk space is down again.

Other TiKVs will send snapshots to the new store. Snapshots are generated and stored on disk so some TiKVs get down.

only one row of data can be deleted every time. If you delete a table or database, the client will be stuck.

I guess it's because that some regions have more than half peers down. According to your statements, I guess those regions have only 2 peers. Do you still have the cluster? If so, please check such things:

how many stores are running now
If there are any stores can't start, Please check whether there are any regions which have more than half peers on the failed stores with such command:

pd-ctl -u <endpoint> -d region --jq='.regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total | map(if .==(1,4,5) then . else empty end) | length>=$total-length) }'

Please replace 1,4,5 with your failed stores list.

Hello, I still experience this on version 4.0.6: I have persist critical config failed: persist config to '/var/lib/tikv/tmp_tikv.toml' failed: No space left on device (os error 28)" I tried compacting based on the work around in ticket: https://github.com/pingcap/tidb/issues/5480 but still no luck. Any advise on this?

authors: Hmr-ramzi hicqu liuhuanHappyStudy siddontang zhouqiang-cl


text:
cdc: capture old value from txn layer dynamically

What is changed and how it works?
Close #10091

remove stuff about the enable_old_value option, because it will be always true now;
refactor Delegate to make it easiler to maintain;
avoid to capture old vaue from txn layer if all downstreams are stopped.

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Integration test

Side effects
Release note
None

/test

/test

/test

/cc

/test

/run-cdc-integration-test

/run-integration-cdc-test

/run-integration-cdc-test

/merge

/test

/test

/test

authors: hi-rustin hicqu


text:
add error type MismatchPeerId

What is changed and how it works?

Issue Number: Close #15288
What's Changed:

Add error type for "mismatch peer id".

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests

Manual test (add detailed scripts or steps below)

Side effects
Release note
None

/merge


text:
copr: Migrate scalar function Lpad from TiDB

Signed-off-by: Qiannan Lyu lvqiannan@gmail.com
UCP: #6942

What problem does this PR solve?
Issue Number: close #6942
Problem Summary: Migrate scalar function Lpad from TiDB
What is changed and how it works?
Implemented scalar function Lpad
What's Changed:
Check List
Tests

Unit test

@lonng Can anyone please review this pr? Thanks

I think the normal version lpad which did an elegant job is worth reference.
https://github.com/tikv/tikv/blob/master/components/tidb_query_normal_expr/src/builtin_string.rs#L867

@zhongzc @lonng  PTAL, Thanks!

/run-all-tests

/run-integration-copr-test

/merge

/test

/merge

authors: hsqlu sticnarf zhongzc


text:
storage: more perf statistics for scan

Signed-off-by: tabokie xy.tao@outlook.com

What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Proposal: xxx
What's Changed:
Add more perf statistics to better investigate read performance jitter. Final items TBD.
Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Side effects

Performance regression

Consumes more CPU
Consumes more MEM

Breaking backward compatibility

Release note

No release note

/bench +tpch +sysbench +tpcc


text:
Always compute before “stamping” the validation

Computing the reference value could potentially be side-effectful (from the perspective of the revision timeline), so you should always compute the value before getting the tag value.

cc @wycats @krisselden

repo: tildeio/glimmer


text:
I experience higher CPU usage using TuneIn and Deezer

Hi team,
I am experiencing very high CPU usage when I use your apps like TuneIn and Deezer (im not using anything else atm). It is not immediatelly, but from time to tim lets say in about 10-15 min it will be 80-90% of cpu usage.. and the process is called "ValacefSubproce" and when I kill it, one of your apps either Deezer or TuneIn ends.. so I believe it comes from your apps.
However, please see the attachment below. This ValacefSubproce process is causing very high cpu usage and when I kill it your apps ends along with the cpu usage, so no additional steps to tell you, it is just simple, using the apps TuneIn or Deezer.. normally left in background to play and doing nothing else except open Opera browser, Bluemail client, Slack.
I have Ubuntu 19.10, 8 core AMD processor, 16GB of RAM.
I tried with:  flatpak update --system; flatpak update --user

False alarm, this is not proper view to see cpu usage.. this should be 9% actually, I'm new to Ubuntu sorry.

Actually, 90% as shown in top is still pretty high. Nuvola shouldn't use a whole single core.

I mean it shouldn't use a whole single core constantly. My CPU utilization is below 20% (of a single core) with occasional spikes to 70%.

I think the problem may be more related to TuneIn app, specially when there's very good audio quality of some radio.. for now its like constant of 35-45% of a single core for TuneIn, listening to 1.FM - A List 80s radio.

authors: fenryxo veljkho

repo: tiliado/nuvolaruntime


text:
cluster: add rancher, k3d detection

Hello @nicks,
Please review the following commits I made in branch nicks/rancherdesktop:
980f0f4fd0090a556ac73d3bbc4d14551e690b9a (2021-09-28 15:47:01 -0400)
cluster: add rancher, k3d detection
Code review reminders, by giving a LGTM you attest that:

Commits are adequately tested
Code is easy to understand and conforms to style guides
Incomplete code is marked with TODOs
Code is suitably instrumented with logging and metrics

this is mostly ported from
https://github.com/tilt-dev/tilt/commit/e59ac0541e407412a9f4ce5cfa8d6b683d59efcb#diff-75589ac58e150e1d3ff9973f633f0eaf509ec1eed23d125251e542dd8f12510d
and
https://github.com/tilt-dev/tilt/commit/a9eba86c2dd120b2338d5475db85c4ee9b38fbba#diff-75589ac58e150e1d3ff9973f633f0eaf509ec1eed23d125251e542dd8f12510d
(I really need to either make tilt depend on ctlptl or move this to a common lib)

repo: tilt-dev/ctlptl


text:
[BUG] Maybe a bug about acf fields in menus

Expected Behavior
Have the right acf fields in the menus
Actual behavior
Always the same acf fields from the last menu called.
Steps to reproduce behavior

Register multiple menus register_nav_menus()
With ACF create fields with location rules targeting "Form -> Menu"
inside add_filter( 'timber/context', array( $this, 'add_to_context' ) ); retrieve each menus with multiple Timber::get_menu()
In Appearance -> Menus create menus for each location, and you will have the same acf field group on all (if it's not only me ^^)

Notes
I had an other problem with menus last month but I don't think it's the same problem.
I tried a clean install with my boilerplate and reproduced the same problem.
Apparently Timber::get_menu() triggers wp_get_nav_menu_items() inside advanced-custom-fields-pro/includes/forms/form-nav-menu.php. So for menus, acf always load stuff from last menu ID called by the last Timber::get_menu().
Maybe I failed something else on my code and it's only me...
For now I fixed it by putting Timber::get_menu() inside an if ( ! is_admin() )
What version of Timber are you using?
2.2.0
What version of WordPress are you using?
6.5.5
What version of PHP are you using?
8.2
How did you install Timber?
Installed or updated Timber through Composer

Hi @xanghyr ,
I tried to reproduce your bug but were unable to:

Created a menu location: footer_navigation
Created a menu and linked it to the footer location.
Created a field group with a dummy field and tried targeting both the menu itself and the menu locations
Tried calling Timber::get_menu('footer_navigation') and Timber::get_menu(4) in functions.php
Checked menu but fields only show up under the targeted menu.

Fields only appeared on the targeted menu or menu location. Where do you invoke your Timber::get_menu call exactly? Is it inside a hook? If so, which one and at what priority?

Hi,
It's OK now, an early call to the context made this problem.

authors: Levdbas xanghyr

repo: timber/timber


text:
🛑 VPS-Proxy PAGE is down

In 12c7093, VPS-Proxy PAGE (https://vps.timedin.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: VPS-Proxy PAGE is back up in 2093bb1.

repo: timedin-de/upptime


text:
[Pickers] Explore DayJS for the date conversions

dayjs - https://github.com/iamkun/dayjs

https://github.com/timelessco/renderlesskit-react/pull/218

repo: timelessco/renderlesskit-react


text:
Custom Post Types

I'm using V2 of the WP-API and I'm trying to get my custom post types. I'm using Version: 1.3.2 of acf-to-wp-api.
I tried making a request with Postman to this endpoint...
http://localhost:8888/wp-json/wp/v2/car
With 'car' being my custom post type of course. But I get this response...
[
    {
        "code": "rest_no_route",
        "message": "No route was found matching the URL and request method",
        "data": {
            "status": 404
        }
    }
]

I found this blog post that goes through setting up getting custom post types with WP-API V2 (https://bay-a.co.uk/wordpress-tips/wp-api-v2-tips/)
When I added this to my functions.php in my theme, I could get my custom post type response.
add_action( 'init', 'add_events_to_json_api', 30 );
function add_events_to_json_api(){

    global $wp_post_types;
    $wp_post_types['car']->show_in_rest = true;
    $wp_post_types['car']->rest_base = 'car';
    $wp_post_types['car']->rest_controller_class = 'WP_REST_Posts_Controller';
}

I looked through the plugin code and I can see where custom post types are registered, but it doesn't seem to be working for me. Maybe my url is incorrect?
Any help would be awesome! Thanks!

Hey @harrythree,
Can you also share the code where the custom post type is registered? I'll do some testing and see if I can recreate the issue you're having!

@chrishutchinson The custom post type was created using the Custom Post Types UI plugin
https://wordpress.org/plugins/custom-post-type-ui/
So I'm not actually registering myself, the plugin registers them for me. Maybe that's the problem?

Try going to Settings > Permalinks page once the WP-API 2 plugin is installed. I had to do this for the new routes to register. Not sure why we had to do this, but we banged our heads for about 2 hours trying to figure out why the new endpoints weren't present. This happened on both our staging and production sites.

repo: times/acf-to-wp-api


text:
RDS Support: Adding pgai in Amazon RDS

What problem does the new feature solve?
We would like to know if it is possible to add pgai in RDS?
What does the feature do?
Support pgai in RDS
Implementation challenges
No response
Are you going to work on this feature?
🆘 No, could someone else please consider working on it?

This is sadly not really in our power to change. AWS has to decide to support the pgai extension on RDS themselves. You can request it via your rep or a support ticket though. If enough people do that, they will eventually have to consider it.
In the meantime, I can only suggest you to checkout timescales cloud offering if you want a hosted experience. We do play quite nicely with AWS as well, so maybe that's an option.

repo: timescale/pgai

license: PostgreSQL


text:
grafana pod error

after tobs install
Its error comes up this
root@master:~/tobs/chart# k logs -f tobs-grafana-74b75c676d-tmlv7
error: a container name must be specified for pod tobs-grafana-74b75c676d-tmlv7, choose one of: [grafana-sc-dashboard grafana] or one of the init containers: [grafana-sc-datasources]

how can i solve it?

What you're seeing are the init containers that create the starting dashboards and starting data sources for grafana, so you already have the deployed Promscale and Prometheus as data sources, and some dashboards to monitor the cluster already when you log in to Grafana. The main grafana container will start after them.
When you have a pod with multiple containers in grafana you need to specify the container name for k logs
The command would look like k logs -f <pod-name> <container-name>

authors: blagojts junhwani

repo: timescale/tobs


text:
Improve: Modify git ignore list for smoother collaboration

Hey @timf34,
This PR refines our .gitignore file to exclude unnecessary files and directories from version control, including:

venv directory
personal contents of the data and substack_html_pages directories (except for README.md)
runtime cache directory(pycache)
IDE configuration directory(.vscode and .idea)

These changes will help avoid conflicts caused by differing developer environments, simplify onboarding for new contributors, and keep the repository lean.
（This is my first PR for an open-source project, sorry for any improper practice. Please kindly point them out. Thanks!!😉）

This is a good addition, thanks!


text:
FR: Join Lines removing bullets points

say I want to merge two lines:
- one point
- second point

here, the result would be:
- one point- second point

A much more elegant result, however, would be to remove the preceding -:
- one point second point

I'm a bit hesitant about this one as it starts to diverge from the code editor behaviour I'm trying to emulate. If it becomes a feature, might be better to have it as a configurable option so users aren't surprised with a missing dash.

Tracked here: https://github.com/timhor/obsidian-editor-shortcuts/projects/1#card-75480854

authors: chrisgrieser timhor

repo: timhor/obsidian-editor-shortcuts


text:
Bitfinex Websocket Market Data

Is anyone working or intending to work on the new Bitfinex streaming market data?
http://docs.bitfinex.com/#websocket

duplicate issue here: https://github.com/timmolter/XChange/issues/630
was closed by @timmolter almost a year ago.  either the feed didn't exist at the time, or its docs had evaded tim

@brobits it didn't exist at the time, it's quite new, or at least it's an updated version.

Bitfinex did have a streaming API for a while, but it used to be an internal API meant for the website and not developers. They recently released an official websocket API and the documentation can be found here.

I'm willing to work on this. Any initial work already?

@blbradley No work done as far as I understand. Happy to help with questions if there were any (and I can answer). Spec is here http://docs.bitfinex.com/#websocket and example Go implementation of spec here https://github.com/bitfinexcom/bitfinex-api-go

I am personally working on an implementation after having used most of the other available StreamingExchangeServices. However, a brief Python test showed me that updates to the order book come incremental, i.e. only one full order order book on CONNECT and single quote updates thereafter - has this been dealt with before ? It would require holding and updating a state of the order book.

As state in the API documentation: "The Order Books channel allow you to keep track of the state of the Bitfinex order book. It is provided on a price aggregated basis, with customizable precision. After receiving the response, you will receive a snapshot of the book, followed by updates upon any changes to the book."

@blotter123 that's correct, you will have to reconstruct the book, applying incremental updates. I believe Coinbase websockets is doing the same, but most Bitcoin exchanges only provide snapshots.

@jheusser does XChange support this approach for Coinbase? I've seen others do this.

I have this working, but there doesn't seem to be a consistent protocol for WebSocket data handling across XChange. Has this gotten better? I can either try to shoehorn something in it at least make the code available if someone else wants to port it.

Unfortunately not. Streaming in XChange is quite sloppy and inconsistent. While that's not a good state to be in, I think having stuff that (at least) works is slightly better. Either that or completely removing all streaming code was also something I was considering.

authors: Kelvin-Chen blbradley blotter123 brobits btiernay evdubs jheusser timmolter

repo: timmolter/XChange


text:
Avoid exposing dispatch from the library

Hi, thanks for this amazing library.
I have noticed that you expose your internal implementation of dispatch. Haven't investigated if there is a proper reason for doing this, but from the DX point of view it's terrible because all projects that use Redux with VS Code will import it by mistake when what they want to do is really:
const { dispatch } = props;

or
const dispatch = useDispatch();

I would consider not exporting your lib's internal dispatch to outside users of the lib.

Oh, that's a valid point. Haven't thought about that. There is no real reason why it's exported other giving people more control if they want. I think I'll remove the export with the next release and wait until someone requests it.

authors: frankdilo timolins

repo: timolins/react-hot-toast


text:
Update god_crypto on version 1.7

Hi there,
Thanks for your work on djwt, it's the go-to solution for using jwt in Deno, and it's been evolving great. It happens that there are libraries using djwt (like https://github.com/halvardssm/oak-middleware-jwt) that are still heavily coupled to the old API, before 1.8 (validateJwt and so on) and will take a while to update.
They work just fine with the latest versions of Deno, except that they're having problems with the "abstract async" methods on god_crypto (fixed on this PR) https://github.com/invisal/god_crypto/releases/tag/v1.4.6.
It happens that version 1.7 of djwt (which is the one with the old API) is still locked to a version of god_crypto where this breaks.
Sending this PR so that people using version 1.7 can update (for instance into 1.7.1) and get everything to work just fine with the old API and the new versions of deno. This shouldn't be merged on master but on the 1.7 release branch.
Do you think that's feasible? Let me know if I can help.
Thanks

Hi @asantos00 I am sorry for the inconveniences the API change has caused and I would like to help. Would it be good enough if I created a new branch with your desired changes and you could import djwt from this branch?

Hi,
Yes, I think creating a branch with the changes would already be a nice help!
Just out of curiosity, the changes were to make the API simpler and more modular, or were there any other technical challenges?
Asking this because I'm also thinking if I can help refactoring the oak middleware to support the newest changes.
Thanks!

Would you mind chatting in discord for a second?

Closed with https://github.com/timonson/djwt/pull/45

repo: timonson/djwt


text:
--diff broken when reading from standard input

The latest (develop) version (tested at 394738e2a21737c23fdc67be399691341ca422fa) of isort appears to have regressed the handling of --diff when reading from standard input (originally fixed by #384 in the 4.x series).
--diff support with stdin is important to allow editor integrations to use isort on modified files and unsaved buffers as otherwise the editor would need to duplicate isort's locating of configuration files.
$ cat demo.py
import os, sys, collections

$ isort --diff - < demo.py
Traceback (most recent call last):
  File "/home/peter/.virtualenvs/isort/bin/isort", line 11, in <module>
    load_entry_point('isort', 'console_scripts', 'isort')()
  File "/home/play/isort/isort/main.py", line 600, in main
    **arguments,
  File "/home/play/isort/isort/api.py", line 104, in sorted_imports
    config = _config(path=file_path, config=config, **config_kwargs)
  File "/home/play/isort/isort/api.py", line 47, in _config
    config = Config(**config_kwargs)
  File "/home/play/isort/isort/settings.py", line 300, in __init__
    super().__init__(sources=tuple(sources), **combined_config)  # type: ignore
TypeError: __init__() got an unexpected keyword argument 'show_diff'

Perhaps surprisingly --diff works fine when given actual filenames:
$ isort --diff demo.py
--- /tmp/isort-bug/demo.py:before	2020-05-05 22:00:57.723864
+++ /tmp/isort-bug/demo.py:after	2020-05-05 22:04:46.469076
@@ -1 +1,3 @@
-import os, sys, collections
+import os
+import sys
+import collections
Fixing /tmp/isort-bug/demo.py

this is what VSCode uses by default and breaks the "sort imports" feature if you upgrade to isort >= 5

https://github.com/timothycrosley/isort/releases/tag/5.1.1

This is fixed in the just released 5.1.1 version: https://github.com/timothycrosley/isort/releases/tag/5.1.1
Thanks for reporting!
~Timothy

authors: PeterJCLaw c4urself timothycrosley

repo: timothycrosley/isort


text:
Adds new wrap mode 10 - Hanging Indent, With Parentheses.

Adds a new wrap mode Hanging Indent, With Parentheses (10).
Fixes #941.

Codecov Report

Merging #1344 into develop will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##           develop     #1344   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           34        34
  Lines         2242      2264   +22
=========================================
+ Hits          2242      2264   +22

This is awesome, a big improvement already! Thank you!


text:
Fixing #81 - Force Makefile to use bash

We used PIPESTATUS which is bash only.

Closing this as the HDMI2USB-jahanzeb-firmware is no longer under development.
All active development is now on the HDMI2USB-misoc-firmware which supports both the Atlys and Opsis boards and has loads of other new features!


text:
question of the python version when compiling

should I compile it with python2.7 and then train/test with python3.6 ?
what about the version of torch when compile the code？

i compile and train in the same conda env
my torch version is 1.0

what is the python version when you compile, python 3.6 or python 2.7? @bigbigdinosaur

authors: CashewMIC bigbigdinosaur yustaub


text:
Repo-based media upload fails with alert "Failed to upload file"

Description
In production, repo-based image upload fails with the alert "Failed to upload file".
I can edit other content. Also, image upload does work locally.
Steps to reproduce

Create Next.js site on GitHub and configure Tina schema for repo-based based media:

const schema = {
  config: {
    media: {
      tina: {
        mediaRoot: 'uploads',
        publicFolder: 'public',
      },
    },
  },
  // ...
};

Sign in to TinaCloud
Go to the media manager
Attempt to upload a spider man picture
Retry using another browser and another image

Screen recording:
https://user-images.githubusercontent.com/463178/180323331-751ef367-532a-42ea-8aac-751246f8ac8e.mov
Expected result
Image is pushed to file path /public/uploads/ under the GitHub repo's main branch.
Actual result
An error alert is displayed. The console and network tabs don't show an error. However, the returned tinajs asset URL leads to a 404. (I didn't show this in the screen share)
Environment
Tinacms Package Versions

├── @tinacms/cli@0.60.28
├── tinacms@0.68.13

Tools

Tool
Version

browsers
Brave, Safari

os
macOS 12.4

node
16.15.1

yarn
1.22.19

I had the same problem.

Could you (or anyone who is seeing this same behaviour) link the image that's failing for you? I'm not able to reproduce.
Also, are you repo's main branch? There are some branching caveats to consider with repo-based-media that might be impacting things.

Could you (or anyone who is seeing this same behaviour) link the image that's failing for you? I'm not able to reproduce.

All images fail for me. For example, this panda jpeg:

Also, are you repo's main branch? There are some branching caveats to consider with repo-based-media that might be impacting things.

Yep, I'm on the main branch. I recently upload to tinacms@0.69.4 hoping that might resolve the issue, but it still fails.

@psirenny can you provide a screenshot of the network console (in chrome dev tools) and any errors in the console.log that occur at the same time as the upload failed error?

There aren't any console logs. The network tab looks like this:

Excluding the options/CORS requests, the first response returns:
{
  "id": "c961ccef-4dad-417c-b3b4-05215e2de9ee",
  "email": "dtorres@spear.ai",
  "verified": true,
  "enabled": true,
  "fullName": "Dennis Torres",
  "approveTOC": true,
  "intercomHash": ""
}

and the second response returns:
{
  "signedUrl": "https://s3.us-east-1.amazonaws.com/assets.tina.io/originals/6abd004b-3133-4b3f-858f-960f453c8188/panda.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIASBYJPE35VGSK5VEL%2F20220912%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220912T175430Z&X-Amz-Expires=3600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDScOiUR0PlQYQaLT2Y0dAM%2FhBAgpmjRd7H1qjKlPN2pAIhAMfMoNAFvHYfxF7cAAQdH%2F0bSy3l5uwsKc0h%2Bn9XUSNkKtwDCJP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMTQxMjE2OTE3MjQzIgwlYfR%2B7a9KmvANWDMqsAN8kJO7DFOZgta9KeyiRTqogMMvol4NYh1gaWfVfrBLqdbwkdR7bEc7Gr3ljvX9nB621gAdGUGPh4CR72jty6TndR0Dr8VcWjIvlwA%2F%2FA5fO3U75OoK2l3EFjruMG7px6qXViZwwdpEYPiNk%2BBC0eqL1jmGAV8l%2F60GUJRu5Hb2xyrQgNmV4z7KN7pKlsz5k3gspbDETvUmBpQDTJr%2F%2BOxCWYv4kd6Vu3XE87W0cCG6CVcsP2ZjMRFcslx%2BeYpNlBYhwZ%2B%2B1bqeaPcixHvedsTKuxkvmfu5dCiOzepEJK92uiJMVpnhrjQfm5vjMapkZvm%2FDUO8B0ZF5Yq2dHeFx6dipHgEl%2FKmCVsbRzBoQ0bFg1h9%2BPudU4%2Fr4A7zsCVAcXIn%2BmJLEYcSvZ4Zk8Euq50fOLHRPcuPBfufmQ6Aw49C%2Famhk712Arty59uQ06COmlIIdUjsx51PzoXGMHS94c6KZbE48nHA%2FdJNgnwH9mLeEGLTmJGvHlwLbp674RHn8N7kzwut1ljzB2EKkghVl92OjZ4Kfj0U6T%2FvmmYMuHpECWf2Rnt8RQ8ft3jVRQjfnHkwxOL9mAY6nQETJaSsCsIQ%2F1b3B7rBqJe31yR2ddJpz45FPmMtBJCMH0aytPv2iPxfpAxF0vkL%2BIzHMdGu2CmTj09QH%2BUhHNV%2B9vOaqdPb1mMviFKB1uCfLweMc%2FbZMCcQWfMqoMN78uxWuBG%2Fs22E%2FXsVL3Tv%2BYwkyEfP0Tq9HWheLB0QXOCYeUa%2Fh2mFZV8v2CXWzGE3p2FbG0c8DT%2B5Oj3wg2TA&X-Amz-Signature=74544a529b3a99c3bdfdc6d362da1aba87c2b538f70d0a6a3887b5d977727f41&X-Amz-SignedHeaders=host&x-id=PutObject"
}

I also attached a video of the problme in my original post.

There should be a PUT request in the network requests following the GET request to /upload_url/panda.jpeg like this:

Are you not seeing that?

Nope, I'm just seeing the requests in the screenshot.

Please install tinacms@0.0.0-20220913130535 in your project which adds some console debug logs around the media upload and retry an upload and share the browser dev console logs back here.

Sorry for the slow response. I'm going to deploy with that version shortly.

Have you ever created uploads directory inside public?

I'm dealing with a similar issue. Repo-based media upload is failing. We're using Next.js and these are the packages versions:
"next": "^12.0.4",
"@tinacms/cli": "1.5.29",
"@tinacms/core": "^0.43.0",
"tinacms": "1.5.20"

Locally it runs fine, but in preview enviroment @ vercel it goes like this:

Description of operation:

uploading the whole repo and letting it build. It goes with the image we´re using locally.
access admin on preview and delete that image so we can upload it again
failed operation

This was tried within main branch
Console returns error 400 for this operation.

There should be a PUT request in the network requests following the GET request to /upload_url/panda.jpeg like this:
There's no GET request
detailed:

just fetch:

tina/config.ts:
media: {
    tina: {
      publicFolder: "public",
      mediaRoot: "uploads",
    },
  },
  build: {
    publicFolder: "public", // The public asset folder for your framework
    outputFolder: "admin", // within the public folder
  },

And I've double checked that there IS a uploads file within public folder.
perhaps there's something wrong with the connection?

It seems that issue is with image assets that have names in all capital letters. Try renaming the asset from 'IMAGE.JPG' to 'image.jpg,' and this should resolve the problem.

repo: tinacms/tinacms


text:
[Clean] Removed await keyword where not required "The rewarder" test

Since attach here returns a Contract instance, not a promise, so, there is no need to use await.

Thanks, should be solved in v3 following your suggestion!

authors: sourabhxyz tinchoabbate

repo: tinchoabbate/damn-vulnerable-defi


text:
Support for protobuf or flatbuf in rest API request response

Describe the feature
A description of the feature
We are looking to use javalin for building micro services in our etl pipeline. We are using flatbuffer for inter service communication.
Can you share some examples/pointer as in what might be best way to do it.
Additional context
Add any other context about the feature request here
https://www.baeldung.com/spring-rest-api-with-protocol-buffers

@rajeshpachar I've never used protobuf, so here goes nothing!
On Google's product page, they show this example:
Person john = Person.newBuilder()
    .setId(1234)
    .setName("John Doe")
    .setEmail("jdoe@example.com")
    .build();
output = new FileOutputStream(args[0]);
john.writeTo(output);

You could do john.writeTo(ctx.res.outputStream), and write directly to the output-stream. Doing this circumvents the "normal" request lifecycle in Javalin, so you should probably do something like ctx.result(myStringifyMethod(obj)) instead.
In the linked article (which I just skimmed), they have this method:
private String convertProtobufMessageStreamToJsonString(InputStream protobufStream) throws IOException {
    JsonFormat jsonFormat = new JsonFormat();
    Course course = Course.parseFrom(protobufStream);
    return jsonFormat.printToString(course);
}

If you're using JSON as your message format, you can take advantage of the JavalinJson class. You can configure a toJsonMapper and a fromJsonMapper (using GSON as an example):
Gson gson = new GsonBuilder().create();
JavalinJson.setFromJsonMapper(gson::fromJson);
JavalinJson.setToJsonMapper(gson::toJson);

Once these mappers are configured you can use the Context to convert objects to/from JSON:
ctx.json(myObject) // convert protobuf object to json and set type to "application/json"
MyObject mo = ctx.bodyAsClass(MyObject.class) // convert json body to protobuf object

Let me know what you decide on. I've heard some buzz around protobuf, so it would be nice to have a tutorial for it.

this topic interests me as well (although I was looking for a bridge from backend to Web browser (and android retrofit) via javalin.
My summary understanding was:
a) binary protocols are not a great fit for REST-based services (because those are text)
And that means that in majority of the cases,  it would be somewhat 'easy' to send the binary data out of the service (basically would be similar to sending out jpeg file/etc).
But non-trivial to 'receive' the binary data. Because it would need to be received in 'multi-part' attachment fashion, and decoded like that (so not as natural as get a text based protocol data like JSON).
If Javalin has a way to receive binary data in a way that it 'mimics' how the 'body' is processed by handing post/put -- I think that would definitely simplify/improve things for some  binary protocol use cases (especially if they are used by a web browser client or a mobile client).
b) one of the driving reasons behind things like gRPC is to mimic a function invocation -- when a function is executed remote (eg like the old days CORBA).
So, if ones microservices are meant to leverage that style of component operation (it is not the case for my app), then typical REST-style model is also not a great fit (although may be Jetty expert would know better how this could be supported).

I'm closing this, but adding INFO to make it easier to find.

authors: rajeshpachar tipsy vladp

repo: tipsy/javalin


text:
Parallelize Multiple Saves

Conducting Saving across multiple viewer sessions parallelly is not possible now. Technically, current code would support saving more than one viewer in parallel but Progress bar and Stop Save wouldn't work as intended.

Created a new branch to work on it...


text:
Don't allow declarations with basic type names

The program bellow shouldn't be valid in Titan:
function integer()
end

This has been fixed, right?

Well spotted!
This is currently fixed in master and we also have test cases for it.

Sweet! :)

authors: gligneul hishamhm hugomg

repo: titan-lang/titan


text:
[Reivew] 리뷰 플레이스홀더 마진 값을 수정합니다.

PR 설명

리뷰 플레이스홀더 마진 값을 수정합니다. (관련스레드)

변경 내역

PlaceholderContainer 마진 탑 수정

스크린샷 & URL
AS-IS

TO-BE

release-canary

🙇🏾♂

repo: titicacadev/triple-frontend


text:
Support for arm64 architecture

Using docker to install this dependency. Error tells me it is not compatible with arm64. I am using M1 mac book pro. :-)

Until there is a fix I just manually downloaded the amd64 version and let it run under rosetta:
https://gobinaries.com/binary/github.com/tj/node-prune?os=darwin&arch=amd64&version=v1.2.0

authors: JenksyGuo mpvosseller

repo: tj/node-prune


text:
Change package name from "flutter_timezone" to "flutter_native_timezone"

My dependencies want to use flutter_native_timezone that not supported anymore.
For fix that it possible to use next trick:
dependency_overrides:
  flutter_native_timezone:
    git:
      url: https://github.com/tjarvstrand/flutter_timezone

but unfortunately it require same name as forked package
Resolving dependencies...
Error on line 1, column 7: "name" field doesn't match expected name "flutter_native_timezone".

Hi,
I'm not sure what you're asking me to do here? I'm not the owner of the flutter_native_timezone so I can't publish this package with that name.

authors: Akiyamka tjarvstrand


text:
Problem installing fsuipc

hi, i have a problem when executes the pip install fsuipc.
pip install fsuipc
Collecting fsuipc
  Using cached fsuipc-1.0.0.tar.gz (14 kB)
Building wheels for collected packages: fsuipc
  Building wheel for fsuipc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\carli\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\carli\\AppData\\Local\\Temp\\pip-install-01jrjmmp\\fsuipc\\setup.py'"'"'; __file__='"'"'C:\\Users\\carli\\AppData\\Local\\Temp\\pip-install-01jrjmmp\\fsuipc\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\carli\AppData\Local\Temp\pip-wheel-mlydoleg'
       cwd: C:\Users\carli\AppData\Local\Temp\pip-install-01jrjmmp\fsuipc\
  Complete output (24 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\fsuipc
  copying fsuipc\fsuipc.py -> build\lib.win-amd64-3.8\fsuipc
  copying fsuipc\prepared_data.py -> build\lib.win-amd64-3.8\fsuipc
  copying fsuipc\__init__.py -> build\lib.win-amd64-3.8\fsuipc
  package init file 'pyuipc-stubs\__init__.py' not found (or not a regular file)
  copying fsuipc\py.typed -> build\lib.win-amd64-3.8\fsuipc
  creating build\lib.win-amd64-3.8\pyuipc-stubs
  copying pyuipc-stubs\__init__.pyi -> build\lib.win-amd64-3.8\pyuipc-stubs
  running build_ext
  building 'pyuipc' extension
  creating build\temp.win-amd64-3.8
  creating build\temp.win-amd64-3.8\Release
  creating build\temp.win-amd64-3.8\Release\src
  creating build\temp.win-amd64-3.8\Release\src\UIPC_SDK_C
  creating build\temp.win-amd64-3.8\Release\src\UIPC_SDK_Python
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/UIPC_SDK_C -Ic:\users\carli\appdata\local\programs\python\python38\include -Ic:\users\carli\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/UIPC_SDK_C/IPCuser.c /Fobuild\temp.win-amd64-3.8\Release\src/UIPC_SDK_C/IPCuser.obj
  IPCuser.c
  src/UIPC_SDK_C/IPCuser.c(14): fatal error C1083: Cannot open include file: 'IPCuser.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for fsuipc
  Running setup.py clean for fsuipc
Failed to build fsuipc
Installing collected packages: fsuipc
    Running setup.py install for fsuipc ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\carli\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\carli\\AppData\\Local\\Temp\\pip-install-01jrjmmp\\fsuipc\\setup.py'"'"'; __file__='"'"'C:\\Users\\carli\\AppData\\Local\\Temp\\pip-install-01jrjmmp\\fsuipc\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\carli\AppData\Local\Temp\pip-record-vgpkoy2r\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\carli\appdata\local\programs\python\python38\Include\fsuipc'
         cwd: C:\Users\carli\AppData\Local\Temp\pip-install-01jrjmmp\fsuipc\
    Complete output (24 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\fsuipc
    copying fsuipc\fsuipc.py -> build\lib.win-amd64-3.8\fsuipc
    copying fsuipc\prepared_data.py -> build\lib.win-amd64-3.8\fsuipc
    copying fsuipc\__init__.py -> build\lib.win-amd64-3.8\fsuipc
    package init file 'pyuipc-stubs\__init__.py' not found (or not a regular file)
    copying fsuipc\py.typed -> build\lib.win-amd64-3.8\fsuipc
    creating build\lib.win-amd64-3.8\pyuipc-stubs
    copying pyuipc-stubs\__init__.pyi -> build\lib.win-amd64-3.8\pyuipc-stubs
    running build_ext
    building 'pyuipc' extension
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    creating build\temp.win-amd64-3.8\Release\src
    creating build\temp.win-amd64-3.8\Release\src\UIPC_SDK_C
    creating build\temp.win-amd64-3.8\Release\src\UIPC_SDK_Python
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/UIPC_SDK_C -Ic:\users\carli\appdata\local\programs\python\python38\include -Ic:\users\carli\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/UIPC_SDK_C/IPCuser.c /Fobuild\temp.win-amd64-3.8\Release\src/UIPC_SDK_C/IPCuser.obj
    IPCuser.c
    src/UIPC_SDK_C/IPCuser.c(14): fatal error C1083: Cannot open include file: 'IPCuser.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\carli\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\carli\\AppData\\Local\\Temp\\pip-install-01jrjmmp\\fsuipc\\setup.py'"'"'; __file__='"'"'C:\\Users\\carli\\AppData\\Local\\Temp\\pip-install-01jrjmmp\\fsuipc\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\carli\AppData\Local\Temp\pip-record-vgpkoy2r\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\carli\appdata\local\programs\python\python38\Include\fsuipc' Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'c:\users\carli\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.

Hi @carl0shd. It looks like you're trying to install using a 64-bit version of Python, which is currently not supported. Please use a 32-bit Python, for now.
I'm hoping to add 64-bit Python support in the future.

Hi @tjensen, I tried the 32-bit version and it works perfect, thank you very much.

repo: tjensen/fsuipc


text:
🛑 ci.tjo.space is down

In 0e0ddbe, ci.tjo.space (https://ci.tjo.space) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ci.tjo.space is back up in 2aea371.

repo: tjo-space/status


text:
🛑 yt.tjo.space is down

In 92568e1, yt.tjo.space (https://yt.tjo.space/feed/trending) was down:

HTTP code: 0
Response time: 0 ms

Resolved: yt.tjo.space is back up in e7056eb after 39 minutes.


text:
Spectrum Analyzer - Missing Features

Any plans to implement the possibility to change the spectrum range to something other than the default? For example explicitly state either the frequency range or ranges (in case you want to duplicate one in the spectrum, skip some or focus on only parts of it).
Another feature which would be nice is an event when one of the frequencies passes half of the height of the control. To elaborate on this, for example bass detection

public void adjustFrequency(int minFrequency, int maxFrequency)         {             _maximumFrequency=maxFrequency;             _minimumFrequency=minFrequency;             UpdateFrequencyMapping();         }
Thats just an example. It does the trick as long as you give it correct values, but its just adjusting one range, you cant set multiple ranges to track (i guess having multiple Spectrums next to each other with different settings does the trick)


text:
🛑 反代6（yooyi.tk） is down

In d51acee, 反代6（yooyi.tk） (https://pan.yooyi.tk/https://1.1.1.1/cdn-cgi/trace) was down:

HTTP code: 429
Response time: 259 ms

Resolved: 反代6（yooyi.tk） is back up in c9b8efe.

repo: tjsky/upptime


text:
Top navigation bar invisible

Hey there,
since a very long time, I'm facing this issue, where the navigation bar at the top is just invisible. You can still see the items, but only click them in the library. Everywhere else, they are just not interactible:

Any idea what could be causing this? I got the theme from the AUR.
Thanks!

makes sense, thanks. Just hoped to get an auto-updater going. I always forget about updates for these things that just hide away

repo: tkashkin/Adwaita-for-Steam


text:
Top bar broken after latest beta update

Can't either click on the icons so can't navigate to the library

More info:

I can confirm, with latest changes, it's fixed. Thanks a lot :D

Should be fixed in 799fdd7.
There are also changes in Downloads settings, this will require more work and will be fixed later.
Seems like Valve is preparing to roll out peer-to-peer downloads.

authors: KibaGasteiz alosarjos tkashkin


text:
Cannot find tokenizer.json in USPTO_500_MT model weights

Putting this issue here
#https://github.com/HelloJocelynLu/t5chem/issues/18

The issue here is that the code is looking for a tokenizer.json in the pre-trained file provided from the paper. However,tokenizer.json was introduced in this version to move away from the no longer maintained torchtext package.
The work-around I will write will first look for tokenizer.json in the pre-trained model file, otherwise, default to grabbing a copy from the repo.

#https://github.com/tkella47/t5chem/pull/5


text:
question about  test model on another dataset

Thanks to the author's code contribution, when I use the code, I found the following problems:

The model obtained after the code is run, only one test picture is saved, not all the pictures in the test directory;
This code is 12 categories, the value of num_classes is different in different places, 11, 12, 13, what does this mean? If I am modified to a second classification, how do I modify these values?
Using quene's batch data method, what is the model input node for model?
When the ckpt model is transferred to the pb model, it always goes wrong. The converted pb model is blank, but I have tried different output nodes;

5.The modified code 12 is classified into 2 categories, and the training precision with only one classification is high, and the other is close to 0;
6. When testing the model with the command, the following error occurs.
>python main.py --testing=./logs/model.ckpt-99 -log_dir=./logs/ --test_dir=./SegNet/myData_3/test.txt --batch_size=5 --save_image=True
.............................................
........................................
..........................................

ValueError: Cannot feed value of shape (1, 200, 200, 3, 1) for Tensor 'Placeholder_1:0', which has shape '(1, 200, 200, 1)'

I have modified the data format of placehold, the model can be trained, the data path is ok, but when this problem occurs, I don't understand what the problem is. Does anyone know what the problem is?

ValueError: Cannot feed value of shape (1, 200, 200, 4, 1) for Tensor 'Placeholder_1:0', which has shape '(1, 200, 200, 1)'

@cena001plus  I am new(2 months) too. But it is clear that your input image is not in the right size. I
I have no clues why your input has four dimensions(let's call it dimension.). What is the 4 in (1, 200, 200, 4, 1)?

I have same problem. Do you solve that error?


text:
Inference error. TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1075, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/workspace/generate.py", line 109, in evaluate
generation_output = model.generate(
File "/usr/local/lib/python3.10/dist-packages/peft/peft_model.py", line 581, in generate
outputs = self.base_model.generate(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/generation/utils.py", line 1500, in generate
return self.beam_search(
File "/usr/local/lib/python3.10/dist-packages/transformers/generation/utils.py", line 2759, in beam_search
outputs = self(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/models/llama/modeling_llama.py", line 765, in forward
outputs = self.model(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/models/llama/modeling_llama.py", line 614, in forward
layer_outputs = decoder_layer(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/models/llama/modeling_llama.py", line 309, in forward
hidden_states, self_attn_weights, present_key_value = self.self_attn(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/models/llama/modeling_llama.py", line 209, in forward
query_states = self.q_proj(hidden_states).view(bsz, q_len, self.num_heads, self.head_dim).transpose(1, 2)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 165, in new_forward
output = old_forward(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/peft/tuners/lora.py", line 522, in forward
result = super().forward(x)
File "/usr/local/lib/python3.10/dist-packages/bitsandbytes/nn/modules.py", line 242, in forward
out = bnb.matmul(x, self.weight, bias=self.bias, state=self.state)
File "/usr/local/lib/python3.10/dist-packages/bitsandbytes/autograd/_functions.py", line 488, in matmul
return MatMul8bitLt.apply(A, B, out, bias, state)
File "/usr/local/lib/python3.10/dist-packages/torch/autograd/function.py", line 506, in apply
return super().apply(*args, **kwargs)  # type: ignore[misc]
File "/usr/local/lib/python3.10/dist-packages/bitsandbytes/autograd/_functions.py", line 360, in forward
outliers = state.CB[:, state.idx.long()].clone()
TypeError: 'NoneType' object is not subscriptable
Try to do inference with generate.py this happen, Anyone? Any clue?

@zhouzhou0322  How did you solve this problem?

@zhouzhou0322 How did you solve this problem?

You need move the model onto one single card.
In generate.py
if device == "cuda":
model = LlamaForCausalLM.from_pretrained(
BASE_MODEL,
load_in_8bit=True,
torch_dtype=torch.float16,
device_map={'': 0},
)
model = PeftModel.from_pretrained(
model,
LORA_WEIGHTS,
torch_dtype=torch.float16,
device_map={'': 0}
)

repo: tloen/alpaca-lora


text:
No module named 'inky'

No process found using port 80!
starting PiInk frame webserver!
Traceback (most recent call last):
File "/home/admin/e-Paper/RaspberryPi_JetsonNano/python/examples/PiInk/src/webserver.py", line 9, in
from inky.auto import auto
ModuleNotFoundError: No module named 'inky'
Server don't start, refused connection.

What board are you running on?
Ensure you have I2C and SPI enabled with sudo raspi-config. You can also manually install the inky library with pip3 install inky[rpi,example-depends]
Let me know if that works!

Try and uninstall the inky package and then re run your install with that flag.
I've been meaning to fix the install script so it's more reliable and should hopefully get around to it soon! 😅
I presume you are using a pimironi inky impression board right?

I haven't tested it with one of those so I'm not sure it will work, but it looks like something with numpy is causing the issue. Here is an issue thread opened in the inky repo that seems to be having a similar scenario https://github.com/pimoroni/inky/issues/190

Finallly i propably installed all the python packages, but now...
No process found using port 80!
starting PiInk frame webserver!
usage: webserver.py [-h] [--simulate] --type
{what,phat,phatssd1608,impressions,7colour,whatssd1683,impressions73}
[--colour {red,black,yellow}]
webserver.py: error: the following arguments are required: --type/-t
/home/admin/PiInk
{'jpg', 'jpeg', 'webp', 'png'}
Failed to detect an Inky board. Trying --type/--colour arguments instead...

currently piink only supports Pimironi Inky Impressions

repo: tlstommy/PiInk


text:
add: -c, -n option

[ ] -c, --bytesオプションを追加する
[ ] -n, --linesオプションを追加する
※パターンマッチングについては勉強のために外部クレートを使わずに構築する

オプションが同時に指定されたらnを優先することとする。

エラー処理についてはこちらのコードが参考になる。
https://github.com/alopatindev/rust-experiments/blob/f8b55c5f2ede94bb52814e72a2e6a1fe30c6ffe6/src/bin/head.rs

repo: tm-hack/minihead