text:
Key bindding doesn't work as expected in Windows 11 with alacritty term.

Steps to reproduce

Open Alacritty
vim --clean
:nnoremap <C-h> <C-w><C-h>
:vsplit
Try to use  to jump to left buffer

Expected behaviour
Normally use <C-h>. I tested on Pop-OS with the same terminal, bash shell and reproduce step without any error. I opened an issue but they said nothing need to fix so I think maybe issue with vim.
Version of Vim
9.1.1677
Environment
OS: Windows 11
Shell: pwsh > 7.2
Logs and stack traces
No response

so does it work in a different terminal then? What about the gui?

so does it work in a different terminal then? What about the gui?

Everything is ok, the bug only in alacritty.

Hi @chrisbra any update with this thread?

You need to provide much more information. What version of alacritty? What is $TERM set to? what does vim say about :set term? what happens if you map <c-h> to something different? Does it instead work with the backspace key or the delete key? What does :verbose set nmap? show? Can you provide a logfile vim --clean --log logfile (please only provide the mapping and pressing the key once, otherwise it will be too verbose to see). In general, please provide as much information as possible to help debug this issue.

I have now just installed alacritty 0.12.3 and together with Vim 9.0.1951, I can successfully jump to the left window by pressing <c-h>, after :nnoremap <C-h> <C-w><C-h>
Note: it doesn't work by pressing the backspace key, I believe that is because Vim uses the win32 terminal and there the backspace key does not send <c-h>.

not reproducible


text:
The error message of vim.error is not complete.

If I run the command :py printfff, there will be an error message:
Traceback (most recent call last):
      File "<string>", line 1, in <module>
      NameError: name 'printfff' is not defined

I can get the root cause from the message.
But if I run the following commands:
:py import vim
:py vim.command("py printfff")

the error message is:
Error detected while processing :
Traceback (most recent call last):
      File "<string>", line 1, in <module>
      vim.error: Vim(python):Traceback (most recent call last):

I think this error messge is not complete, I can not get the root cause from the message.

Fixed by https://github.com/vim/vim/commit/7f3a28490abb7c495239fc438825e3d1aaafa76d.

source: gharchive/issue

authors: Yggdroot lacygoill

repo: vim/vim

license: Vim

license_type: permissive

license_source: github-api


text:
Ensure w_botline is valid in getwininfo()

This is needed to make sure we're not returning stale information to the
user.

I think it is better to put the test in test_bufwintabinfo.vim

source: gharchive/pull-request

authors: LemonBoy zeertzjq


text:
sound_playevent() and sound_playfile() did not return 0 on failure

Functions sound_playevent() and sound_playfile() are documented
as returning 0 on error, but that was not the case on Windows.
I don't have a Windows machine to verify so I will rely on CI.

I could not make sound_playevent() return 0 upon error on Windows after all all :-(
Since I do not have a Windows machine to check further, I stopped working on this PR.
But sound_playfile() does return 0 upon error on Windows, so I enabled tests for this at least on Windows.


text:
Remove check for classes in udf and change tests accordingly

as stated in the PR before the udfs now also work on locally defined classes - however the decoding of such classes (i.e. in collect) still won't work.
It should be checked if #40 is still relevant (also note that it would be better to use spark at least 3.4.1 - see change in README.md)

@vincenzobaz -> merge it? :-)


text:
Sort null last

Can i sort/orderBy datatable with null values? it seems like it is not possible but i might be missing something here

It was actually missing from the sort function.
This is fixed in v0.9.97
Thx for reporting it

repo: vincjo/datatables

license: MIT


text:
Add button render replacements via slots and list of button groups to be displayed

Hi, I've done some small updates to allow displaying only desired buttons, and a way to replace button render via slot ('action' and 'disabled' props are passed to parent component).
You can replace a button rendering with something like this:

        <Button type={ButtonType.Tertiary} on:click={clickAction} {disabled}>
          <Fa icon={faArrowRight} />
        </Button>

New showMenuElements prop:
  export let showMenuElements = [
    "navigation",
    "zoom",
    "print",
    "rotate",
    "download",
    "autoflip",
    "timeInfo",
    "pageInfo",
  ];

New button slots are prevButton, nextButton, zoomInButton, zoomOutButton, printButton, antiClockwiseRotateButton, clockwiseRotateButton, downloadButton, pageTurnButton.
Thank you!

Here is a more complete example:
<PdfViewer
      showBorder={false}
      showMenuElements={["navigation", "zoom", "download"]}
      url="file.pdf"
    >

        <Button type={ButtonType.Tertiary} on:click={clickAction} {disabled}>
          <Fa icon={faArrowLeft} />
        </Button>

        <Button type={ButtonType.Tertiary} on:click={clickAction} {disabled}>
          <Fa icon={faArrowRight} />
        </Button>

        <Button type={ButtonType.Tertiary} on:click={clickAction} {disabled}>
          <Fa icon={faMagnifyingGlassPlus} />
        </Button>

        <Button type={ButtonType.Tertiary} on:click={clickAction} {disabled}>
          <Fa icon={faMagnifyingGlassMinus} />
        </Button>

        <Button type={ButtonType.Tertiary} on:click={clickAction}>
          <Fa icon={faDownload} />
        </Button>

    </PdfViewer>

repo: vinodnimbalkar/svelte-pdf


text:
Unhappy on OSX 10.9.5

Downloaded Lighthouse.dmg, installed, ran, crashed with:
Crash at Fri, 16 Jan 2015 21:20:03 GMT
Lighthouse/21
java.util.MissingFormatArgumentException: Format specifier '%s'
	at java.util.Formatter.format(Formatter.java:2519)
	at java.util.Formatter.format(Formatter.java:2455)
	at java.lang.String.format(String.java:2927)
	at lighthouse.utils.GuiUtils.informationalAlert(GuiUtils.java:75)
	at lighthouse.Main$3.onPeerConnected(Main.java:437)
	at org.bitcoinj.core.PeerGroup$10.run(PeerGroup.java:1270)
	at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
	at com.sun.javafx.application.PlatformImpl$$Lambda$48/1550748714.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
	at com.sun.javafx.application.PlatformImpl$$Lambda$47/584634336.run(Unknown Source)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

04:20:01 13 Main.reached: [182ms / 0ms / 0ms] JFX initialised
04:20:01 13 UserPrefs.<init>: Could not load user prefs, using defaults.
04:20:02 13 PeerGroup.startAsync: Starting up with no attached block chain. Did you forget to pass one to the constructor?
04:20:02 21 PeerGroup$7.run: Starting ...
04:20:02 21 PeerGroup$5.go: Localhost peer detected, trying to use it instead of P2P discovery
04:20:02 13 Main.reached: [1085ms / 903ms / 903ms] Starting bitcoin init
04:20:02 24 WalletAppKit.startUp: Starting up with directory = /Users/gavin/Library/Application Support/Lighthouse/production
04:20:02 22 NioClientManager.handleKey: Successfully connected to /127.0.0.1:8333
04:20:02 22 Peer.connectionOpened: Announcing to /127.0.0.1:8333 as: /bitcoinj:0.13-SNAPSHOT/
04:20:02 22 Peer.processVersionMessage: Connected to 127.0.0.1: version=70002, subVer='/Satoshi:0.10.0/', services=0x1, time=2015-01-16 16:20:01, blocks=339250
04:20:02 22 PeerGroup.handleNewPeer: [127.0.0.1]:8333: New peer
04:20:02 22 PeerGroup.setDownloadPeer: Setting download peer: [127.0.0.1]:8333
04:20:03 24 MnemonicCode.toSeed: PBKDF2 took 257ms
04:20:03 24 KeyChainGroup.addAndActivateHDChain: Creating and activating a new HD chain: org.bitcoinj.wallet.DeterministicKeyChain@776fbc07
04:20:03 24 DeterministicKeyChain.maybeLookAhead: 1 keys needed for M/0H/0 = 1 issued + 0 lookahead size + 0 lookahead threshold - 0 num children
04:20:03 24 DeterministicKeyChain.maybeLookAhead: Took 1 msec
04:20:03 24 SPVBlockStore.<init>: Creating new SPV block chain file /Users/gavin/Library/Application Support/Lighthouse/production/Lighthouse.spvchain
04:20:03 24 CheckpointManager.readBinary: Read 165 checkpoints, hash is c1e72ea4ae3e909eb26ca508bd0df9ff7ab7265a7395aaa1c4251d553b11fbaf
04:20:03 24 AbstractBlockChain.<init>: chain head is at height 332640:
v2 block:
   previous block: 00000000000000001133acacb92e43e24af63a487923361a4a98c87a5550dffe
   merkle root: 05296ceac7348c8aaea29c271216806eacabc3bae4e1cc2179d0c24b7bc48a0d
   time: [1417563705] 2014-12-02T23:41:45Z
   difficulty target (nBits): 404454260
   nonce: 965066629

