maintain own fork of Guzzle rewritten with own safe namespace

reasoning in this comment
keep process as simple as possible, ie, the script that does the rewriting in another repo, so can just reset --hard to upstream when wanting to upgrade, then re-run script

now seems to be working fine


Update configuration.md

A question I asked myself and that got asked frequently in the forums is weather the usb stick used for configuration needs to stay within the device. So I just added some line to make this more precise.

Doublicate


Allow specific feed to not use proxy

Hello,
it would be useful to allow specifying something like noproxy for an url in the url file. Use case: when your proxy is Tor, but only one or two feeds are using Cloudflare.

Hi! Thank you for the suggestion. We'll be able to implement this once we decided on the format and closed #83.

On Thu, Jun 28, 2018 at 10:56:31AM -0700, Alexander Batischev wrote:

Hi! Thank you for the suggestion. We'll be able to implement this once we decided on the format and closed #83.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/newsboat/newsboat/issues/222#issuecomment-401120656

Thanks for the answer.

@Minoru I have the opposite requirement: mark only one feed (out of many in urls file) to use the proxy, all other feeds should connect directly. Can you suggest a workaround for this please?

@alex3kov do the same as above: use exec: with curl, and pass it the --proxy option.


Portal Gun 1.18.1 version not on Curseforge

Hello!, I tried putting your mod into my 1.18.1 pack and I got it from Curseforge. This is the version it gave me for 1.18.2 and there is no other versions.

Can I download the 1.18.1 version from the website and put it in my pack and upload the modpack to curseforge without any problems?

I tried it and it didn't get past the initial loading. No crash but here is the latest log
latest.log

oops, the version of Immersive Portals I supply in my mod isn't compatible with 1.18.1, install this: https://www.curseforge.com/minecraft/mc-mods/immersive-portals-mod/files/3622902 and it'll override the version I include.
Keep me posted!

ok will do! Ty

latest.log
Still crashed with Imm Portals 1.2.5 installed

oh y'know what, I think mine might actually be overriding what immersive portals supplies because mine is a higher version number. I'll go make you a 1.18.1 version, sorry about that

it's been approved. here you go!
https://www.curseforge.com/minecraft/mc-mods/portal-gun-fabric/files/3735378
should work

Really wish I could say it worked...
latest.log
Sorry I am so difficult and by me I mean my modpack :D

oh ik the issue lol

I think

currently uploading a new one, I deleted the old version. Hope this one works

note: the reason it didn't work is because I didn't feel like opening the game lmfao

bruh nvm they rejected it because it's a "duplicate"

literally deleted the old one but ok

let's try this again

lol that is weird. ok ty

https://www.curseforge.com/minecraft/mc-mods/portal-gun-fabric/files/3735395

That worked! Thanks so much.

awesome! Glad I could help


dependency parser tags

Hello, the description from malaya.dependency.describe() shows 26 different dependency tags, but when I go to
INFO:root:you can read more from https://universaldependencies.org/treebanks/id_pud/index.html
there are a lot more dependency relations:
acl – acl:relcl – advcl – advmod – advmod:emph – amod – appos – aux – case – case:adv – cc – cc:preconj – ccomp – compound – compound:a – conj – cop – csubj – csubj:pass – det – discourse – dislocated – fixed – flat – flat:foreign – flat:name – goeswith – iobj – mark – nmod – nmod:lmod – nmod:poss – nmod:tmod – nsubj – nsubj:pass – nummod – obj – obl – obl:agent – obl:tmod – orphan – parataxis – punct – root – vocative – xcomp
Then when I look at the source code in dependency.py, it shows these tags (i put them in a list):
['PAD', 'X', 'nsubj','cop','det','root','nsubj:pass','acl','case','obl','flat','punct',                     'appos','amod','compound','advmod','cc','obj','conj','mark','advcl','nmod','nummod',                     'dep','xcomp','ccomp','parataxis','compound:plur','fixed','aux','csubj','iobj','csubj:pass']
All 3 tag sets don't match.
May I know what treebank the dependency parser was trained on?
Is it https://github.com/UniversalDependencies/UD_Indonesian-GSD/tree/master? Because that fits most closely to the tags shown in dependency.py, except for the addition of compound:plur, PAD, and X.
An explanation would be very helpful (also what is compound:plur, PAD and X). Also sometimes the parser returns more than 1 root tag, is that intended? thanks!

I think they updated the tags.


MSP430 SP decrement causes wrong stack depth

Hi,
I am currently looking at this MSP430X code:
     0              0001de60 7b 14           PUSHM.A                 0x8,R11
   020              0001de62 4c 12           PUSH.B                  param_1
   022              0001de64 21 83           DECD.W                  SP
   -ffdc            0001de66 45 4d           MOV.B                   param_2,R5
   -ffdc            0001de68 0a 4e           MOV.W                   param_3,R10
   -ffdc            0001de6a 0b 4f           MOV.W                   param_4,R11
   -ffdc            0001de6c 37 01 28 00     MOVA                    0x28(SP),R7

The first column is the stack depth and it makes sense until line 4. The first PUSHM pushes 8 times 32 bit which is 0x20 bytes. The next PUSH.B pushes another 2 bytes and we end up at 0x22.
Now it gets weird. As far as I understand the DECD.W should just decrement SP by 2 and we should end up at a stack depth of 0x24. But Ghidra thinks the stack depth is now at -ffdc. All this massively confuses the Decompiler when it comes to arguments passed over the stack which should be accessed in the last line. I was very confused when staring at the function until I noticed something with the stack depth is wrong.
How can this be? I think this might be a bug in the DECD.W behaviour. I already tried looking at the language definition file and the resulting PCode, but I couldn't figure out what's going wrong.
Any ideas?
edit:
It does something similar with a SUB:
     0        0000a5ea 7b 14           PUSHM.A                 0x8,R11
   020        0000a5ec 21 82           SUB.W                   #4,SP
   -ffdc      0000a5ee c4 0c           MOVA                    param1,R4

Maybe something isn't right because SP is in reality a 20 bit register and the PCode only modifies the lowermost 16 bits? But how does it underflow then?

Okay, I found the pattern. It's always the two's complement of the right outcome:
0x22-2 = 0x24
twos(0x24) = 0xFFDC
0x20-4 = 0x24
twos(0x24) = 0xFFDC
The wrong stack depth is then the negative two's complement.
But I haven't found out why yet. Is this something in the Sleigh code or maybe even something in the stack analyzer itself? Or a combination?

Okay, I found the pattern. It's always the negative two's complement of the correct result:
0x22+2 = 0x24
twos(0x24) = 0xffdc
0x20+4 = 0x24
twos(0x24) = 0xffdc
The wrong result then is the negative two's complement of that.
I just haven't found out yet where this comes from. Is this something that's most likely caused by the sleigh code or something in the stack analyzer itself? Or maybe a combination of both?

More debugging happened and I think I found the culprit. It also most likely only affects MSP430X:
After I littered the Java stack depth code with debug logging prints, I saw that it was seldomly called. I then tried finding the place in the decompiler where the stack depth is tracked and couldn't find it. I then started looking at the Sleigh code again, because for things like PUSHes and POPs, the stack depth is actually handled correctly and I can't imagine such a bug not being present on other architectures as well.
The difference between places where the stack depth is calculated correctly vs where it's broken is that, SP is used as a whole 20 (or 32?) bit register in the PCode.
I then just started experimenting and implemented a special case for the DECD.W with SP as the target register and NOT use the 16 bit slice of SP with the uppermost 4 bits forced to 0, but the whole thing:
:DECD^".W SPECIAL" SP is ctx_haveext=0 & (op16_12_4=0x8 & as=0x2 & src_Direct16_8_4=0x3 & bow=0x0 & dest_Direct16_0_4=0x1) ... & SP ... {
	SP = SP - 0x2;
}

