Batting order for PyCAR16

Now that we've settled on the code and agenda for the day, we need to agree on who will teach which section. I'd like to do the early introductions of the day, but I'm flexible to pick up whatever project or section that isn't filled by one of you.

Introduction (@tommeagher)
The Basics (@tommeagher) - Starting with this slide, we'll introduce some key Python types like the interactive interpreter, strings, integers, lists, slicing and loops.
Project #1 (@richardsalex) - After a white board exercise, we'll start with a file of pseudocode, and we'll walk through writing the program in Python code, running the file at the command line.
A discussion on debugging (@zufanka)
Project #2 (@zufanka) - We have a CSV of baseball player salaries. Let's figure out who makes the most money and examine some other biographical information about them, using dictionaries.
Project #3 (@scott2b) - Scraping from html and ingesting JSON from an API

So, @richardsalex, @zufanka, @scott2b, which section of the day would you like to teach? If you each pick one project (or the basics), we should be set. The rest of the day, you'd be helping teach and coaching students, along with @cathydeng, who I believe is going to help coach in the morning.

I'll handle Project 1. Thanks, @tommeagher!

@tommeagher I'll take the project after debugging, so project 2!
Adriana
data journalist
+31-652245912 | 0F097E0F | @naberacka
On Wed, Mar 2, 2016 at 11:38 PM, Alex Richards<EMAIL_ADDRESS>wrote:

I'll handle Project 1. Thanks, @tommeagher https://github.com/tommeagher
!
—
Reply to this email directly or view it on GitHub
https://github.com/ireapps/pycar/issues/34#issuecomment-191472163.

I believe that means I'm doing #3. Is that right?

@scott2b, if you want to do Project 3, that'd be cool. Or if you want to do half of it (either the html or the json piece), I can do the other half.
I'll also do the basics along with the intro then.

I'm happy to do whatever. I can cover it, or if you want to jump on any part, that's cool. Maybe you would want to endcap since you are starting us off in the morning. But whatever you think will work.

Scott, if you're game to do the whole project, that's great. I'll be around all day to coach and add 2 cents, so they'll hear enough of my voice This works for me.

:+1:

Awesome. I've updated the lineup above accordingly.
Over the next few days, please take a look at the code and comments for your project and be sure you know what's happening in it. If you have questions or need a hand, please email me or file a ticket (or a pull request) here.
Otherwise, I'll close this issue and look forward to seeing each of you on Thursday morning at 9 a.m. in Mattie Silks (if not before). Safe travels, all!

Thanks, Tom! Look forward to seeing everyone in Denver.


Update Cause.js

I feel core libraries should not have try-catch in them, and even if they do for better logging purposes, it should not swallow the error. I would rather find out why this error doesn't bubble up into console (assuming that's the issue?).

We could make it a development-only try-catch?

Not worried about perf hit, just correctness.
If React is swallowing the error, we need to switch that off I think, especially in dev.

You can only catch component errors in React 16, which won't be ready for some time


Update Contributing.md

Mark how to run the correct versions of clippy and rustfmt, and clean up some old naming.

Ha! Thought I had stripped every Alchemy reference, wow. Good catches.


Ubuntu manual install procedure doesn't install aufs

The manual installation procedure for ubuntu doesn't install the requirements for aufs. we should add it to the requirements, because aufs is our recommended/default driver on ubuntu

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Oh, and #dibs


Added checks of ArrowExpressionClausSyntax to ensure correct spacing

Added checks of ArrowExpressionClausSyntax to ensure correct spacing + unit test.
Fixes already worked with the new diagnostic locations (yeah!).
This fixes issue #1764.

Current coverage is 79.43%

Merging #1783 into master will decrease coverage by -0.02% as of 038d6d3

@@            master   #1783   diff @@
======================================
  Files          548     548
  Stmts        32875   32918    +43
  Branches      9111    9116     +5
  Methods
======================================
+ Hit          26120   26147    +27
  Partial       5300    5300
- Missed        1455    1471    +16

Review entire Coverage Diff as of 038d6d3

Powered by Codecov. Updated on successful CI builds.

:+1: Looks good to me


Where can I buy one or two

Hey is it possible to buy one or more. We could use it in our Hackerspace :). Greetings nice project.

Currently working on my own tindie store. It should be available in a couple of days. Nevertheless, I'm currently waiting for some components to arrive so the stock is not huge at the moment but will increase in 2-3 weeks.


More examples

It would be nice to have more examples than just the one that shows off ping.

I think this can be closed because there are 5 more examples now in examples.


Bump JGroups due to JGRP-2707

more context is available here:
https://issues.redhat.com/browse/JGRP-2707
https://github.com/keycloak/keycloak/issues/21092

@karesti the CI doesn't make it clear if the issue is caused by the bumped version. Would you have any insight?

Thanks for the PR @trixpan. We need this in main first, I've created https://github.com/infinispan/infinispan/pull/11059.
I'll re-run CI and take a closer look at the failure to see if it's related.

Thanks for the PR @trixpan. We need this in main first, I've created #11059.
I'll re-run CI and take a closer look at the failure to see if it's related.
https://issues.redhat.com/browse/ISPN-14994

thanks. I wasn't sure if your flow was main then backport, or direct backport. :-)
appreciated.

Closing as JGroups 5.2.17.Final is required. @pruivo is going to handle this.

@trixpan I talked to Martin Bartos (internally) yesterday and the RELAY2 JGroups protocol is not working properly due to recent changes. I think Keycloak can overwrite the JGroups version if you are not using RELAY2 in your test suite.


Looks good. Reminds me of Zipline

Is this not just a fork of Zipline? https://github.com/diced/zipline
Either way, I like what you did with the notes and code snippets. Any plans to incorporate ShareX support?

No, it's not a fork. The code is completely mine. As for ShareX support, it already exists, you can create a configuration for ShareX from the account management page. Also, I'm glad you like my project.

I do get that this is a fork, but no offense- it looks awfully similar to Zipline, it doesn't hurt to say that it's inspired lol.


feat(examples): add solid start example

Hi,
I am a seasoned React and Typescript developer and I'm currently exploring SolidJS and PandaCSS as an alternative to React w Tailwind.
I created a monorepo to try out various things, see the start of an implementation for solid components here:
https://github.com/pixelmord/nextstack/tree/main/apps/rocksolid/src/components/ui
So if you want help creating an example with solidJS for this project, I could open a PR if you haven't started sth yourself?
And depending on you plans for the docs I could contribute there as well
What Do you think?

A created a draft PR @cschroeter
I reached out to you on twitter, but no DM possible, but you can go to my website and find my contact details
https://composableweb.com/resume/en

@pixelmord
A simple but working Solid Start version is now available https://stackblitz.com/github/cschroeter/park-ui/tree/main/examples/panda/solid/solid-start?file=README.md


Add the option to access all the methods/attributes from Vanilla Navigator

While I was working on an app, I needed the following scenario.

After the user successfully logs in, the route pop all the previous routes on the back stack and proceeds to push the new page as the root, this one it could be done with Navigator using.

        Navigator.pushAndRemoveUntil(context, newRoute, (route) => false)

however such functionality isn't available on this awesome library :(
I know that if I do this, it will give the desire result, however it could be really useful to provide such functionalities as a little extra.
await routemasterDelegate.popUntil((routeData) => routeData.path == '/');
routemasterDelegate.replace( data.trialStatus == 'paid' ? '/dashboard' : '/trial' );

Hello - you can access Navigator.of(context) to access everything from Navigator.
Wouldn't just calling replace once do what you need? I'm not really understanding what functionality is missing here...

@tomgilder replace will just replace the current page. The use-case here is to clear the stack and push new page as the root page.


Add MDFT (WIP)

Was the equation you were thinking of implementing this one?
$$V(t+1, i) = \theta V(t, i) + (1 - \theta) \left( \sum_{j=1}^n W_{ij} \phi_{ij}(t) C_j(t) \right)$$
where

$V(t, i)$: represents the preference state for response option ( i ) at time ( t ).

$\theta$: leakage parameter

$W_{ij}$: The weight matrix element indicating the influence of option ( j ) on option ( i ).

$\phi_{ij}(t)$: valence function at time ( t ), indicating the relative attractiveness of comparing option ( i ) to option ( j )

$C_j(t)$: perceptual input for option ( j ) at time ( t )

Hi @kiante-fernandez. Yes. I am implementing something similar to the equation above.  It is from Equation 2 in Multialternative Decision Field Theory: A Dynamic Connectionist Model of Decision Making. What is committed has not been run or tested, and is almost certainly incorrect. I made some changes and wanted to see whether there were performance issues, and decided to run it remotely because my computer is sensitive to heat.

Codecov Report
Attention: Patch coverage is 84.00000% with 32 lines in your changes missing coverage. Please review.

Project coverage is 89.57%. Comparing base (2dadbf5) to head (afb0821).

Files
Patch %
Lines

src/ClassicMDFT.jl
70.90%
16 Missing :warning:

src/MDFT.jl
91.07%
10 Missing :warning:

src/type_system.jl
54.54%
5 Missing :warning:

src/LCA.jl
92.85%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
- Coverage   90.27%   89.57%   -0.70%
==========================================
  Files          24       26       +2
  Lines        1480     1650     +170
==========================================
+ Hits         1336     1478     +142
- Misses        144      172      +28

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


spooles: fix compiler errors and link properly; fix darwin build

fix a few format string errors and use the proper type, 0, not NULL, to specify zero as a function parameter. after the fixes, the  calculix program, which links to libspooles,  runs on darwin (and produces valid output).
testing: ran some of the calculix examples linked off of http://www.dhondt.de/ and verified that the output matches the references output on both x64 linux and x64 darwin
ZHF: #265948
https://hydra.nixos.org/build/241160456
Result of nixpkgs-review pr 270901 run on x86_64-linux 1

2 packages built:

calculix
spooles

Result of nixpkgs-review pr 270901 run on x86_64-darwin 1

2 packages built:

calculix
spooles

Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3017

thanks for all the ZHF reviews!


Vickel: Watch officialblankatmcard247(?:@yahoo.com)?

Vickel requests the watch of the watch_keyword officialblankatmcard247(?:@yahoo\.com)?. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