04:20:03 24 AbstractBlockChain.addWallet: Wallet/chain height mismatch: 0 vs 332640
04:20:03 24 AbstractBlockChain.addWallet: Hashes: null vs 000000000000000005050188c4b38ab58644e1b69aad22dcc99e819d1deb0bb5
04:20:03 26 DiskManager.loadAll: Updating all data from disk
04:20:03 24 Main.reached: [1458ms / 0ms / 0ms] onSetupCompleted
04:20:03 26 DiskManager.loadAll: ... disk data loaded
04:20:03 25 DeterministicKeyChain.maybeLookAhead: 133 keys needed for M/0H/0 = 1 issued + 100 lookahead size + 33 lookahead threshold - 1 num children
04:20:03 26 DirectoryWatcher.<init>: Starting directory watch service for [/Users/gavin/Library/Application Support/Lighthouse/production]
04:20:03 25 DeterministicKeyChain.maybeLookAhead: Took 82 msec
04:20:03 25 DeterministicKeyChain.maybeLookAhead: 133 keys needed for M/0H/1 = 0 issued + 100 lookahead size + 33 lookahead threshold - 0 num children
04:20:03 25 DeterministicKeyChain.maybeLookAhead: Took 58 msec
04:20:03 26 LighthouseBackend.lambda$new$6: Backend initialized ...
04:20:03 25 PeerGroup$7.run: Starting ...
04:20:03 25 PeerGroup$5.go: Localhost peer detected, trying to use it instead of P2P discovery
04:20:03 30 NioClientManager.handleKey: Successfully connected to /127.0.0.1:8333
04:20:03 30 Peer.connectionOpened: Announcing to /127.0.0.1:8333 as: /bitcoinj:0.13-SNAPSHOT/Lighthouse:21/
04:20:03 30 Peer.processVersionMessage: Connected to 127.0.0.1: version=70002, subVer='/Satoshi:0.10.0/', services=0x1, time=2015-01-16 16:20:02, blocks=339250
04:20:03 30 PeerGroup.handleNewPeer: [127.0.0.1]:8333: New peer
04:20:03 30 PeerGroup.setDownloadPeer: Setting download peer: [127.0.0.1]:8333
04:20:03 30 DownloadProgressTracker.startDownload: Downloading block chain of size 6610. This may take a while.
04:20:03 13 Main.waitForInit: Waiting for bitcoin load ...
04:20:03 13 Main.waitForInit: Waiting for backend init ...
04:20:03 13 LHUtils.stopwatched: Loading main.fxml: 566ms
04:20:03 13 Main.reached: [1666ms / 1484ms / 581ms] Showing main UI
04:20:03 30 TxConfidenceTable.seen: [127.0.0.1]:8333: Peer announced new transaction [1] c8d5ef326c74c48435186789cb8d34b3551244ec7331aadbd0acc89cdb175012
04:20:03 30 TxConfidenceTable.seen: [127.0.0.1]:8333: Peer announced new transaction [1] eb12b0f8d9702ecf849b4dd5078e655322a21b6c3aef64467bc7f7ee9ce4ecd2
04:20:03 30 DownloadProgressTracker.progress: Chain download 1% done with 6543 blocks to go, block date 2014-12-03T15:54:20Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 2% done with 6477 blocks to go, block date 2014-12-04T01:48:33Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 3% done with 6411 blocks to go, block date 2014-12-04T12:45:55Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 4% done with 6345 blocks to go, block date 2014-12-05T00:02:52Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 5% done with 6279 blocks to go, block date 2014-12-05T10:45:55Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 6% done with 6213 blocks to go, block date 2014-12-05T19:31:07Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 7% done with 6147 blocks to go, block date 2014-12-06T06:27:49Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 8% done with 6081 blocks to go, block date 2014-12-06T17:48:52Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 9% done with 6015 blocks to go, block date 2014-12-07T06:24:22Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 10% done with 5949 blocks to go, block date 2014-12-07T19:42:26Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 11% done with 5882 blocks to go, block date 2014-12-08T06:14:55Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 12% done with 5816 blocks to go, block date 2014-12-08T16:29:27Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 13% done with 5750 blocks to go, block date 2014-12-09T03:40:45Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 14% done with 5684 blocks to go, block date 2014-12-09T14:59:41Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 15% done with 5618 blocks to go, block date 2014-12-10T00:49:45Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 16% done with 5552 blocks to go, block date 2014-12-10T10:04:14Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 17% done with 5486 blocks to go, block date 2014-12-10T22:33:01Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 18% done with 5420 blocks to go, block date 2014-12-11T09:30:07Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 19% done with 5354 blocks to go, block date 2014-12-11T19:20:35Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 20% done with 5288 blocks to go, block date 2014-12-12T06:06:24Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 21% done with 5221 blocks to go, block date 2014-12-12T17:18:06Z
04:20:03 13 WalletFiles.saveNow: Saving wallet, last seen block is 334075/0000000000000000168cce97058e2ab102bfb202b378572bf3238a26e17782fb
04:20:03 32 Updater.downloadSignedIndex: Requesting https://www.vinumeris.com/lighthouse/updates/index
04:20:03 13 WalletFiles.saveNowInternal: Save completed in 14msec
04:20:03 30 DownloadProgressTracker.progress: Chain download 22% done with 5155 blocks to go, block date 2014-12-13T06:18:46Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 23% done with 5089 blocks to go, block date 2014-12-13T16:09:01Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 24% done with 5023 blocks to go, block date 2014-12-14T03:01:50Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 25% done with 4957 blocks to go, block date 2014-12-14T15:12:46Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 26% done with 4891 blocks to go, block date 2014-12-15T02:21:55Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 27% done with 4825 blocks to go, block date 2014-12-15T12:54:33Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 28% done with 4759 blocks to go, block date 2014-12-16T00:58:53Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 29% done with 4693 blocks to go, block date 2014-12-16T12:03:55Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 30% done with 4627 blocks to go, block date 2014-12-16T22:25:16Z
04:20:03 31 WalletFiles$1.call: Background saving wallet, last seen block is 334640/00000000000000000c789133d6a2ba9f11cb40fad59f3bec042189376fbfe933
04:20:03 31 WalletFiles.saveNowInternal: Save completed in 12msec
04:20:03 13 Main$3.onPeerConnected: Localhost peer does not have support for NODE_GETUTXOS, ignoring
04:20:03 30 DownloadProgressTracker.progress: Chain download 31% done with 4560 blocks to go, block date 2014-12-17T12:04:11Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 32% done with 4494 blocks to go, block date 2014-12-17T23:26:43Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 33% done with 4428 blocks to go, block date 2014-12-18T10:29:32Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 34% done with 4362 blocks to go, block date 2014-12-18T23:58:30Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 35% done with 4296 blocks to go, block date 2014-12-19T12:27:07Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 36% done with 4230 blocks to go, block date 2014-12-19T23:20:40Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 37% done with 4164 blocks to go, block date 2014-12-20T10:49:34Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 38% done with 4098 blocks to go, block date 2014-12-20T22:57:46Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 39% done with 4032 blocks to go, block date 2014-12-21T09:48:25Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 40% done with 3966 blocks to go, block date 2014-12-21T20:48:57Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 41% done with 3899 blocks to go, block date 2014-12-22T09:51:24Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 42% done with 3833 blocks to go, block date 2014-12-22T20:32:25Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 43% done with 3767 blocks to go, block date 2014-12-23T04:58:19Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 44% done with 3701 blocks to go, block date 2014-12-23T16:22:54Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 45% done with 3635 blocks to go, block date 2014-12-24T01:34:26Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 46% done with 3569 blocks to go, block date 2014-12-24T14:02:26Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 47% done with 3503 blocks to go, block date 2014-12-24T22:04:48Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 48% done with 3437 blocks to go, block date 2014-12-25T07:31:52Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 49% done with 3371 blocks to go, block date 2014-12-25T18:09:44Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 50% done with 3305 blocks to go, block date 2014-12-26T04:57:02Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 51% done with 3238 blocks to go, block date 2014-12-26T16:34:29Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 52% done with 3172 blocks to go, block date 2014-12-27T01:46:09Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 53% done with 3106 blocks to go, block date 2014-12-27T10:13:36Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 54% done with 3040 blocks to go, block date 2014-12-27T22:10:18Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 55% done with 2974 blocks to go, block date 2014-12-28T07:48:29Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 56% done with 2908 blocks to go, block date 2014-12-28T16:53:28Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 57% done with 2842 blocks to go, block date 2014-12-29T02:08:05Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 58% done with 2776 blocks to go, block date 2014-12-29T12:19:02Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 59% done with 2710 blocks to go, block date 2014-12-29T21:49:32Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 60% done with 2644 blocks to go, block date 2014-12-30T10:21:07Z
04:20:03 31 WalletFiles$1.call: Background saving wallet, last seen block is 336640/00000000000000000ea8e1488c87d5960bdd4a5b243a8a545abce50f5c4f9bba
04:20:03 31 WalletFiles.saveNowInternal: Save completed in 7msec
04:20:03 30 DownloadProgressTracker.progress: Chain download 61% done with 2577 blocks to go, block date 2014-12-30T18:53:30Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 62% done with 2511 blocks to go, block date 2014-12-31T03:13:59Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 63% done with 2445 blocks to go, block date 2014-12-31T15:21:26Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 64% done with 2379 blocks to go, block date 2015-01-01T00:38:57Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 65% done with 2313 blocks to go, block date 2015-01-01T11:10:04Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 66% done with 2247 blocks to go, block date 2015-01-01T20:16:49Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 67% done with 2181 blocks to go, block date 2015-01-02T05:57:39Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 68% done with 2115 blocks to go, block date 2015-01-02T16:10:42Z
04:20:03 30 DownloadProgressTracker.progress: Chain download 69% done with 2049 blocks to go, block date 2015-01-03T02:24:48Z

Are you running a local Bitcoin node? If so, could you shut it down and try again?

Yeah, this bug occurs when there's a local node that doesn't support getutxo. It crashes trying to display the error message. Looks like I changed the message without retesting, oops.

OK, I pushed an update that fixes this. If you shut down Core, start the app, let it update, then you should be able to start Core again and use the app. Thanks for the testing!

authors: gavinandresen mikehearn

repo: vinumeris/lighthouse

license_source: bigquery


text:
youtube token renewal

Youtube oauth token expires within an hour. It's possible to use a refresh token to get a new one, however it seems that you can't refresh the same token several times.
The solution to that is to save the updated token into the secret. PyGithub doesn't seem to support this, but it's a simple PUT request.

It's a bit hard to support before https://github.com/PyGithub/PyGithub/pull/1681 is merged.

repo: virtualscienceforum/automation


text:
Ticks 撮合頻率異常

問題描述
我看你的 readme，台積電是每5秒
實際上應該不是5秒吧?不可能每筆交易都間隔5秒
所以這應該是5秒 data?

README 的範例可能是設計之初採用 5 秒頻率消化事件造成
我會再測試一下現在的執行效果,
如果程式沒有問題, 會更新一下文件後結案

根據證交所公告資訊顯示
從 2014-12-29 日起，交易機制為 5 秒撮合一次，此問題為正常交易現象
參考資料：證交所 - 盤中全面逐筆交易專區

authors: linsamtw virus-warnning

repo: virus-warnning/skcom


text:
added a new section of draw text using cursor

#added a new section of draw the text
additionally i add the clearcanvas,colorpicker and download canvas btn.
i also make the draw canvas btn for mobile user friendly. they can touch and draw the text.

Please mention your issue no.

#50

repo: vishanurag/Canvas-Editor


