Tilde (~) not working with German keyboard layout

It seems as it's not possible to get a ~ in HyperTerm by pressing the default key-combination of ALT + N on a German layout keyboard.

#518

yes


Update Ubuntu releases per official support/EOL list

Add back 14.04 as it is part of the ESM
See

https://ubuntu.com/about/release-cycle
https://wiki.ubuntu.com/Releases

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Includes #161 so please let me know in case you'd like to merge #161 first and I'll rebase this PR accordingly.

thanks for the PR!


map_with returns Hashes, not ROM::Structs

I'm trying to figure out how to rename keys in a ROM repo (e.g. if the name of a DB column isn't the name you want to use in your business logic) and I got it working with a mapper and the script below. (This is a contrived example where I'm renaming email to primary_email.
require 'rom'
require 'rom-repository'
require 'rom-sql'

class PersonMapper < ROM::Mapper
  relation :people
  register_as :person_mapper

  attribute :primary_email, from: :email
end

rom = ROM.container(:sql, 'sqlite::memory') do |conf|
  conf.default.create_table(:people) do
    primary_key :id
    column :email, String, null: false
  end

  conf.relation(:people) do
    schema(infer: true)
  end

  conf.register_mapper PersonMapper
end

class PersonRepo < ROM::Repository[:people]
  commands :create

  def normal
    people.first
  end

  def renamed_keys
    people.map_with(:person_mapper).first
  end
end

renamed_keys renames the attribute like I want, but it returns a hash, whereas the normal method above returns a ROM::Struct:
repo = PersonRepo.new(rom)
repo.create(email<EMAIL_ADDRESS>
repo.normal
# => ROM::Struct[Person], email<EMAIL_ADDRESS>repo.renamed_keys
# => {:id=>1<EMAIL_ADDRESS>
It's still a Hash even if I use as:
require 'dry-struct'
require 'dry-types'

class Person < Dry::Struct
  attribute :primary_email, Dry::Types['string']
end

class PersonRepo < ROM::Repository[:people]
  commands :create

  def renamed_keys
    people.map_with(:person_mapper).as(Person).first
  end
end

repo = PersonRepo.new(rom)

repo.create(email<EMAIL_ADDRESS>
repo.renamed_keys
# => {:id=>1<EMAIL_ADDRESS># ^^^ nothing has changed

Am I doing it wrong, or is this a bug?

Over on gitter @solnic has informed me that there's a much simpler way to rename columns like this:
require 'rom'
require 'rom-repository'
require 'rom-sql'

rom = ROM.container(:sql, 'sqlite::memory') do |conf|
  conf.default.create_table(:people) do
    primary_key :id
    column :email, String, null: false
  end

  conf.relation(:people) do
    schema(infer: true)
  end
end

class PersonRepo < ROM::Repository[:people]
  commands :create

  def renamed_keys
    # note the triple underscore:
    people.select(:email___primary_email).first
  end
end

repo = PersonRepo.new(rom)
repo.create(email<EMAIL_ADDRESS>
puts repo.renamed_keys.primary_email
# =><EMAIL_ADDRESS># yay!

But my question about whether it's correct for map_with to return a hash still stands ;)

using map_with (as is just an alias for that) discards auto-mapping in repositories, that's why this happens. We can probably fairly easily tweak this so it respects providing a model class along with any previously set mappers.
There's a related issue https://github.com/rom-rb/rom-repository/issues/12 where I was opposed to this feature, but now I'm on the fence, maybe we should allow it.

Ohhhhh I didn't realise that as and map_with are the same thing. I'm not sure what you mean by auto-mapping though? Not sure what you mean by "setting model" either (in the rom-repo issue you linked to), I had a quick skim through the guides and couldn't see anything about a method with that name.
If you decide not to add the above as a new feature, can we modify the behaviour so 'invalid' code like my original example fails noisily? Would reduce confusion.

I'm not sure what you mean by auto-mapping though

auto-mapping in repository is one of its main features, it means that when you use repositories, mappers are generated automatically for you. In example converting results from relation graphs are automatic, and you get back aggregates; or converting relation tuples into custom models via as(MyModel)

Not sure what you mean by "setting model" either

Setting a model is a rom-mapper feature, it's just class UserMapper < ROM::Mapper; model User; end. This type of a mapper is created automatically for you under the hood when you use as(User) in repositories

If you decide not to add the above as a new feature, can we modify the behaviour so 'invalid' code like my original example fails noisily? Would reduce confusion.

Yes, that's why the original issue I linked to is still open. I'd like to discuss this with more people though, I'm not sure what we actually want to do :)

Got it, thanks 👍

(My original questions are resolved so this issue can probably be closed since there's already an issue about the same-ish problem)


⚠ Avatar API Endpoint has degraded performance

In 614b47c, Avatar API Endpoint (https://avatar.roblox.com/v1/avatar-rules) experienced degraded performance:

HTTP code: 200
Response time: 3669 ms

Resolved: Avatar API Endpoint performance has improved in 1b1d53a after 1 minute.


nitcorn: handle SIGINT and SIGTERM

Intercept SIGINT and SIGTERM to close the server cleanly. The first signal request a clean exit from libevent, so it waits to complete the active events before closing. The second signal reverts to the default signal handler and quits instantly.
Fix #2294.

See if libevent callback for signals can do the job

+1

Rerolled using libevent signal handling.

$ nitc lib/nitcorn/examples/src/nitcorn_reverse_proxy.nit --semi-global
/home/privat/prog/nit/lib/libevent.nit: In function ‘signal_cb’:
/home/privat/prog/nit/lib/libevent.nit:72:3: error: unknown type name ‘EventCallback’
   EventCallback handler = data;
   ^
/home/privat/prog/nit/lib/libevent.nit:72:27: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
   EventCallback handler = data;
                           ^
/home/privat/prog/nit/lib/libevent.nit:73:3: warning: implicit declaration of function ‘libevent___EventCallback_callback’ [-Wimplicit-function-declaration]
   EventCallback_callback(handler, events);
   ^
make: *** [libevent._ffi.extern.o] Erreur 1
make: *** Attente des tâches non terminées....
Compilation Error: `make` failed with error code: 512. The command was `make -B -C nit_compile -f nitcorn__nitcorn_reverse_proxy.mk -j 4 `.
Errors: 1. Warnings: 0.

cf http://gresil.org/jenkins/view/Intégration/job/nit_tests/engine=nitg-sg,label=deploy_linux/1280/testReport/tests.nitcsg.lib/nitcorn/nitcorn_reverse_proxy/

Fixed support for semi-global compilation.


&mut for Update + returning Futures from Update

My rationale for the suggested changes follows.
Rationale for passing the model parameter by &mut
In my app I have a few subcomponents, so the update function for my parent component looks something like this:
match message {
  Msg::InnerComponent1(message) => {
    let Model { inner1, inner2, inner3 } = model;
    let upd = inner_module::update(message, inner1);
    wrap_update(
      upd,
      |inner1| Model { inner1, inner2, inner3 },
      |msg| Msg::InnerComponent1(msg),
    )
  }
}

where wrap_update is a helper function that matches the contents of the Update enum and converts the model part to the parent component's model using the first closure, and also converts the message part to the parent component's message type using the second closure.
Anyway, I have to unpack my Model and then put it back together so that I can pass the inner component's Model to its update function. I think using a mut reference might work better here. It's a bit different than the way Elm does it, but then Elm is a pure language, and doesn't have any mut references anywhere (or ownership rules, either).
With a mutable reference, it would look like this:
match message {
  Msg::InnerComponent1(message) => {
    let upd = inner_module::update(message, &mut model.inner1);
    wrap_update(upd, |msg| Msg::InnerComponent1(msg))
  }
}

Rationale for making Update a struct
This is so it's easier to change the parts separately (like in my Update::map method, which is basically just the wrap_update function I mentioned earlier + support for futures). I did try to add some convenience traits/methods to make things easier, so although you can't just return Render any more, you can at least return Render.into().
My previous example would now look like this:
match message {
  Msg::InnerComponent1(message) => {
    inner_module::update(message, &mut model.inner1)
      .map(|msg| Msg::InnerComponent1(msg))
  }
}

Rationale for triggering futures in update

Sometimes I want to trigger a fetch request from update without having been called from view with that purpose.
Having to put the state in the message built in the view function gets more complicated when the message belongs to an inner component.
Having access to the app state in the view function seems a bit out of place, as does deciding on whether to put the app state inside the message or not - That would depend on whether an effect should happen, which is update's job.
This is inspired by Elm's Cmd and Task.

For the &mut model issue, can you accomplish what you need with the current api, and using the sig: fn update(msg: Msg, model: mut Model) -> Update<Msg, Model> ? This lets you mutate the model in place. Ideally, I'd like to keep the API so both in-place mutations, and returning a new model work.
Re triggering futures in updates: I think this is a great approach. Passing state down through the view functions, (or wrapped in messages) is clumsy, and is due to me struggling with implementations: It's not a deliberate API choice. I think you've solved it.

Having the model parameter be mutable does allow it to be modified in-place, but I want to then pass part of it to a subcomponent function. i.e. My app structure looks something like this:
struct TextBoxModel {
    current_value: String,
}

fn update_textbox(msg: TextBoxMsg, mut model: TextBoxModel) -> Update<TextBoxMsg, TextBoxModel> {
    model.current_value = something;
    ...
    Render(whatever)
}

struct AppModel {
    text_box1: TextBoxModel,
    text_box2: TextBoxModel,
}

enum AppMsg {
    TextBox1Msg(TextBoxMsg),
    TextBox2Msg(TextBoxMsg),
}

fn update_app(msg: AppMsg, mut model: AppModel) -> Update<AppMsg, AppModel>
{
    ...
}

(This is of course a bit simplified: I have a few different component types, the real code has things split nicely into separate modules etc. etc.)
Now how do I implement update_app? The TextBox messages are supposed to be handled by update_textbox, which is supposed to get its TextBox model by value, then return it back to update_app wrapped inside an Update.
So I have a few options.

Split the AppModel into all its fields, so that the TextBox1 field is separate, pass it to update_textbox, get an Update<TextBoxModel> back, then add the rest of the fields back to get an Update<AppModel>. This is basically the way it works right now, and it looks something like this:
fn update_app(msg: AppMsg, mut model: AppModel) -> Update<AppMsg, AppModel>
{
    match msg {
        AppMsg::TextBox1Msg(textbox_msg) => {
            // Take the AppModel apart
            let AppModel { text_box1, text_box2 } = model;
            // Now we have text_box1 separate from the other fields. Call update_textbox.
            let text_box_update_object = update_textbox(textbox_msg, text_box1);
            // But now the update object only contains text_box1. We need to add
            // the rest of the AppModel.
            let app_update_object = match text_box_update_object {
                Update::Render(text_box1) => Update::Render(
                    AppModel { text_box1, text_box2 },
                ),

                Update::Skip(text_box1) => Update::Skip(
                    AppModel { text_box1, text_box2 },
                ),

                Update::RenderThen(text_box1, text_box_msg) => {
                    let app_model = AppModel { text_box1, text_box2 };
                    let app_msg = AppMsg::TextBox1Msg(text_box_msg);
                    Update::RenderThen(app_model, app_msg)
                }
            };
            // Now we can return it normally
            app_update_object
        }

        // The same thing all over again for text_box2.
        AppMsg::TextBox2Msg(textbox_msg) => { ... }
    }
}

There is a lot of DRY here. Looking at my example, it looks a bit like it's mostly inside the match expression, because I repeat the creation of the AppModel 3 times. But I can refactor that to a wrap_update function like I mentioned earlier.
The real source of repetition is that I have to unpack all the AppModel fields to get ownership of text_box1, and then pack them all back again to get an AppModel. If I add a text_box3 field, I then have to add it in the code (twice) in the TextBox1Msg code_box1:
let AppModel { text_box1, text_box2, text_box3 } = model;
...
let new_appmodel = AppModel { text_box1, text_box2, text_box3 };

And again for TextBox2Msg. So anyway, this option isn't so nice.
I admit in the Elm architecture, update does return the model, but then again, Elm has no mutability at all, and instead all data modification is basically cloneing, only not as inefficient because of persistent data structures and other optimizations. So in Elm, I wouldn't have the problem I have here, because I would just be passing immutable references.

Use a mutable reference. As I understand it, this is the idiomatic Rust way of doing this kind of thing. Basically any function that takes a mutable reference could instead be taking ownership of the value, and then returning it (like the book shows here), except that passing by value is a bit more repetitive, and also you run into the same problem I ran into here: You can't use by-value functions with parts of other structs/arrays/etc. because of the Rust ownership rules / borrow checker.
Anyway, with a mutable reference, the code can be a lot simpler:
fn update_app(msg: AppMsg, model: &mut AppModel) -> Update<AppMsg>
{
    match msg {
        AppMsg::TextBox1Msg(textbox_msg) => {
            // We can call update_textbox directly now.
            let text_box_update_object = update_textbox(textbox_msg, &mut model.text_box1);
            // We still have to convert the message inside the Update. This can be
            // simplified further by helper functions and/or making Update a struct
            // and separating Update's Render/Skip field from the Option<Msg> part.
            let app_update_object = match text_box_update_object {
                // The two look the same, but the left side is Update<TextBoxMsg>,
                // but the right side is Update<AppMsg>
                Update::Render => Update::Render,
                Update::Skip => Update::Skip,
                Update::RenderThen(text_box_msg) => {
                    let app_msg = AppMsg::TextBox1Msg(text_box_msg);
                    Update::RenderThen(app_msg)
                }
            };
            // And now return it.
            app_update_object
        }

        // And again for text_box2.
        AppMsg::TextBox2Msg(textbox_msg) => { ... }
    }
}

The mutable reference means the function signature only has to mention AppModel once, but the real win is that the text_box1 code doesn't have to know about text_box2. And after refactoring away the message transformation, it's down to around 2 lines.

Use an Option to allow removing text_box1 from the AppModel before calling the inner update_textbox, and then put it back afterwards. This would allow passing everything by value, but now I have to have Options all over the place, and in general, it really isn't as nice as the previous option.
// The struct changes now:
struct AppModel {
    text_box1: Option<TextBoxModel>,
    text_box2: Option<TextBoxModel>,
}

fn update_app(msg: AppMsg, model: AppModel) -> Update<AppMsg, AppModel>
{
    match msg {
        AppMsg::TextBox1Msg(textbox_msg) => {
            // Remove text_box1 from the App model.
            let text_box1 = model.text_box1.take().unwrap();
            // Pass it to update_textbox.
            let text_box_update_object = update_textbox(textbox_msg, text_box1);
            // Transform the Update object. This would be aided by a helper function,
            // and aided further by refactoring Update to a struct etc, but it'd still
            // be more complicated than it has to be.
            let app_update_object = match text_box_update_object {
                Update::Render(text_box1) => {
                    model.text_box1.replace(text_box1);
                    Update::Render(model)
                }

                Update::Skip(text_box1) => {
                    model.text_box1.replace(text_box1);
                    Update::Skip(model)
                }

                Update::RenderThen(text_box1, text_box_msg) => {
                    let app_msg = AppMsg::TextBox1Msg(text_box_msg);
                    model.text_box1.replace(text_box1);
                    Update::RenderThen(model, app_msg)
                }
            };
            // And now return it.
            app_update_object
        }

        // And again for text_box2.
        AppMsg::TextBox2Msg(textbox_msg) => { ... }
    }
}

I'll see if I can separate this change from the rest of the PR. But I really would like to do option 2. What are the advantages to returning the model? Also, how would you do subcomponents? Is there some other way of structuring my app that I'm missing?

I made a separate branch: https://github.com/David-OConnor/seed/compare/master...sapir:update-futures-no-mut-ref without the mutable reference change.
The other changes would still break the API, of course.

I'll dive in this weekend, and probably merge that one that has the update and futures changes. The futures change in particular looks like a big API improvement.

Thanks

I don't have much to add, because of your detailed reasoning: I concur with all. This PR adds significant syntax improvements when the update logic is complex, and when using fetch requests.


Primary branch should be called "main"

Using the name "main" is now the default in most tools, as it avoids problematic language and is more in line with most companies social policies.
Can an admin on the repository please change the primary branch name (for merges, etc) to "main", and remove the old problematic branch. This is a very simple operation.

Renamed the branch to "main" from "master"


TAJO-1538 TajoWorkerResourceManager.allocatedResourceMap is increasing forever

seemed mistake from TAJO-602 (tajo-0.9.0)

+1 LGTM


Added support for Müller Licht tint remote.

This adds support for the six scene buttons found on MLIs "ZBT-Remote-ALL-RGBW".
The remote normally issues a write_attributes command if one of those buttons is pressed. The quirk translates this to an update on a scene cluster.

Codecov Report

Merging #1074 (cb3cf30) into dev (b5d29f5) will decrease coverage by 0.11%.
The diff coverage is 64.86%.

@@            Coverage Diff             @@
##              dev    #1074      +/-   ##
==========================================
- Coverage   81.19%   81.07%   -0.12%
==========================================
  Files         196      197       +1
  Lines        5190     5227      +37
==========================================
+ Hits         4214     4238      +24
- Misses        976      989      +13

Impacted Files
Coverage Δ

zhaquirks/mli/tint.py
64.86% <64.86%> (ø)

Continue to review full report at Codecov.

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

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

24 of 37 (64.86%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 81.079%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

zhaquirks/mli/tint.py
24
37
64.86%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
4238

Relevant Lines:
5227

💛  - Coveralls


Subtile support

Is your feature request related to a problem? Please describe.
Thanks @ganeshgore to initiate the discussion and code changes, the tile annotation is one of the code changes we should expect.
Moreover, the subtile support may require changes in netlist generators, testbench generators and even bitstream generators.
A valid and specific testcase is required to ensure that the support is operating.
I consider to force pin constraints in the testcase, where we assign nets to two types of subtiles in an I/O tile at a specific location, e.g., [1][0].
Alternatively, we may create an artificial FPGA architecture, where there is only one I/O tile that consists of two types of subtiles.
A stronger testcase to have multiple (>2) types of subtiles in an I/O tile and validate the correctness of netlists.
Describe the solution you'd like
More than the example shown in #828, I believe we should support the index of subtiles, as VTR allows us to define multiple subtiles for each type.
Here is an template:
<tile_annotations>
    <global_port name="clk0" is_clock="true" default_val="0">
      <tile name="<tile_name>.<sub_tile_name>[<int>:<int>]" port="clk[0:0]" x="-1" y="-1"/>

An illustrative example:

<tile_annotations>
    <global_port name="clk0" is_clock="true" default_val="0">
      <tile name="io.io_input[0:7]" port="clk[0:0]" x="-1" y="-1"/>

Optionally, user can define a specific subtile with index.

<tile_annotations>
    <global_port name="clk0" is_clock="true" default_val="0">
      <tile name="io.io_input[1:1]" port="clk[0:0]" x="-1" y="-1"/>

Optionally, user can include all the subtiles without given any index.

<tile_annotations>
    <global_port name="clk0" is_clock="true" default_val="0">
      <tile name="io.io_input" port="clk[0:0]" x="-1" y="-1"/>

where all the clock pin clk[0] of all the subtile io_input (assume we may have N subtiles in this type). We do not need users to write io_input[0:N-1] explicitly.

@tangxifan Thank you for evaluating the PR;
The variations you proposed look good and make sense to me.
While we are at it, we should also consider the pin_mapping functionality.
If this feature is also functional, we can have better naming for tile pins containing subtitles.
It seems that it should work by default after the above changes. But for the tile_annotation section, we will have to specify what to refer pb_type pins or tile pins


Implementation of sparsity inducing norms through Regularized Dual Averaging approach

We have to consider some advanced ERM-based approaches, like Regularized Dual Averaging:
[1] Lin Xiao. Dual averaging methods for regularized stochastic learning and online optimization. J. Mach. Learn. Res., 11:2543–2596, December 2010.
[2] Yurii Nesterov. Primal-dual subgradient methods for convex problems. Mathematical Programming, 120(1):221–259, 2009.
I have implemented these approaches in Julia but maybe we can have some more in depth discussion here to understand how we can improve RegERM.jl in terms of this and other approaches and my other issue: #10.

merged.


Client Allocation Request for: aoeu

Client Allocation Questions
Core Information

Name: aoeu
Website / Social Media: aoeu, (aoeu, aoeu)
Region: Africa
DataCap Requested: 96 GiB
Addresses to be Notarized: aoeu
Notary Requested: Deon Erda

This user’s identity has been verified through filplus.storage


[FEATURE] Expose GTK CMake options as cargo feature

Is your feature request related to a problem? Please describe.
Avoid linking against GTK in apps that don't need it.
Describe the solution you'd like
As discussed in https://github.com/fltk/fltk/issues/746, there are CMake options to turn off linking against GTK and loading GTK functions at runtime. We should be able to expose that as a combined cargo feature.
-DOPTION_ALLOW_GTK_PLUGIN=OFF
-DOPTION_FNFC_USES_GTK=OFF
-DOPTION_PRINTER_USES_GTK=OFF

Unsure what to name the cargo feature. Since these are enabled automatically right now, I don't think use-gtk defaulting to true would make sense. However, without-gtk doesn't seem idiomatic, yet I don't have a better suggestion so far.

The linking to libgtk on wayland was required because of libdecor. I've updated the build script to avoid linking libgtk.
Can you try with the master branch?
OPTION_FNFC_USES_GTK is not a CMake option, neither is OPTION_PRINTER_USES_GTK. They're options which can be set at runtime. I've also added that capability:
    app::set_option(app::Option::FnfcUsesZenity, true);

It's possible my memory was wrong. 1.4.7 with use-wayland,use-ninja,enable-glwindow doesn't appear to link against GTK at build time. Sorry. Yet this ticket resulted in new runtime tweak functions, so it wasn't pointless.


[DateRangePicker] add initialVisibleMonth prop

DateRangePicker has prop to specify the number of months - "calendars". But the current month is always displayed first (if the date is not selected), and then the next months are displayed.

If the picker is used to select past dates with the disableFuture: true, this behavior is a little strange.
It would be great to add a prop, that choose which months to display.
For example, I need a report for the past period. it is December, I would like to see October, November and December in the calendar.

Sometimes I need to choose a past date, or a future date, then it would be nice to display the current month in the middle

Thanks for your work!

I assume the proposal for this prop is inspired by https://github.com/airbnb/react-dates, they have the exact same thing. What do you thinking of solving with issue with the defaultDisplayedValue state of #24150?

Yes, You are right, I migrated from the react-dates, and everything is fine, except for two points.
this and previously created - #23965
defaultDisplayedValue can be a solution if this value will not highlighted, as current date


code-view active class being applied to PR code comment editor

What should be the styling for selected lines of code in file view (I think?) is also affecting the code editor because it ends up with the same class structure of .code-view .active

Would be nice while fixing this to also fix what ever is causing everything comment/editor related to be monospaced -- assume general issue is that the comments/editor don't actually belong in code-view class


Features/tags

Description
Add tag list with unique tags to collection info, runner and folder runner
Collection info

Runner

Folder Runner

Request Panel

Help

Contribution Checklist:

[X] The pull request only addresses one issue or adds one feature.
[X] The pull request does not introduce any breaking changes
[X] I have added screenshots or gifs to help explain the change if applicable.
[X] I have read the contribution guidelines.
[X] Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.

@asonkeri  , I made some GUI changes to enhance user experience, you may consider to integrate them to your branch


Third

Spring 2023
I worked as a python programming teacher at the "Logika" children's school.
Winter 2022 - 2023
During the winter I read some good books(Two Scoops of Django" - Daniel Roy Greenfeld and Audrey Roy Greenfeld, "Секреты Python  59 рекомендаций по написанию эффективного кода" Бретт Слатки) about Python and improved my English. From 06/06/2022 to 20/01/2023 I studied English at the "Americana" school and also did several home projects in Python (Django, Rest Api, DRF) and several web projects (CSS, HTML, JS)
Winter 2021-2022
I graduated from Chernivtsi National University with education program "Data Mining in Computer Information Systems". Programme Subject Area "Computer Science"
Spring 2021
I finished Django course in Datawiz.io

Yeeeeees, i need it

And this)


Blazor: System.NotSupportedException: Encoding 1252 data could not be found

I'm trying to create a workbook using Aspose on a button click, but I immediately run into errors when trying to instantiate the workbook:
Blazor is running in dev mode without IL stripping. To make the bundle size significantly smaller, publish the application or see https://go.microsoft.com/fwlink/?linkid=870414
blazor.webassembly.js:1 WASM: Hello from C#
blazor.webassembly.js:1 WASM:
blazor.webassembly.js:1 WASM: Unhandled Exception:
d.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: System.NotSupportedException: Encoding 1252 data could not be found. Make sure you have correct international codeset assembly installed and enabled.
d.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at System.Text.Encoding.GetEncoding (System.Int32 codepage) <0x3538bc0 + 0x00316> in <d9c16b0fee7344919775df5988c885d0>:0

FetchData.razor:
<button class="btn btn-primary" @onclick="DownloadFile">Download</button>

@code {
    WeatherForecast[] forecasts;

    protected override async Task OnInitializedAsync()
    {
        forecasts = await Http.GetJsonAsync<WeatherForecast[]>("sample-data/weather.json");
    }

    private async void DownloadFile()
    {
        Console.WriteLine("Hello from C#");

        var wb = new Aspose.Cells.Workbook();

        Console.WriteLine("Created Workbook");

        MemoryStream ms = new MemoryStream();
        wb.Save(ms, Aspose.Cells.SaveFormat.Xlsx);
        byte[] bytes = new byte[ms.Length];
        ms.Read(bytes, 0, bytes.Length);

        Console.WriteLine("Buffed Bytes, sending...");

        await JS.InvokeVoidAsync("saveAsFile", "testWorkbook2.xlsx", bytes);
    }
}

Startup.cs
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
        }

        public void Configure(IComponentsApplicationBuilder app)
        {
            app.AddComponent<App>("app");
        }
    }

Additional context
λ dotnet --version
3.0.100-preview9-014004
Reference: https://github.com/aspnet/Blazor/issues/1338

#https://github.com/aspnet/Blazor/issues/1338

Actually Blazor ships I18N.West.dll right now, so there some other things should be an issue here.

I re-created the entire project and now I get a different error for some reason. The issue I'm getting now is that the project I'm adding (Aspose.Cells) contains native code and I get the error MSB3073.


http://examples.ractivejs.org/illustration text falls outside label

Text falls outside label on Google Chrome	48.0.2541.0

It's fine in Firefox.

works fine in chrome canary (48.0.2541.0). maybe it was a bug...

Odd, feel free to close as invalid. My platform in Archlinux.

Looks like the problem is with the font – perhaps we should use a web font rather than a system font so that we have some control over how much space the label takes up. I've reopened this on the examples repo


Update Generic Pages “fees”

Automatically generated by Netlify CMS

👷 Deploy Preview for shimmering-marigold-4f5b4a processing.

Name
Link

🔨 Latest commit
ac3d4676f74dc2f84ed699577577e71c418eb2de

🔍 Latest deploy log
https://app.netlify.com/sites/shimmering-marigold-4f5b4a/deploys/6500e657686e6900086951ad


Questions about the saved checkpoints and the evaluation strategy

Hi,
I'm very interested in your great work, and I find the provided checkpoints on 3D-EPN datasets have one model for each category. Since I do not observe the corresponding code, I'm curious if you saved the best checkpoints for each category, i.e., the checkpoints at the 50-th epoch performs the best for the chair category, so you preserve it and name it as the checkpoints for the chair?
If so, I'm wondering if you're doing the same strategy during the evaluation procedure, which may raise the unfair comparision problem.

Hi Yifan,
Each checkpoint is the one with the best performance. There are trained with different config.yaml files as provided. This approach follows previous works including PoinTr and Cycle4Completion, etc. Let me know if you have further concerns.

From: Yifan LIU @.>
Sent: Sunday, September 3, 2023 16:13
To: CuiRuikai/Partial2Complete @.>
Cc: Subscribed @.***>
Subject: [CuiRuikai/Partial2Complete] Questions about the saved checkpoints and the evaluation strategy (Issue #2)
Hi,
I'm very interested in your great work, and I find the provided checkpoints on 3D-EPN datasets have one model for each category. Since I do not observe the corresponding code, I'm curious if you saved the best checkpoints for each category, i.e., the checkpoints at the 50-th epoch performs the best for the chair category, so you preserve it and name it as the checkpoints for the chair?
If so, I'm wondering if you're doing the same strategy during the evaluation procedure, which may raise the unfair comparision problem.
—
Reply to this email directly, view it on GitHubhttps://github.com/CuiRuikai/Partial2Complete/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALJ7PYQAWHI7S2O3WAAPBV3XYQ3ZRANCNFSM6AAAAAA4JE2GQA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Got it. Thanks a lot for your prompt reply!


Theme Files

Hi,
With the release of Obsidian v1.0 theme files now use theme.css instead of the prior obsidian.css. As such, BRAT isn't detecting the new themes in github.

Sorry for the long wait. This is now covered in release 0.7.0 with lots of additions.
https://github.com/TfTHacker/obsidian42-brat/releases/tag/0.7.0


Clickwheel audio feedback volume lowers if there's music playing

Known Flutter bug that appears to have gone unfixed.
When a user pans on the clickwheel, they should get both haptic and audio feedback. Audio feedback glitches if there's music playing. Also doesn't work if the device is on silent.
Was using this to handle clickwheel audio feedback as seen for example: https://github.com/retromp3/retro/blob/1f629667d1071d7e830d848bb772a5dc8d4d71c6/lib/ipod_menu_widget/ipod_menu_page_widget.dart#L174
Could maybe try a plugin like this?

Other apps and games manage to do this. Also, appearently not a flutter bug but the default behavior in iOS you cannot easily change in flutter. By writing a module for iOS by ourselves this is definitely solvable.

It looks like we have to tell iOS to use this: https://developer.apple.com/documentation/avfaudio/avaudiosession/category/1616560-ambient


Bugpoint does not terminate when reducing testcase

Steps to reproduce the issue
Meta-issue for #3112. Repro files:
hazard3-bugpoint-loop.zip
The zip contains a .il file with the testcase from #3112, and a script that tries to reduce this testcase using bugpoint. After extracting the zip, run:
yosys bug.ys

Yosys version I used (latest master):
Yosys 0.12+30 (git sha1 477eeefd9, clang 10.0.0-4ubuntu1 -fPIC -Os)

Expected behavior
Bugpoint eventually terminates, and produces a minimised testcase which can be further reduced by hand
Actual behavior
Bugpoint does not terminate. I tried leaving it running overnight, and Yosys was eventually killed due to OOM.

#3114

Thanks, will try.

Yep, #3114 allows me to reduce a testcase from the full processor source, as well as the repro here. Thanks!


add u256 multiplication

I took the logic from this golang lib:
https://github.com/holiman/uint256
it is the library used in go-ethereum to handle uint256 operation

Thanks!


Fix performance issues

Right now, the appraiser takes 5-10 or more minutes. This is causing issues in the ARS, while also being unacceptable from a user perspective. The goal of this issue is to improve appraiser performance to an acceptable level.

Novelty scoring has been disabled for the time being, and message compression has been added. Average query time for a 200MB message is now 10 seconds round-trip.


Interaction service answers store

Description of change
When an Interaction is being created, depending on selected Service, a user can be asked to answer a list of questions. This PR enables us to store those answers.
This adds new nullable field service_answers of JSONField type to Interaction model.
The data is expected to be in the following format:
    {
        "<uuid>": {  # service question id
            "<uuid>": {  # service answer option id
            }
        },
        ...
    }

Interactions GET, POST, PATCH endpoints have been modified to support this field. Additional validation to enforce the format above has been added to the Interaction serializer.
Potential errors in the supplied data are being returned in a standard way. If there is a problem with the service_answers field itself (e.g. it is missing when it is required), the error response would look like this:
{"service_answers": ["This field is required"]}

If an error is within the supplied data, then the error will be provided against immediate key. For example when an answer is provided to a question that doesn't belong to the selected service, the error will look like this:
 {"<service_question_id>: ['This question does not relate to selected service.']}

This way the errors should easily be matched to the corresponding form fields in the frontend.
Service answers have not been added to the collections, because it is not is scope of this PR.
Checklist

[x] Has a new newsfragment been created? Check changelog/README.rst for instructions
[ ] Have any relevant search models been updated?
[ ] Have any relevant fixtures (fixtures/test_data.yaml) been updated?
[ ] Have any relevant select-/prefetch-related field lists in the views and search apps been updated?
[x] Has the admin site been updated (for new models, fields etc.)?
[ ] Has the README been updated (if needed)?

I've made some updates:

added some missing validation logic
removed handling of additional questions as these aren't currently being used (note: the data structure format is still the same, to avoid FE changes)
updated the tests
attempted to simplify the validation logic
made service answers read-only in the admin site

The original branch is backed up here: https://github.com/uktrade/data-hub-leeloo/tree/feature/interaction-service-qa-store-backup

Replied offline


Fix tests, setup Travis CI

Currently 6 out of 7 tests passing.

I haven't done any testing. I'm surprised there are 7 tests! Interested in doing more?

I'll get one of my teammates on the job soon.

Fixed by PR #9, raising separate issue for Travis


riot-games-api.d.ts

riot-games-api/riot-games-api.d.ts
check list

[ ] is collect naming convention?

https://www.npmjs.com/package/riot-games-api
http://bower.io/search/?q=riot-games-api
others?

[X] has a test file? (riot-games-api/riot-games-api-tests.ts or others)
[ ] pass the Travis-CI test?

thanks mate!


remove front end code from backend repo

Signed-off-by: Derek Ho<EMAIL_ADDRESS>Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@gaiksaya @zelinh I will wait for your go ahead before merging in this PR to get rid of front end code


Add workspace information in Import UI

This PR fixes #13439
This PR adds workspace information to the Create project from database UI. It also presents the popup that a new workspace is being created and the extension host is restarting.
UI with already open workspace:

UI without any workspace:

Auto populating workspace name when project name and location is updated (in case of no open workspace):

Pop up confirming creation of new workspace:

Pull Request Test Coverage Report for Build 399016569

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 41.144%

Totals

Change from base Build 398931450:
0.0%

Covered Lines:
21853

Relevant Lines:
48650

💛  - Coveralls

@alanrenmsft , @kisantia : We discussed having all the labels either on top or left before. And here the problem creeps up again. The workspace information is column wise, but database, project and settings information is all row wise. Will that be an issue here as well(since it isn't really label that we are talking about here)?

@alanrenmsft , @kisantia : We discussed having all the labels either on top or left before. And here the problem creeps up again. The workspace information is column wise, but database, project and settings information is all row wise. Will that be an issue here as well(since it isn't really label that we are talking about here)?

@SakshiS-harma I don't have a huge problem with it :)

The padding between the "Workspace" title and the text below looks a little bigger than for the other sections in the dialog

Fixed it (also partially fixed because of the other PR). Let me know if this still looks off.

did the screenshots int he description get updated? It still looks like more padding than the other dialogs (although they don't have the Workspace title bolded)
create new project dialog:

e screenshots in the description get u

Yes, the screenshots are updated.
The space needs to be less for spot 1 or 2 in the attached image?

@SakshiS-harma the space for 1 looks a little big. Maybe it just looks bigger than the ones above because the other sections have inputboxes that go up a little higher. @alanrenmsft do you think it's ok or should the padding be adjusted?

@SakshiS-harma the space for 1 looks a little big. Maybe it just looks bigger than the ones above because the other sections have inputboxes that go up a little higher. @alanrenmsft do you think it's ok or should the padding be adjusted?

Fixed it (as discussed). Let me know if it  should still be updated.


5128: Fix stuck uploads

Description (required)
Fixes #5128
What changes did you make and why?
Uploads often get stuck when users turn their screen off or simply navigate away from their screen, especially when the battery usage for the app is not set as "Unrestricted".

Changed compileSdkVersion to 33 as suggested in the documentation
Upgraded to the latest stable release of WorkManager
Passed FLAG_IMMUTABLE with PendingIntent for version code S and above. Android has made it mandatory for apps targeting S+ (API level 31 and above) to pass either FLAG_MUTABLE or FLAG_IMMUTABLE with PendingIntent (based on my logcat error).

The above changes apparently fixed stuck uploads. The uploads, however, still fail with a SocketTimeoutException.

Implemented retries in onResume() so that failed uploads resume as soon as the user returns to the app. The code related to this may be improved with correct usage of WorkManager, but I need to investigate its behaviour on various devices under different network and battery conditions.

Key improvements:
Uploads no longer remain stuck and resume automatically in case the user returns to the app within 2 minutes (the connection time associated with the SocketTimeoutException). After 2 minutes, a "Failed to upload" notification is shown for all the uploads but these failed uploads, too, start as soon as the user returns to the app because of the retry logic.
This may not be the best solution, so I'm adding a WIP/Draft status to it.
Further improvements I am looking forward to:
I'll be researching more about network conditions when the screen is turned off. Even if Android provides a small window to resume work under "Optimised" battery conditions, we can fix the SocketTimeout issue.
Tests performed (required)
Tested prodDebug on Moto g62 with API level 31.

Thanks!
I started testing it.
At first in mode "Unrestricted", as a baseline, it correctly uploaded a large set. :-)
Next I will try in optimized mode, but it might slip to after the weekend.

Trying in Restricted mode, I am getting failures, and retry does not seem to work:
https://github.com/commons-app/apps-android-commons/assets/99590/c82fd298-524d-49a5-82df-cb7b5988036f

Thank you for testing, I'll fix this.
I'd read about these possibilities related to PendingIntent on Stack Overflow. Since uploads were not getting stuck on older Android versions and FLAG_IMMUTABLE  apparently fixed stuck uploads, I just went for the bare minimum. Will test it with the changes suggested above on my older device too. Thank you for the hints!

I could not manage to get the retry button, it simply restarts the process on my Android 12 device. I have modified the flag and version code, though.

I often switch to limited connection mode, never found any of these changes interfering with its behaviour. Will test more since you feel these changes could affect its functioning👍🏻

Closing this as these changes have already been merged with #5272.


Åland Islands

Hi,
Have played with this and found a couple of issues regarding Åland Islands data....
First, the town Mariehamn have a typo, it gives Marieham. Where to report that?
"whosonfirst:locality:101815223","layer":"locality","source":"whosonfirst","source_id":"101815223","name":"Marieham",
Secondly, none of the Åland Island locations are found with FI-countrycode (its in Finland) or AX-countrycode (but have an "own" country-code).  A few locations get a "dependency_a":"AX" but no country-code.
Thirdly, none of its locations are getting locality-tags but name-tags.

Hi @weatherc,
Thanks for the report! The best place to report Who's on First data issues is their primary data repository: https://github.com/whosonfirst-data/whosonfirst-data
Thankfully, there's probably no need for you to do anything, I can usually summon the relevant people to this issue (hello @stepps00)

Hi @weatherc - thanks for the info!
To your first point, I've updated the Mariehamn record here, which I think fixes the issue of you seeing the incorrect "Marieham" name.
To your second point, you can browse Who's On First's descendants of Aland here. There may be slight issues with cataloguing country codes in these records, but most have an AX country code. I may need more info on the issue here, but it looks like the records are classified in Who's On First correctly.
Let me know if additional records need fixes.

Great and fast work guys, thanks!
Then just, how do i update Pelias data for only AX? Just by setting the country-list in pelias.json to only AX and pelias download wof + pelias import wof ?


[ERROR] sqlitebiter gs: OpenError: spreadsheet not found

no matter what spreadsheet name I type, I get the error:
[ERROR] sqlitebiter gs: OpenError: spreadsheet 'gom' not found
[INFO] sqlitebiter gs: converted results: source=0, fail=1

@LewWadoo
Thank you for your report.
I am not sure the root cause for now. I could successfully convert my google spreadsheet with sqlitebiter gs in my environment.
Could you tell me your environments information to understand your situation?:

Python version
sqlitebiter version

did you installed optional dependency packages for gs subcommand?

Did you enable Google Sheets API for your credentials?
spreadsheets you typed (gom, etc.?) actually existed at Google Sheets and readable by Google Sheets API?

I'll close the issue.
Feel free to reopen if you still have any problems about the issue.

I don't remember, what, how and why I was using sqlitebiter. Since then I don't use it.

Hi @thombashi, I'm also receiving this error:
sqlitebiter -o sample.sqlite gs <credential>.json <spreadsheet-name>
[ERROR] OpenError: spreadsheet '<spreadsheet-name>' not found
[INFO] converted results: source=0, fail=1

I figured this out, thanks! I had to share the folder with my service account.
I'd be curious what happens if spreadsheet names conflict though. I would say it would be a bit better to default to using the file key. Would you be open to a PR on this and pytablereader?

Hi @cdbattags

I'd be curious what happens if spreadsheet names conflict though.

According to the gspread document:
https://docs.gspread.org/en/latest/api.html?gspread.Client.open#gspread.Client.open
If there’s more than one spreadsheet with same title the first one will be opened.

I would say it would be a bit better to default to using the file key. Would you be open to a PR on this and pytablereader?

Surely the above might be better. Fallback to open by title would be ideal when failed to open by key to keeping backward compatibility.
PR would always be welcome.


Getting http error code 429 for signing request

Describe the bug
Getting http error code 429 for signing request
To Reproduce
using SDCM tool
Expected behavior
Driver binary should get microsoft signature
Desktop (please complete the following information)

OS: Windows 11
Version : 19045.3693

Additional context
Logs :
Attestation Submission
[09/12/24 17:02:19] > Create Product
* Create JSON
* Submit
[09/12/24 17:02:25] Create Product done
* PID:<PHONE_NUMBER>0586332
[09/12/24 17:02:25]> Create Submission
* Create JSON
* Submit
[09/12/24 17:02:30] Create Submit done
* SID:<PHONE_NUMBER>698265334
[09/12/24 17:02:30] > Upload File
SurfaceDevCenterManager v<IP_ADDRESS>

Upload Option
Fetch Submission Info
initialPackage Url: https://ingestionpackagesprod1.blob.core.windows.net/ingestion/b044e5fb-8787-4dbc-b08b-67f2399174c1?skoid=6a05eb41-c97a-4f14-a5ce-d392056c0e00&sktid=975f013f-7f24-47e8-a7d3-abc4752bf346&skt=2024-09-12T11:29:20Z&ske=2024-09-19T11:29:20Z&sks=b&skv=2024-05-04&sv=2024-05-04&se=2024-09-13T11:47:33Z&sr=b&sp=rwl&rscd=attachment%3B+filename%3Dinitial_1152921505698265334.cab&sig=rGuA7ddm%2FUg7C4zNLlSdLraKkB51%2B3008z3cx94MxxQ%3D
Uploading Submission Package
99%
============================================================
SurfaceDevCenterManager Exception Log
Option:          SubmissionPackagePath
Section:         GetSubmission
99%Type:            Microsoft.Azure.Storage.StorageException
Message:         Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
97%Inner Exception:
99%Correlation Id:  3144f62c-5b78-4e30-b295-52bee2c53ce9
============================================================

99%Correlation Id: 3144f62c-5b78-4e30-b295-52bee2c53ce9
Return: -1000 (PARTNER_CENTER_HTTP_EXCEPTION)
[09/12/24 17:02:35] Upload file done
[09/12/24 17:02:35] > Commit Submission
SurfaceDevCenterManager v<IP_ADDRESS>

Commit Option
Sending Commit
ERROR (DevCenterErrorDetails)
Code:    entityNotFound
HttpCode:404
Message: Not found
Correlation Id: 9c70ad3a-4520-4570-94ed-2b45895b5538

### Tasks

[09/12/24 17:02:35] > Commit Submission
SurfaceDevCenterManager v<IP_ADDRESS>

Commit Option
Sending Commit
ERROR (DevCenterErrorDetails)
Code:    entityNotFound
HttpCode:404
Message: Not found
Correlation Id: 9c70ad3a-4520-4570-94ed-2b45895b5538
Return: -16 (COMMIT_API_FAILED)
[09/12/24 17:02:39] Commit done
Wait for Submission to complete
* Dev Center URL: https://developer.microsoft.com/en-us/dashboard/hardware/driver/14509367530586332
* PID:<PHONE_NUMBER>0586332
* SID:<PHONE_NUMBER>698265334
SurfaceDevCenterManager v<IP_ADDRESS>
Wait Option
WaitOption mediatek_driver_Attestation_Submission WorkflowStatus was NULL. Will continue to wait...
WaitOption mediatek_driver_Attestation_Submission WorkflowStatus was NULL. Will continue to wait...

Hey @MTKSDCM, can you please grab the latest version 1.2024.911.1. Please confirm that fixes your issue.

@Ben-Carpenter is there any example for authconfig.json new parameters
"tenantId": "guid",
"clientId": "guid",
"managedIdentityClientId": "guid", -> what has to be passed here?
"scope":  "string", -> what has to be passed here?
"key": "string", -
"url": "https://manage.devcenter.microsoft.com",
"urlPrefix": "v2.0/my"

@Ben-Carpenter is there any example for authconfig.json new parameters "tenantId": "guid", "clientId": "guid", "managedIdentityClientId": "guid", -> what has to be passed here? "scope": "string", -> what has to be passed here? "key": "string", - "url": "https://manage.devcenter.microsoft.com", "urlPrefix": "v2.0/my"

The values to use are dependent on which credentials type you want to use. Here are the common and group options.
note - not all values need to be used.
Common

tenantId
clientId
url
urlPrefix

Managed Identity

managedIdentityClientId
For user-assigned Managed Identity, enter the Client ID (not Object ID).
For system-assigned Managed Identity enter the Object ID.
scope
Enter the default cloud api://*** string for Federated credentials.
If you assign a different scope for your Federated credential enter that instead.

Client Credentials

key
Enter your client secret


Question: Embedding Static Assets Features?

Hello! I really like your library, and have used it on some private projects.
At work, we use this rubric for evaluating static asset embedding libraries, and I was wondering where gitfs fits on these criteria:

[ ] Compression
[ ] Opt. decompression
[x] Local FS
[x] go generate
[x] No EXE
[ ] Config File
[x] http.FS

Hi, Thanks!
Please read the README and you can also read my blog post: https://posener.github.io/static-files, as there are answers for most of the questions.
Compression is not currently implemented, but it is doable, and could be interesting to implement. The code should be added to the encode and decode functions here
Optional decompression will be more difficult to add, and is only relevant to part of the use cases.
Local FS is implemented, please see in the README here: https://github.com/posener/gitfs#development
Go generate is supported. Maybe I should add an example.
No EXE: not sure what you mean.
Config File are not supported, and probably not going to be supported - the configuration is currently done by code.
http.FileSystem: supported. this is what gitfs.New function returns.

Ah, your blog article is very illuminating. Thanks!
"No EXE" means it doesn’t require a stand-alone executable, which I was fairly certain was the case. I would love to have an example for go generate. I'll file an issue and close this one. The workflow is certainly nicer than some of the others I've used.
Very much appreciated your response and hard work on an excellent library!

Cheers, you can also file a bug on compression support.


'Area' (polygon?) of each grid cell in XDGGS

I have specific use cases: I possess an observation at a certain latitude and longitude, and I want to compare it with a model output already structured in a healpix grid using Xarray-healpix. I'd like to determine which cell_id corresponds to my observation.
Now, with XDGGS, each cell_id can contain lat/lon values, probably indicating the center of the cell. This determination should be based on whether the observation falls within the cell 'area', rather than the 'nearest center coordinate' (lat/lon).
Is it possible to obtain such information from XDGGS? Should we consider representing this area as a type of polygon, or could XDGGS have a function where each cell_id corresponds to an 'area' value specific to that cell_id index?

this is what we've been discussing in #10: construct the boundaries of the cells and use xvec to perform the point-in-polygon search.
(so in other words, I think this is a duplicate of #10)

From the title I initially thought the suggestion was to add a function to extract the areas of the cells (which we definitely should, e.g., ds.dggs.cell_areas()), but yeah it looks more related to #10.

should have been closed by #30, though there is the idea of computing cell areas (as in, one scalar per cell describing the surface area of said cell)


Replayer, update for Snapps

Update the replayer to handle Snapp commands.
As before, the app replays commands ordered by global slot and sequence number. There are now three lists of commands, user commands, internal commands, and Snapp commands, so choosing the next command to run is a little more involved.
The function run_snapp_command runs the Snapp commands, by constructing a state_view from a parent block, and a Parties.t, then running Ledger.apply_parties_unchecked.
To create the fee payer body in a Parties.t, we create an ordinary Party.Body.t, and substitute the fee and the unit value placeholders. That approach does more work than necessary, but allows reuse of code. Reviewers: too much of a hack?
There are some new db columns in epoch_data and blocks, needed to construct a state view when applying a Snapp.  Those additional columns show up as new fields in extensional blocks. Also added a column increment_nonce to snapp_permissions and cliff_amount to snapp_timing_info to match the corresponding OCaml types. Renamed column global_slot in blocks to global_slot_since_hard_fork to match OCaml code. Rename next_epoch_data to next_epoch_data_id in snapp_predicate_protocol_states, to match staking_epoch_data_id.
Added Mina_caqti.select_cols_from_id to make it easy to load a table row into an OCaml data structure. Added Mina_caqti.Type_spec.custom_type to capture a repeated pattern for creating custom types.
This code is untested, of course, because we don't yet have Snapp commands in a database.
Note: for Rosetta, we added chain statuses for blocks, and additional columns to balances. Those changes are not in this code. Presumably, everything will get added to develop or compatible at some point.

Any suggestion for handling backwards compatibility (after hard forks) of the replayer tool and family? We could provide separate binaries for each fork (in the case of a change) but that might become too tedious to maintain since we have to keep track of both schema and transaction application changes

We could provide a single binary that dispatches to a module with the correct code for a particular fork.


CORS Proxy: Perform preflight request

Feature Description

Ideally in the editor we perform a (CORS preflight?) request first before trying to pass media requests through our proxy. So that we only proxy requests if needed due to performance considerations.
Something along these lines perhaps (untested):
let shouldProxy = false;
try {
	  await fetch(
	      resourceUrl,
	      {
	          method: 'OPTIONS',
	          headers: {
	              'Accept': '*/*',
	              'Access-Control-Request-Method': 'GET',
	              'Access-Control-Request-Headers': {
	                  'Accept': '*/*',
	              }
	          },
	      }
	  )
} catch {
	shouldProxy = true
}

(untested)
Alternatives Considered

Additional Context

Acceptance Criteria

There is a preflight request done when encountering an external resource the first time when loading the editor
The response should be cached: ideally we only perform this check once per resource

No, nothing stored on the resource itself. Otherwise we would never know when proxying is no longer needed. This can be determined at runtime, when loading the editor.
Something simple to memoize the information:
// in useCORSProxy()
const cache = useRef(new Map()); // useState() might make more sense here, needs testing.

const shouldProxyResource = useCallback(async (resource) => {
if (!resource?.isExternal || resource?.id || !resource?.src) {
  return false;
}

if (cache.current.has(resource.src)) {
  return cache.current.get(resource.src);
}

const result = await doThePreflighRequestHere();

cache.current.set(result);

return result;
}, []);

shouldProxyResource() could be called in two places:

In packages/story-editor/src/components/library/panes/media/local/hotlink/useInsert.js when inserting a hotlinked media item for the first time.
Once when loading the editor. Perhaps as an effect in StoryProvider or an alternate location

Of course the question is: what do we do while the preflight request is still in progress? Do we just proxy or not? I think it should be OK to proxy in that case, e.g.
const getProxiedUrl = useCallback(
  (resource, src) => {
    if (cache.current.has(resource.src)) {
      return cache.current.get(resource.src);
    }

    const { isExternal, id } = resource;

    if (enableCORSProxy && !id && isExternal) {
      return getProxyUrl(src);
    }
    return src;
  },
  [getProxyUrl, enableCORSProxy]
);

(again, untested)
Please let me know what you think
Also cc @choumx for input

Verified in QA


Click 8.0.0 do not infer bool type anymore from default value

Hi, while reaching regression on coilmq package runner, i found this behaviour change between click 7 and 8
It looks like click 7 was infering bool type from the default value, but it is not the case anymore.
Which looks to fail the coilmq package, wich was not updated for a while.
Is that something you would like to support back on your side?
Sample code
import click

@click.command()
@click.option("--bool_test", default=False, help="Test bool")
def main(bool_test):
    print("click", click.__version__)
    for n, v in locals().items():
        print(n, v, type(v))

if __name__ == '__main__':
    main()

Click 7
$ pip install click==7
$ python test.py
click 7.0
bool_test False <class 'bool'>

Click 8
$ pip install click==8
$ python test.py
click 8.0.0
bool_test False <class 'str'>

Most probably duplication of #1886 ?

Related to https://github.com/pallets/click/issues/1886, same behavior with different types. You can work around this by specifying the type in the option.

I am not sure i understand. Could you answer if you want to fix this regression?
Cause i can't work around. I am not the owner of the library i talk about.


EDTF date rendering inconsistencies

The following dates render differently and we might want to normalize how they render.
The following date renders differently depending on which date field it's put into:
2020-10~-10
In the Date Available field it renders like so:
2020-10-10 (approximate)
In the Date Created field it renders like so:
2020-October-10 (approximate)
Under content types on the Manage Display page, we can manipulate how the dates render.   Right now one date (Date Created) is set differently, by accident.

We should set these options consistently across dates, based on input from Katie and Michelle.

@bseeger is this a config task? or is it a note for migration definition writing? or is a UI rendering requirement?

This was just a mis-configuration that needs to be corrected. Extremely minor.

Addressed in: https://github.com/jhu-idc/idc-isle-dc/pull/113
I made it so all dates render with YYYY-MM-DD, like so:

All dates are consistently rendered now.


TL-WN722N-V2 doesnt support Monitor Mode and Packet Injection?!?!?!?!!!

You know that TL-WN722N-V2 does not support monitor mode and packet inject? It doesn't. See this
And this for info why
In simple words, v2 has RealTek Chipset which does NOT support Monitor Mode and Packet Injection but v1 has Atheros Chipset which does support Monitor Mode and Packet Injection, I know its ****ing sad that they are randomly shipping v1 and v2, it's no better than any normal adaptor for connecting to the internet. Sorry, the best you could do is ask for a return or save it for later.
Thanks,
Dex Devlon

Official TP-Link driver for v3 which also has (the same I think) Realtek chipset says it supports monitor mode.
from https://www.tp-link.com/us/support/download/tl-wn722n/#Driver


server send data has no participant

if i do
      req = SendDataRequest(room='abc',
                            data=json.dumps({
                                'event': 'a',
                                'data':'b'
                            }))
        await room.send_data(req)

rtc room will fail with
/livekit/rtc/room.py", line 455, in _retrieve_remote_participant
     participant = self.participants[sid]
                 ~~~~~~~~~~~~~~~~~^^^^^
 KeyError: ''

currently inherited Room to workaround
self.participants.get(sid)

just new to livekit and not sure if we need a participant for server sent data

Hey, this should be fixed with https://github.com/livekit/python-sdks/pull/215


maxquant: add checks on experimental design template and documentation

fixes #392 and #393

@bgruening should this one get a new version number? Something like <IP_ADDRESS>.2 or <IP_ADDRESS>b, to preserve the MaxQuant version in it?

@dglaetzer +galaxy1 would be nice to add, see here: https://galaxy-iuc-standards.readthedocs.io/en/latest/best_practices/tool_xml.html#tool-versions
This branch should probably be rebased against master. Let me know if you need help here.

I get a ton of conflicts during rebase. I'll do a new fork, copy my changes in and open a new PR.


Freehand draw doesn't work in Safari

Would it be possible to support Safari? Several tools (freehand, drag, shapes) don't seem to work. Thank you!

It works fine for me in Safari... What version are you using?18:08, September 1, 2020, gloriafang123<EMAIL_ADDRESS>Would it be possible to support Safari? Several tools (freehand, drag, shapes) don't seem to work. Thank you!
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

I just tested on

Safari 13.1.2 on Catalina
Safari 12.1.2 on Mohave
Safari 11.1.2 on High Sierra
Safari 10.1.2 on Sierra

and all the features you mentioned seem to work fine.  Can you elaborate on what you mean by "don't seem to work"?
I had to go all the way back to Safari 9.1.3 on El Capitan to get Cocreate not to work. But that didn't work at all -- no tools displayed, page number remained ?, etc. So I'm guessing you're not that far back.

I'm using Safari 12.1.2 on OS Sierra 10.12.6 on MacBook Pro (2017, with the force trackpad - perhaps trackpad issue?).
Luckily it works for me on Chrome. Just wanted to be sure for recitation tomorrow in case any students are stuck too (though it seems like it's just me). Sorry for the trouble!

Trackpad is a good guess.  I don't have a Macbook Pro (or any Mac laptop) so can't test.  Do you have an external mouse you could test, to help isolate the problem?  Do you get the sense that the page is scrolling or selecting instead of the intended drawing?
But definitely a good idea to recommend Chrome to your students.  It's what I test all my tools in, almost exclusively, so they're likely to get the best results with it.

FYI, Safari 14 was just released, though I'm guessing you can't install it without upgrading to High Sierra or Catalina.
I'm going to close this issue, as I can't reproduce and supporting old Safari versions probably shouldn't be a priority, alas. Let me know if you have any more data (e.g. from testing with an external mouse) and we can revisit.


Generate new tests by crossover

The current system does not exploit combining good inputs to generate potentially better test programs.
In Genetic Programming, 2 (or more) programs are combined to form a new program. For a particular domain, the crossover function may be specific to the problem domain. In the case here, it might make sense to focus on input/output points of each test program:

Crossover of 2 programs could then cut each program at points where one produced an output of a type A, and the other consumed an input of type A. Most types in Syzkaller should be resources, but can also be more complex generated types such as structs.
An initial version could simply select 2 or more test programs at random, but eventually we could move closer towards a more principled GA/GP selection/crossover/mutation/repeat process. Prerequisites for this include having a domain-specific fitness computation and crossover (this task).

#534 is related parent issue.


Add capability for likes.

I like this app and I am working on this feature.
There are two choices of like: like button or double tap.
1. if we are going to do like button, I think we have to remove the Tag count. Otherwise, we need another row which may not match the minimalist design well.
2. If we double tap, then how do we know which imageID is been tapped, given what we have is only UITapGestureRecognizer. (If we are in tableview, then we could use rowindex)
What do you guys think?


Fields annotated with LiteralAttribute no longer compile to literal fields in IL

After upgrading to VS2017 15.6.4 (issue persists in 15.6.5 and VS 2017 preview) fields annotated with the literal attribute no longer compile to IL literal fields. This leads to breaking builds.
Repro steps

Step A : Create a new project with just a Literal declaration:

module Foo

let [<Literal>] bar = "BAR"

Step B: Compile with Visual Studio 2017 15.6.4/15.6.5 and examine the IL:

.class public auto ansi abstract sealed Foo
	extends [mscorlib]System.Object
{
	.custom instance void [FSharp.Core]Microsoft.FSharp.Core.CompilationMappingAttribute::.ctor(valuetype [FSharp.Core]Microsoft.FSharp.Core.SourceConstructFlags) = (
		01 00 07 00 00 00 00 00
	)
	// Fields
	.field public static string bar = "BAR"
	.custom instance void [FSharp.Core]Microsoft.FSharp.Core.LiteralAttribute::.ctor() = (
		01 00 00 00
	)
	.custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
		01 00 00 00 00 00 00 00
	)

} // end of class Foo

Compile with Visual Studio 2015

.class public auto ansi abstract sealed Foo
	extends [mscorlib]System.Object
{
	.custom instance void [FSharp.Core]Microsoft.FSharp.Core.CompilationMappingAttribute::.ctor(valuetype [FSharp.Core]Microsoft.FSharp.Core.SourceConstructFlags) = (
		01 00 07 00 00 00 00 00
	)
	// Fields
	.field public static literal string bar = "BAR"
	.custom instance void [FSharp.Core]Microsoft.FSharp.Core.LiteralAttribute::.ctor() = (
		01 00 00 00
	)
	.custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
		01 00 00 00 00 00 00 00
	)

	// Methods
	.method private specialname rtspecialname static
		void .cctor () cil managed
	{
		// Method begins at RVA 0x2050
		// Code size 13 (0xd)
		.maxstack 8

		IL_0000: ldc.i4.0
		IL_0001: stsfld int32 '<StartupCode$Library1>.$Foo'::init@
		IL_0006: ldsfld int32 '<StartupCode$Library1>.$Foo'::init@
		IL_000b: pop
		IL_000c: ret
	} // end of method Foo::.cctor

} // end of class Foo

Optional: Reference the field from an attribute, in a new C# and F# project (while using the latest VS 2017)
This compiles fine.

module Lib2

open System.Reflection

[<assembly: AssemblyTitle(Foo.bar)>]
do ()

C# build breaks because CS0182 | An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
[assembly: AssemblyTitle(Foo.bar)]

Expected behavior
Field should be annotated as a IL literal and be consumed properly by C# projects.
Actual behavior
Field does not compile as an IL literal.
Known workarounds
In general no, but in some cases you can work around this by refactoring your code (e.g. if you own both projects and makes sense to move the C# declarations in the F# project).
Related information
Provide any related information

Operating system : Windows 10 Pro
.NET Framework 4.7.02556
Editing Tools : VS Enterprise 2017 15.6.5 / Microsoft Visual F# Tools 10.1 for F# 4.1

I believe this is the same as #4617, and was resolved through #4519. This can happen if you run the preview edition on the same machine as the production release of VS 2017, because parts are still shared between editions (see discussion my issue #4617, as @KevinRansom mentions there, this will be fixed soon, probably in 15.8).
The issue with the LiteralAttribute not being compiled properly is fixed for Update 3. Once that comes out, you can install the Preview Update and your VS Ent edition should also be fixed.
Meanwhile the workaround is either to switch back, to not use the LiteralAttribute if you can avoid it, or compile with a commandline version that wasn't updated. Or just wait a few days, I believe it comes out any day now.

@abelbraaksma @krontogiannis fixed in the latest 15.7 preview 3, will definitely be fixed in 15.7 rtm.
Because we don't yet do sideby side compilers, just installing the latest 15.7 preview will fix it for your whole machine.  in 15.8 we plan to have fully side by side compilers too, at last.
Kevin

@KevinRansom, 15.6.5 just came out, if you have this bug from installing a Preview, would updating to a new RTM (in this case from 15.6.4 to 15.6.5) also resolve the issue?
In other words, will the installer install newer libraries (which would fix this), or only overwrite existing files if the version is higher (which I think would not fix this and will have us wait until Preview 3).

@abelbraaksma
I'm not sure ... though probably not. Component upgrade is based on version number, and 15.7 is higher than 15.6.5.
We so need a side by side compiler.

Closing as dupe of #4519 - the workaround until Preview 3 of 15.7 is to not be using a Preview build of VS.


Feature request: allow to pass HSM-backed client key to esp-tls (IDFGH-2292)

Environment

Development Kit: custom board
Module or chip used:  ESP32-WROOM-32 + ATECC608A
IDF version: v3.3
Build System: Make
Compiler version: 1.22.0-80-g6c4433a-5.2.0
Operating System: Linux
Power Supply: USB

Problem Description
When authenticating against an IOT framework (Azure, Amazon, etc.) using certificates, it is desirable to store the private key of the device in a secure element or HSM rather than in flash. Even if the flash is encrypted and secure boot is enabled, keys kept in flash (and loaded in memory) could leak through memory safety bugs in firmware. Secure elements generate and keep the private key in hardware and never give it up. Such secure elements then offer an API to perform cryptographic operations, such as signing (e.g. ECDSA) in the secure element rather than giving back the private key to perform these operations in software. An example of such a secure element is the ATECC608A.
Working with such a secure element in mbedtls requires passing a specific mbedtls_pk_context with a reference to the key in the secure element, rather than passing the content of the private key as a byte array. The esp-tls component does not currently expose this functionality.
This quick-and-dirty patch enables passing the mbedtls_pk_context struct through esp-tls to mbedtls:
https://github.com/wouterdevinck/lamp/blob/bf0a4967b4/make/patches/0001-esp-tls.v3.3.1.patch
Expected Behavior
Allow to pass a specific client PK context to the underlying TLS library (mbedtls in v3.3; mbedtls or wolfssl in v4.0).
Actual Behavior
The esp-tls API only allows passing a byte array and length with the contents of the PK.
Steps to reproduce
n/a
Code to reproduce this issue
Starting point without secure element:
https://github.com/espressif/esp-azure
Azure IOT "TLSIO" implementation using the modified esp-tls (see lines 219 and 233):
https://github.com/wouterdevinck/lamp/blob/bf0a4967b4/src/mcu/components/azureiot/port/tlsio_esp_atca.c
Azure IOT "HSM" implementation that does not return the private key (line 28):
https://github.com/wouterdevinck/lamp/blob/bf0a4967b4/src/mcu/components/azureiot/port/hsm.c
Modifications to esp-tls:
https://github.com/wouterdevinck/lamp/blob/bf0a4967b4/make/patches/0001-esp-tls.v3.3.1.patch
Mbedtls configuration:
https://github.com/wouterdevinck/lamp/blob/bf0a4967b4/src/mcu/components/mbedtls-mods/Makefile.projbuild
Mbedtls alternate implementations using the ATECC608A, done in Microchip's "cryptoauthlib" library, included as a submodule:
https://github.com/wouterdevinck/lamp/blob/bf0a4967b4/src/mcu/components/cryptoauthlib/component.mk#L10
HAL for cryptoauthlib to talk with the secure element over I2C:
https://github.com/wouterdevinck/lamp/tree/bf0a4967b4/src/mcu/components/cryptoauthlib_hal
Debug Logs
n/a
Other items if possible
n/a

Good work Wouter, thanks for sharing! I would like this feature as well! Apart from encryption and secure boot, i think it's still a good idea to use a HSM.

Hey @wouterdevinck how did you debug TLS, can't find what is causing a problem.
What I got now:
I (18436) tlsio: atca_mbedtls_ecdh_slot_cb
I (18516) tlsio: atca_mbedtls_ecdh_ioprot_cb
E (19136) esp-tls: mbedtls_ssl_handshake returned -0x7280

#define MBEDTLS_ERR_SSL_CONN_EOF                          -0x7280  /**< The connection indicated an EOF. */
In Azure I cant find any logging of authentication (that failed)

found the problem, I used secp256k1 instead of secp256r1 (called prime256v1 in openssl). I'm using certificates/keys generated with openssl and load the private key on the HSM. Used Wireshark and [ ] Enable mbedTLS debugging in make menuconfig for debugging, didn't found any debugging tools on the Azure side

@fromeijn Glad to read you got it working! This can indeed be pain in the ** to debug, since DPS tends to just close the connection without explanation if anything is wrong. The mbedTLS debugging option saved me a few times as well :)

@AdityaHPatwardhan @mahavirj Cool to see quite a bit of work in this area on master. I would be willing to give this a try to see if it covers my use case without having to patch esp-idf, but a bit more info on how you approached things would be much appreciated.

Hi @wouterdevinck, below is some general information about how ATECC608A is used for TLS,

The support for ATECC608A has been added for esp-tls when used with mbedtls  as its internal ssl/tls stack.

Firstly, user has to enable secure_element with menuconfig, refer link for more details
After making required configurations, user has to set use_secure_element to true in esp_tls_cfg_t. for details on how to use ATECC608A with esp-tls refer link.
The above configurations make mbedtls to set pki context with help of hardware key from slot 0 of ATECC608A by making use of  some ATECC608A specific API provided by esp-cryptoauthlib. you can take a look at the function here, which initialises ATECC608A interface and sets pki context.
When above configurations are enabled these two mbedtls specific flags are set
:- MBEDTLS_ECDSA_SIGN_ALT and MBEDTLS_ECDSA_VERIFY_ALT,
with these flags set mbedtls finds for alternate implementation of ecdsa_sign/verify and that alternate implementation which signs and verifies the data with help of hardware key residing in secure_element is provided in esp-cryptoauthlib, you can take a look at it here. Thus ECDSA sign/verify with help of hardware key takes place.

Note: esp-cryptoauthlib is a trimmed fork of original cryptoauthlib

I hope this helps to solve your query,  please let me know if you want to know more about any point.

Hi @wouterdevinck,
were you able to connect the esp to Azure using the certificates from the secure element?
I am using atecc608b with the esp32c3.  I tried following the step provided by @AdityaHPatwardhan but they are performing the sign/verify operation using the secure element while I need to connect the device to the Azure cloud using the certificates from hsm. If you can help in anyway that would be great. Thanks


Getting minimum utxo

Issue Number

#1893
Overview

[x] I have extended ProtocolParameters and ApiNetworkParameters
[x] I have updated swagger
[x] I have used minimumUtxoValue in feeOpts in determination of dustThreshold
[x] I have updated testing
[x] I have handled migration

Comments

bors try

bors try

bors r+


feat(ingest/kafka-connect): add support for Confluent S3 Sink Connector

https://feature-requests.datahubproject.io/p/confluent-s3-sink-connector-as-a-source
Note:
I tried updating the existing test test_kafka_connect.py but the fixture that creates the docker-compose setup, kept failing due to timeouts. To work around that, I created an entirely separate test.
I understand there is a bit of duplication but if the former approach works in the CI, happy to port my test back into test_kafka_connect.py.
Checklist

[x] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[x] Links to related issues (if applicable)
[x] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@mayurinehate anything else needed to merge this?

@mayurinehate anything else needed to merge this?

Hey @tusharm,  Thank you for patience. Once CI passes, it should be good to merge from my side.
@hsheth2 can you please help with starting CI checks and approving the PR, if everything looks good ?

hey @anshbansal, I see one of the checks failing - doesn’t seem related to changes in this PR. Is this error specific on this branch?


Add Sommerfeld number function

Add a function to calculate the Sommerfeld number for a given load. Also add two more functions: one to calculate eccentricity for a given load using the Sommerfeld number, and one to calculate the load using the eccentricity given when the class is instantiated.
Close #101

Codecov Report

Merging #102 into master will decrease coverage by 1.59%.
The diff coverage is 42.85%.

@@           Coverage Diff           @@
##           master   #102     +/-   ##
=======================================
- Coverage   56.59%    55%   -1.6%
=======================================
  Files           8      9      +1
  Lines        1410   1589    +179
=======================================
+ Hits          798    874     +76
- Misses        612    715    +103

Impacted Files
Coverage Δ

ross/fluid_flow/fluid_flow.py
42.45% <42.85%> (ø)

Continue to review full report at Codecov.

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


e2e test improvement

Improve error identification (currently not failing on oc errors)
add release/additional image testing (currently only tests operators)

Associated with https://github.com/openshift/release/pull/23335/ and https://github.com/openshift/oc-mirror/pull/157


The versioning problem of alto

The project alto was originally meant to be a useful music organizer and so it is as of today, but I received a suggestion from the Unofficial Go Discord to make the DSL's API publicly available, which so I did and from the looks of this it seems that the semantic versioning format is mandatory, or highly recommended.
This creates somewhat of a logical problem:

How should I incorporate changes in the CLI packages when it doesn't adversely affect the compatibility of the DSL API, because a new release makes the user think that there has been changes within the API's code when there hasn't
Above applies inversely to the DSL changes as well, but not as bad because the CLI package is dependent on the DSL.

This could be avoided by simply requiring the user to install the binary via Go's CLI, but from my own personal experience it's somewhat tedious to install Go's ~132MB package to create such an alto binary that is around 1-2MBs. I was once a person who had very limited and slow internet and saving every byte of my data usage counted, and once I got good internet I made a vow to myself that I would try to help out those who were like me by ensuring that they can download the least amount of bytes from software releases I would make in the future.
Separate versioning could work for this, and can ensure backwards compatibility with the previous releases which would be ideal. A trivial idea that is, but stress tends to affect the mind. However I do not have a solid idea of how I would implement version branching but I could probably intertwine the major number of the DSL together with the CLI versioning, as the current branching scheme is using major versions for good, obvious reasons.
I will comment the new versioning scheme alto will use after I take some time and carefully think about it. Suggestions are appreciated

I believe that the CLI should go by a MAJOR.CHANGES system
Where:

MAJOR is the major version of the DSL, ensuring that changes among both packages can remain on the same branch
CHANGES is the number of changes since the last major release of the DSL

Examples:

2.0 represents the CLI release version of the 2nd DSL major release, so 2.0.0 and 2.0 would be the same here
2.3 represents that there has been 3 CLI releases since the 2nd DSL major release


Tumblr OpenGraph warning

$ youtube-dl "http://sipbarrio.tumblr.com/post/113600056428"
[Tumblr]<PHONE_NUMBER>28: Downloading webpage
[Tumblr]<PHONE_NUMBER>28: Downloading webpage
WARNING: unable to extract OpenGraph description; please report this issue on http://yt-dl.org/bug
[download] Destination: sipbarrio-113600056428.mp4
[download] 100% of 2.11MiB in 00:01

Thanks for the report. In the next version of youtube-dl, there will not be warnings for videos without descriptions.


Prevent autoflake to clean imports in module init files

@fyhertz if you merge main into this then the 3.9 test should start passing so we can get green checkmarks :)

Going to merge in through #233 after updating changelog. Thanks!


feat: Hash trait

Show an example that use #[derive(Hash)] to hash an user defined type.
Show how to use different hashing functions: Poseidon and Pedersen.
See here for documentation

We are now using the Hash trait in the "Struct as mapping key" example. We can reference it in the specific Hash trait example.

@julio4 If no one has taken this up I will like to take it

fyi https://book.cairo-lang.org/ch11-03-hash.html

@OkoliEvans Any progress so far?

@OkoliEvans Any progress so far?
Yeah, I will open a PR soon. I am still trying to figure out how to write a test for the hash functions. @julio4

@OkoliEvans Any progress so far?
Yeah, I will open a PR soon. I am still trying to figure out how to write a test for the hash functions. @julio4

@fontanellag Same here. I also was able to compute Pedersen and Poseidon hashes of a custom struct but how we can test their validity? We should compare the results with the hashes provided from another tool?

It is enough to compare the result against an hardcoded constant value. You can compute the expected result using cairo or other implementations

Created a draft PR https://github.com/NethermindEth/StarknetByExample/pull/159


Shapenet datasest name fields replaced with strings

The default pytorch collate function cannot deal with pathlib objects. For this reason, substituted them with their string representations in the output dicts.

Closing for inactivity


[BUG] InteractiveBrowserCredential fails when using a personal/MSA account without passing tenant_id

Describe the bug
When using InteractiveBrowserCredential with a personal/MSA account without passing the user's TenantId, the interactive authentication fails with message:

User account<EMAIL_ADDRESS>from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot
access the application '04b07795-8ddb-461a-bbee-02f9e1bf7b46'(Microsoft Azure CLI) in that tenant. The account needs to
be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.

To Reproduce
Steps to reproduce the behavior:

Use the InteractiveBrowserCredential with any Azure SDK client that accepts it, without passing the tenant_id.
Attempt to login using a personal/MSA account
When the browser authentication opens a new https://login.microsoftonline.com/ web page, try to login with a personal/MSA account such as<EMAIL_ADDRESS>A work/school account should authenticate just fine.
In the case of a personal/MSA account you should see the error message described above.

Sample code:
    var credential = new InteractiveBrowserCredential();

    var blobClient = new BlobClient(new Uri("https://myaccount.blob.core.windows.net/mycontainer/myblob"), credential);
    var result = blobClient.DownloadContent();

Expected behavior
We should spare the user from passing their personal account tenant id and had a seamless experience as found with az login.
Workarounds
Option 1: Use the DefaultAzureCredential and pass the tenant_id via environment variable
a) Find your account tenant_id: How to find your Azure Active Directory tenant ID
b) Before running the program, set the AZURE_TENANT_ID environment variable with your tenant_id value.
PowerShell example:
$env:AZURE_TENANT_ID = "your tenant id"

Option 2: Pass the tenant_id via the InteractiveBrowserCredential
a) Find your account tenant_id: How to find your Azure Active Directory tenant ID
b) Pass your tenant_id as part of the InteractiveBrowserCredential constructor:
    var options = new InteractiveBrowserCredentialOptions { TenantId = "ed8ca8a2-451e-4a07-b172-f38e7969c820" };
    var credential = new InteractiveBrowserCredential(options);

Environment:

Name and version of the Library package used: Azure.Storage.Blobs 12.9.0, Azure.Identity 1.4.0
Hosting platform or OS and .NET runtime version

>dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.204
 Commit:    84d1fe1bb7

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19042
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.204\

Host (useful for support):
  Version: 5.0.7
  Commit:  556582d964

.NET SDKs installed:
  2.1.524 [C:\Program Files\dotnet\sdk]
  2.1.816 [C:\Program Files\dotnet\sdk]
  2.2.401 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]
  3.0.103 [C:\Program Files\dotnet\sdk]
  3.1.302 [C:\Program Files\dotnet\sdk]
  3.1.404 [C:\Program Files\dotnet\sdk]
  3.1.410 [C:\Program Files\dotnet\sdk]
  5.0.203 [C:\Program Files\dotnet\sdk]
  5.0.204 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Hi @anpaz This is a known issue related to how personal/MSA accounts work. By default, the tenantId that MSAL will try when no hint is given results in this error. I believe the CLI actually goes out and pre-emptively fetches a token for each of your subscriptions so that they are pre-cached.
That said, we are working on a feature now that will enable tenant discovery based on challenges retrieved from the service (for services that supply tenant Id info in challenges). The experience when using one of  Azure.Identity's built in TokenCredentials with those service clients will be that it just works.

I'm working with a customer who is running into this same issue. Has the work @christothes described been done yet? If not, can this be re-opened to track the issue?
Also, thanks @anpaz for the work-arounds!

Yes, tenant discovery is now enabled by default in the latest version of Azure.Identity. A tenantId hint can be sent as part of the TokenRequestContext now to GetToken which will be used in favor of the explicitly defined tenantId, if present.

Thanks, @christothes. I'll check with the customer which version of Azure.Identity they're using since they're hitting an issue very similar to what's described here and it sounds like that shouldn't be happening if they have up-to-date SDK packages.


Fix/skip integration tests

We have 9 failing integration tests, seemingly because the test machines are picking up FUSE. This PR skips some (with links to bugs) or works around the issues.

Instead of updating base lines in integration tests with unexpected results, is there a deeper regression that should be investigated?

Yes, and since opening the PR I believe this is likely a FUSE-related regression.
The reason I think it's worth changing the baseline for these specific tests, which I definitely shouldn't have mentioned in the description, is because the classification in question here is largely unrelated to the tests. The tests are specifically validating project load when a Razor buffer is created early in the startup lifecycle, and the fact that they both failed caused me to start investigating that path, which is long and complicated. Turns out, it's just that these are the only two integration tests that wait for the "class name" classification 🤦♂
By changing the tests to wait for a Razor defined classification we should be more immune to changes, either due to Roslyn or to the generated code, in these specific tests. There are existing tests that validate classifications are as we expect, and I plan on adding coverage to them for FUSE. I had thought that was already done somewhere but my hunch now is that it's not.

Okay, I have found our test that covers semantic tokens in @model and it turns out its a bad test, and doesn't fail under FUSE 😔

Pushed up test changes so our semantic tokens tests now cover @model correctly, logged https://github.com/dotnet/razor/issues/10963 for the FUSE bug, and verified that these new tests fail when FUSE is turned on.

Skipped a couple more tests that already have FUSE bugs logged.

We have 9 failing integration tests, seemingly because the test machines are picking up FUSE. This PR skips some (with links to bugs) or works around the issues.

Oof... I didn't think test machines got TNs. I wonder if there's a setting to disallow that...

eh, I don't think its a bad thing necessarily. These test failures essentially found https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2268945 before CTI did (not that we noticed or acted in time 😛)

Integration tests: ✅


secondpr

This is my first pull request. Please let me know whether I did correct or not. Whether I have given correct title or not and whether in pull request I did the same what you were expected. Please let me know.

Ask in Twitter group or discord by giving link to this pr for review and approval. 2 approval needed.


add auto fit columns function

PR Details
add auto fit columns function
Description
add auto fit columns function
Related Issue
#92

Motivation and Context

How Has This Been Tested

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Little suggestion for you guys:
Maybe can add the feature to check if cells has the Chinese or Japanese or other bigger font type
For me I use unicode.Is to check the unicode.Han, and plus the column width for every single word

Little suggestion for you guys: Maybe can add the feature to check if the cell has the Chinese or Japanese or other bigger font type For me I use unicode.Is to check the unicode.Han, and plus the column width for every single word

I rewrite the function to calculate length of sbcs and mbcs.

Has this pull request not been merged into master yet?

Has this pull request not been merged into master yet?

There are some code review issues still not resolved. We need to resolve these issues before merging it into the master branch.

What's missing for this PR to be merged? All conversations on the "Files" tab seem to be resolved (although idk if truly accepted).
If there's still logic pending for review, broken or missing, I might be able to help.

need this feature. any updates

Hi @yyt030, @n3m, @edwardmatutino, the character width is related to the font family and font size style, we need to calculate column width by font size. I have marked the unresolved comments in the code review conversion. In addition, there's a code conflict in this pull request, we need to resolve this for merging this, and before that please also reference the code in issues #92 and #204.

Is this feature available now?

Is this feature available now?

Not available. The code review issues as I mentioned above should be fixed.


border-radius() mixin should have 1 argument, 2 passed.

when I try to use button-size() mixin in my project as below:
@include button-size(10px, 10px, 20px, 6px);

I get this error:
SassError: Only 1 argument allowed, but 2 were passed.
   ┌──> node_modules\bootstrap\scss\mixins\_buttons.scss
109│   @include border-radius($border-radius, 0);
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invocation

Which is because of 2 arguments being passed to border-radius() method.

I see no issue in our main branch. Perhaps something is out of sync?
.test {
  @include button-size(10px, 10px, 20px, 6px);
}

diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css
index 892302a62..dccffb060 100644
--- a/dist/css/bootstrap.css
+++ b/dist/css/bootstrap.css
@@ -3404,6 +3404,12 @@ textarea.form-control-lg {
   border-radius: 0.2rem;
 }

+.test {
+  padding: 10px 10px;
+  font-size: 1.25rem;
+  border-radius: 6px;
+}

I am using sass library from npm to compile the files. Would that be an issue?
https://www.npmjs.com/package/sass