And now guess what happened! The stack depth in cases of DECD.W's is now correct. ADDs, SUBs and INCDs are still broken obviously.
I then started thinking about how it would make no sense that the SP should have its uppermost 4 bits forced to 0 in case of a .W instruction with SP as the target. This would mess up the whole stack pointer in case there would ever be RAM mapped at addresses larger than 64K. Right now that doesn't seem to be the case for any of the existing CPUs, but hey, plan for the future!
I then checked the MSP430X CPUX manual: https://www.ti.com/lit/ug/slau391f/slau391f.pdf
In chapter 1.3.2 the SP is described, but it's not mentioned how different instruction operand widths would influence the unaffected bits in that register.
However, further on in chapter 1.3.5 "General-Purpose Registers (R4 to R15)" it is stated that for R4 to R15, the clearing of the unaffected uppermost 4 respectively 12 bits would occur in case of byte and word-width instructions.
The thing is, I think this clearing really only applies to the GPRs R4 to R15. SP is R1. That's not mentioned anywhere. R2 and R3 are the constant generator registers, so they are not writable anyway. R0 is PC which is special anyway.
I would suspect that SP and PC really are a special case where this upper-bit-clearing mechanism wouldn't occur. I haven't checked with real hardware and a debugger yet what actually happens. Also the effects of the status flags are still a mystery to me because again, it's not mentioned anywhere with regards to SP in case the uppermost bits really aren't cleared when executing a word or byte instruction on it.
Another thing... I tried doing the same for INCD.W
:INCD^".W SPECIAL" SP is ctx_haveext=0 & (op16_12_4=0x5 & as=0x2 & src_Direct16_8_4=0x3 & bow=0x0 & dest_Direct16_0_4=0x1) ... & SP ... {
	SP = SP + 0x2;
}

The only difference to DECD.W is the opcode itself which is 0x5 instead of 0x8 here. However, that instruction would never match? I can't figure out why. Ghidra still shows the old general INCD.W instruction when it should rather match on my more specific case with R1 (aka SP) as the destination register. Any immediate ideas why this would happen?

Good, I checked on hardware and my SP-is-a-special-case-hypothesis is wrong:
(mspdebug) regs
    ( PC: 0446e)  ( R4: fffff)  ( R8: 0a508)  (R12: 002e9)
    ( SP: 043fc)  ( R5: 0fffc)  ( R9: 00000)  (R13: 00000)
    ( SR: 00004)  ( R6: 00002)  (R10: 02008)  (R14: 00182)
    ( R3: 00000)  ( R7: fffff)  (R11: 02008)  (R15: 02008)
0x446e:
    0446e: 31 40 00 80               MOV     #0x8000, SP
    04472: e1 01                     ADDA    SP,     SP
    04474: e1 01                     ADDA    SP,     SP
    04476: 21 83                     DECD    SP
    04478: 30 41                     RET
    0447a: 21 83                     DECD    SP
    0447c: d2 d3
(mspdebug) step
    ( PC: 04472)  ( R4: fffff)  ( R8: 0a508)  (R12: 002e9)
    ( SP: 08000)  ( R5: 0fffc)  ( R9: 00000)  (R13: 00000)
    ( SR: 00004)  ( R6: 00002)  (R10: 02008)  (R14: 00182)
    ( R3: 00000)  ( R7: fffff)  (R11: 02008)  (R15: 02008)
0x4472:
    04472: e1 01                     ADDA    SP,     SP
    04474: e1 01                     ADDA    SP,     SP
    04476: 21 83                     DECD    SP
    04478: 30 41                     RET
    0447a: 21 83                     DECD    SP
    0447c: d2 d3 04 02               BIS.B   #0x0001, &0x0204
    04480: 4d 43                     CLR.B   R13
(mspdebug) step
    ( PC: 04474)  ( R4: fffff)  ( R8: 0a508)  (R12: 002e9)
    ( SP: 10000)  ( R5: 0fffc)  ( R9: 00000)  (R13: 00000)
    ( SR: 00000)  ( R6: 00002)  (R10: 02008)  (R14: 00182)
    ( R3: 00000)  ( R7: fffff)  (R11: 02008)  (R15: 02008)
0x4474:
    04474: e1 01                     ADDA    SP,     SP
    04476: 21 83                     DECD    SP
    04478: 30 41                     RET
    0447a: 21 83                     DECD    SP
    0447c: d2 d3 04 02               BIS.B   #0x0001, &0x0204
    04480: 4d 43                     CLR.B   R13
    04482: d2 e3
(mspdebug) step
    ( PC: 04476)  ( R4: fffff)  ( R8: 0a508)  (R12: 002e9)
    ( SP: 20000)  ( R5: 0fffc)  ( R9: 00000)  (R13: 00000)
    ( SR: 00000)  ( R6: 00002)  (R10: 02008)  (R14: 00182)
    ( R3: 00000)  ( R7: fffff)  (R11: 02008)  (R15: 02008)
0x4476:
    04476: 21 83                     DECD    SP
    04478: 30 41                     RET
    0447a: 21 83                     DECD    SP
    0447c: d2 d3 04 02               BIS.B   #0x0001, &0x0204
    04480: 4d 43                     CLR.B   R13
    04482: d2 e3 02 02               XOR.B   #0x0001, &0x0202
(mspdebug) step
    ( PC: 04478)  ( R4: fffff)  ( R8: 0a508)  (R12: 002e9)
    ( SP: 0fffe)  ( R5: 0fffc)  ( R9: 00000)  (R13: 00000)
    ( SR: 00004)  ( R6: 00002)  (R10: 02008)  (R14: 00182)
    ( R3: 00000)  ( R7: fffff)  (R11: 02008)  (R15: 02008)
0x4478:
    04478: 30 41                     RET
    0447a: 21 83                     DECD    SP
    0447c: d2 d3 04 02               BIS.B   #0x0001, &0x0204
    04480: 4d 43                     CLR.B   R13
    04482: d2 e3 02 02               XOR.B   #0x0001, &0x0202
    04486: b1 40

I load 0x8000 into SP, shift it left two times so that it contains 0x20000, then subtract 2 using a DECD.W und the result is 0xfffe instead of 0x1fffe, so bit 16-19 are in fact forced to 0 even for SP.
So technically the sleigh code is correct. How do I fix the 2s-complement issue now?


Subplots w/ xarrays

What is your issue?
I tried to add an xarray 1D plot to a set of subplots in a figure, but I got an error:
import numpy as np
import xarray as xr
x1 = np.linspace(0,1,10)
y1 = x1**2
da1 = xr.DataArray(y1,dims=("x"),coords={"x":x1})

x2 = np.linspace(0,1,10,endpoint=True)
y2 = np.sqrt(x2)
da2 = xr.DataArray(y2,dims=("x"),coords={"x":x2})

fg,(ax1,ax2) = plt.subplots(nrows=2,ncols=1)#,sharex=True)
da1.plot(axes=ax1)
da2.plot(axes=ax2)