text:
How to setup and use?

Hi, great and clean code here, but i am new to python, may i know how to set it up? i have currently installed python via homebrew, when i run printsvg.py , it prompt ImportError: No module named pqdict

Hello! I have a cameo 2 to which the lcd no longer works. is it possible to send commands to load and unload the cutting base? if it is possible, I no longer need to look for this display like crazy. thanks man.

authors: guilhermebrumatti rickchew

repo: vishnubob/silhouette

license: mit


text:
redirect 302 is crashed

Trace: { Error: Found
at Request.callback (/Users/runhwguo/project/test/nodejsWeb/node_modules/superagent/lib/node/index.js:675:11)
at IncomingMessage. (/Users/runhwguo/project/test/nodejsWeb/node_modules/superagent/lib/node/index.js:883:18)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
status: 302,
response:
Response {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
res:
IncomingMessage {
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 4,
it confuse me a lot!

This happens when there were too many redirects.

yeah，i get it，thank you

authors: pornel runhwguo

repo: visionmedia/superagent


text:
phonegap/cordova Fixes #733

Admittedly, this is a bit hacky, but it now works perfectly on Cordova/Phonegap.  I'm not totally happy about forcing it to json if the content-type is empty, but 99% of the time its going to be json so I didn't spend too long looking for a alternative solution.

The code is a bit hacky :/
Has this bug been reported to Cordova? Is that a problem they can't fix on their end?

authors: ccapndave pornel


text:
simplified interface to fix rendering artifacts when poyglons >> pixels

Forgetting for a moment the mapping of colors to magnitudes, it is the case that the solution should be symmetric about the edge at which those two front-facing faces meet, e.g., the temperatures at F and H are the same, as are those at G and I. This symmetry is represented nicely by the contour representation, and definitely not by the pseudocolor . . . MultiresControl only lets me change set resolution=0 or 1, and its doesnt make any difference in the PC plot. Attached are one of the original figures I sent you (from last Friday), and a figure I just generated. Note that the one from today is nice and symmetric about the field maximum; I generated it by applying ExternalSurface+SubdivideQuads to the PC. I am kind of wondering if you (i.e., the Visit team) can combine these into a high accuracy option in the PC plot attributes . . See attached example pictures
-----------------------REDMINE MIGRATION-----------------------
This ticket was migrated from Redmine. As such, not all
information was able to be captured in the transition. Below is
a complete record of the original redmine ticket.
Ticket number: 2885
Status: Pending
Project: VisIt
Tracker: Feature
Priority: High
Subject: simplified interface to fix rendering artifacts when poyglons >> pixels
Assigned to: -
Category: -
Target version: -
Author: Mark Miller
Start: 08/08/2017
Due date:
% Done: 0%
Estimated time:
Created: 08/08/2017 08:34 am
Updated: 09/12/2017 07:02 pm
Likelihood:
Severity:
Found in version: 2.12.3
Impact: 3 - Medium
Expected Use: 3 - Occasional
OS: All
Support Group: Any
Description:
Forgetting for a moment the mapping of colors to magnitudes, it is the case that the solution should be symmetric about the edge at which those two front-facing faces meet, e.g., the temperatures at F and H are the same, as are those at G and I. This symmetry is represented nicely by the contour representation, and definitely not by the pseudocolor . . . MultiresControl only lets me change set resolution=0 or 1, and its doesnt make any difference in the PC plot. Attached are one of the original figures I sent you (from last Friday), and a figure I just generated. Note that the one from today is nice and symmetric about the field maximum; I generated it by applying ExternalSurface+SubdivideQuads to the PC. I am kind of wondering if you (i.e., the Visit team) can combine these into a high accuracy option in the PC plot attributes . . See attached example pictures
Comments:

2884_polygons_bigger_than_pixels_example.zip
2884_polygons_bigger_than_pixels_example2.zip
2884_polygons_bigger_than_pixels_example3.zip

repo: visit-dav/visit


text:
OBJ Writer: Add ability to invert colors

Description
Addresses a bullet in #19033

Added the ability to invert the color table when saving a texture for OBJ exports.

Type of change

[ ] Bug fix
[x] New feature~~
[ ] Documentation update
[ ] Other

How Has This Been Tested?

Built and ran on rztopaz toss4. When I use the new invert option and open up in powerpoint, the colors are inverted, as desired.
Reminders:

Please follow the style guidelines of this project.
Please perform a self-review of your code before submitting a PR and asking others to review it.
Please assign reviewers (see VisIt's PR procedures for more information).

Checklist:

[x] I have commented my code where applicable.~~
[x] I have updated the release notes.~~
[ ] I have made corresponding changes to the documentation.
[ ] I have added debugging support to my changes.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have confirmed new and existing unit tests pass locally with my changes.
[ ] I have added new baselines for any new tests to the repo.
[ ] I have NOT made any changes to protocol or public interfaces in an RC branch.~~

It didn't occur to me to ask, but don't we have the ability to invert color tables in the color table manager? If so, why do we need to duplicate that functionality here?

It didn't occur to me to ask, but don't we have the ability to invert color tables in the color table manager? If so, why do we need to duplicate that functionality here?

We actually do not have the ability to invert color tables in the CT manager. Color table inversion lives inside of various plot attributes. Neither the color table attributes nor color control point lists know anything about color table inversion. There isn't a way to fetch whether or not a color table is inverted, so I decided to just add it as a user-controlled option here.
Also, already the approach with the OBJ Writer (and other writers) is to let the user specify which color table they want. This selection could be different from the currently in-use color table. So I think it makes sense to also query whether they want that color table inverted, since they might be making a different choice then whatever they are plotting.

merge w/ develop in #19102


text:
Bugfix/biagas/xolotl reader windows compile error

Description
Fixes Xolotl reader compile errrors on Windows.
Create arrays on heap instead of stack, since the size of the arrays cannot be determined at compile time and Visual Studio won't compile.
Type of change

[ ] Bug fix
[ ] New feature
[ ] New Documentation
[X] Other (please describe below)
Compile errors fix

How Has This Been Tested?
I ran the Xolotl reader tests on Windows and linux. They pass.
Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have updated the release notes
[ ] I have made corresponding changes to the documentation
[ ] I have added debugging support to my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[ ] I have added any new baselines to the repo
[ ] I have assigned reviewers (see VisIt's PR procedures for more information).

@jameskress would you take a look at my changes?


text:
Missing addNode and addEdge methods in public API

When wanting to add nodes or edges to the network, the only documented options I could find were to either

Re-create the graph by passing in all existing data + the new node/edge with setData({...}), or
Use the GUI and click around to add nodes

How can I add a node or edge without recreating re-setting all the data or using the GUI?
Would it be possible to expose the GUI methods for adding nodes and edges through the global API?

Was able to implement the desired functionality using the methods on the DataSet instances used to create the network graph.
const nodesDataSet = new DataSet(nodes);
const edgesDataSet = new DataSet(edges);
const data = {
  nodes: nodesDataSet,
  edges: edgesDataSet,
};
const network = new Network(container, data, options);

// later in the app

nodesDataSet.add({id: 'test-id-123', label: 'Test'})

After calling the add method, the node appeared on the graph as expected.
Docs for DataSet.
Will keep issue open b/c I still feel it's worth either exposing these methods in the global API for network, or at least amending the docs document how to achieve this.

Was able to implement the desired functionality using the methods on the DataSet instances used to create the network graph.
const nodesDataSet = new DataSet(nodes);
const edgesDataSet = new DataSet(edges);
const data = {
  nodes: nodesDataSet,
  edges: edgesDataSet,
};
const network = new Network(container, data, options);

// later in the app

nodesDataSet.add({id: 'test-id-123', label: 'Test'})

After calling the add method, the node appeared on the graph as expected.
Docs for DataSet.
Will keep issue open b/c I still feel it's worth either exposing these methods in the global API for network, or at least amending the docs document how to achieve this.

This is the correct way to do it. If you feel it should be clarified in the docs feel free to open a PR.
Exposing them on Network would be tricky because there are multiple methods and especially type safety would be nontrivial.

authors: Thomaash aryzing

repo: visjs/vis-network


text:
🛑 Vistaar Digital is down

In 1bc0f80, Vistaar Digital (https://www.vistaardigital.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Vistaar Digital is back up in 015ece8.

repo: vistaardigital/uptime


text:
🛑 SevaAtHome is down

In 21c4a8b, SevaAtHome (https://sevaathome.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SevaAtHome is back up in 08448d2.


text:
How to use prefix option with cleanupIDs

I cannot handle how to configure this loader with custom options for svggo.
The problem is that my SVGs are conflicting because all of they have the same ids (a, b, c, etc). I found a solution on svggo options:
{ cleanupIDs: { prefix: 'somerandomid' } }
But, I cannot figure out how to customize the webpack config for this option.
I've tried this
config.module.rules = config.module.rules.map(rule => {
  if (rule.loader === 'vue-svg-loader') {
    return {
      test: /\.svg$/,
      loader: 'vue-svg-loader',
      options: {
        svggo: {
          plugins: [
            { cleanupIDs: { prefix: 'somerandomid' } },
          ]
        }
      }
    }
  }

  return rule
})

and this
config.module.rules = config.module.rules.map(rule => {
  if (rule.loader === 'vue-svg-loader') {
    return {
      test: /\.svg$/,
      use: () => ({
        loader: 'vue-svg-loader',
        options: {
          plugins: [
            {
              cleanupIDs: { prefix: crypto.randomBytes(4).toString('hex') }
            },
          ],
        },
      }),
    }
  }

  return rule
})

But without success, am I doing something wrong?

Have you checked this section in FAQ?
https://vue-svg-loader.js.org/faq.html#how-to-prefix-id-attributes

@visualfanatic,
Thank you. That worked
// SVG Rules
config.module.rules = config.module.rules.map(rule => {
  if (rule.loader === 'vue-svg-loader') {
    return {
      test: /\.svg$/,
      loader: 'vue-svg-loader',
      options: {
        svgo: {
          plugins: [
            { prefixIds: true },
          ]
        }
      }
    }
  }

  return rule
})

authors: visualfanatic waghcwb

repo: visualfanatic/vue-svg-loader


text:
URLs for Regression tests

Just a place to drop the URLs of the graphs for the regression tests...

Hey veronique, friendly reminder to give us URLs of charts that you want screenshotted and tested automatically.

authors: ortnever ptbrowne

repo: visualize-admin/visualization-tool


text:
Visualize zeigt keine Datensätze an

Seit gestern Abend zeigt Visualize keine Datensätze an.
Kein datenauswahl.

It's a LINDAS issue. I get a "User does not have read permissions for the index" error.
Please report on https://control.vshn.net/
cc @PDumasBAR

authors: herrstucki ortnever


text:
Some issues in test with square and mixed scenario

Hello, me and my team are trying to analyze your works(both of crowdnav and social-nce) as term project.
While I run test.py I face two problems.
1st. In square scenario, there is too large decreasing of performance. WHY?

!python test.py --policy='sail' --square --model_file=data/output/imitate-event-data-0.50-weight-2.0-horizon-4-temperature-0.20-nboundary-0/policy_net.pth
(skip)
2021-12-05 08:55:59, INFO: TEST   success: 0.58, collision: 0.41, nav time: 10.43, reward: 0.1095 +- 0.2644
2021-12-05 08:55:59, INFO: Frequency of being in danger: 1.23

2nd. In mixed scenario, (I add argument in parser), error is occur
Traceback (most recent call last):

File "test.py", line 129, in
main()
File "test.py", line 126, in main
explorer.run_k_episodes(env.case_size[args.phase], args.phase, print_failure=False)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_nav/utils/explorer.py", line 60, in run_k_episodes
action = self.robot.act(ob)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_sim/envs/utils/robot.py", line 13, in act
action = self.policy.predict(state)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_nav/policy/sail.py", line 123, in predict
action = self.model(self.last_state[0], self.last_state[1])[0].squeeze()
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_nav/policy/sail.py", line 73, in forward
human_state = self.transform.transform_frame(crowd_obsv)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_nav/utils/transform.py", line 14, in transform_frame
state = torch.cat([frame, relative], axis=2)
RuntimeError: Sizes of tensors must match except in dimension 2. Expected size 1 but got size 5 for tensor number 1 in the list.

If you already have knew about those problem, please share the answers. Thank you for reading

Plus, I am trying to make video output but there is error

Traceback (most recent call last):
File "test.py", line 129, in
main()
File "test.py", line 108, in main
action = robot.act(ob)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_sim/envs/utils/robot.py", line 13, in act
action = self.policy.predict(state)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_nav/policy/sail.py", line 121, in predict
self.last_state = self.transform(state)
File "/content/drive/My Drive/ColabFiles/robotvision/social-nce/crowd_nav/policy/sail.py", line 133, in transform
num_human = len(state.human_states)
TypeError: object of type 'ObservableState' has no len()

Thanks for your interest.
Regarding your first question, if the model is trained only in circle scenarios, it can hardly generalize to the square right away.
Regarding the errors in mixed and video args, I actually did not use them in the social-nce project anymore. Some changes made in the code might cause the problem. Will fix them once I have more time.

authors: LynAlpha YuejiangLIU

repo: vita-epfl/social-nce


text:
Feature: Scenarios coverage report

The problem

We'd like to know which steps/scenarios are not implemented yet(There is only feature file without code execution)
rather than below error,
Missing steps found. Use snippets below: import { Fixture, Given, When, Then } from 'playwright-bdd/decorators'; // 1. Missing step definition for "features/todopage.feature:20:7" @When('I filter todos as {string}')
A solution

We turn it into Scenarios/Features coverage report like http://mkolisnyk.github.io/cucumber-reports/coverage-report

Good enhancement. Let me clarify some points:

So runner continues to fail, but instead of snippets output you want to get stats about unimplemented features/steps?
Is it enough to show stats as a table in the terminal output? Or some html report is needed like in coverage-report?
Is there similar coverage-report for CucumberJS, not for JUnit? I've checked built-in formatters, but there is only usage report - that is opposite: shows steps not used in any feature. Btw maybe it makes sense to combine both in one report?

Linking with #9

Exactly.
Yes, should be enough.
Yes, it does.
Thank you for your kind support, appreciate it.

authors: konkakaka vitalets

repo: vitalets/playwright-bdd


text:
PWA must add theme-color meta tag

So I have deployed a site developed using Nuxt 3 on Netlify, and I have Lighthouse installed as plugin.
The below image is from Netlify lighthouse

Version
"@vite-pwa/nuxt": "^0.1.1",

The below is my configuration
pwa: {
    registerType: "autoUpdate",
    manifest: {
      name: "Nuxt Nova",
      short_name: "NuxtNova",
      display: "standalone",
      theme_color: "#212529",
      background_color: "#212529",
      orientation: "portrait-primary",
      description: "Nuxt Nova Blog Template",
      icons: siteLogoIcons,
    },
    workbox: {
      navigateFallback: "/",
      globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
    },
    client: {
      installPrompt: true,
      // you don't need to include this: only for testing purposes
      // if enabling periodic sync for update use 1 hour or so (periodicSyncForUpdates: 3600)
      periodicSyncForUpdates: 20,
    },
    // devOptions: {
    //   enabled: true,
    //   suppressWarnings: true,
    //   navigateFallbackAllowlist: [/^\/$/],
    //   type: "module",
    // },
  },

Since I have already added theme_color to the configuration, I think it would be redundant to manually add a theme-color meta tag separately.
This should be a part of VitePwaManifest
Another suggestion is to move VitePwaManifest code to a plugin so that it's automatically added to all pages.

@modbender sorry, but this plugin will not include any metadata to the page, that's something you can do once. For web manifest icons you can use https://github.com/vite-pwa/assets-generator

Alright, I'll try to add the support and maybe open a PR, it's rather simple actually so.

@modbender there is no need, I'm working to integrate the PWA assets generator api in pwa plugin https://github.com/vite-pwa/vite-plugin-pwa/pull/621 , integrations support will also coming soon

authors: modbender userquin

repo: vite-pwa/nuxt


text:
fix: do not overwrite asset url when it starts with double slash

Fix https://github.com/vitejs/vite/issues/2114

It also affect for build. Can you update your code to fix it?

It also affect for build. Can you update your code to fix it?

Seems Vite will check this file is exist in public dir or not, so it doesn't affect for build, it also works as expect in my manual test.
https://github.com/vitejs/vite/blob/52f7370e728dfee283502fffe3f4facc98d3fc2d/packages/vite/src/node/plugins/html.ts#L170

authors: CHOYSEN underfin

repo: vitejs/vite


text:
Getting this.coverageProvider?.generateCoverage is not a function with Vitest 2.0

Describe the bug
I updated vitest from 1.3.1 to 2.0.5 and @vitest/coverage-v8 from 1.3.1 to 1.6.0. Now when I run tests, the tests are passing, but whenever I'm running with the --coverage flag I get the following error:
TypeError: this.coverageProvider?.generateCoverage is not a function
 ❯ node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14947:53
 ❯ Vitest.runFiles node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14955:12
 ❯ Vitest.start node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14804:7
 ❯ startVitest node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:15893:7
 ❯ start node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1499:17
 ❯ CAC.run node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1479:3

This is my vitest.config.ts:
/// <reference types="vitest" />
import { defineConfig } from "vite";
import wasm from "vite-plugin-wasm";

export default defineConfig({
  plugins: [wasm()],
  test: {
    server: {
      deps: {
        inline: [],
      },
    },
    environment: "jsdom",
    coverage: {
      exclude: [
        "dist-package/",
        "src/__generated__/",
        "src/localDev.tsx",
        "src/_tests/",
      ],
      reporter: ["text", "cobertura", "html"],
    },
  },
});

Reproduction
Run vitest run --coverage with @vitest/coverage-v8 installed.
System Info
System:
    OS: macOS 14.6
    CPU: (8) arm64 Apple M1
    Memory: 248.81 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.7.0 - ~/.nvm/versions/node/v20.7.0/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v20.7.0/bin/npm
  Browsers:
    Chrome: 127.0.6533.119
    Edge: 127.0.2651.98
    Safari: 17.6
  npmPackages:
    @vitejs/plugin-react: ^4.0.0 => 4.3.1
    @vitest/coverage-v8: ^1.6.0 => 1.6.0
    vite: ^5.1.7 => 5.2.13
    vitest: ^2.0.5 => 2.0.5

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I updated vitest from 1.3.1 to 2.0.5 and @vitest/coverage-v8 from 1.3.1 to 1.6.0

Update your vitest and @vitest/coverage-* packages to same version.

In future we'll print helpful warning in these cases: https://github.com/vitest-dev/vitest/pull/6317

authors: AriPerkkio bildungsroman

repo: vitest-dev/vitest


text:
Bug "NaN%, 2 skipped"

Describe the bug
When not exists test, the status on bottom bar print a NaN%

To Reproduce
Steps to reproduce the behavior on the example project:

Create a basic suite test.

describe('test', () => {
  it('should be pass', () => {
    expect(true).toBeTruthy()
  })
})

Run only this suite

describe.only('test', () => {
  it('should be pass', () => {
    expect(true).toBeTruthy()
  })
})

Now, skip the test

describe.only('test', () => {
  it.skip('should be pass', () => {
    expect(true).toBeTruthy()
  })
})

See error

Expected behavior
I believe that in this case, it would be interesting to show something as: "0%, 2 skipped"

OS: Manjaro Linux
VSCode version: 1.76.2
Vitest version: ^0.30.1
Vitest plugin version: v0.2.39

I fix this issues :)

repo: vitest-dev/vscode


text:
SSH fails silently during machine status check

With the new Crystal version for some reason creating a cluster is stuck forever. I rebuilt the project locally with some extra logging and it seems to be stuck in a SSH2::SessionError: 'ERR -19: Callback returned error' loop.
If I load the priv key into an agent and do session.login_with_agent("root") instead of priv+pub key in ssh.cr then hetzner-k3s succeeds.

Hi, do you use a key with passphrase?

Hi, I released v1.0.2 that allows you to use an SSH agent by setting use_ssh_agent to true. Do you mind checking if this solves the problem with your key? Thanks

Hi, I released v1.0.2 that allows you to use an SSH agent by setting use_ssh_agent to true. Do you mind checking if this solves the problem with your key? Thanks

you're right, I did use a passphrase! I guess the Ruby version fell back to agent automatically, use_ssh_agent: true fixed this for me, thanks!

Awesome, thanks for confirming!

authors: madisp vitobotta


text:
Can't update Cask via cask-repair anymore

I recently updated two times a black-screen Cask, but "something wrong" happens and now on every package I tried, my console output looks like this:
➜  Casks git:(master) cask-repair --pull origin --push Igloczek black-screen
----------------------------------------------------------------------------------------------
cask 'black-screen' do
  version '0.2.43'
  sha256 'fd3a153bbc8d0f43d4da42ef8d9674ab574b88cf1740a7030ace30e2e9ef04c1'

  url "https://github.com/shockone/black-screen/releases/download/v#{version}/black-screen-#{version}-mac.zip"
  appcast 'https://github.com/shockone/black-screen/releases.atom',
          checkpoint: '4a419b8c71863c1782ebd6fc6c8b14cdc7986a13247392d4d600f575a7778c14'
  name 'Black Screen'
  homepage 'https://github.com/shockone/black-screen'
  license :mit

  app 'Black Screen.app'
end
----------------------------------------------------------------------------------------------
Type the new version (or leave blank to use the current one)
> 0.2.48
==> Downloading external files for Cask ./black-screen.rb
==> Downloading https://github.com/shockone/black-screen/releases/download/v0.2.48/black-scree
######################################################################## 100,0%
==> No checksum defined for Cask black-screen, skipping verification
==> Success! Downloaded to -> /Users/igloczek/Library/Caches/Homebrew/Cask/black-screen--0.2.4
diff --git a/Casks/black-screen.rb b/Casks/black-screen.rb
index 3bda2aa..eb786c3 100644
--- a/Casks/black-screen.rb
+++ b/Casks/black-screen.rb
@@ -1,10 +1,10 @@
 cask 'black-screen' do
-  version '0.2.43'
-  sha256 'fd3a153bbc8d0f43d4da42ef8d9674ab574b88cf1740a7030ace30e2e9ef04c1'
+  version '0.2.48'
+  sha256 '38f5c7c252e14874d4c7d5202774e108c6b6519fbed00f0c719d3a6438a66a8f'

   url "https://github.com/shockone/black-screen/releases/download/v#{version}/black-screen-#{version}-mac.zip"
   appcast 'https://github.com/shockone/black-screen/releases.atom',
-          checkpoint: '4a419b8c71863c1782ebd6fc6c8b14cdc7986a13247392d4d600f575a7778c14'
+          checkpoint: '8a7cd91f6e9f869c06663e31e22e65770b2f2efa1860b53f377274d4f650acc9'
   name 'Black Screen'
   homepage 'https://github.com/shockone/black-screen'
   license :mit
------------------------------------------------------------------------------------------------------------------
•
------------------------------------------------------------------------------------------------------------------
Is everything correct? You can also make further manual edits (y/n/e) y
diff --git a/Casks/black-screen.rb b/Casks/black-screen.rb
index 3bda2aa..eb786c3 100644
--- a/Casks/black-screen.rb
+++ b/Casks/black-screen.rb
@@ -1,10 +1,10 @@
 cask 'black-screen' do
-  version '0.2.43'
-  sha256 'fd3a153bbc8d0f43d4da42ef8d9674ab574b88cf1740a7030ace30e2e9ef04c1'
+  version '0.2.48'
+  sha256 '38f5c7c252e14874d4c7d5202774e108c6b6519fbed00f0c719d3a6438a66a8f'

   url "https://github.com/shockone/black-screen/releases/download/v#{version}/black-screen-#{version}-mac.zip"
   appcast 'https://github.com/shockone/black-screen/releases.atom',
-          checkpoint: '4a419b8c71863c1782ebd6fc6c8b14cdc7986a13247392d4d600f575a7778c14'
+          checkpoint: '8a7cd91f6e9f869c06663e31e22e65770b2f2efa1860b53f377274d4f650acc9'
   name 'Black Screen'
   homepage 'https://github.com/shockone/black-screen'
   license :mit
-------------------------------------------------------------------------------------------------------------------
•
•
-------------------------------------------------------------------------------------------------------------------
Is everything correct? You can also make further manual edits (y/n/e)

It looks like one of this commands fails silently:

$(brew cask style --fix "${cask_file}" 2>/dev/null)
$(brew cask audit "${cask_file}" 2>/dev/null)

Every time I press y I got a new • bellow diff (it's red), instead of some error msg.
Any idea what might happened or how to debug this?

Remove the 2>/dev/null part from those lines in the script itself, and tell me what happens.
Also, try to run those commands in other casks (without the script).

For every package I get same errors:
dyld: lazy symbol binding failed: Symbol not found: _rb_str_new_static
  Referenced from: /Users/igloczek/.rvm/gems/ruby-2.2.1/gems/json-1.8.3/lib/json/ext/parser.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_str_new_static
  Referenced from: /Users/igloczek/.rvm/gems/ruby-2.2.1/gems/json-1.8.3/lib/json/ext/parser.bundle
  Expected in: flat namespace

Error: style check failed

That’s not a problem with cask-repair, but with the style command in your setup. Probably related to https://github.com/caskroom/homebrew-cask/issues/24725. Please open a new issue following this template and commands (run a command with style, not cask-repair.
I’ll then group yours and the other, to see if we can get to the bottom of it.

authors: Igloczek vitorgalvao

repo: vitorgalvao/tiny-scripts

license: Unlicense


text:
Cannot set PRAGMA foreign_keys = OFF on migration

As SQLite has some limitations on ALTER TABLE , we usually have to DROP an existing table and create a new one to achieve a simple migration on a table.
Here is the orientations on the oficial docs: http://www.sqlite.org/faq.html:
The basic Steps:
1. CREATE TEMPORARY TABLE t1_backup(a,b);
2. INSERT INTO t1_backup SELECT a,b FROM t1;
3. DROP TABLE t1;
4. CREATE TABLE t1(a,b);
5. INSERT INTO t1 SELECT a,b FROM t1_backup;
6. DROP TABLE t1_backup;

So in my migration script I have tried to do it as described bellow:
  await database.execute("PRAGMA foreign_keys = OFF");
  await database.execute("CREATE TABLE IF NOT EXISTS  temp_table AS SELECT * FROM customer");
  await database.execute("DROP TABLE IF EXISTS customer");
  await database.execute("PRAGMA foreign_keys = ON");

But in fact the first query in my script is not been executed, consequently  throwing an error when the DROP table is called. (787) SQLITE_CONSTRAINT_FOREIGNKEY. It's because my customer table has some references that i need to ignore when I am dropping it
If I manually change the script in auto generated by build_runner database.g.dart   setting the PRAGMA foreign_keys = OFF the migration works fine, but i cannot set PRAGMA foreign_keys = ON after migration.
 Future<sqflite.Database> open(String path, List<Migration> migrations,
      onConfigure: (database) async {
        await database.execute('PRAGMA foreign_keys = OFF');
      },

So the issue is: how can I set PRAGMA foreign_keys OFF AND ON in the migration script?

Hm. I think this stems from the issue that all migration steps are run within a transaction (to be able to roll them back if something fails) and changing this setting is silently ignored within transactions (see https://www.sqlite.org/foreignkeys.html#fk_enable).
I'm not sure how to change this. We could provide an optional parameter which disables the foreign keys for migrations and switches back afterwards, regardless of migration success (seems to be useful imho).
PS: Maybe unrelated, but I'm interested: what are the limitations you're running into with ALTER TABLE?

I was slightly mistaken. The reason for the issue is right, but the transaction is opened within sqflite and not in floor, so we can not fix this in floor.

Thks @mqus .
Look: https://www.sqlite.org/lang_altertable.html

SQLite supports a limited subset of ALTER TABLE. The ALTER TABLE command in SQLite allows the user to rename a table or to add a new column to an existing table. It is not possible to rename a column, remove a column, or add or remove constraints from a table.

Altering a table structure is very limited in SQLite. The official documentation recommend the steps above in my post.

I'm not sure how to change this. We could provide an optional parameter which disables the foreign keys for migrations and switches back afterwards, regardless of migration success (seems to be useful imho).
That would be awesome. If you could give me a clue, may I can try to help on it. Once the official docs suggest set PRAGMA foreign_keys = OFF on migrations with FK restrictions It will become a important feature.

It is not possible to rename a column, remove a column, or add or remove constraints from a table.

Where do you read this? The page you linked exactly lines out that you can add, remove and rename columns. Is this somthing that changed with past sqlite versions?

The only schema altering commands directly supported by SQLite are the "rename table", "rename column", "add column", "drop column" commands shown above

But I get that editing columns involved in constraints (like primary keys, foreign keys, unique columns etc) is not possible.

In the last versions of SQLite they are improving the procedures for altering tables, however we always have users with older versions of android and consequently SQLite ( KitKat and Jelly Bean have SQLite 3.7.4)
We aren't be able to migrate a drop column in older SQLite versions, also we cannot be able to change a FK or index in current SQLite version. The only security change on a table is add an ordinary column. That limitations of SQLite makes the migration very tricky.
I think there are 2 options:
1: Disable the transaction on migration.
2: Create a method to set PRAGMA foreign_keys = OFF
Otherwise the migration process will be very imitated.

Yes I understand the need.
Your option for a workaround (2.) would be to do the migrations manually by creating @Querys with your actions and manually determining which migrations to run and making sure that it runs before anything else. This is a pain in the ass, yes,  but the only option for now.
as for 1.: This is only possible if floor does not use the onUpgrade hook of sqflite. I have no clue if this is possible or feasible and how to achieve this, since I haven't looked at it.

https://github.com/tekartik/sqflite/issues/624 and https://github.com/tekartik/sqflite/issues/297 have suggestions for solutions useable by floor, all not perfect.

Ok, I have understood your suggestion  workaround (2.).
Tomorrow I'll make a try. I have another idea that consists in create 3 migration scripts instead one:
1st: foreign_keys = OFF,
2nd: make the migration;
3rd: set foreign_keys= ON.
May it work without plain @Query's. I will share my tests on this tomorrow. Thks for the great help today @mqus !

it will not work with 1, 2, 3, or even thousand migrations scripts because each and every one is executed within the same callback which only is executed within the transaction provided by sqflite (see https://github.com/vitusortner/floor/blob/develop/example/lib/database.g.dart#L76).
I noticed that you could try another workaround like described in the sqflite issues:
Edit the generated sources (if that makes sense in your workflow) and disable the foreignkeys in onConfigure and enable them in onOpen, as they are executed before and after the onUpdate step, respectively and get whole database access.

We could improve the workaround by also adding onConfigure to the callbacks you can provide to floor.

Yeap, your suggestion to add onConfigure is much better!
Look: https://github.com/tekartik/sqflite/issues/297#issuecomment-548607348

Maybe you could turn foreign keys off in onConfigure and turn it on later in onOpen (this is called after the transaction is closed)

@mqus  I have tested your commit. However the current floor version  is now depending on flutter above 2.x . Do you have plans to deliver your commit on older floor 0.1X ?

I don't think that we will release another 0.x update, we don't even have a branch for that. But I'm not managing the releases here ;)

You should be able to set it back to ON in the onOpen Callback. I added an example in the mentioned PR:
https://github.com/vitusortner/floor/blob/bc1f945d086fc59f250d996d8c67e5e20ba73e1b/floor/test/integration/database_test.dart#L377-L386

the callback order is roughly:
you call database.open() -> onConfigure -> (onCreate OR onUpgrade OR onDowngrade) -> onOpen ->you get your database instance.
in onCreate, the generated schema is applied beforehand by floor.
in onUpgrade, the migrations are applied beforehand by floor.

@mqus  I appreciated so much your help! About 0.1.x version today I have made my tests merging your code into 0.1.x. It's not easy to run it on older versions, a tons of older dependencies needed to match with flutter up2.x.  Better update my project to 2x... it's a painful job unfortunately
About the next release of floor do you have an idea when that commit will enter in production?

@mqus Do you know if there is a branch of floor related to published 0.19.1 (pub.dev)?

I have done merge of your branch onconfigure-callback on floor 0.19.1. and finally I get this to work including
I think it could be good to have a branch with this feature in previews version of floor compatible with

I have done merge of your branch onconfigure-callback with floor 0.19.1. and finally I get this to work including floor_generator.
I think it could be nice to have a branch with this feature in previews version of floor compatible with flutter 1.2.x.  If you agree I will make a PR

authors: cassioseffrin mqus

repo: vitusortner/floor


text:
Разработать и продумать базовый интерфейс мобильного приложения

В рамках задачи нужно

разработать концептуальный дизайн интерфейса,
детализировать дизайн для соответствия определенным пользовательским сценариям (Use-case'ам),

Текущий концепт: базовый, упрощенный вариант и расширенный, усложненный

Пожалуй проще всего делать в Material You. Для него вроде бы есть готовые компоненты в Jetpack Compose.
В Figma тем более имеются готовые библиотеки компонентов:

https://www.figma.com/community/file/1035203688168086460
https://www.figma.com/community/file/1237551184114564748

Основная проблема с ними — затащить в свой макет

repo: vityaman-edu/nexo-hub


text:
In Step-1 I got black screen

The article is great but I got black sreen in Step-1. Why? I Use Nexus_6_API_25 emulator and compileSdkVersion 25,    buildToolsVersion "25.0.3"

Does your emulator has camera support? And did you enable camera permission from settings? The sample code doesn't handle the run-time permissions needed for Android M and above.

i think @zengchuan need add runtime permission in your code


text:
Xsnow

https://news.ycombinator.com/item?id=29484022

what's this?

https://en.wikipedia.org/wiki/Xsnow (it gives the appearance of snow falling on the desktop)


text:
RFC: Register blocks dynamically

Description
As of now, blocks are registered for the block meta upon creating a block using createBlock. This lead to problems when a block in the library wasn't used and shared the same name with a block in the application code (e.g., Space).
In this PR, I've moved the registerBlock calls to where the block is actually used (RootBlockType, createBlocksBlock, etc.). This solution isn't perfect since the surrounding factory still could be unused. However, this should be detected by Knip.
Example

[x] I have verified if my change requires an example

Changeset

[ ] I have verified if my change requires a changeset

Open TODOs/questions

[ ] Decide if this should target main or next

:+1:
however shouldn't that be in RootBlockType only?

however shouldn't that be in RootBlockType only?

That wouldn't be sufficient. For example, the child blocks of the page content block are rarely root blocks on their own.
I could change the approach to add a register method to Block that then dynamically registers the blocks during runtime. This would also solve the following

This solution isn't perfect since the surrounding factory still could be unused. However, this should be detected by https://github.com/vivid-planet/comet/pull/2835.
What do you think?

Problem with the implementation in this PR:
Take the following example: you have a CompositeBlock that has a child block say "ABlock". When creating the Composite Block it calls registerBlock for ABlock. When you do NOT register the Composite Block, ABlock still is registered.

Take the following example: you have a CompositeBlock that has a child block say "ABlock". When creating the Composite Block it calls registerBlock for ABlock. When you do NOT register the Composite Block, ABlock still is registered.

That's what I meant with

This solution isn't perfect since the surrounding factory still could be unused.

I tried changing this to a runtime register() function here: 5503a9797aad7b4ae18b91f40b9debfc61ba36f0. I'm not sure if this fixes the problem. In my limited testing, a child block was unregistered once I removed the parent.

authors: johnnyomair nsams

repo: vivid-planet/comet


text:
Implement 360 Microsite

Atomic prototype for desktop behaviour
https://app.atomic.io/d/8DAbhLLuacLK
Sketch file name (Sketch 3.5.1)
360_Microsite_160128_s

duplicate of #1073

authors: gmarinov mattatgit

repo: vizorvr/vizor


text:
Change example page title

Change it to ipyvizzu examples
https://vizzuhq.github.io/ipyvizzu/examples/examples.html

It's still just "examples" and not "ipyvizzu examples"

Fixed #143

authors: petervidos veghdev

repo: vizzuhq/ipyvizzu


text:
mqtt output with installation method 2

I just have a question regarding the second installation method: when I proceed with the first installation method (as a HA add on), the resulting mqtt topic is like the one given in your example:
{
    "eid": XXXXXXXXXX,
    "timestamp": 1689409016,
    "actEnergyDlvd": 0.063,
    "actEnergyRcvd": 7939.998,
    "apparentEnergy": 63680.783,
    "reactEnergyLagg": 788.493,
    …………..

But when I proceed with the second method, the resulting mqtt topic looks like this:
{
"connection": {
"mqtt_state": "connected",
"prov_state": "configured",
"auth_state": "ok",
"sc_stream": "enabled",
"sc_debug": "disabled"
},
"meters": {
"last_update": 1730655384,
"soc": 0,
"main_relay_state": 1,
"gen_relay_state": 5,
"backup_bat_mode": 1,
"backup_soc": 0,
"is_split_phase": 0,
"phase_count": 1,
"enc_agg_soc": 0,
"enc_agg_energy": 0,
"acb_agg_soc": 0,
"acb_agg_energy": 0,
"pv": {
"agg_p_mw": -5414,
"agg_s_mva": -270677,
"agg_p_ph_a_mw": -5414,
……………
Same enphase envoy system, same parameters for the configuration of your script but two different outputs published.
Did I miss something during the install or the configuration of the script?
Thx for your help.

I think I found how to fix the issue, in the options.json file, I changed the line:
"BATTERY_INSTALLED": "False"
by
"BATTERY_INSTALLED": false

Interesting - on my Linux Mint system I needed to use "BATTERY_INSTALLED": "False"
On your system, did you also have to change the other options such as this  "ENVOY_HOST": "envoy.local",

I’m using a RPI with Raspberry Pi OS, and no, only boolean options have to be changed…
Well, it’s working now as expected, thx for your answer.


text:
Vizio Elevate sound bar volume control issue

Recently added an Elevate sound bar to HA using Discovery and the volume control  is out of step. If I ask the integration to adjust volume using the slider the slider will go to my selection but snap back after a second. It snaps back to exactly 13 steps above or below the starting point. If I ask for volume 50 from 10 it will go up but only by 13 steps, I can ask it repeatedly until it gets close to 50 then it seems to settle on a number as close to 50 as possible i.e 48.
I can call service volume_set in Node-Red and the sound bar behaves well. Send volume_level .1 and it's at volume 10 (or 10%) on actual sound bar display but slider in HA says 13. If I send volume_level .6 the actual sound bar will arrive at 60 (or 60%) but the integration slider is at ~96%. If I send volume_level 1 my ear drums pop and it is level 100 (or 100%) on the actual sound bar and the integration slider is, of course, maxed out.
Adjusting step size in integration doesn't seem to help.
Thank you,

hi @Steve-K-Pig sorry for the delay on this. So let's ignore the delay on the slider for now - I can probably improve that, but right now it loops through multiple step up volume by 1 calls and I don't think the API likes that for large increases/decreases.
So from what you are describing, the elevate sound bar has steps from 0 to 100? Instead of creating a device specific configuration, perhaps I can make the scale overwriteable. By default, soundbars are assumed to have 31 steps (because that's what mine supports), and that's probably what's causing  this issue.

repo: vkorn/pyvizio


text:
Access enter value to get last view controller receive

I am use this Stepview. I have  six view controller, every controller had one textfield to entering inputs
my operation is to operate in last view controller to access every controller insert values to getting in last viewcontroller

Hi, @indrajeetgaikwad. Thank you for your interesting in my library.
Unfortunately, it provides only a view with steps. Communication logic between controllers you should write by yourself.
For example you can use Delegation pattern or pass the data through the segue. You can read about this here https://stackoverflow.com/questions/26207846/pass-data-through-segue
Also you can use more complexity way like Routers or Coordinator and pass data through this classes.
Hope I helped you, good luck!

authors: indrajeetgaikwad vladislovshilov

repo: vladislovshilov/StepView


text:
Behaviour in case of deserialization error of JSON columns

Hi,
Maybe it's already documented but couldn't find it: I'm worried about what happens if there is a de-serialization error when JSON columns are loaded by Hibernate into the corresponding Entity DTO. Does the load completely fail? Can I
Another related question is: how to write custom code to handle such situation from inside the entity class?
Maybe it's more related to hibernate than hibernate-types, but since this kind of problem are more susceptible to happen when deserializing complex datatypes such a json, at least a small doc redirecting to Hibernate's would be really helpful :)
Thanks!

If there's a deserialization error, most likely that an exception will be triggered.
Now, related to customizing the deserialization process, I could offer your company a training/consulting session where, after you explain your business requirements, I could provide you the best solution that can address your needs.

@vladmihalcea thanks, that's what I was suspecting.
Basically the use case is that sometimes, you store json as a column in db, then this json schema evolves, so you have to handle the situation where you want to allow loading the previous json without error and then convert it to the new schema.
I suppose that that's what migrations are for, and I shouldn't try to use the entity mapping to achieve that objective?

You can use the JsonType provided by this framework while also evolving your JSON column schema. As you will discover when analyzing the source code, of both Hibernate ORM and Hibernate Types, you can customize almost anything you want. So, yes, the task is doable.

@vladmihalcea ok, thank you for your explanation :)
I will close this then, cheers!

I'm glad I could help.

authors: victornoel vladmihalcea

repo: vladmihalcea/hibernate-types


text:
Add orcID icon in contact info / add contact information

There is no link to orcID yet and every member should add their contact info_

Katrina Exter: 0000-0002-5911-1536; katrina.exter@vliz.be

authors: cedricdcc kmexter


text:
[WIP] AWQ initial implementation

SUMMARY:
"please provide a brief summary"
TEST PLAN:
"please outline how the changes were tested"

Hey @rahul-tuli , any timeline about when AWQ will be shipped and merged? Thank you!

Hey @rahul-tuli , any timeline about when AWQ will be shipped and merged? Thank you!

Soon!

authors: qingquansong rahul-tuli

repo: vllm-project/llm-compressor


text:
[Bug]: Outlines w/ Mistral - 'MistralTokenizer' object has no attribute 'eos_token'

Your current environment

The output of `python collect_env.py`
docker run --runtime nvidia --gpus all \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --ipc=host -p 8000:8000 \
    vllm/vllm-openai     --model mistralai/Pixtral-12B-2409  --tensor-parallel-size 2 --max-model-len 32768 --max-seq-len-to-capture=32768 --kv-cache-dtype fp8 --tokenizer_mode "mistral" --limit-mm-per-prompt image=4

Model Input Dumps
INFO:     172.17.0.1:51966 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.12/dist-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.12/dist-packages/starlette/routing.py", line 73, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 301, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/fastapi/routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 315, in create_chat_completion
    generator = await chat(raw_request).create_chat_completion(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/serving_chat.py", line 268, in create_chat_completion
    return await self.chat_completion_full_generator(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/serving_chat.py", line 624, in chat_completion_full_generator
    async for res in result_generator:
  File "/usr/local/lib/python3.12/dist-packages/vllm/utils.py", line 458, in iterate_with_cancellation
    item = await awaits[0]
           ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/engine/multiprocessing/client.py", line 547, in _process_request
    params = await \
             ^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/engine/async_llm_engine.py", line 528, in build_guided_decoding_logits_processor_async
    processor = await get_guided_decoding_logits_processor(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/guided_decoding/__init__.py", line 14, in get_guided_decoding_logits_processor
    return await get_outlines_guided_decoding_logits_processor(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/guided_decoding/outlines_decoding.py", line 72, in get_outlines_guided_decoding_logits_processor
    return await loop.run_in_executor(global_thread_pool,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/guided_decoding/outlines_decoding.py", line 131, in _get_logits_processor
    return CFGLogitsProcessor(guide, tokenizer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/guided_decoding/outlines_logits_processors.py", line 165, in __init__
    super().__init__(CFGLogitsProcessor._get_guide(cfg, tokenizer))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/outlines/caching.py", line 122, in wrapper
    result = cached_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/vllm/model_executor/guided_decoding/outlines_logits_processors.py", line 152, in _get_guide
    return CFGGuide(cfg, tokenizer)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/outlines/fsm/guide.py", line 272, in __init__
    self.terminal_regexps["$END"] = tokenizer.eos_token
                                    ^^^^^^^^^^^^^^^^^^^
AttributeError: 'MistralTokenizer' object has no attribute 'eos_token'. Did you mean: 'eos_token_id'?

🐛 Describe the bug
Using Outlines with Mistral tokenizer model fails as the tokenizer calls it tokenizer.eos_token_id not tokenizer.eos_token
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

It looks like outlines may have updated this code but the docker image does not use an up to date outlines version

Which is your version of outlines?

Which is your version of outlines?

I'm not sure, it's the vllm-openai docker image

I just remembered that Mistral tokenizer doesn't support outlines. https://github.com/vllm-project/vllm/issues/9359#issuecomment-2412840803

Please open an issue on their repo to request support.

repo: vllm-project/vllm


text:
The client socket has failed to connect to any network address of ( x.x.x.x, 48247)

I try to run the script below
from vllm import LLM, SamplingParams

# Sample prompts.
prompts = [
    "Hello, my name is",
    "The president of the United States is",
    "The capital of France is",
    "The future of AI is",
]
# Create a sampling params object.
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)

# Create an LLM.
llm = LLM(model="THUDM/chatglm2-6b",trust_remote_code=True)
# Generate texts from the prompts. The output is a list of RequestOutput objects
# that contain the prompt, generated text, and other information.
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
    prompt = output.prompt
    generated_text = output.outputs[0].text
    print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")

And met this error
[W socket.cpp:663] [c10d] The client socket has failed to connect to ?UNKNOWN? (errno: 110 - Connection timed out).
[W socket.cpp:663] [c10d] The client socket has failed to connect to xxx:48247 (errno: 110 - Connection timed out).
[E socket.cpp:719] [c10d] The client socket has failed to connect to any network address of (x.x.x.x, 48247).
RuntimeError: The client socket has failed to connect to any network address of (x.x.x.x, 48247). The client socket has failed to connect to xxx:48247 (errno: 110 - Connection timed out).

Any solutions to solve this ?
Thanks very much.

Fixed. It related to some unreachable entrys in /etc/hosts.

Fixed. It related to some unreachable entrys in /etc/hosts.

how fix it. ? ac

Fixed. It related to some unreachable entrys in /etc/hosts.

how fix it. ? ac

Check the IP addr return at
https://github.com/vllm-project/vllm/blob/6e01e8c1c8ea323d30e3f57050469b2df66b56c6/vllm/engine/llm_engine.py#L135
Make sure you can connect to that addr.
Or change it to another addr like 127.0.0.1 e.g. localhost

in case someone else run into this, get_ip() in https://github.com/vllm-project/vllm/blob/main/vllm/utils.py try guess your host ip by dig 8.8.8.8, if you run network proxy that does dns hijack, it output wrong ip to listen

just do this,
import vllm.envs as envs
envs.VLLM_HOST_IP="0.0.0.0"


text:
The model to consider.
https://huggingface.co/mistralai/Mistral-Large-Instruct-2407
The closest model vllm already supports.
No response
What's your difficulty of supporting the model you want?
No response

Hello, I am interested to try this out. I suspect we need at least TP=2 to have decent perf. Probably TP=4,PP=2.

I think this should already be supported. https://github.com/vllm-project/vllm/blob/main/docs/source/models/supported_models.rst

authors: jon-chuang mavershang


text:
[Bug]: vllm failing on tpu v5litepod-8

Your current environment
collect_env.py doesn't report any gpu information on tpu nodes.
Model Input Dumps
.
🐛 Describe the bug
When I build and run the docker container according to the vllm tpu guide I get the following error:
ERROR 10-21 02:38:59 worker_base.py:464] requests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/attributes/tpu-env (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f01780d21a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 199, in _new_conn
    sock = connection.create_connection(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
    raise err
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 495, in _make_request
    conn.request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 441, in request
    self.endheaders()
  File "/usr/local/lib/python3.10/http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.10/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.10/http/client.py", line 976, in send
    self.connect()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 279, in connect
    self.sock = self._new_conn()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 214, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f01780d21a0>: Failed to establish a new connection: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 843, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 519, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/attributes/tpu-env (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f01780d21a0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/workspace/vllm/vllm/engine/multiprocessing/engine.py", line 390, in run_mp_engine
    engine = MQLLMEngine.from_engine_args(engine_args=engine_args,
  File "/workspace/vllm/vllm/engine/multiprocessing/engine.py", line 139, in from_engine_args
    return cls(
  File "/workspace/vllm/vllm/engine/multiprocessing/engine.py", line 78, in __init__
    self.engine = LLMEngine(*args, **kwargs)
  File "/workspace/vllm/vllm/engine/llm_engine.py", line 335, in __init__
    self.model_executor = executor_class(
  File "/workspace/vllm/vllm/executor/ray_tpu_executor.py", line 39, in __init__
    super().__init__(*args, **kwargs)
  File "/workspace/vllm/vllm/executor/executor_base.py", line 47, in __init__
    self._init_executor()
  File "/workspace/vllm/vllm/executor/ray_tpu_executor.py", line 51, in _init_executor
    self._init_workers_ray(placement_group)
  File "/workspace/vllm/vllm/executor/ray_tpu_executor.py", line 198, in _init_workers_ray
    self._run_workers("load_model",
  File "/workspace/vllm/vllm/executor/ray_tpu_executor.py", line 264, in _run_workers
    driver_worker_output = self.driver_worker.execute_method(
  File "/workspace/vllm/vllm/worker/worker_base.py", line 465, in execute_method
    raise e
  File "/workspace/vllm/vllm/worker/worker_base.py", line 456, in execute_method
    return executor(*args, **kwargs)
  File "/workspace/vllm/vllm/worker/tpu_worker.py", line 111, in load_model
    self.model_runner.load_model()
  File "/workspace/vllm/vllm/worker/tpu_model_runner.py", line 151, in load_model
    model = get_model(
  File "/workspace/vllm/vllm/model_executor/model_loader/__init__.py", line 19, in get_model
    return loader.load_model(model_config=model_config,
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 398, in load_model
    model = _initialize_model(model_config, self.load_config,
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 175, in _initialize_model
    return build_model(
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 160, in build_model
    return model_class(config=hf_config,
  File "/workspace/vllm/vllm/model_executor/models/llama.py", line 515, in __init__
    self.model = LlamaModel(config,
  File "/workspace/vllm/vllm/compilation/decorators.py", line 71, in __init__
    old_init(self, *args, **kwargs)
  File "/workspace/vllm/vllm/model_executor/models/llama.py", line 305, in __init__
    self.start_layer, self.end_layer, self.layers = make_layers(
  File "/workspace/vllm/vllm/model_executor/models/utils.py", line 419, in make_layers
    [PPMissingLayer() for _ in range(start_layer)] + [
  File "/workspace/vllm/vllm/model_executor/models/utils.py", line 420, in <listcomp>
    maybe_offload_to_cpu(layer_fn(prefix=f"{prefix}.{idx}"))
  File "/workspace/vllm/vllm/model_executor/models/llama.py", line 307, in <lambda>
    lambda prefix: LlamaDecoderLayer(config=config,
  File "/workspace/vllm/vllm/model_executor/models/llama.py", line 217, in __init__
    self.self_attn = LlamaAttention(
  File "/workspace/vllm/vllm/model_executor/models/llama.py", line 170, in __init__
    self.attn = Attention(
  File "/workspace/vllm/vllm/attention/layer.py", line 85, in __init__
    self.impl = impl_cls(num_heads, head_size, scale, num_kv_heads,
  File "/workspace/vllm/vllm/attention/backends/pallas.py", line 122, in __init__
    if torch_xla.tpu.version() < 4:
  File "/usr/local/lib/python3.10/site-packages/torch_xla/_internal/tpu.py", line 187, in version
    env = get_tpu_env()
  File "/usr/local/lib/python3.10/site-packages/torch_xla/_internal/tpu.py", line 181, in get_tpu_env
    metadata = _get_metadata('tpu-env')
  File "/usr/local/lib/python3.10/site-packages/torch_xla/_internal/tpu.py", line 89, in _get_metadata
    resp = requests.get(path, headers={'Metadata-Flavor': 'Google'})
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 700, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/attributes/tpu-env (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f01780d21a0>: Failed to establish a new connection: [Errno 111] Connection refused'))

I've tried manually curling the metadata endpoint and ensuring that all the results are set to env vars, but I still get this exception.
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

I am also facing this issue

I think it has to do with ray workers don't have access to metadata in gcp
Temporary workaround is this ,
change it from line 112 in pallas.py
`        #if torch_xla.tpu.version() < 4:
#    raise NotImplementedError("TPU version must be 4 or higher.")
    self.megacore_mode = None
    #tpu_env = torch_xla.tpu.get_tpu_env()
    #tpu_type = (tpu_env.get("ACCELERATOR_TYPE", None)
    #            or tpu_env.get("TYPE", None)
    #            or tpu_env.get("TPU_ACCELERATOR_TYPE", None))
    #assert tpu_type is not None
    #tpu_type = tpu_type.lower()

    #if "lite" not in tpu_type:
    #    if self.num_kv_heads % 2 == 0:
     #       self.megacore_mode = "kv_head"
    #    else:
            # NOTE(woosuk): If the batch size is not a multiple of 2, the
            # megacore mode will be None.
    self.megacore_mode = "batch"

`

Something in the last few PRs (or on Google's end idk) changed and now llama3-8b and a mistral/nemo merge 12b both run fine on v5litepod-8s.


text:
AI2-THOR

I tested in the AI2-THOR  simulation environment, but the effect is very poor, what may be the reason? Can you provide the test code in the AI2-THOR  simulation environment mentioned in the paper? How to collect data in AI2-THOR simulation environment?

What might be the cause of this?Why can one wall be aligned, but the side walls can't be aligned？Thank you very much

It looks like something is wrong with the transformation and poses. Could you share a code snippet to reproduce this?

  base2cam_rot: [1, 0, 0, 0, 1, 0, 0, 0, 1]   base_forward_axis: [0, 0, 1]   base_left_axis: [-1, 0, 0]   base_up_axis: [0, -1, 0]
Originally, I changed the coordinate change to the same as you answered in another question, and later I tried to change it to the following to achieve the alignment effect,But why is this happening?Thanks for your reply!
  base2cam_rot: [1, 0, 0, 0, 1, 0, 0, 0, 1]   base_forward_axis: [0, 0, -1]   base_left_axis: [-1, 0, 0]   base_up_axis: [0, 1, 0]

I think it is because that in AI2THOR, the robot base coordinate frame has the same orientation as the camera (z forward, x right, y downward).

I tested the following config and it works for AI2THOR with the main branch: base2cam_rot: [1, 0, 0, 0, 1, 0, 0, 0, 1] base_forward_axis: [0, 0, -1] base_left_axis: [-1, 0, 0] base_up_axis: [0, 1, 0]. I will mark this as solved. If there is further question, please reopen the issue.

authors: Tom-Huang xiaolu-luu

repo: vlmaps/vlmaps


text:
Add support to configure privileges for the vRealize Automation service account in vRealize Operations Manager

Code of Conduct

[X] I have read and agree to the project's Code of Conduct.
[X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
[X] Do not leave "+1" or other comments that do not add relevant information or questions.
[X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description
PowerShell function Import-vROPSUserGroup exists for adding user groups; however, a function for importing a user and associate to a particular adapter instance is also needed.
Use Case(s)
Provides an automation path for the procedure.
Potential Configuration
To be determined during implementation.
References
Guidance: Configure Privileges for the vRealize Automation Service Account in vRealize Operations Manager

#122 adds partial coverage with the following functions to support the import of a user account from the Workspace ONE Access (vIDMAuthSource) authentication source.
User Functions:

Import-vROPSUserAccount

Helper Functions:

Get-vROPSUserAccount
Add-vROPSUserAccount
Remove-vROPSUserAccount
Search-vROPSUserAccount

Reopening as setting https://github.com/vmware-samples/power-validated-solutions-for-cloud-foundation/pull/122 added partial coverage. Updates are needed to assign permissions to the user (service account).

Add permissions to user:
PUT: /api/auth/users/<userId>/permissions
Example (non-functional):
        $uri = "https://$vropsAppliance/suite-api/api/auth/users/$id/permissions"
        $body = '{
            'traversal-spec-instances':[
            {
                'adapterKind': "' + $adapterKind + '",
                'includedAdapterKinds':[
                'string'
                ],
                'name':"string",
                'resourceKind':"string",
                'resourceSelection':[
                {
                    'resourceId':[
                    "' + $resourceId + '"
                    ],
                    'type':"PROPAGATE"
                }
                ],
                'selectAllResources':false
            }
            ]
        }'
        $response = Invoke-RestMethod -Method 'PUT' -Uri $uri -Headers $vropsHeaders -Body $body

Need to pass the resource IDs base on the workload domain provided - to discover the resource ID, use the following.
$user = "administrator@vsphere.local"
$pass = "VMw@re1!"
$domain = "sfo-m01"
$adapterKind = 'VMWARE'

$vcfVcenterDetails = Get-vCenterServerDetail -server $server -user $user -pass $pass -domain $domain

$adapters = Get-vROPSAdapter | Where-Object { $_.resourceKey.adapterKindKey -eq $adapterKind }
Foreach ($adapter in $adapters) {
    $resource = (Get-vROPSAdapter -id $adapter.id ) | Where-Object { $_.resourceKey.resourceIdentifiers.identifierType.name -eq 'VCURL' -and $_.resourceKey.resourceIdentifiers.value -eq $vcfVcenterDetails.fqdn }
}
$resourceId = $resource.id


text:
[CI] Clone Kubernetes using git instead of go get

In hw-offload CI go get started to fail on recent Kubernetes version
because of a bug in go mods. This patch uses git to directly clone the
Kubernetes project source.

/test-hw-offload

@antoninbas @lzhecheng Hi could you look at this? thanks

/skip-all

authors: AbdYsn lzhecheng

repo: vmware-tanzu/antrea


text:
Improve NetworkPolicy logging

Added a few V0 logs for essential NetworkPolicy events like
creation/deletion of computed NetworkPolicy.
Added NetworkPolicy context when logging rule that are being
installed.
Adjusted a few logs that are in inconsistent style.

Fixes #516

/test-all

/test-all

/test-e2e

/test-all

/test-all
@lzhecheng any idea that all tests failed with Error from server (NotFound): secrets "antrea-conformance-for-pull-request-137-kubeconfig" not found again?

/test-all

@tnqn , old management cluster stuck at creating new vm in VMC.  Replace it with a new one.

/test-all
@antoninbas @abhiraut I resolved conflicts, can you give another approval?

/test-conformance
/test-networkpolicy

authors: lzhecheng tnqn


text:
Tooltip on header-actions breaks layout

Select one ...  (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior
The icon should stay in place and a tooltip should appear in the right position once you hover it.
Actual behavior
If you use a tooltip wrapping an icon inside header-actions the icon is mispositioned and once you hover it, it "jumps" to the right place. The tooltip position is always relative to the original icon and not to the current one.

GIF
Plunker
Environment details

Angular version: 4.1.3

Clarity version: 0.9.14 / 0.10.7 (tested on both)

OS and version: Sierra 10.12.6

Browser: Chrome 61.0.3163.100 | Firefox 56.0  | Safari 11.0

@zeratulmdq: Please note that there can only be one .header-actions section in the header. Also since the icon is nested in the tooltip, you need to add the .nav-icon class on the tooltip. Please see this: https://plnkr.co/edit/Ec4JTkyb4o0YwH7wE4t7?p=preview
Closing based on this. Please feel free to reopen the issue if you any additional questions.

@adityarb88 thanks for the quick response. The duplication of header-actions was a mistake, we just have one on the app. I'll leave this comment here because your suggestion fixes the problem for 0.10.7 but 0.9.14 still does the same (in case someone else has this issue). It's slightly better, but still mispositioned and jumping.

repo: vmware/clarity