officialblankatmcard247(?:@yahoo\.com)? has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Intermitent failures in the duplicates integration test

I think this might be a race condition because of the timestamp being used to store dups. I might have to implement "freeze gun" or whatever it's called to stop time so the two timestamps line up. In other words, I think this issue is more of how the feature is being tested, rather than a failure in the feature.


Just wanted to say this is some sick code

Best code on the web for repo pattern. Thanks for the extremely hard work I know it took to write this.

Much appreciated @jvelezc, v5 alpha released, RC1 otw... @tonysneed how to have full self trackable enities from client to server-side soon, code gen from @rvegajr as well.


New feature: BMFont support

BMFont is a widely used font format in game engines such as Cocos, Unity, Ren'Py and so on. This pr is to support it. Tools, template, examples and documentation are included. All changes are backward compatible, so old projects needn't any change to build. It will make life easier to import fonts.
BTW It also comes with a variable width Chinese font with 3500 common Hanzi and Japanese font with 1945 common Kanji so that users can use them to print Chinese and Japanese even if they don't want to enable BMFont support. Those fonts are not included or linked unless manually specified, so it won't increase size by default if they are not used. It will solve https://github.com/GValiente/butano/issues/6 and https://github.com/GValiente/butano/issues/11, and corresonding part in FAQ is also updated.

First of all, thanks a lot for your work. Butano really needs tools for importing standard font formats, and you have made a tool for a very popular font format. Great stuff.
However, I don't understand why it needs to be integrated into the main Butano Makefile (butano.mak) nor why Butano's bn::sprite_font class needs to allow UTF-8 character collisions.
As far as I understand, your tool generates a bn::sprite_font (.bmp and .h files) from a .bmfont file. To integrate that tool into your project's Makefile you don't need to modify Butano: the external_tool example shows how to do that.
And about allowing UTF-8 character collisions, if a collision happens Butano is not going to be able to determine which sprite to render for the involved characters, so the tool should generate a collision free font, instead of allowing collisions in bn::sprite_font.

why it needs to be integrated into the main Butano Makefile (butano.mak)

If it is used as an external tool, each project needs to be released with the external tool to build, so developers needs to mantain many copy of the same scripts. If I update the conversion script, it is hard to update all copies of the script released with projects on the Internet, which makes version control impossible.
And each projects' Makefile needs to add the same line to call the same external tool, which is also a code duplication. Developers may want to call their own external tool developed for their own projects rather than add it to all projects.
Using git submodule is a solution, but it is impossible to force every developer to use it. Therefore I think it is best for butano to support it natively instead of an external tool, or at least an external folder in butano project to provide the standard font conversion.
It won't be executed if there is no fonts specified in the project Makefile, so it has no confluence on projects' builld without fonts. Therefore I think it is okay to include it in butano Makefile like other assets. Unlike other assets, it doesn't force the existence of the corresponding asset folders like graphics and audio. The project build process won't complain the lack of fonts folder, so the integration doesn't do any harm.

why Butano's bn::sprite_font class needs to allow UTF-8 character collisions

I have already explained it in the commit message. It doesn't disable the check. It adds a config for user to decide the threshold of the character numbers to skip it to avoid project build process hang. The check function is just a simple nested loop, which is O(N^2). If there are 2000 characters to check, it needs to compute 5000 x 5000 = 25000000 times. It will exceed the default max times limit for constexpr operations, and the compiler will complain it and quit with error:
common_cn_variable_16x16_sprite_font.h:20:62:   in 'constexpr' expansion of 'bn::sprite_font(bn::sprite_items::common_cn_variable_16x16, bn::span<const bn::string_view>(common_cn_variable_16x16_sprite_font_utf8_characters), bn::span<const signed char>(common_cn_variable_16x16_sprite_font_character_widths))'
C:/Users/laqie/Projects/butano/butano/include/bn_sprite_font.h:85:71:   in 'constexpr' expansion of '((bn::sprite_font*)this)->bn::sprite_font::sprite_font((* & item), (* & utf8_characters_ref), (* & character_widths_ref), 0)'
C:/Users/laqie/Projects/butano/butano/include/bn_sprite_font.h:121:9:   in 'constexpr' expansion of '((bn::sprite_font*)this)->bn::sprite_font::_duplicated_utf8_characters()'
C:/Users/laqie/Projects/butano/butano/include/bn_sprite_font.h:209:22:   in 'constexpr' expansion of 'bn::operator==((* & a), (* & b))'
C:/Users/laqie/Projects/butano/butano/include/bn_string_view.h:430:39: error: 'constexpr' evaluation operation count exceeds limit of 33554432 (use '-fconstexpr-ops-limit=' to increase the limit)
  430 |         const_pointer a_data = a.data();
      |                                       ^

Of course a user may really wants to do it for thousands of characters and is willing to wait several hours (idk?) for it during project building. Then it is its free to set the config BN_CFG_SPRITE_TEXT_MAX_UTF8_CHARACTERS_FOR_DUPLICBN_CFG_SPRITE_TEXT_MAX_UTF8_CHARACTERS_FOR_DUPLIC to a big number like 5000, and it can be done thanks to https://github.com/GValiente/butano/pull/18/commits/d88f7860515ab0685c7159477ec78547d45f25cf.

why Butano's bn::sprite_font class needs to allow UTF-8 character collisions

I have already explained it in the commit message of https://github.com/GValiente/butano/commit/93bca7e5070213c57b153e2d41e1ab24acb15743. It doesn't disable the check. It adds a config for user to decide the threshold of the character numbers to skip it to avoid project build process from hanging. The check function is just a simple nested loop, which is O(N^2). If there are 2000 characters to check, it needs to compute 5000 x 5000 = 25000000 times, which will take a really long time. And it will exceed the default max times limit for constexpr operations, and the compiler will complain it and quit.

That's a problem that needs to be fixed instead of being hacked out.
Could you create a separate issue with a big bn::sprite_font (no bmfont) that exceeds compiler operation count limit? Thanks a lot.

Could you create a separate issue with a big bn::sprite_font (no bmfont) that exceeds compiler operation count limit? Thanks a lot.

Done. https://github.com/GValiente/butano/issues/19.

It is compatible with the font system change now.
Example

I hope with the new bn::sprite_font implementation you don't need modify Butano to convert BMFont fonts to the bn::sprite_font format.
About merging BMFont support into the master branch, I would prefer to have it as an external tool for now, and merging it in the future if it gains traction and becomes more popular after having matured a bit.
If you need more changes in the core for supporting BMFont or for anything else, just say it :)
Again, thanks a lot for your help.

Could you please adviuse me how to implement post-process on the generated graphics?
As shown above, the current solution is to modify $(GRAPHICSFILES) in Makefile. That variable is not accessible in project's Makefile. Notice that it doesn't work to add it to $(GRAPHICS).

It also causes build problem to add generated graphics folder to $(GRAPHICS) in project's Makefile.
The current solution is to add it to parameter --graphics passed to butano_assets_tool.py in butano's Makefile.
https://github.com/GValiente/butano/pull/18/commits/3f636afdfeed49bf5a4170b0acd5e3e28ca2fa15
That parameter is not accessible in project's Makefile either.

External tool is run before the rest, so if that tool generates files with known extensions (like *.h and *.bmp) in one of the folders specified in the user Makefile for each data type, you should not need to modify Butano.
Take a look at the external_tool example. In fact, you would only need to change GRAPHICS to support images generation from the external tool. Something like this should work:
TARGET      :=  $(notdir $(CURDIR))
BUILD       :=  build
LIBBUTANO   :=  /path/to/butano
PYTHON      :=  python
SOURCES     :=  src bmfont/src
INCLUDES    :=  include bmfont/include
DATA        :=
GRAPHICS    :=  graphics bmfont/graphics
AUDIO       :=  audio
ROMTITLE    :=  BMFONT
ROMCODE     :=  SBMF
USERFLAGS   :=
USERLIBDIRS :=
USERLIBS    :=
USERBUILD   :=  bmfont
EXTTOOL     :=  @$(PYTHON) -B bmfont-script.py --build=$(USERBUILD)

The tool would generate output files in the bmfont folder that would be compiled later by butano.mak without modifications (I hope).

Yes, you are right. I realized it later so I marked them with strikeout. I just need to add an independant cmd interface for butano_fonts_tool.py instead of a pure module for butano_asset_tool.py to import. Sorry to bother you. Thanks.

New Feature
Auto trim useless characters in fonts to save space.
Principle

counts characters in text files
extract counted characters from font files
insert the subset into the game

Backward Compatibility
It is disabled if no path to texts is set in Makefile. Old projects needn't any change to build without the new feature.
Example
Test Result

Built with auto-trim disabled

common_sc_variable_16x16.fnt
common_jp_variable_16x16.fnt
common_kr_variable_16x16.fnt
common_tc_variable_16x16.fnt
common_hc_variable_16x16.fnt
    ../../common/fonts/SimplifiedChinese/common_sc_variable_16x16.fnt font header written in build/common_sc_variable_16x16_sprite_font.h (character number: 3694)
    ../../common/fonts/Japanese/common_jp_variable_16x16.fnt font header written in build/common_jp_variable_16x16_sprite_font.h (character number: 2710)
    ../../common/fonts/Korean/common_kr_variable_16x16.fnt font header written in build/common_kr_variable_16x16_sprite_font.h (character number: 2453)
    ../../common/fonts/TraditionalChinese/common_tc_variable_16x16.fnt font header written in build/common_tc_variable_16x16_sprite_font.h (character number: 11254)
    ../../common/fonts/TraditionalChineseHK/common_hc_variable_16x16.fnt font header written in build/common_hc_variable_16x16_sprite_font.h (character number: 4918)
    Processed character number: 25029
    music_items_info file written in build/bn_music_items_info.h
    sound_items_info file written in build/bn_sound_items_info.h
    Processed audio size: 12 bytes
