Arbitrary minting could become an attack if ItemDeposit is not 0

The NFT pallet calls to substrate::frame::uniques pallet to perform operations towards NFTs.
In terms of minting (and create_collection is similar), the design logic of the unique pallet would require reserving(code linked) a certain amount from the collection owner's free balances.
The intended design in the NFT pallet however allows anyone to mint an item in this collection if the collection type has the minting permission. This would lead to a possible attack that anyone can mint NFT items using the collection owner's money causing the owner's fund to be locked if the item owner keeps it.
The above observation is communicated to the development team. The current approach is to set ItemDeposit as 0 all the time to avoid the potential hazard. The same should be done with CollectionDeposit
It is then strongly recommended to enforce condition checking or test cases against runtime to prevent accidental errors making these constants non-zero. Up-to-date documentation of this assumption is a must too.

I would like to ask, is there a reason why CollectionDeposit needs to be set to 0? I don't think there is an issue with it. Thanks

I would like to ask, is there a reason why CollectionDeposit needs to be set to 0? I don't think there is an issue with it. Thanks

If CollectionDeposit is not 0, the user will be charged the amount CollectionDeposit from his account balance associated with pallet::uniques when creating a collection. I believe the account balances used by pallet::uniques are different from the MultiCurrency (ORML lib) used on the chain.
Thus, if CollctionDeposit is not 0, it will lead to either an unexpected collection-creation failure or the collction owner being charged twice.
Pleas correct me if my understanding was not correct. Thanks.

The NFT pallet doesn't work with balances. This task is delegated to the uniques pallet. And uniques pallet is configured to use only one currency, KSM. The NFT Marketplace pallet is configured the same way. So if CollectionDeposit is not set to 0, the collection owner pays (more precisely, the amount is reserved) CollectionDeposit in KSMs. I looked at the implementation and an unexpected failure or charging the amount twice shouldn't happen.

KSM is handled by the Tokens pallet because it's not a native token in our chains. So CollectionDeposit is not in native currency.


React 0.14

Is the use of is="..." going to break with React 0.14?
http://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html#notable-enhancements
"is" is listed as a support HTML attribute now.

Do you know what the is="..." attribute does? I cant find anything about it.
Also, since the react-map-styles is doing string replace, it wont break anything unless you are trying to use is. I have been trying to come up with a more long-term solution other than hijacking it anyways.

no idea, i just was reading the new react documentation and thought of
this.
i meant more of "conflict" than break. i'll see if i can lookup anything
about "is"
On Tue, Sep 29, 2015 at 8:39 PM case<EMAIL_ADDRESS>wrote:

Do you know what the is="..." attribute does? I cant find anything about
it.
Also, since the react-map-styles is doing string replace, it wont break
anything unless you are trying to use is. I have been trying to come up
with a more long-term solution other than hijacking it anyways.
—
Reply to this email directly or view it on GitHub
https://github.com/casesandberg/reactcss/issues/22#issuecomment-144273561
.

There is another issue related to React 0.14. Should I post it here or create a new issue?

Seems like react is enforcing that all react components extend React.Component directly.
class MyComponent extends ReactCSS.Component {
  render(){
    return <div />
  }
}

throws this warning:
Warning: MyComponent(...): React component classes must extend React.Component

Found out that the is="..." syntax is for web component support and not recommended by Facebook so we should be fine on that front.
https://twitter.com/soprano/status/651880693748899840

Looking into the component classes error as we speak.

Don't know if the component classes issue is really an issue?
The warnings appear, because reactcss has a dependency to react 0.13. That version does not have "isReactComponent" flag set for the React.Component class from which ReactCSS.Component inherits. When I updated reactcss' dependecy to react 0.14, the warnings disappeared and everything works just fine.
Here is the code that React uses to validate the inheritance:
warning(Component.prototype && Component.prototype.isReactComponent || !canInstantiate || !(inst instanceof Component), '%s(...): React component classes must extend React.Component.', Component.displayName || Component.name || 'Component')

@casesandberg sorry for blending this and https://github.com/casesandberg/reactcss/issues/23 together. @jhytonen is right, I upgraded to the version on master and the warnings etc. have gone away. everything seems to be working well.

@casesandberg Would it be possible for you to release a version of reactcss with the dependency fixed?

Dependency has been fixed in<EMAIL_ADDRESS>


haxe hide.hxml fails

When I follow th readme instructions and try and run the command haxe hide.hxml I get the following errors:
hide/view/l3d/Gizmo.hx:408: characters 32-41 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/l3d/Gizmo.hx:408: characters 48-63 : Unknown identifier : AbsoluteUnbound
hide/view/l3d/Gizmo.hx:408: characters 72-80 : Unknown identifier : Absolute
hrt/prefab/l3d/MeshSpray.hx:217: characters 10-29 : Null<h3d.scene.MeshBatch> has no field alwaysSyncAnimation
hrt/prefab/l3d/MeshSpray.hx:246: characters 10-29 : h3d.scene.Object has no field alwaysSyncAnimation
hrt/prefab/l3d/Spray.hx:85: characters 10-29 : h3d.scene.Object has no field alwaysSyncAnimation
hrt/prefab/fx/FX.hx:112: characters 37-56 : Unknown identifier : alwaysSyncAnimation
hrt/prefab/fx/Emitter.hx:552: characters 10-20 : h3d.scene.MeshBatch has no field calcBounds
hrt/prefab/Light.hx:146: characters 63-74 : h3d.scene.Object should be Null<h3d.Vector>
hrt/prefab/Light.hx:146: characters 63-74 : ... For optional function argument 'dir'
hrt/prefab/Light.hx:176: characters 31-56 : Type not found : h3d.pass.CascadeShadowMap
hide/view/CameraController.hx:42: characters 33-42 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/CameraController.hx:42: characters 45-60 : Unknown identifier : AbsoluteUnbound
hide/view/CameraController.hx:49: characters 34-43 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/CameraController.hx:49: characters 46-54 : Unknown identifier : Absolute
hide/view/CameraController.hx:88: characters 33-42 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/CameraController.hx:88: characters 45-53 : Unknown identifier : Absolute
hide/view/l3d/Gizmo.hx:406: characters 63-72 : hxd.Window has no field mouseMode (Suggestion: mouseLock)
hide/view/l3d/Gizmo.hx:406: characters 76-84 : Unknown identifier : Absolute

are you up to date on your heaps version?
https://github.com/HeapsIO/heaps

Also fails using latest heaps from git (1.10.0), will show this errors
hrt/prefab/fx/BaseFX.hx:194: characters 29-44 : Null<h3d.scene.MeshBatch> has no field instancedParams hrt/prefab/fx/BaseFX.hx:196: characters 24-54 : Module hxsl.Cache does not define type BatchInstanceParams hrt/prefab/fx/BaseFX.hx:197: characters 12-27 : Null<h3d.scene.MeshBatch> has no field instancedParams hrt/prefab/l3d/Trails.hx:739: characters 16-28 : h3d.Buffer has no field uploadFloats hrt/prefab/fx/Emitter.hx:1295: characters 20-32 : Field addBoundsRec is declared 'override' but doesn't override any field (Suggestion: getBoundsRec) hrt/prefab/l3d/HeightMap.hx:1166: characters 4-36 : Type not found : hxd.BufferFormat hrt/prefab/l3d/HeightMap.hx:1168: characters 4-33 : Type not found : hxd.BufferFormat hrt/prefab/l3d/HeightMap.hx:1170: characters 4-29 : Type not found : hxd.BufferFormat hrt/prefab/l3d/HeightMap.hx:1172: characters 4-26 : Type not found : hxd.BufferFormat hrt/prefab/l3d/HeightMap.hx:1165: characters 7-13 : Variables of type Void are not allowed hrt/prefab/l3d/HeightMap.hx:1173: characters 70-76 : Void has no field stride hrt/prefab/l3d/HeightMap.hx:1173: characters 33-76 : Float should be Int hrt/prefab/l3d/HeightMap.hx:1173: characters 33-76 : ... For optional function argument 'length' hrt/prefab/l3d/HeightMap.hx:1190: characters 37-43 : Void should be Int hrt/prefab/l3d/HeightMap.hx:1190: characters 37-43 : ... For function argument 'stride' hrt/prefab/l3d/Trails.hx:433: characters 13-45 : Type not found : hxd.BufferFormat hrt/prefab/l3d/SplineMesh.hx:107: characters 26-42 : Type not found : hxd.BufferFormat

I'm also experiencing this same issue.

I'm getting different error while building:
haxe/lib/heaps/git/hxd/res/Image.hx:318: characters 22-29 : Class<format.png.Tools> has no field extract (Suggestion: extract32)