Error message:
Traceback (most recent call last):

  File "/var/folders/g6/42nl1yms1yq8tbmt3kpgm5b80000gp/T/ipykernel_2783/171456975.py", line 2, in <cell line: 2>
    da.plot(axes=ax1)

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/xarray/plot/plot.py", line 866, in __call__
    return plot(self._da, **kwargs)

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/xarray/plot/plot.py", line 332, in plot
    return plotfunc(darray, **kwargs)

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/xarray/plot/plot.py", line 440, in line
    primitive = ax.plot(xplt_val, yplt_val, *args, **kwargs)

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 1634, in plot
    self.add_line(line)

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 2279, in add_line
    self._set_artist_props(line)

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/matplotlib/axes/_base.py", line 1105, in _set_artist_props
    a.axes = self

  File "/Users/lucas.morton/opt/anaconda3/envs/work/lib/python3.9/site-packages/matplotlib/artist.py", line 275, in axes
    raise ValueError("Can not reset the axes.  You are probably "

ValueError: Can not reset the axes.  You are probably trying to re-use an artist in more than one Axes which is not supported

I was hoping to get to the point where I could use the sharex=True keyword to show data from two different DataArrays with incongruous x-coordinates.
If I do this, I can make the figure, but I don't get the sharex=True possibility:
fg = plt.figure()
ax1 = fg.add_subplot(211)
da1.plot(axes=ax1)
ax2 = fg.add_subplot(212)
da2.plot(axes=ax2)

Interestingly, I can get the same error message if I change the order of operations here:
fg = plt.figure()
ax1 = fg.add_subplot(211)
ax2 = fg.add_subplot(212)

da1.plot(axes=ax1)
da2.plot(axes=ax2)

Any idea what might be going on here?

Use ax instead of axes.

Ahh, thank you! That did the trick.


I updated the get version from 3.6.2 to the latest version, my app kind of stuck in the initial login screen.

When I updated the get version from 3.6.2 to the latest version, my app kind of stuck in the initial login screen. After that nothing seems to be working. even the navigation to other pages are not working. This is issue is only happening when we run the build after running 'flutter clean'. If we build the app with the existing older version build present the app is working fine. It's not even showing any errors also. If I use the get version of 3.6.2 it's working fine. Do you have any idea why this is happening?
Since it's not showing any errors I don't have a reproduction code or where it's happening
my flutter version is  1.20.4

I can confirm that there is an issue in the library after version 1.15 and it's still there in the latest release 1.17.1.
To help out I debugged this a little bit.
I believe it has to do with the fact that the "builder" parameter is no longer being passed from the put method in "extension_instance.dart" on line 82 to the GetInstance().put method.
The fix is to change from Get.put(null, builder: YourController()) to Get.put(YourController()).
The builder parameter seems to have been deprecated.
Should we stop using the builder parameter?
What is the reason for this move?

When I updated the get version from 3.6.2 to the latest version, my app kind of stuck in the initial login screen. After that nothing seems to be working. even the navigation to other pages are not working. This is issue is only happening when we run the build after running 'flutter clean'. If we build the app with the existing older version build present the app is working fine. It's not even showing any errors also. If I use the get version of 3.6.2 it's working fine. Do you have any idea why this is happening?
Since it's not showing any errors I don't have a reproduction code or where it's happening
my flutter version is 1.20.4

The latest version works well, if your app crashes, you:
1- You are using legacy code. When something is marked as deprecated, don't insist on using it.
2- Bad practices. If you do things that can be considered bad practice, like inserting logic into builders, or something like that, you will face problems.
3- If it is not debuggable, the problem is in your app. Review your lines of code to find out what you did wrong, we can't help you without a reproduction code.

I can confirm that there is an issue in the library after version 1.15 and it's still there in the latest release 1.17.1.
To help out I debugged this a little bit.
I believe it has to do with the fact that the "builder" parameter is no longer being passed from the put method in "extension_instance.dart" on line 82 to the GetInstance().put method.
The fix is to change from Get.put(null, builder: YourController()) to Get.put(YourController()).
The builder parameter seems to have been deprecated.
Should we stop using the builder parameter?
What is the reason for this move?

builder function on Get.put was deprecated and should not be used.
Use Get.put(Instance()) to put Instance on memory on immediate or Get.lazyPut(()=> Instance()) to lazy instance

Well, it looks like you're also using a very old version.
With each Flutter update, we also update our source to maintain compatibility, so it’s good to keep the version of Flutter and Get always up to date.
As this is a problem with your code, and there is no case of reproduction, it will not be possible to help you. But looking at changeLog to see what has changed since your update so far, can help you know where you are missing something.
As this is not a reproducible problem and it is a problem in your code, I am ending this. If you need personal help with this, the community channels always have people online who can help you in your specific case.
If you have a reproduction case, feel free to reopen the issue.
Note: if you are navigating to the same screen, you probably forgot to call preventDuplicates: false in your route, this is a very common problem.


change thermo state of diagnostic edmf environment

Purpose

To-do

Content

[ ] I have read and checked the items on the review checklist.

bors r+

bors r+


How to delay eureka-client registration without set leaseRenewalIntervalInSeconds?

Hi, I have already set eureka.client.initialInstanceInfoReplicationIntervalSeconds ,but it's not work for me because the heartbeat task still run the register()
So I have to set the eureka.instance.leaseRenewalIntervalInSeconds which also have an impact on the heartbeat interval, and it finally works.
Is there a way to delay eureka-client registration without set leaseRenewalIntervalInSeconds?

Have you considered utilizing the status for this? i.e. do not report yourself as "UP" until you're ready, would that do it?

My bad, I should have found this solution earlier, It works
Thanks for your help


Migration from v1 to v2

Hi, I'm reading the doc for the new v2 in the readme, I can't understand the new configuration.
It is mentioned
Each config includes:
    "styles", "field" and "editorConfig" properties.
    Property "field" is required.

What are each of these properties for? Are they specific to ckeditor,  or to strapi, or is it custom config of the plugin?
For example in the given config file I see a field configs.toolbar.editorConfig and also a field custom.editorConfig.toolbar. I'm not sure what is used where?
Thanks

@nshenderov "not planed"?

@gsouf The issue is stale. Is it still relevant to you?

@nshenderov I solved by experimenting but I can't remember what I did as it's working and I haven't touched it for months. Give 8 people gave a thumb up, I suppose other people are unable to understand the documentation. It's just a matter of clarifying what is written in the README

@gsouf I see.
So the big idea here is that you can have multiple configurations of the editor and choose the one you need currently in the content type builder. The plugin provides four configurations by default, which you can modify, and you can also add new configurations.
The plugin has many configuration options, as does CKEditor inside it, and I completely agree that the documentation needs further improvement and that the naming might be better. It takes time to understand the documentation and how to configure the plugin properly, but most people did understand how it works.
If you have some time to help improve it, that would be great.

@nshenderov thanks for the explanation, today I checked our codebase to see what we did. I just remebered that we decided to uninstall this plugin and use the official strapi CKEditor plugin instead as it was faster to set up for us.
The major porblem is that I really had no idea what the given config were for. I see that you added some docs to the README.md, that's probably going to help for the future


Add deriveKey method for Password

I added versions of Password.hash that return a byte array rather than a string. As I understand it, this is important when using pwhash to derive a key as opposed to password storage, because you will want to clear the key from memory as soon as possible after deriving and using it. If the derived key is converted to an immutable string, this is not possible.
I converted the existing methods to call into the new one where appropriate, but left them otherwise unchanged to avoid making breaking changes; hopefully the name difference will prompt users to choose the byte array methods for key derivation and the string methods for password storage.

@cbowdon landed, thank you!


Replace podman.svg

On a computer that doesn't have the font Montserrat installed, the old SVG won't render correctly.
We converted the font text to be objects so that it renders correctly on all computers. See https://github.com/cncf/landscape#proper-svgs.

Addresses #3350

/ok-to-test
/approve

thanks for the patch.  The changes LGTM.  Could you please squash them in one commit and add a the signoff?

Done.

/lgtm
Thanks @dankohn


Update link of Waf Music Manager

Thanks for making the additional change, @jbe2277. We'll merge your PR now. Incidentally, you might want to make the same correction ("makes fun" --> "makes it fun") at Waf Music Manager.


Documentation for socket endpoints

I'm trying to read from the fgfs websockets in a similar way to your project. I've looked around but I cannot seem to find documentation for the websocket API. Is this documented somewhere, or did you just probe to figure out how they work?

I believe it is undocumented, I just figured it out myself. It is normally used by FlightGear's webgui. It seems to send data at a higher rate than the documented APIs.

@akloster Ok, thanks for the info. I'll continue to probe and use your code as a starting point.


2.1.3 update breaks events

Events are broken in 2.1.3. postMessage does not work. Even basic instructions from demo result in plugin that does not do anything.
Steps to reproduce:

Build basic plugin:

skpm create test-sketch-webview --template=skpm/with-webview

Open it in Sketch.
Click menu.
Nothing happens. No error messages, no output.

However when after downgrading to 2.1.2:
npm install<EMAIL_ADDRESS>npm run build

and it works again.

you are right 2.1.4 should fix it


Wrong implementation of AvgPool in E_MHSA

Hi!
First of all very interesting paper with good ideas. I've looked into your code and your implementation of AvgPool seems to be wrong. Usually when we speak about AvgPool for images we assume a box filter with kernel_size=(size, size) and stride=size.
In your implementation you

take input of size: (B, C, H, W)
reshape it to (B, H*W, C)
in E_MHSA reshape it to (B, Heads, H * W, C / Heads)
in case of sr_ratio != 1 you reshape to (B, Heads, H * W, C / Heads)
Apply AvgPool 1d to the tensor above with kernel_size=size * size, stride=size * size. This is NOT IDENTICAL to AvgPool2d.

The problem is that in this implementation your performing avg-pooling of rows, and it leads to leakage of information from one border to another and also doesn't use any information in vertical dimension. Below is an example of tensor and it's mean inside your E_MHSA.
BS, DIM, SZ = 1, 1, 4
inp = torch.arange(SZ * SZ).float().view(BS, SZ * SZ, DIM)
E_MHSA(dim=DIM, sr_ratio=2, head_dim=1)(inp)

inp = tensor([
        [ 0.,  1.,  2.,  3.],
        [ 4.,  5.,  6.,  7.],
        [ 8.,  9., 10., 11.],
        [12., 13., 14., 15.]])

mean_inp (after self.sr(_x)): tensor([ 1.5000,  5.5000,  9.5000, 13.5000])

It's obvious it calculate average only inside rows. I would assume you used such implementation to avoid reshaping back to (B, C, H, W) for performing AvgPool2d, but this leads to a totally different pooling.
As a side note I would say that all this (B, C, H, W) -> (B, N, C) -> (B, C, H, W) permutations are not really needed and you could boost speed of your network by re-implementing E_MHSA to work on (B, C, H, W) tensors as inputs.

Thank you for your attention
We treat the input of pooling as tokens, which is 1d. It is not necessary to resize tokens into images to perform pooling.
If using avg-pool 2d, we need to reshape the token to a 2d image(B, N, C) -> (B, C, H, W), and then (B, C, H, W) -> (B, N, C). This also increases the overhead of network.
We think this has little effect on the experiment. If you are interested, you can do an experiment to compare~

Thank you for your attention
We treat the input of pooling as tokens, which is 1d. It is not necessary to resize tokens into images to perform pooling.
If using avg-pool2d, we need to reshape the token to a 2d image(B, N, C) -> (B, C, H, W), and then (B, C, H, W) -> (B, N, C). This also increases the overhead of network.
We think this has little effect on the experiment. If you are interested, you can do an experiment to compare~


trufflehog: wrapProgram to ignore updater

When running trufflehog against master and release-24.11 you get the following error due the binary checking for an update for itself:
$ ./result/bin/trufflehog filesystem ~/workspace/somerepo
2024-12-17T21:08:31Z    error   trufflehog      error occurred with trufflehog updater 🐷       {"error": "cannot move binary (exit status 1)"}

This is update process can be ignored with a flag --no-update. Wrapping the trufflehog with this flag allows the binary to runs as expected:
$ ./result/bin/trufflehog filesystem ~/workspace/somerepo
🐷🔑🐷  TruffleHog. Unearth your secrets. 🐷🔑🐷

2024-12-17T21:11:04Z    info-0  trufflehog      running source  {"source_manager_worker_id": "cTrG5", "with_units": true}
...

There is an existing upstream issue being tracked to fix this but we should fix it in the meantime: https://github.com/trufflesecurity/trufflehog/issues/3290
Adding myself as a maintainer of this repo as well.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 365996

x86_64-linux

:white_check_mark: 1 package built:

trufflehog


Visualize Impact reduction

Edges with Impacts should be enabled to visualize Impact reduction in the same way as nodes show reduction in their attributes (blue strikethrough).
How much effort would it be to implement this?

In theory, it shouldn't be difficult. I will probably have to define a new edge type (a new shape) in order to manipulate how an edge will be rendered. However, this will of cause result in the fact that older versions of the plugin cannot show the new edge type in graphs and old attack graphs with regular edges won't show the reduction.
Before I will implement this new feature, I will have a look on whether it is possible to manipulate the rendering of an edge without defining a new type to make it compatible with other versions of the plugin. Yet, I cannot guarantee that I find something like that or if this is even possible.

Ok, please have a look.


Need Help!, SSL_read SSL_write between two channels at same time

this problem is never solved since 2 months.
who can coding for me, data transfer between two channel, client and server at same time.
question :

how to i ssl_write correctly WHEN SSL_WRITE RETURN -1, should i retry sending data from current offset
how to send data until complete, i doesnt have idea how to handling ssl_write when return -1, WHEN I SHOULD STOP THE LOOP

i hope someone will help me, coding a code
this is schema
void oneFunction()
{
FD_ISSET
SSL_read (from browser) -> SSL_write (to server)
SSL_read (from server) -> SSL_write (to browser)
//sometimes SSL_READ cannot read from server
}
i mean, i dont want to put TWO THREAD, i want to TRANSFER data between two channels at same time (IN ONE THREAD using FD_ISSET)
who can help me, i really appreciate if someone coding for me,
I can write code, but because I couldn't find a solution with suitable logic, I gave up, I hope you guys can help me, thanks.

You have to use non-blocking sockets and poll/select to check whether data can be read from or written to the network sockets.
This is basic network programming thing. IMO this is not the right place to ask such kind of questions. Please try Stack Overflow or similar kind of general programming help pages.

You have to use non-blocking sockets and poll/select to check whether data can be read from or written to the network sockets.
This is basic network programming thing. IMO this is not the right place to ask such kind of questions. Please try Stack Overflow or similar kind of general programming help pages.

this question is based on ssl, so i think fine. because ssl_read on new version, doesnt have return 0
Old documentation indicated a difference between 0 and -1, and that -1 was retryable. You should instead call SSL_get_error() to find out if it's retryable.

i cant stop the loop;


fix(react-native): prevent app crashes while multipart uploading

Fixes https://github.com/uploadcare/uploadcare-upload-client/issues/306

@shipjs prepare


Why does adding a new commit affect PRs on commits earlier in the stack?

I have commits a - b - c, each with their own PR opened via spr update
I add a new commit a - b - c - d. The a, b, c branches are all updated when I run spr update, triggering CI even though nothing has changed in those branches.

Am I setting up something incorrectly?

I also have the same issue, from manually bisecting versions it looks like this broke between 0.9.0 and 0.8.5.

Okay bisected with:
# rebuild loop
rm bin/*
for p in ./cmd/*; do
    echo $p
    go build -o bin/$(basename $p) $p
done
mv bin/commithook bin/spr_commit_hook
mv bin/reword bin/spr_reword_helper

&&
#!/usr/bin/env bash

set -euo pipefail

set -x

BIN_DIR=`pwd`/bin

export PATH=BIN_DIR/bin:$PATH

# Head over to test repo
cd "../spr-tests"

ID="$RANDOM"

rm -f .git/hooks/commit-msg

git checkout -b "$ID"
for i in $(seq 1 4); do
    touch "${ID}-${i}"
    git add "${ID}-${i}"
    git commit -m "${ID}-${i}"
done

spr update

echo "Hi" >> "${ID}-2"
git add -u "${ID}-2"
git absorb
git rebase -i main

sleep 5

spr update

Bisect is pointing to: https://github.com/ejoffe/spr/commit/e7d2462d3e3d67bbe816b0921bd02f8d562b8356
The commit message might be a good pointer?

Remove need for commit-msg hook
instead use rebase with reword helper to add missing commit-ids

which implies this might be a local config issue?

Okay I actually see this as fixed as of https://github.com/ejoffe/spr/commit/6f93850d1f6436aaa8b9c8fd3455d9d4847503e4 so if you're still around @WesleyYue try rebuilding from master and give it another go. Its looking fixed on my end if I run off HEAD.

Thanks for digging into this! Will check it out.

That said HEAD isn't in a release xD
So I might still leave this open so its easier for folks to find.

Hi Guys, Sorry I haven't had much time recently as have been really busy with my startup.
I have tagged a new release v0.9.3 with the latest master, let me know if this solves your issues.

Thanks for the release, it looks good here!
And no worries about being a bit absent; many thanks for putting together the only stacked PR tool I've found that doesn't push you away from normal git workflows ❤

I think this issue regressed sometime between 0.9.3 and 0.12.2.


Update swift-argument-parser to >= 1.4.0

Addresses #105

cc @awni
Sorry, I'm travelling and a bit slow to respond. Happy to merge and create a release, assuming it has no backwards compatibility issues.

Thanks @pcuenca for the quick fix. If you are worried about back-compatability, I think from: "1.3.0" will also work. CC @davidkoski.
Would be great if you could merge and release with this patch!


Reference error in new version (1.2.0)

I updated the library, but now I get an error ReferenceError: p5 is not defined:

Hi, I removed p5 as a Dependency of the p5-wrapper so everybody can choose which p5 Version he is using.
So you need to add p5 as an Dependency by yourself.
Try:
npm install p5 --save

Yes it's already in my dependencies and looks like the exception throwed from p5.dom

I just removed the addons. (I was not sure if I should add them anyway)
Can you try Version 1.2.1?

I'm sorry I found the problem.
The problem is in p5.dom.js. Someone added 2 functions but in wrong place. This two functions should have been added before }); (line 3118).
https://github.com/processing/p5.js/commit/9b5094a9575108fd4c924a01929590034832c4b0#diff-84dfcaf5d56a24f4ee13a32c644817b0R3118
Those changes was released in 21 Jan in 0.7.3. Then this problem was fixed 23 Jan (https://github.com/processing/p5.js/commit/8c75c7346fdbeca8a22a5d47a1f887394687452d#diff-84dfcaf5d56a24f4ee13a32c644817b0). But this fix were in the next release 0.8.0, which took place after 3 months on 9 Apr!

I started my project in march so I used latest p5.js 0.7.3.
I did not use the library p5.dom.js so the error did not occur.
Then I added react-p5-wrapper it uses own p5 package 0.5.5 so the error did not occur when I started using of p5.dom.
When I updated react-p5-wrapper to 1.2.0 it began to use p5 from my project which is 0.7.3. I have created this Issue.
I have updated p5 to 0.8.0 and error is gone.

Now I update react-p5-wrapper to 1.2.1. So to use dom library I import corresponding file in my sketch.js: import "p5/lib/addons/p5.dom";.
🤯
Thank you.


Logger out of FD (VTOL)

A VTOL flight on current master produces the following warnings:

Log:
https://logs.px4.io/plot_app?log=9d52d3cc-db49-4178-9ce0-2faeb239ff19

As an immediate fix for v1.9.0 we need to reduce the default topics here. https://github.com/PX4/Firmware/blob/d9f8e37288d8e34baac79b32d71862045946534b/src/modules/logger/logger.cpp#L614-L660
Post v1.9.0 let's push on https://github.com/PX4/Firmware/pull/11176 so that the file descriptor limit stops getting in the way.


Add hard fork information to getblockchaininfo RPC endpoint

Tested and the output looks good.

First, my standard question: How did you test this, how do you think we should test this?
Second: what is the behavior after the fork expiration date, assuming the fork is active?
Behavior after the fork expiration date if the fork never activates I don't care about because of the code that says "This software is obsolete" in that case (but it might be worth a comment about that here).

I tested this by running a local testnet node and verifying that it behaved as expected before and after it synched up to the point where our testnet tests triggered the fork.
Expiry is ignored, but I think the code behaves reasonably around it. This always reports triggeredatblock and earliestforktime from pblocktree.forkActivationMap and sizeForkTime, and those structures are guaranteed to be consistent with the expiry,  and found is fixed at threshold + 1 after a successful fork. This means that the hardfork will always look like a success after triggering (not activating) the fork, irrespective of expiry, and will always look in-progress if the fork hasn't been triggered, again irrespective of expiry. The found counter will naturally taper off after expiry and no new blocks are mined advertising support, and there's no signalling for the case where we're past the expiry and failed to trigger.

This command is now my favourite way of seeing BIP109 progress.
I've merged this, but I want to stress that everyone can still provide feedback and bugs etc. Pdpi and the rest of the team will address those issues as normal and with the same priority as if this is not yet merged.
Pdpi; thanks for this nice new feature!


Requirements Document Final Draft

Must give the requirements for the project and execution. Can be one of the recommendations given in the Requirements Document Skeleton ticket, or something of your own creation, just as long as it gives an overview of what needs to be done
Additional Assignee: Mike

It should be fine for our MVP to just accept Jama credentials from the user. We shouldn't need to worry about rolling our own Auth system.
Credentials need to be stored these credentials in a session-dependent way.

Does Express provide an easy way to store values in the session? With a plugin, perhaps?
If not, flesh out requirements for our own storage scheme on the backend.


Feat/anti sybil

#34

power

The voting power is pretty abstract though, so I'm not sure what the minimum should be
Having held 5 bread for at least 10 days for example?
I'll implement this.

Yea it probably make sense to make it a dynamic value that the owner can change.


Docker image

Hi Thomas,
it would be nice if there would be an official Docker image for XMPP webhook.
PS: Thank you for your work!

https://github.com/opthomas-prime/xmpp-webhook/issues/6

Would it be okay for you to keep this issue open until the issue is actually fixed? :wink:

Yes, we can keep it open. The Dockerfile for the production image is not the problem here... This only makes sense if we are able to start a dev environment aswell. Which means we should be able to spin-up a XMPP server aswell (and maybe some default message sourcecs aswell).

This only makes sense if we are able to start a dev environment aswell. Which means we should be able to spin-up a XMPP server aswell (and maybe some default message sourcecs).

You would usually use docker-compose for development, wouldn't you?
And there are various example available already (i.e. these or these).
Then you just would just have to extend the docker-compose.yml with the xmpp-webhook image.
So you would probably add something like:
  webhook:
    image: xmpp-webhook/xmpp-webhook
    ports:
      - '3000:3000'
    environment:
      -<EMAIL_ADDRESS>      - XMPP_PASS=secret
      -<EMAIL_ADDRESS>
or build: . instead image: xmpp-webhook/xmpp-webhook if you want to build the local data.

Yes, thats all correct. It just has to be done :smile:. I value your input :wink:!

The Docker based build is available in https://github.com/opthomas-prime/xmpp-webhook/tree/docker-build
Care to make some quick tests? It should work tho...
I'll create the automated build after this is merged. I need to write some documentation - but i will wait until the other features are done aswell...

Nice. I can't test it right now. Do you have a docker-compose.yml for development?

No, not yet. I need to evaluate which XMPP i'm using for dev first...

I had some spare time and managed to build a compose stack for development in the docker-build branch (https://github.com/opthomas-prime/xmpp-webhook/tree/docker-build). Since i decided to switch to Prosody there is no problem with https://github.com/mellium/xmpp (@SamWhited) atm, so the "test-clients" are working with it...
@alexanderadam Are you able to give me some feedback regarding the compose stack?
@SamWhited Am i doing things right in https://github.com/opthomas-prime/xmpp-webhook/blob/docker-build/dev/xmpp-dev-stack/recipient/main.go :smile:?

@alexanderadam Are you able to give me some feedback regarding the compose stack?

it looks good to me or do you want me to focus on something in particular?
Most important thing is that you can work properly. :wink:

https://github.com/opthomas-prime/xmpp-webhook/blob/docker-build/dev/xmpp-dev-stack/recipient/main.go#L34

Minor nit: Getenv returns a string, so checking for equality with the empty string ("") is more idiomatic.

https://github.com/opthomas-prime/xmpp-webhook/blob/docker-build/dev/xmpp-dev-stack/recipient/main.go#L38

If you name this variable jid you will shadow the package name, which is likely to lead to confusion and errors later. Why Go even allows this is a mystery and constant source of irritation to me.
Otherwise LGTM.


Rewarded Ads re-render StatelessWidget after dismiss only on Android

Plugin Version
google_mobile_ads: ^0.13.3
Steps to Reproduce
I have a screen using StatelessWidget.
When i call function showing Rewarded Ads, after ads dismiss, this screen is re-render (thats mean Widget build(BuildContext context) is called).
Issue is only appear on Android, not appear on iOS.
_loadedAdSuggestion!.show(onUserEarnedReward: (RewardedAd ad, RewardItem reward) {             // do something });
Expected results:
Actual results:

Logs

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5 20G71 darwin-x64, locale en)
• Flutter version 2.2.3 at /Users/tgdong2296/flutter
• Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/tgdong2296/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] Connected device (2 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
• Chrome (web)                • chrome        • web-javascript • Google Chrome 92.0.4515.159
• No issues found!

Hi @tgdong2296, Thanks for filing the issue could you please share a minimal and complete reproducible code sample, The sample code should be ready to run with minimal or no code changes.
Thanks.

i am having the same problem

@Aksoyhlc I verified this on the latest stable 2.5.0 using the latest ads plugin 0.13.4 I don't see build widgets getting rebuilt again. Could you please share a minimal and complete reproducible code along with the exact steps to reproduce the issue.
Thanks

I have same problem. When the rewarded ad shows, back to home screen, then click the app icon, the whole app reloaded.

@PonyPC Please file a new issue with all the details requested in the issue teamplate.


Print the name of the package causing the exception

Adds the name of the package that failed validation to  usage().

Thanks @michalisantoniou6. I have patched this in as v2.0.1 using the new exception format introduced in PR #8.

Thanks @michalisantoniou6. I have patched this in as v2.0.1 using the new exception format introduced in PR #8.


Added hindi language in pluralization rules in index.js file

Code can’t be correct if there’s no tests to keep it so :-)

Code can’t be correct if there’s no tests to keep it so :-)

I will try to add tests :-)

To be frank I don't know how to add tests

To this file https://github.com/airbnb/polyglot.js/blob/master/test/index.js you can add a few test cases with hindi, showing that pluralization is handled correctly.


adds metrics data models and some tests

Adds Metrics classes and tests, including serialization and transport.

Merging even tho flakey test failed. Fixed in https://github.com/newrelic/newrelic-telemetry-sdk-dotnet/pull/52.


Added TDiff

Just a comment. Too bad I couldn't find a proper Diff in Delphi, even this one is horribly slow on big-ish data. Where's C++ lib can diff two 14mb EXEs in 2-3sec and 522mb binary in just 4-5sec. Still it's nice to add a new type of tool to The List. Keep up the good work!


Use PageVisibility HTML5 API

I think it might be a good idea to use PageVisibility API to display notifications only when page is not visible for example, like https://github.com/ttsvetko/HTML5-Desktop-Notifications
Notify.config({
    pageVisibility: true|false
})

This would be actually great. But not sure if it would be suitable for every matchcase


How to change the default placeholder on sending new messages?

I can't find a way to change this placeholder on sending new messages.
My bot is all in English, but this placeholder isn't changeable apparently 😞

Hello
Have you tried change your chatbot culture at Blip Portal?
Check how to do this:
https://forum.blip.ai/t/solved-customize-message-input-placeholder-to-english/1416

Got it now, thanks @Estavaringo 🙂


Doco: Document container types centrally

For each Lagoon container type (nginx, php, etc), there be a central page that links to:

The Docker Images page, eg. https://docs.lagoon.sh/docker-images/nginx/
The relevant part of the Service Types page: https://docs.lagoon.sh/concepts-advanced/service-types/#nginx-php
The GitHub page
The Docker container
A sample docker-compose config

These links should all be in a handy list that's the same format across all the pages, preferably either at the top or the bottom of each page.  Maybe this box belongs on the Docker Images pages?

As a second stage, it might even be worth adding configs for particular container types under https://docs.lagoon.sh/concepts-basics/docker-compose-yml/ (ie. as sub-pages).  But that would be more work, I think.

/assign  @Ayush9026 i will solve this issue


rework install cratedb section

Summary of the changes / Why this is an improvement

Removed ToC for short article
Added admonition for skipping Java Installation
Reworked Install CrateDB Section
use add-apt-repository instead of separate source list
removed sh$ to make copy-pasting easier
add warning, that crateDB starts as single node cluster.

Checklist

[x] CLA is signed

closes #252

thank you for this! (and your other PRs!)
I'm on holiday this week so I don't have time for reviews unfortunately
I just wanted to drop a comment here asking for us to leave in the sh$ prefix for now. we use a number of different standard prefixes throughout the docs (including cr> for the SQL command-line prompt) and I would like to maintain this consistency across the docs
I'm not necessarily against rethinking how we format prompt examples, but I think that any changes to the style guide should be discussed and then implemented separately

side note:I think @infoverload mentioned elsewhere the possibility of adding a "copy to clipboard" button to our examples. perhaps that would address this issue? it would also help with the longer pre-formatted examples that use ... on every line (because that is what is required for running Python doc tests)

ooh, here you go: https://github.com/crate/tech-writing-domain/issues/365

@mechanomi
It originated from an issue I opened here https://github.com/crate/crate/issues/10611
maybe what @mfussenegger mentioned about the doctest is also an option.
I see how adding $sh and cr> might be relevant in some scenarios (I left them in the tutorial I edited yesterday), however it really is an annoyance for install guides, where you probably are just copy-pasting. Most other guides I checked (Mongo, Influx, Timescale, ...) don't have them either. However I see, that you might want to go with consistency, so I can add them again here.


Issue: No Pokemon displaying

Afternoon!
My server is running smoothly running 30 accounts around my area. Showing fine on my PC and Safari for iOS but nothing via the app. Any ideas?
Thanks

try the newest version it's fixed .
https://github.com/istornz/iPokeGo/issues/136

I am assuming the newest version is not the one in releases? It that's so, ill need to hold off as I cannot compile my own on windows (please correct me if i am being an idiot).
Thanks for the reply.

The last release is 2.0.1.
I can't install it cause cydia impactor give me an error as service is not available du to a maintenance.

are we referring to iPokeGo/Releases/V2.0 (current)/iPokeGo2_current_version.ipa ? As this is the latest i could find without compiling a new one. I installed this aprox. 1 hours ago and this was last updated yesterday?
Thanks

https://github.com/istornz/iPokeGo/releases

<3 sorted. Thanks a lot bud!


Fix dependencies in SWIFTPM_LLBUILD_FWK case

The changes in #6807 can actually break in this case, moving the new dependency to the correct place.

@swift-ci please smoke test


Fix Jest and Prettify Checks

Description

Lint is failing on Jest and Prettify Checks for this repo.  This PR fixes them.
These changes were created by running the following commands,
npx prettier --write .
npm run jest -- -u

Release note

Key changed/added classes in this PR

web-console/README.md
web-console/console-config.js
web-console/src/ace-modes/hjson.js

This PR has:

[x] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

Thanks! It would be great to at the linting as part of the CI checks so we don’t have to worry about this going forward. Do you think you could take a stab at it?


fix logsigmoid_backward batching rule

https://github.com/pytorch/pytorch/pull/84892 will fix this


Ability to search hidden files inside project after selecting it

Telescope project plugin has an option to do that:
require('telescope').setup {
  extensions = {
    project = {
      hidden_files = true -- default: false
  }
}

Would be nice to have this here too.

For me, hidden files are actually shown in the Telescope prompt.
Would it instead be possible to pass an option to do the opposite of that, i.e. hide the . files? Or more generally, add an option to pass arbitrary options to Telescope find_files as a Lua table?

I added a new setup option to show hidden files, please let me know if both ur issues have been fixed.
@gikari @jonasstr

This seems to be working as expected, thank you!

I added a new setup option to show hidden files, please let me know if both ur issues have been fixed.
@gikari @jonasstr

I use Lunarvim, where it is a built-in plugin, so she lsp does not show the option you've just added, but setting it anyway works.

Okay, I will add the option to lunarvim too.


[Bug]  Hi, I updated my hass (in raspi4) to 2023.6.1 and the integration doesn't works with new hass. Please fix it. Thanks.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Add screenshots of the entities and their attributes.
Installed version
Which version of the component are you running?
Additional context
Add any other context about the problem here.

Please have a look AT issue #130 a workaround is avail able.

Hi Jeroen,
Same issue for me.
Here's the log:
This error originated from a custom integration.
Logger: homeassistant.loader
Source: custom_components/smart_irrigation/sensor.py:124
Integration: Smart Irrigation (documentation, issues)
First occurred: June 9, 2023 at 15:47:21 (8 occurrences)
Last logged: 09:41:37
Unexpected exception importing platform custom_components.smart_irrigation.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/smart_irrigation/sensor.py", line 102, in
class SmartIrrigationSensor(SmartIrrigationEntity):
File "/config/custom_components/smart_irrigation/sensor.py", line 124, in SmartIrrigationSensor
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

Just replace in custom_components/smart_irrigation/sensor.py:124 line
@asyncio.coroutine
with
<EMAIL_ADDRESS>
Hi Jeroen, Same issue for me. Here's the log:
This error originated from a custom integration.
Logger: homeassistant.loader Source: custom_components/smart_irrigation/sensor.py:124 Integration: Smart Irrigation (documentation, issues) First occurred: June 9, 2023 at 15:47:21 (8 occurrences) Last logged: 09:41:37
Unexpected exception importing platform custom_components.smart_irrigation.sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/smart_irrigation/sensor.py", line 102, in class SmartIrrigationSensor(SmartIrrigationEntity): File "/config/custom_components/smart_irrigation/sensor.py", line 124, in SmartIrrigationSensor @asyncio.coroutine ^^^^^^^^^^^^^^^^^ AttributeError: module 'asyncio' has no attribute 'coroutine'

Hi,
Just replace in custom_components/smart_irrigation/sensor.py:124 line
@asyncio.coroutine
with
<EMAIL_ADDRESS>


mac  m3  orbstack x86 emotation 编译错误

Is this a regression?
Yes
Description
mac  m3   x86 模拟编译错误，改为单核编译才能通过
v4.0.0  ubuntu 22.04
Please provide a link to a minimal reproduction of the bug
No response
Screenshots or videos
No response
Please provide the version you discovered this bug in (check about page for version information)
No response
Anything else?
No response

只有 libunwind 编译错误，其他的编译正常， 编译log  如下：
ar: u' modifier ignored since D' is the default (see U') ar: u' modifier ignored since D' is the default (see U')
ar: u' modifier ignored since D' is the default (see `U')
ar: .libs/libunwind-setjmp.lax/lt2-siglongjmp.o: No such file or directory
make[5]: *** [Makefile:2755: libunwind-setjmp.la] Error 1
make[4]: *** [Makefile:2064: all] Error 2
make[3]: *** [Makefile:618: all-recursive] Error 1


postgresqlPackages.pg_auto_failover: 1.4.2 -> 1.5.1

Motivation for this change
https://github.com/citusdata/pg_auto_failover/releases/tag/v1.5.1
Things done

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

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

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

Result of nixpkgs-review pr 117641 at 78e624c7 run on x86_64-linux 1

1 package built successfully:

postgresqlPackages.pg_auto_failover (postgresql11Packages.pg_auto_failover)

1 suggestion:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix:16:3:
   |
16 |   installPhase = ''
   |   ^


Use TRITON_CACHE in setup.py so that .triton must not have to be in home directory of user

This can be useful if user has restriction on size of home directory or inside docker like container solution where $HOME may be /
and then build fails.

I think this is already there as TRITON_HOME. So, closing this.


jemalloc build fails on aarch64-darwin

Describe the bug
python3Packages.tensorflow does not build aarch64-darwin as of eac07edbd20ed4908b98790ba299250b5527ecdf.
Steps To Reproduce
Steps to reproduce the behavior:

Check out eac07edbd20ed4908b98790ba299250b5527ecdf.
nix-build -A python3Packages.tensorflow on aarch64-darwin

Expected behavior
The build to succeed or the package to be marked as broken.
Screenshots
n/a
Additional context
Full build log: https://gist.github.com/samuela/42e5da41bb7a2e32842bd3de3777fced
Notify maintainers

@jyp @abbradar @ndl @veprbl @danieldk @timokau
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.2.0, macOS 12.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.4`
 - channels(samuelainsworth): `"darwin, home-manager, nixpkgs-21.11pre330734.5cb226a06c4"`
 - channels(root): `"nixpkgs-21.11pre330734.5cb226a06c4"`
 - nixpkgs: `/Users/samuelainsworth/.nix-defexpr/channels/nixpkgs`

Can you try with 6bda212f691a94f5b16385a432e86b9e0c98cbf5?

Ah didn't realize this was a jemalloc failure at first. Sure, here's the result on https://github.com/NixOS/nixpkgs/commit/6bda212f691a94f5b16385a432e86b9e0c98cbf5:
❯ nix-build -A jemalloc
error: Package ‘compiler-rt-libc-10.0.1’ in /Users/samuelainsworth/dev/nixpkgs/pkgs/development/compilers/llvm/10/compiler-rt/default.nix:95 is marked as broken, refusing to evaluate.

Overriding with NIXPKGS_ALLOW_BROKEN=1 gives me a more substantial failure:
...
[ 87%] Building C object lib/builtins/CMakeFiles/clang_rt.builtins_arm64_osx.dir/clear_cache.c.o
[ 87%] Linking C static library libclang_rt.builtins_arm64_osx.a
[ 87%] Built target clang_rt.builtins_arm64_osx
make: *** [Makefile:136: all] Error 2
error: builder for '/nix/store/7fxzrv6n5fglzh4wjvcg7xqd7zd43rf1-compiler-rt-libc-10.0.1.drv' failed with exit code 2;

Full build log: https://gist.github.com/samuela/6679addeea17f965c00b6bce9392ad7c

LLVM 10.x is not compatible with aarch64-darwin and we can't use LLVM 11.x or later because of this upstream bug: https://github.com/jemalloc/jemalloc/issues/2091
So this issue is blocked until the upstream fixes this.

ISTM there is another issue present as aarch64-darwin as well, wrong detection of lg-vaddr - see https://github.com/jemalloc/jemalloc/issues/1997 - adding "--with-lg-vaddr=48" to configureFlags seems to help to build jemalloc with newer LLVM, but I am still getting test failures on aarch64-darwin.


 I will check it out tonight and merge asap :smile:

Merged and released in 0.17.0, thanks for the contribution! :smile:


cgroup fs in pouch container is mounted and read-only forcely

Ⅰ. Issue Description
cgroup fs in pouch container is mounted and read-only.
Ⅱ. Describe what happened
pouch run a container, process in container can not see cgroup paths in host, and can not make sub-dirs. This is unfriendly to containerized systems such as cluster-manager-system(using cgroup to limit task resources), or jvm(using cpushare to support  multi-tenant) 。
Ⅲ. Describe what you expected to happen

pouch provide a flag such as --cgroup when create container. users can specify --cgroup=host, then cgroup path in container is the same as that in host. If not specified, cgroup fs is mounted, but is not read-only.
If cgroup is mounted, processes in container can not change values in the root path cgroup,(/sys/fs/memory/memory.limit_in_bytes, etc). but they can make dirs under cgroup root path, and set limits to these sub-dirs.

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?
no
Ⅵ. Environment:

pouch version (use pouch version): 1.0.0
OS (e.g. from /etc/os-release): 7.2
Kernel (e.g. uname -a): 4.9.79-009.ali3000.alios7.x86_64
Install tools: yum
Others:

https://github.com/alibaba/pouch/pull/2552  has fix the bug

@shadowgogo , I have consider what you said, if I follow right, are you want to support container without the cgroup support, but you want see the host cgroup. For pouch side, I think it not good, since it will take lots of risk, but if you trust your environment, it is another topic.


Investigate missing storage class when storageClassName is not present on the source side

For background info we saw a similar issue with Velero:  https://github.com/vmware-tanzu/velero/issues/1797

Tracking bz: https://bugzilla.redhat.com/show_bug.cgi?id=1899692


Issue with new triggerRefresh function after Barba JS

Bug Report
Hi Ben,
Some months ago I opened an issue for when using Barba JS and Sprig which was resolved. The solution back then was to run something like htmx.process($sprigComponent);.
Now on the same website which has this working logic I am using in another Sprig component, the new {% do sprig.triggerRefresh('#video-popup', { videoID: moqTale }) %} which updates a specific Sprig component. This all works fine, but when coming from another page there are some issues.
Page A: Uses the triggerRefresh
Page B: A regular Sprig component, nothing special.
Page C: Has 0 Sprig components
Page C > B: Sprig working completely fine since it is refreshed using the htmx.process() function
Page C > A: I get a JS error when letting Sprig do its work (htmlx.process() is being triggered so it should refresh on load) Uncaught ReferenceError: htmx is not defined at document.body.addEventListener.once
Page B > A: I get a JS error when letting Sprig do its work (htmlx.process() is being triggered so it should refresh on load) TypeError: Cannot read properties of null (reading 'dispatchEvent')     at Object.he [as trigger]
When going from Page C or B to Page A when the {% do sprig.triggerRefresh('#video-popup', { videoID: moqTale }) %} is not in the code, sprig is actually working, but then my functionality is gone which refreshes the video-popup sprig component.
Initially on a normal page load, the logics are working fine for Page A
Plugin Version
2.12.0
Craft CMS Version
4.11.4
PHP Version
No response

Can you please share a stripped down component so I can test it out locally? I'm specifically looking for the placing of the htmx.process() command.

Here is the working logic where the htmx.process() is happening.
barba.init({
    timeout: 10000,
    resetNativeScroll: true,
    sync: false,
    transitions: [{
        name: 'fade',
        beforeEnter: function beforeEnter(data) {
            reloadSprig();
        },
    }]
})

const reloadSprig = () => {
    const $sprigComponents = document.querySelectorAll('.sprig-component');

    if($sprigComponents) {
	$sprigComponents.forEach($sprigComponent => {
	    htmx.process($sprigComponent);
	});
    }
}

The page with the components
{% extends '_layouts/site' %}

{% set insights = craft.entries.section('insights').orderBy('postDate desc').all() ?? null %}

{% block videoPopup %}
    {{ sprig('_sprig/_video-popup.twig', {
    }, {
        'id': 'video-popup',
        's-trigger': 'refresh'
    }) }}
{% endblock videoPopup %}

{% block main %}
    {{ sprig('_sprig/_insights.twig') }}

            {% for insight in insights %}

{{insight.customTitle|nl2br}}

            {% endfor %}

{% endblock %}

{% block _inline_js %}{% endblock %}

The component with the triggerRefresh function
{% set insights = craft.entries.section('insights').orderBy('postDate desc').all() ?? null %}

{% set hasVideo = false %}
{% set moqTale = moqTale ?? null %}

{% if insights ?? null %}
    {% for insight in insights %}
        {% set insightImage = insight.customImage.one() ?? null %}
        {% set insightVideo = insight.vimeoVideo.one() ?? null %}
        {% set isDefault = insight.type.handle == 'default' %}

        {% if insight.type.handle == 'moqTale' %}
            {% set hasVideo = true %}
            <input sprig type="radio" name="moqTale" value="{{insightVideo.vimeoID}}" id="moqTale-{{insightVideo.vimeoID}}" class="hidden" {% if insightVideo.vimeoID == moqTale %}checked{% endif %}/>
        {% endif %}
    {% endfor %}

    {% if hasVideo %}
        {% do sprig.triggerRefresh('#video-popup', { videoID: moqTale }) %}
    {% endif %}
{% endif %}

Component to refresh
{% set videoID = videoID ?? null %}

{{ dump(videoID) }}

JAVASCRIPT
Here is the logic that works for other sprig component where the htmx.process() is happening inside JS.
barba.init({
    timeout: 10000,
    resetNativeScroll: true,
    sync: false,
    transitions: [{
        name: 'fade',
        beforeEnter: function beforeEnter(data) {
            reloadSprig();
        },
    }]
})

const reloadSprig = () => {
    const $sprigComponents = document.querySelectorAll('.sprig-component');

    if($sprigComponents) {
	$sprigComponents.forEach($sprigComponent => {
	    htmx.process($sprigComponent);
	});
    }
}

Regarding going from page C to A, my guess is that the sprig.triggerRefresh function, which ends up outputting htmx.trigger, is being called before htmx has been loaded into the page. How does Barba JS load the htmx file when going from a page without it to one that includes it?
Please show me the full error when going from page B to A, so I can investigate what might be going on.

Just had the thought that a simple fix would be to force load htmx on every page, regardless of whether it contains a Sprig component, as follows.
{% do sprig.registerScript %}

I tried your last possible fix by using {% do sprig.registerScript %} to load htmx on every page, which seems like a logic solution. It looks like that issue from the {% do sprig.triggerRefresh() %} is gone now, so thanks for that!
 As you can see in my example code I added a block outside of the main, well that block was called outside of the barba container.
So by solving that now both the errors of htmx is not defined and dispatchEvent are solved!

Glad to hear it!


Why number of page breaks changes when read the same document two times

I have python code that generates one .docx file, and I need to check where are soft page breaks and hard page breaks. I use this script:
import docx

document= docx.Document('REPORT.docx')

for p in document.paragraphs:
    for run in p.runs:
        if 'lastRenderedPageBreak' in run._element.xml:
            print 'soft page break found at run:', run.text
        if 'w:br' in run._element.xml and 'type="page"' in run._element.xml:
            print 'hard page break found at run:', run.text

The problem is when I read the generated document immediately after it's created, the printed result from the code above is not correct(number of soft page breaks is lower than real soft page breaks in the document). But if I manually open the REPORT.docx, type in one single letter and after that delete it and save the document(Actually there is nothing changed in it), when executing the script again the number of soft page breaks now is correct. I also noticed that file size is getting bigger after this.
Can someone explain why is this happening? I want to check when insert image, is it on the same page or (if it's too large) is automatically moved to the next page when generating REPORT.docx file. So if there is another way to do that, please tell me.

I have python code that generates one .docx file, and I need to check
where are soft page breaks and hard page breaks. I use this script:
|import docx document= docx.Document('REPORT.docx') for p in
document.paragraphs: for run in p.runs: if 'lastRenderedPageBreak' in
run._element.xml: print 'soft page break found at run:', run.text if
'w:br' in run._element.xml and 'type="page"' in run._element.xml:
print 'hard page break found at run:', run.text|
The problem is when I read the generated document immediately when it
is created, the printed result from the code above is not
correct(number of soft page breaks is lower than real soft page breaks
in the document). But if I manualy open the REPORT.docx, type in one
single letter and after that delete it and save the document(Actually
there is nothing changed in it), when executing the script again the
number of soft page breaks now is correct.
Can someone explain why is this happening?

I think it's because the page breaks don't actually get rendered until
you load the file in Word, and they don't exist in the file for you to
find until you've saved the text.  Page breaks are dependent upon many
factors including your page size, which can be altered by the paper size
you are using in your printer, so it's really hard to calculate them
outside of a defined context.   Your code isn't going to find something
in the XML that hasn't been created yet.
David
--
David Woods
Pronouns:  he, him, his

Thank you!
My problem is when REPORT.docx is generated on some pages there are images which are mooved to the next page because are too large to fit to the previous one.
I want to check in real time whether the image, has been moved to the next page to reduce it's size until fit to the current page.
Is there some trick to do this?

As David says, you cannot accomplish what you want with python-docx alone. It is the Word rendering engine that is adding the lastRenderedPageBreak elements when you load (and thereby render) the document in Word.
Perhaps a VBA or COM32 solution would allow something like this.


Refactoring evaluation metrics

[x] Remove all MAE metrics and TSD (leave only DL and DAY_HOUR_EMD).
[x] DAY_HOUR_EMD is renamed to CIRCADIAN_EMD
[x] Reimplement CIRCADIAN_EMD
[ ] Refactor SimilarityEvaluator

@david-chapela I've just pushed updates and leave the metrics until you reimplement the circadian EMD. Then, I can refactor the rest of SimilarityEvaluator just as DL computation and get rid of the whole class.

@iharsuvorau, I implemented the circadian one in the Log Similarity Metrics repository.
Not extensively tested, so let me know if you get any error. It works in the same way as the other EMD metrics.