common_hc_variable_16x16.bmp
common_jp_variable_16x16.bmp
common_kr_variable_16x16.bmp
common_sc_variable_16x16.bmp
common_tc_variable_16x16.bmp
    common_hc_variable_16x16.bmp item header written in build/bn_sprite_items_common_hc_variable_16x16.h (graphics size: 3203744 bytes)
    common_jp_variable_16x16.bmp item header written in build/bn_sprite_items_common_jp_variable_16x16.h (graphics size: 819744 bytes)
    common_kr_variable_16x16.bmp item header written in build/bn_sprite_items_common_kr_variable_16x16.h (graphics size: 1133728 bytes)
    common_sc_variable_16x16.bmp item header written in build/bn_sprite_items_common_sc_variable_16x16.h (graphics size: 472864 bytes)
    common_tc_variable_16x16.bmp item header written in build/bn_sprite_items_common_tc_variable_16x16.h (graphics size: 2574240 bytes)
    Processed graphics size: 8204320 bytes

Built .gba file size: 8954348 bytes

Build with auto-trim enabled

common_sc_variable_16x16.fnt
common_jp_variable_16x16.fnt
common_kr_variable_16x16.fnt
common_tc_variable_16x16.fnt
common_hc_variable_16x16.fnt
    ../../common/fonts/SimplifiedChinese/common_sc_variable_16x16.fnt font header written in build/common_sc_variable_16x16_sprite_font.h (character number: 115)
    ../../common/fonts/Japanese/common_jp_variable_16x16.fnt font header written in build/common_jp_variable_16x16_sprite_font.h (character number: 116)
    ../../common/fonts/Korean/common_kr_variable_16x16.fnt font header written in build/common_kr_variable_16x16_sprite_font.h (character number: 98)
    ../../common/fonts/TraditionalChinese/common_tc_variable_16x16.fnt font header written in build/common_tc_variable_16x16_sprite_font.h (character number: 120)
    ../../common/fonts/TraditionalChineseHK/common_hc_variable_16x16.fnt font header written in build/common_hc_variable_16x16_sprite_font.h (character number: 120)
    Processed character number: 569
    music_items_info file written in build/bn_music_items_info.h
    sound_items_info file written in build/bn_sound_items_info.h
    Processed audio size: 12 bytes
common_hc_variable_16x16.bmp
common_jp_variable_16x16.bmp
common_kr_variable_16x16.bmp
common_sc_variable_16x16.bmp
common_tc_variable_16x16.bmp
    common_hc_variable_16x16.bmp item header written in build/bn_sprite_items_common_hc_variable_16x16.h (graphics size: 72864 bytes)
    common_jp_variable_16x16.bmp item header written in build/bn_sprite_items_common_jp_variable_16x16.h (graphics size: 29600 bytes)
    common_kr_variable_16x16.bmp item header written in build/bn_sprite_items_common_kr_variable_16x16.h (graphics size: 42144 bytes)
    common_sc_variable_16x16.bmp item header written in build/bn_sprite_items_common_sc_variable_16x16.h (graphics size: 14752 bytes)
    common_tc_variable_16x16.bmp item header written in build/bn_sprite_items_common_tc_variable_16x16.h (graphics size: 57504 bytes)
    Processed graphics size: 216864 bytes

Built .gba file size: 354724 bytes

I'll close the pull request.
Feel free to create an issue if you need it.


chore: Less noisy AVM failures in proving

If AVM fails to prove and AVM_PROVING_STRICT is not set, do not log an error.

Current state of logs around AVM is:

@timestamp
@message
@logStream
@log

2024-08-27 18:12:51.418
2024-08-27T18:12:51.417Z aztec:bb-prover [INFO] Generated witness circuitName=root-parity duration=52.088863134384155 inputSize=121668 outputSize=96 eventName=circuit-witness-generation
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.260
2024-08-27T18:12:51.260Z aztec:prover-client:prover-pool:queue [ERROR] Job id=d7c02e64 type=PUBLIC_VM failed with error: (JSON-RPC PROPAGATED) Attempted to read beyond buffer length. Start index: 96, Num bytes to read: 32, Buffer length: 116
ecs/provernet-aztec-prover-node-1/8b486eb193e143afa83f0ae50be4abb1
278380418400:/fargate/service/provernet/aztec-prover-node-1

2024-08-27 18:12:51.260
2024-08-27T18:12:51.260Z aztec:prover:proving-orchestrator [WARN] Error thrown when proving AVM circuit: (JSON-RPC PROPAGATED) Attempted to read beyond buffer length. Start index: 96, Num bytes to read: 32, Buffer length: 116
ecs/provernet-aztec-prover-node-1/8b486eb193e143afa83f0ae50be4abb1
278380418400:/fargate/service/provernet/aztec-prover-node-1

2024-08-27 18:12:51.260
2024-08-27T18:12:51.260Z aztec:prover:proving-orchestrator [WARN] AVM_PROVING_STRICT is off, faking AVM proof and carrying on...
ecs/provernet-aztec-prover-node-1/8b486eb193e143afa83f0ae50be4abb1
278380418400:/fargate/service/provernet/aztec-prover-node-1