You need git version of format lib (https://github.com/HaxeFoundation/format)

You need git version of format lib (https://github.com/HaxeFoundation/format)

Works!
Missed it because it wasn't mentioned in readme.
Thank you!

Hi, this is still an issue when using:
haxelib git heaps https://github.com/HeapsIO/heaps.git

As haxelib installs the non git version of format (3.6)
Running
haxelib git format https://github.com/HaxeFoundation/format
haxelib update

Does fix it.

I attempted to build HIDE using the instructions.  I was given the error message:

hrt/impl/Gradient.hx:5: characters 8-19 : Type not found : h3d.Vector4

Is there a library that I'm missing?  I thought that h3d had a Vector but I don't know where to find a Vector4.

You need latest heaps master to compile hide.
Le lun. 18 déc. 2023 à 02:48, rbobka @.***> a écrit :

I attempted to build HIDE using the instructions. I was given the error
message:
hrt/impl/Gradient.hx:5: characters 8-19 : Type not found : h3d.Vector4
Is there a library that I'm missing? I thought that h3d had a Vector but I
don't know where to find a Vector4.
—
Reply to this email directly, view it on GitHub
https://github.com/HeapsIO/hide/issues/227#issuecomment-1859414223, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHZXQGNTPV5BE5TU2KCZD3YJ6OFLAVCNFSM6AAAAAASRBEQ6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGQYTIMRSGM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thank you Nicolas, after I posted this I did a deep dive and saw that you had made some changes to Heaps in the past month including vectors.  I guess my real problem is that haxelib update does not seem to be updating my libraries (even though it says it is).

I haven't made a haxelib release recently. Will do later this year or early
next year.
Le lun. 18 déc. 2023 à 14:25, rbobka @.***> a écrit :

Thank you Nicolas, after I posted this I did a deep dive and saw that you
had made some changes to Heaps in the past month including vectors. I guess
my real problem is that haxelib update does not seem to be updating my
libraries (even though it says it is).
—
Reply to this email directly, view it on GitHub
https://github.com/HeapsIO/hide/issues/227#issuecomment-1860492930, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHZXQFXCBL7SRWZQDXZ6XTYKA723AVCNFSM6AAAAAASRBEQ6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQGQ4TEOJTGA
.
You are receiving this because you commented.Message ID:
@.***>

remove all package

haxelib remove heaps
haxelib remove castle
haxelib remove hxbit
haxelib remove hscript
haxelib remove hxnodejs
haxelib remove domkit
haxelib remove hx3compat

install all package

haxelib git heaps https://github.com/HeapsIO/heaps
haxelib git castle https://github.com/ncannasse/castle
haxelib git hxbit https://github.com/ncannasse/hxbit
haxelib git hscript https://github.com/HaxeFoundation/hscript
haxelib git hxnodejs https://github.com/HaxeFoundation/hxnodejs
haxelib git domkit https://github.com/HeapsIO/domkit
haxelib git hx3compat https://github.com/HaxeFoundation/hx3compat

work for me

Yeah works again since format 3.7.0 has been released since then


Exception while installing dependencies in Ubuntu 18.04

I'm trying to build CARLA in Ubuntu 18.04 by following the documentation.
While entering the following commands, an exception occurs,
sudo apt-get install build-essential clang-8 lld-8 g++-7 cmake ninja-build libvulkan1 python python-pip python-dev python3-dev python3-pip libpng-dev libtiff5-dev libjpeg-dev tzdata sed curl unzip autoconf libtool rsync libxml2-dev &&
pip2 install --user setuptools &&
pip3 install --user setuptools &&
pip2 install --user distro &&
pip3 install --user distro

Please help. Thanks in advance!

Hey. Could be related to link. But this seems to python issue and you ll probably have better luck in finding an answer on stackoverflow.

Agreed. Please try StackOverflow for this particular issue.


A temporary issue on tutorials

It looks like the latest version of torchaudio (v.1.10) cannot be imported correctly within colab. The colab and torchaudio team are aware of it:
https://github.com/googlecolab/colabtools/issues/2417
The temporary solution consists of adding
pip install torchaudio -f https://download.pytorch.org/whl/cu113/torch_stable.html
before installing speechbrain.

@mravanelli , This solves the problem:
%pip install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio==0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html

right, also simply this:
pip install torchaudio -f https://download.pytorch.org/whl/cu113/torch_stable.html
I really hope the Colab team will fix this issue soon. It is quite annoying.

Fyi, I faced the same problem outside Colab, when trying to use Speechbrain on a machine without GPU.
The workaround suggested above solved the problem for me.

I temporarily modified all the tutorials with the fix posted above. Everything seems to work. I will remove that once Colab will fix the incompatibility issue.

The colab team just fixed this issue. I removed all the temporary patches from the tutorial. We can now close this issue!


extend bookstore sample application to write to a database

The bookwarehouse could record

Do we care what type of database? Redis or MySQL?
Do we deploy the database as a separate k8s service, or a sidecar of bookstore?

No we don't care what type of database
Separate Kubernetes service to model a closer to real world scenario

Let's use Redis since the dapr demo Sneha did uses Redis and we've had a few end users play with the Redis in their apps
Separate Kubernetes service to model a closer to real world scenario where we have apps we may want to upgrade that talk to a database running as a separate instance

I suggest not using Redis in the demo for a few reasons:

Redis protocol uses TCP as the transport and doesn't behave any differently than regular TCP traffic, for which we have enough coverage.
Redis uses terminology that is insensitive to many. While they have made an effort to provide alternatives, we don't want to be offending anyone, and using Redis in our demo opens the door for unnecessary distractions that none of us want to deal with.
We can get additional coverage by including mySQL or PostgreSQL since these are server-first protocols, and OSM has additional logic to support server-first protocols. In server-first protocols, the server initiates the first byte of data after a connection handshake.


HTTP Error 503 - Consistently fails to download a given YouTube.com video

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.03.09. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2019.03.09

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

$ youtube-dl --verbose https://www.youtube.com/watch?v=mWcwf3_FKSs
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?v=mWcwf3_FKSs']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.09
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-46-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.4, ffprobe 3.4.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] mWcwf3_FKSs: Downloading webpage
[youtube] mWcwf3_FKSs: Downloading video info webpage
[youtube] mWcwf3_FKSs: Downloading MPD manifest
WARNING: [youtube] mWcwf3_FKSs: Skipping DASH manifest: ExtractorError(u'Failed to download MPD manifest: HTTP Error 500: Internal Server Error (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://r3---sn-j5aa2a0n-53ae.googlevideo.com/videoplayback?ipbits=0&expire=1552467463&mime=video%2Fmp4&itag=134&ei=p3GIXKzfLfOQ3LUP_ZiHwAk&mv=m&dur=3423.060&initcwndbps=1300000&mn=sn-j5aa2a0n-53ae%2Csn-a5meknlz&requiressl=yes&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cotfp%2Cpl%2Crequiressl%2Csource%2Cexpire&id=o-APkWDnUHFBV68Y-ilQi6PyTx_LpRS-nhA-XU9lw1S5Tf&ms=au%2Conr&mt=1552443897&gir=yes&pl=16&signature=0370A13653F0A308CE09C3B97B7CEBD7C794052D.4EAB08F66EE7D1A882768E63C823FC0469903B7B&keepalive=yes&ip=<IP_ADDRESS>&key=yt6&mm=31%2C26&aitags=133%2C134%2C160&clen=109885750&source=youtube&c=WEB&fvip=3&otfp=1&lmt=1507483050476049&ratebypass=yes'
[download] Destination: Tales Of The Unexpected 059 05x08 pattern of guilt-mWcwf3_FKSs.f134.mp4
[download]   5.7% of 104.80MiB at 216.26KiB/s ETA 07:47[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 1 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 2 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 3 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 4 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 5 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 6 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 7 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 8 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 9 of 10)...
[download] Got server HTTP error: HTTP Error 503: Service Unavailable. Retrying (attempt 10 of 10)...
ERROR: giving up after 10 retries
Traceback (most recent call last):
  File "/home/alan/.local/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 341, in real_download
    establish_connection()
  File "/home/alan/.local/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 182, in establish_connection
    raise RetryDownload(err)
RetryDownload
<end of log>

Description of your issue, suggested solution and other information
The YouTube.com video as shown in the error log consistently fails to download with an HTTP Error 503.  I have tried running it as an admin, and normal user, but it makes no difference.
I can download other YouTube videos without any issues.
Thanks,
Alan.

Hi,
This was marked as a duplicate of:
https://github.com/ytdl-org/youtube-dl/pull/15840
but that seems to relate to a new feature request?
Thanks,
Alan.

Nothing to do with that issue. Server side youtube error, select another format.


support xlsx upload in viyacaddy

Need to support xlsx upload in viyacaddy

This will require other licensed drivers.
So closing it for now


feat: add tab component

because the Tabs is a import name by rc-tabs library, seems it report error on declaration

any reason you want to call it Tab instead of Tabs? and without the !important; rule, the styles are not applied properly?

because the Tabs is a import name by rc-tabs library, seems it report error on declaration;
i just directly copied the styles from sso-request, yeah you're right, i can update;

any reason you want to call it Tab instead of Tabs? and without the !important; rule, the styles are not applied properly?

because the Tabs is a import name by rc-tabs library, seems it report error on declaration;
i just directly copied the styles from sso-request, yeah you're right, i can update;


32-bit libraries for Linux installation

Just a note that some libraries are needed in addition to libc-dev for Linux installations:
https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili

Thanks, I added gcc-multilib to the list of dependencies for Ubuntu.

The X11 thing, I think, is a red herring because you can issue
--disable-hlmtools --disable-hslab when configuring, and you won't need
X11 headers (or at least that used to be true).


Fix: Fix parse error on steps regarding 'target' and added working

description

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


add first prototype

Signed-off-by: Erkan Erol<EMAIL_ADDRESS>Release note:

Pull Request Test Coverage Report for Build 654443035

24 of 144 (16.67%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.3%) to 72.91%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/controller/operands/quickStart.go
1
2
50.0%

pkg/controller/operands/operandHandler.go
5
17
29.41%

pkg/controller/operands/dashboard.go
18
125
14.4%

Totals

Change from base Build 631892257:
-2.3%

Covered Lines:
2651

Relevant Lines:
3636

💛  - Coveralls


Install sliderule-python

I'd like to demo sliderule-python in my tutorial.  Can it be installed on the hub?

The default environment for the jupyterthub is in this repository https://github.com/snowex-hackweek/docker-image so packages need to be added there


[Bug]: It gets scanned as a virus by AVG, now I cant install it.

All of the following criteria must be met

[X] All Requirements must be installed.
[X] Full Latest.log file included. If no file exists then leave this unchecked and state so.

All of the following are optional to answer

[X] Tried reinstalling the Game.
[X] Tried reinstalling MelonLoader.
[ ] Tried restarting PC.
[ ] Was able to see the Start Screen.

Describe the issue.
AVG says its a virus, trying to install unityexplorer with it.
Did you attach your log file?

[ ] Yes, I attached my log file to the text box above.
[X] No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log

it says it scans something related to Alexa

then make an exception in your antivirus. This isn't the AVG support forum, and not a bug in MelonLoader. Many antiviruses false detect MelonLoader, because it injects into another program. The code is right here and you're free to look over if if you don't trust it.

Thx!


WPS interface for the GR4J emulator (2)

Yes, that or the wiki.
Le lun. 24 sept. 2018 11:25, Julie<EMAIL_ADDRESS>a écrit :

@huard https://github.com/huard, would this be the place where I add
information how to get a GR4J test basin for RAVEN?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Ouranosinc/raven/issues/8#issuecomment-424056670, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAE9Q5IHjxtsGZEkL0WxuOasp0U5o-kvks5ueRWAgaJpZM4UUPZq
.

I'd just add a section under:
https://github.com/Ouranosinc/raven/wiki/Technical-Notes

Sounds good.
Le lun. 24 sept. 2018 14:06, Julie<EMAIL_ADDRESS>a écrit :

I'd just add a section under:
https://github.com/Ouranosinc/raven/wiki/Technical-Notes
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Ouranosinc/raven/issues/8#issuecomment-424106894, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAE9QyLFgi5PPEyakhWIhvJYkS_8kswqks5ueTs-gaJpZM4UUPZq
.

Done.
Link to Wiki


Fix the bugs of setting view and change to swift lifecycle

Description

Fix the problem that doesn't show icon on Setting View Tab bar2.
Change to the SwiftUI life cycle without any devastating problem
Change the picker style so it now mathes the Xcode picker version.

Releated Issue
#146
Screenshots (if appropriate):

Fixed the problem that menus doesn't show

Fixed

In this way you can both use swiftui app methods and appkit AppDelegate.

At the very beginning of the project, I made transition from SwiftUI lifecycle to AppKit's AppDelegate. This transition was made because SwiftUI doesn't have some features that same old AppKit has.
Also, we are using AppKit's way (via NSDocuments) to handle all documents (workspaces and single files). I had made this decision to use NSDocument instead of SwiftUI's DocumentGroups, because DocumentGroup works with FileWrappers which are limited, for example, you cannot access file's URL using FileWrapper.
Mixing SwiftUI lifecycle and AppKit's AppDelegate wouldn't be easy. SwiftUI's NSApplicationDelegateAdaptor was added to SwiftUI to allow only handling NSApplicationDelegate notifications. And you cannot mix for example MainMenu.xib's menu and menu elements declared in SwiftUI. Soon and later menu elements will be overwritten by SwiftUI.

Also I can use keyboard shortcut to close the window

I don't think I need to change this.

Since our workflow is treating warnings as errors (swiftlint --strict) you have to. Otherwise the workflow will fail. See contribution guide.

@pkasila will have a detailed look at it later today.

Since our workflow is treating warnings as errors (swiftlint --strict) you have to. Otherwise, the workflow will fail. See contribution guide.

But you can see the space in apple’s file

Look, we have rules and if you don't want to follow them you can file a new Issue where changes can be discussed. If your code does not pass the checks we cannot merge it as unmistakably stated in our contribution guidlines.

I don't think I need to change this.

I actually agree, a little whitespace once in a while is a good thing and makes the code more readable.

I don't think I need to change this.

I actually agree, a little whitespace once in a while is a good thing and makes the code more readable.

The newline is not a problem for swift lint, but the whitespace/tab indentation without code is the problem for swiftlint.


Configure an empty cluster

Implementing support for configuring an empty cluster, i.e. cluster running no resources / workload.

re: ansible-lint issue 301 - Commands should not change things if nothing needs doing
tasks that get information from the managed system should use changed_when: false to denote that these tasks never change the persistent state of the managed system - or in some cases, use when: condition in case the task only needs to be run in certain conditions
re: ansible-lint issue 503 - Tasks that run when changed should likely be handlers
Typically you will let ansible restart your daemons after the play is complete, using a handler - but if you need to restart your daemon before you can proceed to other tasks, but you only want to restart the daemon in case something has changed (i.e. you do not want to restart your daemon unnecessarily), then you'll have to manage that in the code, and add '503' to the skip list in your .ansible-lint - see https://github.com/linux-system-roles/metrics/commit/4836c132c8d9ba9e7a27ca5e77be402e980d3278 for an example of the metrics role needing to restart pmcd before proceeding to other tasks, but only doing the restart if something changed.
re: ansible-lint issue 208 File permissions unset or incorrect
You'll need to add owner, group, and mode for files and directories created by the role

tox is all green now. I'm moving to centos-8 / rhel-8 / fedora issues.

TASK [linux-system-roles.ha_cluster : Install cluster packages] ****************
task path: /tmp/tmp5_g_826r/tasks/install-and-configure-packages.yml:1
fatal: [/cache/centos-8.qcow2]: FAILED! => {"changed": false, "failures": ["No package corosync available.", "No package libknet1-plugins-all available.", "No package pacemaker available.", "No package pcs available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}

do we need to enable additional repos on centos8 and other platforms?

Most of the HA packages are provided in HA Addon repos. I've discussed that with @pcahyna already, the resolution is that it's the responsibility of the role to enable those repos. Do you agree with that, @richm?

Most of the HA packages are provided in HA Addon repos. I've discussed that with @pcahyna already, the resolution is that it's the responsibility of the role to enable those repos. Do you agree with that, @richm?

Yes

@jharuda some problem with the staging test-harness - fails very early:
linux-system-roles-staging-117-pf8rl: linux-system-roles/ha_cluster: pull #4 (fa339dc) on fedora-32
===================================================================================================

Traceback (most recent call last):
  File "/test/run-tests", line 1035, in handle_task
    result = task.run(
  File "/test/run-tests", line 476, in run
    image_path = fetch_image(image_url, cachedir, self.image["name"])
  File "/test/run-tests", line 297, in fetch_image
    image_last_modified_by_src = get_metadata_from_url(url, "Last-Modified")
  File "/test/run-tests", line 276, in get_metadata_from_url
    return dict(url_response.getheaders())[metadata_key]
KeyError: 'Last-Modified'

[citest bad]

@jharuda some problem with the staging test-harness - fails very early:
linux-system-roles-staging-117-pf8rl: linux-system-roles/ha_cluster: pull #4 (fa339dc) on fedora-32
===================================================================================================

Traceback (most recent call last):
  File "/test/run-tests", line 1035, in handle_task
    result = task.run(
  File "/test/run-tests", line 476, in run
    image_path = fetch_image(image_url, cachedir, self.image["name"])
  File "/test/run-tests", line 297, in fetch_image
    image_last_modified_by_src = get_metadata_from_url(url, "Last-Modified")
  File "/test/run-tests", line 276, in get_metadata_from_url
    return dict(url_response.getheaders())[metadata_key]
KeyError: 'Last-Modified'

fixed in https://github.com/linux-system-roles/test-harness/pull/140 - I guess isn't rolled out everywhere yet

[citest bad]

[citest bad]

[citest bad]

[citest bad]

[citest bad]

Several tests have failed due to OOM killer killing processes on the machines. Would it be possible to increase the amount of memory for the machines?

rhel-8 and rhel-x tests are failing, because they don't have access to HA cluster packages. I'm not sure why that is, as rhel-x and rhel-8 staging tests are passing.

rhel-8 and rhel-x tests are failing, because they don't have access to HA cluster packages. I'm not sure why that is, as rhel-x and rhel-8 staging tests are passing.

I think it is because @jharuda has not deployed the same change to enable HA repos in production. Jakub, when you deploy production, please rerun the failed tests.

Several tests have failed due to OOM killer killing processes on the machines. Would it be possible to increase the amount of memory for the machines?

I would like to investigate these further.  Which tests are these?

Several tests have failed due to OOM killer killing processes on the machines. Would it be possible to increase the amount of memory for the machines?

Can be done using provision.fmf

[citest]

Several tests have failed due to OOM killer killing processes on the machines. Would it be possible to increase the amount of memory for the machines?

I would like to investigate these further. Which tests are these?

Unfortunately, the tests have been restarted in the meantime. These are the only artifacts with OOM killer I can see now:
https://fedorapeople.org/groups/linuxsystemroles/logs/linux-system-roles-ha_cluster-pull-linux-system-roles_ha_cluster-4-18066ad-centos-8-20210216-121111/artifacts/

Several tests have failed due to OOM killer killing processes on the machines. Would it be possible to increase the amount of memory for the machines?

I would like to investigate these further. Which tests are these?

Unfortunately, the tests have been restarted in the meantime. These are the only artifacts with OOM killer I can see now:
https://fedorapeople.org/groups/linuxsystemroles/logs/linux-system-roles-ha_cluster-pull-linux-system-roles_ha_cluster-4-18066ad-centos-8-20210216-121111/artifacts/

ok - yes, looks like pacemaker needs more ram - take a look at certificate role - https://github.com/linux-system-roles/certificate/tree/master/tests - create a tests/provision.fmf file like that for the ha_cluster role

Several tests have failed due to OOM killer killing processes on the machines. Would it be possible to increase the amount of memory for the machines?

I would like to investigate these further. Which tests are these?

Unfortunately, the tests have been restarted in the meantime. These are the only artifacts with OOM killer I can see now:
https://fedorapeople.org/groups/linuxsystemroles/logs/linux-system-roles-ha_cluster-pull-linux-system-roles_ha_cluster-4-18066ad-centos-8-20210216-121111/artifacts/

Looking closer, that test is for the centos7 controller. The inventory script in standard-test-roles in EPEL7 is old and the default there is 1 GB, which explains it. We need to update the inventory script :-(. For now, keep provision.fmf as workaround.

lgtm


Request for custom HTTP 404 page

I'd like to see an option to have a custom HTTP 404 page. Super simple implementation would be to publish a page to /404.html (how Hugo does it by default)

Hi @wictorwilen,
This exists today: https://docs.microsoft.com/en-us/azure/static-web-apps/routes#custom-error-pages
Take a look at the example routes.json file as it shows a custom 404

Thanks!

FYI, you need to use
    "responseOverrides": {
        "404": {
          "rewrite": "/404.html"
        }
    }

as defined at https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#response-overrides
as
  "platformErrorOverrides": [
    {
      "errorType": "NotFound",
      "serve": "/custom-404.html"
    }
  ]

does nothing for some reason.


Implement Playwright without breaking arm/v6 and arm/v7 builds

Allow me to assist you with #489.
I tried building this in my repo; there are no longer any errors for arm/v6 and arm/v7 (they will not have the Playwright option though).
https://github.com/weeix/changedetection.io/pkgs/container/changedetection.io
Furthermore, I discovered a pre-built Chrome image that supports Playwright, eliminating the need to maintain another Docker image.

I tested this on an Orange Pi and discovered that the 15-second timeout is too low for Playwright. Should I hardcode the timeout to a proper value (perhaps 1 minute)?

@weeix thanks, but I simply do not understand how this works, here's my quick local test
#!/usr/bin/python3

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    for browser_type in [p.chromium]:
        browser = browser_type.connect("ws://<IP_ADDRESS>:3000")
        page = browser.new_page()
        page.goto('http://whatsmyuseragent.org/')
        page.screenshot(path=f'example-{browser_type.name}.png')
        browser.close()

I'm running on <IP_ADDRESS>

  browserless-chrome:
    hostname: browserless-chrome
    image: browserless/chrome
    environment:
     - SCREEN_WIDTH=1280
     - SCREEN_HEIGHT=800
     - SCREEN_DEPTH=16
     - JAVA_OPTS=-Dwebdriver.chrome.whitelistedIps=
     - PROXY=http://<IP_ADDRESS>:3128
     - HTTP_PROXY=http://<IP_ADDRESS>:3128
     - HTTPS_PROXY=http://<IP_ADDRESS>:3128
    ports:
     - <IP_ADDRESS>:3000:3000
    volumes:
     - /dev/shm:/dev/shm
    restart: always

I can telnet into 3000 fine
root@hoster:~/browser# curl http://<IP_ADDRESS>:3000
<!doctype html><html><head><meta charset="utf-8"/><title>browserless debugger</title>...

but when I run that script I get
# ./test2.py
Task exception was never retrieved
future: <Task finished name='Task-11' coro=<Connection.run.<locals>.init() done, defined at /usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py:195> exception=Error('Playwright connection closed')>
Traceback (most recent call last):
  File "./test2.py", line 7, in <module>
    browser = browser_type.connect("ws://<IP_ADDRESS>:3000")
  File "/usr/local/lib/python3.8/dist-packages/playwright/sync_api/_generated.py", line 11856, in connect
    self._sync(
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_sync_base.py", line 88, in _sync
    return task.result()
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 196, in init
    self.playwright_future.set_result(await self._root_object.initialize())
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 151, in initialize
    await self._channel.send(
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_browser_type.py", line 210, in connect
    playwright: "Playwright" = next(iter(done)).result()
playwright._impl._api_types.Error: Playwright connection closed
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "./test2.py", line 7, in <module>
    browser = browser_type.connect("ws://<IP_ADDRESS>:3000")
  File "/usr/local/lib/python3.8/dist-packages/playwright/sync_api/_generated.py", line 11856, in connect
    self._sync(
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_sync_base.py", line 88, in _sync
    return task.result()
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 196, in init
    self.playwright_future.set_result(await self._root_object.initialize())
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 151, in initialize
    await self._channel.send(
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_browser_type.py", line 210, in connect
    playwright: "Playwright" = next(iter(done)).result()
playwright._impl._api_types.Error: Playwright connection closed
root@lemonade:~#

docker logs of browserless-chrome look good
2022-04-21T12:12:37.033Z browserless:chrome-helper Chrome PID: 702
2022-04-21T12:12:37.033Z browserless:chrome-helper Finding prior pages
2022-04-21T12:12:37.056Z browserless:chrome-helper Found 1 pages
2022-04-21T12:12:37.056Z browserless:chrome-helper Setting up page A752AD0B404E77D413BF5CBB518B2BEB
2022-04-21T12:12:37.057Z browserless:chrome-helper Injecting download dir "/usr/src/app/workspace"
2022-04-21T12:12:37.057Z browserless:system Chrome launched 102ms
2022-04-21T12:12:37.057Z browserless:system Got chrome instance
2022-04-21T12:12:37.057Z browserless:job A6YEA502N193TZ6ISROC6DU4WGJ9QP1A: Starting session.
2022-04-21T12:12:37.057Z browserless:job A6YEA502N193TZ6ISROC6DU4WGJ9QP1A: Proxying request to /devtools/browser route: ws://<IP_ADDRESS>:41741/devtools/browser/a6e09b42-1a31-4a75-a45f-a5bfc9de24dc.
2022-04-21T12:12:37.057Z browserless:chrome-helper Setting up file:// protocol request rejection
2022-04-21T12:12:37.111Z browserless:server A6YEA502N193TZ6ISROC6DU4WGJ9QP1A: Recording successful stat and cleaning up.
2022-04-21T12:12:37.112Z browserless:job A6YEA502N193TZ6ISROC6DU4WGJ9QP1A: Cleaning up job
2022-04-21T12:12:37.112Z browserless:job A6YEA502N193TZ6ISROC6DU4WGJ9QP1A: Browser not needed, closing
2022-04-21T12:12:37.112Z browserless:chrome-helper Shutting down browser with close command
2022-04-21T12:12:37.112Z browserless:job A6YEA502N193TZ6ISROC6DU4WGJ9QP1A: Browser cleanup complete.
2022-04-21T12:12:37.112Z browserless:server Current workload complete.
2022-04-21T12:12:37.112Z browserless:chrome-helper Sending SIGKILL signal to browser process 702
2022-04-21T12:12:37.120Z browserless:chrome-helper Removing temp data-dir /tmp/browserless-data-dir-cnYSgN
2022-04-21T12:12:37.154Z browserless:chrome-helper Temp dir /tmp/browserless-data-dir-cnYSgN removed successfully

so yeah, i just do not see how it works

update: ahuh! browser = browser_type.connect_over_cdp("ws://<IP_ADDRESS>:3000") worked!

For all I know, this image has many endpoints for different kinds of clients. E.g., ws://localhost:3000 for Puppeteer, http://localhost:3000/webdriver for WebDriver and ws://localhost:3000/playwright for Playwright. Didn't dig too deep into how it works though.

https://github.com/browserless/chrome so they say you can use it like a regular selenium server, so it means you dont need to install the playwright package in this case?

Yes. Seems like they have already installed the playwright package in that image.
I also tried using browserless/chrome with the WebDriver fetcher in this repo, and noticed that:

It would crash, unless we use --no-sandbox and --headless arguments when running the client.
Headless mode uses less CPU and RAM than headful mode. (Maybe this is the reason that Playwright outperform Selenium?)
The /webdriver endpoint doesn't work when running in linux/arm64 devices. Might have something to do with this issue.

it seems what you mentiond about that it waits for the network to be idle after page.goto(watch['url']) isnt quite true (atleast for me), for example visiting a twitter page makes it return far too fast and all the tweets are not loaded

I've been thinking about this a bit, I think a better way instead of adding another 'fetcher' option is to have a global settings option of which 'chrome style' fetcher to use - webdriver or playwright
then i think i'm pretty happy to merge this in - playwright seems SO much better, thanks a lot for introducing me to this
I've been using the browserless/chrome docker image for some time now without problems

By the way, I had to use
+            browser = p.chromium.connect_over_cdp("ws://<IP_ADDRESS>:3000")
+            page = browser.new_page()
+            page.set_viewport_size({ "width": 1220, "height": 800 })
+            page.goto(url)

but in this case, everything worked perfectly, very 'nice' CPU usage, full page screenshots, all worked fine
the one fix for screenshots was..
            # Some bug where it gives the wrong screenshot size, but making a request with the clip set first seems to solve it
            screenshot = page.screenshot(type='jpeg', clip={'x': 1.0, 'y': 1.0, 'width': 1280, 'height': 1024})
            screenshot = page.screenshot(type='jpeg', full_page=True, quality=90)

I've been thinking about this a bit, I think a better way instead of adding another 'fetcher' option is to have a global settings option of which 'chrome style' fetcher to use - webdriver or playwright

I'll start working on that now

@weeix I found I did not need any of the playwright/ stuff, can I remove it? or is it needed by ARM for some reason?

@dgtlmoon Yes you can. It was replaced by the browserless/chrome docker image.


After installing Platformio for arduino everything go wrong even after uninstall

I am working on iot project and I was doing well on the flutter application but when I tried to use platformio in vscode it change something in run without debugging so I uninstall platformio and it worked fine then after 2 min all flutter suggestion not working and can't use auto complete. So I changed some settings in the debugger and now it show this

I chose one and when it run it make this error

Logs
Launching lib\main.dart on 21081111RG in debug mode...
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

 - package:firebase_core

 - package:firebase_auth
 - package:firebase_core_platform_interface
 - package:quiver
 - package:firebase_auth_platform_interface
 - package:cloud_firestore

 - package:plugin_platform_interface
 - package:cloud_firestore_platform_interface
 - package:google_fonts
 - package:http
 - package:http_parser

For solutions, see https://dart.dev/go/unsound-null-safety

FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org

BUILD FAILED in 17s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

It was working with no problem yesterday and even this morning

flutter run -v
flutter run -v                                                                                直 WE_98864F 100% 141Mbps  70% 
[  +64 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +78 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f1875d570e39de09040c8f79aa13cc56baab8db1
[        ] executing: [C:\src\flutter/] git tag --points-at f1875d570e39de09040c8f79aa13cc56baab8db1
[  +69 ms] Exit code 0 from: git tag --points-at f1875d570e39de09040c8f79aa13cc56baab8db1
[        ] 3.0.5
[   +7 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +50 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +137 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +54 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +86 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +60 ms] executing: C:\Users\Mohamed\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +64 ms] List of devices attached
           kj7l495daekjhmxo       device product:amber_global model:21081111RG device:amber transport_id:1
[   +7 ms] C:\Users\Mohamed\AppData\Local\Android\sdk\platform-tools\adb.exe -s kj7l495daekjhmxo shell getprop
[ +116 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +119 ms] Skipping pub get: version match.
[  +26 ms] Found plugin cloud_firestore at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\
[   +6 ms] Found plugin cloud_firestore_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-0.3.0+2\
[  +10 ms] Found plugin firebase_auth at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\
[   +4 ms] Found plugin firebase_auth_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-0.3.3\
[   +3 ms] Found plugin firebase_core at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\
[   +3 ms] Found plugin firebase_core_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.2.1+3\
[   +2 ms] Found plugin flutter_barcode_scanner at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_barcode_scanner-2.0.0\
[   +3 ms] Found plugin flutter_plugin_android_lifecycle at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-2.0.7\
[  +17 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\
[   +3 ms] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.9\
[   +2 ms] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\
[   +2 ms] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\
[   +3 ms] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.3\
[   +3 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.1.0\
[   +9 ms] Found plugin qr_code_scanner at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-1.0.0\
[  +14 ms] Found plugin webview_flutter at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.14\
[  +44 ms] Found plugin cloud_firestore at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\
[   +2 ms] Found plugin cloud_firestore_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-0.3.0+2\
[   +7 ms] Found plugin firebase_auth at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\
[   +3 ms] Found plugin firebase_auth_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-0.3.3\
[   +3 ms] Found plugin firebase_core at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\
[   +3 ms] Found plugin firebase_core_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.2.1+3\
[   +1 ms] Found plugin flutter_barcode_scanner at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_barcode_scanner-2.0.0\
[   +2 ms] Found plugin flutter_plugin_android_lifecycle at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-2.0.7\
[  +10 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\
[   +2 ms] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.9\
[   +1 ms] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\
[   +1 ms] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\
[   +1 ms] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.3\
[   +2 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.1.0\
[   +4 ms] Found plugin qr_code_scanner at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-1.0.0\
[   +8 ms] Found plugin webview_flutter at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.14\
[  +13 ms] Generating D:\github\hsatech\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +79 ms] ro.hardware = mt6893
[        ] ro.build.characteristics = nosdcard
[  +42 ms] Initializing file store
[  +14 ms] Skipping target: gen_localizations
[   +6 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents:
D:\github\hsatech\.dart_tool\package_config_subset,D:\github\hsatech\.dart_tool\flutter_build\dart_plugin_registrant.dart}
[  +15 ms] Found plugin cloud_firestore at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\
[   +2 ms] Found plugin cloud_firestore_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-0.3.0+2\
[   +4 ms] Found plugin firebase_auth at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\
[   +2 ms] Found plugin firebase_auth_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-0.3.3\
[   +1 ms] Found plugin firebase_core at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\
[   +1 ms] Found plugin firebase_core_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.2.1+3\
[   +1 ms] Found plugin flutter_barcode_scanner at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_barcode_scanner-2.0.0\
[   +3 ms] Found plugin flutter_plugin_android_lifecycle at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-2.0.7\
[   +8 ms] Found plugin path_provider at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.11\
[   +1 ms] Found plugin path_provider_android at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.9\
[   +2 ms] Found plugin path_provider_ios at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_ios-2.0.10\
[   +1 ms] Found plugin path_provider_linux at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.1.7\
[   +1 ms] Found plugin path_provider_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.3\
[   +2 ms] Found plugin path_provider_windows at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.1.0\
[   +5 ms] Found plugin qr_code_scanner at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\qr_code_scanner-1.0.0\
[   +7 ms] Found plugin webview_flutter at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.14\
[  +11 ms] gen_dart_plugin_registrant: Complete
[   +2 ms] Skipping target: _composite
[   +1 ms] complete
[   +6 ms] Launching lib\main.dart on 21081111RG in debug mode...
[   +7 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\src\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
C:\Users\Mohamed\AppData\Local\Temp\flutter_tools.8162adbc\flutter_tool.1fa92309\app.dill --packages D:\github\hsatech\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --source D:\github\hsatech\.dart_tool\flutter_build\dart_plugin_registrant.dart
--source package:flutter/src/dart_plugin_registrant.dart -Dflutter.dart_plugin_registrant=file:///D:/github/hsatech/.dart_tool/flutter_build/dart_plugin_registrant.dart --enable-experiment=alternative-invalidation-strategy
[  +17 ms] executing: C:\Users\Mohamed\AppData\Local\Android\sdk\platform-tools\adb.exe -s kj7l495daekjhmxo shell -x logcat -v time -t 1
[   +8 ms] <- compile package:hsatech/main.dart
[ +442 ms] --------- beginning of main
                    07-22 04:05:47.792 D/connsyslogger( 1376): systemReady:1
[   +7 ms] executing: C:\Users\Mohamed\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +33 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as C:\Users\Mohamed\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +3 ms] executing: C:\Users\Mohamed\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +39 ms] Building APK
[  +14 ms] Running Gradle task 'assembleDebug'...
[   +4 ms] Using gradle from D:\github\hsatech\android\gradlew.bat.
[  +21 ms] executing: D:\programs\Android St\jre\bin\java -version
[ +161 ms] Exit code 0 from: D:\programs\Android St\jre\bin\java -version
[        ] openjdk version "11.0.12" 2021-07-20
           OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
           OpenJDK 64-Bit Server VM (build 11.0.12+7-b1504.28-7817840, mixed mode)
[   +2 ms] executing: D:\programs\Android Studio\jre\bin\java -version
[  +35 ms] Exit code 1 from: D:\programs\Android Studio\jre\bin\java -version
[        ] Error: could not open `D:\programs\Android Studio\jre\jre\lib\amd64\jvm.cfg'
[   +2 ms] executing: [D:\github\hsatech\android/] D:\github\hsatech\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=D:\github\hsatech\lib\main.dart -Pbase-application-name=android.app.Application
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +755 ms] Welcome to Gradle 7.4!
[        ] Here are the highlights of this release:
[        ]  - Aggregated test and JaCoCo reports
[        ]  - Marking additional test source directories as tests in IntelliJ
[        ]  - Support for Adoptium JDKs in Java toolchains
[        ] For more details see https://docs.gradle.org/7.4/release-notes.html
[ +284 ms] Error: Cannot run with sound null safety, because the following dependencies
[        ] don't support null safety:
[        ]  - package:firebase_core
[        ]  - package:firebase_auth
[        ]  - package:firebase_core_platform_interface
[        ]  - package:quiver
[        ]  - package:firebase_auth_platform_interface
[        ]  - package:cloud_firestore
[        ]  - package:plugin_platform_interface
[        ]  - package:cloud_firestore_platform_interface
[        ]  - package:google_fonts
[        ]  - package:http
[        ]  - package:http_parser
[        ] For solutions, see https://dart.dev/go/unsound-null-safety
[+1498 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[+3087 ms] Error: Cannot run with sound null safety, because the following dependencies
[   +3 ms] don't support null safety:
[        ]  - package:firebase_core
[        ]  - package:firebase_auth
[        ]  - package:firebase_core_platform_interface
[        ]  - package:quiver
[        ]  - package:firebase_auth_platform_interface
[        ]  - package:cloud_firestore
[   +1 ms] > Task :app:compileFlutterBuildDebug
[        ]  - package:plugin_platform_interface
[        ]  - package:cloud_firestore_platform_interface
[        ]  - package:google_fonts
[   +3 ms] Exception: Gradle task assembleDebug failed with exit code 1
[   +1 ms] "flutter run" took 18,012ms.
[   +4 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:699:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1183:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[ +264 ms] ensureAnalyticsSent: 261ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 1

there is even weirder problem this line was working perfectly this morning now not IDK what is happening here

@huycozy THanks for your fast respond
after checking I think I know the problem now after adding https://pub.dev/packages/wifi_connect (wifi_connect: ^0.2.1) it was the reason for this part of break in my code and because my pubspec.yaml have no specific version it go back I think to old version
so the question now how to make all librys use last version istade of this code
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  google_fonts:
  firebase_auth:
  # firebase_core:
  webview_flutter: last
  # qr_flutter:
  qr_code_scanner: ^1.0.0
  flutter_barcode_scanner: ^2.0.0
  get:
  cloud_firestore:
  # wifi_connect: ^0.2.1 <<== what make the error and  still after it removed

try to migrate your project to support null-safety by guideline here: https://dart.dev/null-safety/migration-guide

thanks so much, dart migrate fixed ♥ but can you explain why this library wifi_connect: ^0.2.1 made this problem for knowledge

@MohamedAbdelrehem

#wifi_connect: ^0.2.1 <<== what make the error and  still after it removed

It might be caused by the cache. Let's try:
flutter clean
flutter pub get

or
flutter pub cache clean

(About this workaround, I'm not sure it will work for you (even though it worked from my side, I've just tried it) because there is an open issue for that)
Also, please see flutter's community for resources. You may also get some help if you post it on Stack Overflow and flutterhelp.
Closing for now.


Optimize React component life-cycle updates

There are components that are being re-rendered even when there are no changes in them.

should be somewhat addressed with recent commits


MAINT: Add better repr for transactions

The repr for a Transaction object now looks like:
Transaction(order_id=20, sid=0, dt=2015-01-01 00:00:00, amount=10, price=50)

Nice!  Can you add price too?

Coverage decreased (-0.06%) to 87.467% when pulling c983c237c5b721aeeb2afb2d3c2588adeb756bdf on update-transaction-repr into 4b861fbf5e07c0e372dccab0f283bcd554267e8b on master.

Coverage decreased (-0.06%) to 87.467% when pulling c983c237c5b721aeeb2afb2d3c2588adeb756bdf on update-transaction-repr into 4b861fbf5e07c0e372dccab0f283bcd554267e8b on master.

Coverage decreased (-0.06%) to 87.472% when pulling 910bed000b0a1df575f826de8ad4240a9bf045cc on update-transaction-repr into aad5cd362e228d8e1bf1ed7e9e4b56b1695f66a6 on master.

I'd probably just add a new file in tests/finance like
`tests/finance/test_transaction.py'.

Updated example repr without order_id:
Transaction(sid=Asset(1), dt=2015-01-01 00:00:00, amount=10, price=50)

Coverage increased (+0.002%) to 87.534% when pulling e802057ba1e09b6e9540ab0eefa75239081957a5 on update-transaction-repr into 4c334c6c381611705ad3c9664ffd507b3343d60b on master.

Coverage decreased (-0.05%) to 87.658% when pulling e0433c47181dbcda535e385179cbb4ebf9e05069 on update-transaction-repr into c61fd0ef07c0898ff043acadc17cfcef87a566ec on master.

LGTM


Create pull request chalange

Add bits and delete some pieces

Hey @jotkafomat—congrats on submitting a PR at the end of the git course. I hope that you had fun working through the course, and that it was helpful at clearing up some of the areas of git that you were a little unsure of.
If you weren't already using git for your code, hopefully this has inspired you to do so. I hope that you enjoy the "Mastering Git" video course as well—you'll soon be able to get git to bend to your will :)
You can now wear this #GitWarrior badge with pride—and Tweet your historic victory!

sam


Adding resource type for VS Code Remote Development

Issue #, if available:
Description of changes:
Submitting a new resource type as discussed with @craigataws
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@PatMyron thanks for picking this up, working on it...


Binder links use main instead of current branch

In example notebooks, the binder link at the beginning always uses branch main rather than the current branch of the docs you're looking at.

Thanks for pointing this out @mccalluc!


Parallelize backend checks workflow on Github Actions

Right now the backend checks workflow takes a long time to run (>3 min). We can definitely speed up this workflow by parallelizing it into separate jobs. Here are some ideas to try:

Split up the "Run Unit Tests" step into its own job
Split up the "Check Type Hints" and "Check Code Quality" steps into their own job
See if we can make the poetry install -v run command just be its own job, and remove it from the other jobs

I think parallelizing it would still take the same amount of billing time, since separate jobs will be billed separately. I've resolved the spending limit issue by making this repo public, as there Github provides unlimited free actions on public repos.


ServerTyping not being created for Enum

Hello,
I have defined a new enum and the corresponding typescript file does not appear to be generated.
I have defined the enum as follows:
using Serenity.ComponentModel;
using System.ComponentModel;

namespace Demo.Time
{
    [EnumKey("Time.SummaryReport")]
    public enum SummaryReport
    {
        [Description("Weekly")]
        Weekly = 1,
        [Description("Monthly")]
        Monthly = 2,
        [Description("Pay Period")]
        PayPeriod = 3,
        [Description("Overtime Period")]
        OvertimePeriod = 4,
    }
}

I run "Transform all T4 templates" and expected the enum to show up in a typescript file in Modules\Common\Imports\ServerTypings so I can make use of it in the typescript files.  However, it does not.
I reviewed the example for Northwind.OrderShippingState provided, which works fine.  I can modify that enum, and the typescript file in Modules\Common\Imports\ServerTypings is updated as expected.  However, I am unable to determine why the typescript file is not being generated for the enum I have created.
What am I overlooking?
Thanks!

Unless you reference that enum somewhere it won't be generated.

Thanks for the quick response.  I do reference the enum in a Row.cs file, and that works fine.  In the .ts file where I want to use it, I have the following code
namespace KardiumHR.Time {

    @Serenity.Decorators.registerEditor()
    export class PeriodEditor extends Serenity.Select2Editor<any, any> {

        constructor(container: JQuery) {
            super(container, null);

            this.addOption(Time.SummaryReport.Weekly.ToString(), Time.SummaryReport.Weekly.GetText());
            this.addOption(Time.SummaryReport.Monthly.ToString(), Time.SummaryReport.Monthly.GetText());
            this.addOption(Time.SummaryReport.PayPeriod.ToString(), Time.SummaryReport.PayPeriod.GetText());
            this.addOption(Time.SummaryReport.OvertimePeriod.ToString(), Time.SummaryReport.OvertimePeriod.GetText());
            this.options.allowClear = false;
            this.value = "1";
        }

        public getSelect2Options() {
            var opt = super.getSelect2Options();
            opt.allowClear = false;
            return opt;
        }
    }
}

I followed the format of usage of "Northwind.OrderShippingState.NotShipped.toString()" in the sample file "InitialValuesForQuickFilters.ts".  Sorry for this minor question.  I am sure it something rather embarrassing on my part.   Thanks for the help.

Hello,
I found that I can get the enum reference to be generated by including a the following function as per the example in the serenity guide.
        public SummaryReport? SummaryReportRow
        {
            get { return (SummaryReport?)Fields.SummaryReportRow[this]; }
            set { Fields.SummaryReportRow[this] = (Int32?)value; }
        }

Prior to adding this code, I was only making a call in the Rowfields constructor as follows (just for test purposes)
this[0].PropertyName = SummaryReport.Monthly.ToString();
This line of code was not sufficient to cause the enum reference to be generated.
Is there a note somewhere that clarifies what needs to be done to get a typescript file generated for the enum?  Do I have to declare a function as per above, or is there some other way?
Of course, it is not a problem to include the function, but I prefer not to have extra code for which the purpose is not obvious.
As I've stated before, it is an amazing framwork that you have created.  Thanks!

Ok. I think I figured it out now.  I only need to add "ScriptInclude" to the enum.   If I change my enum declaration to the code below, all works great and I don't need the  public SummaryReport? SummaryReportRow function.
using Serenity.ComponentModel;
using System.ComponentModel;

namespace KardiumHR.Time
{
    [EnumKey("Time.SummaryReport"), ScriptInclude]
    public enum SummaryReport
    {
        [Description("Weekly")]
        Weekly = 1,
        [Description("Monthly")]
        Monthly = 2,
        [Description("Pay Period (Hourly)")]
        PayPeriodHourly = 3,
        [Description("Pay Period (Salary)")]
        PayPeriodSalary = 4,
        [Description("Overtime Period")]
        OvertimePeriod = 5
    }
}

If you use enum in some row, service or form, you dont need ScriptInclude.

hello, @volkanceylan how to use enum in form??


Hide/unhide the app with single command and skhd

Is it possible to create a command/tool that will be used to hide/unhide-focus app. I'm using open with skhd, but it just open then app and repeating this doesn't do anything - I want to hide the app with same shortcut

Also,is there a shortcut key or method to close the window/app:-)

@command-z-z  Command-W ?

@command-z-z Command-W ?

yes, but i want to config custom key in my dotfile not use mac keybind setting.

@xbladesub Have you found a solution to this or you just closed the Issue?

@xbladesub Have you found a solution to this or you just closed the Issue?

I found the solution - rcmd app for macos


Add State field to be in line with of spec

Add State field to be in line with of spec
docs(changeset): Add state field

Current dependencies on/for this PR:

#169  👈
main

This stack of pull requests is managed by Graphite.


scientific notation query

Steps to reproduce:
I have a scientific notation query:
select time,value from "table" where value != 4.9e-324
Expected behavior:
Hope to filter some data that is not equal to 4.9e-324
Actual behavior:
error parsing query: found E, expected ; at line 1, char 67
Environment info:

InfluxDB version: 1.8

@i-xiaobao InfluxQL does not currently support exponents, i.e. scientific notation: https://docs.influxdata.com/influxdb/v1.8/query_language/spec/#floats


[Snyk] Security upgrade python from 3.9.7-slim to 3.9.14-slim

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile

We recommend upgrading to python:3.9.14-slim, as this image has only 47 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

714
Directory Traversal SNYK-DEBIAN11-DPKG-2847942
No Known Exploit

614
Loop with Unreachable Exit Condition ('Infinite Loop') SNYK-DEBIAN11-OPENSSL-2426309
No Known Exploit

714
OS Command Injection SNYK-DEBIAN11-OPENSSL-2807596
No Known Exploit

714
OS Command Injection SNYK-DEBIAN11-OPENSSL-2933518
No Known Exploit

514
Files or Directories Accessible to External Parties SNYK-DEBIAN11-UTILLINUX-2359400
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@olivierdagenais Yes, thank you! I've created #190 for the change


Added Back to top button

Fixes #7 issue. I have added back to top button after 200px down. When you click on it will take you back to top https://imagetolink.com/ib/71jPyD9RVv. Please accept this time. You already ignored my navbar pr

Hi, please ask the assigned contributor of # , and if he allows you to make or, then I will merge

The index.html file is missing. Add that please 😃

Index.html added @divyanshudhruv  now you can merge it.

Ok

Add it now bro

Wait bro, I'll merge after 6oct

@Mdfarhan9304 I will merge this also. Good luck

conflicts !!


fix: Update Cloud Pak for Data to release 4.8.2

Signed-off-by: Denilson Nastacio<EMAIL_ADDRESS>closes: #323
Description of changes:

Updates Cloud Pak for Data 4.8.2

Output of argocd app list command or screenshot of the Argo CD Application synchronization window showing successful application of changes in this branch.

:tada: This PR is included in version 0.37.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


automatic position of reveal on small screens

We use the reveal with the full class and so far it looks good in the mobile preview in Chrome on desktop. But when we tested it on a Nexus 5 the reveal had a gap at the top and started 51px beneath the start of the body/html element.

Yes I had something like that too. Temporary solved upon creating a new class, and adding the scss mixins for reveal and reveal full.

Isn't the reveal already full screen on mobile devices? What happens when you use no .full class?

Isn't the reveal already full screen on mobile devices? What happens when you use no .full class?

There is no real difference as it seemed.
Related: https://github.com/zurb/foundation-sites/pull/9763

Yup - that makes sense and thanks for the link. Looks like @coreysyms offered a helpful solution that people can try.

Generally the generated top is still the issue. I might check and propose a PR then.


[BUG] SKObject does not dispose or release memory on linux

Description
When I was using SkiaSharp on Linux, I noticed that the memory footprint didn't go down, it just kept going up with each call. When I tried to reproduce the bug on Windows, the memory usage didn't go up.
Code
I used following code to test on Windows11 x64, Debian 10 x64, and Debian 11 arm64.
static int Main()
    {
        while (true)
        {
            var key = Console.ReadKey();
            switch (key.Key)
            {
                case ConsoleKey.T:
                    Test();
                    break;

                case ConsoleKey.D:
                    TestWithDispose();
                    break;

                case ConsoleKey.G:
                    GC.Collect();
                    break;

                case ConsoleKey.Q:
                    return 0;

                default:
                    break;
            }
            Console.WriteLine($"{Environment.WorkingSet / 1024 / 1024} MB");
        }
    }

    static void Test()
    {
        SKBitmap bitmap = SKBitmap.Decode("sample.gif");
        SKCanvas sKCanvas = new SKCanvas(bitmap);
        return;
    }

    static void TestWithDispose()
    {
        SKBitmap bitmap = SKBitmap.Decode("sample.gif");
        SKCanvas sKCanvas = new SKCanvas(bitmap);
        bitmap.Dispose();
        sKCanvas.Dispose();
        return;
    }

Expected Behavior
After every Test() and GC.collect(), the memory footprint should be kept low.
Actual Behavior
On Windows it works as it should be.
But on Linux, the memory footprint is always kept at a high level, even when GC.collect() is called.
Just like those objects are always cached and can't be released.
Basic Information

Version with issue:  2.80.3

IDE:  Visual Studio 2022

Platform Target Frameworks:

Linux:  Debian 10 x64, Debian 11 arm64
Windows Classic:  Windows 11 x64

Screenshots
here is my test on Windows

and here is my test on Debian 11 (Raspberry Pi 4B)

Additionally, I did tests with SkiaSharp.NativeAssets.Linux 2.88.0-preview.179 and SkiaSharp 2.88.0-preview.179, which still resulted in consistently increasing memory usage.
I think the problem is related to libSkiaSharp.so, because the problems that have occurred so far have been on the Linux platform.
I don't have a device to test on macOS , if so, I'll update this issue.

Is there any update?  Same problem with SkiaSharp 2.80.2  on Ubuntu 20.04.

Are you testing with mono or .net core on linux? I wonder if there is just the fact that mono does not feel the need to clear things or does not reduce the indicated memory? Are you using .net framework or dotnet core on windows?

I'm using dotnet 6.0 both on Windows and Linux.

This bug confused me for weeks, until I found this, which mentioned that this is a problem with memory allocator.
https://github.com/dotnet/runtime/issues/13301#issuecomment-535641506
After setting MALLOC_TRIM_THRESHOLD_ , I could control my memory usage in a acceptable range.
But unlike on Windows.and MacOS(i tested it on macos, same as windows) , the memory usage doesn't go down to a low level after calling ,GC.collect(), it seemed being limited at a certain level.In my case it goes up to as test going, then stuck at 300MB.
For somehow it did fixed my problem, but i wonder if there's a better solution.

I have the same issue with a quite similar setup => .NET 6 and Ubuntu 20.04.
I just load a file from disk, copy it and dispose both instances.
DotMemory shows following:

It seems SKShader hangs arround and will be finalized by the GC. Is this the intended behavior?

using SkiaSharp;
for (int i = 0; i < 10000; i++)
{
    Console.WriteLine($"Run: {i}");
    Console.WriteLine("Load skiasharp from file!");
    using var filestream = File.Open("navi.PNG", FileMode.Open);
    var bitmap = SKBitmap.Decode(filestream);
    var copy = bitmap.Copy();
    bitmap.Dispose();
    copy.Dispose();
}

This seems related: I kept having problems with the bitmap being in use when calling bitmap.Copy(). This occurred in both Windows and Android. Calling GC.Collect() fixed the 'in use exception'. It would only happened randomly though. about 1/4 of the time. Here is my relevant code:
var info = new SKImageInfo(width + 1, height + 1, SKImageInfo.PlatformColorType, SKAlphaType.Unpremul);
var outbmp = new SKBitmap(info);
var BMArray = new byte[(info.RowBytes * info.Height)];
...load data into the array...
// pin the managed array so that the GC doesn't move it
var handle = GCHandle.Alloc(BMArray, GCHandleType.Pinned);

// install the pixels with the color type of the pixel data
outbmp.InstallPixels(info, handle.AddrOfPinnedObject(), info.RowBytes);
handle.Free();
... Sometime later call
var copyBitmap = outbmp.Copy();

Calling GC.Collect(); after freeing the handle has fixed my issue. So, it seems that after freeing the handle, something was still being held onto the bitmap.

Have the same issue, on Ubuntu 22.04. Looks like calling Dispose is not freeing any resources and memory keeps growing until process is killed in the end.

@mattleibow Any thoughts on this?


Problem of uploaded file names with Chinese characters

The file can be uploaded and viewed correctly with Chinese file names. But if I download the file, the Chinese characters in downloaded file name become underscore such as this: "______.xls".

Filed in https://secure.phabricator.com/T6990


Language tool support for named contraints/indexes

In context of our #project-constraint-name-inclusion we will introduce some new attributes on block and field attributes. These will probably have to be added here to show up for auto completion:
https://github.com/prisma/language-tools/blob/61d68392248294ac8b28f1ad976efc88369eb951/packages/language-server/src/completion/completions.json#L101-L214
https://github.com/prisma/language-tools/blob/61d68392248294ac8b28f1ad976efc88369eb951/packages/language-server/src/completion/completions.json#L228-L259
Affected:
@id, @@id, @@index, @unique, @@unique, @default, @relation

Note: There is currently not mechanism to only enable some auto completions when a specific preview feature flag is enabled. (see https://github.com/prisma/language-tools/issues/816)


Add --strip CLI arg which would install the contents of the cookiecutter template in current dir rather than a dir below

cruft create, just like cookiecutter and battenberg install all create a dir below the current dir which contains the project. This is frustrating when you already have a git repo created as part of your workflow - and you have to move everything up a level, out of the created project directory.
Cookiecutter received a --strip implementation but the PR was closed. Battenberg has support for this but it hasn't kept up to date with additional cookiecutter args like --directory.
Would cruft be willing to add this?

In the meantime, the workaround for this is to do something like this:
cruft create --overwrite-if-exists --output-dir=.. --extra-content="{\"project_name\": \"$(basename $PWD)\"}" ...
P.s. overwrite-if-exists won't delete any additional files/folders - it will just overwrite same named files/dirs. Cookiecutter documentation also does a bad job of explaining this. It's shutil.copytree under the hood.


Feat: unlock stCelo when proposals have expired

WIP

This fixes the issues where users would be confused by their balance disappearing after voting on proposals
This (will) attempt to fix the bug mento encountered when trying to withdraw a large sum via safe

was about to say ship it but vercel build failed :(

Brief note: closing ticket is pending QA by @product-matt


Add Intermediate results to simulation

Add intermediate results similar to calibraiton, sent to same mq channel as calibration

Waiting on this issue to start


Prebuild lib?

I have problems with compiling lib for java. Can anyone share prebuild lib for win/linux?
Thanks!

https://github.com/tdlib/td/issues/98

What a problem do you have when following instructions from example/java/README.md?

...
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
CMake Warning at CMakeLists.txt:206 (message):
Not found OpenSSL: skip TDLib, tdactor, tdnet, tddb
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Downloads/tdlib/td-master/jnibuild
but nothing get's written to jnibuild

should help

Thanks I will try.
It should be much easier if there were prebuild binaries :)

This is marketing through programming. It is very sad that this is so.

https://t.me/joinchat/D1EEGBBIssaSbO0l81bF8w

@nikolakurtic Hi! Try to find binaries in our group:: https://t.me/joinchat/D1EEGBBIssaSbO0l81bF8w

The chat link above seems to have expired -- is there any way I could join this group? I've been trying to use VM's to build, but keep running into (out of) memory issues. Any pre-built binaries would be appreciated 👍

Building this lib is easy
No it's not. What I meant supposed to do with OpenSSL absence anyway?
The "should help" medium link gone and now got to go through this cmake trickery somehow.
@levlam can u plz provide some instructions on how to build for humble windows 10 users?

@im-infamou5 Have you tried https://tdlib.github.io/td/build.html?

The whole point was to make it to work in clion "as is".
I'd almost managed to get it to work my way (except some zlib linkage problems), however the given tutorial lead to this on my box:
cmake : Get-Command : The term 'cmake' is not recognized as the name of a cmdlet, function, script file, or operable program.
line:1 token:1
+ cmake
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (cmake:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

There is no installed CMake, or it isn't in your PATH environment variable, or you didn't restarted console application after the PATH wnvironment varible was changed.

I fix it because I was following the instructions wrong, specific here:
cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..
As the way it is show in the browser it looks like it's two separate commands:

cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -
DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..

or others could argue it's :

cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib - DCMAKE_TOOLCHAIN...the rest
(notice the space between "-" and "DCMAKE_TOOLCHAIN"

but it turns out all that line it's the same line NOT SEPARATE so
IT'S NOT "- DCMAKE_TOOLCHAIN" but "-DCMAKE_TOOLCHAIN"  without the space between "-" and "DCMAKE_TOOLCHAIN" the reason it shows in that way it's because the word it's too long, so the browser breaks it to a new line.
If you do it like this  "- DCMAKE_TOOLCHAIN" it will shows the OpenSSL error


Provide an api for for accessing request history

What's the problem this feature will solve?
This feature will allow developers to test that the right request payload are being sent
Describe the solution you'd like
mock.get('url', body="some json", status=201)
call_function_under_test()
# assert that the function actually made the call with the right payload
assert mock.request_history[0].payload == {"user_id":"1223"}

Hi, this issue tracker is for issues with the codebase behind https://pypi.org itself, not the projects hosted on PyPI.
You should report this issue to the tracker for the project in question instead.

Ah, thanks. I followed the worng link!


Ignore existing pip packages when installing our standalone version of python.

If there's an existing Python 3.6 install, then pre-existing pip packages in the user's package directory will cause our own package installs to be skipped when using the New Python Install option. Since we don't include the user package directory in PATH when using the New Python option, jupyter commands then can't be found when trying to open a notebook.
Also noticed there's a bit of code duplication here, so I'm currently cleaning that up.

I'll leave out the refactor for now, just so this can get checked in today.


[3.x] Fix AudioStreamPlayer not paused on pause mode change

Fixes #58543.

In that case this method would be called on parent, and propagate_notification should send it to the child, right?

The notification should be sent to all descendant nodes that inherit pause mode. Something similar to this:
https://github.com/godotengine/godot/blob/234eb83dfec6daf3795e53236be7b408083f6a2d/scene/main/node.cpp#L501-L514

My solution actually reaches all descendant nodes, because propagate_notification contains the loop like the one you've shown. However, we will also reach nodes that don't need to be unpaused/paused, which is not ideal :(
I've modified my solution to reach all descendants who have inherit pause mode. I've reused the method _propagate_pause_owner. If you prefer, I can add a custom method with the same loop. I'm also considering a new method for the pausing/unpausing logic, to be reused in both places. What do you think?

I've renamed the method to _propagate_pause_change_notification and used int as parameter. In all other methods we name the parameters p_notifications, so I repeated that name here. Let me know if you need other changes! :)

I don't think this needs an audio team review, just core. Going to remove that audio label.

Hi! How is the review process going? Should I add something to this PR? :)

It's changing the Node API which is very core to the whole engine, so this needs a review by @reduz.

Repeating @akien-mga's request: Could you kindly review, @reduz?
In the meantime, @pfertyk, could you rebase this PR on latest of 3.x branch please?

I think this is fine (enough to try in a beta).
The whole pause_owner thing seems a bit bug prone (see the implementation for physics interpolation mode for comparison) as it's a pull mechanism versus a push, but it seems to mostly work ok at the moment.
This PR essentially just seems to send out notifications on changes to the pause mode where necessary, and hopefully doesn't send out e.g. 2 pauses or 2 unpauses in a row (which the client code might not be designed for).
I'm not sure whether the existing system deals with the case of pause mode being changed outside the tree, then adding, but I guess that would be a separate bug if not dealt with.
It could probably do with another rebase if we decide to go ahead (a few things have changed in Node recently, so just in case).

Thanks!


Update snapshot of nixpkgs

The most recent snapshot of nixpkgs fixes all broken packages that cornelis depends on. In particular, we can remove the custom nix derivation for nvim-hs.

LGTM. Do we need to update the nix section in the readme?

I took a look at the README, and I don't think the nix section needs any updates.  The only thing I saw (and fixed) was an outdated upstream URL in the example flake.nix.

This stuff is all magic to me. I'll take your word for it! Thanks for the PR!


Filter the ports by VNIC type

Conflicts resolved:
neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/maintenance.py:
added 'from neutron.objects import ports as ports_obj' as does upstream
neutron/objects/ports.py:
removed<EMAIL_ADDRESS>as it is not existing in yoga (https://github.com/openstack/neutron/commit/eeb918e1b9c27d3b5f0747cb856a4a8483f636ad)
In check_baremetal_ports_dhcp_options, the ports need to be retrieved based on the VNIC type. The VNIC type is stored in "ml2_port_bindings" table, not "ports" table.  Because the ML2Plugin get_ports method can filter only by "ports" database register fields, it is needed to retrieve those ports using a custom database query and then use the plugin method to retrieve the ports, converted to dictionaries and the extensions processed.
Closes-Bug: #1979643
Change-Id: Iab227d9de75e4b1b927043ce27bdc346066478e8 (cherry picked from commit b497ad1665680cfff5173fbf08b06919e34c6776)

cherry picked from https://review.opendev.org/c/openstack/neutron/+/847346

fixed indent from previous sync
`======
Totals
Ran: 20023 tests in 1748.0326 sec.

Passed: 18454
Skipped: 1569
Expected Fail: 0
Unexpected Success: 0
Failed: 0
Sum of execute time for each test: 6822.1185 sec.

==============
Worker Balance

Worker 0 (5003 tests) => 0:28:32.804212
Worker 1 (5008 tests) => 0:28:04.441201
Worker 2 (5007 tests) => 0:29:07.884838
Worker 3 (5005 tests) => 0:28:22.581658
___________________________________________________________________________________________________ summary ____________________________________________________________________________________________________
py38: commands succeeded
congratulations :)`

fetched recent upstream version of https://review.opendev.org/c/openstack/neutron/+/868746

removed ttps://review.opendev.org/c/openstack/neutron/+/868746, as it will be fetched from upstream with sync

ready for reviews

let's merge it after this got merged - https://review.opendev.org/c/openstack/neutron/+/869112, then we can build new neutron images


the link of cornerstoneWADOImageLoader.js is the same of cornerstoneWADOImageLoader.bundle.min.js

https://github.com/cornerstonejs/cornerstoneWADOImageLoader
Get the distributed unminimized file:
cornerstoneWADOImageLoader.js
or the distributed minimized file:
cornerstoneWADOImageLoader.bundle.min.js
the link of cornerstoneWADOImageLoader.js is the same of cornerstoneWADOImageLoader.bundle.min.js
so where can find the file of cornerstoneWADOImageLoader.js?
thanks

Where do you see a link to these bundles?

https://github.com/cornerstonejs/cornerstoneWADOImageLoader
I downloaded the source code of cornerstoneWADOImageLoader and modified the webpack configuration, and then packaged it to solve this problem.


Isolated process custom trigger return value is mixed with output binding.

Web PubSub extension needs to handle WebPubSubTrigger return response and it's mixed with the Output Binding returns. Should it be handled only once for output binding?
For example, below return will be handled twice for both output binding and WebPubSubTrigger waited HttpResponseMessage.
[Function("message")]
[WebPubSubOutput(Hub = "sample_funcchat")]
public SendToGroupAction Message(
    [WebPubSubTrigger("sample_funcchat", WebPubSubEventType.User, "message")] UserEventRequest request)
{
    return new SendToGroupAction
    {
        Group = "group1",
        Data = BinaryData.FromString($"[{request.ConnectionContext.UserId}] {request.Data}"),
        DataType = request.DataType
    };
}

And when work with multiple output sample, the waited HttpReponseMessage would be null which is not expected. Is there any special handling for HttpResponseData that should apply to other custom object as well?
[Function("message")]
public OutputWithUserEventResponse Message(
    [WebPubSubTrigger("sample_funcchat", WebPubSubEventType.User, "message")] UserEventRequest request)
{
    return new OutputWithUserEventResponse
    {
        SendToGroup = new SendToGroupAction
        {
            Group = "group1",
            Data = BinaryData.FromString($"[{request.ConnectionContext.UserId}] {request.Data}"),
            DataType = request.DataType

        },
        Response = new UserEventResponse
        {
            Data = BinaryData.FromString("[SYSTEM] ACK."),
            DataType = WebPubSubDataType.Text
        }
    };
}

public class OutputWithUserEventResponse
{
    [WebPubSubOutput(Hub = "sample_funcchat")]
    public WebPubSubAction SendToGroup { get; set; }

    public UserEventResponse Response { get; set; }
}

Is this still an issue today?

I think so. The problem here is it trigger return and http response is not able to distinguish considering they will convert to json and is typeless when extension recognize these objects.
The v4 sample can be found here: https://github.com/Azure/azure-webpubsub/tree/main/samples/functions/csharp/simplechat-isolated.
Though I didn't show this advanced usage to avoid begin customer getting this problem. It's simple code change to repro this.

We have some changes that are being rolled out soon where we'll support HttpResponseData in multiple output bindings. So this scenario should work:
public class OutputWithUserEventResponse
{
    [WebPubSubOutput(Hub = "sample_funcchat")]
    public WebPubSubAction SendToGroup { get; set; }

    public HttpResponseData Response { get; set; }
}

@aishwaryabh Thanks for the update and good news! Is there any timeline I can expect?

Hi @aishwaryabh , it seems still not working. To correct that under custom trigger(WebPubSubTrigger), I wouldn't have a HttpRequestData so I'm not able to generate the HttpResponseData. And it's still not work with latest SDKs with below definition. Please help check and advise.
public class OutputWithUserEventResponse
{
    [WebPubSubOutput(Hub = "sample_funcchat")]
    public WebPubSubAction SendToGroup { get; set; }

    public UserEventResponse Response { get; set; }
}

Can you share which SDK versions you are using?


Made launch scripts more robust.

Makes the main launch scripts in the top-level directory a bit more robust.
Now they should work also when invoked from another directory.

Greetings from Tumma. I'm in Berlin :)


Arabic Egypt moments (ar-eg)

Coverage decreased (-0.04%) to 88.488% when pulling 3d0867b4da1fe8c13d9294ced0c2820f06bba041 on AhmadIbrahiim:patch-1 into 52019f1dda47c3e598aaeaa4ac89d5a574641604 on moment:develop.

Coverage decreased (-0.04%) to 88.488% when pulling 3d0867b4da1fe8c13d9294ced0c2820f06bba041 on AhmadIbrahiim:patch-1 into 52019f1dda47c3e598aaeaa4ac89d5a574641604 on moment:develop.


For a 0.3.0 release

#23 #20 #30
(breaking) An MLFlowLogger (exported) is now renamed to Logger (unexported). So a logger instance is now instantiated with using MLJFlow; logger = MLJFlow.Logger(baseuri).
I've update the TagBot config file and played around with workflow settings. So hopefully we'll get a new release tag this time.

Yep. TagBot is now fixed.