2024-08-27 18:12:51.259
2024-08-27T18:12:51.259Z aztec:prover-client:prover-agent [ERROR] Error processing proving job id=d7c02e64 type=PUBLIC_VM: Error: (JSON-RPC PROPAGATED) Attempted to read beyond buffer length. Start index: 96, Num bytes to read: 32, Buffer length: 116
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at defaultFetch (file:///usr/src/yarn-project/foundation/dest/json-rpc/client/json_rpc_client.js:47:19)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async retry (file:///usr/src/yarn-project/foundation/dest/retry/index.js:47:20)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async file:///usr/src/yarn-project/foundation/dest/json-rpc/client/json_rpc_client.js:64:16
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async request (file:///usr/src/yarn-project/foundation/dest/json-rpc/client/json_rpc_client.js:88:21)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async ProverAgent.work (file:///usr/src/yarn-project/prover-client/dest/prover-agent/prover-agent.js:97:17): NoRetryError: (JSON-RPC PROPAGATED) Attempted to read beyond buffer length. Start index: 96, Num bytes to read: 32, Buffer length: 116
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at defaultFetch (file:///usr/src/yarn-project/foundation/dest/json-rpc/client/json_rpc_client.js:47:19)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async retry (file:///usr/src/yarn-project/foundation/dest/retry/index.js:47:20)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async file:///usr/src/yarn-project/foundation/dest/json-rpc/client/json_rpc_client.js:64:16
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async request (file:///usr/src/yarn-project/foundation/dest/json-rpc/client/json_rpc_client.js:88:21)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

2024-08-27 18:12:51.259
at async ProverAgent.work (file:///usr/src/yarn-project/prover-client/dest/prover-agent/prover-agent.js:97:17)
ecs/provernet-aztec-proving-agent-group-1/d0bd020bcd9244d4ab9692f706c8ffbd
278380418400:/fargate/service/provernet/aztec-proving-agent-group-1

Benchmark results
Metrics with a significant change:

protocol_circuit_simulation_time_in_ms (private-kernel-tail-to-public): 665 (-52%)
avm_simulation_time_ms (Token:mint_public): 70.0 (+56%)
avm_simulation_time_ms (Token:assert_minter_and_mint): 41.0 (-39%)
avm_simulation_time_ms (Token:transfer_public): 40.3 (+44%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,742
1,562
709 (-1%)
745 (-3%)
772

proof_construction_time_sha256_30_ms
11,464
3,078 (-1%)
1,378 (-2%)
1,427 (-1%)
1,452 (-2%)

proof_construction_time_sha256_100_ms
44,025
11,834
5,475
5,453 (-4%)
5,690 (-3%)

proof_construction_time_poseidon_hash_ms
78.0
34.0
34.0
59.0 (-2%)
88.0 (+1%)

proof_construction_time_poseidon_hash_30_ms
1,529
422
201
231
268

proof_construction_time_poseidon_hash_100_ms
5,642
1,512
672 (-1%)
728 (-2%)
747

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
4,356
7,876
14,884

l1_rollup_calldata_gas
50,268
93,010
178,060

l1_rollup_execution_gas
842,928
1,576,566
3,361,672

l2_block_processing_time_in_ms
254 (+4%)
444 (-4%)
794 (-4%)

l2_block_building_time_in_ms
11,293 (-1%)
22,135 (-1%)
43,970 (-2%)

l2_block_rollup_simulation_time_in_ms
11,292 (-1%)
22,135 (-1%)
43,970 (-2%)

l2_block_public_tx_process_time_in_ms
9,607 (-1%)
20,324 (-1%)
42,147 (-2%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
2,996 (-1%)
3,826 (-4%)

node_database_size_in_bytes
12,619,856
16,703,568

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
simulation_time_in_ms
witness_generation_time_in_ms
input_size_in_bytes
output_size_in_bytes
proving_time_in_ms

private-kernel-init
90.8 (-1%)
397
21,735
44,860
N/A

private-kernel-inner
176 (-6%)
699
72,544
45,007
N/A

private-kernel-reset-tiny
312 (+1%)
709 (-1%)
65,593
44,846
N/A

private-kernel-tail
166
135 (-1%)
50,644
52,257
N/A

base-parity
5.57 (-1%)
N/A
160
96.0
N/A

root-parity
35.3 (-2%)
N/A
73,948
96.0
N/A

base-rollup
3,416 (-2%)
N/A
189,136
664
N/A

block-root-rollup
41.3 (-1%)
N/A
58,205
2,448
N/A

public-kernel-setup
84.6 (-1%)
N/A
105,085
71,222
N/A

public-kernel-app-logic
96.1 (-1%)
N/A
104,911
71,222
N/A

public-kernel-tail
854 (-1%)
N/A
390,582
16,414
N/A

private-kernel-reset-small
312
N/A
66,341
45,629
N/A

private-kernel-tail-to-public
:warning: 665 (-52%)
612
455,400
1,825
N/A

public-kernel-teardown
83.5 (-2%)
N/A
105,349
71,222
N/A

merge-rollup
20.1 (-1%)
N/A
38,174
664
N/A

undefined
N/A
N/A
N/A
N/A
77,511 (-1%)

Stats on running time collected for app circuits

Function
input_size_in_bytes
output_size_in_bytes
witness_generation_time_in_ms

ContractClassRegisterer:register
1,344
11,731
340 (-1%)

ContractInstanceDeployer:deploy
1,408
11,731
18.1 (-1%)

MultiCallEntrypoint:entrypoint
1,920
11,731
403 (-1%)

FeeJuice:deploy
1,376
11,731
386 (-1%)

SchnorrAccount:constructor
1,312
11,731
73.6

SchnorrAccount:entrypoint
2,304
11,731
393 (-1%)

Token:privately_mint_private_note
1,280
11,731
102 (-6%)

FPC:fee_entrypoint_public
1,344
11,731
29.1 (+7%)

Token:transfer
1,312
11,731
229 (+2%)

Benchmarking:create_note
1,344
11,731
85.1 (-3%)

SchnorrAccount:verify_private_authwit
1,280
11,731
27.8

Token:unshield
1,376
11,731
523

FPC:fee_entrypoint_private
1,376
11,731
698 (-2%)

AVM Simulation
Time to simulate various public functions in the AVM.

Function
time_ms
bytecode_size_in_bytes

FeeJuice:_increase_public_balance
56.0 (-10%)
7,101

FeeJuice:set_portal
12.4 (+20%)
2,128

Token:constructor
82.2 (-3%)
25,285

FPC:constructor
54.3 (-2%)
17,853

FeeJuice:mint_public
39.4 (-7%)
5,415

Token:mint_public
:warning: 70.0 (+56%)
10,101

Token:assert_minter_and_mint
:warning: 41.0 (-39%)
6,844

AuthRegistry:set_authorized
37.2 (-20%)
3,969

FPC:prepare_fee
241 (+3%)
6,747

Token:transfer_public
:warning: 40.3 (+44%)
38,126

FPC:pay_refund
51.1 (-5%)
9,398

Benchmarking:increment_balance
1,190 (-1%)
6,179

Token:_increase_public_balance
38.7 (-2%)
7,705

FPC:pay_refund_with_shielded_rebate
62.4 (-1%)
9,881

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.159

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
2.16 (-3%)
3.95 (+1%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.113 (-2%)
0.112 (+2%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
11.2 (-2%)
17.7 (-3%)
30.6 (-2%)
59.6
112 (-2%)

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.108 (-2%)
0.103 (-3%)
0.0996 (-2%)
0.103
0.100 (-1%)

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
14.2 (-1%)
25.2 (-3%)
43.3 (-1%)
82.5
159 (-3%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
109
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.108 (-1%)
0.102 (-2%)
0.105 (-1%)
0.102
0.100 (-2%)

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
16.5 (-1%)
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
132
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.106 (-1%)
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
64,779
668,997

Transaction size based on fee payment method
| Metric |  |
| - |  |


Druid tasks UI becomes very slow when there are hundreds of tasks running at the same time.

Affected Version
0.21.1
Description
when there are hundreds of subtasks running, Druid tasks UI became slow and sometimes threw gateway timeout error.
I have 10 routers running each has 10GB of RAM. In comparison, normal Druid queries are running decently fast.

I think it's same as #11042 and #11140. As a workaround, you can set a smaller value on druid.indexer.storage.recentlyFinishedThreshold.

Unfortunately, I have set druid.indexer.storage.recentlyFinishedThreshold to 1 day and it's still unresponsive when there are > 700 sub tasks in 1 day.

Increasing Overlord heap to 64GB helped a little bit. But sometimes, I still get 504 error.

For everyone here with the same problem, I ended up writing a custom cronjob that deletes completed druid_tasks where timestamp is older than current_time - 1 hour.

I believe https://github.com/apache/druid/pull/12404 greatly improved the situation here. Please re-open if you see this post 24.0


Unhandled Exception: Stack Overflow    _Random.nextInt

static double randomAngle(double angle) {
if (angle == 0) return 0;
final Random random = Random();
final int count = 1 ~/ angle;
return random.nextInt(count) * (2 * pi * angle);
}
Calling the randomAngle function multiple times, random.nextInt(count) throws an exception
flutter --version:
Flutter 3.7.10 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4b12645012 (6 days ago) • 2023-04-03 17:46:48 -0700
Engine • revision ec975089ac
Tools • Dart 2.19.6 • DevTools 2.20.1
flutter doctor：
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.10, on macOS 13.2.1 22D68 darwin-x64, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.77.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
• No issues found!

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Stack Overflow
#0      _Random.nextInt (dart:math-patch/math_patch.dart:231:3)

Hi @zhoushuangjian001
From what I can see, the issue is related to Dart SDK rather than to Flutter itself. Please open the issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself.


Illuminate\Database\QueryException could not find driver (SQL:)

Sail Version: 1.12.10
Laravel Version: 8.75.0
PHP Version: 8.1.2
OS: Ubuntu 20.04.3 LTS
Docker version: 20.10.12
docker-compose version: 1.27.4

Description:
I'm trying to build laravel app using sail build --no-cache command. But when it is finished I see php version is 8.1.2, but in the docker-compose.yml I have:
context: ./vendor/laravel/sail/runtimes/**8.0**
image: sail-**8.0**/app.
And when I'm trying to login into my app, I'm getting Illuminate\Database\QueryException could not find driver (SQL:) error.
I'm also getting the same error in the sail artisan tinker
Steps To Reproduce:
docker-compose.yml
# For more information: https://laravel.com/docs/sail
version: '3'
services:
    myapp.localhost:
        build:
            context: ./vendor/laravel/sail/runtimes/8.0
            dockerfile: Dockerfile
            args:
                WWWGROUP: '${WWWGROUP}'
        image: sail-8.0/app
        extra_hosts:
            - 'host.docker.internal:host-gateway'
        ports:
            - '${APP_PORT:-80}:80'
        environment:
            WWWUSER: '${WWWUSER}'
            LARAVEL_SAIL: 1
            XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
            XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
        volumes:
            - '.:/var/www/html'
        networks:
            - sail
        depends_on:
            - mysql
            - redis
    mysql:
        image: 'mysql/mysql-server:8.0'
        ports:
            - '${FORWARD_DB_PORT:-3306}:3306'
        environment:
            MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
            MYSQL_ROOT_HOST: "%"
            MYSQL_DATABASE: '${DB_DATABASE}'
            MYSQL_USER: '${DB_USERNAME}'
            MYSQL_PASSWORD: '${DB_PASSWORD}'
            MYSQL_ALLOW_EMPTY_PASSWORD: 1
        volumes:
            - 'sailmysql:/var/lib/mysql'
        networks:
            - sail
        healthcheck:
          test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"]
          retries: 3
          timeout: 5s
    redis:
        image: 'redis:alpine'
        ports:
            - '${FORWARD_REDIS_PORT:-6379}:6379'
        volumes:
            - 'sailredis:/data'
        networks:
            - sail
        healthcheck:
          test: ["CMD", "redis-cli", "ping"]
          retries: 3
          timeout: 5s
networks:
    sail:
        driver: bridge
volumes:
    sailmysql:
        driver: local
    sailredis:
        driver: local

.env
APP_SERVICE="myapp.localhost"
WWWGROUP=1000
WWWUSER=1000
SAIL_XDEBUG_MODE=develop,debug
SAIL_XDEBUG_CONFIG="client_host=<IP_ADDRESS>"

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=myapp
DB_USERNAME=sail
DB_PASSWORD=password

Any thoughts?

Try the latest Sail version (that has a fix) with a fresh install

I updated laravel/sail to version 1.13.1, reinstalled sail.
Result is the same.
Btw this is not a fresh install.

https://github.com/laravel/sail/issues/314#issuecomment-1015764864
This thing helped!


Highlighting parentheses is off by one

Now that we can select the contents of a parentheses by double clicking before the close parenthesis, it is strange to highlight the parentheses when we are after the closed parenthesis.

Now that we can select the contents of a parentheses by double clicking before the close parenthesis

Didn't know about that - another great workflow improver :)


Disable Download button for reports when no records are found

https://bugzilla.redhat.com/show_bug.cgi?id=1205023
Download button should be disabled for reports when no records are found.

The patch is ok, but it's expanding code that we want to remove.
So let's keep the 1st part and for the 2nd part lets take a look at
app/helpers/application_helper/toolbar/report_view.rb:      :download_choice, add a new button class there, let's say ReportDownloadChoice that would live under
app/helpers/application_helper/button/report_download_choice.rb and that would have method disabled? and there you put the 2nd part of your PR.

@martinpovolny Understood and done. Behaves like it should. Thanks :)


Add Authentication and Authorization to the Application mistake

Tutorials: https://developers.sap.com/tutorials/cp-cap-java-security-local.html
The app stops working on Step 4 with an DB-related exception:
"Table ... not found (this database is empty)"
The reason is application.yaml is missing "sql.init.schema-locations" property, although it's there on Step 3.

Thanks @Denis-D-M ,
this will be fixed with an update coming today.

Fix is shipped, therefore closing. Thanks a lot! :)


Feature - Moving SessionDelegate to Store Requests

This PR modifies the SessionDelegate to store Requests internally instead of only the task delegates of the Request in preparation for more advanced features such as retry logic.

There are no functional changes to the behavior in this PR.

Closing this out in favor of #1391.


treewide: migrate packages to by-name

Description of changes

Since Hash-340235 manual migration is no longer discouraged.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Nothing to be built.

Link to currently reviewing PR:
https://github.com/NixOS/nixpkgs/pull/341412

Oh I should have edited the PR title to avoid making a big news


feat(96): init and create command

Resolves: https://github.com/statoscope/statoscope/issues/96

feat(cli): added create and init rule
fix(webpack-model): added initial field in type Chunk
feat(cli): added init command
feat(cli): added create command # Please, use semantic commit message

Codecov Report

Merging #139 (e2ef0c2) into master (c9d0c14) will decrease coverage by 1.22%.
The diff coverage is 0.00%.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c9d0c14...e2ef0c2. Read the comment docs.

@smelukov  Hello, thank you for the suggestion! I added support for esm and commonjs modules for JS files. I only added a comment about jora-queries because it only returns the unknown type. Maybe there is a task to fix this?

@OrlovAlexei are you done here?

@smelukov yes, I'm done

Thank!
Sorry for so long waiting.
I've got some rest )


Implement principal unlocking

... using code taken from MIT Kerberos's kadmin.c that takes care of proper
replication of unlock information.

Supersedes https://github.com/russjancewicz/python-kadmin/pull/42.


Learn.md

Learn repos should have a LEARN.md file to teach student how to build your project step by step. You can explain how to build your project with text, code snippets, images, or even short (5 minute) long video lessons. As the maintainer of a Learn repo, the LEARN.md file requires you to think critically about how to explain the building of your project and how to also make it engaging. We don't expect you to be an expert teacher, but we would like you to reflect on how difficult it was to get to your level of knowledge, and then provide friendly guidance to help other students to learn.
Reference: https://github.com/Recode-Hive/Stackoverflow-Analysis/blob/main/Learn.md

I am a GSSoc'24 contributor. I want to work on this task. Could you please assign me this task? I have already analyzed your project , along with the other 2 repositories related to this project.

Greetings Sir, @sanjay-kv , I have studied the project and  I can say am capable of writing Learn.md for this project since have worked on projects related to this tech stack. As a GSSoC contributor, i would like to work on the same. It would be great if you could assign me this issue.


Replace URL-relative doc links with intra-doc links

This fixes invalid documentation links for crates that re-export cortex-m.

r? @adamgreig
(rust-highfive has picked a reviewer for you, use r? to override)


j/k navigation steals ctrl+j/k from the browser

I'm inordinately pleased that pdf.js supports j and k for navigation, but I also use Ctrl+K to get to the search box in Firefox. At present, pdf.js is catching the Ctrl+K itself and going up a page rather than letting the browser activate the search box.

Easy to fix. We should just test if the keyevent has ctrlKey=true

@chris-morgan Should be fixed by latest commit :)


Wrong configuration causes downgrade of RF 7.0 to 6.1.1

I was just trying your library but it downgraded my Robot Framework installed from 7.0.
Output:
C:\>pip install robotframework-asyncio-utils
Collecting robotframework-asyncio-utils
  Downloading robotframework_asyncio_utils-0.1.6-py3-none-any.whl.metadata (1.2 kB)
Collecting robotframework<7.0.0,>=6.1.0 (from robotframework-asyncio-utils)
  Downloading robotframework-6.1.1-py3-none-any.whl.metadata (7.5 kB)
Downloading robotframework_asyncio_utils-0.1.6-py3-none-any.whl (4.7 kB)
Downloading robotframework-6.1.1-py3-none-any.whl (699 kB)
   ---------------------------------------- 699.1/699.1 kB 7.3 MB/s eta 0:00:00
Installing collected packages: robotframework, robotframework-asyncio-utils
  Attempting uninstall: robotframework
    Found existing installation: robotframework 7.0
    Uninstalling robotframework-7.0:
      Successfully uninstalled robotframework-7.0
Successfully installed robotframework-6.1.1 robotframework-asyncio-utils-0.1.6

I was using "^6.1.0"  in pyproject, the correct is ">=6.1.0". It should be good now, ty for the issue.

@ygorpontelo You might make that ">=6.1.1" as 6.1.0 had an issue and the recommended 6.x version is 6.1.1

Good point, i think it's worth setting to 6.1.1

I confirm it is fixed.
Thanks.


Submit button field

Issue: #22
Sample schema:
        {
            type: "submit",
            label: "",
            caption: "Submit form",
            validateBeforeSubmit: true,
            onSubmit(model, schema) {
                console.log("Form submitted!", model);
                alert("Form submitted!");
            }
        }

Coverage increased (+0.2%) to 87.245% when pulling 7b575c31f0b85bcd764ee4203b8458d91dfc0067 on submit-field into 912b833e2523573879de934bfa703775ff1db2b1 on master.

Awesome, i can't wait to use it ! Thanks !

You're welcome. Fiddle example: https://jsfiddle.net/icebob/vb2gf4dz/

How do I call a method from the submit button?
I tried this:
{                type: "submit",                label: "Submit",                validateBeforeSubmit: true,                onSubmit(model, schema) {                  this.testmeth()                  console.log("Form submitted!", model)                }
with method:testmeth: function() {          console.log('test')        }
but I get this error in the console:

App.vue?9074:133 Uncaught TypeError: this.testmeth is not a function


Optional[Path] = typer.Argument returns TypeError when passed into open()

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the Typer documentation, with the integrated search.
[X] I already searched in Google "How to X in Typer" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to Typer but to Click.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
# cli.py
@app.command()
def main(
    config_file: Optional[Path] = typer.Argument(
        "config.yaml",  # Default if not provided
        exists=True,
        file_okay=True,
        dir_okay=False,
        writable=False,
        readable=True,
        resolve_path=True,
    )
):

    config_data = parse_yaml_config_file(config_file)

# config.py
import yaml

def parse_yaml_config_file(file) -> dict:
    with open(file) as yaml_file:
        return yaml.safe_load(yaml_file)

Description
The above code works as expected in dev, and all unit tests pass. However, after creating a wheel and installing into a test venv I get the following Traceback:
Traceback (most recent call last):
  File "C:\Users\RickyWhite\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\RickyWhite\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\RickyWhite\OneDrive - The Migus Group\Desktop\Test\venv\Scripts\hofund.exe\__main__.py", line 7, in <module>
  File "C:\Users\RickyWhite\OneDrive - The Migus Group\Desktop\Test\venv\lib\site-packages\hofund\cli.py", line 37, in main
    config_data = parse_yaml_config_file(config_file)
  File "C:\Users\RickyWhite\OneDrive - The Migus Group\Desktop\Test\venv\lib\site-packages\hofund\config.py", line 8, in parse_yaml_config_file
    with open(config_file) as yaml_file:
TypeError: expected str, bytes or os.PathLike object, not ArgumentInfo

I've check my debugger and with print, and the config_file is indeed a WindowsPath object.
I've tried converting to a str, but get an OSError: [Errno 22] Invalid argument: '<typer.models.ArgumentInfo object at 0x000001F590930DC0>' error instead.
I'm not sure why it seems to be of type ArgumentInfo when installed from a wheel, but WindowsPath object when ran locally. 😕
Operating System
Windows
Operating System Details
Windows 11
OS build 22000.438
Typer Version
0.4.0
Python Version
3.10
Additional Context
No response

Maybe you are using calling main() instead of typer.run(main)?

I am facing a similar issue when using typer.Option(None).
Basically, I am trying to use file:str=typer.Option(None) as default value for a file path input and then trying to read it from somewhere.
However, during the check if file is None, I get a False as output.
A snippet for the explaining the basic issue is there:
>>> import typer
>>> var =  typer.Option(None)
>>> var
<typer.models.OptionInfo object at 0x7fc09002d880>
>>> var is None
False

This causes the error that I get is
AttributeError: 'OptionInfo' object has no attribute 'open'

as I am trying to read the file.

@Mirandatz nailed it ❤.
In my case I had a entry point defined with Poetry:
[tool.poetry.scripts]
fact = "fact.cli:main"

But I was pointing that to:
def main(n: int = Argument(..., min=0, help="The input n of fact(n)")) -> None:

But that wasn't being wrapped in typer.run(main).
I fixed this by pointing the console script at:
def entry_point() -> None:
    typer.run(main)


Problem with tutorial Simple Single Sign-On with Spring Security OAuth2

I've downloaded the code of Simple Single Sign-On with Spring Security OAuth2 tutorial and I cannot log in with username john and password 123. Both ui applications redirect to Authorization Server log in, but after typing credentials, appears the following message: "Full authentication is required to access this resource".
It seems like the Autorization Header is missing in request, but I can't figure out how to solve.

I'm not able to reproduce your issue. I'm testing using the latest master branch. Here are my steps:

Run AuthorizationServerApplication (spring-security-sso-auth-server module)
Run UiApplication (spring-security-sso-ui module)
Open a browser to http://localhost:8082/ui
Click login
Enter 'john' and '123' and click login
You should see a page that looks like:
Secured Page
Welcome, john


is it possible to export tiles

hii. is it possible to export tiles in PNGs format  because i want to use tiles for my offline project

Planetiler creates vector tiles. You can render them in MapLibre GL JS for example. I would search for difference between vector tiles and raster tiles to learn more about the two

You can export them to pbf with mbutil, like
./mb-util --image_format=pbf input.mbtiles output_folder`

For example, https://github.com/maplibre/demotiles/tree/gh-pages/tiles-omt
**note, in that tiles-omt example, I also had to uncompress the pbfs with something like
cd output_folder
gzip -d -r -S .pbf *
find . -type f -exec mv '{}' '{}'.pbf \;

(this came from the bottom of https://openmaptiles.org/docs/host/tileserver-php/ )
But like @wipfli said, these aren't images
Something like maplibre-native to render pngs with a style, but that would take a bit of work. . For example, tileserver-gl is able to generate static images using the node maplibre-native like this

Although I will say, it is a pain dealing with flat exported files like that because it can be a LOT of files. In my opinion mbtiles is a lot more portable.

You could also serve the generated mbtiles file with tileserver-gl. It exposes an api that renders raster tiles from the vector tiles and you can download all of the pngs from that to another mbtiles file, for example pointing something like tilelive-copy at the API endpoint.

You could also serve the generated mbtiles file with tileserver-gl. It exposes an api that renders raster tiles from the vector tiles and you can download all of the pngs from that to another mbtiles file, for example pointing something like tilelive-copy at the API endpoint.

hello @msbarry  i had try this when i serve the mbtiles file it only give me an option to vector view in tileserver-gl ,,can you explain how it can be possible i want to convert mbtiles into folder format ( pngs) i successfully tried to convert it through a tool (mbutil) it sucessfully convrert it but unfortunately it give me a fatal error  "Reading PNG image file" Not a png file

@toqeer786 why do you need png tiles? If you use MapLibre GL JS, you do not need the png tiles, instead, you can use vector tiles directly...

Planetiler converts OpenStreetMap data to vector tiles. If you need raster tiles, you need to convert the vector tiles to raster tiles. This can be done for example with tileserver-gl or with MapLibre GL Native node bindings.

Hi @wipfli i need it pngs form to use it in my project and can you please share link as you said node bindings ? how can i convert vector tiles to raster tiles ,,i had try alots of tools like rasterize-vector tiles ,mbutil , but id didnt help

https://github.com/maplibre/maplibre-gl-native/tree/main/platform/node and @acalcutt is the expert on how to use this...


Night mode does not work correctly

Steps to reproduce:

Open settings
Check night mode field
See night mode in settings
Go to main page

- 5. See main page is not night mode

Expected:
+ See main page in night mode

Force closing and opening the app makes is done. You can just tell user, that it needs restart for working and close him the app.


Windows phone reports as os-ios, browser-safari, device-iphone

Tested from Lumia 930.
{{deviceDetector}} outputs:
{
  "raw":{
     "userAgent":"Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 930) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537",
     "os":{
        "windows":false,
        "mac":true,
        "ios":true,
        "android":true,
        "linux":false,
        "unix":false,
        "firefoxos":false,
        "windows-phone":true,
        "ps4":false,
        "vita":false,
        "unknown":false
     },
     "browser":{
        "chrome":false,
        "firefox":false,
        "safari":true,
        "opera":false,
        "ie":true,
        "ps4":false,
        "vita":false,
        "unknown":false
     },
     "device":{
        "android":true,
        "ipad":false,
        "iphone":true,
        "ipod":false,
        "blackberry":false,
        "firefoxos":false,
        "windows-phone":true,
        "ps4":false,
        "vita":false,
        "unknown":false
     },
     "os_version":{
        "windows-3-11":false,
        "windows-95":false,
        "windows-me":false,
        "windows-98":false,
        "windows-ce":false,
        "windows-2000":false,
        "windows-xp":false,
        "windows-server-2003":false,
        "windows-vista":false,
        "windows-7":false,
        "windows-8-1":false,
        "windows-8":false,
        "windows-nt-4-0":false,
        "unknown":false
     }
  },
  "os":"ios",
  "browser":"safari",
  "device":"android",
  "os_version":"unknown",
  "browser_version":"0"
}

I'm going to work on a PR in a bit, on an initial glance, looks like the string like iPhone... in raw string might be messing with the regex. (I could be completely wrong though)

Yea - it's ******* microsoft - they just have to put every known keyword in the UA....
I think best solution is to add a {not:"Windows Phone"} in appropriate REs.
Go ahead and try it - if you have issues just send me word.
10x :)

Hi, submitted a pr: #33 but travis is failing due to some dependency. I'm at a new work place and haven't had a chance to setup any tools for minification etc yet, so used an online minify for the min.js. Let me know if/what I need to do, thanks.

Closed the issue as the pr was merged; feel free to reopen if something's amiss. Thanks!


Sensding of states from adapter to openhab does not working (due to my changes)

The sending of changes from iobroker to openhab is not working at the moment (master, latest revision)
I am working on this and it should be corrected this weekend.
Sorry.
Regards,
Sven

The modifications are working in my version. Issue should be solved therefore.


start new project

/ai:go start web application, use nuxt.js, typescript, vue and cloud functions for server.

/ai:go
The web page should be community landing page with list of community events and ability to subscribe to community news.
In cloud function should be mail subscriber, what should use the SendGrid api

/ai:go
use pretty flat wireframes, the community page should include list of events, community title: "Math.random()" and subscription form.

/ai:go

/ai:go


New Thermostat Installation / Configuration changes fail (and crash HA!)

Hi there,
when I crate a new VTherm Home Assistant crashes. Vtherm shows the next step popup, but never finished.
Instead HA as a whole becomes inresponsive/crashes after 10 seconds and never recovers.

The Instance can only be brought back with a VM restart.
After the restart the VTherm is despite it fuctional, but when I change the configuration it returns to a failed state.
Wohnzimmer - Hinten: functional after restart

Wohnzimmer - Vorner: functional after restart - just did a pseudo change by altering cycle time => Error

Version of the custom_component

Configuration

My VTherm attributes are the following (both VTherms above are identical except for switch and sensor)
hvac_modes: heat, off
min_temp: 10
max_temp: 30
target_temp_step: 0.1
current_temperature: 22.2
temperature: null
hvac_action: idle
is_on: null
hvac_mode: null
preset_mode: none
type: null
is_controlled_by_central_mode: false
last_central_mode: null
frost_temp: 0
eco_temp: 0
boost_temp: 0
comfort_temp: 0
frost_away_temp: 0
eco_away_temp: 0
boost_away_temp: 0
comfort_away_temp: 0
power_temp: null
target_temperature_step: 0.1
ext_current_temperature: null
ac_mode: false
current_power: null
current_power_max: null
saved_preset_mode: none
saved_target_temp: none
saved_hvac_mode: null
motion_sensor_entity_id: null
motion_state: null
power_sensor_entity_id: null
max_power_sensor_entity_id: null
overpowering_state: null
presence_sensor_entity_id: null
presence_state: null
window_state: off
window_auto_state: off
window_bypass_state: false
window_sensor_entity_id: null
window_delay_sec: null
window_auto_enabled: false
window_auto_open_threshold: null
window_auto_close_threshold: null
window_auto_max_duration: null
window_action: window_turn_off
security_delay_min: 60
security_min_on_percent: 0.5
security_default_on_percent: 0.1
last_temperature_datetime: 2024-09-27T06:30:31.933001+02:00
last_ext_temperature_datetime: 2024-09-27T06:30:29.479694+02:00
security_state: false
minimal_activation_delay_sec: 10
device_power: 1
mean_cycle_power: 0
total_energy: null
last_update_datetime: 2024-09-27T06:30:36.516055+02:00
timezone: Europe/Berlin
temperature_unit: °C
is_device_active: false
ema_temp: 22.2
is_used_by_central_boiler: false
is_over_switch: true
is_inversed: true
keep_alive_sec: 0
underlying_switch_0: switch.schalter_eg_heizung_l1
underlying_switch_1: null
underlying_switch_2: null
underlying_switch_3: null
on_percent: 0
power_percent: 0
on_time_sec: 0
off_time_sec: 300
cycle_min: 5
function: tpi
tpi_coef_int: null
tpi_coef_ext: null
friendly_name: Wohnzimmer - Hinten
supported_features: 385

Debug log
2024-09-27 06:30:40.445 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/versatile_thermostat/init.py", line 110, in _async_startup_internal
await api.init_vtherm_links()
File "/config/custom_components/versatile_thermostat/vtherm_api.py", line 178, in init_vtherm_links
await entity.async_startup(self.find_central_configuration())
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 665, in async_startup
await self.init_presets(central_configuration)
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 2808, in init_presets
await self._async_set_preset_mode_internal(self._attr_preset_mode, True)
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 1341, in _async_set_preset_mode_internal
self.recalculate()
File "/config/custom_components/versatile_thermostat/thermostat_switch.py", line 182, in recalculate
self._prop_algorithm.calculate(
File "/config/custom_components/versatile_thermostat/prop_algorithm.py", line 87, in calculate
self._tpi_coef_int * delta_temp
2024-09-27 07:11:24.669 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 1495, in _async_temperature_changed
self.recalculate()
File "/config/custom_components/versatile_thermostat/thermostat_switch.py", line 182, in recalculate
self._prop_algorithm.calculate(
File "/config/custom_components/versatile_thermostat/prop_algorithm.py", line 87, in calculate
self._tpi_coef_int * delta_temp
~~~~~~~~~^~
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
2024-09-27 10:45:39.967 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Wohnzimmer - Vorne for versatile_thermostat
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/versatile_thermostat/init.py", line 165, in async_setup_entry
await api.init_vtherm_links()
File "/config/custom_components/versatile_thermostat/vtherm_api.py", line 178, in init_vtherm_links
await entity.async_startup(self.find_central_configuration())
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 665, in async_startup
await self.init_presets(central_configuration)
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 2808, in init_presets
await self._async_set_preset_mode_internal(self._attr_preset_mode, True)
File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 1341, in _async_set_preset_mode_internal
self.recalculate()
File "/config/custom_components/versatile_thermostat/thermostat_switch.py", line 182, in recalculate
self._prop_algorithm.calculate(
File "/config/custom_components/versatile_thermostat/prop_algorithm.py", line 87, in calculate
self._tpi_coef_int * delta_temp
~~~~~~~~~^~
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Hello,
It seems that you don't configure the TPI coefficients. You will find this coefficients in the configuration page. Please check the values and set it if not already set (default values are : 0.6 and 0.01). Please note that, there is a bug in the HA UI which prevent to type 0.01, you have to copy/paste the value.
Moreover, I notice that you don't have any temperature set. Please check if it is normal:
frost_temp: 0
eco_temp: 0
boost_temp: 0
comfort_temp: 0
frost_away_temp: 0
eco_away_temp: 0
boost_away_temp: 0
comfort_away_temp: 0

and nor

Hi,
I do not get the two fields during setup.
Just a checkbox for using central configuration.

The same with Presets. Just the checkbox. When unchecked it does not display the input fields

Sorry, closed issue accidentally

I will try to reproduce this case. Do you have a central configuration ? Can you post me the attribute of your central configuration VTherm please ? (Dev Tools/State)

I try your case:

First I create a over_switch VTHERM,

2. then I click on 'TPI parameters'. The checkbox is checked by default:

When I uncheck the checkbox and click validate, I have this:

then, coeffs are mandatory, I cannot remove them.

Can you please try to reproduce the case on your side and give me the steps. I will continue but it seems to work as expected.

I read carefully the first post and if I understand well, after restart all is fine and the issue occurs when you try to change a parameter.
I think this is not possible for an integration like Versatile Thermostat do totally block HA. At worst, you have some error logs, but I never see, and I can't imagine this will totally block HA.
Si what I think now, is that you have another system error on your HA (maybe hard drive failure or something like that) that makes HA not able to read the configuration at random time.
Is it only VTherm that have trouble or many others integrations ? I guess you can search in the log for other errors before VTherm ones.
Are you on a PI with a SDCard ? If yes, it is known to have failure, specially after one or two years and you may have to switch on an SSD.

I add some test to prevent too much logs when this occurs: https://github.com/jmcollin78/versatile_thermostat/pull/512
I have published a beta release, if you want to give it a try: https://github.com/jmcollin78/versatile_thermostat/releases/tag/6.3.0.beta2

I think, I found the issue:
Meanwhile I created a central configuration, new VTherms do NOT crash after "All done".
But before (without the central configuration) the checkboxes fpr TPI and Preset are set by default "use central configuration" which I did not change. Then The VTherm/HA stalled with the very first screenshot.
I don't want to mess my current productive setup by deleting the central configuration, so I cannot reproduce it right now.
HA ist running as a VM on a Proxmox Server. Very stable setup until now ;-)

Thank you for your report. Just to be sure, with 6.3.0, is this bug fixed ?
I close it, don't hesitate to re-open if needed.

I am having the same issue


feature request: keymap for kernel commands

In some jupyter package one can interrupt and restart kernel with hotkey like I,I or O,O respectively.
I find myself doing kernel kill and restart a lot when developing on Hydrogen. Would be nice to have mappable keymap instead of having to use the command palette.
Requesting keymap for the existing commands:

interrupt kernel
shutdown kernel
restart kernel
restart kernel and evaluate

Generally speaking I'm not sure if we should add too many keymaps in order to not conflict with other packages.
What keymaps are you thinking about adding for these commands?
You can always customize the keybindings via your user keymaps file: http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-keybindings

Oh okay I didn't realize you could add keymap to command not already declared! Here's it working:
  'ctrl-enter': 'hydrogen:run'
  'ctrl-shift-enter': 'hydrogen:run-all'
  'ctrl-backspace': 'hydrogen:clear-results'
  'ctrl-shift-backspace': 'hydrogen:restart-kernel'
`in

Thanks for pointing that out. Feel free to close The issue.


[Feature] Foundation 7: #8024 Margin grids

As foundation 7 gonna be most probably flexbox only ( #9591 )
and if its gonna be flexbox only, then its a android 2-4.3 drop also
That means we can surely use calc() now
http://caniuse.com/#feat=calc
So,
I propose => #8024
Codepen => http://codepen.io/corysimmons/pen/dGmEBW
.small-1 {
  width: calc(100% * 1/12 - 30px);
}

https://webdesign.tutsplus.com/tutorials/calc-grids-are-the-best-grids--cms-22902
https://www.sitepoint.com/creative-grid-system-sass-calc/

Flexbox grids suck.
Here's a list of flexbox's features:

One less element for alignment stuff (kinda nice, but rare).
Equal height columns (typically progressive enhancement, can be done with a single line of JS).
order actually is convenient enough to be nice. It can be done with position: relative fairly easily, but not 2D.

Here's a list of 14 layout-breaking bugs https://github.com/philipwalton/flexbugs#the-bugs-and-their-workarounds that affect various versions of various browsers (have fun tracking those down and coming up with an all-encompassing/restricting solution).
I don't care what usage charts exist... without fail, every time I've worked on a site some newb flexbox'd, I get complaints from the owner that the site is completely fubar in browsers released less than a year ago -- forcing me to rewrite the entire thing in floats/display: inline-block.
There are too many edge cases for flexbox to ever be a good grid system (as the W3C -- and many others who actually think about layout -- have repeatedly stated).
ZURB doesn't care though. ZURB is just constantly trying to emulate whatever Bootstrap does and whatever the masses are groupthinking at the time. Somehow, someway, newbs think that means Foundation > Bootstrap, but neither framework makes any attempt at doing anything unique/useful.
You pinged me, so here's my advice: ZURB, give me $5000 to make a new/unique framework (aka: support real open-source instead of copycat advertising disguised as open-source).
Here's what will happen: ZURB Inc. LLC. Corp. won't do that. They'll continue paying a dozen maymay hipsters six-figures to slap a coat of paint on Bootstrap every few months and pretend it's better. This will get them clients.
Meanwhile, I'll continue sitting in a shack in the middle of the woods, 1 hour away from rural library internet, making stuff that shits all over these flexbox meme grids and works in IE9+ seamlessly with a broken laptop.

Oh, and grid layout will suffer the same fate ("muh behind a flag so it'll be right", "muh vendors adhere-to/implement-correctly standards now suddenly").
God I'm so bored of "flexbox grids". Here: https://codepen.io/corysimmons/pen/pRrgmo?editors=1100 This is literally what you're going to make.
inb4 excuses & bans

I don't like flexbox (flexbugs) and I live in a shack in the woods 1-hr away from rural internet, with a broken computer. I'm poor/borderline homeless.
I appreciate you tagging me for my input, but I'm burnt out/depressed as hell.
Use https://github.com/corysimmons/postcss-ant if you like grids and layout.
Ping me if anyone wants to sponsor a unique CSS framework that will bury all these clones.

Dang @corysimmons are you ok man? Do you want someone to talk to / can we help you out?

Omg I am very sorry to hear ..... I didn't meant to hurt you sir .... Sorry if I did...
But @kball my question/feature request remains intact
For me ,
Calc based grids will be better if browser support allows that ?
What do you think Kevin sir ?
{{ But I like flexbox or flexbugs, untill CSS grids gets the browser support  }}

With a simple reason,
Padding grid is kinda sort of a hack
whereas,
Calc based or margin grids is a feature !

Just saw my email notifications ( deleted comment ) and,
What is this @corysimmons ? => http://simple.harry.zone/so-shocking-comment.png
I Tagged you because you posted a rather nice affirmation exactly a year back and was rejected that time due to browser support and thought that if i will tag you, you might help me in the codes etc if it gets accepted this time .... but what you commented ( deleted comment ) is so unproffesional.
Can't tell you how shocking this is and more shocking it is because its coming from the maker of Jeet, Lost, Typographic, Boy, and postcss-ant?

And as you were expecting ( inb4 ) excuses, so here's mine,

ZURB is just constantly trying to emulate whatever Bootstrap does and whatever the masses are group thinking at the time. Somehow, someway, newbs think that means Foundation > Bootstrap, but neither framework makes any attempt at doing anything unique/useful.

You haven't been around the development that's why you are saying like this. Whatever i have seen both frameworks give their best to the PR's / Issues in whatever bandwith they have. Simply things sometimes get cut out due to the core motive of a framework or the browser support and that's fine.
Every one cant be happy with everything !!!

@kball Thanks for your concern. Give me a job and move me to civilization and treat me like a human?
@mdo ban me from GitHub please. I keep coming back to this place in hopes of seeing something interesting/important. It's always just the same robots saying the same things.
I don't particularly feel like MIT'ing away my life anymore.

@corysimmons Ohk if you think i am a robot, then i am a robot !!!
Also, tagging a author of an another competitor framework (who co-incidentally is director of design at github also) and asking him to ban you from github .... isn't healthy sir!!!

1 sec. Giving you emojis.


Ollama version requirement check and warning.

Description:
New granite gen 3 models require a minimum version of Ollama 0.3.14
Check version and provide warning if below minimum requirement.
Exit installer so user can update ollama if neccessary.

Thank you @jamescho72 for the feedback.
Until we have any fixes from development, I have update the README setup instructions with the Ollama update command.

If you have installed Ollama via brew (for Mac)
brew upgrade ollama

If you have installed Ollama via package installer
Ollama on macOS and Windows will automatically download updates. Click on the taskbar or menubar item and then click "Restart to update" to apply the update. Updates can also be installed by downloading the latest version manually.
On Linux, re-run the install script:
curl -fsSL https://ollama.com/install.sh | sh

fyi, @alvkhtan


[Mirror] Don't destroy and reconstitute enums when reflecting them.

It's possible to get multiple threads reading from the same enum at the same time, and the result can be bad data extracted or even permanent corruption of the value in memory. Instead, copy the enum value, then project the data from the copy.
rdar://problem/59493486

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - f4e635320ad709151855996adc4454120bd7c84b

@swift-ci please test linux platform


Medium digsite clue

https://i.gyazo.com/dfef6cde5fb6c5b61febe127ed020f1e.png
^ add this to the clue plugin, it doesn't highlight the emotes necessary to do the clue step.

It looks to me like this is already implemented... I double-checked the clue text and didn't see anything wrong with it.
https://github.com/runelite/runelite/blob/a56c32f8ae28427ad0be3d102e3a3d75d777e554/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/EmoteClue.java#L440

I think this issue can be closed, this has not been reported again since being opened, and the code looks fine.


Bell ring resets display view

If when is your turn one of the players rings the your bell, the expanded view of your card is collapsed.
This is particularly annoying when just about to make a move and the view continues to collapse because the other players don't stop ringing for a second

Thanks for the feedback! We're very familiar with this annoying as hell bug 😁
Closing as duplicate of https://github.com/bstnfrmry/hanabi/issues/163


add resource_group_managed_by support in runbook, prepare for RG-scoped roles

I have tested it, no regression issue found.

@LiliDeng LGTM


Combining import and default import transpiles wrong output

Describe the bug
When using this syntax in TypeScript code:
import { Component, default as React } from "react";

...

class X extends Component {
}

My output looks like this:
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}

class X extends _react.Component {
}

and that results with error: Class extends value undefined is not a constructor or null because _react.Component doesn't exist (it needs to be rather _react.default.Component).
Config
{
  "env": {
    "targets": {
      "node": "15.10"
    }
  },
  "jsc": {
    "target": "es2019",
    "parser": {
      "syntax": "typescript",
      "tsx": true
    }
  },
  "module": {
    "type": "commonjs"
  }
}

Version
1.2.51

Is this really bug?
I'm not sure, but using _react.default where _react is default-exported seems wrong to me.

I do believe this is a bug. Let me try to explain a bit better.
import { Component, default as React } from "react"; is a valid syntax in ES Module and it's also supported by Babel.
If I create 2 files test.mjs and test.js with identical content:
import { Component, default as React } from "react";

console.log(Component);
console.log(React.Component);

node test.mjs

Output:
[Function: Component]
[Function: Component]

swc-node test.js

Output:
undefined
[Function: Component]

I would expect swc-node to return the same output as node's ES module example.

Ah, sorry. I misread it. I only considered _react.default.Component this part.

For reference, this is what babel do. Basically clone the original object and assign it to .default too


Bump scalafmt

To validate this pull request against other sbt modules, please visit this link.

@eed3si9n bump. intellij can't resolve 2.0.0-RC7 which is a problem for my local development.

One of the travis builds failed due to https://github.com/coursier/coursier/issues/1276. I restarted it.


Showing multiple nuget dependencies disregard of target framework in package.config file

Hi ORT Team,
We tried to run ORT on .cs projects for nuget dependencies and found that the analyzer-result.json getting generated shows all the dependencies irrespective of the target framework mentioned in the packages.config file for the .cs projects.
For example: PFA the packages.config file which shows only two dependencies and also the generated analyzer-result.json file
packages.config.txt
analyzer-result.json.txt
The target framework mentioned in the packages.config file is .netstandard2.0 so instead of picking the dependencies for .netstandard2.0 only, ORT is getting all the dependencies for all the frameworks and getting the unique dependencies out of it which are then shown in the ORT result i.e. analyzer-result.json.
I suppose this is a bug as ORT shall show only the nuget dependencies for the target framework mentioned in the packages.config file.
Can you please let us know whether it is working as expected or its a bug. And if its a bug then when will it be resolved.
Regards,
Moumita

I consider this to be a bug / limitation of the current implementation. I'm not a .NET guy, but I guess what needs to be done is to add
    @JacksonXmlProperty(isAttribute = true)
    val targetFramework: String? = null

to
https://github.com/oss-review-toolkit/ort/blob/6dd90e41a86af1f5c5ba9b8e35490ec0ebb80ab9/analyzer/src/main/kotlin/managers/NuGet.kt#L78-L84
and then somehow take the targetFramework into account when building the dependency tree in
https://github.com/oss-review-toolkit/ort/blob/6dd90e41a86af1f5c5ba9b8e35490ec0ebb80ab9/analyzer/src/main/kotlin/managers/utils/NuGetSupport.kt#L196-L201

@MoumitaManna I had a deeper look into the NuGet implementation and found several issues. If you want you could try out my test implementation in the "nuget-rewrite" branch which should address most issues, however to correctly fix the issue the NuGet implementation should be rewritten. I will close this issue in favor of #5038 where I have documented my findings.


pyTMD.tools.py has a bug

Installed development version
Run the example as below

from future import print_function
import numpy as np
import matplotlib.pyplot as plt
import IPython.display
import tide programs
import pyTMD.crs
import pyTMD.io
import pyTMD.time
import pyTMD.tools
available model list
model_list = sorted(pyTMD.io.model.ocean_elevation())
display widgets for setting directory and model
TMDwidgets = pyTMD.tools.widgets()
TMDwidgets.model.options = model_list
TMDwidgets.model.value = 'GOT4.10'
TMDwidgets.VBox([
TMDwidgets.directory,
TMDwidgets.model,
TMDwidgets.atlas,
TMDwidgets.compress
])

Hey @ZHANGGU,
In order to run the notebooks with leaflet maps you need the full installation. You can install pyTMD directly from conda-forge, or by including [all] with the pip installation.
python -m pip install pyTMD[all]

That being said, I should update the documentation to clarify the requirements.

Oh a Windows build. I would recommend installing from conda. You need GDAL for the complete installation, which can be tricky to install.

I'm going to close this issue, feel free to reopen it.


Broken CSS imports in lazy loaded components in SSR

Describe the bug
The component imported using lazy(() => import("Component")) does not import the CSS file in SSR
Your Example Website or App
https://github.com/33kk/solid-ssr-test
Steps to Reproduce the Bug or Issue
Disable JS. There's an anchor tag for components loaded with import Component from "...", lazy(() => import("Component")) and solid-start's <FileRoutes />, the components imports a CSS file that colors the corresponding anchor tag red.
Expected behavior
The component imported using lazy(() => import("Component")) should load the imported CSS file in SSR but it does it only after hydration.
Screenshots or Videos
No response
Platform

OS: Linux
Browser: Firefox
Version: 106

Additional context
No response

The cause of the issue is that if you disable Javascript, vite's usual CSS HMR behaviour won't work. It depends on javascript. Other styles must be working fine because solid-start does some special stuff to figure out the styles u might need, so preload them in the server-rendered HTML. But we dont do that for lazy components since they might not be on the page yet. So JS actually loads the CSS for them.
Not sure this is a bug, more like mismatched expectations.

The cause of the issue is that if you disable Javascript, vite's usual CSS HMR behaviour won't work. It depends on javascript. Other styles must be working fine because solid-start does some special stuff to figure out the styles u might need, so preload them in the server-rendered HTML. But we dont do that for lazy components since they might not be on the page yet. So JS actually loads the CSS for them.
Not sure this is a bug, more like mismatched expectations.

This basically makes lazy components unusable for me. The component has already been server rendered and it definitely could also include the style, there's nothing preventing that other than actually implementing it. Not sure if this is a vite issue or not, but this is definitely a bug.

Hmm.. I imagine this is tricky because lazy is how we know not to load CSS for the next page. But @33kk is right.. on the same page it could be server rendered before the styles are available.  I guess the interesting part is if we can still easily split this up by route. I think so.

Shouldn't it be possible to "simply" intercept the lazy calls and collect them into an array or something while the page is being server rendeted and split them out into the html after?

Looks like this pretty-much prohibits usage of CSS-Modules and lazy-pages at the same time

In setting up for SolidStarts next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed in mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience.

See https://github.com/solidjs/solid-start/pull/1139 for more details.


Proof Of Concept - Compile a test.c with data that will be pre-loaded to the D_MEM.

The <>.elf should describe both (1) program (2) the data set.
You may need to "load" an array that is bigger than 4 integers.
I think this will tell the compiler to "optimize" and preload the data to the D_MEM instead of using the "li" instruction again and again.
This should be clear that the "D_MEM" data may be in a completely different region than the "I_MEM".
(which means it's very useful to split the D_MEM & I_MEM into 2 different physical arrays in HW.

@ChrisShakkour
Did you figure out how to allocate data memory directly in compiled code? (Heap)
You know how to config the linker to the specific d_mem Heap region?
if so please add pointer to an example (in this repo our out of it)

@amichai-bd
We will be using your linker, shahar tested the data mem allocation by writing a simple c peogram that has a variable array with 10 elements and showed me the data section on the .mem file, regarding the heap i am not quite sure i understood you.
Regarding the linking/linker we are still learning how to configure it...


⚠ Secret Website 2 has degraded performance

In ac1a4c7, Secret Website 2 ($SECRET_WEBSITE_2) experienced degraded performance:

HTTP code: 200
Response time: 13729 ms

Resolved: Secret Website 2 performance has improved in 866eea6.


feat: add plus_code to GeocoderResult interface

Adding plus_code field on GeocoderResult interface
Fixes #16 🦕

This package is automatically generated. I have a fix pending internally.


chore: adding support for multiple-environment error messages

Description

Support PR for EE error handling for multiple-environments

To support the error handling in EE, this PR addresses refactoring of methods

Fixes https://github.com/appsmithorg/appsmith/issues/25964
Ref: https://github.com/appsmithorg/appsmith-ee/pull/1980

/ok-to-test


Day 464

Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Given a set of distinct positive integers, find the largest subset such that every pair of elements in the subset (i, j) satisfies either i % j = 0 or j % i = 0.
For example, given the set [3, 5, 10, 20, 21], you should return [5, 10, 20]. Given [1, 3, 6, 24], return [1, 3, 6, 24].

Identical to Day 198: https://github.com/vaskoz/dailycodingproblem-go/issues/408


[spark] Supports runtime filter

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

+1


Fix pronoundb hover, add support for ppl.moe

This fixes PronounDB's hover text, and using the same fixes also adds support for ppl.moe's pronoun text in a the same fashion.

Seems good! Well done.


Support MIP

As I can see in the docs and code there is no support for integer programming, only continuous and binary variables are supported. Is there a plan to get integer variables soon?
Thanks for great project

Hey @aurelije, indeed these are not supported right now, though it would be easy to introduce them. I'll keep you updated when I tackle this (probably in the next months) except you want to create a PR, then I could guide you a little.


[5.8] Add trans_if to the helpers

Hey guys 🙌🏼,
Today I came across a situation where I needed to translate a string based on a specific condition, so, inside blade template, I had something like this:
if ($user->isAdmin())
    trans('user.hello-admin')
else
    trans('user.hello-user')

I was thinking why don't we have a helper that it can handle both situations, something like trans_if:
trans_if($user->isAdmin(), 'user.hello-admin', 'user.hello-user')

I know using ternary could make the if statement shorter, but is still an if statement.

It's definitely not a bad idea but this is something you can add in your own codebase if you want. I'd really not want to see too much more helpers being added to the framework core.

@driesvints You might be right, I also don't like to see many helpers, but let's see what others think about it.

A shorthand if statement uses a character less than your new helper: trans($user->isAdmin() ? 'user.hello-admin' : 'user.hello-user')

not want to see too much more helpers being added to the framework core

IMHO especially global ones

I agree with driesvints. I often do something like this in my own package, then share it between Laravel projects.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


P562

 <source media"(prefers-color-

@minzo23 -- Could you add a description of what you're trying to update here?


iOS Catalyst: Story traversal buttons move around on iPhone SE

I can post a video, but what I'm seeing if that the story traversal buttons (next/previous) bounce around vertically. They are too high when the toolbar is visible and they dip down when it disappears.

Looks like the buttons are 20px too high on iPhone 8

I worry about changing the traverse bottom constraint due to differences between iPhone SE and iPhone X


Add site browser for location criterion #1181

Add site browser widget for location criterion when operation is plone.app.querystring.operation.string.absolutePath or plone.app.querystring.operation.string.path

@mcasagrande18 did you signed the contributor agreement?
Also, please open the PR from a branch in the same repo (eg. not a fork) otherwise any Github action will run, and we don't know if it does break any test.

Also, if possible, a Cypress test would be great to have to show that the feature works.


Add rule execute command

Just that, please add "rules:execute" command.

Thanks for reporting this to us! We created a ticket from your request and have it planned for a future sprint. We will update when we are working on it.


Issue with MongoDB request payloads

Describe the bug
When I crawl MongoDb data into datahub crawler adds some additional data to request payloads making it huge.
To Reproduce
Steps to reproduce the behavior:

Crawl Document size more than 5MB.
Try to view crawled data in datahub UI.

Expected behavior
Ui is expected to handle large request payload.
Datahub UI

File sink data of MongoDB

Wow! This is not ideal. 5MB is a pretty large document. Would you be willing to see partial schemas in the case that the size exceeds some determined threshold?

Yeah, that's fine. However, we do have data more than 5MB. Not sure what to do in that case. I gave all the details to Srishanka and Harshal.

Fixed (mitigated) via #3153 using a schema truncation approach. Default maxSchemaSize is 300 fields.